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);
d216arch/i386/boot/compressed/misc.cchar *d = (char *)__dest, *s = (char *)__src;
d218arch/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));
d513arch/ppc/kernel/raw_printf.cstruct screen *d = &screen;
d517arch/ppc/kernel/raw_printf.cd->color = pccolor;
d518arch/ppc/kernel/raw_printf.cd->save_color = pccolor;
d519arch/ppc/kernel/raw_printf.cd->color_so = pccolor_so;
d520arch/ppc/kernel/raw_printf.cd->save_color_so = pccolor_so;
d524arch/ppc/kernel/raw_printf.c#define  wrtchar(c, d) { \
d525arch/ppc/kernel/raw_printf.c*(d->cp) = c; \
d526arch/ppc/kernel/raw_printf.cd->cp++; \
d527arch/ppc/kernel/raw_printf.cd->row++; \
d550arch/ppc/kernel/raw_printf.cstruct screen *d = &screen;
d557arch/ppc/kernel/raw_printf.cswitch (d->state) {
d564arch/ppc/kernel/raw_printf.cd->state = ESC;
d569arch/ppc/kernel/raw_printf.cwrtchar(d->color | ' ', d);
d570arch/ppc/kernel/raw_printf.c} while (d->row % 8);
d574arch/ppc/kernel/raw_printf.cif (d->cp > base) {
d575arch/ppc/kernel/raw_printf.cd->cp--;
d576arch/ppc/kernel/raw_printf.cd->row--;
d577arch/ppc/kernel/raw_printf.cif (d->row < 0)
d578arch/ppc/kernel/raw_printf.cd->row += COL;  /* prev column */
d583arch/ppc/kernel/raw_printf.cd->cp -= d->row;
d584arch/ppc/kernel/raw_printf.cd->row = 0;
d588arch/ppc/kernel/raw_printf.cd->cp += COL;
d595arch/ppc/kernel/raw_printf.cif (d->so) {
d596arch/ppc/kernel/raw_printf.cwrtchar(d->color_so|(c<<8), d); 
d598arch/ppc/kernel/raw_printf.cwrtchar(d->color | (c<<8), d); 
d600arch/ppc/kernel/raw_printf.cif (d->row >= COL)
d601arch/ppc/kernel/raw_printf.cd->row = 0;
d614arch/ppc/kernel/raw_printf.cd->so = d->cx;
d618arch/ppc/kernel/raw_printf.cif (d->cp >= base + COL)
d619arch/ppc/kernel/raw_printf.cd->cp -= COL;
d623arch/ppc/kernel/raw_printf.cd->cp += COL;
d627arch/ppc/kernel/raw_printf.cd->cp++;
d628arch/ppc/kernel/raw_printf.cd->row++;
d632arch/ppc/kernel/raw_printf.cif (d->cp > base) {
d633arch/ppc/kernel/raw_printf.cd->cp--;
d634arch/ppc/kernel/raw_printf.cd->row--;
d635arch/ppc/kernel/raw_printf.cif (d->row < 0)
d636arch/ppc/kernel/raw_printf.cd->row += COL;  /* prev column ??? */
d641arch/ppc/kernel/raw_printf.cfillw(d->color|(' '<<8), d->cp, base + COL * ROW - d->cp);
d645arch/ppc/kernel/raw_printf.cfillw(d->color|(' '<<8), d->cp, COL - (d->cp - base) % COL);
d649arch/ppc/kernel/raw_printf.cif (d->cx > ROW)
d650arch/ppc/kernel/raw_printf.cd->cx = ROW;
d651arch/ppc/kernel/raw_printf.cif (d->cy > COL)
d652arch/ppc/kernel/raw_printf.cd->cy = COL;
d653arch/ppc/kernel/raw_printf.cif (d->cx == 0 || d->cy == 0) {
d654arch/ppc/kernel/raw_printf.cd->cp = base;
d655arch/ppc/kernel/raw_printf.cd->row = 0;
d657arch/ppc/kernel/raw_printf.cd->cp = base + (d->cx - 1) * COL + d->cy - 1;
d658arch/ppc/kernel/raw_printf.cd->row = d->cy - 1;
d663arch/ppc/kernel/raw_printf.cif (d->cx)
d664arch/ppc/kernel/raw_printf.cd->cx = 1;    /* block */
d666arch/ppc/kernel/raw_printf.cd->cx = 12;  /* underline */
d668arch/ppc/kernel/raw_printf.coutb(addr_6845+1, d->cx);
d674arch/ppc/kernel/raw_printf.cd->accp = &d->cy;
d678arch/ppc/kernel/raw_printf.cd->state = EBRACEQ;
d682arch/ppc/kernel/raw_printf.ci = (d->cp - base) / COL;
d687arch/ppc/kernel/raw_printf.cfillw(d->color|(' '<<8), base + i * COL, COL);
d691arch/ppc/kernel/raw_printf.ci = (d->cp - base) / COL;
d694arch/ppc/kernel/raw_printf.cfillw(d->color|(' '<<8), base + COL * (ROW - 1), COL);
d699arch/ppc/kernel/raw_printf.c*(d->accp) *= 10;
d700arch/ppc/kernel/raw_printf.c*(d->accp) += c - '0';
d705arch/ppc/kernel/raw_printf.cd->state = NORMAL;
d724arch/ppc/kernel/raw_printf.ccolp = ATTR_ADDR(d->color);
d726arch/ppc/kernel/raw_printf.c*colp = (*colp & 0xf0) | (d->cx);
d730arch/ppc/kernel/raw_printf.ccolp = ATTR_ADDR(d->color);
d732arch/ppc/kernel/raw_printf.c*colp = (*colp & 0xf) | (d->cx << 4);
d736arch/ppc/kernel/raw_printf.ccolp = ATTR_ADDR(d->color_so);
d740arch/ppc/kernel/raw_printf.ccolp = ATTR_ADDR(d->color_so);
d744arch/ppc/kernel/raw_printf.cd->save_color = d->color;
d745arch/ppc/kernel/raw_printf.cd->save_color_so = d->color_so;
d749arch/ppc/kernel/raw_printf.cd->color = d->save_color;
d750arch/ppc/kernel/raw_printf.cd->color_so = d->save_color_so;
d755arch/ppc/kernel/raw_printf.cd->cx *= 10;
d756arch/ppc/kernel/raw_printf.cd->cx += c - '0';
d761arch/ppc/kernel/raw_printf.cd->state = NORMAL;
d768arch/ppc/kernel/raw_printf.cfillw(d->color|(' '<<8), base, COL * ROW);
d769arch/ppc/kernel/raw_printf.cd->cp = base;
d770arch/ppc/kernel/raw_printf.cd->row = 0;
d771arch/ppc/kernel/raw_printf.cd->state = NORMAL;
d774arch/ppc/kernel/raw_printf.cd->state = EBRAC;
d775arch/ppc/kernel/raw_printf.cd->cx = 0;
d776arch/ppc/kernel/raw_printf.cd->cy = 0;
d777arch/ppc/kernel/raw_printf.cd->accp = &d->cx;
d780arch/ppc/kernel/raw_printf.cd->state = NORMAL;
d785arch/ppc/kernel/raw_printf.cif (d->cp >= base + (COL * ROW)) { /* scroll check */
d787arch/ppc/kernel/raw_printf.cfillw(d->color|(' '<<8), base + COL * (ROW - 1), COL);
d788arch/ppc/kernel/raw_printf.cd->cp -= COL;
d802arch/ppc/kernel/raw_printf.cstruct screen *d = &screen;
d808arch/ppc/kernel/raw_printf.cd->cp = Crtat = (u_short *)&ISA_mem[0x0B8000];
d811arch/ppc/kernel/raw_printf.cfillw(pccolor|(' '<<8), d->cp, COL * ROW);
d553drivers/cdrom/mcd.cchar a, b, c, d;
d558drivers/cdrom/mcd.cgetValue(&d);
d597drivers/cdrom/sbpcd.cstatic int d=0; /* DriveStruct index: drive number */
d724drivers/cdrom/sbpcd.csprintf(buf, KERN_INFO "%s-%d [%02d]:  ", major_name, d, msgnum);
d899drivers/cdrom/sbpcd.cD_S[d].CD_changed=0xFF;
d1014drivers/cdrom/sbpcd.cD_S[d].status_bits=0;
d1015drivers/cdrom/sbpcd.cif (fam1_drive) D_S[d].status_bits=st|p_success;
d1018drivers/cdrom/sbpcd.cif (st&p_caddin_old) D_S[d].status_bits |= p_door_closed|p_caddy_in;
d1019drivers/cdrom/sbpcd.cif (st&p_spinning) D_S[d].status_bits |= p_spinning;
d1020drivers/cdrom/sbpcd.cif (st&p_check) D_S[d].status_bits |= p_check;
d1021drivers/cdrom/sbpcd.cif (st&p_success_old) D_S[d].status_bits |= p_success;
d1022drivers/cdrom/sbpcd.cif (st&p_busy_old) D_S[d].status_bits |= p_busy_new;
d1023drivers/cdrom/sbpcd.cif (st&p_disk_ok) D_S[d].status_bits |= p_disk_ok;
d1027drivers/cdrom/sbpcd.cD_S[d].status_bits |= p_success;
d1028drivers/cdrom/sbpcd.cif (st&p_caddin_old) D_S[d].status_bits |= p_disk_ok|p_caddy_in;
d1029drivers/cdrom/sbpcd.cif (st&p_spinning) D_S[d].status_bits |= p_spinning;
d1030drivers/cdrom/sbpcd.cif (st&p_check) D_S[d].status_bits |= p_check;
d1031drivers/cdrom/sbpcd.cif (st&p_busy_old) D_S[d].status_bits |= p_busy_new;
d1032drivers/cdrom/sbpcd.cif (st&p_lcs_door_closed) D_S[d].status_bits |= p_door_closed;
d1033drivers/cdrom/sbpcd.cif (st&p_lcs_door_locked) D_S[d].status_bits |= p_door_locked;
d1037drivers/cdrom/sbpcd.cD_S[d].status_bits |= p_success;
d1038drivers/cdrom/sbpcd.cif (st&p2_check) D_S[d].status_bits |= p1_check;
d1039drivers/cdrom/sbpcd.cif (st&p2_door_closed) D_S[d].status_bits |= p1_door_closed;
d1040drivers/cdrom/sbpcd.cif (st&p2_disk_in) D_S[d].status_bits |= p1_disk_in;
d1041drivers/cdrom/sbpcd.cif (st&p2_busy1) D_S[d].status_bits |= p1_busy;
d1042drivers/cdrom/sbpcd.cif (st&p2_busy2) D_S[d].status_bits |= p1_busy;
d1043drivers/cdrom/sbpcd.cif (st&p2_spinning) D_S[d].status_bits |= p1_spinning;
d1044drivers/cdrom/sbpcd.cif (st&p2_door_locked) D_S[d].status_bits |= p1_door_locked;
d1045drivers/cdrom/sbpcd.cif (st&p2_disk_ok) D_S[d].status_bits |= p1_disk_ok;
d1050drivers/cdrom/sbpcd.cD_S[d].status_bits |= p_success;
d1051drivers/cdrom/sbpcd.cif (st&p2_check) D_S[d].status_bits |= p1_check;
d1052drivers/cdrom/sbpcd.cif (st&p2_door_closed) D_S[d].status_bits |= p1_door_closed;
d1053drivers/cdrom/sbpcd.cif (st&p2_disk_in) D_S[d].status_bits |= p1_disk_in;
d1054drivers/cdrom/sbpcd.cif (st&p2_busy1) D_S[d].status_bits |= p1_busy;
d1055drivers/cdrom/sbpcd.cif (st&p2_busy2) D_S[d].status_bits |= p1_busy;
d1056drivers/cdrom/sbpcd.cif (st&p2_spinning) D_S[d].status_bits |= p1_spinning;
d1057drivers/cdrom/sbpcd.cif (st&p2_door_locked) D_S[d].status_bits |= p1_door_locked;
d1058drivers/cdrom/sbpcd.cif (st&p2_disk_ok) D_S[d].status_bits |= p1_disk_ok;
d1070drivers/cdrom/sbpcd.cD_S[d].n_bytes=1;
d1081drivers/cdrom/sbpcd.cD_S[d].status_bits=p1_door_closed|p1_disk_in|p1_spinning|p1_disk_ok;
d1082drivers/cdrom/sbpcd.celse if (D_S[d].error_state==6)
d1084drivers/cdrom/sbpcd.cD_S[d].status_bits=p1_door_closed|p1_disk_in;
d1085drivers/cdrom/sbpcd.celse if ((D_S[d].error_state!=2)||(D_S[d].b3!=0x3A)||(D_S[d].b4==0x00))
d1088drivers/cdrom/sbpcd.cD_S[d].status_bits=p1_door_closed;
d1089drivers/cdrom/sbpcd.cD_S[d].open_count=0;
d1091drivers/cdrom/sbpcd.celse if (D_S[d].b4==0x01)
d1094drivers/cdrom/sbpcd.cD_S[d].status_bits=0;
d1095drivers/cdrom/sbpcd.cD_S[d].open_count=0;
d1100drivers/cdrom/sbpcd.cD_S[d].status_bits=p1_door_closed;
d1101drivers/cdrom/sbpcd.cD_S[d].open_count=0;
d1103drivers/cdrom/sbpcd.creturn (D_S[d].status_bits);
d1133drivers/cdrom/sbpcd.cD_S[d].status_bits=0;
d1139drivers/cdrom/sbpcd.cmsg(DBG_STA,"status_bits=%02X, i=%02X\n",D_S[d].status_bits,i);
d1140drivers/cdrom/sbpcd.creturn (D_S[d].status_bits);
d1190drivers/cdrom/sbpcd.cD_S[d].error_byte=0;
d1195drivers/cdrom/sbpcd.cD_S[d].error_byte=infobuf[i];
d1196drivers/cdrom/sbpcd.cmsg(DBG_ERR,"cc_ReadError: infobuf[%d] is %d (%02X)\n",i,D_S[d].error_byte,D_S[d].error_byte);
d1209drivers/cdrom/sbpcd.cD_S[d].error_state=0;
d1210drivers/cdrom/sbpcd.cD_S[d].b3=0;
d1211drivers/cdrom/sbpcd.cD_S[d].b4=0;
d1212drivers/cdrom/sbpcd.cD_S[d].f_drv_error=0;
d1218drivers/cdrom/sbpcd.cOUT(CDo_enable,D_S[d].drv_sel);
d1297drivers/cdrom/sbpcd.cD_S[d].error_state=infobuf[2];
d1298drivers/cdrom/sbpcd.cD_S[d].b3=infobuf[3];
d1299drivers/cdrom/sbpcd.cD_S[d].b4=infobuf[4];
d1300drivers/cdrom/sbpcd.cif (D_S[d].f_drv_error)
d1302drivers/cdrom/sbpcd.cD_S[d].f_drv_error=0;
d1304drivers/cdrom/sbpcd.cD_S[d].error_state=2;
d1306drivers/cdrom/sbpcd.creturn (-D_S[d].error_state-400);
d1313drivers/cdrom/sbpcd.cD_S[d].f_drv_error=1;
d1315drivers/cdrom/sbpcd.cD_S[d].error_state=2;
d1347drivers/cdrom/sbpcd.cif (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to CDi_stat_loop.\n");
d1356drivers/cdrom/sbpcd.cif (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cc_ReadStatus.\n");
d1362drivers/cdrom/sbpcd.cif (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to ResponseStatus.\n");
d1378drivers/cdrom/sbpcd.cif (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cc_ReadError.\n");
d1380drivers/cdrom/sbpcd.cif (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cmd_out OK.\n");
d1434drivers/cdrom/sbpcd.cD_S[d].n_bytes=1;
d1446drivers/cdrom/sbpcd.cD_S[d].in_SpinUp = 1;
d1475drivers/cdrom/sbpcd.cD_S[d].in_SpinUp = 0;
d1536drivers/cdrom/sbpcd.cdrvcmd[1]=D_S[d].speed_byte;
d1537drivers/cdrom/sbpcd.cdrvcmd[2]=D_S[d].frmsiz>>8;
d1538drivers/cdrom/sbpcd.cdrvcmd[3]=D_S[d].frmsiz&0x0FF;
d1539drivers/cdrom/sbpcd.cdrvcmd[4]=D_S[d].f_XA; /* 1: XA */
d1540drivers/cdrom/sbpcd.cdrvcmd[5]=D_S[d].type_byte; /* 0, 1, 3 */
d1541drivers/cdrom/sbpcd.cdrvcmd[6]=D_S[d].mode_xb_6;
d1542drivers/cdrom/sbpcd.cdrvcmd[7]=D_S[d].mode_yb_7|D_S[d].volume_control;
d1543drivers/cdrom/sbpcd.cdrvcmd[8]=D_S[d].mode_xb_8;
d1544drivers/cdrom/sbpcd.cdrvcmd[9]=D_S[d].delay;
d1559drivers/cdrom/sbpcd.cD_S[d].speed_byte=0x02; /* 0x02: auto quad, 0x82: quad, 0x81: double, 0x80: single */
d1560drivers/cdrom/sbpcd.cD_S[d].frmsiz=make16(infobuf[2],infobuf[3]);
d1561drivers/cdrom/sbpcd.cD_S[d].f_XA=infobuf[4];
d1562drivers/cdrom/sbpcd.cif (D_S[d].f_XA==0) D_S[d].type_byte=0;
d1563drivers/cdrom/sbpcd.celse D_S[d].type_byte=1;
d1564drivers/cdrom/sbpcd.cD_S[d].mode_xb_6=infobuf[6];
d1565drivers/cdrom/sbpcd.cD_S[d].mode_yb_7=1;
d1566drivers/cdrom/sbpcd.cD_S[d].mode_xb_8=infobuf[8];
d1567drivers/cdrom/sbpcd.cD_S[d].delay=0; /* 0, 1, 2, 3 */
d1622drivers/cdrom/sbpcd.cD_S[d].diskstate_flags &= ~volume_bit;
d1624drivers/cdrom/sbpcd.cchannel0=D_S[d].vol_chan0;
d1625drivers/cdrom/sbpcd.cvolume0=D_S[d].vol_ctrl0;
d1626drivers/cdrom/sbpcd.cchannel1=control1=D_S[d].vol_chan1;
d1627drivers/cdrom/sbpcd.cvolume1=value1=D_S[d].vol_ctrl1;
d1632drivers/cdrom/sbpcd.cif (((D_S[d].drv_options&audio_mono)!=0)&&(D_S[d].drv_type>=drv_211))
d1701drivers/cdrom/sbpcd.cif (D_S[d].drv_type>=drv_300)
d1713drivers/cdrom/sbpcd.cif (D_S[d].drv_type<drv_211)
d1746drivers/cdrom/sbpcd.celse if (D_S[d].drv_type<drv_201) volume0=volume1=value0;
d1748drivers/cdrom/sbpcd.cif (D_S[d].drv_type>=drv_201)
d1753drivers/cdrom/sbpcd.cif (D_S[d].drv_type>=drv_211)
d1767drivers/cdrom/sbpcd.cD_S[d].volume_control=0;
d1768drivers/cdrom/sbpcd.cif (!volume0) D_S[d].volume_control|=0x10;
d1769drivers/cdrom/sbpcd.cif (!volume1) D_S[d].volume_control|=0x20;
d1779drivers/cdrom/sbpcd.cD_S[d].diskstate_flags |= volume_bit;
d1819drivers/cdrom/sbpcd.cOUT(CDo_enable,D_S[d].drv_sel);
d1836drivers/cdrom/sbpcd.cif (D_S[d].error_byte!=aud_12) return -501;
d1844drivers/cdrom/sbpcd.cif (!(D_S[d].drv_options&(speed_auto|speed_300|speed_150))) return (0);
d1846drivers/cdrom/sbpcd.cif (!(D_S[d].drv_options&speed_auto))
d1849drivers/cdrom/sbpcd.cif (!(D_S[d].drv_options&speed_300)) speed=0;
d1870drivers/cdrom/sbpcd.cD_S[d].CD_changed=1;
d1884drivers/cdrom/sbpcd.cif (D_S[d].audio_state==audio_playing) return (-EINVAL);
d1974drivers/cdrom/sbpcd.cif (pau_res==3)  return (cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end));
d1987drivers/cdrom/sbpcd.cmsg(DBG_LCK,"cc_LockDoor: %d (drive %d)\n", lock, d);
d2075drivers/cdrom/sbpcd.cmsg(DBG_LCK,"cc_CloseTray (drive %d)\n", d);
d2115drivers/cdrom/sbpcd.cD_S[d].diskstate_flags &= ~subq_bit;
d2164drivers/cdrom/sbpcd.cD_S[d].SubQ_ctl_adr=D_S[d].SubQ_trk=D_S[d].SubQ_pnt_idx=D_S[d].SubQ_whatisthis=0;
d2165drivers/cdrom/sbpcd.cD_S[d].SubQ_run_tot=D_S[d].SubQ_run_trk=0;
d2169drivers/cdrom/sbpcd.cif (famT_drive) D_S[d].SubQ_ctl_adr=infobuf[1];
d2170drivers/cdrom/sbpcd.celse D_S[d].SubQ_ctl_adr=swap_nibbles(infobuf[1]);
d2171drivers/cdrom/sbpcd.cD_S[d].SubQ_trk=byt2bcd(infobuf[2]);
d2172drivers/cdrom/sbpcd.cD_S[d].SubQ_pnt_idx=byt2bcd(infobuf[3]);
d2176drivers/cdrom/sbpcd.cD_S[d].SubQ_run_tot=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */
d2181drivers/cdrom/sbpcd.cD_S[d].SubQ_run_trk=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */
d2182drivers/cdrom/sbpcd.cD_S[d].SubQ_whatisthis=infobuf[i+3];
d2183drivers/cdrom/sbpcd.cD_S[d].diskstate_flags |= subq_bit;
d2193drivers/cdrom/sbpcd.cD_S[d].diskstate_flags &= ~frame_size_bit;
d2217drivers/cdrom/sbpcd.cD_S[d].sense_byte=0;
d2218drivers/cdrom/sbpcd.cif (fam1_drive) D_S[d].sense_byte=infobuf[i++];
d2221drivers/cdrom/sbpcd.cif (infobuf[4]==0x01) D_S[d].xa_byte=0x20;
d2222drivers/cdrom/sbpcd.celse D_S[d].xa_byte=0;
d2225drivers/cdrom/sbpcd.cD_S[d].frame_size=make16(infobuf[i],infobuf[i+1]);
d2231drivers/cdrom/sbpcd.cD_S[d].diskstate_flags |= frame_size_bit;
d2242drivers/cdrom/sbpcd.cD_S[d].diskstate_flags &= ~frame_size_bit;
d2244drivers/cdrom/sbpcd.cD_S[d].frame_size=framesize;
d2245drivers/cdrom/sbpcd.cif (framesize==CD_FRAMESIZE_RAW) D_S[d].sense_byte=0x82;
d2246drivers/cdrom/sbpcd.celse D_S[d].sense_byte=0x00;
d2249drivers/cdrom/sbpcd.cD_S[d].sense_byte, D_S[d].frame_size);
d2255drivers/cdrom/sbpcd.cdrvcmd[2]=D_S[d].sense_byte;
d2256drivers/cdrom/sbpcd.cdrvcmd[3]=(D_S[d].frame_size>>8)&0xFF;
d2257drivers/cdrom/sbpcd.cdrvcmd[4]=D_S[d].frame_size&0xFF;
d2264drivers/cdrom/sbpcd.cdrvcmd[2]=(D_S[d].frame_size>>8)&0xFF;
d2265drivers/cdrom/sbpcd.cdrvcmd[3]=D_S[d].frame_size&0xFF;
d2279drivers/cdrom/sbpcd.cD_S[d].diskstate_flags |= frame_size_bit;
d2293drivers/cdrom/sbpcd.cD_S[d].diskstate_flags &= ~volume_bit;
d2369drivers/cdrom/sbpcd.cif (D_S[d].drv_type>=drv_201)
d2371drivers/cdrom/sbpcd.cif (D_S[d].drv_type<drv_300)
d2376drivers/cdrom/sbpcd.cif (D_S[d].drv_type>=drv_211)
d2396drivers/cdrom/sbpcd.cD_S[d].volume_control=infobuf[7];
d2399drivers/cdrom/sbpcd.cif (D_S[d].volume_control&0x10) vol0=0;
d2401drivers/cdrom/sbpcd.cif (D_S[d].volume_control&0x20) vol1=0;
d2404drivers/cdrom/sbpcd.cD_S[d].vol_chan0=chan0;
d2405drivers/cdrom/sbpcd.cD_S[d].vol_ctrl0=vol0;
d2406drivers/cdrom/sbpcd.cD_S[d].vol_chan1=chan1;
d2407drivers/cdrom/sbpcd.cD_S[d].vol_ctrl1=vol1;
d2409drivers/cdrom/sbpcd.cD_S[d].vol_chan2=2;
d2410drivers/cdrom/sbpcd.cD_S[d].vol_ctrl2=0xFF;
d2411drivers/cdrom/sbpcd.cD_S[d].vol_chan3=3;
d2412drivers/cdrom/sbpcd.cD_S[d].vol_ctrl3=0xFF;
d2414drivers/cdrom/sbpcd.cD_S[d].diskstate_flags |= volume_bit;
d2425drivers/cdrom/sbpcd.cD_S[d].diskstate_flags &= ~cd_size_bit;
d2455drivers/cdrom/sbpcd.cif (fam1_drive) D_S[d].CDsize_frm=msf2blk(make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])))+CD_MSF_OFFSET;
d2456drivers/cdrom/sbpcd.celse if (fam0_drive) D_S[d].CDsize_frm=make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2]));
d2458drivers/cdrom/sbpcd.celse if (fam2_drive) D_S[d].CDsize_frm=make32(make16(infobuf[0],infobuf[1]),make16(infobuf[2],infobuf[3]));
d2460drivers/cdrom/sbpcd.cD_S[d].diskstate_flags |= cd_size_bit;
d2461drivers/cdrom/sbpcd.cmsg(DBG_000,"cc_ReadCapacity: %d frames.\n", D_S[d].CDsize_frm);
d2469drivers/cdrom/sbpcd.cD_S[d].diskstate_flags &= ~toc_bit;
d2489drivers/cdrom/sbpcd.cD_S[d].f_multisession=0;
d2499drivers/cdrom/sbpcd.cD_S[d].f_multisession=0;
d2510drivers/cdrom/sbpcd.cD_S[d].xa_byte=infobuf[0];
d2513drivers/cdrom/sbpcd.cD_S[d].first_session=infobuf[1];
d2514drivers/cdrom/sbpcd.cD_S[d].last_session=infobuf[2];
d2515drivers/cdrom/sbpcd.cD_S[d].n_first_track=infobuf[3];
d2516drivers/cdrom/sbpcd.cD_S[d].n_last_track=infobuf[4];
d2517drivers/cdrom/sbpcd.cif (D_S[d].first_session!=D_S[d].last_session)
d2519drivers/cdrom/sbpcd.cD_S[d].f_multisession=1;
d2520drivers/cdrom/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7])));
d2523drivers/cdrom/sbpcd.cif (D_S[d].first_session!=D_S[d].last_session)
d2525drivers/cdrom/sbpcd.cif (D_S[d].last_session<=20)
d2526drivers/cdrom/sbpcd.czwanzig=D_S[d].last_session+1;
d2528drivers/cdrom/sbpcd.cfor (count=D_S[d].first_session;count<zwanzig;count++)
d2538drivers/cdrom/sbpcd.cD_S[d].msf_multi_n[count]=make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7]));
d2540drivers/cdrom/sbpcd.cD_S[d].diskstate_flags |= multisession_bit;
d2551drivers/cdrom/sbpcd.cD_S[d].size_msf=make32(make16(0,infobuf[2]),make16(infobuf[3],infobuf[4]));
d2552drivers/cdrom/sbpcd.cD_S[d].size_blk=msf2blk(D_S[d].size_msf);
d2553drivers/cdrom/sbpcd.cD_S[d].CDsize_frm=D_S[d].size_blk+1;
d2557drivers/cdrom/sbpcd.cD_S[d].size_msf=make32(make16(infobuf[8],infobuf[9]),make16(infobuf[10],infobuf[11]));
d2558drivers/cdrom/sbpcd.cD_S[d].size_blk=msf2blk(D_S[d].size_msf);
d2559drivers/cdrom/sbpcd.cD_S[d].CDsize_frm=D_S[d].size_blk+1;
d2560drivers/cdrom/sbpcd.cD_S[d].n_first_track=infobuf[2];
d2561drivers/cdrom/sbpcd.cD_S[d].n_last_track=infobuf[3];
d2565drivers/cdrom/sbpcd.cD_S[d].n_first_track=infobuf[1];
d2566drivers/cdrom/sbpcd.cD_S[d].n_last_track=infobuf[2];
d2567drivers/cdrom/sbpcd.cD_S[d].size_msf=make32(make16(0,infobuf[3]),make16(infobuf[4],infobuf[5]));
d2568drivers/cdrom/sbpcd.cD_S[d].size_blk=msf2blk(D_S[d].size_msf);
d2569drivers/cdrom/sbpcd.cif (famLV_drive) D_S[d].CDsize_frm=D_S[d].size_blk+1;
d2571drivers/cdrom/sbpcd.cD_S[d].diskstate_flags |= toc_bit;
d2573drivers/cdrom/sbpcd.cD_S[d].xa_byte,
d2574drivers/cdrom/sbpcd.cD_S[d].n_first_track,
d2575drivers/cdrom/sbpcd.cD_S[d].n_last_track,
d2576drivers/cdrom/sbpcd.cD_S[d].size_msf);
d2625drivers/cdrom/sbpcd.cD_S[d].TocEnt_nixbyte=infobuf[0];
d2630drivers/cdrom/sbpcd.cD_S[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]);
d2633drivers/cdrom/sbpcd.cD_S[d].TocEnt_number=infobuf[i++];
d2634drivers/cdrom/sbpcd.cD_S[d].TocEnt_format=infobuf[i];
d2638drivers/cdrom/sbpcd.cD_S[d].TocEnt_number=num;
d2639drivers/cdrom/sbpcd.cD_S[d].TocEnt_format=0;
d2645drivers/cdrom/sbpcd.cD_S[d].TocEnt_address=make32(make16(0,infobuf[i]),
d2652drivers/cdrom/sbpcd.cD_S[d].TocEnt_nixbyte, D_S[d].TocEnt_ctl_adr,
d2653drivers/cdrom/sbpcd.cD_S[d].TocEnt_number, D_S[d].TocEnt_format,
d2654drivers/cdrom/sbpcd.cD_S[d].TocEnt_address);
d2685drivers/cdrom/sbpcd.cif (fam1_drive) D_S[d].UPC_buf[i]=swap_nibbles(*p++);
d2688drivers/cdrom/sbpcd.cD_S[d].UPC_buf[i]=((*p++)<<4)&0xFF;
d2689drivers/cdrom/sbpcd.cD_S[d].UPC_buf[i] |= *p++;
d2700drivers/cdrom/sbpcd.cD_S[d].UPC_buf[6] &= 0xF0;
d2718drivers/cdrom/sbpcd.cD_S[d].diskstate_flags &= ~upc_bit;
d2787drivers/cdrom/sbpcd.cD_S[d].UPC_ctl_adr=0;
d2793drivers/cdrom/sbpcd.cD_S[d].UPC_ctl_adr = (D_S[d].TocEnt_ctl_adr & 0xF0) | 0x02;
d2796drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", D_S[d].UPC_buf[i]);
d2797drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " (%02X)", D_S[d].UPC_ctl_adr);
d2800drivers/cdrom/sbpcd.cD_S[d].diskstate_flags |= upc_bit;
d2809drivers/cdrom/sbpcd.cD_S[d].f_multisession=0;
d2810drivers/cdrom/sbpcd.cD_S[d].lba_multi=0;
d2822drivers/cdrom/sbpcd.cD_S[d].f_multisession=1;
d2823drivers/cdrom/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[1]),
d2836drivers/cdrom/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),
d2849drivers/cdrom/sbpcd.cD_S[d].first_session=infobuf[2];
d2850drivers/cdrom/sbpcd.cD_S[d].last_session=infobuf[3];
d2851drivers/cdrom/sbpcd.cD_S[d].track_of_last_session=infobuf[6];
d2852drivers/cdrom/sbpcd.cif (D_S[d].first_session!=D_S[d].last_session)
d2854drivers/cdrom/sbpcd.cD_S[d].f_multisession=1;
d2855drivers/cdrom/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[9]),make16(infobuf[10],infobuf[11])));
d2861drivers/cdrom/sbpcd.cmsg(DBG_MUL,"MultiSession Info:%s (%d)\n", msgbuf, D_S[d].lba_multi);
d2862drivers/cdrom/sbpcd.cif (D_S[d].lba_multi>200)
d2864drivers/cdrom/sbpcd.cD_S[d].f_multisession=1;
d2865drivers/cdrom/sbpcd.cmsg(DBG_MUL,"MultiSession base: %06X\n", D_S[d].lba_multi);
d2882drivers/cdrom/sbpcd.cif (D_S[d].audio_state!=audio_playing) return (-ENODATA);
d2893drivers/cdrom/sbpcd.cD_S[d].frame_size=CD_FRAMESIZE_SUB;
d2976drivers/cdrom/sbpcd.cCDo_command, type, D_S[d].drive_model, D_S[d].drv_id);
d2992drivers/cdrom/sbpcd.cmsg(DBG_INI,"check_version: id=%d, d=%d.\n", D_S[d].drv_id, d);
d2993drivers/cdrom/sbpcd.cD_S[d].drv_type=0;
d3028drivers/cdrom/sbpcd.cD_S[d].drive_model[0]='C';
d3029drivers/cdrom/sbpcd.cD_S[d].drive_model[1]='R';
d3030drivers/cdrom/sbpcd.cD_S[d].drive_model[2]='-';
d3031drivers/cdrom/sbpcd.cD_S[d].drive_model[3]='5';
d3032drivers/cdrom/sbpcd.cD_S[d].drive_model[4]=infobuf[i++];
d3033drivers/cdrom/sbpcd.cD_S[d].drive_model[5]=infobuf[i++];
d3034drivers/cdrom/sbpcd.cD_S[d].drive_model[6]=0;
d3035drivers/cdrom/sbpcd.cD_S[d].drv_type=drv_fam1;
d3037drivers/cdrom/sbpcd.cif (!D_S[d].drv_type)
d3042drivers/cdrom/sbpcd.cD_S[d].drive_model[0]='C';
d3043drivers/cdrom/sbpcd.cD_S[d].drive_model[1]='R';
d3044drivers/cdrom/sbpcd.cD_S[d].drive_model[2]='-';
d3045drivers/cdrom/sbpcd.cD_S[d].drive_model[3]='5';
d3046drivers/cdrom/sbpcd.cD_S[d].drive_model[4]='2';
d3047drivers/cdrom/sbpcd.cD_S[d].drive_model[5]='x';
d3048drivers/cdrom/sbpcd.cD_S[d].drive_model[6]=0;
d3049drivers/cdrom/sbpcd.cD_S[d].drv_type=drv_fam0;
d3052drivers/cdrom/sbpcd.cif (!D_S[d].drv_type)
d3058drivers/cdrom/sbpcd.cD_S[d].drive_model[j]=infobuf[j];
d3059drivers/cdrom/sbpcd.cD_S[d].drive_model[8]=0;
d3060drivers/cdrom/sbpcd.cD_S[d].drv_type=drv_famL;
d3063drivers/cdrom/sbpcd.cif (!D_S[d].drv_type)
d3069drivers/cdrom/sbpcd.cD_S[d].drive_model[j]=infobuf[j];
d3070drivers/cdrom/sbpcd.cD_S[d].drive_model[6]=0;
d3071drivers/cdrom/sbpcd.cD_S[d].drv_type=drv_famV;
d3075drivers/cdrom/sbpcd.cif (!D_S[d].drv_type)
d3092drivers/cdrom/sbpcd.cOUT(CDo_enable,D_S[d].drv_sel);
d3118drivers/cdrom/sbpcd.cD_S[d].drive_model[0]='C';
d3119drivers/cdrom/sbpcd.cD_S[d].drive_model[1]='D';
d3120drivers/cdrom/sbpcd.cD_S[d].drive_model[2]='2';
d3121drivers/cdrom/sbpcd.cD_S[d].drive_model[3]='0';
d3122drivers/cdrom/sbpcd.cD_S[d].drive_model[4]='0';
d3123drivers/cdrom/sbpcd.cD_S[d].drive_model[5]=infobuf[i++];
d3124drivers/cdrom/sbpcd.cD_S[d].drive_model[6]=infobuf[i++];
d3125drivers/cdrom/sbpcd.cD_S[d].drive_model[7]=0;
d3126drivers/cdrom/sbpcd.cD_S[d].drv_type=drv_fam2;
d3130drivers/cdrom/sbpcd.cif (!D_S[d].drv_type)
d3134drivers/cdrom/sbpcd.cfor (j=1;j<=((D_S[d].drv_id==0)?3:1);j++)
d3136drivers/cdrom/sbpcd.cfor (l=1;l<=((D_S[d].drv_id==0)?10:1);l++)
d3142drivers/cdrom/sbpcd.cOUT(CDo_enable,D_S[d].drv_sel);
d3148drivers/cdrom/sbpcd.cOUT(CDo_enable,D_S[d].drv_sel);
d3175drivers/cdrom/sbpcd.cD_S[d].drive_model[0]='C';
d3176drivers/cdrom/sbpcd.cD_S[d].drive_model[1]='D';
d3177drivers/cdrom/sbpcd.cD_S[d].drive_model[2]='-';
d3178drivers/cdrom/sbpcd.cD_S[d].drive_model[3]='5';
d3179drivers/cdrom/sbpcd.cD_S[d].drive_model[4]='5';
d3180drivers/cdrom/sbpcd.cD_S[d].drive_model[5]=0;
d3181drivers/cdrom/sbpcd.cD_S[d].drv_type=drv_famT;
d3185drivers/cdrom/sbpcd.cif (!D_S[d].drv_type)
d3187drivers/cdrom/sbpcd.cmsg(DBG_TEA,"no drive found at address %03X under ID %d.\n",CDo_command,D_S[d].drv_id);
d3190drivers/cdrom/sbpcd.cfor (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j];
d3197drivers/cdrom/sbpcd.cif (D_S[d].firmware_version[j]!=lcs_firm_e1[j]) break;
d3198drivers/cdrom/sbpcd.cif (j==4) D_S[d].drv_type=drv_e1;
d3201drivers/cdrom/sbpcd.cif (D_S[d].firmware_version[j]!=lcs_firm_f4[j]) break;
d3202drivers/cdrom/sbpcd.cif (j==4) D_S[d].drv_type=drv_f4;
d3204drivers/cdrom/sbpcd.cif (D_S[d].drv_type==drv_famL) ask_mail();
d3211drivers/cdrom/sbpcd.cD_S[d].firmware_version[0]=infobuf[7];
d3212drivers/cdrom/sbpcd.cD_S[d].firmware_version[1]=infobuf[8];
d3213drivers/cdrom/sbpcd.cD_S[d].firmware_version[2]=infobuf[10];
d3214drivers/cdrom/sbpcd.cD_S[d].firmware_version[3]=infobuf[11];
d3219drivers/cdrom/sbpcd.cD_S[d].firmware_version[0]='0';
d3220drivers/cdrom/sbpcd.cD_S[d].firmware_version[1]='.';
d3221drivers/cdrom/sbpcd.cD_S[d].firmware_version[2]='0'+(j>>4);
d3222drivers/cdrom/sbpcd.cD_S[d].firmware_version[3]='0'+(j&0x0f);
d3227drivers/cdrom/sbpcd.cj = (D_S[d].firmware_version[0] & 0x0F) * 100 +
d3228drivers/cdrom/sbpcd.c(D_S[d].firmware_version[2] & 0x0F) *10 +
d3229drivers/cdrom/sbpcd.c(D_S[d].firmware_version[3] & 0x0F);
d3232drivers/cdrom/sbpcd.cif (j<200) D_S[d].drv_type=drv_199;
d3233drivers/cdrom/sbpcd.celse if (j<201) D_S[d].drv_type=drv_200;
d3234drivers/cdrom/sbpcd.celse if (j<210) D_S[d].drv_type=drv_201;
d3235drivers/cdrom/sbpcd.celse if (j<211) D_S[d].drv_type=drv_210;
d3236drivers/cdrom/sbpcd.celse if (j<300) D_S[d].drv_type=drv_211;
d3237drivers/cdrom/sbpcd.celse if (j>=300) D_S[d].drv_type=drv_300;
d3241drivers/cdrom/sbpcd.cif (j<100) D_S[d].drv_type=drv_099;
d3244drivers/cdrom/sbpcd.cD_S[d].drv_type=drv_100;
d3250drivers/cdrom/sbpcd.cif (D_S[d].drive_model[5]=='F')
d3264drivers/cdrom/sbpcd.cif (j==100) D_S[d].drv_type=drv_at;
d3268drivers/cdrom/sbpcd.cmsg(DBG_LCS,"drive type %02X\n",D_S[d].drv_type);
d3275drivers/cdrom/sbpcd.cd=i;
d3276drivers/cdrom/sbpcd.cOUT(CDo_enable,D_S[d].drv_sel);
d3277drivers/cdrom/sbpcd.cmsg(DBG_DID,"drive %d (ID=%d) activated.\n", i, D_S[d].drv_id);
d3407drivers/cdrom/sbpcd.cD_S[d].drv_options=drv_pattern[j];
d3408drivers/cdrom/sbpcd.cif (fam0L_drive) D_S[d].drv_options&=~(speed_auto|speed_300|speed_150);
d3410drivers/cdrom/sbpcd.cd,
d3411drivers/cdrom/sbpcd.cD_S[d].drv_id,
d3412drivers/cdrom/sbpcd.cD_S[d].drive_model,
d3413drivers/cdrom/sbpcd.cD_S[d].firmware_version,
d3549drivers/cdrom/sbpcd.ci=msf2blk(D_S[d].pos_audio_end)-1;
d3559drivers/cdrom/sbpcd.cD_S[d].diskstate_flags &= ~toc_bit;
d3560drivers/cdrom/sbpcd.cD_S[d].ored_ctl_adr=0;
d3561drivers/cdrom/sbpcd.cfor (j=D_S[d].n_first_track;j<=D_S[d].n_last_track;j++)
d3569drivers/cdrom/sbpcd.cD_S[d].TocBuffer[j].nixbyte=D_S[d].TocEnt_nixbyte;
d3570drivers/cdrom/sbpcd.cD_S[d].TocBuffer[j].ctl_adr=D_S[d].TocEnt_ctl_adr;
d3571drivers/cdrom/sbpcd.cD_S[d].TocBuffer[j].number=D_S[d].TocEnt_number;
d3572drivers/cdrom/sbpcd.cD_S[d].TocBuffer[j].format=D_S[d].TocEnt_format;
d3573drivers/cdrom/sbpcd.cD_S[d].TocBuffer[j].address=D_S[d].TocEnt_address;
d3574drivers/cdrom/sbpcd.cD_S[d].ored_ctl_adr |= D_S[d].TocEnt_ctl_adr;
d3577drivers/cdrom/sbpcd.cD_S[d].TocBuffer[j].nixbyte=0;
d3578drivers/cdrom/sbpcd.cD_S[d].TocBuffer[j].ctl_adr=0;
d3579drivers/cdrom/sbpcd.cD_S[d].TocBuffer[j].number=CDROM_LEADOUT;
d3580drivers/cdrom/sbpcd.cD_S[d].TocBuffer[j].format=0;
d3581drivers/cdrom/sbpcd.cD_S[d].TocBuffer[j].address=D_S[d].size_msf;
d3583drivers/cdrom/sbpcd.cD_S[d].diskstate_flags |= toc_bit;
d3591drivers/cdrom/sbpcd.cD_S[d].mode=READ_M1;
d3636drivers/cdrom/sbpcd.cif (D_S[d].f_multisession) D_S[d].sbp_bufsiz=1;  /* possibly a weird PhotoCD */
d3637drivers/cdrom/sbpcd.celse D_S[d].sbp_bufsiz=SBP_BUFFER_FRAMES;
d3638drivers/cdrom/sbpcd.ci=cc_ReadTocEntry(D_S[d].n_first_track);
d3646drivers/cdrom/sbpcd.cif ((fam0L_drive) && (D_S[d].xa_byte==0x20))
d3674drivers/cdrom/sbpcd.cif (D_S[d].CD_changed==0xFF)
d3676drivers/cdrom/sbpcd.cD_S[d].diskstate_flags=0;
d3677drivers/cdrom/sbpcd.cD_S[d].audio_state=0;
d3688drivers/cdrom/sbpcd.cD_S[d].CD_changed=1;
d3697drivers/cdrom/sbpcd.cD_S[d].diskstate_flags=0;
d3698drivers/cdrom/sbpcd.cD_S[d].audio_state=0;
d3706drivers/cdrom/sbpcd.cif (D_S[d].audio_state!=audio_pausing)
d3714drivers/cdrom/sbpcd.cif (D_S[d].audio_state==audio_playing) seek_pos_audio_end();
d3715drivers/cdrom/sbpcd.cD_S[d].audio_state=0;
d3722drivers/cdrom/sbpcd.cD_S[d].diskstate_flags=0;
d3723drivers/cdrom/sbpcd.cD_S[d].audio_state=0;
d3799drivers/cdrom/sbpcd.cif (d!=i) switch_drive(i);
d3826drivers/cdrom/sbpcd.cswitch (D_S[d].audio_state)
d3835drivers/cdrom/sbpcd.cD_S[d].pos_audio_start=D_S[d].SubQ_run_tot;
d3836drivers/cdrom/sbpcd.cD_S[d].audio_state=audio_pausing;
d3839drivers/cdrom/sbpcd.ci=cc_Seek(D_S[d].pos_audio_start,1);
d3851drivers/cdrom/sbpcd.cif (D_S[d].audio_state!=audio_pausing) return -EINVAL;
d3853drivers/cdrom/sbpcd.ci=cc_PlayAudio(D_S[d].pos_audio_start,
d3854drivers/cdrom/sbpcd.cD_S[d].pos_audio_end);
d3857drivers/cdrom/sbpcd.cD_S[d].audio_state=audio_playing;
d3862drivers/cdrom/sbpcd.cif (D_S[d].audio_state==audio_playing)
d3868drivers/cdrom/sbpcd.cD_S[d].pos_audio_start=D_S[d].SubQ_run_tot;
d3869drivers/cdrom/sbpcd.ci=cc_Seek(D_S[d].pos_audio_start,1);
d3875drivers/cdrom/sbpcd.cD_S[d].pos_audio_start = (msf.cdmsf_min0<<16) |
d3878drivers/cdrom/sbpcd.cD_S[d].pos_audio_end = (msf.cdmsf_min1<<16) |
d3882drivers/cdrom/sbpcd.cD_S[d].pos_audio_start,D_S[d].pos_audio_end);
d3883drivers/cdrom/sbpcd.ci=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end);
d3888drivers/cdrom/sbpcd.cD_S[d].audio_state=audio_playing;
d3893drivers/cdrom/sbpcd.cif (D_S[d].audio_state==audio_playing)
d3908drivers/cdrom/sbpcd.cif (ti.cdti_trk0<D_S[d].n_first_track) return (-EINVAL);
d3909drivers/cdrom/sbpcd.cif (ti.cdti_trk0>D_S[d].n_last_track) return (-EINVAL);
d3911drivers/cdrom/sbpcd.cif (ti.cdti_trk1>D_S[d].n_last_track) ti.cdti_trk1=D_S[d].n_last_track;
d3912drivers/cdrom/sbpcd.cD_S[d].pos_audio_start=D_S[d].TocBuffer[ti.cdti_trk0].address;
d3913drivers/cdrom/sbpcd.cD_S[d].pos_audio_end=D_S[d].TocBuffer[ti.cdti_trk1+1].address;
d3914drivers/cdrom/sbpcd.ci=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end);
d3918drivers/cdrom/sbpcd.cD_S[d].audio_state=audio_playing;
d3923drivers/cdrom/sbpcd.ctochdr.cdth_trk0=D_S[d].n_first_track;
d3924drivers/cdrom/sbpcd.ctochdr.cdth_trk1=D_S[d].n_last_track;
d3936drivers/cdrom/sbpcd.cif (i==CDROM_LEADOUT) i=D_S[d].n_last_track+1;
d3937drivers/cdrom/sbpcd.celse if (i<D_S[d].n_first_track||i>D_S[d].n_last_track) return (-EINVAL);
d3938drivers/cdrom/sbpcd.ctocentry.cdte_adr=D_S[d].TocBuffer[i].ctl_adr&0x0F;
d3939drivers/cdrom/sbpcd.ctocentry.cdte_ctrl=(D_S[d].TocBuffer[i].ctl_adr>>4)&0x0F;
d3940drivers/cdrom/sbpcd.ctocentry.cdte_datamode=D_S[d].TocBuffer[i].format;
d3943drivers/cdrom/sbpcd.ctocentry.cdte_addr.msf.minute=(D_S[d].TocBuffer[i].address>>16)&0x00FF;
d3944drivers/cdrom/sbpcd.ctocentry.cdte_addr.msf.second=(D_S[d].TocBuffer[i].address>>8)&0x00FF;
d3945drivers/cdrom/sbpcd.ctocentry.cdte_addr.msf.frame=D_S[d].TocBuffer[i].address&0x00FF;
d3948drivers/cdrom/sbpcd.ctocentry.cdte_addr.lba=msf2blk(D_S[d].TocBuffer[i].address);
d3958drivers/cdrom/sbpcd.cD_S[d].audio_state=0;
d3964drivers/cdrom/sbpcd.cD_S[d].audio_state=0;
d3970drivers/cdrom/sbpcd.cD_S[d].audio_state=0;
d3976drivers/cdrom/sbpcd.cif (D_S[d].open_count>1) return (-EBUSY);
d3978drivers/cdrom/sbpcd.cD_S[d].open_count=-9; /* to get it locked next time again */
d3983drivers/cdrom/sbpcd.cD_S[d].CD_changed=0xFF;
d3984drivers/cdrom/sbpcd.cD_S[d].diskstate_flags=0;
d3985drivers/cdrom/sbpcd.cD_S[d].audio_state=0;
d3991drivers/cdrom/sbpcd.cD_S[d].f_eject=arg;
d3999drivers/cdrom/sbpcd.cD_S[d].vol_chan0=0;
d4000drivers/cdrom/sbpcd.cD_S[d].vol_ctrl0=volctrl.channel0;
d4001drivers/cdrom/sbpcd.cD_S[d].vol_chan1=1;
d4002drivers/cdrom/sbpcd.cD_S[d].vol_ctrl1=volctrl.channel1;
d4012drivers/cdrom/sbpcd.cvolctrl.channel0=D_S[d].vol_ctrl0;
d4013drivers/cdrom/sbpcd.cvolctrl.channel1=D_S[d].vol_ctrl1;
d4029drivers/cdrom/sbpcd.cswitch (D_S[d].audio_state)
d4041drivers/cdrom/sbpcd.cSC.cdsc_adr=D_S[d].SubQ_ctl_adr;
d4042drivers/cdrom/sbpcd.cSC.cdsc_ctrl=D_S[d].SubQ_ctl_adr>>4;
d4043drivers/cdrom/sbpcd.cSC.cdsc_trk=bcd2bin(D_S[d].SubQ_trk);
d4044drivers/cdrom/sbpcd.cSC.cdsc_ind=bcd2bin(D_S[d].SubQ_pnt_idx);
d4047drivers/cdrom/sbpcd.cSC.cdsc_absaddr.lba=msf2blk(D_S[d].SubQ_run_tot);
d4048drivers/cdrom/sbpcd.cSC.cdsc_reladdr.lba=msf2blk(D_S[d].SubQ_run_trk);
d4052drivers/cdrom/sbpcd.cSC.cdsc_absaddr.msf.minute=(D_S[d].SubQ_run_tot>>16)&0x00FF;
d4053drivers/cdrom/sbpcd.cSC.cdsc_absaddr.msf.second=(D_S[d].SubQ_run_tot>>8)&0x00FF;
d4054drivers/cdrom/sbpcd.cSC.cdsc_absaddr.msf.frame=D_S[d].SubQ_run_tot&0x00FF;
d4055drivers/cdrom/sbpcd.cSC.cdsc_reladdr.msf.minute=(D_S[d].SubQ_run_trk>>16)&0x00FF;
d4056drivers/cdrom/sbpcd.cSC.cdsc_reladdr.msf.second=(D_S[d].SubQ_run_trk>>8)&0x00FF;
d4057drivers/cdrom/sbpcd.cSC.cdsc_reladdr.msf.frame=D_S[d].SubQ_run_trk&0x00FF;
d4071drivers/cdrom/sbpcd.cD_S[d].mode=READ_M1;
d4078drivers/cdrom/sbpcd.cD_S[d].mode=READ_M2;
d4083drivers/cdrom/sbpcd.cif (D_S[d].sbp_audsiz>0) vfree(D_S[d].aud_buf);
d4084drivers/cdrom/sbpcd.cD_S[d].aud_buf=NULL;
d4085drivers/cdrom/sbpcd.cD_S[d].sbp_audsiz=arg;
d4086drivers/cdrom/sbpcd.cif (D_S[d].sbp_audsiz>0)
d4088drivers/cdrom/sbpcd.cD_S[d].aud_buf=(u_char *) vmalloc(D_S[d].sbp_audsiz*CD_FRAMESIZE_RAW);
d4089drivers/cdrom/sbpcd.cif (D_S[d].aud_buf==NULL)
d4091drivers/cdrom/sbpcd.cmsg(DBG_INF,"audio buffer (%d frames) not available.\n",D_S[d].sbp_audsiz);
d4092drivers/cdrom/sbpcd.cD_S[d].sbp_audsiz=0;
d4094drivers/cdrom/sbpcd.celse msg(DBG_INF,"audio buffer size: %d frames.\n",D_S[d].sbp_audsiz);
d4096drivers/cdrom/sbpcd.creturn (D_S[d].sbp_audsiz);
d4115drivers/cdrom/sbpcd.cif (D_S[d].aud_buf==NULL) return (-EINVAL);
d4119drivers/cdrom/sbpcd.cif (read_audio.nframes>D_S[d].sbp_audsiz) return (-EINVAL);
d4142drivers/cdrom/sbpcd.cD_S[d].mode=READ_AU;
d4229drivers/cdrom/sbpcd.cp = D_S[d].aud_buf;
d4276drivers/cdrom/sbpcd.cD_S[d].status_bits);
d4288drivers/cdrom/sbpcd.c(u_char *) D_S[d].aud_buf,
d4295drivers/cdrom/sbpcd.cD_S[d].mode=READ_M1;
d4312drivers/cdrom/sbpcd.clba2msf(D_S[d].lba_multi,&ms_info.addr.msf.minute);
d4314drivers/cdrom/sbpcd.cms_info.addr.lba=D_S[d].lba_multi;
d4316drivers/cdrom/sbpcd.cif (D_S[d].f_multisession) ms_info.xa_flag=1; /* valid redirection address */
d4346drivers/cdrom/sbpcd.c(CURRENT->sector/4 >= D_S[d].sbp_first_frame) &&
d4347drivers/cdrom/sbpcd.c(CURRENT->sector/4 <= D_S[d].sbp_last_frame) )
d4349drivers/cdrom/sbpcd.coffs = (CURRENT->sector - D_S[d].sbp_first_frame * 4) * 512;
d4350drivers/cdrom/sbpcd.cmemcpy(CURRENT->buffer, D_S[d].sbp_buf + offs, 512);
d4390drivers/cdrom/sbpcd.cif (d!=i) switch_drive(i);
d4458drivers/cdrom/sbpcd.cD_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1;      /* purge buffer */
d4459drivers/cdrom/sbpcd.cD_S[d].sbp_current = 0;
d4461drivers/cdrom/sbpcd.cif (block+D_S[d].sbp_bufsiz <= D_S[d].CDsize_frm)
d4462drivers/cdrom/sbpcd.cD_S[d].sbp_read_frames = D_S[d].sbp_bufsiz;
d4465drivers/cdrom/sbpcd.cD_S[d].sbp_read_frames=D_S[d].CDsize_frm-block;
d4467drivers/cdrom/sbpcd.cif (D_S[d].sbp_read_frames < 1)
d4470drivers/cdrom/sbpcd.cblock, D_S[d].CDsize_frm);
d4471drivers/cdrom/sbpcd.cD_S[d].sbp_read_frames=1;
d4484drivers/cdrom/sbpcd.cdrvcmd[4]=D_S[d].sbp_read_frames>>8;
d4485drivers/cdrom/sbpcd.cdrvcmd[5]=D_S[d].sbp_read_frames&0xff;
d4491drivers/cdrom/sbpcd.cif (D_S[d].xa_byte==0x20)
d4498drivers/cdrom/sbpcd.cdrvcmd[4]=(D_S[d].sbp_read_frames>>8)&0x0ff;
d4499drivers/cdrom/sbpcd.cdrvcmd[5]=D_S[d].sbp_read_frames&0x0ff;
d4504drivers/cdrom/sbpcd.cif (D_S[d].drv_type>=drv_201)
d4517drivers/cdrom/sbpcd.cdrvcmd[4]=(D_S[d].sbp_read_frames>>8)&0x0ff;
d4518drivers/cdrom/sbpcd.cdrvcmd[5]=D_S[d].sbp_read_frames&0x0ff;
d4519drivers/cdrom/sbpcd.cdrvcmd[6]=(D_S[d].drv_type<drv_201)?0:2; /* flag "lba or msf-bcd format" */
d4526drivers/cdrom/sbpcd.cdrvcmd[5]=(D_S[d].sbp_read_frames>>8)&0x0ff;
d4527drivers/cdrom/sbpcd.cdrvcmd[6]=D_S[d].sbp_read_frames&0x0ff;
d4533drivers/cdrom/sbpcd.cdrvcmd[4]=(D_S[d].sbp_read_frames>>8)&0x0ff;
d4534drivers/cdrom/sbpcd.cdrvcmd[5]=D_S[d].sbp_read_frames&0x0ff;
d4544drivers/cdrom/sbpcd.cdrvcmd[7]=(D_S[d].sbp_read_frames>>8)&0x0ff;
d4545drivers/cdrom/sbpcd.cdrvcmd[8]=D_S[d].sbp_read_frames&0x0ff;
d4586drivers/cdrom/sbpcd.cif (D_S[d].f_multisession) max_latency=9*HZ;
d4590drivers/cdrom/sbpcd.cfor (frame=0;frame<D_S[d].sbp_read_frames&&!error_flag; frame++)
d4600drivers/cdrom/sbpcd.cif (D_S[d].f_multisession) try=maxtim_data*4;
d4645drivers/cdrom/sbpcd.cif ((D_S[d].ored_ctl_adr&0x40)==0)
d4654drivers/cdrom/sbpcd.cp = D_S[d].sbp_buf + frame *  CD_FRAMESIZE;
d4659drivers/cdrom/sbpcd.cD_S[d].sbp_current++;
d4730drivers/cdrom/sbpcd.cD_S[d].error_state=infobuf[2];
d4731drivers/cdrom/sbpcd.cD_S[d].b3=infobuf[3];
d4732drivers/cdrom/sbpcd.cD_S[d].b4=infobuf[4];
d4802drivers/cdrom/sbpcd.cmsg(DBG_INF,"bad cc_ReadStatus after read: %02X\n", D_S[d].status_bits);
d4816drivers/cdrom/sbpcd.cD_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1;      /* purge buffer */
d4817drivers/cdrom/sbpcd.cD_S[d].sbp_current = 0;
d4822drivers/cdrom/sbpcd.cD_S[d].sbp_first_frame = CURRENT -> sector / 4;
d4823drivers/cdrom/sbpcd.cD_S[d].sbp_last_frame = D_S[d].sbp_first_frame + D_S[d].sbp_read_frames - 1;
d4880drivers/cdrom/sbpcd.cif (famT_drive)  msg(DBG_TEA,"sbpcd_open: status %02X\n", D_S[d].status_bits);
d4884drivers/cdrom/sbpcd.cD_S[d].open_count=0;
d4899drivers/cdrom/sbpcd.cD_S[d].open_count,D_S[d].open_count+1);
d4900drivers/cdrom/sbpcd.cif (++D_S[d].open_count<=1)
d4903drivers/cdrom/sbpcd.cD_S[d].open_count=1;
d4907drivers/cdrom/sbpcd.cif ((D_S[d].ored_ctl_adr&0x40)==0)
d4929drivers/cdrom/sbpcd.cD_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1;
d4938drivers/cdrom/sbpcd.cD_S[d].open_count,D_S[d].open_count-1);
d4939drivers/cdrom/sbpcd.cif (D_S[d].open_count>-2) /* CDROMEJECT may have been done */
d4941drivers/cdrom/sbpcd.cif (--D_S[d].open_count<=0) 
d4944drivers/cdrom/sbpcd.cif (D_S[d].audio_state!=audio_playing)
d4945drivers/cdrom/sbpcd.cif (D_S[d].f_eject) cc_SpinDown();
d4946drivers/cdrom/sbpcd.cD_S[d].diskstate_flags &= ~cd_size_bit;
d4947drivers/cdrom/sbpcd.cD_S[d].open_count=0; 
d5194drivers/cdrom/sbpcd.cD_S[d].sbp_first_frame = -1;  /* First frame in buffer */
d5195drivers/cdrom/sbpcd.cD_S[d].sbp_last_frame = -1;   /* Last frame in buffer  */
d5196drivers/cdrom/sbpcd.cD_S[d].sbp_read_frames = 0;   /* Number of frames being read to buffer */
d5197drivers/cdrom/sbpcd.cD_S[d].sbp_current = 0;       /* Frame being currently read */
d5198drivers/cdrom/sbpcd.cD_S[d].CD_changed=1;
d5199drivers/cdrom/sbpcd.cD_S[d].frame_size=CD_FRAMESIZE;
d5200drivers/cdrom/sbpcd.cD_S[d].f_eject=0;
d5202drivers/cdrom/sbpcd.cif (!fam0_drive) D_S[d].f_eject=1;
d5220drivers/cdrom/sbpcd.cD_S[d].error_byte);
d5221drivers/cdrom/sbpcd.cif (D_S[d].error_byte==aud_12)
d5230drivers/cdrom/sbpcd.cD_S[d].error_byte);
d5237drivers/cdrom/sbpcd.cif (i>=0) D_S[d].CD_changed=1;
d5371drivers/cdrom/sbpcd.cmsg(DBG_CHK,"media_check: %02X\n",D_S[d].status_bits);
d5377drivers/cdrom/sbpcd.cif (D_S[d].CD_changed==0xFF) msg(DBG_CHK,"media_check: \"changed\" assumed.\n");
d5382drivers/cdrom/sbpcd.cD_S[d].CD_changed=0xFF;
d5387drivers/cdrom/sbpcd.cD_S[d].open_count=0;
d5388drivers/cdrom/sbpcd.cD_S[d].CD_changed=0xFF;
d5393drivers/cdrom/sbpcd.cif (D_S[d].CD_changed==0xFF)
d5395drivers/cdrom/sbpcd.cD_S[d].CD_changed=1;
d282drivers/cdrom/sjcd.cunsigned char b, unsigned char c, unsigned char d ){
d290drivers/cdrom/sjcd.coutb( d, SJCDPORT( 0 ) );
d299drivers/char/console.creturn (i < MAX_NR_CONSOLES && vc_cons[i].d);
d306drivers/char/console.cif (!vc_cons[i].d) {
d325drivers/char/console.cvc_cons[i].d = (struct vc_data *) p;
d329drivers/char/console.cvc_cons[i].d->vc_kmalloced = 1;
d330drivers/char/console.cvc_cons[i].d->vc_screenbuf_size = video_screen_size;
d442drivers/char/console.ckfree_s(vc_cons[currcons].d, structsize);
d443drivers/char/console.cvc_cons[currcons].d = 0;
d530drivers/char/console.cunsigned short * d = (unsigned short *) video_mem_base;
d539drivers/char/console.cscr_writew(scr_readw(d++),s++);
d595drivers/char/console.cunsigned short * d = (unsigned short *) video_mem_start;
d602drivers/char/console.cscr_writew(scr_readw(s++),d++);
d607drivers/char/console.cscr_writew(video_erase_char, d++);
d616drivers/char/console.cunsigned short * d;
d619drivers/char/console.cd = (unsigned short *) (scr_end - video_size_row);
d623drivers/char/console.cscr_writew(video_erase_char, d++);
d630drivers/char/console.cunsigned short * d = (unsigned short *) (origin+video_size_row*t);
d636drivers/char/console.cscr_writew(scr_readw(s++), d++);
d641drivers/char/console.cscr_writew(video_erase_char, d++);
d649drivers/char/console.cunsigned short *d, *s;
d654drivers/char/console.cd = (unsigned short *) (origin+video_size_row*b);
d659drivers/char/console.cscr_writew(scr_readw(--s), --d);
d664drivers/char/console.cscr_writew(video_erase_char, --d);
d1925drivers/char/console.cvc_cons[currcons].d->vc_palette[k++] = default_red[j] ;
d1926drivers/char/console.cvc_cons[currcons].d->vc_palette[k++] = default_grn[j] ;
d1927drivers/char/console.cvc_cons[currcons].d->vc_palette[k++] = default_blu[j] ;
d2010drivers/char/console.cvc_cons[currcons].d = (struct vc_data *) kmem_start;
d2020drivers/char/console.cvc_cons[currcons].d->vc_palette[k++] = default_red[j] ;
d2021drivers/char/console.cvc_cons[currcons].d->vc_palette[k++] = default_grn[j] ;
d2022drivers/char/console.cvc_cons[currcons].d->vc_palette[k++] = default_blu[j] ;
d71drivers/char/console_struct.hstruct vc_data *d;
d80drivers/char/console_struct.h#define screenbuf_size  (vc_cons[currcons].d->vc_screenbuf_size)
d81drivers/char/console_struct.h#define origin    (vc_cons[currcons].d->vc_origin)
d82drivers/char/console_struct.h#define scr_end  (vc_cons[currcons].d->vc_scr_end)
d83drivers/char/console_struct.h#define pos    (vc_cons[currcons].d->vc_pos)
d84drivers/char/console_struct.h#define top    (vc_cons[currcons].d->vc_top)
d85drivers/char/console_struct.h#define bottom    (vc_cons[currcons].d->vc_bottom)
d86drivers/char/console_struct.h#define x    (vc_cons[currcons].d->vc_x)
d87drivers/char/console_struct.h#define y    (vc_cons[currcons].d->vc_y)
d88drivers/char/console_struct.h#define vc_state  (vc_cons[currcons].d->vc_state)
d89drivers/char/console_struct.h#define npar    (vc_cons[currcons].d->vc_npar)
d90drivers/char/console_struct.h#define par    (vc_cons[currcons].d->vc_par)
d91drivers/char/console_struct.h#define ques    (vc_cons[currcons].d->vc_ques)
d92drivers/char/console_struct.h#define attr    (vc_cons[currcons].d->vc_attr)
d93drivers/char/console_struct.h#define saved_x  (vc_cons[currcons].d->vc_saved_x)
d94drivers/char/console_struct.h#define saved_y  (vc_cons[currcons].d->vc_saved_y)
d95drivers/char/console_struct.h#define translate  (vc_cons[currcons].d->vc_translate)
d96drivers/char/console_struct.h#define G0_charset  (vc_cons[currcons].d->vc_G0_charset)
d97drivers/char/console_struct.h#define G1_charset  (vc_cons[currcons].d->vc_G1_charset)
d98drivers/char/console_struct.h#define saved_G0  (vc_cons[currcons].d->vc_saved_G0)
d99drivers/char/console_struct.h#define saved_G1  (vc_cons[currcons].d->vc_saved_G1)
d100drivers/char/console_struct.h#define utf    (vc_cons[currcons].d->vc_utf)
d101drivers/char/console_struct.h#define utf_count  (vc_cons[currcons].d->vc_utf_count)
d102drivers/char/console_struct.h#define utf_char  (vc_cons[currcons].d->vc_utf_char)
d103drivers/char/console_struct.h#define video_mem_start (vc_cons[currcons].d->vc_video_mem_start)
d104drivers/char/console_struct.h#define video_mem_end  (vc_cons[currcons].d->vc_video_mem_end)
d105drivers/char/console_struct.h#define video_erase_char (vc_cons[currcons].d->vc_video_erase_char)
d106drivers/char/console_struct.h#define disp_ctrl  (vc_cons[currcons].d->vc_disp_ctrl)
d107drivers/char/console_struct.h#define toggle_meta  (vc_cons[currcons].d->vc_toggle_meta)
d108drivers/char/console_struct.h#define decscnm  (vc_cons[currcons].d->vc_decscnm)
d109drivers/char/console_struct.h#define decom    (vc_cons[currcons].d->vc_decom)
d110drivers/char/console_struct.h#define decawm    (vc_cons[currcons].d->vc_decawm)
d111drivers/char/console_struct.h#define deccm    (vc_cons[currcons].d->vc_deccm)
d112drivers/char/console_struct.h#define decim    (vc_cons[currcons].d->vc_decim)
d113drivers/char/console_struct.h#define deccolm  (vc_cons[currcons].d->vc_deccolm)
d114drivers/char/console_struct.h#define need_wrap  (vc_cons[currcons].d->vc_need_wrap)
d115drivers/char/console_struct.h#define has_scrolled  (vc_cons[currcons].d->vc_has_scrolled)
d116drivers/char/console_struct.h#define kmalloced  (vc_cons[currcons].d->vc_kmalloced)
d117drivers/char/console_struct.h#define report_mouse  (vc_cons[currcons].d->vc_report_mouse)
d118drivers/char/console_struct.h#define color    (vc_cons[currcons].d->vc_color)
d119drivers/char/console_struct.h#define s_color  (vc_cons[currcons].d->vc_s_color)
d120drivers/char/console_struct.h#define def_color  (vc_cons[currcons].d->vc_def_color)
d123drivers/char/console_struct.h#define charset  (vc_cons[currcons].d->vc_charset)
d124drivers/char/console_struct.h#define s_charset  (vc_cons[currcons].d->vc_s_charset)
d125drivers/char/console_struct.h#define  intensity  (vc_cons[currcons].d->vc_intensity)
d126drivers/char/console_struct.h#define  underline  (vc_cons[currcons].d->vc_underline)
d127drivers/char/console_struct.h#define  blink    (vc_cons[currcons].d->vc_blink)
d128drivers/char/console_struct.h#define  reverse    (vc_cons[currcons].d->vc_reverse)
d129drivers/char/console_struct.h#define  s_intensity  (vc_cons[currcons].d->vc_s_intensity)
d130drivers/char/console_struct.h#define  s_underline  (vc_cons[currcons].d->vc_s_underline)
d131drivers/char/console_struct.h#define  s_blink    (vc_cons[currcons].d->vc_s_blink)
d132drivers/char/console_struct.h#define  s_reverse  (vc_cons[currcons].d->vc_s_reverse)
d133drivers/char/console_struct.h#define  ulcolor    (vc_cons[currcons].d->vc_ulcolor)
d134drivers/char/console_struct.h#define  halfcolor  (vc_cons[currcons].d->vc_halfcolor)
d135drivers/char/console_struct.h#define tab_stop  (vc_cons[currcons].d->vc_tab_stop)
d136drivers/char/console_struct.h#define palette    (vc_cons[currcons].d->vc_palette)
d137drivers/char/console_struct.h#define bell_pitch  (vc_cons[currcons].d->vc_bell_pitch)
d138drivers/char/console_struct.h#define bell_duration  (vc_cons[currcons].d->vc_bell_duration)
d839drivers/char/keyboard.cint d = diacr;
d844drivers/char/keyboard.creturn d;
d847drivers/char/keyboard.cif (accent_table[i].diacr == d && accent_table[i].base == ch)
d851drivers/char/keyboard.cput_queue(d);
d481drivers/char/random.c__u32 a, b, c, d;
d486drivers/char/random.cd = buf[3];
d488drivers/char/random.cMD5STEP(F1, a, b, c, d, in[ 0]+0xd76aa478,  7);
d489drivers/char/random.cMD5STEP(F1, d, a, b, c, in[ 1]+0xe8c7b756, 12);
d490drivers/char/random.cMD5STEP(F1, c, d, a, b, in[ 2]+0x242070db, 17);
d491drivers/char/random.cMD5STEP(F1, b, c, d, a, in[ 3]+0xc1bdceee, 22);
d492drivers/char/random.cMD5STEP(F1, a, b, c, d, in[ 4]+0xf57c0faf,  7);
d493drivers/char/random.cMD5STEP(F1, d, a, b, c, in[ 5]+0x4787c62a, 12);
d494drivers/char/random.cMD5STEP(F1, c, d, a, b, in[ 6]+0xa8304613, 17);
d495drivers/char/random.cMD5STEP(F1, b, c, d, a, in[ 7]+0xfd469501, 22);
d496drivers/char/random.cMD5STEP(F1, a, b, c, d, in[ 8]+0x698098d8,  7);
d497drivers/char/random.cMD5STEP(F1, d, a, b, c, in[ 9]+0x8b44f7af, 12);
d498drivers/char/random.cMD5STEP(F1, c, d, a, b, in[10]+0xffff5bb1, 17);
d499drivers/char/random.cMD5STEP(F1, b, c, d, a, in[11]+0x895cd7be, 22);
d500drivers/char/random.cMD5STEP(F1, a, b, c, d, in[12]+0x6b901122,  7);
d501drivers/char/random.cMD5STEP(F1, d, a, b, c, in[13]+0xfd987193, 12);
d502drivers/char/random.cMD5STEP(F1, c, d, a, b, in[14]+0xa679438e, 17);
d503drivers/char/random.cMD5STEP(F1, b, c, d, a, in[15]+0x49b40821, 22);
d505drivers/char/random.cMD5STEP(F2, a, b, c, d, in[ 1]+0xf61e2562,  5);
d506drivers/char/random.cMD5STEP(F2, d, a, b, c, in[ 6]+0xc040b340,  9);
d507drivers/char/random.cMD5STEP(F2, c, d, a, b, in[11]+0x265e5a51, 14);
d508drivers/char/random.cMD5STEP(F2, b, c, d, a, in[ 0]+0xe9b6c7aa, 20);
d509drivers/char/random.cMD5STEP(F2, a, b, c, d, in[ 5]+0xd62f105d,  5);
d510drivers/char/random.cMD5STEP(F2, d, a, b, c, in[10]+0x02441453,  9);
d511drivers/char/random.cMD5STEP(F2, c, d, a, b, in[15]+0xd8a1e681, 14);
d512drivers/char/random.cMD5STEP(F2, b, c, d, a, in[ 4]+0xe7d3fbc8, 20);
d513drivers/char/random.cMD5STEP(F2, a, b, c, d, in[ 9]+0x21e1cde6,  5);
d514drivers/char/random.cMD5STEP(F2, d, a, b, c, in[14]+0xc33707d6,  9);
d515drivers/char/random.cMD5STEP(F2, c, d, a, b, in[ 3]+0xf4d50d87, 14);
d516drivers/char/random.cMD5STEP(F2, b, c, d, a, in[ 8]+0x455a14ed, 20);
d517drivers/char/random.cMD5STEP(F2, a, b, c, d, in[13]+0xa9e3e905,  5);
d518drivers/char/random.cMD5STEP(F2, d, a, b, c, in[ 2]+0xfcefa3f8,  9);
d519drivers/char/random.cMD5STEP(F2, c, d, a, b, in[ 7]+0x676f02d9, 14);
d520drivers/char/random.cMD5STEP(F2, b, c, d, a, in[12]+0x8d2a4c8a, 20);
d522drivers/char/random.cMD5STEP(F3, a, b, c, d, in[ 5]+0xfffa3942,  4);
d523drivers/char/random.cMD5STEP(F3, d, a, b, c, in[ 8]+0x8771f681, 11);
d524drivers/char/random.cMD5STEP(F3, c, d, a, b, in[11]+0x6d9d6122, 16);
d525drivers/char/random.cMD5STEP(F3, b, c, d, a, in[14]+0xfde5380c, 23);
d526drivers/char/random.cMD5STEP(F3, a, b, c, d, in[ 1]+0xa4beea44,  4);
d527drivers/char/random.cMD5STEP(F3, d, a, b, c, in[ 4]+0x4bdecfa9, 11);
d528drivers/char/random.cMD5STEP(F3, c, d, a, b, in[ 7]+0xf6bb4b60, 16);
d529drivers/char/random.cMD5STEP(F3, b, c, d, a, in[10]+0xbebfbc70, 23);
d530drivers/char/random.cMD5STEP(F3, a, b, c, d, in[13]+0x289b7ec6,  4);
d531drivers/char/random.cMD5STEP(F3, d, a, b, c, in[ 0]+0xeaa127fa, 11);
d532drivers/char/random.cMD5STEP(F3, c, d, a, b, in[ 3]+0xd4ef3085, 16);
d533drivers/char/random.cMD5STEP(F3, b, c, d, a, in[ 6]+0x04881d05, 23);
d534drivers/char/random.cMD5STEP(F3, a, b, c, d, in[ 9]+0xd9d4d039,  4);
d535drivers/char/random.cMD5STEP(F3, d, a, b, c, in[12]+0xe6db99e5, 11);
d536drivers/char/random.cMD5STEP(F3, c, d, a, b, in[15]+0x1fa27cf8, 16);
d537drivers/char/random.cMD5STEP(F3, b, c, d, a, in[ 2]+0xc4ac5665, 23);
d539drivers/char/random.cMD5STEP(F4, a, b, c, d, in[ 0]+0xf4292244,  6);
d540drivers/char/random.cMD5STEP(F4, d, a, b, c, in[ 7]+0x432aff97, 10);
d541drivers/char/random.cMD5STEP(F4, c, d, a, b, in[14]+0xab9423a7, 15);
d542drivers/char/random.cMD5STEP(F4, b, c, d, a, in[ 5]+0xfc93a039, 21);
d543drivers/char/random.cMD5STEP(F4, a, b, c, d, in[12]+0x655b59c3,  6);
d544drivers/char/random.cMD5STEP(F4, d, a, b, c, in[ 3]+0x8f0ccc92, 10);
d545drivers/char/random.cMD5STEP(F4, c, d, a, b, in[10]+0xffeff47d, 15);
d546drivers/char/random.cMD5STEP(F4, b, c, d, a, in[ 1]+0x85845dd1, 21);
d547drivers/char/random.cMD5STEP(F4, a, b, c, d, in[ 8]+0x6fa87e4f,  6);
d548drivers/char/random.cMD5STEP(F4, d, a, b, c, in[15]+0xfe2ce6e0, 10);
d549drivers/char/random.cMD5STEP(F4, c, d, a, b, in[ 6]+0xa3014314, 15);
d550drivers/char/random.cMD5STEP(F4, b, c, d, a, in[13]+0x4e0811a1, 21);
d551drivers/char/random.cMD5STEP(F4, a, b, c, d, in[ 4]+0xf7537e82,  6);
d552drivers/char/random.cMD5STEP(F4, d, a, b, c, in[11]+0xbd3af235, 10);
d553drivers/char/random.cMD5STEP(F4, c, d, a, b, in[ 2]+0x2ad7d2bb, 15);
d554drivers/char/random.cMD5STEP(F4, b, c, d, a, in[ 9]+0xeb86d391, 21);
d559drivers/char/random.cbuf[3] += d;
d409drivers/char/tga.cvc_cons[i].d->vc_palette[k++] = default_red[j];
d410drivers/char/tga.cvc_cons[i].d->vc_palette[k++] = default_grn[j];
d411drivers/char/tga.cvc_cons[i].d->vc_palette[k++] = default_blu[j];
d1325drivers/char/tty_io.cchar *c, *d;
d1335drivers/char/tty_io.cd = (char *)(ts->tasks+n);
d1337drivers/char/tty_io.cput_user(*c++, d++);
d78drivers/char/vga.coutb_p (vc_cons[fg_console].d->vc_palette[j++]>>2, dac_val) ;
d79drivers/char/vga.coutb_p (vc_cons[fg_console].d->vc_palette[j++]>>2, dac_val) ;
d80drivers/char/vga.coutb_p (vc_cons[fg_console].d->vc_palette[j++]>>2, dac_val) ;
d559drivers/char/vga.cvc_cons[i].d->vc_palette[k++] = default_red[j];
d560drivers/char/vga.cvc_cons[i].d->vc_palette[k++] = default_grn[j];
d561drivers/char/vga.cvc_cons[i].d->vc_palette[k++] = default_blu[j];
d242drivers/net/net_init.cstruct device *d = dev_base;
d269drivers/net/net_init.cwhile (d->next)
d270drivers/net/net_init.cd = d->next;
d271drivers/net/net_init.cd->next = dev;
d283drivers/net/net_init.cstruct device *d = dev_base;
d310drivers/net/net_init.cwhile(d && (net_alias_nextdev(d) != dev)) /* skip aliases */
d311drivers/net/net_init.cd = net_alias_nextdev(d);
d313drivers/net/net_init.cif (d && (net_alias_nextdev(d) == dev))
d318drivers/net/net_init.cnet_alias_nextdev_set(d, net_alias_nextdev(dev)); 
d325drivers/net/net_init.cwhile (d && (d->next != dev))
d326drivers/net/net_init.cd = d->next;
d328drivers/net/net_init.cif (d && (d->next == dev)) 
d330drivers/net/net_init.cd->next = dev->next;
d2839drivers/net/ppp.c&temp.d);
d100drivers/net/slip.cstatic int slip_esc(unsigned char *p, unsigned char *d, int len);
d103drivers/net/slip.cstatic int slip_esc6(unsigned char *p, unsigned char *d, int len);
d833drivers/net/slip.cslip_esc(unsigned char *s, unsigned char *d, int len)
d835drivers/net/slip.cunsigned char *ptr = d;
d867drivers/net/slip.creturn (ptr - d);
d914drivers/net/slip.cslip_esc6(unsigned char *s, unsigned char *d, int len)
d916drivers/net/slip.cunsigned char *ptr = d;
d948drivers/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;
d491drivers/scsi/pas16.cregister unsigned char  *d = dst;
d498drivers/scsi/pas16.cinsb( reg, d, i );
d324drivers/scsi/t128.cT_DATA_REG_OFFSET), *d = dst;
d335drivers/scsi/t128.c*d++ = *reg;
d111drivers/sound/ad1848.c#define io_Index_Addr(d)  ((d)->base)
d112drivers/sound/ad1848.c#define io_Indexed_Data(d)  ((d)->base+1)
d113drivers/sound/ad1848.c#define io_Status(d)    ((d)->base+2)
d114drivers/sound/ad1848.c#define io_Polled_IO(d)    ((d)->base+3)
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)
d55fs/umsdos/dir.cstruct UMSDOS_DIR_ONCE *d = (struct UMSDOS_DIR_ONCE *)buf;
d56fs/umsdos/dir.cif (d->count == 0){
d63fs/umsdos/dir.cret = d->filldir (d->dirbuf,name,name_len,offset,ino);
d64fs/umsdos/dir.cd->stop = ret < 0;
d65fs/umsdos/dir.cd->count = 1;
d423fs/umsdos/dir.cstruct UMSDOS_DIRENT_K *d = (struct UMSDOS_DIRENT_K *)buf;
d424fs/umsdos/dir.cd->f_pos = offset;
d425fs/umsdos/dir.cd->ino = ino;
d443fs/umsdos/dir.cstruct UMSDOS_DIR_SEARCH *d = (struct UMSDOS_DIR_SEARCH *)buf;
d444fs/umsdos/dir.cif (d->search_ino == ino){
d445fs/umsdos/dir.cd->found = 1;
d446fs/umsdos/dir.cmemcpy (d->entry->name,name,name_len);
d447fs/umsdos/dir.cd->entry->name[name_len] = '\0';
d448fs/umsdos/dir.cd->entry->name_len = name_len;
d38fs/umsdos/ioctl.cstruct UMSDOS_DIR_ONCE *d = (struct UMSDOS_DIR_ONCE *)buf;
d39fs/umsdos/ioctl.cif (d->count == 0){
d40fs/umsdos/ioctl.cmemcpy_tofs (d->ent->d_name,name,name_len);
d41fs/umsdos/ioctl.cput_user ('\0',d->ent->d_name+name_len);
d42fs/umsdos/ioctl.cput_user (name_len,&d->ent->d_reclen);
d43fs/umsdos/ioctl.cput_user (ino,&d->ent->d_ino);
d44fs/umsdos/ioctl.cput_user (offset,&d->ent->d_off);
d45fs/umsdos/ioctl.cd->count = 1;
d41fs/umsdos/rdir.cstruct RDIR_FILLDIR *d = (struct RDIR_FILLDIR*) buf;
d42fs/umsdos/rdir.cif (d->real_root){
d53fs/umsdos/rdir.cret = d->filldir (d->dirbuf,name,name_len,offset,ino);
d57fs/umsdos/rdir.cret = d->filldir (d->dirbuf,name,name_len,offset,ino);
d84include/asm-i386/io.h#define eth_io_copy_and_sum(a,b,c,d)  eth_copy_and_sum((a),(void *)(b),(c),(d))
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)), \
d92include/asm-mips/io.h#define eth_io_copy_and_sum(a,b,c,d)  eth_copy_and_sum((a),(void *)(b),(c),(d))
d1232include/asm-mips/unistd.h#define _syscall4(type,name,atype,a,btype,b,ctype,c,dtype,d) \
d1233include/asm-mips/unistd.htype name (atype a, btype b, ctype c, dtype d) \
d1247include/asm-mips/unistd.h"r" ((long)(d)) \
d1255include/asm-mips/unistd.h#define _syscall5(type,name,atype,a,btype,b,ctype,c,dtype,d,etype,e) \
d1256include/asm-mips/unistd.htype name (atype a,btype b,ctype c,dtype d,etype e) \
d1271include/asm-mips/unistd.h"r" ((long)(d)), \
d133include/asm-sparc/checksum.h#define csum_partial_copy_fromuser(s, d, l, w)  \
d134include/asm-sparc/checksum.hcsum_partial_copy((char *) (s), (d), (l), (w))
d33include/asm-sparc/openprom.hint (*v2_inst2pkg)(int d);  /* Convert ihandle to phandle */
d42include/asm-sparc/openprom.hvoid (*v2_dev_close)(int d);
d43include/asm-sparc/openprom.hint (*v2_dev_read)(int d, char *buf, int nbytes);
d44include/asm-sparc/openprom.hint (*v2_dev_write)(int d, char *buf, int nbytes);
d45include/asm-sparc/openprom.hvoid (*v2_dev_seek)(int d, int hi, int lo);
d135include/asm-sparc/openprom.hunsigned int (*pv_enaddr)(int d, char *enaddr);
d155include/linux/ppp_defs.hstruct compstat  d;  /* packet decompression statistics */
d220include/linux/sbpcd.h#define upc_valid    (D_S[d].diskstate_flags&upc_bit)
d221include/linux/sbpcd.h#define volume_valid    (D_S[d].diskstate_flags&volume_bit)
d222include/linux/sbpcd.h#define toc_valid    (D_S[d].diskstate_flags&toc_bit)
d223include/linux/sbpcd.h#define cd_size_valid    (D_S[d].diskstate_flags&cd_size_bit)
d224include/linux/sbpcd.h#define subq_valid    (D_S[d].diskstate_flags&subq_bit)
d225include/linux/sbpcd.h#define frame_size_valid  (D_S[d].diskstate_flags&frame_size_bit)
d302include/linux/sbpcd.h#define st_door_closed  (D_S[d].status_bits&p_door_closed)
d303include/linux/sbpcd.h#define st_caddy_in  (D_S[d].status_bits&p_caddy_in)
d304include/linux/sbpcd.h#define st_spinning  (D_S[d].status_bits&p_spinning)
d305include/linux/sbpcd.h#define st_check  (D_S[d].status_bits&p_check)
d306include/linux/sbpcd.h#define st_busy    (D_S[d].status_bits&p_busy_new)
d307include/linux/sbpcd.h#define st_door_locked  (D_S[d].status_bits&p_door_locked)
d308include/linux/sbpcd.h#define st_diskok  (D_S[d].status_bits&p_disk_ok)
d350include/linux/sbpcd.h#define fam0_drive  (D_S[d].drv_type&drv_fam0)
d351include/linux/sbpcd.h#define famL_drive  (D_S[d].drv_type&drv_famL)
d352include/linux/sbpcd.h#define famV_drive  (D_S[d].drv_type&drv_famV)
d353include/linux/sbpcd.h#define fam1_drive  (D_S[d].drv_type&drv_fam1)
d354include/linux/sbpcd.h#define fam2_drive  (D_S[d].drv_type&drv_fam2)
d355include/linux/sbpcd.h#define famT_drive  (D_S[d].drv_type&drv_famT)
d356include/linux/sbpcd.h#define fam0L_drive  (D_S[d].drv_type&(drv_fam0|drv_famL))
d357include/linux/sbpcd.h#define fam0V_drive  (D_S[d].drv_type&(drv_fam0|drv_famV))
d358include/linux/sbpcd.h#define famLV_drive  (D_S[d].drv_type&(drv_famL|drv_famV))
d359include/linux/sbpcd.h#define fam0LV_drive  (D_S[d].drv_type&(drv_fam0|drv_famL|drv_famV))
d360include/linux/sbpcd.h#define fam1L_drive  (D_S[d].drv_type&(drv_fam1|drv_famL))
d361include/linux/sbpcd.h#define fam1V_drive  (D_S[d].drv_type&(drv_fam1|drv_famV))
d362include/linux/sbpcd.h#define fam1LV_drive  (D_S[d].drv_type&(drv_fam1|drv_famL|drv_famV))
d363include/linux/sbpcd.h#define fam01_drive  (D_S[d].drv_type&(drv_fam0|drv_fam1))
d364include/linux/sbpcd.h#define fam12_drive  (D_S[d].drv_type&(drv_fam1|drv_fam2))
d365include/linux/sbpcd.h#define fam2T_drive  (D_S[d].drv_type&(drv_fam2|drv_famT))
d39include/linux/smp.h#define smp_message_pass(t,m,d,w)  
d522include/linux/tpqic02.h#define  TP_REWCLOSE(d)  ((MINOR(d)&0x01) == 1)         /* rewind bit */
d24include/net/netlink.h#define ip_netlink_msg(a,b,c,d,e,f,g)
d268lib/inflate.cSTATIC int huft_build(b, n, s, d, e, t, m)
d272lib/inflate.cush *d;                 /* list of base values for non-simple codes */
d453lib/inflate.cr.v.n = d[*p++ - s];
d514lib/inflate.cunsigned n, d;        /* length and index for copy */
d575lib/inflate.cd = w - t->v.n - ((unsigned)b & mask_bits[e]);
d577lib/inflate.cTracevv((stderr,"\\[%d,%d]", w-d, n));
d581lib/inflate.cn -= (e = (e = WSIZE - ((d &= WSIZE-1) > w ? d : w)) > n ? n : e);
d583lib/inflate.cif (w - d >= e)         /* (this test assumes unsigned comparison) */
d585lib/inflate.cmemcpy(slide + w, slide + d, e);
d587lib/inflate.cd += e;
d592lib/inflate.cslide[w++] = slide[d++];
d329net/ax25/ax25_subr.cint d = 0;
d354net/ax25/ax25_subr.cif (d >= AX25_MAX_DIGIS)  return NULL;  /* Max of 6 digis */
d358net/ax25/ax25_subr.cmemcpy(&digi->calls[d], buf, AX25_ADDR_LEN);
d359net/ax25/ax25_subr.cdigi->ndigi = d + 1;
d361net/ax25/ax25_subr.cdigi->repeated[d] = 1;
d362net/ax25/ax25_subr.cdigi->lastrepeat  = d;
d364net/ax25/ax25_subr.cdigi->repeated[d] = 0;
d370net/ax25/ax25_subr.cd++;
d379net/ax25/ax25_subr.cint build_ax25_addr(unsigned char *buf, ax25_address *src, ax25_address *dest, ax25_digi *d, int flag, int modulus)
d408net/ax25/ax25_subr.cif (d == NULL || d->ndigi == 0) {
d416net/ax25/ax25_subr.cwhile (ct < d->ndigi) {
d417net/ax25/ax25_subr.cmemcpy(buf, &d->calls[ct], AX25_ADDR_LEN);
d418net/ax25/ax25_subr.cif (d->repeated[ct])
d59net/ethernet/eth.cstruct device *d = dev_base;
d63net/ethernet/eth.cwhile (d) 
d65net/ethernet/eth.cif (!strcmp(str,d->name)) 
d68net/ethernet/eth.cd->irq=ints[1];
d70net/ethernet/eth.cd->base_addr=ints[2];
d72net/ethernet/eth.cd->mem_start=ints[3];
d74net/ethernet/eth.cd->mem_end=ints[4];
d77net/ethernet/eth.cd=d->next;
d1687net/ipx/af_ipx.cvoid dump_data(char *str,unsigned char *d, int len) {
d1695net/ipx/af_ipx.c*(p++) = h2c[(d[i] >> 4) & 0x0f];
d1696net/ipx/af_ipx.c*(p++) = h2c[d[i] & 0x0f];
d1709net/ipx/af_ipx.c*(p++) = ' '<= d[i] && d[i]<'\177' ? d[i] : '.';
d1713net/ipx/af_ipx.cd += i;