tag | line | file | source code |
d | 24 | arch/alpha/lib/memcpy.c | #define ALIGN_DEST_TO8(d,s,n) \ |
d | 25 | arch/alpha/lib/memcpy.c | while (d & 7) { \ |
d | 28 | arch/alpha/lib/memcpy.c | *(char *) d = *(char *) s; \ |
d | 29 | arch/alpha/lib/memcpy.c | d++; s++; \ |
d | 36 | arch/alpha/lib/memcpy.c | #define DO_REST(d,s,n) \ |
d | 39 | arch/alpha/lib/memcpy.c | *(char *) d = *(char *) s; \ |
d | 40 | arch/alpha/lib/memcpy.c | d++; s++; \ |
d | 47 | arch/alpha/lib/memcpy.c | #define DO_REST_ALIGNED(d,s,n) DO_REST(d,s,n) |
d | 56 | arch/alpha/lib/memcpy.c | static inline void __memcpy_unaligned(unsigned long d, unsigned long s, long n) |
d | 58 | arch/alpha/lib/memcpy.c | ALIGN_DEST_TO8(d,s,n); |
d | 74 | arch/alpha/lib/memcpy.c | *(unsigned long *) d = low_word | tmp; |
d | 75 | arch/alpha/lib/memcpy.c | d += 8; |
d | 80 | arch/alpha/lib/memcpy.c | DO_REST(d,s,n); |
d | 91 | arch/alpha/lib/memcpy.c | static inline void __memcpy_aligned(unsigned long d, unsigned long s, long n) |
d | 93 | arch/alpha/lib/memcpy.c | ALIGN_DEST_TO8(d,s,n); |
d | 100 | arch/alpha/lib/memcpy.c | *(unsigned long *) d = tmp; |
d | 101 | arch/alpha/lib/memcpy.c | d += 8; |
d | 104 | arch/alpha/lib/memcpy.c | DO_REST_ALIGNED(d,s,n); |
d | 27 | arch/i386/boot/compressed/gzip.h | # define memcpy(d, s, n) bcopy((s), (d), (n)) |
d | 99 | arch/i386/boot/compressed/inflate.c | int huft_build(b, n, s, d, e, t, m) |
d | 103 | arch/i386/boot/compressed/inflate.c | ush *d; /* list of base values for non-simple codes */ |
d | 274 | arch/i386/boot/compressed/inflate.c | r.v.n = d[*p++ - s]; |
d | 335 | arch/i386/boot/compressed/inflate.c | unsigned n, d; /* length and index for copy */ |
d | 395 | arch/i386/boot/compressed/inflate.c | d = w - t->v.n - ((unsigned)b & mask_bits[e]); |
d | 400 | arch/i386/boot/compressed/inflate.c | n -= (e = (e = WSIZE - ((d &= WSIZE-1) > w ? d : w)) > n ? n : e); |
d | 402 | arch/i386/boot/compressed/inflate.c | if (w - d >= e) /* (this test assumes unsigned comparison) */ |
d | 404 | arch/i386/boot/compressed/inflate.c | memcpy(slide + w, slide + d, e); |
d | 406 | arch/i386/boot/compressed/inflate.c | d += e; |
d | 411 | arch/i386/boot/compressed/inflate.c | slide[w++] = slide[d++]; |
d | 172 | arch/i386/boot/compressed/misc.c | char *d = (char *)__dest, *s = (char *)__src; |
d | 174 | arch/i386/boot/compressed/misc.c | for (i=0;i<__n;i++) d[i] = s[i]; |
d | 121 | arch/i386/math-emu/fpu_proto.h | extern int reg_store_extended(long double *d, FPU_REG *st0_ptr); |
d | 124 | arch/i386/math-emu/fpu_proto.h | extern int reg_store_int64(long long *d, FPU_REG *st0_ptr); |
d | 125 | arch/i386/math-emu/fpu_proto.h | extern int reg_store_int32(long *d, FPU_REG *st0_ptr); |
d | 126 | arch/i386/math-emu/fpu_proto.h | extern int reg_store_int16(short *d, FPU_REG *st0_ptr); |
d | 127 | arch/i386/math-emu/fpu_proto.h | extern int reg_store_bcd(char *d, FPU_REG *st0_ptr); |
d | 41 | arch/i386/math-emu/reg_ld_str.c | static void write_to_extended(FPU_REG *rp, char *d); |
d | 423 | arch/i386/math-emu/reg_ld_str.c | int reg_store_extended(long double *d, FPU_REG *st0_ptr) |
d | 434 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE, d, 10); |
d | 436 | arch/i386/math-emu/reg_ld_str.c | write_to_extended(st0_ptr, (char *) d); |
d | 447 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE,d,10); |
d | 448 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(0, (unsigned long *) d); |
d | 449 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(0xc0000000, 1 + (unsigned long *) d); |
d | 450 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(0xffff, 4 + (short *) d); |
d | 845 | arch/i386/math-emu/reg_ld_str.c | int reg_store_int64(long long *d, FPU_REG *st0_ptr) |
d | 894 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE,(void *)d,8); |
d | 895 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(((long *)&tll)[0],(unsigned long *) d); |
d | 896 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(((long *)&tll)[1],1 + (unsigned long *) d); |
d | 904 | arch/i386/math-emu/reg_ld_str.c | int reg_store_int32(long *d, FPU_REG *st0_ptr) |
d | 949 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE,d,4); |
d | 950 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(t.sigl, (unsigned long *) d); |
d | 958 | arch/i386/math-emu/reg_ld_str.c | int reg_store_int16(short *d, FPU_REG *st0_ptr) |
d | 1003 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE,d,2); |
d | 1004 | arch/i386/math-emu/reg_ld_str.c | put_fs_word((short)t.sigl,(short *) d); |
d | 1012 | arch/i386/math-emu/reg_ld_str.c | int reg_store_bcd(char *d, FPU_REG *st0_ptr) |
d | 1043 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE,d,10); |
d | 1045 | arch/i386/math-emu/reg_ld_str.c | put_fs_byte(0, (unsigned char *) d+i); /* These bytes "undefined" */ |
d | 1046 | arch/i386/math-emu/reg_ld_str.c | put_fs_byte(0xc0, (unsigned char *) d+7); /* This byte "undefined" */ |
d | 1047 | arch/i386/math-emu/reg_ld_str.c | put_fs_byte(0xff, (unsigned char *) d+8); |
d | 1048 | arch/i386/math-emu/reg_ld_str.c | put_fs_byte(0xff, (unsigned char *) d+9); |
d | 1062 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE,d,10); |
d | 1069 | arch/i386/math-emu/reg_ld_str.c | put_fs_byte(b,(unsigned char *) d+i); |
d | 1073 | arch/i386/math-emu/reg_ld_str.c | put_fs_byte(sign,(unsigned char *) d+9); |
d | 1290 | arch/i386/math-emu/reg_ld_str.c | char *fstenv(fpu_addr_modes addr_modes, char *d) |
d | 1297 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE,d,14); |
d | 1299 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(control_word & ~0xe080, (unsigned short *) d); |
d | 1301 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(control_word, (unsigned short *) d); |
d | 1303 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(status_word(), (unsigned short *) (d+2)); |
d | 1304 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(tag_word(), (unsigned short *) (d+4)); |
d | 1305 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(instruction_address.offset, (unsigned short *) (d+6)); |
d | 1306 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(operand_address.offset, (unsigned short *) (d+0x0a)); |
d | 1310 | arch/i386/math-emu/reg_ld_str.c | (unsigned short *) (d+8)); |
d | 1312 | arch/i386/math-emu/reg_ld_str.c | (unsigned short *) (d+0x0c)); |
d | 1316 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(instruction_address.selector, (unsigned short *) (d+8)); |
d | 1317 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(operand_address.selector, (unsigned short *) (d+0x0c)); |
d | 1320 | arch/i386/math-emu/reg_ld_str.c | d += 0x0e; |
d | 1325 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE,d,28); |
d | 1328 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(0xffff0040 | (control_word & ~0xe080), (unsigned long *) d); |
d | 1329 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(0xffff0000 | status_word(), (unsigned long *) (d+4)); |
d | 1330 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(0xffff0000 | tag_word(), (unsigned long *) (d+8)); |
d | 1332 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(control_word, (unsigned short *) d); |
d | 1333 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(status_word(), (unsigned short *) (d+4)); |
d | 1334 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(tag_word(), (unsigned short *) (d+8)); |
d | 1336 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(instruction_address.offset, (unsigned long *) (d+0x0c)); |
d | 1337 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(instruction_address.selector, (unsigned short *) (d+0x10)); |
d | 1338 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(instruction_address.opcode, (unsigned short *) (d+0x12)); |
d | 1339 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(operand_address.offset, (unsigned long *) (d+0x14)); |
d | 1342 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(operand_address.selector, (unsigned short *) (d+0x18)); |
d | 1343 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(0xffff, (unsigned short *) (d+0x1a)); |
d | 1345 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(operand_address.selector, (unsigned long *) (d+0x18)); |
d | 1348 | arch/i386/math-emu/reg_ld_str.c | d += 0x1c; |
d | 1354 | arch/i386/math-emu/reg_ld_str.c | return d; |
d | 1360 | arch/i386/math-emu/reg_ld_str.c | char *d; |
d | 1363 | arch/i386/math-emu/reg_ld_str.c | d = fstenv(addr_modes, data_address); |
d | 1365 | arch/i386/math-emu/reg_ld_str.c | FPU_verify_area(VERIFY_WRITE,d,80); |
d | 1368 | arch/i386/math-emu/reg_ld_str.c | write_to_extended(®s[(top + i) & 7], d + 10 * i); |
d | 1380 | arch/i386/math-emu/reg_ld_str.c | static void write_to_extended(FPU_REG *rp, char *d) |
d | 1414 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(rp->sigl, (unsigned long *) d); |
d | 1415 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(rp->sigh, (unsigned long *) (d + 4)); |
d | 1430 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(tmp.sigl, (unsigned long *) d); |
d | 1431 | arch/i386/math-emu/reg_ld_str.c | put_fs_long(tmp.sigh, (unsigned long *) (d + 4)); |
d | 1436 | arch/i386/math-emu/reg_ld_str.c | put_fs_word(e, (unsigned short *) (d + 8)); |
d | 1523 | drivers/block/ide-cd.c | char d = c[0]; |
d | 1525 | drivers/block/ide-cd.c | c[1] = d; |
d | 1533 | drivers/block/ide-cd.c | char d = c[0]; |
d | 1535 | drivers/block/ide-cd.c | c[3] = d; |
d | 1536 | drivers/block/ide-cd.c | d = c[1]; |
d | 1538 | drivers/block/ide-cd.c | c[2] = d; |
d | 605 | drivers/cdrom/mcd.c | char a, b, c, d; |
d | 610 | drivers/cdrom/mcd.c | getValue(&d); |
d | 574 | drivers/cdrom/sbpcd.c | static int d=0; /* DriveStruct index: drive number */ |
d | 701 | drivers/cdrom/sbpcd.c | sprintf(buf, "%s-%d [%02d]: ", major_name, d, msgnum); |
d | 887 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=0xFF; |
d | 1058 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=0; |
d | 1059 | drivers/cdrom/sbpcd.c | if (fam1_drive) D_S[d].status_bits=st|p_success; |
d | 1062 | drivers/cdrom/sbpcd.c | if (st&p_caddin_old) D_S[d].status_bits |= p_door_closed|p_caddy_in; |
d | 1063 | drivers/cdrom/sbpcd.c | if (st&p_spinning) D_S[d].status_bits |= p_spinning; |
d | 1064 | drivers/cdrom/sbpcd.c | if (st&p_check) D_S[d].status_bits |= p_check; |
d | 1065 | drivers/cdrom/sbpcd.c | if (st&p_success_old) D_S[d].status_bits |= p_success; |
d | 1066 | drivers/cdrom/sbpcd.c | if (st&p_busy_old) D_S[d].status_bits |= p_busy_new; |
d | 1067 | drivers/cdrom/sbpcd.c | if (st&p_disk_ok) D_S[d].status_bits |= p_disk_ok; |
d | 1071 | drivers/cdrom/sbpcd.c | D_S[d].status_bits |= p_success; |
d | 1072 | drivers/cdrom/sbpcd.c | if (st&p_caddin_old) D_S[d].status_bits |= p_disk_ok|p_caddy_in; |
d | 1073 | drivers/cdrom/sbpcd.c | if (st&p_spinning) D_S[d].status_bits |= p_spinning; |
d | 1074 | drivers/cdrom/sbpcd.c | if (st&p_check) D_S[d].status_bits |= p_check; |
d | 1075 | drivers/cdrom/sbpcd.c | if (st&p_busy_old) D_S[d].status_bits |= p_busy_new; |
d | 1076 | drivers/cdrom/sbpcd.c | if (st&p_lcs_door_closed) D_S[d].status_bits |= p_door_closed; |
d | 1077 | drivers/cdrom/sbpcd.c | if (st&p_lcs_door_locked) D_S[d].status_bits |= p_door_locked; |
d | 1081 | drivers/cdrom/sbpcd.c | D_S[d].status_bits |= p_success; |
d | 1082 | drivers/cdrom/sbpcd.c | if (st&p2_check) D_S[d].status_bits |= p1_check; |
d | 1083 | drivers/cdrom/sbpcd.c | if (st&p2_door_closed) D_S[d].status_bits |= p1_door_closed; |
d | 1084 | drivers/cdrom/sbpcd.c | if (st&p2_disk_in) D_S[d].status_bits |= p1_disk_in; |
d | 1085 | drivers/cdrom/sbpcd.c | if (st&p2_busy1) D_S[d].status_bits |= p1_busy; |
d | 1086 | drivers/cdrom/sbpcd.c | if (st&p2_busy2) D_S[d].status_bits |= p1_busy; |
d | 1087 | drivers/cdrom/sbpcd.c | if (st&p2_spinning) D_S[d].status_bits |= p1_spinning; |
d | 1088 | drivers/cdrom/sbpcd.c | if (st&p2_door_locked) D_S[d].status_bits |= p1_door_locked; |
d | 1089 | drivers/cdrom/sbpcd.c | if (st&p2_disk_ok) D_S[d].status_bits |= p1_disk_ok; |
d | 1094 | drivers/cdrom/sbpcd.c | D_S[d].status_bits |= p_success; |
d | 1095 | drivers/cdrom/sbpcd.c | if (st&p2_check) D_S[d].status_bits |= p1_check; |
d | 1096 | drivers/cdrom/sbpcd.c | if (st&p2_door_closed) D_S[d].status_bits |= p1_door_closed; |
d | 1097 | drivers/cdrom/sbpcd.c | if (st&p2_disk_in) D_S[d].status_bits |= p1_disk_in; |
d | 1098 | drivers/cdrom/sbpcd.c | if (st&p2_busy1) D_S[d].status_bits |= p1_busy; |
d | 1099 | drivers/cdrom/sbpcd.c | if (st&p2_busy2) D_S[d].status_bits |= p1_busy; |
d | 1100 | drivers/cdrom/sbpcd.c | if (st&p2_spinning) D_S[d].status_bits |= p1_spinning; |
d | 1101 | drivers/cdrom/sbpcd.c | if (st&p2_door_locked) D_S[d].status_bits |= p1_door_locked; |
d | 1102 | drivers/cdrom/sbpcd.c | if (st&p2_disk_ok) D_S[d].status_bits |= p1_disk_ok; |
d | 1115 | drivers/cdrom/sbpcd.c | D_S[d].n_bytes=1; |
d | 1126 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=p1_door_closed|p1_disk_in|p1_spinning|p1_disk_ok; |
d | 1127 | drivers/cdrom/sbpcd.c | else if (D_S[d].error_state==6) |
d | 1129 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=p1_door_closed|p1_disk_in; |
d | 1130 | drivers/cdrom/sbpcd.c | else if ((D_S[d].error_state!=2)||(D_S[d].b3!=0x3A)||(D_S[d].b4==0x00)) |
d | 1133 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=p1_door_closed; |
d | 1134 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
d | 1136 | drivers/cdrom/sbpcd.c | else if (D_S[d].b4==0x01) |
d | 1139 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=0; |
d | 1140 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
d | 1145 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=p1_door_closed; |
d | 1146 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
d | 1148 | drivers/cdrom/sbpcd.c | msg(DBG_TE2,"get_state_T done (%02X)...\n", D_S[d].status_bits); |
d | 1149 | drivers/cdrom/sbpcd.c | return (D_S[d].status_bits); |
d | 1197 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=0; |
d | 1206 | drivers/cdrom/sbpcd.c | msg(DBG_STA,"status_bits=%02X, i=%02X\n",D_S[d].status_bits,i); |
d | 1208 | drivers/cdrom/sbpcd.c | return (D_S[d].status_bits); |
d | 1261 | drivers/cdrom/sbpcd.c | D_S[d].error_byte=0; |
d | 1266 | drivers/cdrom/sbpcd.c | D_S[d].error_byte=infobuf[i]; |
d | 1267 | drivers/cdrom/sbpcd.c | msg(DBG_ERR,"cc_ReadError: infobuf[%d] is %d (%02X)\n",i,D_S[d].error_byte,D_S[d].error_byte); |
d | 1280 | drivers/cdrom/sbpcd.c | D_S[d].error_state=0; |
d | 1281 | drivers/cdrom/sbpcd.c | D_S[d].b3=0; |
d | 1282 | drivers/cdrom/sbpcd.c | D_S[d].b4=0; |
d | 1283 | drivers/cdrom/sbpcd.c | D_S[d].f_drv_error=0; |
d | 1289 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
d | 1368 | drivers/cdrom/sbpcd.c | D_S[d].error_state=infobuf[2]; |
d | 1369 | drivers/cdrom/sbpcd.c | D_S[d].b3=infobuf[3]; |
d | 1370 | drivers/cdrom/sbpcd.c | D_S[d].b4=infobuf[4]; |
d | 1371 | drivers/cdrom/sbpcd.c | if (D_S[d].f_drv_error) |
d | 1373 | drivers/cdrom/sbpcd.c | D_S[d].f_drv_error=0; |
d | 1375 | drivers/cdrom/sbpcd.c | D_S[d].error_state=2; |
d | 1377 | drivers/cdrom/sbpcd.c | return (-D_S[d].error_state-400); |
d | 1384 | drivers/cdrom/sbpcd.c | D_S[d].f_drv_error=1; |
d | 1386 | drivers/cdrom/sbpcd.c | D_S[d].error_state=2; |
d | 1418 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to CDi_stat_loop.\n"); |
d | 1427 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cc_ReadStatus.\n"); |
d | 1433 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to ResponseStatus.\n"); |
d | 1449 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cc_ReadError.\n"); |
d | 1451 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cmd_out OK.\n"); |
d | 1502 | drivers/cdrom/sbpcd.c | D_S[d].n_bytes=1; |
d | 1514 | drivers/cdrom/sbpcd.c | D_S[d].in_SpinUp = 1; |
d | 1540 | drivers/cdrom/sbpcd.c | D_S[d].in_SpinUp = 0; |
d | 1596 | drivers/cdrom/sbpcd.c | drvcmd[1]=D_S[d].speed_byte; |
d | 1597 | drivers/cdrom/sbpcd.c | drvcmd[2]=D_S[d].frmsiz>>8; |
d | 1598 | drivers/cdrom/sbpcd.c | drvcmd[3]=D_S[d].frmsiz&0x0FF; |
d | 1599 | drivers/cdrom/sbpcd.c | drvcmd[4]=D_S[d].f_XA; /* 1: XA */ |
d | 1600 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].type_byte; /* 0, 1, 3 */ |
d | 1601 | drivers/cdrom/sbpcd.c | drvcmd[6]=D_S[d].mode_xb_6; |
d | 1602 | drivers/cdrom/sbpcd.c | drvcmd[7]=D_S[d].mode_yb_7|D_S[d].volume_control; |
d | 1603 | drivers/cdrom/sbpcd.c | drvcmd[8]=D_S[d].mode_xb_8; |
d | 1604 | drivers/cdrom/sbpcd.c | drvcmd[9]=D_S[d].delay; |
d | 1619 | drivers/cdrom/sbpcd.c | D_S[d].speed_byte=0x02; /* 0x02: auto quad, 0x82: quad, 0x81: double, 0x80: single */ |
d | 1620 | drivers/cdrom/sbpcd.c | D_S[d].frmsiz=make16(infobuf[2],infobuf[3]); |
d | 1621 | drivers/cdrom/sbpcd.c | D_S[d].f_XA=infobuf[4]; |
d | 1622 | drivers/cdrom/sbpcd.c | if (D_S[d].f_XA==0) D_S[d].type_byte=0; |
d | 1623 | drivers/cdrom/sbpcd.c | else D_S[d].type_byte=1; |
d | 1624 | drivers/cdrom/sbpcd.c | D_S[d].mode_xb_6=infobuf[6]; |
d | 1625 | drivers/cdrom/sbpcd.c | D_S[d].mode_yb_7=1; |
d | 1626 | drivers/cdrom/sbpcd.c | D_S[d].mode_xb_8=infobuf[8]; |
d | 1627 | drivers/cdrom/sbpcd.c | D_S[d].delay=0; /* 0, 1, 2, 3 */ |
d | 1682 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~volume_bit; |
d | 1684 | drivers/cdrom/sbpcd.c | channel0=D_S[d].vol_chan0; |
d | 1685 | drivers/cdrom/sbpcd.c | volume0=D_S[d].vol_ctrl0; |
d | 1686 | drivers/cdrom/sbpcd.c | channel1=control1=D_S[d].vol_chan1; |
d | 1687 | drivers/cdrom/sbpcd.c | volume1=value1=D_S[d].vol_ctrl1; |
d | 1690 | drivers/cdrom/sbpcd.c | if (((D_S[d].drv_options&audio_mono)!=0)&&(D_S[d].drv_type>=drv_211)) |
d | 1759 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_300) |
d | 1771 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type<drv_211) |
d | 1804 | drivers/cdrom/sbpcd.c | else if (D_S[d].drv_type<drv_201) volume0=volume1=value0; |
d | 1806 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_201) |
d | 1811 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_211) |
d | 1825 | drivers/cdrom/sbpcd.c | D_S[d].volume_control=0; |
d | 1826 | drivers/cdrom/sbpcd.c | if (!volume0) D_S[d].volume_control|=0x10; |
d | 1827 | drivers/cdrom/sbpcd.c | if (!volume1) D_S[d].volume_control|=0x20; |
d | 1837 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= volume_bit; |
d | 1877 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
d | 1894 | drivers/cdrom/sbpcd.c | if (D_S[d].error_byte!=aud_12) return -501; |
d | 1902 | drivers/cdrom/sbpcd.c | if (!(D_S[d].drv_options&(speed_auto|speed_300|speed_150))) return (0); |
d | 1904 | drivers/cdrom/sbpcd.c | if (!(D_S[d].drv_options&speed_auto)) |
d | 1907 | drivers/cdrom/sbpcd.c | if (!(D_S[d].drv_options&speed_300)) speed=0; |
d | 1928 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=1; |
d | 1942 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state==audio_playing) return (-EINVAL); |
d | 2027 | drivers/cdrom/sbpcd.c | if (pau_res==3) return (cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end)); |
d | 2040 | drivers/cdrom/sbpcd.c | msg(DBG_LCK,"cc_LockDoor: %d (drive %d)\n", lock, d); |
d | 2125 | drivers/cdrom/sbpcd.c | msg(DBG_LCK,"cc_CloseTray (drive %d)\n", d); |
d | 2162 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~subq_bit; |
d | 2211 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_ctl_adr=D_S[d].SubQ_trk=D_S[d].SubQ_pnt_idx=D_S[d].SubQ_whatisthis=0; |
d | 2212 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_run_tot=D_S[d].SubQ_run_trk=0; |
d | 2216 | drivers/cdrom/sbpcd.c | if (famT_drive) D_S[d].SubQ_ctl_adr=infobuf[1]; |
d | 2217 | drivers/cdrom/sbpcd.c | else D_S[d].SubQ_ctl_adr=swap_nibbles(infobuf[1]); |
d | 2218 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_trk=byt2bcd(infobuf[2]); |
d | 2219 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_pnt_idx=byt2bcd(infobuf[3]); |
d | 2223 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_run_tot=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ |
d | 2228 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_run_trk=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ |
d | 2229 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_whatisthis=infobuf[i+3]; |
d | 2230 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= subq_bit; |
d | 2239 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~frame_size_bit; |
d | 2263 | drivers/cdrom/sbpcd.c | D_S[d].sense_byte=0; |
d | 2264 | drivers/cdrom/sbpcd.c | if (fam1_drive) D_S[d].sense_byte=infobuf[i++]; |
d | 2267 | drivers/cdrom/sbpcd.c | if (infobuf[4]==0x01) D_S[d].xa_byte=0x20; |
d | 2268 | drivers/cdrom/sbpcd.c | else D_S[d].xa_byte=0; |
d | 2271 | drivers/cdrom/sbpcd.c | D_S[d].frame_size=make16(infobuf[i],infobuf[i+1]); |
d | 2277 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= frame_size_bit; |
d | 2287 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~frame_size_bit; |
d | 2289 | drivers/cdrom/sbpcd.c | D_S[d].frame_size=framesize; |
d | 2290 | drivers/cdrom/sbpcd.c | if (framesize==CD_FRAMESIZE_RAW) D_S[d].sense_byte=0x82; |
d | 2291 | drivers/cdrom/sbpcd.c | else D_S[d].sense_byte=0x00; |
d | 2294 | drivers/cdrom/sbpcd.c | D_S[d].sense_byte, D_S[d].frame_size); |
d | 2300 | drivers/cdrom/sbpcd.c | drvcmd[2]=D_S[d].sense_byte; |
d | 2301 | drivers/cdrom/sbpcd.c | drvcmd[3]=(D_S[d].frame_size>>8)&0xFF; |
d | 2302 | drivers/cdrom/sbpcd.c | drvcmd[4]=D_S[d].frame_size&0xFF; |
d | 2309 | drivers/cdrom/sbpcd.c | drvcmd[2]=(D_S[d].frame_size>>8)&0xFF; |
d | 2310 | drivers/cdrom/sbpcd.c | drvcmd[3]=D_S[d].frame_size&0xFF; |
d | 2324 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= frame_size_bit; |
d | 2337 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~volume_bit; |
d | 2413 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_201) |
d | 2415 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type<drv_300) |
d | 2420 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_211) |
d | 2440 | drivers/cdrom/sbpcd.c | D_S[d].volume_control=infobuf[7]; |
d | 2443 | drivers/cdrom/sbpcd.c | if (D_S[d].volume_control&0x10) vol0=0; |
d | 2445 | drivers/cdrom/sbpcd.c | if (D_S[d].volume_control&0x20) vol1=0; |
d | 2448 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan0=chan0; |
d | 2449 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl0=vol0; |
d | 2450 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan1=chan1; |
d | 2451 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl1=vol1; |
d | 2453 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan2=2; |
d | 2454 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl2=0xFF; |
d | 2455 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan3=3; |
d | 2456 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl3=0xFF; |
d | 2458 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= volume_bit; |
d | 2468 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~cd_size_bit; |
d | 2496 | drivers/cdrom/sbpcd.c | if (fam1_drive) D_S[d].CDsize_frm=msf2blk(make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])))+CD_MSF_OFFSET; |
d | 2497 | drivers/cdrom/sbpcd.c | else if (fam0_drive) D_S[d].CDsize_frm=make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])); |
d | 2498 | drivers/cdrom/sbpcd.c | else if (fam2_drive) D_S[d].CDsize_frm=make32(make16(infobuf[0],infobuf[1]),make16(infobuf[2],infobuf[3])); |
d | 2499 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= cd_size_bit; |
d | 2500 | drivers/cdrom/sbpcd.c | msg(DBG_000,"cc_ReadCapacity: %d frames.\n", D_S[d].CDsize_frm); |
d | 2508 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~toc_bit; |
d | 2528 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=0; |
d | 2538 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=0; |
d | 2549 | drivers/cdrom/sbpcd.c | D_S[d].xa_byte=infobuf[0]; |
d | 2552 | drivers/cdrom/sbpcd.c | D_S[d].first_session=infobuf[1]; |
d | 2553 | drivers/cdrom/sbpcd.c | D_S[d].last_session=infobuf[2]; |
d | 2554 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track=infobuf[3]; |
d | 2555 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track=infobuf[4]; |
d | 2556 | drivers/cdrom/sbpcd.c | if (D_S[d].first_session!=D_S[d].last_session) |
d | 2558 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=1; |
d | 2559 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7]))); |
d | 2562 | drivers/cdrom/sbpcd.c | if (D_S[d].first_session!=D_S[d].last_session) |
d | 2564 | drivers/cdrom/sbpcd.c | if (D_S[d].last_session<=20) |
d | 2565 | drivers/cdrom/sbpcd.c | zwanzig=D_S[d].last_session+1; |
d | 2567 | drivers/cdrom/sbpcd.c | for (count=D_S[d].first_session;count<zwanzig;count++) |
d | 2577 | drivers/cdrom/sbpcd.c | D_S[d].msf_multi_n[count]=make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7])); |
d | 2579 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= multisession_bit; |
d | 2590 | drivers/cdrom/sbpcd.c | D_S[d].size_msf=make32(make16(0,infobuf[2]),make16(infobuf[3],infobuf[4])); |
d | 2591 | drivers/cdrom/sbpcd.c | D_S[d].size_blk=msf2blk(D_S[d].size_msf); |
d | 2595 | drivers/cdrom/sbpcd.c | D_S[d].size_msf=make32(make16(infobuf[8],infobuf[9]),make16(infobuf[10],infobuf[11])); |
d | 2596 | drivers/cdrom/sbpcd.c | D_S[d].size_blk=msf2blk(D_S[d].size_msf); |
d | 2597 | drivers/cdrom/sbpcd.c | D_S[d].CDsize_frm=D_S[d].size_blk+1; |
d | 2598 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track=infobuf[2]; |
d | 2599 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track=infobuf[3]; |
d | 2603 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track=infobuf[1]; |
d | 2604 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track=infobuf[2]; |
d | 2605 | drivers/cdrom/sbpcd.c | D_S[d].size_msf=make32(make16(0,infobuf[3]),make16(infobuf[4],infobuf[5])); |
d | 2606 | drivers/cdrom/sbpcd.c | D_S[d].size_blk=msf2blk(D_S[d].size_msf); |
d | 2607 | drivers/cdrom/sbpcd.c | if (famL_drive) D_S[d].CDsize_frm=D_S[d].size_blk+1; |
d | 2609 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= toc_bit; |
d | 2611 | drivers/cdrom/sbpcd.c | D_S[d].xa_byte, |
d | 2612 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track, |
d | 2613 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track, |
d | 2614 | drivers/cdrom/sbpcd.c | D_S[d].size_msf); |
d | 2663 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_nixbyte=infobuf[0]; |
d | 2671 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]); |
d | 2674 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_number=infobuf[i++]; |
d | 2675 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_format=infobuf[i]; |
d | 2677 | drivers/cdrom/sbpcd.c | else D_S[d].TocEnt_number=num; |
d | 2682 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_address=make32(make16(0,infobuf[i]), |
d | 2685 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_nixbyte, D_S[d].TocEnt_ctl_adr, |
d | 2686 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_number, D_S[d].TocEnt_format, |
d | 2687 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_address); |
d | 2718 | drivers/cdrom/sbpcd.c | if (fam1_drive) D_S[d].UPC_buf[i]=swap_nibbles(*p++); |
d | 2721 | drivers/cdrom/sbpcd.c | D_S[d].UPC_buf[i]=((*p++)<<4)&0xFF; |
d | 2722 | drivers/cdrom/sbpcd.c | D_S[d].UPC_buf[i] |= *p++; |
d | 2733 | drivers/cdrom/sbpcd.c | D_S[d].UPC_buf[6] &= 0xF0; |
d | 2750 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~upc_bit; |
d | 2819 | drivers/cdrom/sbpcd.c | D_S[d].UPC_ctl_adr=0; |
d | 2825 | drivers/cdrom/sbpcd.c | D_S[d].UPC_ctl_adr = (D_S[d].TocEnt_ctl_adr & 0xF0) | 0x02; |
d | 2828 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", D_S[d].UPC_buf[i]); |
d | 2829 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " (%02X)", D_S[d].UPC_ctl_adr); |
d | 2832 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= upc_bit; |
d | 2841 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=0; |
d | 2842 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=0; |
d | 2854 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=1; |
d | 2855 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[1]), |
d | 2868 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]), |
d | 2881 | drivers/cdrom/sbpcd.c | D_S[d].first_session=infobuf[2]; |
d | 2882 | drivers/cdrom/sbpcd.c | D_S[d].last_session=infobuf[3]; |
d | 2883 | drivers/cdrom/sbpcd.c | D_S[d].track_of_last_session=infobuf[6]; |
d | 2884 | drivers/cdrom/sbpcd.c | if (D_S[d].first_session!=D_S[d].last_session) |
d | 2886 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=1; |
d | 2887 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[9]),make16(infobuf[10],infobuf[11]))); |
d | 2893 | drivers/cdrom/sbpcd.c | msg(DBG_MUL,"MultiSession Info:%s (%d)\n", msgbuf, D_S[d].lba_multi); |
d | 2894 | drivers/cdrom/sbpcd.c | if (D_S[d].lba_multi>200) |
d | 2896 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=1; |
d | 2897 | drivers/cdrom/sbpcd.c | msg(DBG_MUL,"MultiSession base: %06X\n", D_S[d].lba_multi); |
d | 2914 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state!=audio_playing) return (-ENODATA); |
d | 2925 | drivers/cdrom/sbpcd.c | D_S[d].frame_size=CD_FRAMESIZE_SUB; |
d | 3008 | drivers/cdrom/sbpcd.c | CDo_command, type, D_S[d].drive_model, D_S[d].drv_id); |
d | 3025 | drivers/cdrom/sbpcd.c | msg(DBG_TE2,"check_version: id=%d, d=%d.\n", D_S[d].drv_id, d); |
d | 3026 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=0; |
d | 3063 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[0]='C'; |
d | 3064 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[1]='R'; |
d | 3065 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[2]='-'; |
d | 3066 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[3]='5'; |
d | 3067 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[4]=infobuf[i++]; |
d | 3068 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]=infobuf[i++]; |
d | 3069 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[6]=0; |
d | 3070 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_fam1; |
d | 3072 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
d | 3077 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[0]='C'; |
d | 3078 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[1]='R'; |
d | 3079 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[2]='-'; |
d | 3080 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[3]='5'; |
d | 3081 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[4]='2'; |
d | 3082 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]='x'; |
d | 3083 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[6]=0; |
d | 3084 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_fam0; |
d | 3087 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
d | 3093 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[j]=infobuf[j]; |
d | 3094 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[8]=0; |
d | 3095 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_famL; |
d | 3098 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
d | 3115 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
d | 3141 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[0]='C'; |
d | 3142 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[1]='D'; |
d | 3143 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[2]='2'; |
d | 3144 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[3]='0'; |
d | 3145 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[4]='0'; |
d | 3146 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]=infobuf[i++]; |
d | 3147 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[6]=infobuf[i++]; |
d | 3148 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[7]=0; |
d | 3149 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_fam2; |
d | 3153 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
d | 3157 | drivers/cdrom/sbpcd.c | for (j=1;j<=((D_S[d].drv_id==0)?3:1);j++) |
d | 3159 | drivers/cdrom/sbpcd.c | for (l=1;l<=((D_S[d].drv_id==0)?10:1);l++) |
d | 3165 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
d | 3171 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
d | 3198 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[0]='C'; |
d | 3199 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[1]='D'; |
d | 3200 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[2]='-'; |
d | 3201 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[3]='5'; |
d | 3202 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[4]='5'; |
d | 3203 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]=0; |
d | 3204 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_famT; |
d | 3208 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
d | 3210 | drivers/cdrom/sbpcd.c | msg(DBG_TEA,"no drive found at address %03X under ID %d.\n",CDo_command,D_S[d].drv_id); |
d | 3213 | drivers/cdrom/sbpcd.c | for (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j]; |
d | 3220 | drivers/cdrom/sbpcd.c | if (D_S[d].firmware_version[j]!=lcs_firm_e1[j]) break; |
d | 3221 | drivers/cdrom/sbpcd.c | if (j==4) D_S[d].drv_type=drv_e1; |
d | 3224 | drivers/cdrom/sbpcd.c | if (D_S[d].firmware_version[j]!=lcs_firm_f4[j]) break; |
d | 3225 | drivers/cdrom/sbpcd.c | if (j==4) D_S[d].drv_type=drv_f4; |
d | 3227 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type==drv_famL) ask_mail(); |
d | 3234 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[0]=infobuf[7]; |
d | 3235 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[1]=infobuf[8]; |
d | 3236 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[2]=infobuf[10]; |
d | 3237 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[3]=infobuf[11]; |
d | 3242 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[0]='0'; |
d | 3243 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[1]='.'; |
d | 3244 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[2]='0'+(j>>4); |
d | 3245 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[3]='0'+(j&0x0f); |
d | 3250 | drivers/cdrom/sbpcd.c | j = (D_S[d].firmware_version[0] & 0x0F) * 100 + |
d | 3251 | drivers/cdrom/sbpcd.c | (D_S[d].firmware_version[2] & 0x0F) *10 + |
d | 3252 | drivers/cdrom/sbpcd.c | (D_S[d].firmware_version[3] & 0x0F); |
d | 3255 | drivers/cdrom/sbpcd.c | if (j<200) D_S[d].drv_type=drv_199; |
d | 3256 | drivers/cdrom/sbpcd.c | else if (j<201) D_S[d].drv_type=drv_200; |
d | 3257 | drivers/cdrom/sbpcd.c | else if (j<210) D_S[d].drv_type=drv_201; |
d | 3258 | drivers/cdrom/sbpcd.c | else if (j<211) D_S[d].drv_type=drv_210; |
d | 3259 | drivers/cdrom/sbpcd.c | else if (j<300) D_S[d].drv_type=drv_211; |
d | 3260 | drivers/cdrom/sbpcd.c | else if (j>=300) D_S[d].drv_type=drv_300; |
d | 3264 | drivers/cdrom/sbpcd.c | if (j<100) D_S[d].drv_type=drv_099; |
d | 3267 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_100; |
d | 3273 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"new drive CD200 (%s)detected.\n", D_S[d].firmware_version); |
d | 3278 | drivers/cdrom/sbpcd.c | msg(DBG_LCS,"drive type %02X\n",D_S[d].drv_type); |
d | 3285 | drivers/cdrom/sbpcd.c | d=i; |
d | 3286 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
d | 3287 | drivers/cdrom/sbpcd.c | msg(DBG_DID,"drive %d (ID=%d) activated.\n", i, D_S[d].drv_id); |
d | 3417 | drivers/cdrom/sbpcd.c | D_S[d].drv_options=drv_pattern[j]; |
d | 3418 | drivers/cdrom/sbpcd.c | if (fam0L_drive) D_S[d].drv_options&=~(speed_auto|speed_300|speed_150); |
d | 3420 | drivers/cdrom/sbpcd.c | d, |
d | 3421 | drivers/cdrom/sbpcd.c | D_S[d].drv_id, |
d | 3422 | drivers/cdrom/sbpcd.c | D_S[d].drive_model, |
d | 3423 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version, |
d | 3559 | drivers/cdrom/sbpcd.c | i=msf2blk(D_S[d].pos_audio_end)-1; |
d | 3569 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~toc_bit; |
d | 3570 | drivers/cdrom/sbpcd.c | D_S[d].ored_ctl_adr=0; |
d | 3571 | drivers/cdrom/sbpcd.c | for (j=D_S[d].n_first_track;j<=D_S[d].n_last_track;j++) |
d | 3579 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].nixbyte=D_S[d].TocEnt_nixbyte; |
d | 3580 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].ctl_adr=D_S[d].TocEnt_ctl_adr; |
d | 3581 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].number=D_S[d].TocEnt_number; |
d | 3582 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].format=D_S[d].TocEnt_format; |
d | 3583 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].address=D_S[d].TocEnt_address; |
d | 3584 | drivers/cdrom/sbpcd.c | D_S[d].ored_ctl_adr |= D_S[d].TocEnt_ctl_adr; |
d | 3587 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].nixbyte=0; |
d | 3588 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].ctl_adr=0; |
d | 3589 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].number=CDROM_LEADOUT; |
d | 3590 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].format=0; |
d | 3591 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].address=D_S[d].size_msf; |
d | 3593 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= toc_bit; |
d | 3601 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_M1; |
d | 3646 | drivers/cdrom/sbpcd.c | if (D_S[d].f_multisession) D_S[d].sbp_bufsiz=1; /* possibly a weird PhotoCD */ |
d | 3647 | drivers/cdrom/sbpcd.c | else D_S[d].sbp_bufsiz=SBP_BUFFER_FRAMES; |
d | 3648 | drivers/cdrom/sbpcd.c | i=cc_ReadTocEntry(D_S[d].n_first_track); |
d | 3656 | drivers/cdrom/sbpcd.c | if ((fam0L_drive) && (D_S[d].xa_byte==0x20)) |
d | 3684 | drivers/cdrom/sbpcd.c | if (D_S[d].CD_changed==0xFF) |
d | 3686 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags=0; |
d | 3687 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 3698 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=1; |
d | 3707 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags=0; |
d | 3708 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 3716 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state!=audio_pausing) |
d | 3724 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state==audio_playing) seek_pos_audio_end(); |
d | 3725 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 3732 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags=0; |
d | 3733 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 3809 | drivers/cdrom/sbpcd.c | if (d!=i) switch_drive(i); |
d | 3836 | drivers/cdrom/sbpcd.c | switch (D_S[d].audio_state) |
d | 3845 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start=D_S[d].SubQ_run_tot; |
d | 3846 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=audio_pausing; |
d | 3849 | drivers/cdrom/sbpcd.c | i=cc_Seek(D_S[d].pos_audio_start,1); |
d | 3861 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state!=audio_pausing) return -EINVAL; |
d | 3863 | drivers/cdrom/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start, |
d | 3864 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_end); |
d | 3867 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=audio_playing; |
d | 3872 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state==audio_playing) |
d | 3878 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start=D_S[d].SubQ_run_tot; |
d | 3879 | drivers/cdrom/sbpcd.c | i=cc_Seek(D_S[d].pos_audio_start,1); |
d | 3885 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start = (msf.cdmsf_min0<<16) | |
d | 3888 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_end = (msf.cdmsf_min1<<16) | |
d | 3892 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
d | 3893 | drivers/cdrom/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
d | 3898 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=audio_playing; |
d | 3903 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state==audio_playing) |
d | 3918 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk0<D_S[d].n_first_track) return (-EINVAL); |
d | 3919 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk0>D_S[d].n_last_track) return (-EINVAL); |
d | 3921 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk1>D_S[d].n_last_track) ti.cdti_trk1=D_S[d].n_last_track; |
d | 3922 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start=D_S[d].TocBuffer[ti.cdti_trk0].address; |
d | 3923 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_end=D_S[d].TocBuffer[ti.cdti_trk1+1].address; |
d | 3924 | drivers/cdrom/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
d | 3928 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=audio_playing; |
d | 3933 | drivers/cdrom/sbpcd.c | tochdr.cdth_trk0=D_S[d].n_first_track; |
d | 3934 | drivers/cdrom/sbpcd.c | tochdr.cdth_trk1=D_S[d].n_last_track; |
d | 3946 | drivers/cdrom/sbpcd.c | if (i==CDROM_LEADOUT) i=D_S[d].n_last_track+1; |
d | 3947 | drivers/cdrom/sbpcd.c | else if (i<D_S[d].n_first_track||i>D_S[d].n_last_track) return (-EINVAL); |
d | 3948 | drivers/cdrom/sbpcd.c | tocentry.cdte_adr=D_S[d].TocBuffer[i].ctl_adr&0x0F; |
d | 3949 | drivers/cdrom/sbpcd.c | tocentry.cdte_ctrl=(D_S[d].TocBuffer[i].ctl_adr>>4)&0x0F; |
d | 3950 | drivers/cdrom/sbpcd.c | tocentry.cdte_datamode=D_S[d].TocBuffer[i].format; |
d | 3953 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.msf.minute=(D_S[d].TocBuffer[i].address>>16)&0x00FF; |
d | 3954 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.msf.second=(D_S[d].TocBuffer[i].address>>8)&0x00FF; |
d | 3955 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.msf.frame=D_S[d].TocBuffer[i].address&0x00FF; |
d | 3958 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.lba=msf2blk(D_S[d].TocBuffer[i].address); |
d | 3968 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 3974 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 3980 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 3986 | drivers/cdrom/sbpcd.c | if (D_S[d].open_count>1) return (-EBUSY); |
d | 3988 | drivers/cdrom/sbpcd.c | D_S[d].open_count=-9; /* to get it locked next time again */ |
d | 3993 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=0xFF; |
d | 3994 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags=0; |
d | 3995 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 4001 | drivers/cdrom/sbpcd.c | D_S[d].f_eject=arg; |
d | 4009 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan0=0; |
d | 4010 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl0=volctrl.channel0; |
d | 4011 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan1=1; |
d | 4012 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl1=volctrl.channel1; |
d | 4022 | drivers/cdrom/sbpcd.c | volctrl.channel0=D_S[d].vol_ctrl0; |
d | 4023 | drivers/cdrom/sbpcd.c | volctrl.channel1=D_S[d].vol_ctrl1; |
d | 4039 | drivers/cdrom/sbpcd.c | switch (D_S[d].audio_state) |
d | 4051 | drivers/cdrom/sbpcd.c | SC.cdsc_adr=D_S[d].SubQ_ctl_adr; |
d | 4052 | drivers/cdrom/sbpcd.c | SC.cdsc_ctrl=D_S[d].SubQ_ctl_adr>>4; |
d | 4053 | drivers/cdrom/sbpcd.c | SC.cdsc_trk=bcd2bin(D_S[d].SubQ_trk); |
d | 4054 | drivers/cdrom/sbpcd.c | SC.cdsc_ind=bcd2bin(D_S[d].SubQ_pnt_idx); |
d | 4057 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.lba=msf2blk(D_S[d].SubQ_run_tot); |
d | 4058 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.lba=msf2blk(D_S[d].SubQ_run_trk); |
d | 4062 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.msf.minute=(D_S[d].SubQ_run_tot>>16)&0x00FF; |
d | 4063 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.msf.second=(D_S[d].SubQ_run_tot>>8)&0x00FF; |
d | 4064 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.msf.frame=D_S[d].SubQ_run_tot&0x00FF; |
d | 4065 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.msf.minute=(D_S[d].SubQ_run_trk>>16)&0x00FF; |
d | 4066 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.msf.second=(D_S[d].SubQ_run_trk>>8)&0x00FF; |
d | 4067 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.msf.frame=D_S[d].SubQ_run_trk&0x00FF; |
d | 4081 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_M1; |
d | 4088 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_M2; |
d | 4094 | drivers/cdrom/sbpcd.c | if (D_S[d].sbp_audsiz>0) |
d | 4095 | drivers/cdrom/sbpcd.c | vfree(D_S[d].aud_buf); |
d | 4097 | drivers/cdrom/sbpcd.c | D_S[d].aud_buf=NULL; |
d | 4098 | drivers/cdrom/sbpcd.c | D_S[d].sbp_audsiz=arg; |
d | 4099 | drivers/cdrom/sbpcd.c | if (D_S[d].sbp_audsiz>0) |
d | 4101 | drivers/cdrom/sbpcd.c | D_S[d].aud_buf=(u_char *) vmalloc(D_S[d].sbp_audsiz*CD_FRAMESIZE_RAW); |
d | 4102 | drivers/cdrom/sbpcd.c | if (D_S[d].aud_buf==NULL) |
d | 4104 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"audio buffer (%d frames) not available.\n",D_S[d].sbp_audsiz); |
d | 4105 | drivers/cdrom/sbpcd.c | D_S[d].sbp_audsiz=0; |
d | 4107 | drivers/cdrom/sbpcd.c | else msg(DBG_INF,"audio buffer size: %d frames.\n",D_S[d].sbp_audsiz); |
d | 4109 | drivers/cdrom/sbpcd.c | return (D_S[d].sbp_audsiz); |
d | 4128 | drivers/cdrom/sbpcd.c | if (D_S[d].aud_buf==NULL) return (-EINVAL); |
d | 4132 | drivers/cdrom/sbpcd.c | if (read_audio.nframes>D_S[d].sbp_audsiz) return (-EINVAL); |
d | 4153 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_AU; |
d | 4234 | drivers/cdrom/sbpcd.c | p = D_S[d].aud_buf; |
d | 4281 | drivers/cdrom/sbpcd.c | D_S[d].status_bits); |
d | 4293 | drivers/cdrom/sbpcd.c | (u_char *) D_S[d].aud_buf, |
d | 4300 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_M1; |
d | 4317 | drivers/cdrom/sbpcd.c | lba2msf(D_S[d].lba_multi,&ms_info.addr.msf.minute); |
d | 4319 | drivers/cdrom/sbpcd.c | ms_info.addr.lba=D_S[d].lba_multi; |
d | 4321 | drivers/cdrom/sbpcd.c | if (D_S[d].f_multisession) ms_info.xa_flag=1; /* valid redirection address */ |
d | 4351 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 >= D_S[d].sbp_first_frame) && |
d | 4352 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 <= D_S[d].sbp_last_frame) ) |
d | 4354 | drivers/cdrom/sbpcd.c | offs = (CURRENT->sector - D_S[d].sbp_first_frame * 4) * 512; |
d | 4355 | drivers/cdrom/sbpcd.c | memcpy(CURRENT->buffer, D_S[d].sbp_buf + offs, 512); |
d | 4395 | drivers/cdrom/sbpcd.c | if (d!=i) switch_drive(i); |
d | 4463 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1; /* purge buffer */ |
d | 4464 | drivers/cdrom/sbpcd.c | D_S[d].sbp_current = 0; |
d | 4466 | drivers/cdrom/sbpcd.c | if (block+D_S[d].sbp_bufsiz <= D_S[d].CDsize_frm) |
d | 4467 | drivers/cdrom/sbpcd.c | D_S[d].sbp_read_frames = D_S[d].sbp_bufsiz; |
d | 4470 | drivers/cdrom/sbpcd.c | D_S[d].sbp_read_frames=D_S[d].CDsize_frm-block; |
d | 4472 | drivers/cdrom/sbpcd.c | if (D_S[d].sbp_read_frames < 1) |
d | 4475 | drivers/cdrom/sbpcd.c | block, D_S[d].CDsize_frm); |
d | 4476 | drivers/cdrom/sbpcd.c | D_S[d].sbp_read_frames=1; |
d | 4485 | drivers/cdrom/sbpcd.c | if (D_S[d].xa_byte==0x20) |
d | 4492 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].sbp_read_frames; |
d | 4497 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_201) |
d | 4510 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].sbp_read_frames; |
d | 4511 | drivers/cdrom/sbpcd.c | drvcmd[6]=(D_S[d].drv_type<drv_201)?0:2; /* flag "lba or msf-bcd format" */ |
d | 4518 | drivers/cdrom/sbpcd.c | drvcmd[6]=D_S[d].sbp_read_frames; |
d | 4524 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].sbp_read_frames; |
d | 4534 | drivers/cdrom/sbpcd.c | drvcmd[7]=(D_S[d].sbp_read_frames>>8)&0x0ff; |
d | 4535 | drivers/cdrom/sbpcd.c | drvcmd[8]=D_S[d].sbp_read_frames&0x0ff; |
d | 4576 | drivers/cdrom/sbpcd.c | if (D_S[d].f_multisession) max_latency=9*HZ; |
d | 4581 | drivers/cdrom/sbpcd.c | for (frame=0;frame<D_S[d].sbp_read_frames&&!error_flag; frame++) |
d | 4591 | drivers/cdrom/sbpcd.c | if (D_S[d].f_multisession) try=maxtim_data*4; |
d | 4636 | drivers/cdrom/sbpcd.c | if ((D_S[d].ored_ctl_adr&0x40)==0) |
d | 4645 | drivers/cdrom/sbpcd.c | p = D_S[d].sbp_buf + frame * CD_FRAMESIZE; |
d | 4651 | drivers/cdrom/sbpcd.c | D_S[d].sbp_current++; |
d | 4722 | drivers/cdrom/sbpcd.c | D_S[d].error_state=infobuf[2]; |
d | 4723 | drivers/cdrom/sbpcd.c | D_S[d].b3=infobuf[3]; |
d | 4724 | drivers/cdrom/sbpcd.c | D_S[d].b4=infobuf[4]; |
d | 4794 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"bad cc_ReadStatus after read: %02X\n", D_S[d].status_bits); |
d | 4808 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1; /* purge buffer */ |
d | 4809 | drivers/cdrom/sbpcd.c | D_S[d].sbp_current = 0; |
d | 4814 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame = CURRENT -> sector / 4; |
d | 4815 | drivers/cdrom/sbpcd.c | D_S[d].sbp_last_frame = D_S[d].sbp_first_frame + D_S[d].sbp_read_frames - 1; |
d | 4875 | drivers/cdrom/sbpcd.c | if (famT_drive) msg(DBG_TE2,"sbpcd_open: status %02X\n", D_S[d].status_bits); |
d | 4879 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
d | 4894 | drivers/cdrom/sbpcd.c | D_S[d].open_count,D_S[d].open_count+1); |
d | 4895 | drivers/cdrom/sbpcd.c | if (++D_S[d].open_count<=1) |
d | 4898 | drivers/cdrom/sbpcd.c | D_S[d].open_count=1; |
d | 4902 | drivers/cdrom/sbpcd.c | if ((D_S[d].ored_ctl_adr&0x40)==0) |
d | 4924 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1; |
d | 4933 | drivers/cdrom/sbpcd.c | D_S[d].open_count,D_S[d].open_count-1); |
d | 4934 | drivers/cdrom/sbpcd.c | if (D_S[d].open_count>-2) /* CDROMEJECT may have been done */ |
d | 4936 | drivers/cdrom/sbpcd.c | if (--D_S[d].open_count<=0) |
d | 4939 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state!=audio_playing) |
d | 4940 | drivers/cdrom/sbpcd.c | if (D_S[d].f_eject) cc_SpinDown(); |
d | 4941 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~cd_size_bit; |
d | 4942 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
d | 5180 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame = -1; /* First frame in buffer */ |
d | 5181 | drivers/cdrom/sbpcd.c | D_S[d].sbp_last_frame = -1; /* Last frame in buffer */ |
d | 5182 | drivers/cdrom/sbpcd.c | D_S[d].sbp_read_frames = 0; /* Number of frames being read to buffer */ |
d | 5183 | drivers/cdrom/sbpcd.c | D_S[d].sbp_current = 0; /* Frame being currently read */ |
d | 5184 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=1; |
d | 5185 | drivers/cdrom/sbpcd.c | D_S[d].frame_size=CD_FRAMESIZE; |
d | 5187 | drivers/cdrom/sbpcd.c | if (!fam0_drive) D_S[d].f_eject=1; |
d | 5188 | drivers/cdrom/sbpcd.c | else D_S[d].f_eject=0; |
d | 5190 | drivers/cdrom/sbpcd.c | D_S[d].f_eject=0; |
d | 5209 | drivers/cdrom/sbpcd.c | D_S[d].error_byte); |
d | 5210 | drivers/cdrom/sbpcd.c | if (D_S[d].error_byte==aud_12) |
d | 5219 | drivers/cdrom/sbpcd.c | D_S[d].error_byte); |
d | 5226 | drivers/cdrom/sbpcd.c | if (i>=0) D_S[d].CD_changed=1; |
d | 5361 | drivers/cdrom/sbpcd.c | msg(DBG_CHK,"media_check: %02X\n",D_S[d].status_bits); |
d | 5367 | drivers/cdrom/sbpcd.c | if (D_S[d].CD_changed==0xFF) msg(DBG_CHK,"media_check: \"changed\" assumed.\n"); |
d | 5372 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=0xFF; |
d | 5377 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
d | 5378 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=0xFF; |
d | 5383 | drivers/cdrom/sbpcd.c | if (D_S[d].CD_changed==0xFF) |
d | 5385 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=1; |
d | 282 | drivers/cdrom/sjcd.c | unsigned char b, unsigned char c, unsigned char d ){ |
d | 290 | drivers/cdrom/sjcd.c | outb( d, SJCDPORT( 0 ) ); |
d | 291 | drivers/char/console.c | return (i < MAX_NR_CONSOLES && vc_cons[i].d); |
d | 298 | drivers/char/console.c | if (!vc_cons[i].d) { |
d | 317 | drivers/char/console.c | vc_cons[i].d = (struct vc_data *) p; |
d | 321 | drivers/char/console.c | vc_cons[i].d->vc_kmalloced = 1; |
d | 322 | drivers/char/console.c | vc_cons[i].d->vc_screenbuf_size = video_screen_size; |
d | 434 | drivers/char/console.c | kfree_s(vc_cons[currcons].d, structsize); |
d | 435 | drivers/char/console.c | vc_cons[currcons].d = 0; |
d | 522 | drivers/char/console.c | unsigned short * d = (unsigned short *) video_mem_base; |
d | 531 | drivers/char/console.c | scr_writew(scr_readw(d++),s++); |
d | 587 | drivers/char/console.c | unsigned short * d = (unsigned short *) video_mem_start; |
d | 594 | drivers/char/console.c | scr_writew(scr_readw(s++),d++); |
d | 599 | drivers/char/console.c | scr_writew(video_erase_char, d++); |
d | 608 | drivers/char/console.c | unsigned short * d; |
d | 611 | drivers/char/console.c | d = (unsigned short *) (scr_end - video_size_row); |
d | 615 | drivers/char/console.c | scr_writew(video_erase_char, d++); |
d | 622 | drivers/char/console.c | unsigned short * d = (unsigned short *) (origin+video_size_row*t); |
d | 628 | drivers/char/console.c | scr_writew(scr_readw(s++), d++); |
d | 633 | drivers/char/console.c | scr_writew(video_erase_char, d++); |
d | 641 | drivers/char/console.c | unsigned short *d, *s; |
d | 646 | drivers/char/console.c | d = (unsigned short *) (origin+video_size_row*b); |
d | 651 | drivers/char/console.c | scr_writew(scr_readw(--s), --d); |
d | 656 | drivers/char/console.c | scr_writew(video_erase_char, --d); |
d | 1881 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_red[j] ; |
d | 1882 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_grn[j] ; |
d | 1883 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_blu[j] ; |
d | 1966 | drivers/char/console.c | vc_cons[currcons].d = (struct vc_data *) kmem_start; |
d | 1976 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_red[j] ; |
d | 1977 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_grn[j] ; |
d | 1978 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_blu[j] ; |
d | 69 | drivers/char/console_struct.h | struct vc_data *d; |
d | 78 | drivers/char/console_struct.h | #define screenbuf_size (vc_cons[currcons].d->vc_screenbuf_size) |
d | 79 | drivers/char/console_struct.h | #define origin (vc_cons[currcons].d->vc_origin) |
d | 80 | drivers/char/console_struct.h | #define scr_end (vc_cons[currcons].d->vc_scr_end) |
d | 81 | drivers/char/console_struct.h | #define pos (vc_cons[currcons].d->vc_pos) |
d | 82 | drivers/char/console_struct.h | #define top (vc_cons[currcons].d->vc_top) |
d | 83 | drivers/char/console_struct.h | #define bottom (vc_cons[currcons].d->vc_bottom) |
d | 84 | drivers/char/console_struct.h | #define x (vc_cons[currcons].d->vc_x) |
d | 85 | drivers/char/console_struct.h | #define y (vc_cons[currcons].d->vc_y) |
d | 86 | drivers/char/console_struct.h | #define vc_state (vc_cons[currcons].d->vc_state) |
d | 87 | drivers/char/console_struct.h | #define npar (vc_cons[currcons].d->vc_npar) |
d | 88 | drivers/char/console_struct.h | #define par (vc_cons[currcons].d->vc_par) |
d | 89 | drivers/char/console_struct.h | #define ques (vc_cons[currcons].d->vc_ques) |
d | 90 | drivers/char/console_struct.h | #define attr (vc_cons[currcons].d->vc_attr) |
d | 91 | drivers/char/console_struct.h | #define saved_x (vc_cons[currcons].d->vc_saved_x) |
d | 92 | drivers/char/console_struct.h | #define saved_y (vc_cons[currcons].d->vc_saved_y) |
d | 93 | drivers/char/console_struct.h | #define translate (vc_cons[currcons].d->vc_translate) |
d | 94 | drivers/char/console_struct.h | #define G0_charset (vc_cons[currcons].d->vc_G0_charset) |
d | 95 | drivers/char/console_struct.h | #define G1_charset (vc_cons[currcons].d->vc_G1_charset) |
d | 96 | drivers/char/console_struct.h | #define saved_G0 (vc_cons[currcons].d->vc_saved_G0) |
d | 97 | drivers/char/console_struct.h | #define saved_G1 (vc_cons[currcons].d->vc_saved_G1) |
d | 98 | drivers/char/console_struct.h | #define utf (vc_cons[currcons].d->vc_utf) |
d | 99 | drivers/char/console_struct.h | #define utf_count (vc_cons[currcons].d->vc_utf_count) |
d | 100 | drivers/char/console_struct.h | #define utf_char (vc_cons[currcons].d->vc_utf_char) |
d | 101 | drivers/char/console_struct.h | #define video_mem_start (vc_cons[currcons].d->vc_video_mem_start) |
d | 102 | drivers/char/console_struct.h | #define video_mem_end (vc_cons[currcons].d->vc_video_mem_end) |
d | 103 | drivers/char/console_struct.h | #define video_erase_char (vc_cons[currcons].d->vc_video_erase_char) |
d | 104 | drivers/char/console_struct.h | #define disp_ctrl (vc_cons[currcons].d->vc_disp_ctrl) |
d | 105 | drivers/char/console_struct.h | #define toggle_meta (vc_cons[currcons].d->vc_toggle_meta) |
d | 106 | drivers/char/console_struct.h | #define decscnm (vc_cons[currcons].d->vc_decscnm) |
d | 107 | drivers/char/console_struct.h | #define decom (vc_cons[currcons].d->vc_decom) |
d | 108 | drivers/char/console_struct.h | #define decawm (vc_cons[currcons].d->vc_decawm) |
d | 109 | drivers/char/console_struct.h | #define deccm (vc_cons[currcons].d->vc_deccm) |
d | 110 | drivers/char/console_struct.h | #define decim (vc_cons[currcons].d->vc_decim) |
d | 111 | drivers/char/console_struct.h | #define deccolm (vc_cons[currcons].d->vc_deccolm) |
d | 112 | drivers/char/console_struct.h | #define need_wrap (vc_cons[currcons].d->vc_need_wrap) |
d | 113 | drivers/char/console_struct.h | #define has_scrolled (vc_cons[currcons].d->vc_has_scrolled) |
d | 114 | drivers/char/console_struct.h | #define kmalloced (vc_cons[currcons].d->vc_kmalloced) |
d | 115 | drivers/char/console_struct.h | #define report_mouse (vc_cons[currcons].d->vc_report_mouse) |
d | 116 | drivers/char/console_struct.h | #define color (vc_cons[currcons].d->vc_color) |
d | 117 | drivers/char/console_struct.h | #define s_color (vc_cons[currcons].d->vc_s_color) |
d | 118 | drivers/char/console_struct.h | #define def_color (vc_cons[currcons].d->vc_def_color) |
d | 121 | drivers/char/console_struct.h | #define charset (vc_cons[currcons].d->vc_charset) |
d | 122 | drivers/char/console_struct.h | #define s_charset (vc_cons[currcons].d->vc_s_charset) |
d | 123 | drivers/char/console_struct.h | #define intensity (vc_cons[currcons].d->vc_intensity) |
d | 124 | drivers/char/console_struct.h | #define underline (vc_cons[currcons].d->vc_underline) |
d | 125 | drivers/char/console_struct.h | #define blink (vc_cons[currcons].d->vc_blink) |
d | 126 | drivers/char/console_struct.h | #define reverse (vc_cons[currcons].d->vc_reverse) |
d | 127 | drivers/char/console_struct.h | #define s_intensity (vc_cons[currcons].d->vc_s_intensity) |
d | 128 | drivers/char/console_struct.h | #define s_underline (vc_cons[currcons].d->vc_s_underline) |
d | 129 | drivers/char/console_struct.h | #define s_blink (vc_cons[currcons].d->vc_s_blink) |
d | 130 | drivers/char/console_struct.h | #define s_reverse (vc_cons[currcons].d->vc_s_reverse) |
d | 131 | drivers/char/console_struct.h | #define ulcolor (vc_cons[currcons].d->vc_ulcolor) |
d | 132 | drivers/char/console_struct.h | #define halfcolor (vc_cons[currcons].d->vc_halfcolor) |
d | 133 | drivers/char/console_struct.h | #define tab_stop (vc_cons[currcons].d->vc_tab_stop) |
d | 134 | drivers/char/console_struct.h | #define palette (vc_cons[currcons].d->vc_palette) |
d | 839 | drivers/char/keyboard.c | int d = diacr; |
d | 844 | drivers/char/keyboard.c | return d; |
d | 847 | drivers/char/keyboard.c | if (accent_table[i].diacr == d && accent_table[i].base == ch) |
d | 851 | drivers/char/keyboard.c | put_queue(d); |
d | 475 | drivers/char/random.c | __u32 a, b, c, d; |
d | 480 | drivers/char/random.c | d = buf[3]; |
d | 482 | drivers/char/random.c | MD5STEP(F1, a, b, c, d, in[ 0]+0xd76aa478, 7); |
d | 483 | drivers/char/random.c | MD5STEP(F1, d, a, b, c, in[ 1]+0xe8c7b756, 12); |
d | 484 | drivers/char/random.c | MD5STEP(F1, c, d, a, b, in[ 2]+0x242070db, 17); |
d | 485 | drivers/char/random.c | MD5STEP(F1, b, c, d, a, in[ 3]+0xc1bdceee, 22); |
d | 486 | drivers/char/random.c | MD5STEP(F1, a, b, c, d, in[ 4]+0xf57c0faf, 7); |
d | 487 | drivers/char/random.c | MD5STEP(F1, d, a, b, c, in[ 5]+0x4787c62a, 12); |
d | 488 | drivers/char/random.c | MD5STEP(F1, c, d, a, b, in[ 6]+0xa8304613, 17); |
d | 489 | drivers/char/random.c | MD5STEP(F1, b, c, d, a, in[ 7]+0xfd469501, 22); |
d | 490 | drivers/char/random.c | MD5STEP(F1, a, b, c, d, in[ 8]+0x698098d8, 7); |
d | 491 | drivers/char/random.c | MD5STEP(F1, d, a, b, c, in[ 9]+0x8b44f7af, 12); |
d | 492 | drivers/char/random.c | MD5STEP(F1, c, d, a, b, in[10]+0xffff5bb1, 17); |
d | 493 | drivers/char/random.c | MD5STEP(F1, b, c, d, a, in[11]+0x895cd7be, 22); |
d | 494 | drivers/char/random.c | MD5STEP(F1, a, b, c, d, in[12]+0x6b901122, 7); |
d | 495 | drivers/char/random.c | MD5STEP(F1, d, a, b, c, in[13]+0xfd987193, 12); |
d | 496 | drivers/char/random.c | MD5STEP(F1, c, d, a, b, in[14]+0xa679438e, 17); |
d | 497 | drivers/char/random.c | MD5STEP(F1, b, c, d, a, in[15]+0x49b40821, 22); |
d | 499 | drivers/char/random.c | MD5STEP(F2, a, b, c, d, in[ 1]+0xf61e2562, 5); |
d | 500 | drivers/char/random.c | MD5STEP(F2, d, a, b, c, in[ 6]+0xc040b340, 9); |
d | 501 | drivers/char/random.c | MD5STEP(F2, c, d, a, b, in[11]+0x265e5a51, 14); |
d | 502 | drivers/char/random.c | MD5STEP(F2, b, c, d, a, in[ 0]+0xe9b6c7aa, 20); |
d | 503 | drivers/char/random.c | MD5STEP(F2, a, b, c, d, in[ 5]+0xd62f105d, 5); |
d | 504 | drivers/char/random.c | MD5STEP(F2, d, a, b, c, in[10]+0x02441453, 9); |
d | 505 | drivers/char/random.c | MD5STEP(F2, c, d, a, b, in[15]+0xd8a1e681, 14); |
d | 506 | drivers/char/random.c | MD5STEP(F2, b, c, d, a, in[ 4]+0xe7d3fbc8, 20); |
d | 507 | drivers/char/random.c | MD5STEP(F2, a, b, c, d, in[ 9]+0x21e1cde6, 5); |
d | 508 | drivers/char/random.c | MD5STEP(F2, d, a, b, c, in[14]+0xc33707d6, 9); |
d | 509 | drivers/char/random.c | MD5STEP(F2, c, d, a, b, in[ 3]+0xf4d50d87, 14); |
d | 510 | drivers/char/random.c | MD5STEP(F2, b, c, d, a, in[ 8]+0x455a14ed, 20); |
d | 511 | drivers/char/random.c | MD5STEP(F2, a, b, c, d, in[13]+0xa9e3e905, 5); |
d | 512 | drivers/char/random.c | MD5STEP(F2, d, a, b, c, in[ 2]+0xfcefa3f8, 9); |
d | 513 | drivers/char/random.c | MD5STEP(F2, c, d, a, b, in[ 7]+0x676f02d9, 14); |
d | 514 | drivers/char/random.c | MD5STEP(F2, b, c, d, a, in[12]+0x8d2a4c8a, 20); |
d | 516 | drivers/char/random.c | MD5STEP(F3, a, b, c, d, in[ 5]+0xfffa3942, 4); |
d | 517 | drivers/char/random.c | MD5STEP(F3, d, a, b, c, in[ 8]+0x8771f681, 11); |
d | 518 | drivers/char/random.c | MD5STEP(F3, c, d, a, b, in[11]+0x6d9d6122, 16); |
d | 519 | drivers/char/random.c | MD5STEP(F3, b, c, d, a, in[14]+0xfde5380c, 23); |
d | 520 | drivers/char/random.c | MD5STEP(F3, a, b, c, d, in[ 1]+0xa4beea44, 4); |
d | 521 | drivers/char/random.c | MD5STEP(F3, d, a, b, c, in[ 4]+0x4bdecfa9, 11); |
d | 522 | drivers/char/random.c | MD5STEP(F3, c, d, a, b, in[ 7]+0xf6bb4b60, 16); |
d | 523 | drivers/char/random.c | MD5STEP(F3, b, c, d, a, in[10]+0xbebfbc70, 23); |
d | 524 | drivers/char/random.c | MD5STEP(F3, a, b, c, d, in[13]+0x289b7ec6, 4); |
d | 525 | drivers/char/random.c | MD5STEP(F3, d, a, b, c, in[ 0]+0xeaa127fa, 11); |
d | 526 | drivers/char/random.c | MD5STEP(F3, c, d, a, b, in[ 3]+0xd4ef3085, 16); |
d | 527 | drivers/char/random.c | MD5STEP(F3, b, c, d, a, in[ 6]+0x04881d05, 23); |
d | 528 | drivers/char/random.c | MD5STEP(F3, a, b, c, d, in[ 9]+0xd9d4d039, 4); |
d | 529 | drivers/char/random.c | MD5STEP(F3, d, a, b, c, in[12]+0xe6db99e5, 11); |
d | 530 | drivers/char/random.c | MD5STEP(F3, c, d, a, b, in[15]+0x1fa27cf8, 16); |
d | 531 | drivers/char/random.c | MD5STEP(F3, b, c, d, a, in[ 2]+0xc4ac5665, 23); |
d | 533 | drivers/char/random.c | MD5STEP(F4, a, b, c, d, in[ 0]+0xf4292244, 6); |
d | 534 | drivers/char/random.c | MD5STEP(F4, d, a, b, c, in[ 7]+0x432aff97, 10); |
d | 535 | drivers/char/random.c | MD5STEP(F4, c, d, a, b, in[14]+0xab9423a7, 15); |
d | 536 | drivers/char/random.c | MD5STEP(F4, b, c, d, a, in[ 5]+0xfc93a039, 21); |
d | 537 | drivers/char/random.c | MD5STEP(F4, a, b, c, d, in[12]+0x655b59c3, 6); |
d | 538 | drivers/char/random.c | MD5STEP(F4, d, a, b, c, in[ 3]+0x8f0ccc92, 10); |
d | 539 | drivers/char/random.c | MD5STEP(F4, c, d, a, b, in[10]+0xffeff47d, 15); |
d | 540 | drivers/char/random.c | MD5STEP(F4, b, c, d, a, in[ 1]+0x85845dd1, 21); |
d | 541 | drivers/char/random.c | MD5STEP(F4, a, b, c, d, in[ 8]+0x6fa87e4f, 6); |
d | 542 | drivers/char/random.c | MD5STEP(F4, d, a, b, c, in[15]+0xfe2ce6e0, 10); |
d | 543 | drivers/char/random.c | MD5STEP(F4, c, d, a, b, in[ 6]+0xa3014314, 15); |
d | 544 | drivers/char/random.c | MD5STEP(F4, b, c, d, a, in[13]+0x4e0811a1, 21); |
d | 545 | drivers/char/random.c | MD5STEP(F4, a, b, c, d, in[ 4]+0xf7537e82, 6); |
d | 546 | drivers/char/random.c | MD5STEP(F4, d, a, b, c, in[11]+0xbd3af235, 10); |
d | 547 | drivers/char/random.c | MD5STEP(F4, c, d, a, b, in[ 2]+0x2ad7d2bb, 15); |
d | 548 | drivers/char/random.c | MD5STEP(F4, b, c, d, a, in[ 9]+0xeb86d391, 21); |
d | 553 | drivers/char/random.c | buf[3] += d; |
d | 409 | drivers/char/tga.c | vc_cons[i].d->vc_palette[k++] = default_red[j]; |
d | 410 | drivers/char/tga.c | vc_cons[i].d->vc_palette[k++] = default_grn[j]; |
d | 411 | drivers/char/tga.c | vc_cons[i].d->vc_palette[k++] = default_blu[j]; |
d | 1316 | drivers/char/tty_io.c | char *c, *d; |
d | 1326 | drivers/char/tty_io.c | d = (char *)(ts->tasks+n); |
d | 1328 | drivers/char/tty_io.c | put_user(*c++, d++); |
d | 78 | drivers/char/vga.c | outb_p (vc_cons[fg_console].d->vc_palette[j++]>>2, dac_val) ; |
d | 79 | drivers/char/vga.c | outb_p (vc_cons[fg_console].d->vc_palette[j++]>>2, dac_val) ; |
d | 80 | drivers/char/vga.c | outb_p (vc_cons[fg_console].d->vc_palette[j++]>>2, dac_val) ; |
d | 559 | drivers/char/vga.c | vc_cons[i].d->vc_palette[k++] = default_red[j]; |
d | 560 | drivers/char/vga.c | vc_cons[i].d->vc_palette[k++] = default_grn[j]; |
d | 561 | drivers/char/vga.c | vc_cons[i].d->vc_palette[k++] = default_blu[j]; |
d | 237 | drivers/net/net_init.c | struct device *d = dev_base; |
d | 264 | drivers/net/net_init.c | while (d->next) |
d | 265 | drivers/net/net_init.c | d = d->next; |
d | 266 | drivers/net/net_init.c | d->next = dev; |
d | 278 | drivers/net/net_init.c | struct device *d = dev_base; |
d | 298 | drivers/net/net_init.c | while (d && (d->next != dev)) |
d | 299 | drivers/net/net_init.c | d = d->next; |
d | 301 | drivers/net/net_init.c | if (d && (d->next == dev)) |
d | 303 | drivers/net/net_init.c | d->next = dev->next; |
d | 2839 | drivers/net/ppp.c | &temp.d); |
d | 100 | drivers/net/slip.c | static int slip_esc(unsigned char *p, unsigned char *d, int len); |
d | 103 | drivers/net/slip.c | static int slip_esc6(unsigned char *p, unsigned char *d, int len); |
d | 833 | drivers/net/slip.c | slip_esc(unsigned char *s, unsigned char *d, int len) |
d | 835 | drivers/net/slip.c | unsigned char *ptr = d; |
d | 867 | drivers/net/slip.c | return (ptr - d); |
d | 914 | drivers/net/slip.c | slip_esc6(unsigned char *s, unsigned char *d, int len) |
d | 916 | drivers/net/slip.c | unsigned char *ptr = d; |
d | 948 | drivers/net/slip.c | return ptr - d; |
d | 1470 | drivers/scsi/NCR5380.c | register unsigned char *d = *data; |
d | 1503 | drivers/scsi/NCR5380.c | NCR5380_write(OUTPUT_DATA_REG, *d); |
d | 1505 | drivers/scsi/NCR5380.c | *d = NCR5380_read(CURRENT_SCSI_DATA_REG); |
d | 1507 | drivers/scsi/NCR5380.c | ++d; |
d | 1571 | drivers/scsi/NCR5380.c | *data = d; |
d | 1610 | drivers/scsi/NCR5380.c | register unsigned char *d = *data; |
d | 1636 | drivers/scsi/NCR5380.c | "writing", c, (p & SR_IO) ? "to" : "from", (unsigned) d); |
d | 1639 | drivers/scsi/NCR5380.c | NCR5380_dma_read_setup(instance, d, c) : |
d | 1640 | drivers/scsi/NCR5380.c | NCR5380_dma_write_setup(instance, d, c); |
d | 1801 | drivers/scsi/NCR5380.c | if (!(foo = NCR5380_pread(instance, d, c - 1))) { |
d | 1827 | drivers/scsi/NCR5380.c | d[c - 1] = NCR5380_read(INPUT_DATA_REG); |
d | 1831 | drivers/scsi/NCR5380.c | if (!(foo = NCR5380_pwrite(instance, d, c))) { |
d | 1882 | drivers/scsi/NCR5380.c | *data = d + c; |
d | 491 | drivers/scsi/pas16.c | register unsigned char *d = dst; |
d | 498 | drivers/scsi/pas16.c | insb( reg, d, i ); |
d | 324 | drivers/scsi/t128.c | T_DATA_REG_OFFSET), *d = dst; |
d | 335 | drivers/scsi/t128.c | *d++ = *reg; |
d | 111 | drivers/sound/ad1848.c | #define io_Index_Addr(d) ((d)->base) |
d | 112 | drivers/sound/ad1848.c | #define io_Indexed_Data(d) ((d)->base+1) |
d | 113 | drivers/sound/ad1848.c | #define io_Status(d) ((d)->base+2) |
d | 114 | drivers/sound/ad1848.c | #define io_Polled_IO(d) ((d)->base+3) |
d | 31 | fs/msdos/msbuffer.h | #define bread(d,b,s) msdos_bread(sb,b) |
d | 32 | fs/msdos/msbuffer.h | #define getblk(d,b,s) msdos_getblk(sb,b) |
d | 55 | fs/umsdos/dir.c | struct UMSDOS_DIR_ONCE *d = (struct UMSDOS_DIR_ONCE *)buf; |
d | 56 | fs/umsdos/dir.c | if (d->count == 0){ |
d | 63 | fs/umsdos/dir.c | ret = d->filldir (d->dirbuf,name,name_len,offset,ino); |
d | 64 | fs/umsdos/dir.c | d->stop = ret < 0; |
d | 65 | fs/umsdos/dir.c | d->count = 1; |
d | 423 | fs/umsdos/dir.c | struct UMSDOS_DIRENT_K *d = (struct UMSDOS_DIRENT_K *)buf; |
d | 424 | fs/umsdos/dir.c | d->f_pos = offset; |
d | 425 | fs/umsdos/dir.c | d->ino = ino; |
d | 443 | fs/umsdos/dir.c | struct UMSDOS_DIR_SEARCH *d = (struct UMSDOS_DIR_SEARCH *)buf; |
d | 444 | fs/umsdos/dir.c | if (d->search_ino == ino){ |
d | 445 | fs/umsdos/dir.c | d->found = 1; |
d | 446 | fs/umsdos/dir.c | memcpy (d->entry->name,name,name_len); |
d | 447 | fs/umsdos/dir.c | d->entry->name[name_len] = '\0'; |
d | 448 | fs/umsdos/dir.c | d->entry->name_len = name_len; |
d | 38 | fs/umsdos/ioctl.c | struct UMSDOS_DIR_ONCE *d = (struct UMSDOS_DIR_ONCE *)buf; |
d | 39 | fs/umsdos/ioctl.c | if (d->count == 0){ |
d | 40 | fs/umsdos/ioctl.c | memcpy_tofs (d->ent->d_name,name,name_len); |
d | 41 | fs/umsdos/ioctl.c | put_user ('\0',d->ent->d_name+name_len); |
d | 42 | fs/umsdos/ioctl.c | put_user (name_len,&d->ent->d_reclen); |
d | 43 | fs/umsdos/ioctl.c | put_user (ino,&d->ent->d_ino); |
d | 44 | fs/umsdos/ioctl.c | put_user (offset,&d->ent->d_off); |
d | 45 | fs/umsdos/ioctl.c | d->count = 1; |
d | 41 | fs/umsdos/rdir.c | struct RDIR_FILLDIR *d = (struct RDIR_FILLDIR*) buf; |
d | 42 | fs/umsdos/rdir.c | if (d->real_root){ |
d | 53 | fs/umsdos/rdir.c | ret = d->filldir (d->dirbuf,name,name_len,offset,ino); |
d | 57 | fs/umsdos/rdir.c | ret = d->filldir (d->dirbuf,name,name_len,offset,ino); |
d | 84 | include/asm-i386/io.h | #define eth_io_copy_and_sum(a,b,c,d) eth_copy_and_sum((a),(void *)(b),(c),(d)) |
d | 40 | include/asm-i386/ioctl.h | #define _IO(c,d) (IOC_VOID | ((c)<<8) | (d)) /* param encoded */ |
d | 45 | include/asm-i386/ioctl.h | #define _IOW(c,d,t) (IOC_IN | ((sizeof(t)<<16) & IOCSIZE_MASK) | \ |
d | 46 | include/asm-i386/ioctl.h | ((c)<<8) | (d)) |
d | 47 | include/asm-i386/ioctl.h | #define _IOR(c,d,t) (IOC_OUT | ((sizeof(t)<<16) & IOCSIZE_MASK) | \ |
d | 48 | include/asm-i386/ioctl.h | ((c)<<8) | (d)) |
d | 50 | include/asm-i386/ioctl.h | #define _IOWR(c,d,t) (IOC_INOUT | ((sizeof(t)<<16) & IOCSIZE_MASK) | \ |
d | 51 | include/asm-i386/ioctl.h | ((c)<<8) | (d)) |
d | 70 | include/asm-m68k/unistd.h | #define _syscall4(type,name,atype,a,btype,b,ctype,c,dtype,d) \ |
d | 71 | include/asm-m68k/unistd.h | type name (atype a, btype b, ctype c, dtype d) \ |
d | 83 | include/asm-m68k/unistd.h | "g" ((long)(d)) \ |
d | 91 | include/asm-m68k/unistd.h | #define _syscall5(type,name,atype,a,btype,b,ctype,c,dtype,d,etype,e) \ |
d | 92 | include/asm-m68k/unistd.h | type name (atype a,btype b,ctype c,dtype d,etype e) \ |
d | 105 | include/asm-m68k/unistd.h | "g" ((long)(d)), \ |
d | 81 | include/asm-mips/types.h | #define __FDELT(d) ((d) / __NFDBITS) |
d | 83 | include/asm-mips/types.h | #define __FDMASK(d) (1 << ((d) % __NFDBITS)) |
d | 85 | include/asm-mips/types.h | #define __FD_SET(d, set) ((set)->fds_bits[__FDELT(d)] |= __FDMASK(d)) |
d | 87 | include/asm-mips/types.h | #define __FD_CLR(d, set) ((set)->fds_bits[__FDELT(d)] &= ~__FDMASK(d)) |
d | 89 | include/asm-mips/types.h | #define __FD_ISSET(d, set) ((set)->fds_bits[__FDELT(d)] & __FDMASK(d)) |
d | 80 | include/asm-mips/unistd.h | #define _syscall4(type,name,atype,a,btype,b,ctype,c,dtype,d) \ |
d | 81 | include/asm-mips/unistd.h | type name (atype a, btype b, ctype c, dtype d) \ |
d | 94 | include/asm-mips/unistd.h | "r" ((long)(d)) \ |
d | 102 | include/asm-mips/unistd.h | #define _syscall5(type,name,atype,a,btype,b,ctype,c,dtype,d,etype,e) \ |
d | 103 | include/asm-mips/unistd.h | type name (atype a,btype b,ctype c,dtype d,etype e) \ |
d | 117 | include/asm-mips/unistd.h | "r" ((long)(d)), \ |
d | 65 | include/asm-sparc/openprom.h | int (*v2_inst2pkg)(int d); /* Convert ihandle to phandle */ |
d | 80 | include/asm-sparc/openprom.h | void (*v2_dev_close)(int d); |
d | 81 | include/asm-sparc/openprom.h | int (*v2_dev_read)(int d, char* buf, int nbytes); |
d | 82 | include/asm-sparc/openprom.h | int (*v2_dev_write)(int d, char* buf, int nbytes); |
d | 83 | include/asm-sparc/openprom.h | void (*v2_dev_seek)(int d, int hi, int lo); |
d | 204 | include/asm-sparc/openprom.h | unsigned int (*pv_enaddr)(int d, char *enaddr); |
d | 155 | include/linux/ppp_defs.h | struct compstat d; /* packet decompression statistics */ |
d | 216 | include/linux/sbpcd.h | #define upc_valid (D_S[d].diskstate_flags&upc_bit) |
d | 217 | include/linux/sbpcd.h | #define volume_valid (D_S[d].diskstate_flags&volume_bit) |
d | 218 | include/linux/sbpcd.h | #define toc_valid (D_S[d].diskstate_flags&toc_bit) |
d | 219 | include/linux/sbpcd.h | #define cd_size_valid (D_S[d].diskstate_flags&cd_size_bit) |
d | 220 | include/linux/sbpcd.h | #define subq_valid (D_S[d].diskstate_flags&subq_bit) |
d | 221 | include/linux/sbpcd.h | #define frame_size_valid (D_S[d].diskstate_flags&frame_size_bit) |
d | 290 | include/linux/sbpcd.h | #define st_door_closed (D_S[d].status_bits&p_door_closed) |
d | 291 | include/linux/sbpcd.h | #define st_caddy_in (D_S[d].status_bits&p_caddy_in) |
d | 292 | include/linux/sbpcd.h | #define st_spinning (D_S[d].status_bits&p_spinning) |
d | 293 | include/linux/sbpcd.h | #define st_check (D_S[d].status_bits&p_check) |
d | 294 | include/linux/sbpcd.h | #define st_busy (D_S[d].status_bits&p_busy_new) |
d | 295 | include/linux/sbpcd.h | #define st_door_locked (D_S[d].status_bits&p_door_locked) |
d | 296 | include/linux/sbpcd.h | #define st_diskok (D_S[d].status_bits&p_disk_ok) |
d | 334 | include/linux/sbpcd.h | #define fam0_drive (D_S[d].drv_type&drv_fam0) |
d | 335 | include/linux/sbpcd.h | #define famL_drive (D_S[d].drv_type&drv_famL) |
d | 336 | include/linux/sbpcd.h | #define fam1_drive (D_S[d].drv_type&drv_fam1) |
d | 337 | include/linux/sbpcd.h | #define fam2_drive (D_S[d].drv_type&drv_fam2) |
d | 338 | include/linux/sbpcd.h | #define famT_drive (D_S[d].drv_type&drv_famT) |
d | 339 | include/linux/sbpcd.h | #define fam0L_drive (D_S[d].drv_type&(drv_fam0|drv_famL)) |
d | 340 | include/linux/sbpcd.h | #define fam1L_drive (D_S[d].drv_type&(drv_fam1|drv_famL)) |
d | 341 | include/linux/sbpcd.h | #define fam01_drive (D_S[d].drv_type&(drv_fam0|drv_fam1)) |
d | 342 | include/linux/sbpcd.h | #define fam12_drive (D_S[d].drv_type&(drv_fam1|drv_fam2)) |
d | 343 | include/linux/sbpcd.h | #define fam2T_drive (D_S[d].drv_type&(drv_fam2|drv_famT)) |
d | 40 | include/linux/smp.h | #define smp_message_pass(t,m,d,w) |
d | 522 | include/linux/tpqic02.h | #define TP_REWCLOSE(d) ((MINOR(d)&0x01) == 1) /* rewind bit */ |
d | 24 | include/net/netlink.h | #define ip_netlink_msg(a,b,c,d,e,f,g) |
d | 329 | net/ax25/ax25_subr.c | int d = 0; |
d | 354 | net/ax25/ax25_subr.c | if (d >= AX25_MAX_DIGIS) return NULL; /* Max of 6 digis */ |
d | 358 | net/ax25/ax25_subr.c | memcpy(&digi->calls[d], buf, AX25_ADDR_LEN); |
d | 359 | net/ax25/ax25_subr.c | digi->ndigi = d + 1; |
d | 361 | net/ax25/ax25_subr.c | digi->repeated[d] = 1; |
d | 362 | net/ax25/ax25_subr.c | digi->lastrepeat = d; |
d | 364 | net/ax25/ax25_subr.c | digi->repeated[d] = 0; |
d | 370 | net/ax25/ax25_subr.c | d++; |
d | 379 | net/ax25/ax25_subr.c | int build_ax25_addr(unsigned char *buf, ax25_address *src, ax25_address *dest, ax25_digi *d, int flag, int modulus) |
d | 408 | net/ax25/ax25_subr.c | if (d == NULL || d->ndigi == 0) { |
d | 416 | net/ax25/ax25_subr.c | while (ct < d->ndigi) { |
d | 417 | net/ax25/ax25_subr.c | memcpy(buf, &d->calls[ct], AX25_ADDR_LEN); |
d | 418 | net/ax25/ax25_subr.c | if (d->repeated[ct]) |
d | 59 | net/ethernet/eth.c | struct device *d = dev_base; |
d | 63 | net/ethernet/eth.c | while (d) |
d | 65 | net/ethernet/eth.c | if (!strcmp(str,d->name)) |
d | 68 | net/ethernet/eth.c | d->irq=ints[1]; |
d | 70 | net/ethernet/eth.c | d->base_addr=ints[2]; |
d | 72 | net/ethernet/eth.c | d->mem_start=ints[3]; |
d | 74 | net/ethernet/eth.c | d->mem_end=ints[4]; |
d | 77 | net/ethernet/eth.c | d=d->next; |
d | 1644 | net/ipx/af_ipx.c | void dump_data(char *str,unsigned char *d, int len) { |
d | 1652 | net/ipx/af_ipx.c | *(p++) = h2c[(d[i] >> 4) & 0x0f]; |
d | 1653 | net/ipx/af_ipx.c | *(p++) = h2c[d[i] & 0x0f]; |
d | 1666 | net/ipx/af_ipx.c | *(p++) = ' '<= d[i] && d[i]<'\177' ? d[i] : '.'; |
d | 1670 | net/ipx/af_ipx.c | d += i; |