taglinefilesource code
d27arch/i386/boot/compressed/gzip.h#  define memcpy(d, s, n)   bcopy((s), (d), (n)) 
d99arch/i386/boot/compressed/inflate.cint huft_build(b, n, s, d, e, t, m)
d103arch/i386/boot/compressed/inflate.cush *d;                 /* list of base values for non-simple codes */
d274arch/i386/boot/compressed/inflate.cr.v.n = d[*p++ - s];
d335arch/i386/boot/compressed/inflate.cunsigned n, d;        /* length and index for copy */
d395arch/i386/boot/compressed/inflate.cd = w - t->v.n - ((unsigned)b & mask_bits[e]);
d400arch/i386/boot/compressed/inflate.cn -= (e = (e = WSIZE - ((d &= WSIZE-1) > w ? d : w)) > n ? n : e);
d402arch/i386/boot/compressed/inflate.cif (w - d >= e)         /* (this test assumes unsigned comparison) */
d404arch/i386/boot/compressed/inflate.cmemcpy(slide + w, slide + d, e);
d406arch/i386/boot/compressed/inflate.cd += e;
d411arch/i386/boot/compressed/inflate.cslide[w++] = slide[d++];
d171arch/i386/boot/compressed/misc.cchar *d = (char *)__dest, *s = (char *)__src;
d173arch/i386/boot/compressed/misc.cfor (i=0;i<__n;i++) d[i] = s[i];
d121arch/i386/math-emu/fpu_proto.hextern int reg_store_extended(long double *d, FPU_REG *st0_ptr);
d124arch/i386/math-emu/fpu_proto.hextern int reg_store_int64(long long *d, FPU_REG *st0_ptr);
d125arch/i386/math-emu/fpu_proto.hextern int reg_store_int32(long *d, FPU_REG *st0_ptr);
d126arch/i386/math-emu/fpu_proto.hextern int reg_store_int16(short *d, FPU_REG *st0_ptr);
d127arch/i386/math-emu/fpu_proto.hextern int reg_store_bcd(char *d, FPU_REG *st0_ptr);
d41arch/i386/math-emu/reg_ld_str.cstatic void write_to_extended(FPU_REG *rp, char *d);
d423arch/i386/math-emu/reg_ld_str.cint reg_store_extended(long double *d, FPU_REG *st0_ptr)
d434arch/i386/math-emu/reg_ld_str.cFPU_verify_area(VERIFY_WRITE, d, 10);
d436arch/i386/math-emu/reg_ld_str.cwrite_to_extended(st0_ptr, (char *) d);
d447arch/i386/math-emu/reg_ld_str.cFPU_verify_area(VERIFY_WRITE,d,10);
d448arch/i386/math-emu/reg_ld_str.cput_fs_long(0, (unsigned long *) d);
d449arch/i386/math-emu/reg_ld_str.cput_fs_long(0xc0000000, 1 + (unsigned long *) d);
d450arch/i386/math-emu/reg_ld_str.cput_fs_word(0xffff, 4 + (short *) d);
d845arch/i386/math-emu/reg_ld_str.cint reg_store_int64(long long *d, FPU_REG *st0_ptr)
d894arch/i386/math-emu/reg_ld_str.cFPU_verify_area(VERIFY_WRITE,(void *)d,8);
d895arch/i386/math-emu/reg_ld_str.cput_fs_long(((long *)&tll)[0],(unsigned long *) d);
d896arch/i386/math-emu/reg_ld_str.cput_fs_long(((long *)&tll)[1],1 + (unsigned long *) d);
d904arch/i386/math-emu/reg_ld_str.cint reg_store_int32(long *d, FPU_REG *st0_ptr)
d949arch/i386/math-emu/reg_ld_str.cFPU_verify_area(VERIFY_WRITE,d,4);
d950arch/i386/math-emu/reg_ld_str.cput_fs_long(t.sigl, (unsigned long *) d);
d958arch/i386/math-emu/reg_ld_str.cint reg_store_int16(short *d, FPU_REG *st0_ptr)
d1003arch/i386/math-emu/reg_ld_str.cFPU_verify_area(VERIFY_WRITE,d,2);
d1004arch/i386/math-emu/reg_ld_str.cput_fs_word((short)t.sigl,(short *) d);
d1012arch/i386/math-emu/reg_ld_str.cint reg_store_bcd(char *d, FPU_REG *st0_ptr)
d1043arch/i386/math-emu/reg_ld_str.cFPU_verify_area(VERIFY_WRITE,d,10);
d1045arch/i386/math-emu/reg_ld_str.cput_fs_byte(0, (unsigned char *) d+i); /* These bytes "undefined" */
d1046arch/i386/math-emu/reg_ld_str.cput_fs_byte(0xc0, (unsigned char *) d+7); /* This byte "undefined" */
d1047arch/i386/math-emu/reg_ld_str.cput_fs_byte(0xff, (unsigned char *) d+8);
d1048arch/i386/math-emu/reg_ld_str.cput_fs_byte(0xff, (unsigned char *) d+9);
d1062arch/i386/math-emu/reg_ld_str.cFPU_verify_area(VERIFY_WRITE,d,10);
d1069arch/i386/math-emu/reg_ld_str.cput_fs_byte(b,(unsigned char *) d+i);
d1073arch/i386/math-emu/reg_ld_str.cput_fs_byte(sign,(unsigned char *) d+9);
d1290arch/i386/math-emu/reg_ld_str.cchar *fstenv(fpu_addr_modes addr_modes, char *d)
d1297arch/i386/math-emu/reg_ld_str.cFPU_verify_area(VERIFY_WRITE,d,14);
d1299arch/i386/math-emu/reg_ld_str.cput_fs_long(control_word & ~0xe080, (unsigned short *) d);
d1301arch/i386/math-emu/reg_ld_str.cput_fs_word(control_word, (unsigned short *) d);
d1303arch/i386/math-emu/reg_ld_str.cput_fs_word(status_word(), (unsigned short *) (d+2));
d1304arch/i386/math-emu/reg_ld_str.cput_fs_word(tag_word(), (unsigned short *) (d+4));
d1305arch/i386/math-emu/reg_ld_str.cput_fs_word(instruction_address.offset, (unsigned short *) (d+6));
d1306arch/i386/math-emu/reg_ld_str.cput_fs_word(operand_address.offset, (unsigned short *) (d+0x0a));
d1310arch/i386/math-emu/reg_ld_str.c(unsigned short *) (d+8));
d1312arch/i386/math-emu/reg_ld_str.c(unsigned short *) (d+0x0c));
d1316arch/i386/math-emu/reg_ld_str.cput_fs_word(instruction_address.selector, (unsigned short *) (d+8));
d1317arch/i386/math-emu/reg_ld_str.cput_fs_word(operand_address.selector, (unsigned short *) (d+0x0c));
d1320arch/i386/math-emu/reg_ld_str.cd += 0x0e;
d1325arch/i386/math-emu/reg_ld_str.cFPU_verify_area(VERIFY_WRITE,d,28);
d1328arch/i386/math-emu/reg_ld_str.cput_fs_long(0xffff0040 | (control_word & ~0xe080), (unsigned long *) d);
d1329arch/i386/math-emu/reg_ld_str.cput_fs_long(0xffff0000 | status_word(), (unsigned long *) (d+4));
d1330arch/i386/math-emu/reg_ld_str.cput_fs_long(0xffff0000 | tag_word(), (unsigned long *) (d+8));
d1332arch/i386/math-emu/reg_ld_str.cput_fs_word(control_word, (unsigned short *) d);
d1333arch/i386/math-emu/reg_ld_str.cput_fs_word(status_word(), (unsigned short *) (d+4));
d1334arch/i386/math-emu/reg_ld_str.cput_fs_word(tag_word(), (unsigned short *) (d+8));
d1336arch/i386/math-emu/reg_ld_str.cput_fs_long(instruction_address.offset, (unsigned long *) (d+0x0c));
d1337arch/i386/math-emu/reg_ld_str.cput_fs_word(instruction_address.selector, (unsigned short *) (d+0x10));
d1338arch/i386/math-emu/reg_ld_str.cput_fs_word(instruction_address.opcode, (unsigned short *) (d+0x12));
d1339arch/i386/math-emu/reg_ld_str.cput_fs_long(operand_address.offset, (unsigned long *) (d+0x14));
d1342arch/i386/math-emu/reg_ld_str.cput_fs_word(operand_address.selector, (unsigned short *) (d+0x18));
d1343arch/i386/math-emu/reg_ld_str.cput_fs_word(0xffff, (unsigned short *) (d+0x1a));
d1345arch/i386/math-emu/reg_ld_str.cput_fs_long(operand_address.selector, (unsigned long *) (d+0x18));
d1348arch/i386/math-emu/reg_ld_str.cd += 0x1c;
d1354arch/i386/math-emu/reg_ld_str.creturn d;
d1360arch/i386/math-emu/reg_ld_str.cchar *d;
d1363arch/i386/math-emu/reg_ld_str.cd = fstenv(addr_modes, data_address);
d1365arch/i386/math-emu/reg_ld_str.cFPU_verify_area(VERIFY_WRITE,d,80);
d1368arch/i386/math-emu/reg_ld_str.cwrite_to_extended(&regs[(top + i) & 7], d + 10 * i);
d1380arch/i386/math-emu/reg_ld_str.cstatic void write_to_extended(FPU_REG *rp, char *d)
d1414arch/i386/math-emu/reg_ld_str.cput_fs_long(rp->sigl, (unsigned long *) d);
d1415arch/i386/math-emu/reg_ld_str.cput_fs_long(rp->sigh, (unsigned long *) (d + 4));
d1430arch/i386/math-emu/reg_ld_str.cput_fs_long(tmp.sigl, (unsigned long *) d);
d1431arch/i386/math-emu/reg_ld_str.cput_fs_long(tmp.sigh, (unsigned long *) (d + 4));
d1436arch/i386/math-emu/reg_ld_str.cput_fs_word(e, (unsigned short *) (d + 8));
d942drivers/block/ide-cd.cchar d = c[0];
d944drivers/block/ide-cd.cc[1] = d;
d952drivers/block/ide-cd.cchar d = c[0];
d954drivers/block/ide-cd.cc[3] = d;
d955drivers/block/ide-cd.cd = c[1];
d957drivers/block/ide-cd.cc[2] = d;
d509drivers/block/mcd.cchar a, b, c, d;
d514drivers/block/mcd.cgetValue(&d);
d572drivers/block/sbpcd.cstatic int d=0; /* DriveStruct index: drive number */
d817drivers/block/sbpcd.cDriveStruct[d].CD_changed=0xFF;
d987drivers/block/sbpcd.cDriveStruct[d].status_byte=0;
d990drivers/block/sbpcd.cif (st&p_caddin_old) DriveStruct[d].status_byte |= p_door_closed|p_caddy_in;
d991drivers/block/sbpcd.cif (st&p_spinning) DriveStruct[d].status_byte |= p_spinning;
d992drivers/block/sbpcd.cif (st&p_check) DriveStruct[d].status_byte |= p_check;
d993drivers/block/sbpcd.cif (st&p_busy_old) DriveStruct[d].status_byte |= p_busy_new;
d994drivers/block/sbpcd.cif (st&p_disk_ok) DriveStruct[d].status_byte |= p_disk_ok;
d998drivers/block/sbpcd.cif (st&p_caddin_old) DriveStruct[d].status_byte |= p_disk_ok|p_caddy_in;
d999drivers/block/sbpcd.cif (st&p_spinning) DriveStruct[d].status_byte |= p_spinning;
d1000drivers/block/sbpcd.cif (st&p_check) DriveStruct[d].status_byte |= p_check;
d1001drivers/block/sbpcd.cif (st&p_busy_old) DriveStruct[d].status_byte |= p_busy_new;
d1002drivers/block/sbpcd.cif (st&p_lcs_door_closed) DriveStruct[d].status_byte |= p_door_closed;
d1003drivers/block/sbpcd.cif (st&p_lcs_door_locked) DriveStruct[d].status_byte |= p_door_locked;
d1007drivers/block/sbpcd.cif (st&p2_check) DriveStruct[d].status_byte |= p1_check;
d1008drivers/block/sbpcd.cif (st&p2_door_closed) DriveStruct[d].status_byte |= p1_door_closed;
d1009drivers/block/sbpcd.cif (st&p2_disk_in) DriveStruct[d].status_byte |= p1_disk_in;
d1010drivers/block/sbpcd.cif (st&p2_busy1) DriveStruct[d].status_byte |= p1_busy;
d1011drivers/block/sbpcd.cif (st&p2_busy2) DriveStruct[d].status_byte |= p1_busy;
d1012drivers/block/sbpcd.cif (st&p2_spinning) DriveStruct[d].status_byte |= p1_spinning;
d1013drivers/block/sbpcd.cif (st&p2_door_locked) DriveStruct[d].status_byte |= p1_door_locked;
d1014drivers/block/sbpcd.cif (st&p2_disk_ok) DriveStruct[d].status_byte |= p1_disk_ok;
d1016drivers/block/sbpcd.celse if (fam1_drive) DriveStruct[d].status_byte=st;
d1078drivers/block/sbpcd.cDriveStruct[d].status_byte=0;
d1128drivers/block/sbpcd.cDriveStruct[d].error_byte=0;
d1133drivers/block/sbpcd.cDriveStruct[d].error_byte=infobuf[i];
d1134drivers/block/sbpcd.cDPRINTF((DBG_ERR,"SBPCD: xx_ReadError: infobuf[%d] is %d (%02X)\n",i,DriveStruct[d].error_byte,DriveStruct[d].error_byte));
d1165drivers/block/sbpcd.cif (DriveStruct[d].in_SpinUp != 0) DPRINTF((DBG_SPI,"SBPCD: to CDi_stat_loop.\n"));
d1174drivers/block/sbpcd.cif (DriveStruct[d].in_SpinUp != 0) DPRINTF((DBG_SPI,"SBPCD: to xx_ReadStatus.\n"));
d1180drivers/block/sbpcd.cif (DriveStruct[d].in_SpinUp != 0) DPRINTF((DBG_SPI,"SBPCD: to ResponseStatus.\n"));
d1197drivers/block/sbpcd.cif (DriveStruct[d].in_SpinUp != 0) DPRINTF((DBG_SPI,"SBPCD: to xx_ReadError.\n"));
d1199drivers/block/sbpcd.cif (DriveStruct[d].in_SpinUp != 0) DPRINTF((DBG_SPI,"SBPCD: to cmd_out OK.\n"));
d1251drivers/block/sbpcd.cDriveStruct[d].in_SpinUp = 1;
d1272drivers/block/sbpcd.cDriveStruct[d].in_SpinUp = 0;
d1345drivers/block/sbpcd.cDriveStruct[d].diskstate_flags &= ~volume_bit;
d1347drivers/block/sbpcd.cchannel0=DriveStruct[d].vol_chan0;
d1348drivers/block/sbpcd.cvolume0=DriveStruct[d].vol_ctrl0;
d1349drivers/block/sbpcd.cchannel1=control1=DriveStruct[d].vol_chan1;
d1350drivers/block/sbpcd.cvolume1=value1=DriveStruct[d].vol_ctrl1;
d1353drivers/block/sbpcd.cif (((DriveStruct[d].drv_options&audio_mono)!=0)&&(DriveStruct[d].drv_type>=drv_211))
d1422drivers/block/sbpcd.cif (DriveStruct[d].drv_type>=drv_300)
d1434drivers/block/sbpcd.cif (DriveStruct[d].drv_type<drv_211)
d1467drivers/block/sbpcd.celse if (DriveStruct[d].drv_type<drv_201) volume0=volume1=value0;
d1469drivers/block/sbpcd.cif (DriveStruct[d].drv_type>=drv_201)
d1474drivers/block/sbpcd.cif (DriveStruct[d].drv_type>=drv_211)
d1489drivers/block/sbpcd.cDriveStruct[d].diskstate_flags |= volume_bit;
d1530drivers/block/sbpcd.cif (DriveStruct[d].error_byte!=aud_12) return -1;
d1538drivers/block/sbpcd.cif (!(DriveStruct[d].drv_options&(speed_auto|speed_300|speed_150))) return (0);
d1540drivers/block/sbpcd.cif (!(DriveStruct[d].drv_options&speed_auto))
d1543drivers/block/sbpcd.cif (!(DriveStruct[d].drv_options&speed_300)) speed=0;
d1563drivers/block/sbpcd.cDriveStruct[d].CD_changed=1;
d1611drivers/block/sbpcd.cDPRINTF((DBG_LCK,"SBPCD: yy_LockDoor: %d (drive %d)\n", lock, d));
d1643drivers/block/sbpcd.cDPRINTF((DBG_LCK,"SBPCD: yy_CloseTray (drive %d)\n", d));
d1675drivers/block/sbpcd.cDriveStruct[d].diskstate_flags &= ~subq_bit;
d1714drivers/block/sbpcd.cDriveStruct[d].SubQ_ctl_adr=DriveStruct[d].SubQ_trk=DriveStruct[d].SubQ_pnt_idx=DriveStruct[d].SubQ_whatisthis=0;
d1715drivers/block/sbpcd.cDriveStruct[d].SubQ_run_tot=DriveStruct[d].SubQ_run_trk=0;
d1719drivers/block/sbpcd.cDriveStruct[d].SubQ_ctl_adr=swap_nibbles(infobuf[1]);
d1720drivers/block/sbpcd.cDriveStruct[d].SubQ_trk=byt2bcd(infobuf[2]);
d1721drivers/block/sbpcd.cDriveStruct[d].SubQ_pnt_idx=byt2bcd(infobuf[3]);
d1724drivers/block/sbpcd.cDriveStruct[d].SubQ_run_tot=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */
d1727drivers/block/sbpcd.cDriveStruct[d].SubQ_run_trk=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */
d1728drivers/block/sbpcd.cDriveStruct[d].SubQ_whatisthis=infobuf[i+3];
d1729drivers/block/sbpcd.cDriveStruct[d].diskstate_flags |= subq_bit;
d1738drivers/block/sbpcd.cDriveStruct[d].diskstate_flags &= ~frame_size_bit;
d1758drivers/block/sbpcd.cif (fam1_drive) DriveStruct[d].sense_byte=infobuf[i++];
d1759drivers/block/sbpcd.celse if (fam0L_drive) DriveStruct[d].sense_byte=0;
d1760drivers/block/sbpcd.cDriveStruct[d].frame_size=make16(infobuf[i],infobuf[i+1]);
d1769drivers/block/sbpcd.cDriveStruct[d].diskstate_flags |= frame_size_bit;
d1779drivers/block/sbpcd.cDriveStruct[d].diskstate_flags &= ~frame_size_bit;
d1781drivers/block/sbpcd.cDriveStruct[d].frame_size=framesize;
d1782drivers/block/sbpcd.cif (framesize==CD_FRAMESIZE_RAW) DriveStruct[d].sense_byte=0x82;
d1783drivers/block/sbpcd.celse DriveStruct[d].sense_byte=0x00;
d1786drivers/block/sbpcd.cDriveStruct[d].sense_byte, DriveStruct[d].frame_size));
d1792drivers/block/sbpcd.cdrvcmd[2]=DriveStruct[d].sense_byte;
d1793drivers/block/sbpcd.cdrvcmd[3]=(DriveStruct[d].frame_size>>8)&0xFF;
d1794drivers/block/sbpcd.cdrvcmd[4]=DriveStruct[d].frame_size&0xFF;
d1801drivers/block/sbpcd.cdrvcmd[2]=(DriveStruct[d].frame_size>>8)&0xFF;
d1802drivers/block/sbpcd.cdrvcmd[3]=DriveStruct[d].frame_size&0xFF;
d1812drivers/block/sbpcd.cDriveStruct[d].diskstate_flags |= frame_size_bit;
d1823drivers/block/sbpcd.cDriveStruct[d].diskstate_flags &= ~volume_bit;
d1891drivers/block/sbpcd.cif (DriveStruct[d].drv_type>=drv_201)
d1893drivers/block/sbpcd.cif (DriveStruct[d].drv_type<drv_300)
d1898drivers/block/sbpcd.cif (DriveStruct[d].drv_type>=drv_211)
d1916drivers/block/sbpcd.cDriveStruct[d].vol_chan0=chan0;
d1917drivers/block/sbpcd.cDriveStruct[d].vol_ctrl0=vol0;
d1918drivers/block/sbpcd.cDriveStruct[d].vol_chan1=chan1;
d1919drivers/block/sbpcd.cDriveStruct[d].vol_ctrl1=vol1;
d1920drivers/block/sbpcd.cDriveStruct[d].vol_chan2=2;
d1921drivers/block/sbpcd.cDriveStruct[d].vol_ctrl2=0xFF;
d1922drivers/block/sbpcd.cDriveStruct[d].vol_chan3=3;
d1923drivers/block/sbpcd.cDriveStruct[d].vol_ctrl3=0xFF;
d1924drivers/block/sbpcd.cDriveStruct[d].diskstate_flags |= volume_bit;
d1934drivers/block/sbpcd.cDriveStruct[d].diskstate_flags &= ~cd_size_bit;
d1959drivers/block/sbpcd.cif (fam1_drive) DriveStruct[d].CDsize_frm=msf2blk(make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])))+CD_BLOCK_OFFSET;
d1960drivers/block/sbpcd.celse if (fam0_drive) DriveStruct[d].CDsize_frm=make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2]));
d1961drivers/block/sbpcd.celse if (fam2_drive) DriveStruct[d].CDsize_frm=make32(make16(infobuf[0],infobuf[1]),make16(infobuf[2],infobuf[3]));
d1962drivers/block/sbpcd.cDriveStruct[d].diskstate_flags |= cd_size_bit;
d1970drivers/block/sbpcd.cDriveStruct[d].diskstate_flags &= ~toc_bit;
d1990drivers/block/sbpcd.cDriveStruct[d].f_multisession=0;
d2000drivers/block/sbpcd.cDriveStruct[d].xa_byte=infobuf[0];
d2003drivers/block/sbpcd.cDriveStruct[d].first_session=infobuf[1];
d2004drivers/block/sbpcd.cDriveStruct[d].last_session=infobuf[2];
d2005drivers/block/sbpcd.cDriveStruct[d].n_first_track=infobuf[3];
d2006drivers/block/sbpcd.cDriveStruct[d].n_last_track=infobuf[4];
d2007drivers/block/sbpcd.cif (DriveStruct[d].first_session!=DriveStruct[d].last_session)
d2009drivers/block/sbpcd.cDriveStruct[d].f_multisession=1;
d2010drivers/block/sbpcd.cDriveStruct[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7])));
d2013drivers/block/sbpcd.cif (DriveStruct[d].first_session!=DriveStruct[d].last_session)
d2015drivers/block/sbpcd.cif (DriveStruct[d].last_session<=20)
d2016drivers/block/sbpcd.czwanzig=DriveStruct[d].last_session+1;
d2018drivers/block/sbpcd.cfor (count=DriveStruct[d].first_session;count<zwanzig;count++)
d2028drivers/block/sbpcd.cDriveStruct[d].msf_multi_n[count]=make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7]));
d2030drivers/block/sbpcd.cDriveStruct[d].diskstate_flags |= multisession_bit;
d2041drivers/block/sbpcd.cDriveStruct[d].size_msf=make32(make16(0,infobuf[2]),make16(infobuf[3],infobuf[4]));
d2042drivers/block/sbpcd.cDriveStruct[d].size_blk=msf2blk(DriveStruct[d].size_msf);
d2046drivers/block/sbpcd.cDriveStruct[d].n_first_track=infobuf[1];
d2047drivers/block/sbpcd.cDriveStruct[d].n_last_track=infobuf[2];
d2048drivers/block/sbpcd.cDriveStruct[d].size_msf=make32(make16(0,infobuf[3]),make16(infobuf[4],infobuf[5]));
d2049drivers/block/sbpcd.cDriveStruct[d].size_blk=msf2blk(DriveStruct[d].size_msf);
d2050drivers/block/sbpcd.cif (famL_drive) DriveStruct[d].CDsize_frm=DriveStruct[d].size_blk+1;
d2052drivers/block/sbpcd.cDriveStruct[d].diskstate_flags |= toc_bit;
d2054drivers/block/sbpcd.cDriveStruct[d].xa_byte,
d2055drivers/block/sbpcd.cDriveStruct[d].n_first_track,
d2056drivers/block/sbpcd.cDriveStruct[d].n_last_track,
d2057drivers/block/sbpcd.cDriveStruct[d].size_msf));
d2096drivers/block/sbpcd.cDriveStruct[d].TocEnt_nixbyte=infobuf[0];
d2099drivers/block/sbpcd.cDriveStruct[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]);
d2102drivers/block/sbpcd.cDriveStruct[d].TocEnt_number=infobuf[i++];
d2103drivers/block/sbpcd.cDriveStruct[d].TocEnt_format=infobuf[i];
d2108drivers/block/sbpcd.cDriveStruct[d].TocEnt_address=make32(make16(0,infobuf[i]),
d2111drivers/block/sbpcd.cDriveStruct[d].TocEnt_nixbyte, DriveStruct[d].TocEnt_ctl_adr,
d2112drivers/block/sbpcd.cDriveStruct[d].TocEnt_number, DriveStruct[d].TocEnt_format,
d2113drivers/block/sbpcd.cDriveStruct[d].TocEnt_address));
d2141drivers/block/sbpcd.cif (fam1_drive) DriveStruct[d].UPC_buf[i]=swap_nibbles(*p++);
d2144drivers/block/sbpcd.cDriveStruct[d].UPC_buf[i]=((*p++)<<4)&0xFF;
d2145drivers/block/sbpcd.cDriveStruct[d].UPC_buf[i] |= *p++;
d2152drivers/block/sbpcd.cDriveStruct[d].UPC_buf[6] &= 0xF0;
d2165drivers/block/sbpcd.cDriveStruct[d].diskstate_flags &= ~upc_bit;
d2222drivers/block/sbpcd.cDriveStruct[d].UPC_ctl_adr=0;
d2228drivers/block/sbpcd.cDriveStruct[d].UPC_ctl_adr = (DriveStruct[d].TocEnt_ctl_adr & 0xF0) | 0x02;
d2232drivers/block/sbpcd.cDPRINTF((DBG_UPC,"(%02X) ", DriveStruct[d].UPC_ctl_adr));
d2235drivers/block/sbpcd.cDPRINTF((DBG_UPC,"%02X ", DriveStruct[d].UPC_buf[i]));
d2239drivers/block/sbpcd.cDriveStruct[d].diskstate_flags |= upc_bit;
d2248drivers/block/sbpcd.cDriveStruct[d].f_multisession=0;
d2249drivers/block/sbpcd.cDriveStruct[d].lba_multi=0;
d2261drivers/block/sbpcd.cDriveStruct[d].f_multisession=1;
d2262drivers/block/sbpcd.cDriveStruct[d].lba_multi=msf2blk(make32(make16(0,infobuf[1]),
d2267drivers/block/sbpcd.cDriveStruct[d].lba_multi));
d2279drivers/block/sbpcd.cDriveStruct[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),
d2284drivers/block/sbpcd.cDriveStruct[d].lba_multi));
d2285drivers/block/sbpcd.cif (DriveStruct[d].lba_multi>200)
d2287drivers/block/sbpcd.cDPRINTF((DBG_MUL,"SBPCD: MultiSession base: %06X\n", DriveStruct[d].lba_multi));
d2288drivers/block/sbpcd.cDriveStruct[d].f_multisession=1;
d2302drivers/block/sbpcd.cif (DriveStruct[d].audio_state!=audio_playing) return (-ENODATA);
d2313drivers/block/sbpcd.cDriveStruct[d].frame_size=CD_FRAMESIZE_SUB;
d2421drivers/block/sbpcd.cprintk("SBPCD: address %03X, type %s, drive ID %d\n", CDo_command, type, DriveStruct[d].drv_id);
d2435drivers/block/sbpcd.cDriveStruct[d].drv_type=0;
d2451drivers/block/sbpcd.cOUT(CDo_enable,DriveStruct[d].drv_sel);
d2471drivers/block/sbpcd.cDriveStruct[d].drive_model[0]='C';
d2472drivers/block/sbpcd.cDriveStruct[d].drive_model[1]='D';
d2473drivers/block/sbpcd.cDriveStruct[d].drive_model[2]='2';
d2474drivers/block/sbpcd.cDriveStruct[d].drive_model[3]='0';
d2475drivers/block/sbpcd.cDriveStruct[d].drive_model[4]='0';
d2476drivers/block/sbpcd.cDriveStruct[d].drive_model[5]=infobuf[i++];
d2477drivers/block/sbpcd.cDriveStruct[d].drive_model[6]=infobuf[i++];
d2478drivers/block/sbpcd.cDriveStruct[d].drive_model[7]=0;
d2479drivers/block/sbpcd.cDriveStruct[d].drv_type=drv_fam2;
d2483drivers/block/sbpcd.cif (!DriveStruct[d].drv_type)
d2514drivers/block/sbpcd.cDriveStruct[d].drive_model[0]='C';
d2515drivers/block/sbpcd.cDriveStruct[d].drive_model[1]='R';
d2516drivers/block/sbpcd.cDriveStruct[d].drive_model[2]='-';
d2517drivers/block/sbpcd.cDriveStruct[d].drive_model[3]='5';
d2518drivers/block/sbpcd.cDriveStruct[d].drive_model[4]=infobuf[i++];
d2519drivers/block/sbpcd.cDriveStruct[d].drive_model[5]=infobuf[i++];
d2520drivers/block/sbpcd.cDriveStruct[d].drive_model[6]=0;
d2521drivers/block/sbpcd.cDriveStruct[d].drv_type=drv_fam1;
d2523drivers/block/sbpcd.cif (!DriveStruct[d].drv_type)
d2528drivers/block/sbpcd.cDriveStruct[d].drive_model[0]='C';
d2529drivers/block/sbpcd.cDriveStruct[d].drive_model[1]='R';
d2530drivers/block/sbpcd.cDriveStruct[d].drive_model[2]='-';
d2531drivers/block/sbpcd.cDriveStruct[d].drive_model[3]='5';
d2532drivers/block/sbpcd.cDriveStruct[d].drive_model[4]='2';
d2533drivers/block/sbpcd.cDriveStruct[d].drive_model[5]='x';
d2534drivers/block/sbpcd.cDriveStruct[d].drive_model[6]=0;
d2535drivers/block/sbpcd.cDriveStruct[d].drv_type=drv_fam0;
d2538drivers/block/sbpcd.cif (!DriveStruct[d].drv_type)
d2544drivers/block/sbpcd.cDriveStruct[d].drive_model[j]=infobuf[j];
d2545drivers/block/sbpcd.cDriveStruct[d].drive_model[8]=0;
d2546drivers/block/sbpcd.cDriveStruct[d].drv_type=drv_famL;
d2550drivers/block/sbpcd.cif (!DriveStruct[d].drv_type)
d2555drivers/block/sbpcd.cfor (j=0;j<4;j++) DriveStruct[d].firmware_version[j]=infobuf[i+j];
d2561drivers/block/sbpcd.cif (DriveStruct[d].firmware_version[j]!=lcs_firm[i][j]) break;
d2565drivers/block/sbpcd.cDriveStruct[d].drv_type=drv_260;
d2569drivers/block/sbpcd.cj = (DriveStruct[d].firmware_version[0] & 0x0F) * 100 +
d2570drivers/block/sbpcd.c(DriveStruct[d].firmware_version[2] & 0x0F) *10 +
d2571drivers/block/sbpcd.c(DriveStruct[d].firmware_version[3] & 0x0F);
d2574drivers/block/sbpcd.cif (j<200) DriveStruct[d].drv_type=drv_199;
d2575drivers/block/sbpcd.celse if (j<201) DriveStruct[d].drv_type=drv_200;
d2576drivers/block/sbpcd.celse if (j<210) DriveStruct[d].drv_type=drv_201;
d2577drivers/block/sbpcd.celse if (j<211) DriveStruct[d].drv_type=drv_210;
d2578drivers/block/sbpcd.celse if (j<300) DriveStruct[d].drv_type=drv_211;
d2579drivers/block/sbpcd.celse if (j>=300) DriveStruct[d].drv_type=drv_300;
d2583drivers/block/sbpcd.cif (j<100) DriveStruct[d].drv_type=drv_099;
d2586drivers/block/sbpcd.cDriveStruct[d].drv_type=drv_100;
d2593drivers/block/sbpcd.cDriveStruct[d].firmware_version);
d2598drivers/block/sbpcd.cDPRINTF((DBG_LCS,"SBPCD: drive type %02X\n",DriveStruct[d].drv_type));
d2605drivers/block/sbpcd.cd=i;
d2606drivers/block/sbpcd.cif (DriveStruct[d].drv_id!=-1)
d2608drivers/block/sbpcd.cOUT(CDo_enable,DriveStruct[d].drv_sel);
d2609drivers/block/sbpcd.cDPRINTF((DBG_DID,"SBPCD: drive %d (ID=%d) activated.\n", i, DriveStruct[d].drv_id));
d2637drivers/block/sbpcd.cDriveStruct[d].drv_options=drv_pattern[j];
d2638drivers/block/sbpcd.cif (fam0L_drive) DriveStruct[d].drv_options&=~(speed_auto|speed_300|speed_150);
d2639drivers/block/sbpcd.cprintk("%sDrive %d (ID=%d): %.9s (%.4s)\n", printk_header, d,
d2640drivers/block/sbpcd.cDriveStruct[d].drv_id,
d2641drivers/block/sbpcd.cDriveStruct[d].drive_model,
d2642drivers/block/sbpcd.cDriveStruct[d].firmware_version);
d2787drivers/block/sbpcd.ci=msf2blk(DriveStruct[d].pos_audio_end)-1;
d2796drivers/block/sbpcd.cDriveStruct[d].diskstate_flags &= ~toc_bit;
d2797drivers/block/sbpcd.cDriveStruct[d].ored_ctl_adr=0;
d2798drivers/block/sbpcd.cfor (j=DriveStruct[d].n_first_track;j<=DriveStruct[d].n_last_track;j++)
d2802drivers/block/sbpcd.cDriveStruct[d].TocBuffer[j].nixbyte=DriveStruct[d].TocEnt_nixbyte;
d2803drivers/block/sbpcd.cDriveStruct[d].TocBuffer[j].ctl_adr=DriveStruct[d].TocEnt_ctl_adr;
d2804drivers/block/sbpcd.cDriveStruct[d].TocBuffer[j].number=DriveStruct[d].TocEnt_number;
d2805drivers/block/sbpcd.cDriveStruct[d].TocBuffer[j].format=DriveStruct[d].TocEnt_format;
d2806drivers/block/sbpcd.cDriveStruct[d].TocBuffer[j].address=DriveStruct[d].TocEnt_address;
d2807drivers/block/sbpcd.cDriveStruct[d].ored_ctl_adr |= DriveStruct[d].TocEnt_ctl_adr;
d2810drivers/block/sbpcd.cDriveStruct[d].TocBuffer[j].nixbyte=0;
d2811drivers/block/sbpcd.cDriveStruct[d].TocBuffer[j].ctl_adr=0;
d2812drivers/block/sbpcd.cDriveStruct[d].TocBuffer[j].number=CDROM_LEADOUT;
d2813drivers/block/sbpcd.cDriveStruct[d].TocBuffer[j].format=0;
d2814drivers/block/sbpcd.cDriveStruct[d].TocBuffer[j].address=DriveStruct[d].size_msf;
d2816drivers/block/sbpcd.cDriveStruct[d].diskstate_flags |= toc_bit;
d2824drivers/block/sbpcd.cDriveStruct[d].mode=READ_M1;
d2868drivers/block/sbpcd.ci=xx_ReadTocEntry(DriveStruct[d].n_first_track);
d2881drivers/block/sbpcd.cif ((fam0L_drive) && (DriveStruct[d].xa_byte==0x20)) /* XA disk with old drive */
d2906drivers/block/sbpcd.cif (DriveStruct[d].CD_changed==0xFF)
d2910drivers/block/sbpcd.cDriveStruct[d].diskstate_flags=0;
d2912drivers/block/sbpcd.cDriveStruct[d].audio_state=0;
d2923drivers/block/sbpcd.cDriveStruct[d].CD_changed=1;
d2934drivers/block/sbpcd.cDriveStruct[d].diskstate_flags=0;
d2936drivers/block/sbpcd.cDriveStruct[d].audio_state=0;
d2944drivers/block/sbpcd.cif (DriveStruct[d].audio_state!=audio_pausing)
d2952drivers/block/sbpcd.cif (DriveStruct[d].audio_state==audio_playing) seek_pos_audio_end();
d2953drivers/block/sbpcd.cDriveStruct[d].audio_state=0;
d2962drivers/block/sbpcd.cDriveStruct[d].diskstate_flags=0;
d2964drivers/block/sbpcd.cDriveStruct[d].audio_state=0;
d2978drivers/block/sbpcd.cif (DriveStruct[d].audio_state==audio_playing) return (-EINVAL);
d3117drivers/block/sbpcd.cswitch (DriveStruct[d].audio_state)
d3126drivers/block/sbpcd.cDriveStruct[d].pos_audio_start=DriveStruct[d].SubQ_run_tot;
d3127drivers/block/sbpcd.cDriveStruct[d].audio_state=audio_pausing;
d3130drivers/block/sbpcd.ci=xx_Seek(DriveStruct[d].pos_audio_start,1);
d3142drivers/block/sbpcd.cif (DriveStruct[d].audio_state!=audio_pausing) return -EINVAL;
d3144drivers/block/sbpcd.ci=xx_PlayAudio(DriveStruct[d].pos_audio_start,
d3145drivers/block/sbpcd.cDriveStruct[d].pos_audio_end);
d3148drivers/block/sbpcd.cDriveStruct[d].audio_state=audio_playing;
d3153drivers/block/sbpcd.cif (DriveStruct[d].audio_state==audio_playing)
d3159drivers/block/sbpcd.cDriveStruct[d].pos_audio_start=DriveStruct[d].SubQ_run_tot;
d3160drivers/block/sbpcd.ci=xx_Seek(DriveStruct[d].pos_audio_start,1);
d3166drivers/block/sbpcd.cDriveStruct[d].pos_audio_start = (msf.cdmsf_min0<<16) |
d3169drivers/block/sbpcd.cDriveStruct[d].pos_audio_end = (msf.cdmsf_min1<<16) |
d3173drivers/block/sbpcd.cDriveStruct[d].pos_audio_start,DriveStruct[d].pos_audio_end));
d3174drivers/block/sbpcd.ci=xx_PlayAudio(DriveStruct[d].pos_audio_start,DriveStruct[d].pos_audio_end);
d3179drivers/block/sbpcd.cDriveStruct[d].audio_state=audio_playing;
d3184drivers/block/sbpcd.cif (DriveStruct[d].audio_state==audio_playing)
d3199drivers/block/sbpcd.cif (ti.cdti_trk0<DriveStruct[d].n_first_track) return (-EINVAL);
d3200drivers/block/sbpcd.cif (ti.cdti_trk0>DriveStruct[d].n_last_track) return (-EINVAL);
d3202drivers/block/sbpcd.cif (ti.cdti_trk1>DriveStruct[d].n_last_track) ti.cdti_trk1=DriveStruct[d].n_last_track;
d3203drivers/block/sbpcd.cDriveStruct[d].pos_audio_start=DriveStruct[d].TocBuffer[ti.cdti_trk0].address;
d3204drivers/block/sbpcd.cDriveStruct[d].pos_audio_end=DriveStruct[d].TocBuffer[ti.cdti_trk1+1].address;
d3205drivers/block/sbpcd.ci=xx_PlayAudio(DriveStruct[d].pos_audio_start,DriveStruct[d].pos_audio_end);
d3209drivers/block/sbpcd.cDriveStruct[d].audio_state=audio_playing;
d3214drivers/block/sbpcd.ctochdr.cdth_trk0=DriveStruct[d].n_first_track;
d3215drivers/block/sbpcd.ctochdr.cdth_trk1=DriveStruct[d].n_last_track;
d3227drivers/block/sbpcd.cif (i==CDROM_LEADOUT) i=DriveStruct[d].n_last_track+1;
d3228drivers/block/sbpcd.celse if (i<DriveStruct[d].n_first_track||i>DriveStruct[d].n_last_track) return (-EINVAL);
d3229drivers/block/sbpcd.ctocentry.cdte_adr=DriveStruct[d].TocBuffer[i].ctl_adr&0x0F;
d3230drivers/block/sbpcd.ctocentry.cdte_ctrl=(DriveStruct[d].TocBuffer[i].ctl_adr>>4)&0x0F;
d3231drivers/block/sbpcd.ctocentry.cdte_datamode=DriveStruct[d].TocBuffer[i].format;
d3233drivers/block/sbpcd.c{ tocentry.cdte_addr.msf.minute=(DriveStruct[d].TocBuffer[i].address>>16)&0x00FF;
d3234drivers/block/sbpcd.ctocentry.cdte_addr.msf.second=(DriveStruct[d].TocBuffer[i].address>>8)&0x00FF;
d3235drivers/block/sbpcd.ctocentry.cdte_addr.msf.frame=DriveStruct[d].TocBuffer[i].address&0x00FF;
d3238drivers/block/sbpcd.ctocentry.cdte_addr.lba=msf2blk(DriveStruct[d].TocBuffer[i].address);
d3248drivers/block/sbpcd.cDriveStruct[d].audio_state=0;
d3254drivers/block/sbpcd.cDriveStruct[d].audio_state=0;
d3262drivers/block/sbpcd.cDriveStruct[d].open_count=0; /* to get it locked next time again */
d3266drivers/block/sbpcd.cDriveStruct[d].CD_changed=0xFF;
d3267drivers/block/sbpcd.cDriveStruct[d].diskstate_flags=0;
d3268drivers/block/sbpcd.cDriveStruct[d].audio_state=0;
d3274drivers/block/sbpcd.cDriveStruct[d].f_eject=arg;
d3282drivers/block/sbpcd.cDriveStruct[d].vol_chan0=0;
d3283drivers/block/sbpcd.cDriveStruct[d].vol_ctrl0=volctrl.channel0;
d3284drivers/block/sbpcd.cDriveStruct[d].vol_chan1=1;
d3285drivers/block/sbpcd.cDriveStruct[d].vol_ctrl1=volctrl.channel1;
d3297drivers/block/sbpcd.cswitch (DriveStruct[d].audio_state)
d3309drivers/block/sbpcd.cSC.cdsc_adr=DriveStruct[d].SubQ_ctl_adr;
d3310drivers/block/sbpcd.cSC.cdsc_ctrl=DriveStruct[d].SubQ_ctl_adr>>4;
d3311drivers/block/sbpcd.cSC.cdsc_trk=bcd2bin(DriveStruct[d].SubQ_trk);
d3312drivers/block/sbpcd.cSC.cdsc_ind=bcd2bin(DriveStruct[d].SubQ_pnt_idx);
d3315drivers/block/sbpcd.cSC.cdsc_absaddr.lba=msf2blk(DriveStruct[d].SubQ_run_tot);
d3316drivers/block/sbpcd.cSC.cdsc_reladdr.lba=msf2blk(DriveStruct[d].SubQ_run_trk);
d3320drivers/block/sbpcd.cSC.cdsc_absaddr.msf.minute=(DriveStruct[d].SubQ_run_tot>>16)&0x00FF;
d3321drivers/block/sbpcd.cSC.cdsc_absaddr.msf.second=(DriveStruct[d].SubQ_run_tot>>8)&0x00FF;
d3322drivers/block/sbpcd.cSC.cdsc_absaddr.msf.frame=DriveStruct[d].SubQ_run_tot&0x00FF;
d3323drivers/block/sbpcd.cSC.cdsc_reladdr.msf.minute=(DriveStruct[d].SubQ_run_trk>>16)&0x00FF;
d3324drivers/block/sbpcd.cSC.cdsc_reladdr.msf.second=(DriveStruct[d].SubQ_run_trk>>8)&0x00FF;
d3325drivers/block/sbpcd.cSC.cdsc_reladdr.msf.frame=DriveStruct[d].SubQ_run_trk&0x00FF;
d3339drivers/block/sbpcd.cDriveStruct[d].mode=READ_M1;
d3346drivers/block/sbpcd.cDriveStruct[d].mode=READ_M2;
d3365drivers/block/sbpcd.cif (DriveStruct[d].aud_buf==NULL) return (-EINVAL);
d3390drivers/block/sbpcd.cDriveStruct[d].mode=READ_AU;
d3468drivers/block/sbpcd.cp = DriveStruct[d].aud_buf;
d3521drivers/block/sbpcd.cDriveStruct[d].status_byte));
d3533drivers/block/sbpcd.c(u_char *) DriveStruct[d].aud_buf,
d3540drivers/block/sbpcd.cDriveStruct[d].mode=READ_M1;
d3557drivers/block/sbpcd.clba2msf(DriveStruct[d].lba_multi,&ms_info.addr.msf.minute);
d3559drivers/block/sbpcd.cms_info.addr.lba=DriveStruct[d].lba_multi;
d3561drivers/block/sbpcd.cif (DriveStruct[d].f_multisession) ms_info.xa_flag=1; /* valid redirection address */
d3591drivers/block/sbpcd.c(CURRENT->sector/4 >= DriveStruct[d].sbp_first_frame) &&
d3592drivers/block/sbpcd.c(CURRENT->sector/4 <= DriveStruct[d].sbp_last_frame) )
d3594drivers/block/sbpcd.coffs = (CURRENT->sector - DriveStruct[d].sbp_first_frame * 4) * 512;
d3595drivers/block/sbpcd.cmemcpy(CURRENT->buffer, DriveStruct[d].sbp_buf + offs, 512);
d3656drivers/block/sbpcd.cif ((fam0L_drive) && (DriveStruct[d].xa_byte==0x20)) /* XA disk with old drive */
d3704drivers/block/sbpcd.cDriveStruct[d].sbp_first_frame=DriveStruct[d].sbp_last_frame=-1;      /* purge buffer */
d3706drivers/block/sbpcd.cif (block+SBP_BUFFER_FRAMES <= DriveStruct[d].CDsize_frm)
d3707drivers/block/sbpcd.cDriveStruct[d].sbp_read_frames = SBP_BUFFER_FRAMES;
d3710drivers/block/sbpcd.cDriveStruct[d].sbp_read_frames=DriveStruct[d].CDsize_frm-block;
d3712drivers/block/sbpcd.cif (DriveStruct[d].sbp_read_frames < 1)
d3715drivers/block/sbpcd.cblock, DriveStruct[d].CDsize_frm));
d3716drivers/block/sbpcd.cDriveStruct[d].sbp_read_frames=1;
d3719drivers/block/sbpcd.cDriveStruct[d].sbp_current = 0;
d3729drivers/block/sbpcd.cif (DriveStruct[d].xa_byte==0x20)
d3737drivers/block/sbpcd.cdrvcmd[5]=DriveStruct[d].sbp_read_frames;
d3744drivers/block/sbpcd.cif (DriveStruct[d].drv_type>=drv_201)
d3758drivers/block/sbpcd.cdrvcmd[5]=DriveStruct[d].sbp_read_frames;
d3759drivers/block/sbpcd.cdrvcmd[6]=(DriveStruct[d].drv_type<drv_201)?0:2; /* flag "lba or msf-bcd format" */
d3768drivers/block/sbpcd.cdrvcmd[6]=DriveStruct[d].sbp_read_frames;
d3775drivers/block/sbpcd.cdrvcmd[5]=DriveStruct[d].sbp_read_frames;
d3802drivers/block/sbpcd.cfor (frame=DriveStruct[d].sbp_current;frame<DriveStruct[d].sbp_read_frames&&!error_flag; frame++)
d3834drivers/block/sbpcd.cif ((DriveStruct[d].ored_ctl_adr&0x40)==0)
d3843drivers/block/sbpcd.cp = DriveStruct[d].sbp_buf + frame *  CD_FRAMESIZE;
d3850drivers/block/sbpcd.cDriveStruct[d].sbp_current++;
d3913drivers/block/sbpcd.cDriveStruct[d].status_byte));
d3925drivers/block/sbpcd.cDriveStruct[d].sbp_first_frame = CURRENT -> sector / 4;
d3926drivers/block/sbpcd.cDriveStruct[d].sbp_last_frame = DriveStruct[d].sbp_first_frame + DriveStruct[d].sbp_read_frames - 1;
d3972drivers/block/sbpcd.cDPRINTF((DBG_STA,"SBPCD: sbpcd_open: status %02X\n", DriveStruct[d].status_byte));
d3989drivers/block/sbpcd.cDriveStruct[d].open_count,DriveStruct[d].open_count+1));
d3990drivers/block/sbpcd.cif (++DriveStruct[d].open_count==1)
d3999drivers/block/sbpcd.cif ((DriveStruct[d].ored_ctl_adr&0x40)==0)
d4019drivers/block/sbpcd.cDriveStruct[d].sbp_first_frame=DriveStruct[d].sbp_last_frame=-1;
d4028drivers/block/sbpcd.cDriveStruct[d].open_count,DriveStruct[d].open_count-1));
d4029drivers/block/sbpcd.cif (DriveStruct[d].open_count!=0) /* CDROMEJECT may have been done */
d4031drivers/block/sbpcd.cif (--DriveStruct[d].open_count==0) 
d4036drivers/block/sbpcd.cif (DriveStruct[d].f_eject) yy_SpinDown();
d4037drivers/block/sbpcd.cDriveStruct[d].diskstate_flags &= ~cd_size_bit;
d4277drivers/block/sbpcd.cDriveStruct[d].sbp_first_frame = -1;  /* First frame in buffer */
d4278drivers/block/sbpcd.cDriveStruct[d].sbp_last_frame = -1;   /* Last frame in buffer  */
d4279drivers/block/sbpcd.cDriveStruct[d].sbp_read_frames = 0;   /* Number of frames being read to buffer */
d4280drivers/block/sbpcd.cDriveStruct[d].sbp_current = 0;       /* Frame being currently read */
d4281drivers/block/sbpcd.cDriveStruct[d].CD_changed=1;
d4282drivers/block/sbpcd.cDriveStruct[d].frame_size=CD_FRAMESIZE;
d4284drivers/block/sbpcd.cif (!fam0_drive) DriveStruct[d].f_eject=1;
d4285drivers/block/sbpcd.celse DriveStruct[d].f_eject=0;
d4287drivers/block/sbpcd.cDriveStruct[d].f_eject=0;
d4304drivers/block/sbpcd.cDriveStruct[d].error_byte));
d4305drivers/block/sbpcd.cif (DriveStruct[d].error_byte==aud_12)
d4311drivers/block/sbpcd.cDriveStruct[d].error_byte));
d4318drivers/block/sbpcd.cif (i>=0) DriveStruct[d].CD_changed=1;
d4452drivers/block/sbpcd.cDPRINTF((DBG_CHK,"SBPCD: media_check: %02X\n",DriveStruct[d].status_byte));
d4458drivers/block/sbpcd.cif (DriveStruct[d].CD_changed==0xFF) DPRINTF((DBG_CHK,"SBPCD: media_check: \"changed\" assumed.\n"));
d4463drivers/block/sbpcd.cDriveStruct[d].CD_changed=0xFF;
d4468drivers/block/sbpcd.cDriveStruct[d].CD_changed=0xFF;
d4473drivers/block/sbpcd.cif (DriveStruct[d].CD_changed==0xFF)
d4475drivers/block/sbpcd.cDriveStruct[d].CD_changed=1;
d226drivers/char/console.cstruct vc_data *d;
d233drivers/char/console.c#define screenbuf_size  (vc_cons[currcons].d->vc_screenbuf_size)
d234drivers/char/console.c#define origin    (vc_cons[currcons].d->vc_origin)
d235drivers/char/console.c#define scr_end    (vc_cons[currcons].d->vc_scr_end)
d236drivers/char/console.c#define pos    (vc_cons[currcons].d->vc_pos)
d237drivers/char/console.c#define top    (vc_cons[currcons].d->vc_top)
d238drivers/char/console.c#define bottom    (vc_cons[currcons].d->vc_bottom)
d239drivers/char/console.c#define x    (vc_cons[currcons].d->vc_x)
d240drivers/char/console.c#define y    (vc_cons[currcons].d->vc_y)
d241drivers/char/console.c#define vc_state  (vc_cons[currcons].d->vc_state)
d242drivers/char/console.c#define npar    (vc_cons[currcons].d->vc_npar)
d243drivers/char/console.c#define par    (vc_cons[currcons].d->vc_par)
d244drivers/char/console.c#define ques    (vc_cons[currcons].d->vc_ques)
d245drivers/char/console.c#define attr    (vc_cons[currcons].d->vc_attr)
d246drivers/char/console.c#define saved_x    (vc_cons[currcons].d->vc_saved_x)
d247drivers/char/console.c#define saved_y    (vc_cons[currcons].d->vc_saved_y)
d248drivers/char/console.c#define translate  (vc_cons[currcons].d->vc_translate)
d249drivers/char/console.c#define G0_charset  (vc_cons[currcons].d->vc_G0_charset)
d250drivers/char/console.c#define G1_charset  (vc_cons[currcons].d->vc_G1_charset)
d251drivers/char/console.c#define saved_G0  (vc_cons[currcons].d->vc_saved_G0)
d252drivers/char/console.c#define saved_G1  (vc_cons[currcons].d->vc_saved_G1)
d253drivers/char/console.c#define utf    (vc_cons[currcons].d->vc_utf)
d254drivers/char/console.c#define utf_count  (vc_cons[currcons].d->vc_utf_count)
d255drivers/char/console.c#define utf_char  (vc_cons[currcons].d->vc_utf_char)
d256drivers/char/console.c#define video_mem_start  (vc_cons[currcons].d->vc_video_mem_start)
d257drivers/char/console.c#define video_mem_end  (vc_cons[currcons].d->vc_video_mem_end)
d258drivers/char/console.c#define video_erase_char (vc_cons[currcons].d->vc_video_erase_char)  
d259drivers/char/console.c#define disp_ctrl  (vc_cons[currcons].d->vc_disp_ctrl)
d260drivers/char/console.c#define toggle_meta  (vc_cons[currcons].d->vc_toggle_meta)
d261drivers/char/console.c#define decscnm    (vc_cons[currcons].d->vc_decscnm)
d262drivers/char/console.c#define decom    (vc_cons[currcons].d->vc_decom)
d263drivers/char/console.c#define decawm    (vc_cons[currcons].d->vc_decawm)
d264drivers/char/console.c#define deccm    (vc_cons[currcons].d->vc_deccm)
d265drivers/char/console.c#define decim    (vc_cons[currcons].d->vc_decim)
d266drivers/char/console.c#define deccolm     (vc_cons[currcons].d->vc_deccolm)
d267drivers/char/console.c#define need_wrap  (vc_cons[currcons].d->vc_need_wrap)
d268drivers/char/console.c#define has_scrolled  (vc_cons[currcons].d->vc_has_scrolled)
d269drivers/char/console.c#define kmalloced  (vc_cons[currcons].d->vc_kmalloced)
d270drivers/char/console.c#define report_mouse  (vc_cons[currcons].d->vc_report_mouse)
d271drivers/char/console.c#define color    (vc_cons[currcons].d->vc_color)
d272drivers/char/console.c#define s_color    (vc_cons[currcons].d->vc_s_color)
d273drivers/char/console.c#define def_color  (vc_cons[currcons].d->vc_def_color)
d276drivers/char/console.c#define charset    (vc_cons[currcons].d->vc_charset)
d277drivers/char/console.c#define s_charset  (vc_cons[currcons].d->vc_s_charset)
d278drivers/char/console.c#define  intensity  (vc_cons[currcons].d->vc_intensity)
d279drivers/char/console.c#define  underline  (vc_cons[currcons].d->vc_underline)
d280drivers/char/console.c#define  blink    (vc_cons[currcons].d->vc_blink)
d281drivers/char/console.c#define  reverse    (vc_cons[currcons].d->vc_reverse)
d282drivers/char/console.c#define  s_intensity  (vc_cons[currcons].d->vc_s_intensity)
d283drivers/char/console.c#define  s_underline  (vc_cons[currcons].d->vc_s_underline)
d284drivers/char/console.c#define  s_blink    (vc_cons[currcons].d->vc_s_blink)
d285drivers/char/console.c#define  s_reverse  (vc_cons[currcons].d->vc_s_reverse)
d286drivers/char/console.c#define  ulcolor    (vc_cons[currcons].d->vc_ulcolor)
d287drivers/char/console.c#define  halfcolor  (vc_cons[currcons].d->vc_halfcolor)
d288drivers/char/console.c#define tab_stop  (vc_cons[currcons].d->vc_tab_stop)
d316drivers/char/console.creturn (i < MAX_NR_CONSOLES && vc_cons[i].d);
d323drivers/char/console.cif (!vc_cons[i].d) {
d342drivers/char/console.cvc_cons[i].d = (struct vc_data *) p;
d346drivers/char/console.cvc_cons[i].d->vc_kmalloced = 1;
d347drivers/char/console.cvc_cons[i].d->vc_screenbuf_size = video_screen_size;
d459drivers/char/console.ckfree_s(vc_cons[currcons].d, structsize);
d460drivers/char/console.cvc_cons[currcons].d = 0;
d616drivers/char/console.cunsigned short * d = (unsigned short *) video_mem_start;
d623drivers/char/console.cscr_writew(scr_readw(s++),d++);
d628drivers/char/console.cscr_writew(video_erase_char, d++);
d635drivers/char/console.cunsigned short * d;
d638drivers/char/console.cd = (unsigned short *) (scr_end - video_size_row);
d642drivers/char/console.cscr_writew(video_erase_char, d++);
d647drivers/char/console.cunsigned short * d = (unsigned short *) (origin+video_size_row*t);
d653drivers/char/console.cscr_writew(scr_readw(s++), d++);
d658drivers/char/console.cscr_writew(video_erase_char, d++);
d665drivers/char/console.cunsigned short *d, *s;
d670drivers/char/console.cd = (unsigned short *) (origin+video_size_row*b);
d675drivers/char/console.cscr_writew(scr_readw(--s), --d);
d680drivers/char/console.cscr_writew(video_erase_char, --d);
d1956drivers/char/console.cvc_cons[currcons].d = (struct vc_data *) kmem_start;
d823drivers/char/keyboard.cint d = diacr;
d828drivers/char/keyboard.creturn d;
d831drivers/char/keyboard.cif (accent_table[i].diacr == d && accent_table[i].base == ch)
d835drivers/char/keyboard.cput_queue(d);
d1260drivers/char/tty_io.cchar *c, *d;
d1270drivers/char/tty_io.cd = (char *)(ts->tasks+n);
d1272drivers/char/tty_io.cput_fs_byte(*c++, d++);
d549drivers/net/3c505.cshort d;
d594drivers/net/3c505.cd = inw(adapter->io_addr+PORT_DATA);
d222drivers/net/net_init.cstruct device *d = dev_base;
d249drivers/net/net_init.cwhile (d->next)
d250drivers/net/net_init.cd = d->next;
d251drivers/net/net_init.cd->next = dev;
d263drivers/net/net_init.cstruct device *d = dev_base;
d284drivers/net/net_init.cwhile (d && (d->next != dev))
d285drivers/net/net_init.cd = d->next;
d287drivers/net/net_init.cif (d && (d->next == dev)) {
d288drivers/net/net_init.cd->next = dev->next;
d91drivers/net/slip.cstatic int slip_esc(unsigned char *p, unsigned char *d, int len);
d94drivers/net/slip.cstatic int slip_esc6(unsigned char *p, unsigned char *d, int len);
d784drivers/net/slip.cslip_esc(unsigned char *s, unsigned char *d, int len)
d786drivers/net/slip.cunsigned char *ptr = d;
d818drivers/net/slip.creturn (ptr - d);
d865drivers/net/slip.cslip_esc6(unsigned char *s, unsigned char *d, int len)
d867drivers/net/slip.cunsigned char *ptr = d;
d899drivers/net/slip.creturn ptr - d;
d1469drivers/scsi/NCR5380.cregister unsigned char *d = *data;
d1502drivers/scsi/NCR5380.cNCR5380_write(OUTPUT_DATA_REG, *d);
d1504drivers/scsi/NCR5380.c*d = NCR5380_read(CURRENT_SCSI_DATA_REG);
d1506drivers/scsi/NCR5380.c++d;
d1570drivers/scsi/NCR5380.c*data = d;
d1609drivers/scsi/NCR5380.cregister unsigned char *d = *data;
d1635drivers/scsi/NCR5380.c"writing", c, (p & SR_IO) ? "to" : "from", (unsigned) d);
d1638drivers/scsi/NCR5380.cNCR5380_dma_read_setup(instance, d, c) : 
d1639drivers/scsi/NCR5380.cNCR5380_dma_write_setup(instance, d, c);
d1800drivers/scsi/NCR5380.cif (!(foo = NCR5380_pread(instance, d, c - 1))) {
d1826drivers/scsi/NCR5380.cd[c - 1] = NCR5380_read(INPUT_DATA_REG);
d1830drivers/scsi/NCR5380.cif (!(foo = NCR5380_pwrite(instance, d, c))) {
d1881drivers/scsi/NCR5380.c*data = d + c;
d478drivers/scsi/pas16.cregister unsigned char  *d = dst;
d485drivers/scsi/pas16.cinsb( reg, d, i );
d317drivers/scsi/t128.cT_DATA_REG_OFFSET), *d = dst;
d328drivers/scsi/t128.c*d++ = *reg;
d83drivers/sound/ad1848.c#define io_Index_Addr(d)  ((d)->base)
d84drivers/sound/ad1848.c#define io_Indexed_Data(d)  ((d)->base+1)
d85drivers/sound/ad1848.c#define io_Status(d)    ((d)->base+2)
d86drivers/sound/ad1848.c#define io_Polled_IO(d)    ((d)->base+3)
d55drivers/sound/os.h#define COPY_FROM_USER(d, s, o, c)  memcpy_fromfs((d), &((s)[o]), (c))
d56drivers/sound/os.h#define COPY_TO_USER(d, o, s, c)  memcpy_tofs(&((d)[o]), (s), (c))
d57drivers/sound/os.h#define IOCTL_FROM_USER(d, s, o, c)  memcpy_fromfs((d), &((s)[o]), (c))
d58drivers/sound/os.h#define IOCTL_TO_USER(d, o, s, c)  memcpy_tofs(&((d)[o]), (s), (c))
d31fs/msdos/msbuffer.h#define bread(d,b,s)      msdos_bread(sb,b)
d32fs/msdos/msbuffer.h#define getblk(d,b,s)      msdos_getblk(sb,b)
d70include/asm-m68k/unistd.h#define _syscall4(type,name,atype,a,btype,b,ctype,c,dtype,d) \
d71include/asm-m68k/unistd.htype name (atype a, btype b, ctype c, dtype d) \
d83include/asm-m68k/unistd.h"g" ((long)(d))  \
d91include/asm-m68k/unistd.h#define _syscall5(type,name,atype,a,btype,b,ctype,c,dtype,d,etype,e) \
d92include/asm-m68k/unistd.htype name (atype a,btype b,ctype c,dtype d,etype e) \
d105include/asm-m68k/unistd.h"g" ((long)(d)), \
d81include/asm-mips/types.h#define __FDELT(d)      ((d) / __NFDBITS)
d83include/asm-mips/types.h#define __FDMASK(d)     (1 << ((d) % __NFDBITS))
d85include/asm-mips/types.h#define __FD_SET(d, set)        ((set)->fds_bits[__FDELT(d)] |= __FDMASK(d))
d87include/asm-mips/types.h#define __FD_CLR(d, set)        ((set)->fds_bits[__FDELT(d)] &= ~__FDMASK(d))
d89include/asm-mips/types.h#define __FD_ISSET(d, set)      ((set)->fds_bits[__FDELT(d)] & __FDMASK(d))
d80include/asm-mips/unistd.h#define _syscall4(type,name,atype,a,btype,b,ctype,c,dtype,d) \
d81include/asm-mips/unistd.htype name (atype a, btype b, ctype c, dtype d) \
d94include/asm-mips/unistd.h"r" ((long)(d)) \
d102include/asm-mips/unistd.h#define _syscall5(type,name,atype,a,btype,b,ctype,c,dtype,d,etype,e) \
d103include/asm-mips/unistd.htype name (atype a,btype b,ctype c,dtype d,etype e) \
d117include/asm-mips/unistd.h"r" ((long)(d)), \
d61include/asm-sparc/openprom.hint  (*v2_aieee)(int d);  /* figure this out later... */
d76include/asm-sparc/openprom.hvoid  (*v2_dev_close)(int d);
d77include/asm-sparc/openprom.hint  (*v2_dev_read)(int d, char*  buf, int nbytes);
d78include/asm-sparc/openprom.hint  (*v2_dev_write)(int d, char*  buf, int nbytes);
d79include/asm-sparc/openprom.hvoid  (*v2_dev_seek)(int d, int hi, int lo);
d198include/asm-sparc/openprom.hunsigned int  (*pv_enaddr)(int d, char *enaddr);
d39include/linux/ioctl.h#define _IO(c,d)  (IOC_VOID | ((c)<<8) | (d)) /* param encoded */
d44include/linux/ioctl.h#define _IOW(c,d,t)  (IOC_IN | ((sizeof(t)<<16) & IOCSIZE_MASK) | \
d45include/linux/ioctl.h((c)<<8) | (d))
d46include/linux/ioctl.h#define _IOR(c,d,t)  (IOC_OUT | ((sizeof(t)<<16) & IOCSIZE_MASK) | \
d47include/linux/ioctl.h((c)<<8) | (d))
d49include/linux/ioctl.h#define _IOWR(c,d,t)  (IOC_INOUT | ((sizeof(t)<<16) & IOCSIZE_MASK) | \
d50include/linux/ioctl.h((c)<<8) | (d))
d157include/linux/sbpcd.h#define upc_valid (DriveStruct[d].diskstate_flags&upc_bit)
d158include/linux/sbpcd.h#define volume_valid (DriveStruct[d].diskstate_flags&volume_bit)
d159include/linux/sbpcd.h#define toc_valid (DriveStruct[d].diskstate_flags&toc_bit)
d160include/linux/sbpcd.h#define cd_size_valid (DriveStruct[d].diskstate_flags&cd_size_bit)
d161include/linux/sbpcd.h#define subq_valid (DriveStruct[d].diskstate_flags&subq_bit)
d162include/linux/sbpcd.h#define frame_size_valid (DriveStruct[d].diskstate_flags&frame_size_bit)
d217include/linux/sbpcd.h#define st_door_closed (DriveStruct[d].status_byte&p_door_closed)
d218include/linux/sbpcd.h#define st_caddy_in (DriveStruct[d].status_byte&p_caddy_in)
d219include/linux/sbpcd.h#define st_spinning (DriveStruct[d].status_byte&p_spinning)
d220include/linux/sbpcd.h#define st_check (DriveStruct[d].status_byte&p_check)
d221include/linux/sbpcd.h#define st_busy (DriveStruct[d].status_byte&p_busy_new)
d222include/linux/sbpcd.h#define st_door_locked (DriveStruct[d].status_byte&p_door_locked)
d223include/linux/sbpcd.h#define st_diskok (DriveStruct[d].status_byte&p_disk_ok)
d258include/linux/sbpcd.h#define fam0_drive (DriveStruct[d].drv_type&drv_fam0)
d259include/linux/sbpcd.h#define famL_drive (DriveStruct[d].drv_type&drv_famL)
d260include/linux/sbpcd.h#define fam1_drive (DriveStruct[d].drv_type&drv_fam1)
d261include/linux/sbpcd.h#define fam2_drive (DriveStruct[d].drv_type&drv_fam2)
d262include/linux/sbpcd.h#define fam0L_drive (DriveStruct[d].drv_type&(drv_fam0|drv_famL))
d263include/linux/sbpcd.h#define fam1L_drive (DriveStruct[d].drv_type&(drv_fam1|drv_famL))
d264include/linux/sbpcd.h#define fam01_drive (DriveStruct[d].drv_type&(drv_fam0|drv_fam1))
d522include/linux/tpqic02.h#define  TP_REWCLOSE(d)  ((MINOR(d)&0x01) == 1)         /* rewind bit */
d54net/inet/eth.cstruct device *d = dev_base;
d58net/inet/eth.cwhile (d) 
d60net/inet/eth.cif (!strcmp(str,d->name)) 
d63net/inet/eth.cd->irq=ints[1];
d65net/inet/eth.cd->base_addr=ints[2];
d67net/inet/eth.cd->mem_start=ints[3];
d69net/inet/eth.cd->mem_end=ints[4];
d72net/inet/eth.cd=d->next;
d1587net/inet/ipx.cvoid dump_data(char *str,unsigned char *d) {
d1594net/inet/ipx.c*(p++) = h2c[d[i] & 0x0f];
d1595net/inet/ipx.c*(p++) = h2c[(d[i] >> 4) & 0x0f];
d1600net/inet/ipx.cfor (i=0; i < 8 ; i++)  *(p++) = ' '<= d[i] && d[i]<'\177' ? d[i] : '.';
d1602net/inet/ipx.cd += i;