tag | line | file | source code |
d | 27 | arch/i386/boot/compressed/gzip.h | # define memcpy(d, s, n) bcopy((s), (d), (n)) |
d | 99 | arch/i386/boot/compressed/inflate.c | int huft_build(b, n, s, d, e, t, m) |
d | 103 | arch/i386/boot/compressed/inflate.c | ush *d; /* list of base values for non-simple codes */ |
d | 274 | arch/i386/boot/compressed/inflate.c | r.v.n = d[*p++ - s]; |
d | 335 | arch/i386/boot/compressed/inflate.c | unsigned n, d; /* length and index for copy */ |
d | 395 | arch/i386/boot/compressed/inflate.c | d = w - t->v.n - ((unsigned)b & mask_bits[e]); |
d | 400 | arch/i386/boot/compressed/inflate.c | n -= (e = (e = WSIZE - ((d &= WSIZE-1) > w ? d : w)) > n ? n : e); |
d | 402 | arch/i386/boot/compressed/inflate.c | if (w - d >= e) /* (this test assumes unsigned comparison) */ |
d | 404 | arch/i386/boot/compressed/inflate.c | memcpy(slide + w, slide + d, e); |
d | 406 | arch/i386/boot/compressed/inflate.c | d += e; |
d | 411 | arch/i386/boot/compressed/inflate.c | slide[w++] = slide[d++]; |
d | 171 | arch/i386/boot/compressed/misc.c | char *d = (char *)__dest, *s = (char *)__src; |
d | 173 | arch/i386/boot/compressed/misc.c | for (i=0;i<__n;i++) d[i] = s[i]; |
d | 121 | arch/i386/math-emu/fpu_proto.h | extern int reg_store_extended(long double *d, FPU_REG *st0_ptr); |
d | 124 | arch/i386/math-emu/fpu_proto.h | extern int reg_store_int64(long long *d, FPU_REG *st0_ptr); |
d | 125 | arch/i386/math-emu/fpu_proto.h | extern int reg_store_int32(long *d, FPU_REG *st0_ptr); |
d | 126 | arch/i386/math-emu/fpu_proto.h | extern int reg_store_int16(short *d, FPU_REG *st0_ptr); |
d | 127 | arch/i386/math-emu/fpu_proto.h | extern int reg_store_bcd(char *d, FPU_REG *st0_ptr); |
d | 41 | arch/i386/math-emu/reg_ld_str.c | static void write_to_extended(FPU_REG *rp, char *d); |
d | 423 | arch/i386/math-emu/reg_ld_str.c | int reg_store_extended(long double *d, FPU_REG *st0_ptr) |
d | 434 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE, d, 10); |
d | 436 | arch/i386/math-emu/reg_ld_str.c | write_to_extended(st0_ptr, (char *) d); |
d | 447 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE,d,10); |
d | 448 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(0, (unsigned long *) d); |
d | 449 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(0xc0000000, 1 + (unsigned long *) d); |
d | 450 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(0xffff, 4 + (short *) d); |
d | 845 | arch/i386/math-emu/reg_ld_str.c | int reg_store_int64(long long *d, FPU_REG *st0_ptr) |
d | 894 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE,(void *)d,8); |
d | 895 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(((long *)&tll)[0],(unsigned long *) d); |
d | 896 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(((long *)&tll)[1],1 + (unsigned long *) d); |
d | 904 | arch/i386/math-emu/reg_ld_str.c | int reg_store_int32(long *d, FPU_REG *st0_ptr) |
d | 949 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE,d,4); |
d | 950 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(t.sigl, (unsigned long *) d); |
d | 958 | arch/i386/math-emu/reg_ld_str.c | int reg_store_int16(short *d, FPU_REG *st0_ptr) |
d | 1003 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE,d,2); |
d | 1004 | arch/i386/math-emu/reg_ld_str.c | put_fs_word((short)t.sigl,(short *) d); |
d | 1012 | arch/i386/math-emu/reg_ld_str.c | int reg_store_bcd(char *d, FPU_REG *st0_ptr) |
d | 1043 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE,d,10); |
d | 1045 | arch/i386/math-emu/reg_ld_str.c | put_fs_byte(0, (unsigned char *) d+i); /* These bytes "undefined" */ |
d | 1046 | arch/i386/math-emu/reg_ld_str.c | put_fs_byte(0xc0, (unsigned char *) d+7); /* This byte "undefined" */ |
d | 1047 | arch/i386/math-emu/reg_ld_str.c | put_fs_byte(0xff, (unsigned char *) d+8); |
d | 1048 | arch/i386/math-emu/reg_ld_str.c | put_fs_byte(0xff, (unsigned char *) d+9); |
d | 1062 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE,d,10); |
d | 1069 | arch/i386/math-emu/reg_ld_str.c | put_fs_byte(b,(unsigned char *) d+i); |
d | 1073 | arch/i386/math-emu/reg_ld_str.c | put_fs_byte(sign,(unsigned char *) d+9); |
d | 1290 | arch/i386/math-emu/reg_ld_str.c | char *fstenv(fpu_addr_modes addr_modes, char *d) |
d | 1297 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE,d,14); |
d | 1299 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(control_word & ~0xe080, (unsigned short *) d); |
d | 1301 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(control_word, (unsigned short *) d); |
d | 1303 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(status_word(), (unsigned short *) (d+2)); |
d | 1304 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(tag_word(), (unsigned short *) (d+4)); |
d | 1305 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(instruction_address.offset, (unsigned short *) (d+6)); |
d | 1306 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(operand_address.offset, (unsigned short *) (d+0x0a)); |
d | 1310 | arch/i386/math-emu/reg_ld_str.c | (unsigned short *) (d+8)); |
d | 1312 | arch/i386/math-emu/reg_ld_str.c | (unsigned short *) (d+0x0c)); |
d | 1316 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(instruction_address.selector, (unsigned short *) (d+8)); |
d | 1317 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(operand_address.selector, (unsigned short *) (d+0x0c)); |
d | 1320 | arch/i386/math-emu/reg_ld_str.c | d += 0x0e; |
d | 1325 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE,d,28); |
d | 1328 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(0xffff0040 | (control_word & ~0xe080), (unsigned long *) d); |
d | 1329 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(0xffff0000 | status_word(), (unsigned long *) (d+4)); |
d | 1330 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(0xffff0000 | tag_word(), (unsigned long *) (d+8)); |
d | 1332 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(control_word, (unsigned short *) d); |
d | 1333 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(status_word(), (unsigned short *) (d+4)); |
d | 1334 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(tag_word(), (unsigned short *) (d+8)); |
d | 1336 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(instruction_address.offset, (unsigned long *) (d+0x0c)); |
d | 1337 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(instruction_address.selector, (unsigned short *) (d+0x10)); |
d | 1338 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(instruction_address.opcode, (unsigned short *) (d+0x12)); |
d | 1339 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(operand_address.offset, (unsigned long *) (d+0x14)); |
d | 1342 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(operand_address.selector, (unsigned short *) (d+0x18)); |
d | 1343 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(0xffff, (unsigned short *) (d+0x1a)); |
d | 1345 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(operand_address.selector, (unsigned long *) (d+0x18)); |
d | 1348 | arch/i386/math-emu/reg_ld_str.c | d += 0x1c; |
d | 1354 | arch/i386/math-emu/reg_ld_str.c | return d; |
d | 1360 | arch/i386/math-emu/reg_ld_str.c | char *d; |
d | 1363 | arch/i386/math-emu/reg_ld_str.c | d = fstenv(addr_modes, data_address); |
d | 1365 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE,d,80); |
d | 1368 | arch/i386/math-emu/reg_ld_str.c | write_to_extended(®s[(top + i) & 7], d + 10 * i); |
d | 1380 | arch/i386/math-emu/reg_ld_str.c | static void write_to_extended(FPU_REG *rp, char *d) |
d | 1414 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(rp->sigl, (unsigned long *) d); |
d | 1415 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(rp->sigh, (unsigned long *) (d + 4)); |
d | 1430 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(tmp.sigl, (unsigned long *) d); |
d | 1431 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(tmp.sigh, (unsigned long *) (d + 4)); |
d | 1436 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(e, (unsigned short *) (d + 8)); |
d | 942 | drivers/block/ide-cd.c | char d = c[0]; |
d | 944 | drivers/block/ide-cd.c | c[1] = d; |
d | 952 | drivers/block/ide-cd.c | char d = c[0]; |
d | 954 | drivers/block/ide-cd.c | c[3] = d; |
d | 955 | drivers/block/ide-cd.c | d = c[1]; |
d | 957 | drivers/block/ide-cd.c | c[2] = d; |
d | 509 | drivers/block/mcd.c | char a, b, c, d; |
d | 514 | drivers/block/mcd.c | getValue(&d); |
d | 572 | drivers/block/sbpcd.c | static int d=0; /* DriveStruct index: drive number */ |
d | 817 | drivers/block/sbpcd.c | DriveStruct[d].CD_changed=0xFF; |
d | 987 | drivers/block/sbpcd.c | DriveStruct[d].status_byte=0; |
d | 990 | drivers/block/sbpcd.c | if (st&p_caddin_old) DriveStruct[d].status_byte |= p_door_closed|p_caddy_in; |
d | 991 | drivers/block/sbpcd.c | if (st&p_spinning) DriveStruct[d].status_byte |= p_spinning; |
d | 992 | drivers/block/sbpcd.c | if (st&p_check) DriveStruct[d].status_byte |= p_check; |
d | 993 | drivers/block/sbpcd.c | if (st&p_busy_old) DriveStruct[d].status_byte |= p_busy_new; |
d | 994 | drivers/block/sbpcd.c | if (st&p_disk_ok) DriveStruct[d].status_byte |= p_disk_ok; |
d | 998 | drivers/block/sbpcd.c | if (st&p_caddin_old) DriveStruct[d].status_byte |= p_disk_ok|p_caddy_in; |
d | 999 | drivers/block/sbpcd.c | if (st&p_spinning) DriveStruct[d].status_byte |= p_spinning; |
d | 1000 | drivers/block/sbpcd.c | if (st&p_check) DriveStruct[d].status_byte |= p_check; |
d | 1001 | drivers/block/sbpcd.c | if (st&p_busy_old) DriveStruct[d].status_byte |= p_busy_new; |
d | 1002 | drivers/block/sbpcd.c | if (st&p_lcs_door_closed) DriveStruct[d].status_byte |= p_door_closed; |
d | 1003 | drivers/block/sbpcd.c | if (st&p_lcs_door_locked) DriveStruct[d].status_byte |= p_door_locked; |
d | 1007 | drivers/block/sbpcd.c | if (st&p2_check) DriveStruct[d].status_byte |= p1_check; |
d | 1008 | drivers/block/sbpcd.c | if (st&p2_door_closed) DriveStruct[d].status_byte |= p1_door_closed; |
d | 1009 | drivers/block/sbpcd.c | if (st&p2_disk_in) DriveStruct[d].status_byte |= p1_disk_in; |
d | 1010 | drivers/block/sbpcd.c | if (st&p2_busy1) DriveStruct[d].status_byte |= p1_busy; |
d | 1011 | drivers/block/sbpcd.c | if (st&p2_busy2) DriveStruct[d].status_byte |= p1_busy; |
d | 1012 | drivers/block/sbpcd.c | if (st&p2_spinning) DriveStruct[d].status_byte |= p1_spinning; |
d | 1013 | drivers/block/sbpcd.c | if (st&p2_door_locked) DriveStruct[d].status_byte |= p1_door_locked; |
d | 1014 | drivers/block/sbpcd.c | if (st&p2_disk_ok) DriveStruct[d].status_byte |= p1_disk_ok; |
d | 1016 | drivers/block/sbpcd.c | else if (fam1_drive) DriveStruct[d].status_byte=st; |
d | 1078 | drivers/block/sbpcd.c | DriveStruct[d].status_byte=0; |
d | 1128 | drivers/block/sbpcd.c | DriveStruct[d].error_byte=0; |
d | 1133 | drivers/block/sbpcd.c | DriveStruct[d].error_byte=infobuf[i]; |
d | 1134 | drivers/block/sbpcd.c | DPRINTF((DBG_ERR,"SBPCD: xx_ReadError: infobuf[%d] is %d (%02X)\n",i,DriveStruct[d].error_byte,DriveStruct[d].error_byte)); |
d | 1165 | drivers/block/sbpcd.c | if (DriveStruct[d].in_SpinUp != 0) DPRINTF((DBG_SPI,"SBPCD: to CDi_stat_loop.\n")); |
d | 1174 | drivers/block/sbpcd.c | if (DriveStruct[d].in_SpinUp != 0) DPRINTF((DBG_SPI,"SBPCD: to xx_ReadStatus.\n")); |
d | 1180 | drivers/block/sbpcd.c | if (DriveStruct[d].in_SpinUp != 0) DPRINTF((DBG_SPI,"SBPCD: to ResponseStatus.\n")); |
d | 1197 | drivers/block/sbpcd.c | if (DriveStruct[d].in_SpinUp != 0) DPRINTF((DBG_SPI,"SBPCD: to xx_ReadError.\n")); |
d | 1199 | drivers/block/sbpcd.c | if (DriveStruct[d].in_SpinUp != 0) DPRINTF((DBG_SPI,"SBPCD: to cmd_out OK.\n")); |
d | 1251 | drivers/block/sbpcd.c | DriveStruct[d].in_SpinUp = 1; |
d | 1272 | drivers/block/sbpcd.c | DriveStruct[d].in_SpinUp = 0; |
d | 1345 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~volume_bit; |
d | 1347 | drivers/block/sbpcd.c | channel0=DriveStruct[d].vol_chan0; |
d | 1348 | drivers/block/sbpcd.c | volume0=DriveStruct[d].vol_ctrl0; |
d | 1349 | drivers/block/sbpcd.c | channel1=control1=DriveStruct[d].vol_chan1; |
d | 1350 | drivers/block/sbpcd.c | volume1=value1=DriveStruct[d].vol_ctrl1; |
d | 1353 | drivers/block/sbpcd.c | if (((DriveStruct[d].drv_options&audio_mono)!=0)&&(DriveStruct[d].drv_type>=drv_211)) |
d | 1422 | drivers/block/sbpcd.c | if (DriveStruct[d].drv_type>=drv_300) |
d | 1434 | drivers/block/sbpcd.c | if (DriveStruct[d].drv_type<drv_211) |
d | 1467 | drivers/block/sbpcd.c | else if (DriveStruct[d].drv_type<drv_201) volume0=volume1=value0; |
d | 1469 | drivers/block/sbpcd.c | if (DriveStruct[d].drv_type>=drv_201) |
d | 1474 | drivers/block/sbpcd.c | if (DriveStruct[d].drv_type>=drv_211) |
d | 1489 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= volume_bit; |
d | 1530 | drivers/block/sbpcd.c | if (DriveStruct[d].error_byte!=aud_12) return -1; |
d | 1538 | drivers/block/sbpcd.c | if (!(DriveStruct[d].drv_options&(speed_auto|speed_300|speed_150))) return (0); |
d | 1540 | drivers/block/sbpcd.c | if (!(DriveStruct[d].drv_options&speed_auto)) |
d | 1543 | drivers/block/sbpcd.c | if (!(DriveStruct[d].drv_options&speed_300)) speed=0; |
d | 1563 | drivers/block/sbpcd.c | DriveStruct[d].CD_changed=1; |
d | 1611 | drivers/block/sbpcd.c | DPRINTF((DBG_LCK,"SBPCD: yy_LockDoor: %d (drive %d)\n", lock, d)); |
d | 1643 | drivers/block/sbpcd.c | DPRINTF((DBG_LCK,"SBPCD: yy_CloseTray (drive %d)\n", d)); |
d | 1675 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~subq_bit; |
d | 1714 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_ctl_adr=DriveStruct[d].SubQ_trk=DriveStruct[d].SubQ_pnt_idx=DriveStruct[d].SubQ_whatisthis=0; |
d | 1715 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_run_tot=DriveStruct[d].SubQ_run_trk=0; |
d | 1719 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_ctl_adr=swap_nibbles(infobuf[1]); |
d | 1720 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_trk=byt2bcd(infobuf[2]); |
d | 1721 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_pnt_idx=byt2bcd(infobuf[3]); |
d | 1724 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_run_tot=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ |
d | 1727 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_run_trk=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ |
d | 1728 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_whatisthis=infobuf[i+3]; |
d | 1729 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= subq_bit; |
d | 1738 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~frame_size_bit; |
d | 1758 | drivers/block/sbpcd.c | if (fam1_drive) DriveStruct[d].sense_byte=infobuf[i++]; |
d | 1759 | drivers/block/sbpcd.c | else if (fam0L_drive) DriveStruct[d].sense_byte=0; |
d | 1760 | drivers/block/sbpcd.c | DriveStruct[d].frame_size=make16(infobuf[i],infobuf[i+1]); |
d | 1769 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= frame_size_bit; |
d | 1779 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~frame_size_bit; |
d | 1781 | drivers/block/sbpcd.c | DriveStruct[d].frame_size=framesize; |
d | 1782 | drivers/block/sbpcd.c | if (framesize==CD_FRAMESIZE_RAW) DriveStruct[d].sense_byte=0x82; |
d | 1783 | drivers/block/sbpcd.c | else DriveStruct[d].sense_byte=0x00; |
d | 1786 | drivers/block/sbpcd.c | DriveStruct[d].sense_byte, DriveStruct[d].frame_size)); |
d | 1792 | drivers/block/sbpcd.c | drvcmd[2]=DriveStruct[d].sense_byte; |
d | 1793 | drivers/block/sbpcd.c | drvcmd[3]=(DriveStruct[d].frame_size>>8)&0xFF; |
d | 1794 | drivers/block/sbpcd.c | drvcmd[4]=DriveStruct[d].frame_size&0xFF; |
d | 1801 | drivers/block/sbpcd.c | drvcmd[2]=(DriveStruct[d].frame_size>>8)&0xFF; |
d | 1802 | drivers/block/sbpcd.c | drvcmd[3]=DriveStruct[d].frame_size&0xFF; |
d | 1812 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= frame_size_bit; |
d | 1823 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~volume_bit; |
d | 1891 | drivers/block/sbpcd.c | if (DriveStruct[d].drv_type>=drv_201) |
d | 1893 | drivers/block/sbpcd.c | if (DriveStruct[d].drv_type<drv_300) |
d | 1898 | drivers/block/sbpcd.c | if (DriveStruct[d].drv_type>=drv_211) |
d | 1916 | drivers/block/sbpcd.c | DriveStruct[d].vol_chan0=chan0; |
d | 1917 | drivers/block/sbpcd.c | DriveStruct[d].vol_ctrl0=vol0; |
d | 1918 | drivers/block/sbpcd.c | DriveStruct[d].vol_chan1=chan1; |
d | 1919 | drivers/block/sbpcd.c | DriveStruct[d].vol_ctrl1=vol1; |
d | 1920 | drivers/block/sbpcd.c | DriveStruct[d].vol_chan2=2; |
d | 1921 | drivers/block/sbpcd.c | DriveStruct[d].vol_ctrl2=0xFF; |
d | 1922 | drivers/block/sbpcd.c | DriveStruct[d].vol_chan3=3; |
d | 1923 | drivers/block/sbpcd.c | DriveStruct[d].vol_ctrl3=0xFF; |
d | 1924 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= volume_bit; |
d | 1934 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~cd_size_bit; |
d | 1959 | drivers/block/sbpcd.c | if (fam1_drive) DriveStruct[d].CDsize_frm=msf2blk(make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])))+CD_BLOCK_OFFSET; |
d | 1960 | drivers/block/sbpcd.c | else if (fam0_drive) DriveStruct[d].CDsize_frm=make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])); |
d | 1961 | drivers/block/sbpcd.c | else if (fam2_drive) DriveStruct[d].CDsize_frm=make32(make16(infobuf[0],infobuf[1]),make16(infobuf[2],infobuf[3])); |
d | 1962 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= cd_size_bit; |
d | 1970 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~toc_bit; |
d | 1990 | drivers/block/sbpcd.c | DriveStruct[d].f_multisession=0; |
d | 2000 | drivers/block/sbpcd.c | DriveStruct[d].xa_byte=infobuf[0]; |
d | 2003 | drivers/block/sbpcd.c | DriveStruct[d].first_session=infobuf[1]; |
d | 2004 | drivers/block/sbpcd.c | DriveStruct[d].last_session=infobuf[2]; |
d | 2005 | drivers/block/sbpcd.c | DriveStruct[d].n_first_track=infobuf[3]; |
d | 2006 | drivers/block/sbpcd.c | DriveStruct[d].n_last_track=infobuf[4]; |
d | 2007 | drivers/block/sbpcd.c | if (DriveStruct[d].first_session!=DriveStruct[d].last_session) |
d | 2009 | drivers/block/sbpcd.c | DriveStruct[d].f_multisession=1; |
d | 2010 | drivers/block/sbpcd.c | DriveStruct[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7]))); |
d | 2013 | drivers/block/sbpcd.c | if (DriveStruct[d].first_session!=DriveStruct[d].last_session) |
d | 2015 | drivers/block/sbpcd.c | if (DriveStruct[d].last_session<=20) |
d | 2016 | drivers/block/sbpcd.c | zwanzig=DriveStruct[d].last_session+1; |
d | 2018 | drivers/block/sbpcd.c | for (count=DriveStruct[d].first_session;count<zwanzig;count++) |
d | 2028 | drivers/block/sbpcd.c | DriveStruct[d].msf_multi_n[count]=make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7])); |
d | 2030 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= multisession_bit; |
d | 2041 | drivers/block/sbpcd.c | DriveStruct[d].size_msf=make32(make16(0,infobuf[2]),make16(infobuf[3],infobuf[4])); |
d | 2042 | drivers/block/sbpcd.c | DriveStruct[d].size_blk=msf2blk(DriveStruct[d].size_msf); |
d | 2046 | drivers/block/sbpcd.c | DriveStruct[d].n_first_track=infobuf[1]; |
d | 2047 | drivers/block/sbpcd.c | DriveStruct[d].n_last_track=infobuf[2]; |
d | 2048 | drivers/block/sbpcd.c | DriveStruct[d].size_msf=make32(make16(0,infobuf[3]),make16(infobuf[4],infobuf[5])); |
d | 2049 | drivers/block/sbpcd.c | DriveStruct[d].size_blk=msf2blk(DriveStruct[d].size_msf); |
d | 2050 | drivers/block/sbpcd.c | if (famL_drive) DriveStruct[d].CDsize_frm=DriveStruct[d].size_blk+1; |
d | 2052 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= toc_bit; |
d | 2054 | drivers/block/sbpcd.c | DriveStruct[d].xa_byte, |
d | 2055 | drivers/block/sbpcd.c | DriveStruct[d].n_first_track, |
d | 2056 | drivers/block/sbpcd.c | DriveStruct[d].n_last_track, |
d | 2057 | drivers/block/sbpcd.c | DriveStruct[d].size_msf)); |
d | 2096 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_nixbyte=infobuf[0]; |
d | 2099 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]); |
d | 2102 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_number=infobuf[i++]; |
d | 2103 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_format=infobuf[i]; |
d | 2108 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_address=make32(make16(0,infobuf[i]), |
d | 2111 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_nixbyte, DriveStruct[d].TocEnt_ctl_adr, |
d | 2112 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_number, DriveStruct[d].TocEnt_format, |
d | 2113 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_address)); |
d | 2141 | drivers/block/sbpcd.c | if (fam1_drive) DriveStruct[d].UPC_buf[i]=swap_nibbles(*p++); |
d | 2144 | drivers/block/sbpcd.c | DriveStruct[d].UPC_buf[i]=((*p++)<<4)&0xFF; |
d | 2145 | drivers/block/sbpcd.c | DriveStruct[d].UPC_buf[i] |= *p++; |
d | 2152 | drivers/block/sbpcd.c | DriveStruct[d].UPC_buf[6] &= 0xF0; |
d | 2165 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~upc_bit; |
d | 2222 | drivers/block/sbpcd.c | DriveStruct[d].UPC_ctl_adr=0; |
d | 2228 | drivers/block/sbpcd.c | DriveStruct[d].UPC_ctl_adr = (DriveStruct[d].TocEnt_ctl_adr & 0xF0) | 0x02; |
d | 2232 | drivers/block/sbpcd.c | DPRINTF((DBG_UPC,"(%02X) ", DriveStruct[d].UPC_ctl_adr)); |
d | 2235 | drivers/block/sbpcd.c | DPRINTF((DBG_UPC,"%02X ", DriveStruct[d].UPC_buf[i])); |
d | 2239 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= upc_bit; |
d | 2248 | drivers/block/sbpcd.c | DriveStruct[d].f_multisession=0; |
d | 2249 | drivers/block/sbpcd.c | DriveStruct[d].lba_multi=0; |
d | 2261 | drivers/block/sbpcd.c | DriveStruct[d].f_multisession=1; |
d | 2262 | drivers/block/sbpcd.c | DriveStruct[d].lba_multi=msf2blk(make32(make16(0,infobuf[1]), |
d | 2267 | drivers/block/sbpcd.c | DriveStruct[d].lba_multi)); |
d | 2279 | drivers/block/sbpcd.c | DriveStruct[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]), |
d | 2284 | drivers/block/sbpcd.c | DriveStruct[d].lba_multi)); |
d | 2285 | drivers/block/sbpcd.c | if (DriveStruct[d].lba_multi>200) |
d | 2287 | drivers/block/sbpcd.c | DPRINTF((DBG_MUL,"SBPCD: MultiSession base: %06X\n", DriveStruct[d].lba_multi)); |
d | 2288 | drivers/block/sbpcd.c | DriveStruct[d].f_multisession=1; |
d | 2302 | drivers/block/sbpcd.c | if (DriveStruct[d].audio_state!=audio_playing) return (-ENODATA); |
d | 2313 | drivers/block/sbpcd.c | DriveStruct[d].frame_size=CD_FRAMESIZE_SUB; |
d | 2421 | drivers/block/sbpcd.c | printk("SBPCD: address %03X, type %s, drive ID %d\n", CDo_command, type, DriveStruct[d].drv_id); |
d | 2435 | drivers/block/sbpcd.c | DriveStruct[d].drv_type=0; |
d | 2451 | drivers/block/sbpcd.c | OUT(CDo_enable,DriveStruct[d].drv_sel); |
d | 2471 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[0]='C'; |
d | 2472 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[1]='D'; |
d | 2473 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[2]='2'; |
d | 2474 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[3]='0'; |
d | 2475 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[4]='0'; |
d | 2476 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[5]=infobuf[i++]; |
d | 2477 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[6]=infobuf[i++]; |
d | 2478 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[7]=0; |
d | 2479 | drivers/block/sbpcd.c | DriveStruct[d].drv_type=drv_fam2; |
d | 2483 | drivers/block/sbpcd.c | if (!DriveStruct[d].drv_type) |
d | 2514 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[0]='C'; |
d | 2515 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[1]='R'; |
d | 2516 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[2]='-'; |
d | 2517 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[3]='5'; |
d | 2518 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[4]=infobuf[i++]; |
d | 2519 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[5]=infobuf[i++]; |
d | 2520 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[6]=0; |
d | 2521 | drivers/block/sbpcd.c | DriveStruct[d].drv_type=drv_fam1; |
d | 2523 | drivers/block/sbpcd.c | if (!DriveStruct[d].drv_type) |
d | 2528 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[0]='C'; |
d | 2529 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[1]='R'; |
d | 2530 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[2]='-'; |
d | 2531 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[3]='5'; |
d | 2532 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[4]='2'; |
d | 2533 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[5]='x'; |
d | 2534 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[6]=0; |
d | 2535 | drivers/block/sbpcd.c | DriveStruct[d].drv_type=drv_fam0; |
d | 2538 | drivers/block/sbpcd.c | if (!DriveStruct[d].drv_type) |
d | 2544 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[j]=infobuf[j]; |
d | 2545 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[8]=0; |
d | 2546 | drivers/block/sbpcd.c | DriveStruct[d].drv_type=drv_famL; |
d | 2550 | drivers/block/sbpcd.c | if (!DriveStruct[d].drv_type) |
d | 2555 | drivers/block/sbpcd.c | for (j=0;j<4;j++) DriveStruct[d].firmware_version[j]=infobuf[i+j]; |
d | 2561 | drivers/block/sbpcd.c | if (DriveStruct[d].firmware_version[j]!=lcs_firm[i][j]) break; |
d | 2565 | drivers/block/sbpcd.c | DriveStruct[d].drv_type=drv_260; |
d | 2569 | drivers/block/sbpcd.c | j = (DriveStruct[d].firmware_version[0] & 0x0F) * 100 + |
d | 2570 | drivers/block/sbpcd.c | (DriveStruct[d].firmware_version[2] & 0x0F) *10 + |
d | 2571 | drivers/block/sbpcd.c | (DriveStruct[d].firmware_version[3] & 0x0F); |
d | 2574 | drivers/block/sbpcd.c | if (j<200) DriveStruct[d].drv_type=drv_199; |
d | 2575 | drivers/block/sbpcd.c | else if (j<201) DriveStruct[d].drv_type=drv_200; |
d | 2576 | drivers/block/sbpcd.c | else if (j<210) DriveStruct[d].drv_type=drv_201; |
d | 2577 | drivers/block/sbpcd.c | else if (j<211) DriveStruct[d].drv_type=drv_210; |
d | 2578 | drivers/block/sbpcd.c | else if (j<300) DriveStruct[d].drv_type=drv_211; |
d | 2579 | drivers/block/sbpcd.c | else if (j>=300) DriveStruct[d].drv_type=drv_300; |
d | 2583 | drivers/block/sbpcd.c | if (j<100) DriveStruct[d].drv_type=drv_099; |
d | 2586 | drivers/block/sbpcd.c | DriveStruct[d].drv_type=drv_100; |
d | 2593 | drivers/block/sbpcd.c | DriveStruct[d].firmware_version); |
d | 2598 | drivers/block/sbpcd.c | DPRINTF((DBG_LCS,"SBPCD: drive type %02X\n",DriveStruct[d].drv_type)); |
d | 2605 | drivers/block/sbpcd.c | d=i; |
d | 2606 | drivers/block/sbpcd.c | if (DriveStruct[d].drv_id!=-1) |
d | 2608 | drivers/block/sbpcd.c | OUT(CDo_enable,DriveStruct[d].drv_sel); |
d | 2609 | drivers/block/sbpcd.c | DPRINTF((DBG_DID,"SBPCD: drive %d (ID=%d) activated.\n", i, DriveStruct[d].drv_id)); |
d | 2637 | drivers/block/sbpcd.c | DriveStruct[d].drv_options=drv_pattern[j]; |
d | 2638 | drivers/block/sbpcd.c | if (fam0L_drive) DriveStruct[d].drv_options&=~(speed_auto|speed_300|speed_150); |
d | 2639 | drivers/block/sbpcd.c | printk("%sDrive %d (ID=%d): %.9s (%.4s)\n", printk_header, d, |
d | 2640 | drivers/block/sbpcd.c | DriveStruct[d].drv_id, |
d | 2641 | drivers/block/sbpcd.c | DriveStruct[d].drive_model, |
d | 2642 | drivers/block/sbpcd.c | DriveStruct[d].firmware_version); |
d | 2787 | drivers/block/sbpcd.c | i=msf2blk(DriveStruct[d].pos_audio_end)-1; |
d | 2796 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~toc_bit; |
d | 2797 | drivers/block/sbpcd.c | DriveStruct[d].ored_ctl_adr=0; |
d | 2798 | drivers/block/sbpcd.c | for (j=DriveStruct[d].n_first_track;j<=DriveStruct[d].n_last_track;j++) |
d | 2802 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].nixbyte=DriveStruct[d].TocEnt_nixbyte; |
d | 2803 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].ctl_adr=DriveStruct[d].TocEnt_ctl_adr; |
d | 2804 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].number=DriveStruct[d].TocEnt_number; |
d | 2805 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].format=DriveStruct[d].TocEnt_format; |
d | 2806 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].address=DriveStruct[d].TocEnt_address; |
d | 2807 | drivers/block/sbpcd.c | DriveStruct[d].ored_ctl_adr |= DriveStruct[d].TocEnt_ctl_adr; |
d | 2810 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].nixbyte=0; |
d | 2811 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].ctl_adr=0; |
d | 2812 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].number=CDROM_LEADOUT; |
d | 2813 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].format=0; |
d | 2814 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].address=DriveStruct[d].size_msf; |
d | 2816 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= toc_bit; |
d | 2824 | drivers/block/sbpcd.c | DriveStruct[d].mode=READ_M1; |
d | 2868 | drivers/block/sbpcd.c | i=xx_ReadTocEntry(DriveStruct[d].n_first_track); |
d | 2881 | drivers/block/sbpcd.c | if ((fam0L_drive) && (DriveStruct[d].xa_byte==0x20)) /* XA disk with old drive */ |
d | 2906 | drivers/block/sbpcd.c | if (DriveStruct[d].CD_changed==0xFF) |
d | 2910 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags=0; |
d | 2912 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=0; |
d | 2923 | drivers/block/sbpcd.c | DriveStruct[d].CD_changed=1; |
d | 2934 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags=0; |
d | 2936 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=0; |
d | 2944 | drivers/block/sbpcd.c | if (DriveStruct[d].audio_state!=audio_pausing) |
d | 2952 | drivers/block/sbpcd.c | if (DriveStruct[d].audio_state==audio_playing) seek_pos_audio_end(); |
d | 2953 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=0; |
d | 2962 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags=0; |
d | 2964 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=0; |
d | 2978 | drivers/block/sbpcd.c | if (DriveStruct[d].audio_state==audio_playing) return (-EINVAL); |
d | 3117 | drivers/block/sbpcd.c | switch (DriveStruct[d].audio_state) |
d | 3126 | drivers/block/sbpcd.c | DriveStruct[d].pos_audio_start=DriveStruct[d].SubQ_run_tot; |
d | 3127 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=audio_pausing; |
d | 3130 | drivers/block/sbpcd.c | i=xx_Seek(DriveStruct[d].pos_audio_start,1); |
d | 3142 | drivers/block/sbpcd.c | if (DriveStruct[d].audio_state!=audio_pausing) return -EINVAL; |
d | 3144 | drivers/block/sbpcd.c | i=xx_PlayAudio(DriveStruct[d].pos_audio_start, |
d | 3145 | drivers/block/sbpcd.c | DriveStruct[d].pos_audio_end); |
d | 3148 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=audio_playing; |
d | 3153 | drivers/block/sbpcd.c | if (DriveStruct[d].audio_state==audio_playing) |
d | 3159 | drivers/block/sbpcd.c | DriveStruct[d].pos_audio_start=DriveStruct[d].SubQ_run_tot; |
d | 3160 | drivers/block/sbpcd.c | i=xx_Seek(DriveStruct[d].pos_audio_start,1); |
d | 3166 | drivers/block/sbpcd.c | DriveStruct[d].pos_audio_start = (msf.cdmsf_min0<<16) | |
d | 3169 | drivers/block/sbpcd.c | DriveStruct[d].pos_audio_end = (msf.cdmsf_min1<<16) | |
d | 3173 | drivers/block/sbpcd.c | DriveStruct[d].pos_audio_start,DriveStruct[d].pos_audio_end)); |
d | 3174 | drivers/block/sbpcd.c | i=xx_PlayAudio(DriveStruct[d].pos_audio_start,DriveStruct[d].pos_audio_end); |
d | 3179 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=audio_playing; |
d | 3184 | drivers/block/sbpcd.c | if (DriveStruct[d].audio_state==audio_playing) |
d | 3199 | drivers/block/sbpcd.c | if (ti.cdti_trk0<DriveStruct[d].n_first_track) return (-EINVAL); |
d | 3200 | drivers/block/sbpcd.c | if (ti.cdti_trk0>DriveStruct[d].n_last_track) return (-EINVAL); |
d | 3202 | drivers/block/sbpcd.c | if (ti.cdti_trk1>DriveStruct[d].n_last_track) ti.cdti_trk1=DriveStruct[d].n_last_track; |
d | 3203 | drivers/block/sbpcd.c | DriveStruct[d].pos_audio_start=DriveStruct[d].TocBuffer[ti.cdti_trk0].address; |
d | 3204 | drivers/block/sbpcd.c | DriveStruct[d].pos_audio_end=DriveStruct[d].TocBuffer[ti.cdti_trk1+1].address; |
d | 3205 | drivers/block/sbpcd.c | i=xx_PlayAudio(DriveStruct[d].pos_audio_start,DriveStruct[d].pos_audio_end); |
d | 3209 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=audio_playing; |
d | 3214 | drivers/block/sbpcd.c | tochdr.cdth_trk0=DriveStruct[d].n_first_track; |
d | 3215 | drivers/block/sbpcd.c | tochdr.cdth_trk1=DriveStruct[d].n_last_track; |
d | 3227 | drivers/block/sbpcd.c | if (i==CDROM_LEADOUT) i=DriveStruct[d].n_last_track+1; |
d | 3228 | drivers/block/sbpcd.c | else if (i<DriveStruct[d].n_first_track||i>DriveStruct[d].n_last_track) return (-EINVAL); |
d | 3229 | drivers/block/sbpcd.c | tocentry.cdte_adr=DriveStruct[d].TocBuffer[i].ctl_adr&0x0F; |
d | 3230 | drivers/block/sbpcd.c | tocentry.cdte_ctrl=(DriveStruct[d].TocBuffer[i].ctl_adr>>4)&0x0F; |
d | 3231 | drivers/block/sbpcd.c | tocentry.cdte_datamode=DriveStruct[d].TocBuffer[i].format; |
d | 3233 | drivers/block/sbpcd.c | { tocentry.cdte_addr.msf.minute=(DriveStruct[d].TocBuffer[i].address>>16)&0x00FF; |
d | 3234 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.second=(DriveStruct[d].TocBuffer[i].address>>8)&0x00FF; |
d | 3235 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.frame=DriveStruct[d].TocBuffer[i].address&0x00FF; |
d | 3238 | drivers/block/sbpcd.c | tocentry.cdte_addr.lba=msf2blk(DriveStruct[d].TocBuffer[i].address); |
d | 3248 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=0; |
d | 3254 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=0; |
d | 3262 | drivers/block/sbpcd.c | DriveStruct[d].open_count=0; /* to get it locked next time again */ |
d | 3266 | drivers/block/sbpcd.c | DriveStruct[d].CD_changed=0xFF; |
d | 3267 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags=0; |
d | 3268 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=0; |
d | 3274 | drivers/block/sbpcd.c | DriveStruct[d].f_eject=arg; |
d | 3282 | drivers/block/sbpcd.c | DriveStruct[d].vol_chan0=0; |
d | 3283 | drivers/block/sbpcd.c | DriveStruct[d].vol_ctrl0=volctrl.channel0; |
d | 3284 | drivers/block/sbpcd.c | DriveStruct[d].vol_chan1=1; |
d | 3285 | drivers/block/sbpcd.c | DriveStruct[d].vol_ctrl1=volctrl.channel1; |
d | 3297 | drivers/block/sbpcd.c | switch (DriveStruct[d].audio_state) |
d | 3309 | drivers/block/sbpcd.c | SC.cdsc_adr=DriveStruct[d].SubQ_ctl_adr; |
d | 3310 | drivers/block/sbpcd.c | SC.cdsc_ctrl=DriveStruct[d].SubQ_ctl_adr>>4; |
d | 3311 | drivers/block/sbpcd.c | SC.cdsc_trk=bcd2bin(DriveStruct[d].SubQ_trk); |
d | 3312 | drivers/block/sbpcd.c | SC.cdsc_ind=bcd2bin(DriveStruct[d].SubQ_pnt_idx); |
d | 3315 | drivers/block/sbpcd.c | SC.cdsc_absaddr.lba=msf2blk(DriveStruct[d].SubQ_run_tot); |
d | 3316 | drivers/block/sbpcd.c | SC.cdsc_reladdr.lba=msf2blk(DriveStruct[d].SubQ_run_trk); |
d | 3320 | drivers/block/sbpcd.c | SC.cdsc_absaddr.msf.minute=(DriveStruct[d].SubQ_run_tot>>16)&0x00FF; |
d | 3321 | drivers/block/sbpcd.c | SC.cdsc_absaddr.msf.second=(DriveStruct[d].SubQ_run_tot>>8)&0x00FF; |
d | 3322 | drivers/block/sbpcd.c | SC.cdsc_absaddr.msf.frame=DriveStruct[d].SubQ_run_tot&0x00FF; |
d | 3323 | drivers/block/sbpcd.c | SC.cdsc_reladdr.msf.minute=(DriveStruct[d].SubQ_run_trk>>16)&0x00FF; |
d | 3324 | drivers/block/sbpcd.c | SC.cdsc_reladdr.msf.second=(DriveStruct[d].SubQ_run_trk>>8)&0x00FF; |
d | 3325 | drivers/block/sbpcd.c | SC.cdsc_reladdr.msf.frame=DriveStruct[d].SubQ_run_trk&0x00FF; |
d | 3339 | drivers/block/sbpcd.c | DriveStruct[d].mode=READ_M1; |
d | 3346 | drivers/block/sbpcd.c | DriveStruct[d].mode=READ_M2; |
d | 3365 | drivers/block/sbpcd.c | if (DriveStruct[d].aud_buf==NULL) return (-EINVAL); |
d | 3390 | drivers/block/sbpcd.c | DriveStruct[d].mode=READ_AU; |
d | 3468 | drivers/block/sbpcd.c | p = DriveStruct[d].aud_buf; |
d | 3521 | drivers/block/sbpcd.c | DriveStruct[d].status_byte)); |
d | 3533 | drivers/block/sbpcd.c | (u_char *) DriveStruct[d].aud_buf, |
d | 3540 | drivers/block/sbpcd.c | DriveStruct[d].mode=READ_M1; |
d | 3557 | drivers/block/sbpcd.c | lba2msf(DriveStruct[d].lba_multi,&ms_info.addr.msf.minute); |
d | 3559 | drivers/block/sbpcd.c | ms_info.addr.lba=DriveStruct[d].lba_multi; |
d | 3561 | drivers/block/sbpcd.c | if (DriveStruct[d].f_multisession) ms_info.xa_flag=1; /* valid redirection address */ |
d | 3591 | drivers/block/sbpcd.c | (CURRENT->sector/4 >= DriveStruct[d].sbp_first_frame) && |
d | 3592 | drivers/block/sbpcd.c | (CURRENT->sector/4 <= DriveStruct[d].sbp_last_frame) ) |
d | 3594 | drivers/block/sbpcd.c | offs = (CURRENT->sector - DriveStruct[d].sbp_first_frame * 4) * 512; |
d | 3595 | drivers/block/sbpcd.c | memcpy(CURRENT->buffer, DriveStruct[d].sbp_buf + offs, 512); |
d | 3656 | drivers/block/sbpcd.c | if ((fam0L_drive) && (DriveStruct[d].xa_byte==0x20)) /* XA disk with old drive */ |
d | 3704 | drivers/block/sbpcd.c | DriveStruct[d].sbp_first_frame=DriveStruct[d].sbp_last_frame=-1; /* purge buffer */ |
d | 3706 | drivers/block/sbpcd.c | if (block+SBP_BUFFER_FRAMES <= DriveStruct[d].CDsize_frm) |
d | 3707 | drivers/block/sbpcd.c | DriveStruct[d].sbp_read_frames = SBP_BUFFER_FRAMES; |
d | 3710 | drivers/block/sbpcd.c | DriveStruct[d].sbp_read_frames=DriveStruct[d].CDsize_frm-block; |
d | 3712 | drivers/block/sbpcd.c | if (DriveStruct[d].sbp_read_frames < 1) |
d | 3715 | drivers/block/sbpcd.c | block, DriveStruct[d].CDsize_frm)); |
d | 3716 | drivers/block/sbpcd.c | DriveStruct[d].sbp_read_frames=1; |
d | 3719 | drivers/block/sbpcd.c | DriveStruct[d].sbp_current = 0; |
d | 3729 | drivers/block/sbpcd.c | if (DriveStruct[d].xa_byte==0x20) |
d | 3737 | drivers/block/sbpcd.c | drvcmd[5]=DriveStruct[d].sbp_read_frames; |
d | 3744 | drivers/block/sbpcd.c | if (DriveStruct[d].drv_type>=drv_201) |
d | 3758 | drivers/block/sbpcd.c | drvcmd[5]=DriveStruct[d].sbp_read_frames; |
d | 3759 | drivers/block/sbpcd.c | drvcmd[6]=(DriveStruct[d].drv_type<drv_201)?0:2; /* flag "lba or msf-bcd format" */ |
d | 3768 | drivers/block/sbpcd.c | drvcmd[6]=DriveStruct[d].sbp_read_frames; |
d | 3775 | drivers/block/sbpcd.c | drvcmd[5]=DriveStruct[d].sbp_read_frames; |
d | 3802 | drivers/block/sbpcd.c | for (frame=DriveStruct[d].sbp_current;frame<DriveStruct[d].sbp_read_frames&&!error_flag; frame++) |
d | 3834 | drivers/block/sbpcd.c | if ((DriveStruct[d].ored_ctl_adr&0x40)==0) |
d | 3843 | drivers/block/sbpcd.c | p = DriveStruct[d].sbp_buf + frame * CD_FRAMESIZE; |
d | 3850 | drivers/block/sbpcd.c | DriveStruct[d].sbp_current++; |
d | 3913 | drivers/block/sbpcd.c | DriveStruct[d].status_byte)); |
d | 3925 | drivers/block/sbpcd.c | DriveStruct[d].sbp_first_frame = CURRENT -> sector / 4; |
d | 3926 | drivers/block/sbpcd.c | DriveStruct[d].sbp_last_frame = DriveStruct[d].sbp_first_frame + DriveStruct[d].sbp_read_frames - 1; |
d | 3972 | drivers/block/sbpcd.c | DPRINTF((DBG_STA,"SBPCD: sbpcd_open: status %02X\n", DriveStruct[d].status_byte)); |
d | 3989 | drivers/block/sbpcd.c | DriveStruct[d].open_count,DriveStruct[d].open_count+1)); |
d | 3990 | drivers/block/sbpcd.c | if (++DriveStruct[d].open_count==1) |
d | 3999 | drivers/block/sbpcd.c | if ((DriveStruct[d].ored_ctl_adr&0x40)==0) |
d | 4019 | drivers/block/sbpcd.c | DriveStruct[d].sbp_first_frame=DriveStruct[d].sbp_last_frame=-1; |
d | 4028 | drivers/block/sbpcd.c | DriveStruct[d].open_count,DriveStruct[d].open_count-1)); |
d | 4029 | drivers/block/sbpcd.c | if (DriveStruct[d].open_count!=0) /* CDROMEJECT may have been done */ |
d | 4031 | drivers/block/sbpcd.c | if (--DriveStruct[d].open_count==0) |
d | 4036 | drivers/block/sbpcd.c | if (DriveStruct[d].f_eject) yy_SpinDown(); |
d | 4037 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~cd_size_bit; |
d | 4277 | drivers/block/sbpcd.c | DriveStruct[d].sbp_first_frame = -1; /* First frame in buffer */ |
d | 4278 | drivers/block/sbpcd.c | DriveStruct[d].sbp_last_frame = -1; /* Last frame in buffer */ |
d | 4279 | drivers/block/sbpcd.c | DriveStruct[d].sbp_read_frames = 0; /* Number of frames being read to buffer */ |
d | 4280 | drivers/block/sbpcd.c | DriveStruct[d].sbp_current = 0; /* Frame being currently read */ |
d | 4281 | drivers/block/sbpcd.c | DriveStruct[d].CD_changed=1; |
d | 4282 | drivers/block/sbpcd.c | DriveStruct[d].frame_size=CD_FRAMESIZE; |
d | 4284 | drivers/block/sbpcd.c | if (!fam0_drive) DriveStruct[d].f_eject=1; |
d | 4285 | drivers/block/sbpcd.c | else DriveStruct[d].f_eject=0; |
d | 4287 | drivers/block/sbpcd.c | DriveStruct[d].f_eject=0; |
d | 4304 | drivers/block/sbpcd.c | DriveStruct[d].error_byte)); |
d | 4305 | drivers/block/sbpcd.c | if (DriveStruct[d].error_byte==aud_12) |
d | 4311 | drivers/block/sbpcd.c | DriveStruct[d].error_byte)); |
d | 4318 | drivers/block/sbpcd.c | if (i>=0) DriveStruct[d].CD_changed=1; |
d | 4452 | drivers/block/sbpcd.c | DPRINTF((DBG_CHK,"SBPCD: media_check: %02X\n",DriveStruct[d].status_byte)); |
d | 4458 | drivers/block/sbpcd.c | if (DriveStruct[d].CD_changed==0xFF) DPRINTF((DBG_CHK,"SBPCD: media_check: \"changed\" assumed.\n")); |
d | 4463 | drivers/block/sbpcd.c | DriveStruct[d].CD_changed=0xFF; |
d | 4468 | drivers/block/sbpcd.c | DriveStruct[d].CD_changed=0xFF; |
d | 4473 | drivers/block/sbpcd.c | if (DriveStruct[d].CD_changed==0xFF) |
d | 4475 | drivers/block/sbpcd.c | DriveStruct[d].CD_changed=1; |
d | 226 | drivers/char/console.c | struct vc_data *d; |
d | 233 | drivers/char/console.c | #define screenbuf_size (vc_cons[currcons].d->vc_screenbuf_size) |
d | 234 | drivers/char/console.c | #define origin (vc_cons[currcons].d->vc_origin) |
d | 235 | drivers/char/console.c | #define scr_end (vc_cons[currcons].d->vc_scr_end) |
d | 236 | drivers/char/console.c | #define pos (vc_cons[currcons].d->vc_pos) |
d | 237 | drivers/char/console.c | #define top (vc_cons[currcons].d->vc_top) |
d | 238 | drivers/char/console.c | #define bottom (vc_cons[currcons].d->vc_bottom) |
d | 239 | drivers/char/console.c | #define x (vc_cons[currcons].d->vc_x) |
d | 240 | drivers/char/console.c | #define y (vc_cons[currcons].d->vc_y) |
d | 241 | drivers/char/console.c | #define vc_state (vc_cons[currcons].d->vc_state) |
d | 242 | drivers/char/console.c | #define npar (vc_cons[currcons].d->vc_npar) |
d | 243 | drivers/char/console.c | #define par (vc_cons[currcons].d->vc_par) |
d | 244 | drivers/char/console.c | #define ques (vc_cons[currcons].d->vc_ques) |
d | 245 | drivers/char/console.c | #define attr (vc_cons[currcons].d->vc_attr) |
d | 246 | drivers/char/console.c | #define saved_x (vc_cons[currcons].d->vc_saved_x) |
d | 247 | drivers/char/console.c | #define saved_y (vc_cons[currcons].d->vc_saved_y) |
d | 248 | drivers/char/console.c | #define translate (vc_cons[currcons].d->vc_translate) |
d | 249 | drivers/char/console.c | #define G0_charset (vc_cons[currcons].d->vc_G0_charset) |
d | 250 | drivers/char/console.c | #define G1_charset (vc_cons[currcons].d->vc_G1_charset) |
d | 251 | drivers/char/console.c | #define saved_G0 (vc_cons[currcons].d->vc_saved_G0) |
d | 252 | drivers/char/console.c | #define saved_G1 (vc_cons[currcons].d->vc_saved_G1) |
d | 253 | drivers/char/console.c | #define utf (vc_cons[currcons].d->vc_utf) |
d | 254 | drivers/char/console.c | #define utf_count (vc_cons[currcons].d->vc_utf_count) |
d | 255 | drivers/char/console.c | #define utf_char (vc_cons[currcons].d->vc_utf_char) |
d | 256 | drivers/char/console.c | #define video_mem_start (vc_cons[currcons].d->vc_video_mem_start) |
d | 257 | drivers/char/console.c | #define video_mem_end (vc_cons[currcons].d->vc_video_mem_end) |
d | 258 | drivers/char/console.c | #define video_erase_char (vc_cons[currcons].d->vc_video_erase_char) |
d | 259 | drivers/char/console.c | #define disp_ctrl (vc_cons[currcons].d->vc_disp_ctrl) |
d | 260 | drivers/char/console.c | #define toggle_meta (vc_cons[currcons].d->vc_toggle_meta) |
d | 261 | drivers/char/console.c | #define decscnm (vc_cons[currcons].d->vc_decscnm) |
d | 262 | drivers/char/console.c | #define decom (vc_cons[currcons].d->vc_decom) |
d | 263 | drivers/char/console.c | #define decawm (vc_cons[currcons].d->vc_decawm) |
d | 264 | drivers/char/console.c | #define deccm (vc_cons[currcons].d->vc_deccm) |
d | 265 | drivers/char/console.c | #define decim (vc_cons[currcons].d->vc_decim) |
d | 266 | drivers/char/console.c | #define deccolm (vc_cons[currcons].d->vc_deccolm) |
d | 267 | drivers/char/console.c | #define need_wrap (vc_cons[currcons].d->vc_need_wrap) |
d | 268 | drivers/char/console.c | #define has_scrolled (vc_cons[currcons].d->vc_has_scrolled) |
d | 269 | drivers/char/console.c | #define kmalloced (vc_cons[currcons].d->vc_kmalloced) |
d | 270 | drivers/char/console.c | #define report_mouse (vc_cons[currcons].d->vc_report_mouse) |
d | 271 | drivers/char/console.c | #define color (vc_cons[currcons].d->vc_color) |
d | 272 | drivers/char/console.c | #define s_color (vc_cons[currcons].d->vc_s_color) |
d | 273 | drivers/char/console.c | #define def_color (vc_cons[currcons].d->vc_def_color) |
d | 276 | drivers/char/console.c | #define charset (vc_cons[currcons].d->vc_charset) |
d | 277 | drivers/char/console.c | #define s_charset (vc_cons[currcons].d->vc_s_charset) |
d | 278 | drivers/char/console.c | #define intensity (vc_cons[currcons].d->vc_intensity) |
d | 279 | drivers/char/console.c | #define underline (vc_cons[currcons].d->vc_underline) |
d | 280 | drivers/char/console.c | #define blink (vc_cons[currcons].d->vc_blink) |
d | 281 | drivers/char/console.c | #define reverse (vc_cons[currcons].d->vc_reverse) |
d | 282 | drivers/char/console.c | #define s_intensity (vc_cons[currcons].d->vc_s_intensity) |
d | 283 | drivers/char/console.c | #define s_underline (vc_cons[currcons].d->vc_s_underline) |
d | 284 | drivers/char/console.c | #define s_blink (vc_cons[currcons].d->vc_s_blink) |
d | 285 | drivers/char/console.c | #define s_reverse (vc_cons[currcons].d->vc_s_reverse) |
d | 286 | drivers/char/console.c | #define ulcolor (vc_cons[currcons].d->vc_ulcolor) |
d | 287 | drivers/char/console.c | #define halfcolor (vc_cons[currcons].d->vc_halfcolor) |
d | 288 | drivers/char/console.c | #define tab_stop (vc_cons[currcons].d->vc_tab_stop) |
d | 316 | drivers/char/console.c | return (i < MAX_NR_CONSOLES && vc_cons[i].d); |
d | 323 | drivers/char/console.c | if (!vc_cons[i].d) { |
d | 342 | drivers/char/console.c | vc_cons[i].d = (struct vc_data *) p; |
d | 346 | drivers/char/console.c | vc_cons[i].d->vc_kmalloced = 1; |
d | 347 | drivers/char/console.c | vc_cons[i].d->vc_screenbuf_size = video_screen_size; |
d | 459 | drivers/char/console.c | kfree_s(vc_cons[currcons].d, structsize); |
d | 460 | drivers/char/console.c | vc_cons[currcons].d = 0; |
d | 616 | drivers/char/console.c | unsigned short * d = (unsigned short *) video_mem_start; |
d | 623 | drivers/char/console.c | scr_writew(scr_readw(s++),d++); |
d | 628 | drivers/char/console.c | scr_writew(video_erase_char, d++); |
d | 635 | drivers/char/console.c | unsigned short * d; |
d | 638 | drivers/char/console.c | d = (unsigned short *) (scr_end - video_size_row); |
d | 642 | drivers/char/console.c | scr_writew(video_erase_char, d++); |
d | 647 | drivers/char/console.c | unsigned short * d = (unsigned short *) (origin+video_size_row*t); |
d | 653 | drivers/char/console.c | scr_writew(scr_readw(s++), d++); |
d | 658 | drivers/char/console.c | scr_writew(video_erase_char, d++); |
d | 665 | drivers/char/console.c | unsigned short *d, *s; |
d | 670 | drivers/char/console.c | d = (unsigned short *) (origin+video_size_row*b); |
d | 675 | drivers/char/console.c | scr_writew(scr_readw(--s), --d); |
d | 680 | drivers/char/console.c | scr_writew(video_erase_char, --d); |
d | 1956 | drivers/char/console.c | vc_cons[currcons].d = (struct vc_data *) kmem_start; |
d | 823 | drivers/char/keyboard.c | int d = diacr; |
d | 828 | drivers/char/keyboard.c | return d; |
d | 831 | drivers/char/keyboard.c | if (accent_table[i].diacr == d && accent_table[i].base == ch) |
d | 835 | drivers/char/keyboard.c | put_queue(d); |
d | 1260 | drivers/char/tty_io.c | char *c, *d; |
d | 1270 | drivers/char/tty_io.c | d = (char *)(ts->tasks+n); |
d | 1272 | drivers/char/tty_io.c | put_fs_byte(*c++, d++); |
d | 549 | drivers/net/3c505.c | short d; |
d | 594 | drivers/net/3c505.c | d = inw(adapter->io_addr+PORT_DATA); |
d | 222 | drivers/net/net_init.c | struct device *d = dev_base; |
d | 249 | drivers/net/net_init.c | while (d->next) |
d | 250 | drivers/net/net_init.c | d = d->next; |
d | 251 | drivers/net/net_init.c | d->next = dev; |
d | 263 | drivers/net/net_init.c | struct device *d = dev_base; |
d | 284 | drivers/net/net_init.c | while (d && (d->next != dev)) |
d | 285 | drivers/net/net_init.c | d = d->next; |
d | 287 | drivers/net/net_init.c | if (d && (d->next == dev)) { |
d | 288 | drivers/net/net_init.c | d->next = dev->next; |
d | 91 | drivers/net/slip.c | static int slip_esc(unsigned char *p, unsigned char *d, int len); |
d | 94 | drivers/net/slip.c | static int slip_esc6(unsigned char *p, unsigned char *d, int len); |
d | 784 | drivers/net/slip.c | slip_esc(unsigned char *s, unsigned char *d, int len) |
d | 786 | drivers/net/slip.c | unsigned char *ptr = d; |
d | 818 | drivers/net/slip.c | return (ptr - d); |
d | 865 | drivers/net/slip.c | slip_esc6(unsigned char *s, unsigned char *d, int len) |
d | 867 | drivers/net/slip.c | unsigned char *ptr = d; |
d | 899 | drivers/net/slip.c | return ptr - d; |
d | 1469 | drivers/scsi/NCR5380.c | register unsigned char *d = *data; |
d | 1502 | drivers/scsi/NCR5380.c | NCR5380_write(OUTPUT_DATA_REG, *d); |
d | 1504 | drivers/scsi/NCR5380.c | *d = NCR5380_read(CURRENT_SCSI_DATA_REG); |
d | 1506 | drivers/scsi/NCR5380.c | ++d; |
d | 1570 | drivers/scsi/NCR5380.c | *data = d; |
d | 1609 | drivers/scsi/NCR5380.c | register unsigned char *d = *data; |
d | 1635 | drivers/scsi/NCR5380.c | "writing", c, (p & SR_IO) ? "to" : "from", (unsigned) d); |
d | 1638 | drivers/scsi/NCR5380.c | NCR5380_dma_read_setup(instance, d, c) : |
d | 1639 | drivers/scsi/NCR5380.c | NCR5380_dma_write_setup(instance, d, c); |
d | 1800 | drivers/scsi/NCR5380.c | if (!(foo = NCR5380_pread(instance, d, c - 1))) { |
d | 1826 | drivers/scsi/NCR5380.c | d[c - 1] = NCR5380_read(INPUT_DATA_REG); |
d | 1830 | drivers/scsi/NCR5380.c | if (!(foo = NCR5380_pwrite(instance, d, c))) { |
d | 1881 | drivers/scsi/NCR5380.c | *data = d + c; |
d | 478 | drivers/scsi/pas16.c | register unsigned char *d = dst; |
d | 485 | drivers/scsi/pas16.c | insb( reg, d, i ); |
d | 317 | drivers/scsi/t128.c | T_DATA_REG_OFFSET), *d = dst; |
d | 328 | drivers/scsi/t128.c | *d++ = *reg; |
d | 83 | drivers/sound/ad1848.c | #define io_Index_Addr(d) ((d)->base) |
d | 84 | drivers/sound/ad1848.c | #define io_Indexed_Data(d) ((d)->base+1) |
d | 85 | drivers/sound/ad1848.c | #define io_Status(d) ((d)->base+2) |
d | 86 | drivers/sound/ad1848.c | #define io_Polled_IO(d) ((d)->base+3) |
d | 55 | drivers/sound/os.h | #define COPY_FROM_USER(d, s, o, c) memcpy_fromfs((d), &((s)[o]), (c)) |
d | 56 | drivers/sound/os.h | #define COPY_TO_USER(d, o, s, c) memcpy_tofs(&((d)[o]), (s), (c)) |
d | 57 | drivers/sound/os.h | #define IOCTL_FROM_USER(d, s, o, c) memcpy_fromfs((d), &((s)[o]), (c)) |
d | 58 | drivers/sound/os.h | #define IOCTL_TO_USER(d, o, s, c) memcpy_tofs(&((d)[o]), (s), (c)) |
d | 31 | fs/msdos/msbuffer.h | #define bread(d,b,s) msdos_bread(sb,b) |
d | 32 | fs/msdos/msbuffer.h | #define getblk(d,b,s) msdos_getblk(sb,b) |
d | 70 | include/asm-m68k/unistd.h | #define _syscall4(type,name,atype,a,btype,b,ctype,c,dtype,d) \ |
d | 71 | include/asm-m68k/unistd.h | type name (atype a, btype b, ctype c, dtype d) \ |
d | 83 | include/asm-m68k/unistd.h | "g" ((long)(d)) \ |
d | 91 | include/asm-m68k/unistd.h | #define _syscall5(type,name,atype,a,btype,b,ctype,c,dtype,d,etype,e) \ |
d | 92 | include/asm-m68k/unistd.h | type name (atype a,btype b,ctype c,dtype d,etype e) \ |
d | 105 | include/asm-m68k/unistd.h | "g" ((long)(d)), \ |
d | 81 | include/asm-mips/types.h | #define __FDELT(d) ((d) / __NFDBITS) |
d | 83 | include/asm-mips/types.h | #define __FDMASK(d) (1 << ((d) % __NFDBITS)) |
d | 85 | include/asm-mips/types.h | #define __FD_SET(d, set) ((set)->fds_bits[__FDELT(d)] |= __FDMASK(d)) |
d | 87 | include/asm-mips/types.h | #define __FD_CLR(d, set) ((set)->fds_bits[__FDELT(d)] &= ~__FDMASK(d)) |
d | 89 | include/asm-mips/types.h | #define __FD_ISSET(d, set) ((set)->fds_bits[__FDELT(d)] & __FDMASK(d)) |
d | 80 | include/asm-mips/unistd.h | #define _syscall4(type,name,atype,a,btype,b,ctype,c,dtype,d) \ |
d | 81 | include/asm-mips/unistd.h | type name (atype a, btype b, ctype c, dtype d) \ |
d | 94 | include/asm-mips/unistd.h | "r" ((long)(d)) \ |
d | 102 | include/asm-mips/unistd.h | #define _syscall5(type,name,atype,a,btype,b,ctype,c,dtype,d,etype,e) \ |
d | 103 | include/asm-mips/unistd.h | type name (atype a,btype b,ctype c,dtype d,etype e) \ |
d | 117 | include/asm-mips/unistd.h | "r" ((long)(d)), \ |
d | 61 | include/asm-sparc/openprom.h | int (*v2_aieee)(int d); /* figure this out later... */ |
d | 76 | include/asm-sparc/openprom.h | void (*v2_dev_close)(int d); |
d | 77 | include/asm-sparc/openprom.h | int (*v2_dev_read)(int d, char* buf, int nbytes); |
d | 78 | include/asm-sparc/openprom.h | int (*v2_dev_write)(int d, char* buf, int nbytes); |
d | 79 | include/asm-sparc/openprom.h | void (*v2_dev_seek)(int d, int hi, int lo); |
d | 198 | include/asm-sparc/openprom.h | unsigned int (*pv_enaddr)(int d, char *enaddr); |
d | 39 | include/linux/ioctl.h | #define _IO(c,d) (IOC_VOID | ((c)<<8) | (d)) /* param encoded */ |
d | 44 | include/linux/ioctl.h | #define _IOW(c,d,t) (IOC_IN | ((sizeof(t)<<16) & IOCSIZE_MASK) | \ |
d | 45 | include/linux/ioctl.h | ((c)<<8) | (d)) |
d | 46 | include/linux/ioctl.h | #define _IOR(c,d,t) (IOC_OUT | ((sizeof(t)<<16) & IOCSIZE_MASK) | \ |
d | 47 | include/linux/ioctl.h | ((c)<<8) | (d)) |
d | 49 | include/linux/ioctl.h | #define _IOWR(c,d,t) (IOC_INOUT | ((sizeof(t)<<16) & IOCSIZE_MASK) | \ |
d | 50 | include/linux/ioctl.h | ((c)<<8) | (d)) |
d | 157 | include/linux/sbpcd.h | #define upc_valid (DriveStruct[d].diskstate_flags&upc_bit) |
d | 158 | include/linux/sbpcd.h | #define volume_valid (DriveStruct[d].diskstate_flags&volume_bit) |
d | 159 | include/linux/sbpcd.h | #define toc_valid (DriveStruct[d].diskstate_flags&toc_bit) |
d | 160 | include/linux/sbpcd.h | #define cd_size_valid (DriveStruct[d].diskstate_flags&cd_size_bit) |
d | 161 | include/linux/sbpcd.h | #define subq_valid (DriveStruct[d].diskstate_flags&subq_bit) |
d | 162 | include/linux/sbpcd.h | #define frame_size_valid (DriveStruct[d].diskstate_flags&frame_size_bit) |
d | 217 | include/linux/sbpcd.h | #define st_door_closed (DriveStruct[d].status_byte&p_door_closed) |
d | 218 | include/linux/sbpcd.h | #define st_caddy_in (DriveStruct[d].status_byte&p_caddy_in) |
d | 219 | include/linux/sbpcd.h | #define st_spinning (DriveStruct[d].status_byte&p_spinning) |
d | 220 | include/linux/sbpcd.h | #define st_check (DriveStruct[d].status_byte&p_check) |
d | 221 | include/linux/sbpcd.h | #define st_busy (DriveStruct[d].status_byte&p_busy_new) |
d | 222 | include/linux/sbpcd.h | #define st_door_locked (DriveStruct[d].status_byte&p_door_locked) |
d | 223 | include/linux/sbpcd.h | #define st_diskok (DriveStruct[d].status_byte&p_disk_ok) |
d | 258 | include/linux/sbpcd.h | #define fam0_drive (DriveStruct[d].drv_type&drv_fam0) |
d | 259 | include/linux/sbpcd.h | #define famL_drive (DriveStruct[d].drv_type&drv_famL) |
d | 260 | include/linux/sbpcd.h | #define fam1_drive (DriveStruct[d].drv_type&drv_fam1) |
d | 261 | include/linux/sbpcd.h | #define fam2_drive (DriveStruct[d].drv_type&drv_fam2) |
d | 262 | include/linux/sbpcd.h | #define fam0L_drive (DriveStruct[d].drv_type&(drv_fam0|drv_famL)) |
d | 263 | include/linux/sbpcd.h | #define fam1L_drive (DriveStruct[d].drv_type&(drv_fam1|drv_famL)) |
d | 264 | include/linux/sbpcd.h | #define fam01_drive (DriveStruct[d].drv_type&(drv_fam0|drv_fam1)) |
d | 522 | include/linux/tpqic02.h | #define TP_REWCLOSE(d) ((MINOR(d)&0x01) == 1) /* rewind bit */ |
d | 54 | net/inet/eth.c | struct device *d = dev_base; |
d | 58 | net/inet/eth.c | while (d) |
d | 60 | net/inet/eth.c | if (!strcmp(str,d->name)) |
d | 63 | net/inet/eth.c | d->irq=ints[1]; |
d | 65 | net/inet/eth.c | d->base_addr=ints[2]; |
d | 67 | net/inet/eth.c | d->mem_start=ints[3]; |
d | 69 | net/inet/eth.c | d->mem_end=ints[4]; |
d | 72 | net/inet/eth.c | d=d->next; |
d | 1587 | net/inet/ipx.c | void dump_data(char *str,unsigned char *d) { |
d | 1594 | net/inet/ipx.c | *(p++) = h2c[d[i] & 0x0f]; |
d | 1595 | net/inet/ipx.c | *(p++) = h2c[(d[i] >> 4) & 0x0f]; |
d | 1600 | net/inet/ipx.c | for (i=0; i < 8 ; i++) *(p++) = ' '<= d[i] && d[i]<'\177' ? d[i] : '.'; |
d | 1602 | net/inet/ipx.c | d += i; |