taglinefilesource code
d24arch/alpha/lib/memcpy.c#define ALIGN_DEST_TO8(d,s,n) \
d25arch/alpha/lib/memcpy.cwhile (d & 7) { \
d28arch/alpha/lib/memcpy.c*(char *) d = *(char *) s; \
d29arch/alpha/lib/memcpy.cd++; s++; \
d36arch/alpha/lib/memcpy.c#define DO_REST(d,s,n) \
d39arch/alpha/lib/memcpy.c*(char *) d = *(char *) s; \
d40arch/alpha/lib/memcpy.cd++; s++; \
d47arch/alpha/lib/memcpy.c#define DO_REST_ALIGNED(d,s,n) DO_REST(d,s,n)
d56arch/alpha/lib/memcpy.cstatic inline void __memcpy_unaligned(unsigned long d, unsigned long s, long n)
d58arch/alpha/lib/memcpy.cALIGN_DEST_TO8(d,s,n);
d74arch/alpha/lib/memcpy.c*(unsigned long *) d = low_word | tmp;
d75arch/alpha/lib/memcpy.cd += 8;
d80arch/alpha/lib/memcpy.cDO_REST(d,s,n);
d91arch/alpha/lib/memcpy.cstatic inline void __memcpy_aligned(unsigned long d, unsigned long s, long n)
d93arch/alpha/lib/memcpy.cALIGN_DEST_TO8(d,s,n);
d100arch/alpha/lib/memcpy.c*(unsigned long *) d = tmp;
d101arch/alpha/lib/memcpy.cd += 8;
d104arch/alpha/lib/memcpy.cDO_REST_ALIGNED(d,s,n);
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++];
d172arch/i386/boot/compressed/misc.cchar *d = (char *)__dest, *s = (char *)__src;
d174arch/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));
d1390drivers/block/ide-cd.cchar d = c[0];
d1392drivers/block/ide-cd.cc[1] = d;
d1400drivers/block/ide-cd.cchar d = c[0];
d1402drivers/block/ide-cd.cc[3] = d;
d1403drivers/block/ide-cd.cd = c[1];
d1405drivers/block/ide-cd.cc[2] = d;
d563drivers/block/mcd.cchar a, b, c, d;
d568drivers/block/mcd.cgetValue(&d);
d576drivers/block/sbpcd.cstatic int d=0; /* DriveStruct index: drive number */
d704drivers/block/sbpcd.csprintf(buf, "%s-%d [%02d]:  ", major_name, d, msgnum);
d884drivers/block/sbpcd.cD_S[d].CD_changed=0xFF;
d1055drivers/block/sbpcd.cD_S[d].status_bits=0;
d1056drivers/block/sbpcd.cif (fam1_drive) D_S[d].status_bits=st|p_success;
d1059drivers/block/sbpcd.cif (st&p_caddin_old) D_S[d].status_bits |= p_door_closed|p_caddy_in;
d1060drivers/block/sbpcd.cif (st&p_spinning) D_S[d].status_bits |= p_spinning;
d1061drivers/block/sbpcd.cif (st&p_check) D_S[d].status_bits |= p_check;
d1062drivers/block/sbpcd.cif (st&p_success_old) D_S[d].status_bits |= p_success;
d1063drivers/block/sbpcd.cif (st&p_busy_old) D_S[d].status_bits |= p_busy_new;
d1064drivers/block/sbpcd.cif (st&p_disk_ok) D_S[d].status_bits |= p_disk_ok;
d1068drivers/block/sbpcd.cD_S[d].status_bits |= p_success;
d1069drivers/block/sbpcd.cif (st&p_caddin_old) D_S[d].status_bits |= p_disk_ok|p_caddy_in;
d1070drivers/block/sbpcd.cif (st&p_spinning) D_S[d].status_bits |= p_spinning;
d1071drivers/block/sbpcd.cif (st&p_check) D_S[d].status_bits |= p_check;
d1072drivers/block/sbpcd.cif (st&p_busy_old) D_S[d].status_bits |= p_busy_new;
d1073drivers/block/sbpcd.cif (st&p_lcs_door_closed) D_S[d].status_bits |= p_door_closed;
d1074drivers/block/sbpcd.cif (st&p_lcs_door_locked) D_S[d].status_bits |= p_door_locked;
d1078drivers/block/sbpcd.cD_S[d].status_bits |= p_success;
d1079drivers/block/sbpcd.cif (st&p2_check) D_S[d].status_bits |= p1_check;
d1080drivers/block/sbpcd.cif (st&p2_door_closed) D_S[d].status_bits |= p1_door_closed;
d1081drivers/block/sbpcd.cif (st&p2_disk_in) D_S[d].status_bits |= p1_disk_in;
d1082drivers/block/sbpcd.cif (st&p2_busy1) D_S[d].status_bits |= p1_busy;
d1083drivers/block/sbpcd.cif (st&p2_busy2) D_S[d].status_bits |= p1_busy;
d1084drivers/block/sbpcd.cif (st&p2_spinning) D_S[d].status_bits |= p1_spinning;
d1085drivers/block/sbpcd.cif (st&p2_door_locked) D_S[d].status_bits |= p1_door_locked;
d1086drivers/block/sbpcd.cif (st&p2_disk_ok) D_S[d].status_bits |= p1_disk_ok;
d1091drivers/block/sbpcd.cD_S[d].status_bits |= p_success;
d1092drivers/block/sbpcd.cif (st&p2_check) D_S[d].status_bits |= p1_check;
d1093drivers/block/sbpcd.cif (st&p2_door_closed) D_S[d].status_bits |= p1_door_closed;
d1094drivers/block/sbpcd.cif (st&p2_disk_in) D_S[d].status_bits |= p1_disk_in;
d1095drivers/block/sbpcd.cif (st&p2_busy1) D_S[d].status_bits |= p1_busy;
d1096drivers/block/sbpcd.cif (st&p2_busy2) D_S[d].status_bits |= p1_busy;
d1097drivers/block/sbpcd.cif (st&p2_spinning) D_S[d].status_bits |= p1_spinning;
d1098drivers/block/sbpcd.cif (st&p2_door_locked) D_S[d].status_bits |= p1_door_locked;
d1099drivers/block/sbpcd.cif (st&p2_disk_ok) D_S[d].status_bits |= p1_disk_ok;
d1112drivers/block/sbpcd.cD_S[d].n_bytes=1;
d1123drivers/block/sbpcd.cD_S[d].status_bits=p1_door_closed|p1_disk_in|p1_spinning|p1_disk_ok;
d1124drivers/block/sbpcd.celse if (D_S[d].error_state==6)
d1126drivers/block/sbpcd.cD_S[d].status_bits=p1_door_closed|p1_disk_in;
d1127drivers/block/sbpcd.celse if ((D_S[d].error_state!=2)||(D_S[d].b3!=0x3A)||(D_S[d].b4==0x00))
d1130drivers/block/sbpcd.cD_S[d].status_bits=p1_door_closed;
d1131drivers/block/sbpcd.cD_S[d].open_count=0;
d1133drivers/block/sbpcd.celse if (D_S[d].b4==0x01)
d1136drivers/block/sbpcd.cD_S[d].status_bits=0;
d1137drivers/block/sbpcd.cD_S[d].open_count=0;
d1142drivers/block/sbpcd.cD_S[d].status_bits=p1_door_closed;
d1143drivers/block/sbpcd.cD_S[d].open_count=0;
d1145drivers/block/sbpcd.cmsg(DBG_TE2,"get_state_T done (%02X)...\n", D_S[d].status_bits);
d1146drivers/block/sbpcd.creturn (D_S[d].status_bits);
d1194drivers/block/sbpcd.cD_S[d].status_bits=0;
d1203drivers/block/sbpcd.cmsg(DBG_STA,"status_bits=%02X, i=%02X\n",D_S[d].status_bits,i);
d1205drivers/block/sbpcd.creturn (D_S[d].status_bits);
d1258drivers/block/sbpcd.cD_S[d].error_byte=0;
d1263drivers/block/sbpcd.cD_S[d].error_byte=infobuf[i];
d1264drivers/block/sbpcd.cmsg(DBG_ERR,"cc_ReadError: infobuf[%d] is %d (%02X)\n",i,D_S[d].error_byte,D_S[d].error_byte);
d1277drivers/block/sbpcd.cD_S[d].error_state=0;
d1278drivers/block/sbpcd.cD_S[d].b3=0;
d1279drivers/block/sbpcd.cD_S[d].b4=0;
d1280drivers/block/sbpcd.cD_S[d].f_drv_error=0;
d1286drivers/block/sbpcd.cOUT(CDo_enable,D_S[d].drv_sel);
d1365drivers/block/sbpcd.cD_S[d].error_state=infobuf[2];
d1366drivers/block/sbpcd.cD_S[d].b3=infobuf[3];
d1367drivers/block/sbpcd.cD_S[d].b4=infobuf[4];
d1368drivers/block/sbpcd.cif (D_S[d].f_drv_error)
d1370drivers/block/sbpcd.cD_S[d].f_drv_error=0;
d1372drivers/block/sbpcd.cD_S[d].error_state=2;
d1374drivers/block/sbpcd.creturn (-D_S[d].error_state-400);
d1381drivers/block/sbpcd.cD_S[d].f_drv_error=1;
d1383drivers/block/sbpcd.cD_S[d].error_state=2;
d1415drivers/block/sbpcd.cif (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to CDi_stat_loop.\n");
d1424drivers/block/sbpcd.cif (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cc_ReadStatus.\n");
d1430drivers/block/sbpcd.cif (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to ResponseStatus.\n");
d1446drivers/block/sbpcd.cif (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cc_ReadError.\n");
d1448drivers/block/sbpcd.cif (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cmd_out OK.\n");
d1499drivers/block/sbpcd.cD_S[d].n_bytes=1;
d1511drivers/block/sbpcd.cD_S[d].in_SpinUp = 1;
d1537drivers/block/sbpcd.cD_S[d].in_SpinUp = 0;
d1593drivers/block/sbpcd.cdrvcmd[1]=D_S[d].speed_byte;
d1594drivers/block/sbpcd.cdrvcmd[2]=D_S[d].frmsiz>>8;
d1595drivers/block/sbpcd.cdrvcmd[3]=D_S[d].frmsiz&0x0FF;
d1596drivers/block/sbpcd.cdrvcmd[4]=D_S[d].f_XA; /* 1: XA */
d1597drivers/block/sbpcd.cdrvcmd[5]=D_S[d].type_byte; /* 0, 1, 3 */
d1598drivers/block/sbpcd.cdrvcmd[6]=D_S[d].mode_xb_6;
d1599drivers/block/sbpcd.cdrvcmd[7]=D_S[d].mode_yb_7|D_S[d].volume_control;
d1600drivers/block/sbpcd.cdrvcmd[8]=D_S[d].mode_xb_8;
d1601drivers/block/sbpcd.cdrvcmd[9]=D_S[d].delay;
d1616drivers/block/sbpcd.cD_S[d].speed_byte=0x02; /* 0x02: auto quad, 0x82: quad, 0x81: double, 0x80: single */
d1617drivers/block/sbpcd.cD_S[d].frmsiz=make16(infobuf[2],infobuf[3]);
d1618drivers/block/sbpcd.cD_S[d].f_XA=infobuf[4];
d1619drivers/block/sbpcd.cif (D_S[d].f_XA==0) D_S[d].type_byte=0;
d1620drivers/block/sbpcd.celse D_S[d].type_byte=1;
d1621drivers/block/sbpcd.cD_S[d].mode_xb_6=infobuf[6];
d1622drivers/block/sbpcd.cD_S[d].mode_yb_7=1;
d1623drivers/block/sbpcd.cD_S[d].mode_xb_8=infobuf[8];
d1624drivers/block/sbpcd.cD_S[d].delay=0; /* 0, 1, 2, 3 */
d1679drivers/block/sbpcd.cD_S[d].diskstate_flags &= ~volume_bit;
d1681drivers/block/sbpcd.cchannel0=D_S[d].vol_chan0;
d1682drivers/block/sbpcd.cvolume0=D_S[d].vol_ctrl0;
d1683drivers/block/sbpcd.cchannel1=control1=D_S[d].vol_chan1;
d1684drivers/block/sbpcd.cvolume1=value1=D_S[d].vol_ctrl1;
d1687drivers/block/sbpcd.cif (((D_S[d].drv_options&audio_mono)!=0)&&(D_S[d].drv_type>=drv_211))
d1756drivers/block/sbpcd.cif (D_S[d].drv_type>=drv_300)
d1768drivers/block/sbpcd.cif (D_S[d].drv_type<drv_211)
d1801drivers/block/sbpcd.celse if (D_S[d].drv_type<drv_201) volume0=volume1=value0;
d1803drivers/block/sbpcd.cif (D_S[d].drv_type>=drv_201)
d1808drivers/block/sbpcd.cif (D_S[d].drv_type>=drv_211)
d1822drivers/block/sbpcd.cD_S[d].volume_control=0;
d1823drivers/block/sbpcd.cif (!volume0) D_S[d].volume_control|=0x10;
d1824drivers/block/sbpcd.cif (!volume1) D_S[d].volume_control|=0x20;
d1834drivers/block/sbpcd.cD_S[d].diskstate_flags |= volume_bit;
d1874drivers/block/sbpcd.cOUT(CDo_enable,D_S[d].drv_sel);
d1891drivers/block/sbpcd.cif (D_S[d].error_byte!=aud_12) return -501;
d1899drivers/block/sbpcd.cif (!(D_S[d].drv_options&(speed_auto|speed_300|speed_150))) return (0);
d1901drivers/block/sbpcd.cif (!(D_S[d].drv_options&speed_auto))
d1904drivers/block/sbpcd.cif (!(D_S[d].drv_options&speed_300)) speed=0;
d1925drivers/block/sbpcd.cD_S[d].CD_changed=1;
d1939drivers/block/sbpcd.cif (D_S[d].audio_state==audio_playing) return (-EINVAL);
d2024drivers/block/sbpcd.cif (pau_res==3)  return (cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end));
d2037drivers/block/sbpcd.cmsg(DBG_LCK,"cc_LockDoor: %d (drive %d)\n", lock, d);
d2122drivers/block/sbpcd.cmsg(DBG_LCK,"cc_CloseTray (drive %d)\n", d);
d2159drivers/block/sbpcd.cD_S[d].diskstate_flags &= ~subq_bit;
d2208drivers/block/sbpcd.cD_S[d].SubQ_ctl_adr=D_S[d].SubQ_trk=D_S[d].SubQ_pnt_idx=D_S[d].SubQ_whatisthis=0;
d2209drivers/block/sbpcd.cD_S[d].SubQ_run_tot=D_S[d].SubQ_run_trk=0;
d2213drivers/block/sbpcd.cif (famT_drive) D_S[d].SubQ_ctl_adr=infobuf[1];
d2214drivers/block/sbpcd.celse D_S[d].SubQ_ctl_adr=swap_nibbles(infobuf[1]);
d2215drivers/block/sbpcd.cD_S[d].SubQ_trk=byt2bcd(infobuf[2]);
d2216drivers/block/sbpcd.cD_S[d].SubQ_pnt_idx=byt2bcd(infobuf[3]);
d2220drivers/block/sbpcd.cD_S[d].SubQ_run_tot=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */
d2225drivers/block/sbpcd.cD_S[d].SubQ_run_trk=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */
d2226drivers/block/sbpcd.cD_S[d].SubQ_whatisthis=infobuf[i+3];
d2227drivers/block/sbpcd.cD_S[d].diskstate_flags |= subq_bit;
d2236drivers/block/sbpcd.cD_S[d].diskstate_flags &= ~frame_size_bit;
d2260drivers/block/sbpcd.cif (fam1_drive) D_S[d].sense_byte=infobuf[i++];
d2261drivers/block/sbpcd.celse if (fam0L_drive) D_S[d].sense_byte=0;
d2264drivers/block/sbpcd.cD_S[d].sense_byte=0;
d2265drivers/block/sbpcd.cif (infobuf[4]==0x01) D_S[d].xa_byte=0x20; /* wrong!!!! */
d2268drivers/block/sbpcd.cD_S[d].frame_size=make16(infobuf[i],infobuf[i+1]);
d2274drivers/block/sbpcd.cD_S[d].diskstate_flags |= frame_size_bit;
d2284drivers/block/sbpcd.cD_S[d].diskstate_flags &= ~frame_size_bit;
d2286drivers/block/sbpcd.cD_S[d].frame_size=framesize;
d2287drivers/block/sbpcd.cif (framesize==CD_FRAMESIZE_RAW) D_S[d].sense_byte=0x82;
d2288drivers/block/sbpcd.celse D_S[d].sense_byte=0x00;
d2291drivers/block/sbpcd.cD_S[d].sense_byte, D_S[d].frame_size);
d2297drivers/block/sbpcd.cdrvcmd[2]=D_S[d].sense_byte;
d2298drivers/block/sbpcd.cdrvcmd[3]=(D_S[d].frame_size>>8)&0xFF;
d2299drivers/block/sbpcd.cdrvcmd[4]=D_S[d].frame_size&0xFF;
d2306drivers/block/sbpcd.cdrvcmd[2]=(D_S[d].frame_size>>8)&0xFF;
d2307drivers/block/sbpcd.cdrvcmd[3]=D_S[d].frame_size&0xFF;
d2321drivers/block/sbpcd.cD_S[d].diskstate_flags |= frame_size_bit;
d2334drivers/block/sbpcd.cD_S[d].diskstate_flags &= ~volume_bit;
d2410drivers/block/sbpcd.cif (D_S[d].drv_type>=drv_201)
d2412drivers/block/sbpcd.cif (D_S[d].drv_type<drv_300)
d2417drivers/block/sbpcd.cif (D_S[d].drv_type>=drv_211)
d2437drivers/block/sbpcd.cD_S[d].volume_control=infobuf[7];
d2440drivers/block/sbpcd.cif (D_S[d].volume_control&0x10) vol0=0;
d2442drivers/block/sbpcd.cif (D_S[d].volume_control&0x20) vol1=0;
d2445drivers/block/sbpcd.cD_S[d].vol_chan0=chan0;
d2446drivers/block/sbpcd.cD_S[d].vol_ctrl0=vol0;
d2447drivers/block/sbpcd.cD_S[d].vol_chan1=chan1;
d2448drivers/block/sbpcd.cD_S[d].vol_ctrl1=vol1;
d2450drivers/block/sbpcd.cD_S[d].vol_chan2=2;
d2451drivers/block/sbpcd.cD_S[d].vol_ctrl2=0xFF;
d2452drivers/block/sbpcd.cD_S[d].vol_chan3=3;
d2453drivers/block/sbpcd.cD_S[d].vol_ctrl3=0xFF;
d2455drivers/block/sbpcd.cD_S[d].diskstate_flags |= volume_bit;
d2464drivers/block/sbpcd.cD_S[d].diskstate_flags &= ~cd_size_bit;
d2501drivers/block/sbpcd.cif (fam1_drive) D_S[d].CDsize_frm=msf2blk(make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])))+CD_BLOCK_OFFSET;
d2502drivers/block/sbpcd.celse if (fam0_drive) D_S[d].CDsize_frm=make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2]));
d2503drivers/block/sbpcd.celse if (fam2_drive) D_S[d].CDsize_frm=make32(make16(infobuf[0],infobuf[1]),make16(infobuf[2],infobuf[3]));
d2506drivers/block/sbpcd.cD_S[d].CDsize_frm=make32(make16(infobuf[8],infobuf[9]),make16(infobuf[10],infobuf[11]));
d2507drivers/block/sbpcd.cD_S[d].n_first_track=infobuf[2];
d2508drivers/block/sbpcd.cD_S[d].n_last_track=infobuf[3];
d2511drivers/block/sbpcd.cD_S[d].diskstate_flags |= cd_size_bit;
d2512drivers/block/sbpcd.cmsg(DBG_000,"cc_ReadCapacity: %d frames.\n", D_S[d].CDsize_frm);
d2520drivers/block/sbpcd.cD_S[d].diskstate_flags &= ~toc_bit;
d2540drivers/block/sbpcd.cD_S[d].f_multisession=0;
d2550drivers/block/sbpcd.cD_S[d].f_multisession=0;
d2561drivers/block/sbpcd.cD_S[d].xa_byte=infobuf[0];
d2564drivers/block/sbpcd.cD_S[d].first_session=infobuf[1];
d2565drivers/block/sbpcd.cD_S[d].last_session=infobuf[2];
d2566drivers/block/sbpcd.cD_S[d].n_first_track=infobuf[3];
d2567drivers/block/sbpcd.cD_S[d].n_last_track=infobuf[4];
d2568drivers/block/sbpcd.cif (D_S[d].first_session!=D_S[d].last_session)
d2570drivers/block/sbpcd.cD_S[d].f_multisession=1;
d2571drivers/block/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7])));
d2574drivers/block/sbpcd.cif (D_S[d].first_session!=D_S[d].last_session)
d2576drivers/block/sbpcd.cif (D_S[d].last_session<=20)
d2577drivers/block/sbpcd.czwanzig=D_S[d].last_session+1;
d2579drivers/block/sbpcd.cfor (count=D_S[d].first_session;count<zwanzig;count++)
d2589drivers/block/sbpcd.cD_S[d].msf_multi_n[count]=make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7]));
d2591drivers/block/sbpcd.cD_S[d].diskstate_flags |= multisession_bit;
d2602drivers/block/sbpcd.cD_S[d].size_msf=make32(make16(0,infobuf[2]),make16(infobuf[3],infobuf[4]));
d2603drivers/block/sbpcd.cD_S[d].size_blk=msf2blk(D_S[d].size_msf);
d2607drivers/block/sbpcd.cD_S[d].size_msf=make32(make16(infobuf[8],infobuf[9]),make16(infobuf[10],infobuf[11]));
d2608drivers/block/sbpcd.cD_S[d].size_blk=msf2blk(D_S[d].size_msf);
d2609drivers/block/sbpcd.cD_S[d].n_first_track=infobuf[2];
d2610drivers/block/sbpcd.cD_S[d].n_last_track=infobuf[3];
d2614drivers/block/sbpcd.cD_S[d].n_first_track=infobuf[1];
d2615drivers/block/sbpcd.cD_S[d].n_last_track=infobuf[2];
d2616drivers/block/sbpcd.cD_S[d].size_msf=make32(make16(0,infobuf[3]),make16(infobuf[4],infobuf[5]));
d2617drivers/block/sbpcd.cD_S[d].size_blk=msf2blk(D_S[d].size_msf);
d2618drivers/block/sbpcd.cif (famL_drive) D_S[d].CDsize_frm=D_S[d].size_blk+1;
d2620drivers/block/sbpcd.cD_S[d].diskstate_flags |= toc_bit;
d2622drivers/block/sbpcd.cD_S[d].xa_byte,
d2623drivers/block/sbpcd.cD_S[d].n_first_track,
d2624drivers/block/sbpcd.cD_S[d].n_last_track,
d2625drivers/block/sbpcd.cD_S[d].size_msf);
d2674drivers/block/sbpcd.cD_S[d].TocEnt_nixbyte=infobuf[0];
d2682drivers/block/sbpcd.cD_S[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]);
d2685drivers/block/sbpcd.cD_S[d].TocEnt_number=infobuf[i++];
d2686drivers/block/sbpcd.cD_S[d].TocEnt_format=infobuf[i];
d2688drivers/block/sbpcd.celse D_S[d].TocEnt_number=num;
d2693drivers/block/sbpcd.cD_S[d].TocEnt_address=make32(make16(0,infobuf[i]),
d2696drivers/block/sbpcd.cD_S[d].TocEnt_nixbyte, D_S[d].TocEnt_ctl_adr,
d2697drivers/block/sbpcd.cD_S[d].TocEnt_number, D_S[d].TocEnt_format,
d2698drivers/block/sbpcd.cD_S[d].TocEnt_address);
d2729drivers/block/sbpcd.cif (fam1_drive) D_S[d].UPC_buf[i]=swap_nibbles(*p++);
d2732drivers/block/sbpcd.cD_S[d].UPC_buf[i]=((*p++)<<4)&0xFF;
d2733drivers/block/sbpcd.cD_S[d].UPC_buf[i] |= *p++;
d2744drivers/block/sbpcd.cD_S[d].UPC_buf[6] &= 0xF0;
d2761drivers/block/sbpcd.cD_S[d].diskstate_flags &= ~upc_bit;
d2830drivers/block/sbpcd.cD_S[d].UPC_ctl_adr=0;
d2836drivers/block/sbpcd.cD_S[d].UPC_ctl_adr = (D_S[d].TocEnt_ctl_adr & 0xF0) | 0x02;
d2839drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", D_S[d].UPC_buf[i]);
d2840drivers/block/sbpcd.csprintf(&msgbuf[i*3], " (%02X)", D_S[d].UPC_ctl_adr);
d2843drivers/block/sbpcd.cD_S[d].diskstate_flags |= upc_bit;
d2852drivers/block/sbpcd.cD_S[d].f_multisession=0;
d2853drivers/block/sbpcd.cD_S[d].lba_multi=0;
d2865drivers/block/sbpcd.cD_S[d].f_multisession=1;
d2866drivers/block/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[1]),
d2879drivers/block/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),
d2892drivers/block/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[9]),make16(infobuf[10],infobuf[11])));
d2897drivers/block/sbpcd.cmsg(DBG_MUL,"MultiSession Info:%s (%d)\n", msgbuf, D_S[d].lba_multi);
d2898drivers/block/sbpcd.cif (D_S[d].lba_multi>200)
d2900drivers/block/sbpcd.cD_S[d].f_multisession=1;
d2901drivers/block/sbpcd.cmsg(DBG_MUL,"MultiSession base: %06X\n", D_S[d].lba_multi);
d2918drivers/block/sbpcd.cif (D_S[d].audio_state!=audio_playing) return (-ENODATA);
d2929drivers/block/sbpcd.cD_S[d].frame_size=CD_FRAMESIZE_SUB;
d3007drivers/block/sbpcd.cCDo_command, type, D_S[d].drive_model, D_S[d].drv_id);
d3024drivers/block/sbpcd.cmsg(DBG_TE2,"check_version: id=%d, d=%d.\n", D_S[d].drv_id, d);
d3025drivers/block/sbpcd.cD_S[d].drv_type=0;
d3062drivers/block/sbpcd.cD_S[d].drive_model[0]='C';
d3063drivers/block/sbpcd.cD_S[d].drive_model[1]='R';
d3064drivers/block/sbpcd.cD_S[d].drive_model[2]='-';
d3065drivers/block/sbpcd.cD_S[d].drive_model[3]='5';
d3066drivers/block/sbpcd.cD_S[d].drive_model[4]=infobuf[i++];
d3067drivers/block/sbpcd.cD_S[d].drive_model[5]=infobuf[i++];
d3068drivers/block/sbpcd.cD_S[d].drive_model[6]=0;
d3069drivers/block/sbpcd.cD_S[d].drv_type=drv_fam1;
d3071drivers/block/sbpcd.cif (!D_S[d].drv_type)
d3076drivers/block/sbpcd.cD_S[d].drive_model[0]='C';
d3077drivers/block/sbpcd.cD_S[d].drive_model[1]='R';
d3078drivers/block/sbpcd.cD_S[d].drive_model[2]='-';
d3079drivers/block/sbpcd.cD_S[d].drive_model[3]='5';
d3080drivers/block/sbpcd.cD_S[d].drive_model[4]='2';
d3081drivers/block/sbpcd.cD_S[d].drive_model[5]='x';
d3082drivers/block/sbpcd.cD_S[d].drive_model[6]=0;
d3083drivers/block/sbpcd.cD_S[d].drv_type=drv_fam0;
d3086drivers/block/sbpcd.cif (!D_S[d].drv_type)
d3092drivers/block/sbpcd.cD_S[d].drive_model[j]=infobuf[j];
d3093drivers/block/sbpcd.cD_S[d].drive_model[8]=0;
d3094drivers/block/sbpcd.cD_S[d].drv_type=drv_famL;
d3097drivers/block/sbpcd.cif (!D_S[d].drv_type)
d3114drivers/block/sbpcd.cOUT(CDo_enable,D_S[d].drv_sel);
d3140drivers/block/sbpcd.cD_S[d].drive_model[0]='C';
d3141drivers/block/sbpcd.cD_S[d].drive_model[1]='D';
d3142drivers/block/sbpcd.cD_S[d].drive_model[2]='2';
d3143drivers/block/sbpcd.cD_S[d].drive_model[3]='0';
d3144drivers/block/sbpcd.cD_S[d].drive_model[4]='0';
d3145drivers/block/sbpcd.cD_S[d].drive_model[5]=infobuf[i++];
d3146drivers/block/sbpcd.cD_S[d].drive_model[6]=infobuf[i++];
d3147drivers/block/sbpcd.cD_S[d].drive_model[7]=0;
d3148drivers/block/sbpcd.cD_S[d].drv_type=drv_fam2;
d3152drivers/block/sbpcd.cif (!D_S[d].drv_type)
d3156drivers/block/sbpcd.cfor (j=1;j<=((D_S[d].drv_id==0)?3:1);j++)
d3158drivers/block/sbpcd.cfor (l=1;l<=((D_S[d].drv_id==0)?10:1);l++)
d3164drivers/block/sbpcd.cOUT(CDo_enable,D_S[d].drv_sel);
d3170drivers/block/sbpcd.cOUT(CDo_enable,D_S[d].drv_sel);
d3197drivers/block/sbpcd.cD_S[d].drive_model[0]='C';
d3198drivers/block/sbpcd.cD_S[d].drive_model[1]='D';
d3199drivers/block/sbpcd.cD_S[d].drive_model[2]='-';
d3200drivers/block/sbpcd.cD_S[d].drive_model[3]='5';
d3201drivers/block/sbpcd.cD_S[d].drive_model[4]='5';
d3202drivers/block/sbpcd.cD_S[d].drive_model[5]=0;
d3203drivers/block/sbpcd.cD_S[d].drv_type=drv_famT;
d3207drivers/block/sbpcd.cif (!D_S[d].drv_type)
d3209drivers/block/sbpcd.cmsg(DBG_TEA,"no drive found at address %03X under ID %d.\n",CDo_command,D_S[d].drv_id);
d3212drivers/block/sbpcd.cfor (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j];
d3219drivers/block/sbpcd.cif (D_S[d].firmware_version[j]!=lcs_firm_e1[j]) break;
d3220drivers/block/sbpcd.cif (j==4) D_S[d].drv_type=drv_e1;
d3223drivers/block/sbpcd.cif (D_S[d].firmware_version[j]!=lcs_firm_f4[j]) break;
d3224drivers/block/sbpcd.cif (j==4) D_S[d].drv_type=drv_f4;
d3226drivers/block/sbpcd.cif (D_S[d].drv_type==drv_famL) ask_mail();
d3233drivers/block/sbpcd.cD_S[d].firmware_version[0]=infobuf[7];
d3234drivers/block/sbpcd.cD_S[d].firmware_version[1]=infobuf[8];
d3235drivers/block/sbpcd.cD_S[d].firmware_version[2]=infobuf[10];
d3236drivers/block/sbpcd.cD_S[d].firmware_version[3]=infobuf[11];
d3241drivers/block/sbpcd.cD_S[d].firmware_version[0]='0';
d3242drivers/block/sbpcd.cD_S[d].firmware_version[1]='.';
d3243drivers/block/sbpcd.cD_S[d].firmware_version[2]='0'+(j>>4);
d3244drivers/block/sbpcd.cD_S[d].firmware_version[3]='0'+(j&0x0f);
d3249drivers/block/sbpcd.cj = (D_S[d].firmware_version[0] & 0x0F) * 100 +
d3250drivers/block/sbpcd.c(D_S[d].firmware_version[2] & 0x0F) *10 +
d3251drivers/block/sbpcd.c(D_S[d].firmware_version[3] & 0x0F);
d3254drivers/block/sbpcd.cif (j<200) D_S[d].drv_type=drv_199;
d3255drivers/block/sbpcd.celse if (j<201) D_S[d].drv_type=drv_200;
d3256drivers/block/sbpcd.celse if (j<210) D_S[d].drv_type=drv_201;
d3257drivers/block/sbpcd.celse if (j<211) D_S[d].drv_type=drv_210;
d3258drivers/block/sbpcd.celse if (j<300) D_S[d].drv_type=drv_211;
d3259drivers/block/sbpcd.celse if (j>=300) D_S[d].drv_type=drv_300;
d3263drivers/block/sbpcd.cif (j<100) D_S[d].drv_type=drv_099;
d3266drivers/block/sbpcd.cD_S[d].drv_type=drv_100;
d3272drivers/block/sbpcd.cmsg(DBG_INF,"new drive CD200 (%s)detected.\n", D_S[d].firmware_version);
d3277drivers/block/sbpcd.cmsg(DBG_LCS,"drive type %02X\n",D_S[d].drv_type);
d3284drivers/block/sbpcd.cd=i;
d3285drivers/block/sbpcd.cOUT(CDo_enable,D_S[d].drv_sel);
d3286drivers/block/sbpcd.cmsg(DBG_DID,"drive %d (ID=%d) activated.\n", i, D_S[d].drv_id);
d3416drivers/block/sbpcd.cD_S[d].drv_options=drv_pattern[j];
d3417drivers/block/sbpcd.cif (fam0L_drive) D_S[d].drv_options&=~(speed_auto|speed_300|speed_150);
d3419drivers/block/sbpcd.cd,
d3420drivers/block/sbpcd.cD_S[d].drv_id,
d3421drivers/block/sbpcd.cD_S[d].drive_model,
d3422drivers/block/sbpcd.cD_S[d].firmware_version,
d3558drivers/block/sbpcd.ci=msf2blk(D_S[d].pos_audio_end)-1;
d3568drivers/block/sbpcd.cD_S[d].diskstate_flags &= ~toc_bit;
d3569drivers/block/sbpcd.cD_S[d].ored_ctl_adr=0;
d3570drivers/block/sbpcd.cfor (j=D_S[d].n_first_track;j<=D_S[d].n_last_track;j++)
d3578drivers/block/sbpcd.cD_S[d].TocBuffer[j].nixbyte=D_S[d].TocEnt_nixbyte;
d3579drivers/block/sbpcd.cD_S[d].TocBuffer[j].ctl_adr=D_S[d].TocEnt_ctl_adr;
d3580drivers/block/sbpcd.cD_S[d].TocBuffer[j].number=D_S[d].TocEnt_number;
d3581drivers/block/sbpcd.cD_S[d].TocBuffer[j].format=D_S[d].TocEnt_format;
d3582drivers/block/sbpcd.cD_S[d].TocBuffer[j].address=D_S[d].TocEnt_address;
d3583drivers/block/sbpcd.cD_S[d].ored_ctl_adr |= D_S[d].TocEnt_ctl_adr;
d3586drivers/block/sbpcd.cD_S[d].TocBuffer[j].nixbyte=0;
d3587drivers/block/sbpcd.cD_S[d].TocBuffer[j].ctl_adr=0;
d3588drivers/block/sbpcd.cD_S[d].TocBuffer[j].number=CDROM_LEADOUT;
d3589drivers/block/sbpcd.cD_S[d].TocBuffer[j].format=0;
d3590drivers/block/sbpcd.cD_S[d].TocBuffer[j].address=D_S[d].size_msf;
d3592drivers/block/sbpcd.cD_S[d].diskstate_flags |= toc_bit;
d3600drivers/block/sbpcd.cD_S[d].mode=READ_M1;
d3645drivers/block/sbpcd.cif (D_S[d].f_multisession) D_S[d].sbp_bufsiz=1;  /* possibly a weird PhotoCD */
d3646drivers/block/sbpcd.celse D_S[d].sbp_bufsiz=SBP_BUFFER_FRAMES;
d3647drivers/block/sbpcd.ci=cc_ReadTocEntry(D_S[d].n_first_track);
d3655drivers/block/sbpcd.cif ((fam0L_drive) && (D_S[d].xa_byte==0x20))
d3683drivers/block/sbpcd.cif (D_S[d].CD_changed==0xFF)
d3685drivers/block/sbpcd.cD_S[d].diskstate_flags=0;
d3686drivers/block/sbpcd.cD_S[d].audio_state=0;
d3697drivers/block/sbpcd.cD_S[d].CD_changed=1;
d3706drivers/block/sbpcd.cD_S[d].diskstate_flags=0;
d3707drivers/block/sbpcd.cD_S[d].audio_state=0;
d3715drivers/block/sbpcd.cif (D_S[d].audio_state!=audio_pausing)
d3723drivers/block/sbpcd.cif (D_S[d].audio_state==audio_playing) seek_pos_audio_end();
d3724drivers/block/sbpcd.cD_S[d].audio_state=0;
d3731drivers/block/sbpcd.cD_S[d].diskstate_flags=0;
d3732drivers/block/sbpcd.cD_S[d].audio_state=0;
d3808drivers/block/sbpcd.cif (d!=i) switch_drive(i);
d3835drivers/block/sbpcd.cswitch (D_S[d].audio_state)
d3844drivers/block/sbpcd.cD_S[d].pos_audio_start=D_S[d].SubQ_run_tot;
d3845drivers/block/sbpcd.cD_S[d].audio_state=audio_pausing;
d3848drivers/block/sbpcd.ci=cc_Seek(D_S[d].pos_audio_start,1);
d3860drivers/block/sbpcd.cif (D_S[d].audio_state!=audio_pausing) return -EINVAL;
d3862drivers/block/sbpcd.ci=cc_PlayAudio(D_S[d].pos_audio_start,
d3863drivers/block/sbpcd.cD_S[d].pos_audio_end);
d3866drivers/block/sbpcd.cD_S[d].audio_state=audio_playing;
d3871drivers/block/sbpcd.cif (D_S[d].audio_state==audio_playing)
d3877drivers/block/sbpcd.cD_S[d].pos_audio_start=D_S[d].SubQ_run_tot;
d3878drivers/block/sbpcd.ci=cc_Seek(D_S[d].pos_audio_start,1);
d3884drivers/block/sbpcd.cD_S[d].pos_audio_start = (msf.cdmsf_min0<<16) |
d3887drivers/block/sbpcd.cD_S[d].pos_audio_end = (msf.cdmsf_min1<<16) |
d3891drivers/block/sbpcd.cD_S[d].pos_audio_start,D_S[d].pos_audio_end);
d3892drivers/block/sbpcd.ci=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end);
d3897drivers/block/sbpcd.cD_S[d].audio_state=audio_playing;
d3902drivers/block/sbpcd.cif (D_S[d].audio_state==audio_playing)
d3917drivers/block/sbpcd.cif (ti.cdti_trk0<D_S[d].n_first_track) return (-EINVAL);
d3918drivers/block/sbpcd.cif (ti.cdti_trk0>D_S[d].n_last_track) return (-EINVAL);
d3920drivers/block/sbpcd.cif (ti.cdti_trk1>D_S[d].n_last_track) ti.cdti_trk1=D_S[d].n_last_track;
d3921drivers/block/sbpcd.cD_S[d].pos_audio_start=D_S[d].TocBuffer[ti.cdti_trk0].address;
d3922drivers/block/sbpcd.cD_S[d].pos_audio_end=D_S[d].TocBuffer[ti.cdti_trk1+1].address;
d3923drivers/block/sbpcd.ci=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end);
d3927drivers/block/sbpcd.cD_S[d].audio_state=audio_playing;
d3932drivers/block/sbpcd.ctochdr.cdth_trk0=D_S[d].n_first_track;
d3933drivers/block/sbpcd.ctochdr.cdth_trk1=D_S[d].n_last_track;
d3945drivers/block/sbpcd.cif (i==CDROM_LEADOUT) i=D_S[d].n_last_track+1;
d3946drivers/block/sbpcd.celse if (i<D_S[d].n_first_track||i>D_S[d].n_last_track) return (-EINVAL);
d3947drivers/block/sbpcd.ctocentry.cdte_adr=D_S[d].TocBuffer[i].ctl_adr&0x0F;
d3948drivers/block/sbpcd.ctocentry.cdte_ctrl=(D_S[d].TocBuffer[i].ctl_adr>>4)&0x0F;
d3949drivers/block/sbpcd.ctocentry.cdte_datamode=D_S[d].TocBuffer[i].format;
d3952drivers/block/sbpcd.ctocentry.cdte_addr.msf.minute=(D_S[d].TocBuffer[i].address>>16)&0x00FF;
d3953drivers/block/sbpcd.ctocentry.cdte_addr.msf.second=(D_S[d].TocBuffer[i].address>>8)&0x00FF;
d3954drivers/block/sbpcd.ctocentry.cdte_addr.msf.frame=D_S[d].TocBuffer[i].address&0x00FF;
d3957drivers/block/sbpcd.ctocentry.cdte_addr.lba=msf2blk(D_S[d].TocBuffer[i].address);
d3967drivers/block/sbpcd.cD_S[d].audio_state=0;
d3973drivers/block/sbpcd.cD_S[d].audio_state=0;
d3979drivers/block/sbpcd.cD_S[d].audio_state=0;
d3985drivers/block/sbpcd.cif (D_S[d].open_count>1) return (-EBUSY);
d3987drivers/block/sbpcd.cD_S[d].open_count=-9; /* to get it locked next time again */
d3992drivers/block/sbpcd.cD_S[d].CD_changed=0xFF;
d3993drivers/block/sbpcd.cD_S[d].diskstate_flags=0;
d3994drivers/block/sbpcd.cD_S[d].audio_state=0;
d4000drivers/block/sbpcd.cD_S[d].f_eject=arg;
d4008drivers/block/sbpcd.cD_S[d].vol_chan0=0;
d4009drivers/block/sbpcd.cD_S[d].vol_ctrl0=volctrl.channel0;
d4010drivers/block/sbpcd.cD_S[d].vol_chan1=1;
d4011drivers/block/sbpcd.cD_S[d].vol_ctrl1=volctrl.channel1;
d4021drivers/block/sbpcd.cvolctrl.channel0=D_S[d].vol_ctrl0;
d4022drivers/block/sbpcd.cvolctrl.channel1=D_S[d].vol_ctrl1;
d4038drivers/block/sbpcd.cswitch (D_S[d].audio_state)
d4050drivers/block/sbpcd.cSC.cdsc_adr=D_S[d].SubQ_ctl_adr;
d4051drivers/block/sbpcd.cSC.cdsc_ctrl=D_S[d].SubQ_ctl_adr>>4;
d4052drivers/block/sbpcd.cSC.cdsc_trk=bcd2bin(D_S[d].SubQ_trk);
d4053drivers/block/sbpcd.cSC.cdsc_ind=bcd2bin(D_S[d].SubQ_pnt_idx);
d4056drivers/block/sbpcd.cSC.cdsc_absaddr.lba=msf2blk(D_S[d].SubQ_run_tot);
d4057drivers/block/sbpcd.cSC.cdsc_reladdr.lba=msf2blk(D_S[d].SubQ_run_trk);
d4061drivers/block/sbpcd.cSC.cdsc_absaddr.msf.minute=(D_S[d].SubQ_run_tot>>16)&0x00FF;
d4062drivers/block/sbpcd.cSC.cdsc_absaddr.msf.second=(D_S[d].SubQ_run_tot>>8)&0x00FF;
d4063drivers/block/sbpcd.cSC.cdsc_absaddr.msf.frame=D_S[d].SubQ_run_tot&0x00FF;
d4064drivers/block/sbpcd.cSC.cdsc_reladdr.msf.minute=(D_S[d].SubQ_run_trk>>16)&0x00FF;
d4065drivers/block/sbpcd.cSC.cdsc_reladdr.msf.second=(D_S[d].SubQ_run_trk>>8)&0x00FF;
d4066drivers/block/sbpcd.cSC.cdsc_reladdr.msf.frame=D_S[d].SubQ_run_trk&0x00FF;
d4080drivers/block/sbpcd.cD_S[d].mode=READ_M1;
d4087drivers/block/sbpcd.cD_S[d].mode=READ_M2;
d4093drivers/block/sbpcd.cif (D_S[d].sbp_audsiz>0)
d4094drivers/block/sbpcd.cvfree(D_S[d].aud_buf);
d4096drivers/block/sbpcd.cD_S[d].aud_buf=NULL;
d4097drivers/block/sbpcd.cD_S[d].sbp_audsiz=arg;
d4098drivers/block/sbpcd.cif (D_S[d].sbp_audsiz>0)
d4100drivers/block/sbpcd.cD_S[d].aud_buf=(u_char *) vmalloc(D_S[d].sbp_audsiz*CD_FRAMESIZE_RAW);
d4101drivers/block/sbpcd.cif (D_S[d].aud_buf==NULL)
d4103drivers/block/sbpcd.cmsg(DBG_INF,"audio buffer (%d frames) not available.\n",D_S[d].sbp_audsiz);
d4104drivers/block/sbpcd.cD_S[d].sbp_audsiz=0;
d4106drivers/block/sbpcd.celse msg(DBG_INF,"audio buffer size: %d frames.\n",D_S[d].sbp_audsiz);
d4108drivers/block/sbpcd.creturn (D_S[d].sbp_audsiz);
d4127drivers/block/sbpcd.cif (D_S[d].aud_buf==NULL) return (-EINVAL);
d4131drivers/block/sbpcd.cif (read_audio.nframes>D_S[d].sbp_audsiz) return (-EINVAL);
d4152drivers/block/sbpcd.cD_S[d].mode=READ_AU;
d4233drivers/block/sbpcd.cp = D_S[d].aud_buf;
d4280drivers/block/sbpcd.cD_S[d].status_bits);
d4292drivers/block/sbpcd.c(u_char *) D_S[d].aud_buf,
d4299drivers/block/sbpcd.cD_S[d].mode=READ_M1;
d4316drivers/block/sbpcd.clba2msf(D_S[d].lba_multi,&ms_info.addr.msf.minute);
d4318drivers/block/sbpcd.cms_info.addr.lba=D_S[d].lba_multi;
d4320drivers/block/sbpcd.cif (D_S[d].f_multisession) ms_info.xa_flag=1; /* valid redirection address */
d4350drivers/block/sbpcd.c(CURRENT->sector/4 >= D_S[d].sbp_first_frame) &&
d4351drivers/block/sbpcd.c(CURRENT->sector/4 <= D_S[d].sbp_last_frame) )
d4353drivers/block/sbpcd.coffs = (CURRENT->sector - D_S[d].sbp_first_frame * 4) * 512;
d4354drivers/block/sbpcd.cmemcpy(CURRENT->buffer, D_S[d].sbp_buf + offs, 512);
d4391drivers/block/sbpcd.cif (d!=i) switch_drive(i);
d4459drivers/block/sbpcd.cD_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1;      /* purge buffer */
d4460drivers/block/sbpcd.cD_S[d].sbp_current = 0;
d4462drivers/block/sbpcd.cif (block+D_S[d].sbp_bufsiz <= D_S[d].CDsize_frm)
d4463drivers/block/sbpcd.cD_S[d].sbp_read_frames = D_S[d].sbp_bufsiz;
d4466drivers/block/sbpcd.cD_S[d].sbp_read_frames=D_S[d].CDsize_frm-block;
d4468drivers/block/sbpcd.cif (D_S[d].sbp_read_frames < 1)
d4471drivers/block/sbpcd.cblock, D_S[d].CDsize_frm);
d4472drivers/block/sbpcd.cD_S[d].sbp_read_frames=1;
d4481drivers/block/sbpcd.cif (D_S[d].xa_byte==0x20)
d4488drivers/block/sbpcd.cdrvcmd[5]=D_S[d].sbp_read_frames;
d4493drivers/block/sbpcd.cif (D_S[d].drv_type>=drv_201)
d4506drivers/block/sbpcd.cdrvcmd[5]=D_S[d].sbp_read_frames;
d4507drivers/block/sbpcd.cdrvcmd[6]=(D_S[d].drv_type<drv_201)?0:2; /* flag "lba or msf-bcd format" */
d4514drivers/block/sbpcd.cdrvcmd[6]=D_S[d].sbp_read_frames;
d4520drivers/block/sbpcd.cdrvcmd[5]=D_S[d].sbp_read_frames;
d4530drivers/block/sbpcd.cdrvcmd[7]=(D_S[d].sbp_read_frames>>8)&0x0ff;
d4531drivers/block/sbpcd.cdrvcmd[8]=D_S[d].sbp_read_frames&0x0ff;
d4572drivers/block/sbpcd.cif (D_S[d].f_multisession) max_latency=900;
d4577drivers/block/sbpcd.cfor (frame=0;frame<D_S[d].sbp_read_frames&&!error_flag; frame++)
d4587drivers/block/sbpcd.cif (D_S[d].f_multisession) try=maxtim_data*4;
d4632drivers/block/sbpcd.cif ((D_S[d].ored_ctl_adr&0x40)==0)
d4641drivers/block/sbpcd.cp = D_S[d].sbp_buf + frame *  CD_FRAMESIZE;
d4647drivers/block/sbpcd.cD_S[d].sbp_current++;
d4718drivers/block/sbpcd.cD_S[d].error_state=infobuf[2];
d4719drivers/block/sbpcd.cD_S[d].b3=infobuf[3];
d4720drivers/block/sbpcd.cD_S[d].b4=infobuf[4];
d4790drivers/block/sbpcd.cmsg(DBG_INF,"bad cc_ReadStatus after read: %02X\n", D_S[d].status_bits);
d4804drivers/block/sbpcd.cD_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1;      /* purge buffer */
d4805drivers/block/sbpcd.cD_S[d].sbp_current = 0;
d4810drivers/block/sbpcd.cD_S[d].sbp_first_frame = CURRENT -> sector / 4;
d4811drivers/block/sbpcd.cD_S[d].sbp_last_frame = D_S[d].sbp_first_frame + D_S[d].sbp_read_frames - 1;
d4871drivers/block/sbpcd.cif (famT_drive)  msg(DBG_TE2,"sbpcd_open: status %02X\n", D_S[d].status_bits);
d4875drivers/block/sbpcd.cD_S[d].open_count=0;
d4890drivers/block/sbpcd.cD_S[d].open_count,D_S[d].open_count+1);
d4891drivers/block/sbpcd.cif (++D_S[d].open_count<=1)
d4894drivers/block/sbpcd.cD_S[d].open_count=1;
d4898drivers/block/sbpcd.cif ((D_S[d].ored_ctl_adr&0x40)==0)
d4920drivers/block/sbpcd.cD_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1;
d4929drivers/block/sbpcd.cD_S[d].open_count,D_S[d].open_count-1);
d4930drivers/block/sbpcd.cif (D_S[d].open_count>-2) /* CDROMEJECT may have been done */
d4932drivers/block/sbpcd.cif (--D_S[d].open_count<=0) 
d4935drivers/block/sbpcd.cif (D_S[d].audio_state!=audio_playing)
d4936drivers/block/sbpcd.cif (D_S[d].f_eject) cc_SpinDown();
d4937drivers/block/sbpcd.cD_S[d].diskstate_flags &= ~cd_size_bit;
d4938drivers/block/sbpcd.cD_S[d].open_count=0; 
d5162drivers/block/sbpcd.cD_S[d].sbp_first_frame = -1;  /* First frame in buffer */
d5163drivers/block/sbpcd.cD_S[d].sbp_last_frame = -1;   /* Last frame in buffer  */
d5164drivers/block/sbpcd.cD_S[d].sbp_read_frames = 0;   /* Number of frames being read to buffer */
d5165drivers/block/sbpcd.cD_S[d].sbp_current = 0;       /* Frame being currently read */
d5166drivers/block/sbpcd.cD_S[d].CD_changed=1;
d5167drivers/block/sbpcd.cD_S[d].frame_size=CD_FRAMESIZE;
d5169drivers/block/sbpcd.cif (!fam0_drive) D_S[d].f_eject=1;
d5170drivers/block/sbpcd.celse D_S[d].f_eject=0;
d5172drivers/block/sbpcd.cD_S[d].f_eject=0;
d5191drivers/block/sbpcd.cD_S[d].error_byte);
d5192drivers/block/sbpcd.cif (D_S[d].error_byte==aud_12)
d5201drivers/block/sbpcd.cD_S[d].error_byte);
d5208drivers/block/sbpcd.cif (i>=0) D_S[d].CD_changed=1;
d5353drivers/block/sbpcd.cmsg(DBG_CHK,"media_check: %02X\n",D_S[d].status_bits);
d5359drivers/block/sbpcd.cif (D_S[d].CD_changed==0xFF) msg(DBG_CHK,"media_check: \"changed\" assumed.\n");
d5364drivers/block/sbpcd.cD_S[d].CD_changed=0xFF;
d5369drivers/block/sbpcd.cD_S[d].open_count=0;
d5370drivers/block/sbpcd.cD_S[d].CD_changed=0xFF;
d5375drivers/block/sbpcd.cif (D_S[d].CD_changed==0xFF)
d5377drivers/block/sbpcd.cD_S[d].CD_changed=1;
d273drivers/block/sjcd.cunsigned char b, unsigned char c, unsigned char d ){
d281drivers/block/sjcd.coutb( d, SJCDPORT( 0 ) );
d249drivers/char/console.cstruct vc_data *d;
d256drivers/char/console.c#define screenbuf_size  (vc_cons[currcons].d->vc_screenbuf_size)
d257drivers/char/console.c#define origin    (vc_cons[currcons].d->vc_origin)
d258drivers/char/console.c#define scr_end    (vc_cons[currcons].d->vc_scr_end)
d259drivers/char/console.c#define pos    (vc_cons[currcons].d->vc_pos)
d260drivers/char/console.c#define top    (vc_cons[currcons].d->vc_top)
d261drivers/char/console.c#define bottom    (vc_cons[currcons].d->vc_bottom)
d262drivers/char/console.c#define x    (vc_cons[currcons].d->vc_x)
d263drivers/char/console.c#define y    (vc_cons[currcons].d->vc_y)
d264drivers/char/console.c#define vc_state  (vc_cons[currcons].d->vc_state)
d265drivers/char/console.c#define npar    (vc_cons[currcons].d->vc_npar)
d266drivers/char/console.c#define par    (vc_cons[currcons].d->vc_par)
d267drivers/char/console.c#define ques    (vc_cons[currcons].d->vc_ques)
d268drivers/char/console.c#define attr    (vc_cons[currcons].d->vc_attr)
d269drivers/char/console.c#define saved_x    (vc_cons[currcons].d->vc_saved_x)
d270drivers/char/console.c#define saved_y    (vc_cons[currcons].d->vc_saved_y)
d271drivers/char/console.c#define translate  (vc_cons[currcons].d->vc_translate)
d272drivers/char/console.c#define G0_charset  (vc_cons[currcons].d->vc_G0_charset)
d273drivers/char/console.c#define G1_charset  (vc_cons[currcons].d->vc_G1_charset)
d274drivers/char/console.c#define saved_G0  (vc_cons[currcons].d->vc_saved_G0)
d275drivers/char/console.c#define saved_G1  (vc_cons[currcons].d->vc_saved_G1)
d276drivers/char/console.c#define utf    (vc_cons[currcons].d->vc_utf)
d277drivers/char/console.c#define utf_count  (vc_cons[currcons].d->vc_utf_count)
d278drivers/char/console.c#define utf_char  (vc_cons[currcons].d->vc_utf_char)
d279drivers/char/console.c#define video_mem_start  (vc_cons[currcons].d->vc_video_mem_start)
d280drivers/char/console.c#define video_mem_end  (vc_cons[currcons].d->vc_video_mem_end)
d281drivers/char/console.c#define video_erase_char (vc_cons[currcons].d->vc_video_erase_char)
d282drivers/char/console.c#define disp_ctrl  (vc_cons[currcons].d->vc_disp_ctrl)
d283drivers/char/console.c#define toggle_meta  (vc_cons[currcons].d->vc_toggle_meta)
d284drivers/char/console.c#define decscnm    (vc_cons[currcons].d->vc_decscnm)
d285drivers/char/console.c#define decom    (vc_cons[currcons].d->vc_decom)
d286drivers/char/console.c#define decawm    (vc_cons[currcons].d->vc_decawm)
d287drivers/char/console.c#define deccm    (vc_cons[currcons].d->vc_deccm)
d288drivers/char/console.c#define decim    (vc_cons[currcons].d->vc_decim)
d289drivers/char/console.c#define deccolm     (vc_cons[currcons].d->vc_deccolm)
d290drivers/char/console.c#define need_wrap  (vc_cons[currcons].d->vc_need_wrap)
d291drivers/char/console.c#define has_scrolled  (vc_cons[currcons].d->vc_has_scrolled)
d292drivers/char/console.c#define kmalloced  (vc_cons[currcons].d->vc_kmalloced)
d293drivers/char/console.c#define report_mouse  (vc_cons[currcons].d->vc_report_mouse)
d294drivers/char/console.c#define color    (vc_cons[currcons].d->vc_color)
d295drivers/char/console.c#define s_color    (vc_cons[currcons].d->vc_s_color)
d296drivers/char/console.c#define def_color  (vc_cons[currcons].d->vc_def_color)
d299drivers/char/console.c#define charset    (vc_cons[currcons].d->vc_charset)
d300drivers/char/console.c#define s_charset  (vc_cons[currcons].d->vc_s_charset)
d301drivers/char/console.c#define  intensity  (vc_cons[currcons].d->vc_intensity)
d302drivers/char/console.c#define  underline  (vc_cons[currcons].d->vc_underline)
d303drivers/char/console.c#define  blink    (vc_cons[currcons].d->vc_blink)
d304drivers/char/console.c#define  reverse    (vc_cons[currcons].d->vc_reverse)
d305drivers/char/console.c#define  s_intensity  (vc_cons[currcons].d->vc_s_intensity)
d306drivers/char/console.c#define  s_underline  (vc_cons[currcons].d->vc_s_underline)
d307drivers/char/console.c#define  s_blink    (vc_cons[currcons].d->vc_s_blink)
d308drivers/char/console.c#define  s_reverse  (vc_cons[currcons].d->vc_s_reverse)
d309drivers/char/console.c#define  ulcolor    (vc_cons[currcons].d->vc_ulcolor)
d310drivers/char/console.c#define  halfcolor  (vc_cons[currcons].d->vc_halfcolor)
d311drivers/char/console.c#define tab_stop  (vc_cons[currcons].d->vc_tab_stop)
d312drivers/char/console.c#define palette    (vc_cons[currcons].d->vc_palette)
d340drivers/char/console.creturn (i < MAX_NR_CONSOLES && vc_cons[i].d);
d347drivers/char/console.cif (!vc_cons[i].d) {
d366drivers/char/console.cvc_cons[i].d = (struct vc_data *) p;
d370drivers/char/console.cvc_cons[i].d->vc_kmalloced = 1;
d371drivers/char/console.cvc_cons[i].d->vc_screenbuf_size = video_screen_size;
d483drivers/char/console.ckfree_s(vc_cons[currcons].d, structsize);
d484drivers/char/console.cvc_cons[currcons].d = 0;
d585drivers/char/console.cunsigned short * d = (unsigned short *) video_mem_base;
d594drivers/char/console.cscr_writew(scr_readw(d++),s++);
d683drivers/char/console.cunsigned short * d = (unsigned short *) video_mem_start;
d690drivers/char/console.cscr_writew(scr_readw(s++),d++);
d695drivers/char/console.cscr_writew(video_erase_char, d++);
d704drivers/char/console.cunsigned short * d;
d707drivers/char/console.cd = (unsigned short *) (scr_end - video_size_row);
d711drivers/char/console.cscr_writew(video_erase_char, d++);
d718drivers/char/console.cunsigned short * d = (unsigned short *) (origin+video_size_row*t);
d724drivers/char/console.cscr_writew(scr_readw(s++), d++);
d729drivers/char/console.cscr_writew(video_erase_char, d++);
d736drivers/char/console.cunsigned short *d, *s;
d741drivers/char/console.cd = (unsigned short *) (origin+video_size_row*b);
d746drivers/char/console.cscr_writew(scr_readw(--s), --d);
d751drivers/char/console.cscr_writew(video_erase_char, --d);
d1963drivers/char/console.cvc_cons[currcons].d->vc_palette[k++] = default_red[j] ;
d1964drivers/char/console.cvc_cons[currcons].d->vc_palette[k++] = default_grn[j] ;
d1965drivers/char/console.cvc_cons[currcons].d->vc_palette[k++] = default_blu[j] ;
d2129drivers/char/console.cvc_cons[currcons].d = (struct vc_data *) kmem_start;
d2139drivers/char/console.cvc_cons[currcons].d->vc_palette[k++] = default_red[j] ;
d2140drivers/char/console.cvc_cons[currcons].d->vc_palette[k++] = default_grn[j] ;
d2141drivers/char/console.cvc_cons[currcons].d->vc_palette[k++] = default_blu[j] ;
d2535drivers/char/console.cvc_cons[i].d->vc_palette[k++] = default_red[j];
d2536drivers/char/console.cvc_cons[i].d->vc_palette[k++] = default_grn[j];
d2537drivers/char/console.cvc_cons[i].d->vc_palette[k++] = default_blu[j];
d2585drivers/char/console.coutb_p (vc_cons[fg_console].d->vc_palette[j++]>>2, dac_val) ;
d2586drivers/char/console.coutb_p (vc_cons[fg_console].d->vc_palette[j++]>>2, dac_val) ;
d2587drivers/char/console.coutb_p (vc_cons[fg_console].d->vc_palette[j++]>>2, dac_val) ;
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);
d1280drivers/char/tty_io.cchar *c, *d;
d1290drivers/char/tty_io.cd = (char *)(ts->tasks+n);
d1292drivers/char/tty_io.cput_user(*c++, d++);
d267drivers/net/net_init.cstruct device *d = dev_base;
d294drivers/net/net_init.cwhile (d->next)
d295drivers/net/net_init.cd = d->next;
d296drivers/net/net_init.cd->next = dev;
d308drivers/net/net_init.cstruct device *d = dev_base;
d329drivers/net/net_init.cwhile (d && (d->next != dev))
d330drivers/net/net_init.cd = d->next;
d332drivers/net/net_init.cif (d && (d->next == dev)) {
d333drivers/net/net_init.cd->next = dev->next;
d93drivers/net/slip.cstatic int slip_esc(unsigned char *p, unsigned char *d, int len);
d96drivers/net/slip.cstatic int slip_esc6(unsigned char *p, unsigned char *d, int len);
d777drivers/net/slip.cslip_esc(unsigned char *s, unsigned char *d, int len)
d779drivers/net/slip.cunsigned char *ptr = d;
d811drivers/net/slip.creturn (ptr - d);
d858drivers/net/slip.cslip_esc6(unsigned char *s, unsigned char *d, int len)
d860drivers/net/slip.cunsigned char *ptr = d;
d892drivers/net/slip.creturn ptr - d;
d1470drivers/scsi/NCR5380.cregister unsigned char *d = *data;
d1503drivers/scsi/NCR5380.cNCR5380_write(OUTPUT_DATA_REG, *d);
d1505drivers/scsi/NCR5380.c*d = NCR5380_read(CURRENT_SCSI_DATA_REG);
d1507drivers/scsi/NCR5380.c++d;
d1571drivers/scsi/NCR5380.c*data = d;
d1610drivers/scsi/NCR5380.cregister unsigned char *d = *data;
d1636drivers/scsi/NCR5380.c"writing", c, (p & SR_IO) ? "to" : "from", (unsigned) d);
d1639drivers/scsi/NCR5380.cNCR5380_dma_read_setup(instance, d, c) : 
d1640drivers/scsi/NCR5380.cNCR5380_dma_write_setup(instance, d, c);
d1801drivers/scsi/NCR5380.cif (!(foo = NCR5380_pread(instance, d, c - 1))) {
d1827drivers/scsi/NCR5380.cd[c - 1] = NCR5380_read(INPUT_DATA_REG);
d1831drivers/scsi/NCR5380.cif (!(foo = NCR5380_pwrite(instance, d, c))) {
d1882drivers/scsi/NCR5380.c*data = d + c;
d483drivers/scsi/pas16.cregister unsigned char  *d = dst;
d490drivers/scsi/pas16.cinsb( reg, d, i );
d317drivers/scsi/t128.cT_DATA_REG_OFFSET), *d = dst;
d328drivers/scsi/t128.c*d++ = *reg;
d99drivers/sound/ad1848.c#define io_Index_Addr(d)  ((d)->base)
d100drivers/sound/ad1848.c#define io_Indexed_Data(d)  ((d)->base+1)
d101drivers/sound/ad1848.c#define io_Status(d)    ((d)->base+2)
d102drivers/sound/ad1848.c#define io_Polled_IO(d)    ((d)->base+3)
d62drivers/sound/os.h#define COPY_FROM_USER(d, s, o, c)  memcpy_fromfs((d), &((s)[o]), (c))
d63drivers/sound/os.h#define COPY_TO_USER(d, o, s, c)  memcpy_tofs(&((d)[o]), (s), (c))
d64drivers/sound/os.h#define IOCTL_FROM_USER(d, s, o, c)  memcpy_fromfs((d), &((s)[o]), (c))
d65drivers/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)
d286fs/smbfs/dir.cstruct smb_dirent d;
d289fs/smbfs/dir.cwhile (smb_readdir1(inode,filp,&d,&ino) == 1) {    
d290fs/smbfs/dir.cif (filldir(dirent,d.path,strlen(d.path)+1,
d59fs/umsdos/dir.cstruct UMSDOS_DIR_ONCE *d = (struct UMSDOS_DIR_ONCE *)buf;
d60fs/umsdos/dir.cif (d->count == 0){
d67fs/umsdos/dir.cret = d->filldir (d->dirbuf,name,name_len,offset,ino);
d68fs/umsdos/dir.cd->stop = ret < 0;
d69fs/umsdos/dir.cd->count = 1;
d427fs/umsdos/dir.cstruct UMSDOS_DIRENT_K *d = (struct UMSDOS_DIRENT_K *)buf;
d428fs/umsdos/dir.cd->f_pos = offset;
d429fs/umsdos/dir.cd->ino = ino;
d447fs/umsdos/dir.cstruct UMSDOS_DIR_SEARCH *d = (struct UMSDOS_DIR_SEARCH *)buf;
d448fs/umsdos/dir.cif (d->search_ino == ino){
d449fs/umsdos/dir.cd->found = 1;
d450fs/umsdos/dir.cmemcpy (d->entry->name,name,name_len);
d451fs/umsdos/dir.cd->entry->name[name_len] = '\0';
d452fs/umsdos/dir.cd->entry->name_len = name_len;
d41fs/umsdos/ioctl.cstruct UMSDOS_DIR_ONCE *d = (struct UMSDOS_DIR_ONCE *)buf;
d42fs/umsdos/ioctl.cif (d->count == 0){
d43fs/umsdos/ioctl.cmemcpy_tofs (d->ent->d_name,name,name_len);
d44fs/umsdos/ioctl.cput_user ('\0',d->ent->d_name+name_len);
d45fs/umsdos/ioctl.cput_user (name_len,&d->ent->d_reclen);
d46fs/umsdos/ioctl.cput_user (ino,&d->ent->d_ino);
d47fs/umsdos/ioctl.cput_user (offset,&d->ent->d_off);
d48fs/umsdos/ioctl.cd->count = 1;
d45fs/umsdos/rdir.cstruct RDIR_FILLDIR *d = (struct RDIR_FILLDIR*) buf;
d46fs/umsdos/rdir.cif (d->real_root){
d57fs/umsdos/rdir.cret = d->filldir (d->dirbuf,name,name_len,offset,ino);
d61fs/umsdos/rdir.cret = d->filldir (d->dirbuf,name,name_len,offset,ino);
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)), \
d65include/asm-sparc/openprom.hint  (*v2_inst2pkg)(int d);  /* Convert ihandle to phandle */
d80include/asm-sparc/openprom.hvoid  (*v2_dev_close)(int d);
d81include/asm-sparc/openprom.hint  (*v2_dev_read)(int d, char*  buf, int nbytes);
d82include/asm-sparc/openprom.hint  (*v2_dev_write)(int d, char*  buf, int nbytes);
d83include/asm-sparc/openprom.hvoid  (*v2_dev_seek)(int d, int hi, int lo);
d204include/asm-sparc/openprom.hunsigned int  (*pv_enaddr)(int d, char *enaddr);
d40include/linux/ioctl.h#define _IO(c,d)  (IOC_VOID | ((c)<<8) | (d)) /* param encoded */
d47include/linux/ioctl.h#define _IOW(c,d,t)  (IOC_IN | ((sizeof(t)<<16) & IOCSIZE_MASK) | \
d48include/linux/ioctl.h((c)<<8) | (d))
d49include/linux/ioctl.h#define _IOR(c,d,t)  (IOC_OUT | ((sizeof(t)<<16) & IOCSIZE_MASK) | \
d50include/linux/ioctl.h((c)<<8) | (d))
d52include/linux/ioctl.h#define _IOWR(c,d,t)  (IOC_INOUT | ((sizeof(t)<<16) & IOCSIZE_MASK) | \
d53include/linux/ioctl.h((c)<<8) | (d))
d211include/linux/sbpcd.h#define upc_valid    (D_S[d].diskstate_flags&upc_bit)
d212include/linux/sbpcd.h#define volume_valid    (D_S[d].diskstate_flags&volume_bit)
d213include/linux/sbpcd.h#define toc_valid    (D_S[d].diskstate_flags&toc_bit)
d214include/linux/sbpcd.h#define cd_size_valid    (D_S[d].diskstate_flags&cd_size_bit)
d215include/linux/sbpcd.h#define subq_valid    (D_S[d].diskstate_flags&subq_bit)
d216include/linux/sbpcd.h#define frame_size_valid  (D_S[d].diskstate_flags&frame_size_bit)
d285include/linux/sbpcd.h#define st_door_closed  (D_S[d].status_bits&p_door_closed)
d286include/linux/sbpcd.h#define st_caddy_in  (D_S[d].status_bits&p_caddy_in)
d287include/linux/sbpcd.h#define st_spinning  (D_S[d].status_bits&p_spinning)
d288include/linux/sbpcd.h#define st_check  (D_S[d].status_bits&p_check)
d289include/linux/sbpcd.h#define st_busy    (D_S[d].status_bits&p_busy_new)
d290include/linux/sbpcd.h#define st_door_locked  (D_S[d].status_bits&p_door_locked)
d291include/linux/sbpcd.h#define st_diskok  (D_S[d].status_bits&p_disk_ok)
d329include/linux/sbpcd.h#define fam0_drive  (D_S[d].drv_type&drv_fam0)
d330include/linux/sbpcd.h#define famL_drive  (D_S[d].drv_type&drv_famL)
d331include/linux/sbpcd.h#define fam1_drive  (D_S[d].drv_type&drv_fam1)
d332include/linux/sbpcd.h#define fam2_drive  (D_S[d].drv_type&drv_fam2)
d333include/linux/sbpcd.h#define famT_drive  (D_S[d].drv_type&drv_famT)
d334include/linux/sbpcd.h#define fam0L_drive  (D_S[d].drv_type&(drv_fam0|drv_famL))
d335include/linux/sbpcd.h#define fam1L_drive  (D_S[d].drv_type&(drv_fam1|drv_famL))
d336include/linux/sbpcd.h#define fam01_drive  (D_S[d].drv_type&(drv_fam0|drv_fam1))
d337include/linux/sbpcd.h#define fam12_drive  (D_S[d].drv_type&(drv_fam1|drv_fam2))
d338include/linux/sbpcd.h#define fam2T_drive  (D_S[d].drv_type&(drv_fam2|drv_famT))
d522include/linux/tpqic02.h#define  TP_REWCLOSE(d)  ((MINOR(d)&0x01) == 1)         /* rewind bit */
d255net/ax25/ax25_subr.cint d = 0;
d280net/ax25/ax25_subr.cif (d >= 6)  return NULL;  /* Max of 6 digis */
d284net/ax25/ax25_subr.cmemcpy(&digi->calls[d], buf, AX25_ADDR_LEN);
d285net/ax25/ax25_subr.cdigi->ndigi = d + 1;
d287net/ax25/ax25_subr.cdigi->repeated[d] = 1;
d288net/ax25/ax25_subr.cdigi->lastrepeat  = d;
d290net/ax25/ax25_subr.cdigi->repeated[d] = 0;
d296net/ax25/ax25_subr.cd++;
d306net/ax25/ax25_subr.cint build_ax25_addr(unsigned char *buf, ax25_address *src, ax25_address *dest, ax25_digi *d, int flag)
d330net/ax25/ax25_subr.cif (d == NULL || d->ndigi == 0) {
d338net/ax25/ax25_subr.cwhile (ct < d->ndigi) {
d339net/ax25/ax25_subr.cmemcpy(buf, &d->calls[ct], AX25_ADDR_LEN);
d340net/ax25/ax25_subr.cif (d->repeated[ct])
d57net/ethernet/eth.cstruct device *d = dev_base;
d61net/ethernet/eth.cwhile (d) 
d63net/ethernet/eth.cif (!strcmp(str,d->name)) 
d66net/ethernet/eth.cd->irq=ints[1];
d68net/ethernet/eth.cd->base_addr=ints[2];
d70net/ethernet/eth.cd->mem_start=ints[3];
d72net/ethernet/eth.cd->mem_end=ints[4];
d75net/ethernet/eth.cd=d->next;
d1591net/ipx/af_ipx.cvoid dump_data(char *str,unsigned char *d) {
d1598net/ipx/af_ipx.c*(p++) = h2c[d[i] & 0x0f];
d1599net/ipx/af_ipx.c*(p++) = h2c[(d[i] >> 4) & 0x0f];
d1604net/ipx/af_ipx.cfor (i=0; i < 8 ; i++)  *(p++) = ' '<= d[i] && d[i]<'\177' ? d[i] : '.';
d1606net/ipx/af_ipx.cd += i;