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 | 216 | arch/i386/boot/compressed/misc.c | char *d = (char *)__dest, *s = (char *)__src; |
d | 218 | 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 | 513 | arch/ppc/kernel/raw_printf.c | struct screen *d = &screen; |
d | 517 | arch/ppc/kernel/raw_printf.c | d->color = pccolor; |
d | 518 | arch/ppc/kernel/raw_printf.c | d->save_color = pccolor; |
d | 519 | arch/ppc/kernel/raw_printf.c | d->color_so = pccolor_so; |
d | 520 | arch/ppc/kernel/raw_printf.c | d->save_color_so = pccolor_so; |
d | 524 | arch/ppc/kernel/raw_printf.c | #define wrtchar(c, d) { \ |
d | 525 | arch/ppc/kernel/raw_printf.c | *(d->cp) = c; \ |
d | 526 | arch/ppc/kernel/raw_printf.c | d->cp++; \ |
d | 527 | arch/ppc/kernel/raw_printf.c | d->row++; \ |
d | 550 | arch/ppc/kernel/raw_printf.c | struct screen *d = &screen; |
d | 557 | arch/ppc/kernel/raw_printf.c | switch (d->state) { |
d | 564 | arch/ppc/kernel/raw_printf.c | d->state = ESC; |
d | 569 | arch/ppc/kernel/raw_printf.c | wrtchar(d->color | ' ', d); |
d | 570 | arch/ppc/kernel/raw_printf.c | } while (d->row % 8); |
d | 574 | arch/ppc/kernel/raw_printf.c | if (d->cp > base) { |
d | 575 | arch/ppc/kernel/raw_printf.c | d->cp--; |
d | 576 | arch/ppc/kernel/raw_printf.c | d->row--; |
d | 577 | arch/ppc/kernel/raw_printf.c | if (d->row < 0) |
d | 578 | arch/ppc/kernel/raw_printf.c | d->row += COL; /* prev column */ |
d | 583 | arch/ppc/kernel/raw_printf.c | d->cp -= d->row; |
d | 584 | arch/ppc/kernel/raw_printf.c | d->row = 0; |
d | 588 | arch/ppc/kernel/raw_printf.c | d->cp += COL; |
d | 595 | arch/ppc/kernel/raw_printf.c | if (d->so) { |
d | 596 | arch/ppc/kernel/raw_printf.c | wrtchar(d->color_so|(c<<8), d); |
d | 598 | arch/ppc/kernel/raw_printf.c | wrtchar(d->color | (c<<8), d); |
d | 600 | arch/ppc/kernel/raw_printf.c | if (d->row >= COL) |
d | 601 | arch/ppc/kernel/raw_printf.c | d->row = 0; |
d | 614 | arch/ppc/kernel/raw_printf.c | d->so = d->cx; |
d | 618 | arch/ppc/kernel/raw_printf.c | if (d->cp >= base + COL) |
d | 619 | arch/ppc/kernel/raw_printf.c | d->cp -= COL; |
d | 623 | arch/ppc/kernel/raw_printf.c | d->cp += COL; |
d | 627 | arch/ppc/kernel/raw_printf.c | d->cp++; |
d | 628 | arch/ppc/kernel/raw_printf.c | d->row++; |
d | 632 | arch/ppc/kernel/raw_printf.c | if (d->cp > base) { |
d | 633 | arch/ppc/kernel/raw_printf.c | d->cp--; |
d | 634 | arch/ppc/kernel/raw_printf.c | d->row--; |
d | 635 | arch/ppc/kernel/raw_printf.c | if (d->row < 0) |
d | 636 | arch/ppc/kernel/raw_printf.c | d->row += COL; /* prev column ??? */ |
d | 641 | arch/ppc/kernel/raw_printf.c | fillw(d->color|(' '<<8), d->cp, base + COL * ROW - d->cp); |
d | 645 | arch/ppc/kernel/raw_printf.c | fillw(d->color|(' '<<8), d->cp, COL - (d->cp - base) % COL); |
d | 649 | arch/ppc/kernel/raw_printf.c | if (d->cx > ROW) |
d | 650 | arch/ppc/kernel/raw_printf.c | d->cx = ROW; |
d | 651 | arch/ppc/kernel/raw_printf.c | if (d->cy > COL) |
d | 652 | arch/ppc/kernel/raw_printf.c | d->cy = COL; |
d | 653 | arch/ppc/kernel/raw_printf.c | if (d->cx == 0 || d->cy == 0) { |
d | 654 | arch/ppc/kernel/raw_printf.c | d->cp = base; |
d | 655 | arch/ppc/kernel/raw_printf.c | d->row = 0; |
d | 657 | arch/ppc/kernel/raw_printf.c | d->cp = base + (d->cx - 1) * COL + d->cy - 1; |
d | 658 | arch/ppc/kernel/raw_printf.c | d->row = d->cy - 1; |
d | 663 | arch/ppc/kernel/raw_printf.c | if (d->cx) |
d | 664 | arch/ppc/kernel/raw_printf.c | d->cx = 1; /* block */ |
d | 666 | arch/ppc/kernel/raw_printf.c | d->cx = 12; /* underline */ |
d | 668 | arch/ppc/kernel/raw_printf.c | outb(addr_6845+1, d->cx); |
d | 674 | arch/ppc/kernel/raw_printf.c | d->accp = &d->cy; |
d | 678 | arch/ppc/kernel/raw_printf.c | d->state = EBRACEQ; |
d | 682 | arch/ppc/kernel/raw_printf.c | i = (d->cp - base) / COL; |
d | 687 | arch/ppc/kernel/raw_printf.c | fillw(d->color|(' '<<8), base + i * COL, COL); |
d | 691 | arch/ppc/kernel/raw_printf.c | i = (d->cp - base) / COL; |
d | 694 | arch/ppc/kernel/raw_printf.c | fillw(d->color|(' '<<8), base + COL * (ROW - 1), COL); |
d | 699 | arch/ppc/kernel/raw_printf.c | *(d->accp) *= 10; |
d | 700 | arch/ppc/kernel/raw_printf.c | *(d->accp) += c - '0'; |
d | 705 | arch/ppc/kernel/raw_printf.c | d->state = NORMAL; |
d | 724 | arch/ppc/kernel/raw_printf.c | colp = ATTR_ADDR(d->color); |
d | 726 | arch/ppc/kernel/raw_printf.c | *colp = (*colp & 0xf0) | (d->cx); |
d | 730 | arch/ppc/kernel/raw_printf.c | colp = ATTR_ADDR(d->color); |
d | 732 | arch/ppc/kernel/raw_printf.c | *colp = (*colp & 0xf) | (d->cx << 4); |
d | 736 | arch/ppc/kernel/raw_printf.c | colp = ATTR_ADDR(d->color_so); |
d | 740 | arch/ppc/kernel/raw_printf.c | colp = ATTR_ADDR(d->color_so); |
d | 744 | arch/ppc/kernel/raw_printf.c | d->save_color = d->color; |
d | 745 | arch/ppc/kernel/raw_printf.c | d->save_color_so = d->color_so; |
d | 749 | arch/ppc/kernel/raw_printf.c | d->color = d->save_color; |
d | 750 | arch/ppc/kernel/raw_printf.c | d->color_so = d->save_color_so; |
d | 755 | arch/ppc/kernel/raw_printf.c | d->cx *= 10; |
d | 756 | arch/ppc/kernel/raw_printf.c | d->cx += c - '0'; |
d | 761 | arch/ppc/kernel/raw_printf.c | d->state = NORMAL; |
d | 768 | arch/ppc/kernel/raw_printf.c | fillw(d->color|(' '<<8), base, COL * ROW); |
d | 769 | arch/ppc/kernel/raw_printf.c | d->cp = base; |
d | 770 | arch/ppc/kernel/raw_printf.c | d->row = 0; |
d | 771 | arch/ppc/kernel/raw_printf.c | d->state = NORMAL; |
d | 774 | arch/ppc/kernel/raw_printf.c | d->state = EBRAC; |
d | 775 | arch/ppc/kernel/raw_printf.c | d->cx = 0; |
d | 776 | arch/ppc/kernel/raw_printf.c | d->cy = 0; |
d | 777 | arch/ppc/kernel/raw_printf.c | d->accp = &d->cx; |
d | 780 | arch/ppc/kernel/raw_printf.c | d->state = NORMAL; |
d | 785 | arch/ppc/kernel/raw_printf.c | if (d->cp >= base + (COL * ROW)) { /* scroll check */ |
d | 787 | arch/ppc/kernel/raw_printf.c | fillw(d->color|(' '<<8), base + COL * (ROW - 1), COL); |
d | 788 | arch/ppc/kernel/raw_printf.c | d->cp -= COL; |
d | 802 | arch/ppc/kernel/raw_printf.c | struct screen *d = &screen; |
d | 808 | arch/ppc/kernel/raw_printf.c | d->cp = Crtat = (u_short *)&ISA_mem[0x0B8000]; |
d | 811 | arch/ppc/kernel/raw_printf.c | fillw(pccolor|(' '<<8), d->cp, COL * ROW); |
d | 553 | drivers/cdrom/mcd.c | char a, b, c, d; |
d | 558 | drivers/cdrom/mcd.c | getValue(&d); |
d | 597 | drivers/cdrom/sbpcd.c | static int d=0; /* DriveStruct index: drive number */ |
d | 724 | drivers/cdrom/sbpcd.c | sprintf(buf, KERN_INFO "%s-%d [%02d]: ", major_name, d, msgnum); |
d | 899 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=0xFF; |
d | 1014 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=0; |
d | 1015 | drivers/cdrom/sbpcd.c | if (fam1_drive) D_S[d].status_bits=st|p_success; |
d | 1018 | drivers/cdrom/sbpcd.c | if (st&p_caddin_old) D_S[d].status_bits |= p_door_closed|p_caddy_in; |
d | 1019 | drivers/cdrom/sbpcd.c | if (st&p_spinning) D_S[d].status_bits |= p_spinning; |
d | 1020 | drivers/cdrom/sbpcd.c | if (st&p_check) D_S[d].status_bits |= p_check; |
d | 1021 | drivers/cdrom/sbpcd.c | if (st&p_success_old) D_S[d].status_bits |= p_success; |
d | 1022 | drivers/cdrom/sbpcd.c | if (st&p_busy_old) D_S[d].status_bits |= p_busy_new; |
d | 1023 | drivers/cdrom/sbpcd.c | if (st&p_disk_ok) D_S[d].status_bits |= p_disk_ok; |
d | 1027 | drivers/cdrom/sbpcd.c | D_S[d].status_bits |= p_success; |
d | 1028 | drivers/cdrom/sbpcd.c | if (st&p_caddin_old) D_S[d].status_bits |= p_disk_ok|p_caddy_in; |
d | 1029 | drivers/cdrom/sbpcd.c | if (st&p_spinning) D_S[d].status_bits |= p_spinning; |
d | 1030 | drivers/cdrom/sbpcd.c | if (st&p_check) D_S[d].status_bits |= p_check; |
d | 1031 | drivers/cdrom/sbpcd.c | if (st&p_busy_old) D_S[d].status_bits |= p_busy_new; |
d | 1032 | drivers/cdrom/sbpcd.c | if (st&p_lcs_door_closed) D_S[d].status_bits |= p_door_closed; |
d | 1033 | drivers/cdrom/sbpcd.c | if (st&p_lcs_door_locked) D_S[d].status_bits |= p_door_locked; |
d | 1037 | drivers/cdrom/sbpcd.c | D_S[d].status_bits |= p_success; |
d | 1038 | drivers/cdrom/sbpcd.c | if (st&p2_check) D_S[d].status_bits |= p1_check; |
d | 1039 | drivers/cdrom/sbpcd.c | if (st&p2_door_closed) D_S[d].status_bits |= p1_door_closed; |
d | 1040 | drivers/cdrom/sbpcd.c | if (st&p2_disk_in) D_S[d].status_bits |= p1_disk_in; |
d | 1041 | drivers/cdrom/sbpcd.c | if (st&p2_busy1) D_S[d].status_bits |= p1_busy; |
d | 1042 | drivers/cdrom/sbpcd.c | if (st&p2_busy2) D_S[d].status_bits |= p1_busy; |
d | 1043 | drivers/cdrom/sbpcd.c | if (st&p2_spinning) D_S[d].status_bits |= p1_spinning; |
d | 1044 | drivers/cdrom/sbpcd.c | if (st&p2_door_locked) D_S[d].status_bits |= p1_door_locked; |
d | 1045 | drivers/cdrom/sbpcd.c | if (st&p2_disk_ok) D_S[d].status_bits |= p1_disk_ok; |
d | 1050 | drivers/cdrom/sbpcd.c | D_S[d].status_bits |= p_success; |
d | 1051 | drivers/cdrom/sbpcd.c | if (st&p2_check) D_S[d].status_bits |= p1_check; |
d | 1052 | drivers/cdrom/sbpcd.c | if (st&p2_door_closed) D_S[d].status_bits |= p1_door_closed; |
d | 1053 | drivers/cdrom/sbpcd.c | if (st&p2_disk_in) D_S[d].status_bits |= p1_disk_in; |
d | 1054 | drivers/cdrom/sbpcd.c | if (st&p2_busy1) D_S[d].status_bits |= p1_busy; |
d | 1055 | drivers/cdrom/sbpcd.c | if (st&p2_busy2) D_S[d].status_bits |= p1_busy; |
d | 1056 | drivers/cdrom/sbpcd.c | if (st&p2_spinning) D_S[d].status_bits |= p1_spinning; |
d | 1057 | drivers/cdrom/sbpcd.c | if (st&p2_door_locked) D_S[d].status_bits |= p1_door_locked; |
d | 1058 | drivers/cdrom/sbpcd.c | if (st&p2_disk_ok) D_S[d].status_bits |= p1_disk_ok; |
d | 1070 | drivers/cdrom/sbpcd.c | D_S[d].n_bytes=1; |
d | 1081 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=p1_door_closed|p1_disk_in|p1_spinning|p1_disk_ok; |
d | 1082 | drivers/cdrom/sbpcd.c | else if (D_S[d].error_state==6) |
d | 1084 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=p1_door_closed|p1_disk_in; |
d | 1085 | drivers/cdrom/sbpcd.c | else if ((D_S[d].error_state!=2)||(D_S[d].b3!=0x3A)||(D_S[d].b4==0x00)) |
d | 1088 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=p1_door_closed; |
d | 1089 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
d | 1091 | drivers/cdrom/sbpcd.c | else if (D_S[d].b4==0x01) |
d | 1094 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=0; |
d | 1095 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
d | 1100 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=p1_door_closed; |
d | 1101 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
d | 1103 | drivers/cdrom/sbpcd.c | return (D_S[d].status_bits); |
d | 1133 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=0; |
d | 1139 | drivers/cdrom/sbpcd.c | msg(DBG_STA,"status_bits=%02X, i=%02X\n",D_S[d].status_bits,i); |
d | 1140 | drivers/cdrom/sbpcd.c | return (D_S[d].status_bits); |
d | 1190 | drivers/cdrom/sbpcd.c | D_S[d].error_byte=0; |
d | 1195 | drivers/cdrom/sbpcd.c | D_S[d].error_byte=infobuf[i]; |
d | 1196 | 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 | 1209 | drivers/cdrom/sbpcd.c | D_S[d].error_state=0; |
d | 1210 | drivers/cdrom/sbpcd.c | D_S[d].b3=0; |
d | 1211 | drivers/cdrom/sbpcd.c | D_S[d].b4=0; |
d | 1212 | drivers/cdrom/sbpcd.c | D_S[d].f_drv_error=0; |
d | 1218 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
d | 1297 | drivers/cdrom/sbpcd.c | D_S[d].error_state=infobuf[2]; |
d | 1298 | drivers/cdrom/sbpcd.c | D_S[d].b3=infobuf[3]; |
d | 1299 | drivers/cdrom/sbpcd.c | D_S[d].b4=infobuf[4]; |
d | 1300 | drivers/cdrom/sbpcd.c | if (D_S[d].f_drv_error) |
d | 1302 | drivers/cdrom/sbpcd.c | D_S[d].f_drv_error=0; |
d | 1304 | drivers/cdrom/sbpcd.c | D_S[d].error_state=2; |
d | 1306 | drivers/cdrom/sbpcd.c | return (-D_S[d].error_state-400); |
d | 1313 | drivers/cdrom/sbpcd.c | D_S[d].f_drv_error=1; |
d | 1315 | drivers/cdrom/sbpcd.c | D_S[d].error_state=2; |
d | 1347 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to CDi_stat_loop.\n"); |
d | 1356 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cc_ReadStatus.\n"); |
d | 1362 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to ResponseStatus.\n"); |
d | 1378 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cc_ReadError.\n"); |
d | 1380 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cmd_out OK.\n"); |
d | 1434 | drivers/cdrom/sbpcd.c | D_S[d].n_bytes=1; |
d | 1446 | drivers/cdrom/sbpcd.c | D_S[d].in_SpinUp = 1; |
d | 1475 | drivers/cdrom/sbpcd.c | D_S[d].in_SpinUp = 0; |
d | 1536 | drivers/cdrom/sbpcd.c | drvcmd[1]=D_S[d].speed_byte; |
d | 1537 | drivers/cdrom/sbpcd.c | drvcmd[2]=D_S[d].frmsiz>>8; |
d | 1538 | drivers/cdrom/sbpcd.c | drvcmd[3]=D_S[d].frmsiz&0x0FF; |
d | 1539 | drivers/cdrom/sbpcd.c | drvcmd[4]=D_S[d].f_XA; /* 1: XA */ |
d | 1540 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].type_byte; /* 0, 1, 3 */ |
d | 1541 | drivers/cdrom/sbpcd.c | drvcmd[6]=D_S[d].mode_xb_6; |
d | 1542 | drivers/cdrom/sbpcd.c | drvcmd[7]=D_S[d].mode_yb_7|D_S[d].volume_control; |
d | 1543 | drivers/cdrom/sbpcd.c | drvcmd[8]=D_S[d].mode_xb_8; |
d | 1544 | drivers/cdrom/sbpcd.c | drvcmd[9]=D_S[d].delay; |
d | 1559 | drivers/cdrom/sbpcd.c | D_S[d].speed_byte=0x02; /* 0x02: auto quad, 0x82: quad, 0x81: double, 0x80: single */ |
d | 1560 | drivers/cdrom/sbpcd.c | D_S[d].frmsiz=make16(infobuf[2],infobuf[3]); |
d | 1561 | drivers/cdrom/sbpcd.c | D_S[d].f_XA=infobuf[4]; |
d | 1562 | drivers/cdrom/sbpcd.c | if (D_S[d].f_XA==0) D_S[d].type_byte=0; |
d | 1563 | drivers/cdrom/sbpcd.c | else D_S[d].type_byte=1; |
d | 1564 | drivers/cdrom/sbpcd.c | D_S[d].mode_xb_6=infobuf[6]; |
d | 1565 | drivers/cdrom/sbpcd.c | D_S[d].mode_yb_7=1; |
d | 1566 | drivers/cdrom/sbpcd.c | D_S[d].mode_xb_8=infobuf[8]; |
d | 1567 | drivers/cdrom/sbpcd.c | D_S[d].delay=0; /* 0, 1, 2, 3 */ |
d | 1622 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~volume_bit; |
d | 1624 | drivers/cdrom/sbpcd.c | channel0=D_S[d].vol_chan0; |
d | 1625 | drivers/cdrom/sbpcd.c | volume0=D_S[d].vol_ctrl0; |
d | 1626 | drivers/cdrom/sbpcd.c | channel1=control1=D_S[d].vol_chan1; |
d | 1627 | drivers/cdrom/sbpcd.c | volume1=value1=D_S[d].vol_ctrl1; |
d | 1632 | drivers/cdrom/sbpcd.c | if (((D_S[d].drv_options&audio_mono)!=0)&&(D_S[d].drv_type>=drv_211)) |
d | 1701 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_300) |
d | 1713 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type<drv_211) |
d | 1746 | drivers/cdrom/sbpcd.c | else if (D_S[d].drv_type<drv_201) volume0=volume1=value0; |
d | 1748 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_201) |
d | 1753 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_211) |
d | 1767 | drivers/cdrom/sbpcd.c | D_S[d].volume_control=0; |
d | 1768 | drivers/cdrom/sbpcd.c | if (!volume0) D_S[d].volume_control|=0x10; |
d | 1769 | drivers/cdrom/sbpcd.c | if (!volume1) D_S[d].volume_control|=0x20; |
d | 1779 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= volume_bit; |
d | 1819 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
d | 1836 | drivers/cdrom/sbpcd.c | if (D_S[d].error_byte!=aud_12) return -501; |
d | 1844 | drivers/cdrom/sbpcd.c | if (!(D_S[d].drv_options&(speed_auto|speed_300|speed_150))) return (0); |
d | 1846 | drivers/cdrom/sbpcd.c | if (!(D_S[d].drv_options&speed_auto)) |
d | 1849 | drivers/cdrom/sbpcd.c | if (!(D_S[d].drv_options&speed_300)) speed=0; |
d | 1870 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=1; |
d | 1884 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state==audio_playing) return (-EINVAL); |
d | 1974 | drivers/cdrom/sbpcd.c | if (pau_res==3) return (cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end)); |
d | 1987 | drivers/cdrom/sbpcd.c | msg(DBG_LCK,"cc_LockDoor: %d (drive %d)\n", lock, d); |
d | 2075 | drivers/cdrom/sbpcd.c | msg(DBG_LCK,"cc_CloseTray (drive %d)\n", d); |
d | 2115 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~subq_bit; |
d | 2164 | 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 | 2165 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_run_tot=D_S[d].SubQ_run_trk=0; |
d | 2169 | drivers/cdrom/sbpcd.c | if (famT_drive) D_S[d].SubQ_ctl_adr=infobuf[1]; |
d | 2170 | drivers/cdrom/sbpcd.c | else D_S[d].SubQ_ctl_adr=swap_nibbles(infobuf[1]); |
d | 2171 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_trk=byt2bcd(infobuf[2]); |
d | 2172 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_pnt_idx=byt2bcd(infobuf[3]); |
d | 2176 | 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 | 2181 | 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 | 2182 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_whatisthis=infobuf[i+3]; |
d | 2183 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= subq_bit; |
d | 2193 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~frame_size_bit; |
d | 2217 | drivers/cdrom/sbpcd.c | D_S[d].sense_byte=0; |
d | 2218 | drivers/cdrom/sbpcd.c | if (fam1_drive) D_S[d].sense_byte=infobuf[i++]; |
d | 2221 | drivers/cdrom/sbpcd.c | if (infobuf[4]==0x01) D_S[d].xa_byte=0x20; |
d | 2222 | drivers/cdrom/sbpcd.c | else D_S[d].xa_byte=0; |
d | 2225 | drivers/cdrom/sbpcd.c | D_S[d].frame_size=make16(infobuf[i],infobuf[i+1]); |
d | 2231 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= frame_size_bit; |
d | 2242 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~frame_size_bit; |
d | 2244 | drivers/cdrom/sbpcd.c | D_S[d].frame_size=framesize; |
d | 2245 | drivers/cdrom/sbpcd.c | if (framesize==CD_FRAMESIZE_RAW) D_S[d].sense_byte=0x82; |
d | 2246 | drivers/cdrom/sbpcd.c | else D_S[d].sense_byte=0x00; |
d | 2249 | drivers/cdrom/sbpcd.c | D_S[d].sense_byte, D_S[d].frame_size); |
d | 2255 | drivers/cdrom/sbpcd.c | drvcmd[2]=D_S[d].sense_byte; |
d | 2256 | drivers/cdrom/sbpcd.c | drvcmd[3]=(D_S[d].frame_size>>8)&0xFF; |
d | 2257 | drivers/cdrom/sbpcd.c | drvcmd[4]=D_S[d].frame_size&0xFF; |
d | 2264 | drivers/cdrom/sbpcd.c | drvcmd[2]=(D_S[d].frame_size>>8)&0xFF; |
d | 2265 | drivers/cdrom/sbpcd.c | drvcmd[3]=D_S[d].frame_size&0xFF; |
d | 2279 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= frame_size_bit; |
d | 2293 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~volume_bit; |
d | 2369 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_201) |
d | 2371 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type<drv_300) |
d | 2376 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_211) |
d | 2396 | drivers/cdrom/sbpcd.c | D_S[d].volume_control=infobuf[7]; |
d | 2399 | drivers/cdrom/sbpcd.c | if (D_S[d].volume_control&0x10) vol0=0; |
d | 2401 | drivers/cdrom/sbpcd.c | if (D_S[d].volume_control&0x20) vol1=0; |
d | 2404 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan0=chan0; |
d | 2405 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl0=vol0; |
d | 2406 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan1=chan1; |
d | 2407 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl1=vol1; |
d | 2409 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan2=2; |
d | 2410 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl2=0xFF; |
d | 2411 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan3=3; |
d | 2412 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl3=0xFF; |
d | 2414 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= volume_bit; |
d | 2425 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~cd_size_bit; |
d | 2455 | 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 | 2456 | drivers/cdrom/sbpcd.c | else if (fam0_drive) D_S[d].CDsize_frm=make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])); |
d | 2458 | 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 | 2460 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= cd_size_bit; |
d | 2461 | drivers/cdrom/sbpcd.c | msg(DBG_000,"cc_ReadCapacity: %d frames.\n", D_S[d].CDsize_frm); |
d | 2469 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~toc_bit; |
d | 2489 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=0; |
d | 2499 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=0; |
d | 2510 | drivers/cdrom/sbpcd.c | D_S[d].xa_byte=infobuf[0]; |
d | 2513 | drivers/cdrom/sbpcd.c | D_S[d].first_session=infobuf[1]; |
d | 2514 | drivers/cdrom/sbpcd.c | D_S[d].last_session=infobuf[2]; |
d | 2515 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track=infobuf[3]; |
d | 2516 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track=infobuf[4]; |
d | 2517 | drivers/cdrom/sbpcd.c | if (D_S[d].first_session!=D_S[d].last_session) |
d | 2519 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=1; |
d | 2520 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7]))); |
d | 2523 | drivers/cdrom/sbpcd.c | if (D_S[d].first_session!=D_S[d].last_session) |
d | 2525 | drivers/cdrom/sbpcd.c | if (D_S[d].last_session<=20) |
d | 2526 | drivers/cdrom/sbpcd.c | zwanzig=D_S[d].last_session+1; |
d | 2528 | drivers/cdrom/sbpcd.c | for (count=D_S[d].first_session;count<zwanzig;count++) |
d | 2538 | drivers/cdrom/sbpcd.c | D_S[d].msf_multi_n[count]=make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7])); |
d | 2540 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= multisession_bit; |
d | 2551 | drivers/cdrom/sbpcd.c | D_S[d].size_msf=make32(make16(0,infobuf[2]),make16(infobuf[3],infobuf[4])); |
d | 2552 | drivers/cdrom/sbpcd.c | D_S[d].size_blk=msf2blk(D_S[d].size_msf); |
d | 2553 | drivers/cdrom/sbpcd.c | D_S[d].CDsize_frm=D_S[d].size_blk+1; |
d | 2557 | drivers/cdrom/sbpcd.c | D_S[d].size_msf=make32(make16(infobuf[8],infobuf[9]),make16(infobuf[10],infobuf[11])); |
d | 2558 | drivers/cdrom/sbpcd.c | D_S[d].size_blk=msf2blk(D_S[d].size_msf); |
d | 2559 | drivers/cdrom/sbpcd.c | D_S[d].CDsize_frm=D_S[d].size_blk+1; |
d | 2560 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track=infobuf[2]; |
d | 2561 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track=infobuf[3]; |
d | 2565 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track=infobuf[1]; |
d | 2566 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track=infobuf[2]; |
d | 2567 | drivers/cdrom/sbpcd.c | D_S[d].size_msf=make32(make16(0,infobuf[3]),make16(infobuf[4],infobuf[5])); |
d | 2568 | drivers/cdrom/sbpcd.c | D_S[d].size_blk=msf2blk(D_S[d].size_msf); |
d | 2569 | drivers/cdrom/sbpcd.c | if (famLV_drive) D_S[d].CDsize_frm=D_S[d].size_blk+1; |
d | 2571 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= toc_bit; |
d | 2573 | drivers/cdrom/sbpcd.c | D_S[d].xa_byte, |
d | 2574 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track, |
d | 2575 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track, |
d | 2576 | drivers/cdrom/sbpcd.c | D_S[d].size_msf); |
d | 2625 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_nixbyte=infobuf[0]; |
d | 2630 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]); |
d | 2633 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_number=infobuf[i++]; |
d | 2634 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_format=infobuf[i]; |
d | 2638 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_number=num; |
d | 2639 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_format=0; |
d | 2645 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_address=make32(make16(0,infobuf[i]), |
d | 2652 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_nixbyte, D_S[d].TocEnt_ctl_adr, |
d | 2653 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_number, D_S[d].TocEnt_format, |
d | 2654 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_address); |
d | 2685 | drivers/cdrom/sbpcd.c | if (fam1_drive) D_S[d].UPC_buf[i]=swap_nibbles(*p++); |
d | 2688 | drivers/cdrom/sbpcd.c | D_S[d].UPC_buf[i]=((*p++)<<4)&0xFF; |
d | 2689 | drivers/cdrom/sbpcd.c | D_S[d].UPC_buf[i] |= *p++; |
d | 2700 | drivers/cdrom/sbpcd.c | D_S[d].UPC_buf[6] &= 0xF0; |
d | 2718 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~upc_bit; |
d | 2787 | drivers/cdrom/sbpcd.c | D_S[d].UPC_ctl_adr=0; |
d | 2793 | drivers/cdrom/sbpcd.c | D_S[d].UPC_ctl_adr = (D_S[d].TocEnt_ctl_adr & 0xF0) | 0x02; |
d | 2796 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", D_S[d].UPC_buf[i]); |
d | 2797 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " (%02X)", D_S[d].UPC_ctl_adr); |
d | 2800 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= upc_bit; |
d | 2809 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=0; |
d | 2810 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=0; |
d | 2822 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=1; |
d | 2823 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[1]), |
d | 2836 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]), |
d | 2849 | drivers/cdrom/sbpcd.c | D_S[d].first_session=infobuf[2]; |
d | 2850 | drivers/cdrom/sbpcd.c | D_S[d].last_session=infobuf[3]; |
d | 2851 | drivers/cdrom/sbpcd.c | D_S[d].track_of_last_session=infobuf[6]; |
d | 2852 | drivers/cdrom/sbpcd.c | if (D_S[d].first_session!=D_S[d].last_session) |
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[9]),make16(infobuf[10],infobuf[11]))); |
d | 2861 | drivers/cdrom/sbpcd.c | msg(DBG_MUL,"MultiSession Info:%s (%d)\n", msgbuf, D_S[d].lba_multi); |
d | 2862 | drivers/cdrom/sbpcd.c | if (D_S[d].lba_multi>200) |
d | 2864 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=1; |
d | 2865 | drivers/cdrom/sbpcd.c | msg(DBG_MUL,"MultiSession base: %06X\n", D_S[d].lba_multi); |
d | 2882 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state!=audio_playing) return (-ENODATA); |
d | 2893 | drivers/cdrom/sbpcd.c | D_S[d].frame_size=CD_FRAMESIZE_SUB; |
d | 2976 | drivers/cdrom/sbpcd.c | CDo_command, type, D_S[d].drive_model, D_S[d].drv_id); |
d | 2992 | drivers/cdrom/sbpcd.c | msg(DBG_INI,"check_version: id=%d, d=%d.\n", D_S[d].drv_id, d); |
d | 2993 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=0; |
d | 3028 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[0]='C'; |
d | 3029 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[1]='R'; |
d | 3030 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[2]='-'; |
d | 3031 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[3]='5'; |
d | 3032 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[4]=infobuf[i++]; |
d | 3033 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]=infobuf[i++]; |
d | 3034 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[6]=0; |
d | 3035 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_fam1; |
d | 3037 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
d | 3042 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[0]='C'; |
d | 3043 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[1]='R'; |
d | 3044 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[2]='-'; |
d | 3045 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[3]='5'; |
d | 3046 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[4]='2'; |
d | 3047 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]='x'; |
d | 3048 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[6]=0; |
d | 3049 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_fam0; |
d | 3052 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
d | 3058 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[j]=infobuf[j]; |
d | 3059 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[8]=0; |
d | 3060 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_famL; |
d | 3063 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
d | 3069 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[j]=infobuf[j]; |
d | 3070 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[6]=0; |
d | 3071 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_famV; |
d | 3075 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
d | 3092 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
d | 3118 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[0]='C'; |
d | 3119 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[1]='D'; |
d | 3120 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[2]='2'; |
d | 3121 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[3]='0'; |
d | 3122 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[4]='0'; |
d | 3123 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]=infobuf[i++]; |
d | 3124 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[6]=infobuf[i++]; |
d | 3125 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[7]=0; |
d | 3126 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_fam2; |
d | 3130 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
d | 3134 | drivers/cdrom/sbpcd.c | for (j=1;j<=((D_S[d].drv_id==0)?3:1);j++) |
d | 3136 | drivers/cdrom/sbpcd.c | for (l=1;l<=((D_S[d].drv_id==0)?10:1);l++) |
d | 3142 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
d | 3148 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
d | 3175 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[0]='C'; |
d | 3176 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[1]='D'; |
d | 3177 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[2]='-'; |
d | 3178 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[3]='5'; |
d | 3179 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[4]='5'; |
d | 3180 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]=0; |
d | 3181 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_famT; |
d | 3185 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
d | 3187 | 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 | 3190 | drivers/cdrom/sbpcd.c | for (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j]; |
d | 3197 | drivers/cdrom/sbpcd.c | if (D_S[d].firmware_version[j]!=lcs_firm_e1[j]) break; |
d | 3198 | drivers/cdrom/sbpcd.c | if (j==4) D_S[d].drv_type=drv_e1; |
d | 3201 | drivers/cdrom/sbpcd.c | if (D_S[d].firmware_version[j]!=lcs_firm_f4[j]) break; |
d | 3202 | drivers/cdrom/sbpcd.c | if (j==4) D_S[d].drv_type=drv_f4; |
d | 3204 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type==drv_famL) ask_mail(); |
d | 3211 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[0]=infobuf[7]; |
d | 3212 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[1]=infobuf[8]; |
d | 3213 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[2]=infobuf[10]; |
d | 3214 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[3]=infobuf[11]; |
d | 3219 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[0]='0'; |
d | 3220 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[1]='.'; |
d | 3221 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[2]='0'+(j>>4); |
d | 3222 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[3]='0'+(j&0x0f); |
d | 3227 | drivers/cdrom/sbpcd.c | j = (D_S[d].firmware_version[0] & 0x0F) * 100 + |
d | 3228 | drivers/cdrom/sbpcd.c | (D_S[d].firmware_version[2] & 0x0F) *10 + |
d | 3229 | drivers/cdrom/sbpcd.c | (D_S[d].firmware_version[3] & 0x0F); |
d | 3232 | drivers/cdrom/sbpcd.c | if (j<200) D_S[d].drv_type=drv_199; |
d | 3233 | drivers/cdrom/sbpcd.c | else if (j<201) D_S[d].drv_type=drv_200; |
d | 3234 | drivers/cdrom/sbpcd.c | else if (j<210) D_S[d].drv_type=drv_201; |
d | 3235 | drivers/cdrom/sbpcd.c | else if (j<211) D_S[d].drv_type=drv_210; |
d | 3236 | drivers/cdrom/sbpcd.c | else if (j<300) D_S[d].drv_type=drv_211; |
d | 3237 | drivers/cdrom/sbpcd.c | else if (j>=300) D_S[d].drv_type=drv_300; |
d | 3241 | drivers/cdrom/sbpcd.c | if (j<100) D_S[d].drv_type=drv_099; |
d | 3244 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_100; |
d | 3250 | drivers/cdrom/sbpcd.c | if (D_S[d].drive_model[5]=='F') |
d | 3264 | drivers/cdrom/sbpcd.c | if (j==100) D_S[d].drv_type=drv_at; |
d | 3268 | drivers/cdrom/sbpcd.c | msg(DBG_LCS,"drive type %02X\n",D_S[d].drv_type); |
d | 3275 | drivers/cdrom/sbpcd.c | d=i; |
d | 3276 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
d | 3277 | drivers/cdrom/sbpcd.c | msg(DBG_DID,"drive %d (ID=%d) activated.\n", i, D_S[d].drv_id); |
d | 3407 | drivers/cdrom/sbpcd.c | D_S[d].drv_options=drv_pattern[j]; |
d | 3408 | drivers/cdrom/sbpcd.c | if (fam0L_drive) D_S[d].drv_options&=~(speed_auto|speed_300|speed_150); |
d | 3410 | drivers/cdrom/sbpcd.c | d, |
d | 3411 | drivers/cdrom/sbpcd.c | D_S[d].drv_id, |
d | 3412 | drivers/cdrom/sbpcd.c | D_S[d].drive_model, |
d | 3413 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version, |
d | 3549 | drivers/cdrom/sbpcd.c | i=msf2blk(D_S[d].pos_audio_end)-1; |
d | 3559 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~toc_bit; |
d | 3560 | drivers/cdrom/sbpcd.c | D_S[d].ored_ctl_adr=0; |
d | 3561 | drivers/cdrom/sbpcd.c | for (j=D_S[d].n_first_track;j<=D_S[d].n_last_track;j++) |
d | 3569 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].nixbyte=D_S[d].TocEnt_nixbyte; |
d | 3570 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].ctl_adr=D_S[d].TocEnt_ctl_adr; |
d | 3571 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].number=D_S[d].TocEnt_number; |
d | 3572 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].format=D_S[d].TocEnt_format; |
d | 3573 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].address=D_S[d].TocEnt_address; |
d | 3574 | drivers/cdrom/sbpcd.c | D_S[d].ored_ctl_adr |= D_S[d].TocEnt_ctl_adr; |
d | 3577 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].nixbyte=0; |
d | 3578 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].ctl_adr=0; |
d | 3579 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].number=CDROM_LEADOUT; |
d | 3580 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].format=0; |
d | 3581 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].address=D_S[d].size_msf; |
d | 3583 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= toc_bit; |
d | 3591 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_M1; |
d | 3636 | drivers/cdrom/sbpcd.c | if (D_S[d].f_multisession) D_S[d].sbp_bufsiz=1; /* possibly a weird PhotoCD */ |
d | 3637 | drivers/cdrom/sbpcd.c | else D_S[d].sbp_bufsiz=SBP_BUFFER_FRAMES; |
d | 3638 | drivers/cdrom/sbpcd.c | i=cc_ReadTocEntry(D_S[d].n_first_track); |
d | 3646 | drivers/cdrom/sbpcd.c | if ((fam0L_drive) && (D_S[d].xa_byte==0x20)) |
d | 3674 | drivers/cdrom/sbpcd.c | if (D_S[d].CD_changed==0xFF) |
d | 3676 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags=0; |
d | 3677 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 3688 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=1; |
d | 3697 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags=0; |
d | 3698 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 3706 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state!=audio_pausing) |
d | 3714 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state==audio_playing) seek_pos_audio_end(); |
d | 3715 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 3722 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags=0; |
d | 3723 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 3799 | drivers/cdrom/sbpcd.c | if (d!=i) switch_drive(i); |
d | 3826 | drivers/cdrom/sbpcd.c | switch (D_S[d].audio_state) |
d | 3835 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start=D_S[d].SubQ_run_tot; |
d | 3836 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=audio_pausing; |
d | 3839 | drivers/cdrom/sbpcd.c | i=cc_Seek(D_S[d].pos_audio_start,1); |
d | 3851 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state!=audio_pausing) return -EINVAL; |
d | 3853 | drivers/cdrom/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start, |
d | 3854 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_end); |
d | 3857 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=audio_playing; |
d | 3862 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state==audio_playing) |
d | 3868 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start=D_S[d].SubQ_run_tot; |
d | 3869 | drivers/cdrom/sbpcd.c | i=cc_Seek(D_S[d].pos_audio_start,1); |
d | 3875 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start = (msf.cdmsf_min0<<16) | |
d | 3878 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_end = (msf.cdmsf_min1<<16) | |
d | 3882 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
d | 3883 | drivers/cdrom/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
d | 3888 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=audio_playing; |
d | 3893 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state==audio_playing) |
d | 3908 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk0<D_S[d].n_first_track) return (-EINVAL); |
d | 3909 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk0>D_S[d].n_last_track) return (-EINVAL); |
d | 3911 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk1>D_S[d].n_last_track) ti.cdti_trk1=D_S[d].n_last_track; |
d | 3912 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start=D_S[d].TocBuffer[ti.cdti_trk0].address; |
d | 3913 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_end=D_S[d].TocBuffer[ti.cdti_trk1+1].address; |
d | 3914 | drivers/cdrom/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
d | 3918 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=audio_playing; |
d | 3923 | drivers/cdrom/sbpcd.c | tochdr.cdth_trk0=D_S[d].n_first_track; |
d | 3924 | drivers/cdrom/sbpcd.c | tochdr.cdth_trk1=D_S[d].n_last_track; |
d | 3936 | drivers/cdrom/sbpcd.c | if (i==CDROM_LEADOUT) i=D_S[d].n_last_track+1; |
d | 3937 | drivers/cdrom/sbpcd.c | else if (i<D_S[d].n_first_track||i>D_S[d].n_last_track) return (-EINVAL); |
d | 3938 | drivers/cdrom/sbpcd.c | tocentry.cdte_adr=D_S[d].TocBuffer[i].ctl_adr&0x0F; |
d | 3939 | drivers/cdrom/sbpcd.c | tocentry.cdte_ctrl=(D_S[d].TocBuffer[i].ctl_adr>>4)&0x0F; |
d | 3940 | drivers/cdrom/sbpcd.c | tocentry.cdte_datamode=D_S[d].TocBuffer[i].format; |
d | 3943 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.msf.minute=(D_S[d].TocBuffer[i].address>>16)&0x00FF; |
d | 3944 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.msf.second=(D_S[d].TocBuffer[i].address>>8)&0x00FF; |
d | 3945 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.msf.frame=D_S[d].TocBuffer[i].address&0x00FF; |
d | 3948 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.lba=msf2blk(D_S[d].TocBuffer[i].address); |
d | 3958 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 3964 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 3970 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 3976 | drivers/cdrom/sbpcd.c | if (D_S[d].open_count>1) return (-EBUSY); |
d | 3978 | drivers/cdrom/sbpcd.c | D_S[d].open_count=-9; /* to get it locked next time again */ |
d | 3983 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=0xFF; |
d | 3984 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags=0; |
d | 3985 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 3991 | drivers/cdrom/sbpcd.c | D_S[d].f_eject=arg; |
d | 3999 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan0=0; |
d | 4000 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl0=volctrl.channel0; |
d | 4001 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan1=1; |
d | 4002 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl1=volctrl.channel1; |
d | 4012 | drivers/cdrom/sbpcd.c | volctrl.channel0=D_S[d].vol_ctrl0; |
d | 4013 | drivers/cdrom/sbpcd.c | volctrl.channel1=D_S[d].vol_ctrl1; |
d | 4029 | drivers/cdrom/sbpcd.c | switch (D_S[d].audio_state) |
d | 4041 | drivers/cdrom/sbpcd.c | SC.cdsc_adr=D_S[d].SubQ_ctl_adr; |
d | 4042 | drivers/cdrom/sbpcd.c | SC.cdsc_ctrl=D_S[d].SubQ_ctl_adr>>4; |
d | 4043 | drivers/cdrom/sbpcd.c | SC.cdsc_trk=bcd2bin(D_S[d].SubQ_trk); |
d | 4044 | drivers/cdrom/sbpcd.c | SC.cdsc_ind=bcd2bin(D_S[d].SubQ_pnt_idx); |
d | 4047 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.lba=msf2blk(D_S[d].SubQ_run_tot); |
d | 4048 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.lba=msf2blk(D_S[d].SubQ_run_trk); |
d | 4052 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.msf.minute=(D_S[d].SubQ_run_tot>>16)&0x00FF; |
d | 4053 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.msf.second=(D_S[d].SubQ_run_tot>>8)&0x00FF; |
d | 4054 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.msf.frame=D_S[d].SubQ_run_tot&0x00FF; |
d | 4055 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.msf.minute=(D_S[d].SubQ_run_trk>>16)&0x00FF; |
d | 4056 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.msf.second=(D_S[d].SubQ_run_trk>>8)&0x00FF; |
d | 4057 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.msf.frame=D_S[d].SubQ_run_trk&0x00FF; |
d | 4071 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_M1; |
d | 4078 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_M2; |
d | 4083 | drivers/cdrom/sbpcd.c | if (D_S[d].sbp_audsiz>0) vfree(D_S[d].aud_buf); |
d | 4084 | drivers/cdrom/sbpcd.c | D_S[d].aud_buf=NULL; |
d | 4085 | drivers/cdrom/sbpcd.c | D_S[d].sbp_audsiz=arg; |
d | 4086 | drivers/cdrom/sbpcd.c | if (D_S[d].sbp_audsiz>0) |
d | 4088 | drivers/cdrom/sbpcd.c | D_S[d].aud_buf=(u_char *) vmalloc(D_S[d].sbp_audsiz*CD_FRAMESIZE_RAW); |
d | 4089 | drivers/cdrom/sbpcd.c | if (D_S[d].aud_buf==NULL) |
d | 4091 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"audio buffer (%d frames) not available.\n",D_S[d].sbp_audsiz); |
d | 4092 | drivers/cdrom/sbpcd.c | D_S[d].sbp_audsiz=0; |
d | 4094 | drivers/cdrom/sbpcd.c | else msg(DBG_INF,"audio buffer size: %d frames.\n",D_S[d].sbp_audsiz); |
d | 4096 | drivers/cdrom/sbpcd.c | return (D_S[d].sbp_audsiz); |
d | 4115 | drivers/cdrom/sbpcd.c | if (D_S[d].aud_buf==NULL) return (-EINVAL); |
d | 4119 | drivers/cdrom/sbpcd.c | if (read_audio.nframes>D_S[d].sbp_audsiz) return (-EINVAL); |
d | 4142 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_AU; |
d | 4229 | drivers/cdrom/sbpcd.c | p = D_S[d].aud_buf; |
d | 4276 | drivers/cdrom/sbpcd.c | D_S[d].status_bits); |
d | 4288 | drivers/cdrom/sbpcd.c | (u_char *) D_S[d].aud_buf, |
d | 4295 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_M1; |
d | 4312 | drivers/cdrom/sbpcd.c | lba2msf(D_S[d].lba_multi,&ms_info.addr.msf.minute); |
d | 4314 | drivers/cdrom/sbpcd.c | ms_info.addr.lba=D_S[d].lba_multi; |
d | 4316 | drivers/cdrom/sbpcd.c | if (D_S[d].f_multisession) ms_info.xa_flag=1; /* valid redirection address */ |
d | 4346 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 >= D_S[d].sbp_first_frame) && |
d | 4347 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 <= D_S[d].sbp_last_frame) ) |
d | 4349 | drivers/cdrom/sbpcd.c | offs = (CURRENT->sector - D_S[d].sbp_first_frame * 4) * 512; |
d | 4350 | drivers/cdrom/sbpcd.c | memcpy(CURRENT->buffer, D_S[d].sbp_buf + offs, 512); |
d | 4390 | drivers/cdrom/sbpcd.c | if (d!=i) switch_drive(i); |
d | 4458 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1; /* purge buffer */ |
d | 4459 | drivers/cdrom/sbpcd.c | D_S[d].sbp_current = 0; |
d | 4461 | drivers/cdrom/sbpcd.c | if (block+D_S[d].sbp_bufsiz <= D_S[d].CDsize_frm) |
d | 4462 | drivers/cdrom/sbpcd.c | D_S[d].sbp_read_frames = D_S[d].sbp_bufsiz; |
d | 4465 | drivers/cdrom/sbpcd.c | D_S[d].sbp_read_frames=D_S[d].CDsize_frm-block; |
d | 4467 | drivers/cdrom/sbpcd.c | if (D_S[d].sbp_read_frames < 1) |
d | 4470 | drivers/cdrom/sbpcd.c | block, D_S[d].CDsize_frm); |
d | 4471 | drivers/cdrom/sbpcd.c | D_S[d].sbp_read_frames=1; |
d | 4484 | drivers/cdrom/sbpcd.c | drvcmd[4]=D_S[d].sbp_read_frames>>8; |
d | 4485 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].sbp_read_frames&0xff; |
d | 4491 | drivers/cdrom/sbpcd.c | if (D_S[d].xa_byte==0x20) |
d | 4498 | drivers/cdrom/sbpcd.c | drvcmd[4]=(D_S[d].sbp_read_frames>>8)&0x0ff; |
d | 4499 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].sbp_read_frames&0x0ff; |
d | 4504 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_201) |
d | 4517 | drivers/cdrom/sbpcd.c | drvcmd[4]=(D_S[d].sbp_read_frames>>8)&0x0ff; |
d | 4518 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].sbp_read_frames&0x0ff; |
d | 4519 | drivers/cdrom/sbpcd.c | drvcmd[6]=(D_S[d].drv_type<drv_201)?0:2; /* flag "lba or msf-bcd format" */ |
d | 4526 | drivers/cdrom/sbpcd.c | drvcmd[5]=(D_S[d].sbp_read_frames>>8)&0x0ff; |
d | 4527 | drivers/cdrom/sbpcd.c | drvcmd[6]=D_S[d].sbp_read_frames&0x0ff; |
d | 4533 | drivers/cdrom/sbpcd.c | drvcmd[4]=(D_S[d].sbp_read_frames>>8)&0x0ff; |
d | 4534 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].sbp_read_frames&0x0ff; |
d | 4544 | drivers/cdrom/sbpcd.c | drvcmd[7]=(D_S[d].sbp_read_frames>>8)&0x0ff; |
d | 4545 | drivers/cdrom/sbpcd.c | drvcmd[8]=D_S[d].sbp_read_frames&0x0ff; |
d | 4586 | drivers/cdrom/sbpcd.c | if (D_S[d].f_multisession) max_latency=9*HZ; |
d | 4590 | drivers/cdrom/sbpcd.c | for (frame=0;frame<D_S[d].sbp_read_frames&&!error_flag; frame++) |
d | 4600 | drivers/cdrom/sbpcd.c | if (D_S[d].f_multisession) try=maxtim_data*4; |
d | 4645 | drivers/cdrom/sbpcd.c | if ((D_S[d].ored_ctl_adr&0x40)==0) |
d | 4654 | drivers/cdrom/sbpcd.c | p = D_S[d].sbp_buf + frame * CD_FRAMESIZE; |
d | 4659 | drivers/cdrom/sbpcd.c | D_S[d].sbp_current++; |
d | 4730 | drivers/cdrom/sbpcd.c | D_S[d].error_state=infobuf[2]; |
d | 4731 | drivers/cdrom/sbpcd.c | D_S[d].b3=infobuf[3]; |
d | 4732 | drivers/cdrom/sbpcd.c | D_S[d].b4=infobuf[4]; |
d | 4802 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"bad cc_ReadStatus after read: %02X\n", D_S[d].status_bits); |
d | 4816 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1; /* purge buffer */ |
d | 4817 | drivers/cdrom/sbpcd.c | D_S[d].sbp_current = 0; |
d | 4822 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame = CURRENT -> sector / 4; |
d | 4823 | drivers/cdrom/sbpcd.c | D_S[d].sbp_last_frame = D_S[d].sbp_first_frame + D_S[d].sbp_read_frames - 1; |
d | 4880 | drivers/cdrom/sbpcd.c | if (famT_drive) msg(DBG_TEA,"sbpcd_open: status %02X\n", D_S[d].status_bits); |
d | 4884 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
d | 4899 | drivers/cdrom/sbpcd.c | D_S[d].open_count,D_S[d].open_count+1); |
d | 4900 | drivers/cdrom/sbpcd.c | if (++D_S[d].open_count<=1) |
d | 4903 | drivers/cdrom/sbpcd.c | D_S[d].open_count=1; |
d | 4907 | drivers/cdrom/sbpcd.c | if ((D_S[d].ored_ctl_adr&0x40)==0) |
d | 4929 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1; |
d | 4938 | drivers/cdrom/sbpcd.c | D_S[d].open_count,D_S[d].open_count-1); |
d | 4939 | drivers/cdrom/sbpcd.c | if (D_S[d].open_count>-2) /* CDROMEJECT may have been done */ |
d | 4941 | drivers/cdrom/sbpcd.c | if (--D_S[d].open_count<=0) |
d | 4944 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state!=audio_playing) |
d | 4945 | drivers/cdrom/sbpcd.c | if (D_S[d].f_eject) cc_SpinDown(); |
d | 4946 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~cd_size_bit; |
d | 4947 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
d | 5194 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame = -1; /* First frame in buffer */ |
d | 5195 | drivers/cdrom/sbpcd.c | D_S[d].sbp_last_frame = -1; /* Last frame in buffer */ |
d | 5196 | drivers/cdrom/sbpcd.c | D_S[d].sbp_read_frames = 0; /* Number of frames being read to buffer */ |
d | 5197 | drivers/cdrom/sbpcd.c | D_S[d].sbp_current = 0; /* Frame being currently read */ |
d | 5198 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=1; |
d | 5199 | drivers/cdrom/sbpcd.c | D_S[d].frame_size=CD_FRAMESIZE; |
d | 5200 | drivers/cdrom/sbpcd.c | D_S[d].f_eject=0; |
d | 5202 | drivers/cdrom/sbpcd.c | if (!fam0_drive) D_S[d].f_eject=1; |
d | 5220 | drivers/cdrom/sbpcd.c | D_S[d].error_byte); |
d | 5221 | drivers/cdrom/sbpcd.c | if (D_S[d].error_byte==aud_12) |
d | 5230 | drivers/cdrom/sbpcd.c | D_S[d].error_byte); |
d | 5237 | drivers/cdrom/sbpcd.c | if (i>=0) D_S[d].CD_changed=1; |
d | 5371 | drivers/cdrom/sbpcd.c | msg(DBG_CHK,"media_check: %02X\n",D_S[d].status_bits); |
d | 5377 | drivers/cdrom/sbpcd.c | if (D_S[d].CD_changed==0xFF) msg(DBG_CHK,"media_check: \"changed\" assumed.\n"); |
d | 5382 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=0xFF; |
d | 5387 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
d | 5388 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=0xFF; |
d | 5393 | drivers/cdrom/sbpcd.c | if (D_S[d].CD_changed==0xFF) |
d | 5395 | 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 | 299 | drivers/char/console.c | return (i < MAX_NR_CONSOLES && vc_cons[i].d); |
d | 306 | drivers/char/console.c | if (!vc_cons[i].d) { |
d | 325 | drivers/char/console.c | vc_cons[i].d = (struct vc_data *) p; |
d | 329 | drivers/char/console.c | vc_cons[i].d->vc_kmalloced = 1; |
d | 330 | drivers/char/console.c | vc_cons[i].d->vc_screenbuf_size = video_screen_size; |
d | 442 | drivers/char/console.c | kfree_s(vc_cons[currcons].d, structsize); |
d | 443 | drivers/char/console.c | vc_cons[currcons].d = 0; |
d | 530 | drivers/char/console.c | unsigned short * d = (unsigned short *) video_mem_base; |
d | 539 | drivers/char/console.c | scr_writew(scr_readw(d++),s++); |
d | 595 | drivers/char/console.c | unsigned short * d = (unsigned short *) video_mem_start; |
d | 602 | drivers/char/console.c | scr_writew(scr_readw(s++),d++); |
d | 607 | drivers/char/console.c | scr_writew(video_erase_char, d++); |
d | 616 | drivers/char/console.c | unsigned short * d; |
d | 619 | drivers/char/console.c | d = (unsigned short *) (scr_end - video_size_row); |
d | 623 | drivers/char/console.c | scr_writew(video_erase_char, d++); |
d | 630 | drivers/char/console.c | unsigned short * d = (unsigned short *) (origin+video_size_row*t); |
d | 636 | drivers/char/console.c | scr_writew(scr_readw(s++), d++); |
d | 641 | drivers/char/console.c | scr_writew(video_erase_char, d++); |
d | 649 | drivers/char/console.c | unsigned short *d, *s; |
d | 654 | drivers/char/console.c | d = (unsigned short *) (origin+video_size_row*b); |
d | 659 | drivers/char/console.c | scr_writew(scr_readw(--s), --d); |
d | 664 | drivers/char/console.c | scr_writew(video_erase_char, --d); |
d | 1925 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_red[j] ; |
d | 1926 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_grn[j] ; |
d | 1927 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_blu[j] ; |
d | 2010 | drivers/char/console.c | vc_cons[currcons].d = (struct vc_data *) kmem_start; |
d | 2020 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_red[j] ; |
d | 2021 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_grn[j] ; |
d | 2022 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_blu[j] ; |
d | 71 | drivers/char/console_struct.h | struct vc_data *d; |
d | 80 | drivers/char/console_struct.h | #define screenbuf_size (vc_cons[currcons].d->vc_screenbuf_size) |
d | 81 | drivers/char/console_struct.h | #define origin (vc_cons[currcons].d->vc_origin) |
d | 82 | drivers/char/console_struct.h | #define scr_end (vc_cons[currcons].d->vc_scr_end) |
d | 83 | drivers/char/console_struct.h | #define pos (vc_cons[currcons].d->vc_pos) |
d | 84 | drivers/char/console_struct.h | #define top (vc_cons[currcons].d->vc_top) |
d | 85 | drivers/char/console_struct.h | #define bottom (vc_cons[currcons].d->vc_bottom) |
d | 86 | drivers/char/console_struct.h | #define x (vc_cons[currcons].d->vc_x) |
d | 87 | drivers/char/console_struct.h | #define y (vc_cons[currcons].d->vc_y) |
d | 88 | drivers/char/console_struct.h | #define vc_state (vc_cons[currcons].d->vc_state) |
d | 89 | drivers/char/console_struct.h | #define npar (vc_cons[currcons].d->vc_npar) |
d | 90 | drivers/char/console_struct.h | #define par (vc_cons[currcons].d->vc_par) |
d | 91 | drivers/char/console_struct.h | #define ques (vc_cons[currcons].d->vc_ques) |
d | 92 | drivers/char/console_struct.h | #define attr (vc_cons[currcons].d->vc_attr) |
d | 93 | drivers/char/console_struct.h | #define saved_x (vc_cons[currcons].d->vc_saved_x) |
d | 94 | drivers/char/console_struct.h | #define saved_y (vc_cons[currcons].d->vc_saved_y) |
d | 95 | drivers/char/console_struct.h | #define translate (vc_cons[currcons].d->vc_translate) |
d | 96 | drivers/char/console_struct.h | #define G0_charset (vc_cons[currcons].d->vc_G0_charset) |
d | 97 | drivers/char/console_struct.h | #define G1_charset (vc_cons[currcons].d->vc_G1_charset) |
d | 98 | drivers/char/console_struct.h | #define saved_G0 (vc_cons[currcons].d->vc_saved_G0) |
d | 99 | drivers/char/console_struct.h | #define saved_G1 (vc_cons[currcons].d->vc_saved_G1) |
d | 100 | drivers/char/console_struct.h | #define utf (vc_cons[currcons].d->vc_utf) |
d | 101 | drivers/char/console_struct.h | #define utf_count (vc_cons[currcons].d->vc_utf_count) |
d | 102 | drivers/char/console_struct.h | #define utf_char (vc_cons[currcons].d->vc_utf_char) |
d | 103 | drivers/char/console_struct.h | #define video_mem_start (vc_cons[currcons].d->vc_video_mem_start) |
d | 104 | drivers/char/console_struct.h | #define video_mem_end (vc_cons[currcons].d->vc_video_mem_end) |
d | 105 | drivers/char/console_struct.h | #define video_erase_char (vc_cons[currcons].d->vc_video_erase_char) |
d | 106 | drivers/char/console_struct.h | #define disp_ctrl (vc_cons[currcons].d->vc_disp_ctrl) |
d | 107 | drivers/char/console_struct.h | #define toggle_meta (vc_cons[currcons].d->vc_toggle_meta) |
d | 108 | drivers/char/console_struct.h | #define decscnm (vc_cons[currcons].d->vc_decscnm) |
d | 109 | drivers/char/console_struct.h | #define decom (vc_cons[currcons].d->vc_decom) |
d | 110 | drivers/char/console_struct.h | #define decawm (vc_cons[currcons].d->vc_decawm) |
d | 111 | drivers/char/console_struct.h | #define deccm (vc_cons[currcons].d->vc_deccm) |
d | 112 | drivers/char/console_struct.h | #define decim (vc_cons[currcons].d->vc_decim) |
d | 113 | drivers/char/console_struct.h | #define deccolm (vc_cons[currcons].d->vc_deccolm) |
d | 114 | drivers/char/console_struct.h | #define need_wrap (vc_cons[currcons].d->vc_need_wrap) |
d | 115 | drivers/char/console_struct.h | #define has_scrolled (vc_cons[currcons].d->vc_has_scrolled) |
d | 116 | drivers/char/console_struct.h | #define kmalloced (vc_cons[currcons].d->vc_kmalloced) |
d | 117 | drivers/char/console_struct.h | #define report_mouse (vc_cons[currcons].d->vc_report_mouse) |
d | 118 | drivers/char/console_struct.h | #define color (vc_cons[currcons].d->vc_color) |
d | 119 | drivers/char/console_struct.h | #define s_color (vc_cons[currcons].d->vc_s_color) |
d | 120 | drivers/char/console_struct.h | #define def_color (vc_cons[currcons].d->vc_def_color) |
d | 123 | drivers/char/console_struct.h | #define charset (vc_cons[currcons].d->vc_charset) |
d | 124 | drivers/char/console_struct.h | #define s_charset (vc_cons[currcons].d->vc_s_charset) |
d | 125 | drivers/char/console_struct.h | #define intensity (vc_cons[currcons].d->vc_intensity) |
d | 126 | drivers/char/console_struct.h | #define underline (vc_cons[currcons].d->vc_underline) |
d | 127 | drivers/char/console_struct.h | #define blink (vc_cons[currcons].d->vc_blink) |
d | 128 | drivers/char/console_struct.h | #define reverse (vc_cons[currcons].d->vc_reverse) |
d | 129 | drivers/char/console_struct.h | #define s_intensity (vc_cons[currcons].d->vc_s_intensity) |
d | 130 | drivers/char/console_struct.h | #define s_underline (vc_cons[currcons].d->vc_s_underline) |
d | 131 | drivers/char/console_struct.h | #define s_blink (vc_cons[currcons].d->vc_s_blink) |
d | 132 | drivers/char/console_struct.h | #define s_reverse (vc_cons[currcons].d->vc_s_reverse) |
d | 133 | drivers/char/console_struct.h | #define ulcolor (vc_cons[currcons].d->vc_ulcolor) |
d | 134 | drivers/char/console_struct.h | #define halfcolor (vc_cons[currcons].d->vc_halfcolor) |
d | 135 | drivers/char/console_struct.h | #define tab_stop (vc_cons[currcons].d->vc_tab_stop) |
d | 136 | drivers/char/console_struct.h | #define palette (vc_cons[currcons].d->vc_palette) |
d | 137 | drivers/char/console_struct.h | #define bell_pitch (vc_cons[currcons].d->vc_bell_pitch) |
d | 138 | drivers/char/console_struct.h | #define bell_duration (vc_cons[currcons].d->vc_bell_duration) |
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 | 481 | drivers/char/random.c | __u32 a, b, c, d; |
d | 486 | drivers/char/random.c | d = buf[3]; |
d | 488 | drivers/char/random.c | MD5STEP(F1, a, b, c, d, in[ 0]+0xd76aa478, 7); |
d | 489 | drivers/char/random.c | MD5STEP(F1, d, a, b, c, in[ 1]+0xe8c7b756, 12); |
d | 490 | drivers/char/random.c | MD5STEP(F1, c, d, a, b, in[ 2]+0x242070db, 17); |
d | 491 | drivers/char/random.c | MD5STEP(F1, b, c, d, a, in[ 3]+0xc1bdceee, 22); |
d | 492 | drivers/char/random.c | MD5STEP(F1, a, b, c, d, in[ 4]+0xf57c0faf, 7); |
d | 493 | drivers/char/random.c | MD5STEP(F1, d, a, b, c, in[ 5]+0x4787c62a, 12); |
d | 494 | drivers/char/random.c | MD5STEP(F1, c, d, a, b, in[ 6]+0xa8304613, 17); |
d | 495 | drivers/char/random.c | MD5STEP(F1, b, c, d, a, in[ 7]+0xfd469501, 22); |
d | 496 | drivers/char/random.c | MD5STEP(F1, a, b, c, d, in[ 8]+0x698098d8, 7); |
d | 497 | drivers/char/random.c | MD5STEP(F1, d, a, b, c, in[ 9]+0x8b44f7af, 12); |
d | 498 | drivers/char/random.c | MD5STEP(F1, c, d, a, b, in[10]+0xffff5bb1, 17); |
d | 499 | drivers/char/random.c | MD5STEP(F1, b, c, d, a, in[11]+0x895cd7be, 22); |
d | 500 | drivers/char/random.c | MD5STEP(F1, a, b, c, d, in[12]+0x6b901122, 7); |
d | 501 | drivers/char/random.c | MD5STEP(F1, d, a, b, c, in[13]+0xfd987193, 12); |
d | 502 | drivers/char/random.c | MD5STEP(F1, c, d, a, b, in[14]+0xa679438e, 17); |
d | 503 | drivers/char/random.c | MD5STEP(F1, b, c, d, a, in[15]+0x49b40821, 22); |
d | 505 | drivers/char/random.c | MD5STEP(F2, a, b, c, d, in[ 1]+0xf61e2562, 5); |
d | 506 | drivers/char/random.c | MD5STEP(F2, d, a, b, c, in[ 6]+0xc040b340, 9); |
d | 507 | drivers/char/random.c | MD5STEP(F2, c, d, a, b, in[11]+0x265e5a51, 14); |
d | 508 | drivers/char/random.c | MD5STEP(F2, b, c, d, a, in[ 0]+0xe9b6c7aa, 20); |
d | 509 | drivers/char/random.c | MD5STEP(F2, a, b, c, d, in[ 5]+0xd62f105d, 5); |
d | 510 | drivers/char/random.c | MD5STEP(F2, d, a, b, c, in[10]+0x02441453, 9); |
d | 511 | drivers/char/random.c | MD5STEP(F2, c, d, a, b, in[15]+0xd8a1e681, 14); |
d | 512 | drivers/char/random.c | MD5STEP(F2, b, c, d, a, in[ 4]+0xe7d3fbc8, 20); |
d | 513 | drivers/char/random.c | MD5STEP(F2, a, b, c, d, in[ 9]+0x21e1cde6, 5); |
d | 514 | drivers/char/random.c | MD5STEP(F2, d, a, b, c, in[14]+0xc33707d6, 9); |
d | 515 | drivers/char/random.c | MD5STEP(F2, c, d, a, b, in[ 3]+0xf4d50d87, 14); |
d | 516 | drivers/char/random.c | MD5STEP(F2, b, c, d, a, in[ 8]+0x455a14ed, 20); |
d | 517 | drivers/char/random.c | MD5STEP(F2, a, b, c, d, in[13]+0xa9e3e905, 5); |
d | 518 | drivers/char/random.c | MD5STEP(F2, d, a, b, c, in[ 2]+0xfcefa3f8, 9); |
d | 519 | drivers/char/random.c | MD5STEP(F2, c, d, a, b, in[ 7]+0x676f02d9, 14); |
d | 520 | drivers/char/random.c | MD5STEP(F2, b, c, d, a, in[12]+0x8d2a4c8a, 20); |
d | 522 | drivers/char/random.c | MD5STEP(F3, a, b, c, d, in[ 5]+0xfffa3942, 4); |
d | 523 | drivers/char/random.c | MD5STEP(F3, d, a, b, c, in[ 8]+0x8771f681, 11); |
d | 524 | drivers/char/random.c | MD5STEP(F3, c, d, a, b, in[11]+0x6d9d6122, 16); |
d | 525 | drivers/char/random.c | MD5STEP(F3, b, c, d, a, in[14]+0xfde5380c, 23); |
d | 526 | drivers/char/random.c | MD5STEP(F3, a, b, c, d, in[ 1]+0xa4beea44, 4); |
d | 527 | drivers/char/random.c | MD5STEP(F3, d, a, b, c, in[ 4]+0x4bdecfa9, 11); |
d | 528 | drivers/char/random.c | MD5STEP(F3, c, d, a, b, in[ 7]+0xf6bb4b60, 16); |
d | 529 | drivers/char/random.c | MD5STEP(F3, b, c, d, a, in[10]+0xbebfbc70, 23); |
d | 530 | drivers/char/random.c | MD5STEP(F3, a, b, c, d, in[13]+0x289b7ec6, 4); |
d | 531 | drivers/char/random.c | MD5STEP(F3, d, a, b, c, in[ 0]+0xeaa127fa, 11); |
d | 532 | drivers/char/random.c | MD5STEP(F3, c, d, a, b, in[ 3]+0xd4ef3085, 16); |
d | 533 | drivers/char/random.c | MD5STEP(F3, b, c, d, a, in[ 6]+0x04881d05, 23); |
d | 534 | drivers/char/random.c | MD5STEP(F3, a, b, c, d, in[ 9]+0xd9d4d039, 4); |
d | 535 | drivers/char/random.c | MD5STEP(F3, d, a, b, c, in[12]+0xe6db99e5, 11); |
d | 536 | drivers/char/random.c | MD5STEP(F3, c, d, a, b, in[15]+0x1fa27cf8, 16); |
d | 537 | drivers/char/random.c | MD5STEP(F3, b, c, d, a, in[ 2]+0xc4ac5665, 23); |
d | 539 | drivers/char/random.c | MD5STEP(F4, a, b, c, d, in[ 0]+0xf4292244, 6); |
d | 540 | drivers/char/random.c | MD5STEP(F4, d, a, b, c, in[ 7]+0x432aff97, 10); |
d | 541 | drivers/char/random.c | MD5STEP(F4, c, d, a, b, in[14]+0xab9423a7, 15); |
d | 542 | drivers/char/random.c | MD5STEP(F4, b, c, d, a, in[ 5]+0xfc93a039, 21); |
d | 543 | drivers/char/random.c | MD5STEP(F4, a, b, c, d, in[12]+0x655b59c3, 6); |
d | 544 | drivers/char/random.c | MD5STEP(F4, d, a, b, c, in[ 3]+0x8f0ccc92, 10); |
d | 545 | drivers/char/random.c | MD5STEP(F4, c, d, a, b, in[10]+0xffeff47d, 15); |
d | 546 | drivers/char/random.c | MD5STEP(F4, b, c, d, a, in[ 1]+0x85845dd1, 21); |
d | 547 | drivers/char/random.c | MD5STEP(F4, a, b, c, d, in[ 8]+0x6fa87e4f, 6); |
d | 548 | drivers/char/random.c | MD5STEP(F4, d, a, b, c, in[15]+0xfe2ce6e0, 10); |
d | 549 | drivers/char/random.c | MD5STEP(F4, c, d, a, b, in[ 6]+0xa3014314, 15); |
d | 550 | drivers/char/random.c | MD5STEP(F4, b, c, d, a, in[13]+0x4e0811a1, 21); |
d | 551 | drivers/char/random.c | MD5STEP(F4, a, b, c, d, in[ 4]+0xf7537e82, 6); |
d | 552 | drivers/char/random.c | MD5STEP(F4, d, a, b, c, in[11]+0xbd3af235, 10); |
d | 553 | drivers/char/random.c | MD5STEP(F4, c, d, a, b, in[ 2]+0x2ad7d2bb, 15); |
d | 554 | drivers/char/random.c | MD5STEP(F4, b, c, d, a, in[ 9]+0xeb86d391, 21); |
d | 559 | 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 | 1325 | drivers/char/tty_io.c | char *c, *d; |
d | 1335 | drivers/char/tty_io.c | d = (char *)(ts->tasks+n); |
d | 1337 | 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 | 242 | drivers/net/net_init.c | struct device *d = dev_base; |
d | 269 | drivers/net/net_init.c | while (d->next) |
d | 270 | drivers/net/net_init.c | d = d->next; |
d | 271 | drivers/net/net_init.c | d->next = dev; |
d | 283 | drivers/net/net_init.c | struct device *d = dev_base; |
d | 310 | drivers/net/net_init.c | while(d && (net_alias_nextdev(d) != dev)) /* skip aliases */ |
d | 311 | drivers/net/net_init.c | d = net_alias_nextdev(d); |
d | 313 | drivers/net/net_init.c | if (d && (net_alias_nextdev(d) == dev)) |
d | 318 | drivers/net/net_init.c | net_alias_nextdev_set(d, net_alias_nextdev(dev)); |
d | 325 | drivers/net/net_init.c | while (d && (d->next != dev)) |
d | 326 | drivers/net/net_init.c | d = d->next; |
d | 328 | drivers/net/net_init.c | if (d && (d->next == dev)) |
d | 330 | 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 | 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 | 92 | include/asm-mips/io.h | #define eth_io_copy_and_sum(a,b,c,d) eth_copy_and_sum((a),(void *)(b),(c),(d)) |
d | 1232 | include/asm-mips/unistd.h | #define _syscall4(type,name,atype,a,btype,b,ctype,c,dtype,d) \ |
d | 1233 | include/asm-mips/unistd.h | type name (atype a, btype b, ctype c, dtype d) \ |
d | 1247 | include/asm-mips/unistd.h | "r" ((long)(d)) \ |
d | 1255 | include/asm-mips/unistd.h | #define _syscall5(type,name,atype,a,btype,b,ctype,c,dtype,d,etype,e) \ |
d | 1256 | include/asm-mips/unistd.h | type name (atype a,btype b,ctype c,dtype d,etype e) \ |
d | 1271 | include/asm-mips/unistd.h | "r" ((long)(d)), \ |
d | 133 | include/asm-sparc/checksum.h | #define csum_partial_copy_fromuser(s, d, l, w) \ |
d | 134 | include/asm-sparc/checksum.h | csum_partial_copy((char *) (s), (d), (l), (w)) |
d | 33 | include/asm-sparc/openprom.h | int (*v2_inst2pkg)(int d); /* Convert ihandle to phandle */ |
d | 42 | include/asm-sparc/openprom.h | void (*v2_dev_close)(int d); |
d | 43 | include/asm-sparc/openprom.h | int (*v2_dev_read)(int d, char *buf, int nbytes); |
d | 44 | include/asm-sparc/openprom.h | int (*v2_dev_write)(int d, char *buf, int nbytes); |
d | 45 | include/asm-sparc/openprom.h | void (*v2_dev_seek)(int d, int hi, int lo); |
d | 135 | 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 | 220 | include/linux/sbpcd.h | #define upc_valid (D_S[d].diskstate_flags&upc_bit) |
d | 221 | include/linux/sbpcd.h | #define volume_valid (D_S[d].diskstate_flags&volume_bit) |
d | 222 | include/linux/sbpcd.h | #define toc_valid (D_S[d].diskstate_flags&toc_bit) |
d | 223 | include/linux/sbpcd.h | #define cd_size_valid (D_S[d].diskstate_flags&cd_size_bit) |
d | 224 | include/linux/sbpcd.h | #define subq_valid (D_S[d].diskstate_flags&subq_bit) |
d | 225 | include/linux/sbpcd.h | #define frame_size_valid (D_S[d].diskstate_flags&frame_size_bit) |
d | 302 | include/linux/sbpcd.h | #define st_door_closed (D_S[d].status_bits&p_door_closed) |
d | 303 | include/linux/sbpcd.h | #define st_caddy_in (D_S[d].status_bits&p_caddy_in) |
d | 304 | include/linux/sbpcd.h | #define st_spinning (D_S[d].status_bits&p_spinning) |
d | 305 | include/linux/sbpcd.h | #define st_check (D_S[d].status_bits&p_check) |
d | 306 | include/linux/sbpcd.h | #define st_busy (D_S[d].status_bits&p_busy_new) |
d | 307 | include/linux/sbpcd.h | #define st_door_locked (D_S[d].status_bits&p_door_locked) |
d | 308 | include/linux/sbpcd.h | #define st_diskok (D_S[d].status_bits&p_disk_ok) |
d | 350 | include/linux/sbpcd.h | #define fam0_drive (D_S[d].drv_type&drv_fam0) |
d | 351 | include/linux/sbpcd.h | #define famL_drive (D_S[d].drv_type&drv_famL) |
d | 352 | include/linux/sbpcd.h | #define famV_drive (D_S[d].drv_type&drv_famV) |
d | 353 | include/linux/sbpcd.h | #define fam1_drive (D_S[d].drv_type&drv_fam1) |
d | 354 | include/linux/sbpcd.h | #define fam2_drive (D_S[d].drv_type&drv_fam2) |
d | 355 | include/linux/sbpcd.h | #define famT_drive (D_S[d].drv_type&drv_famT) |
d | 356 | include/linux/sbpcd.h | #define fam0L_drive (D_S[d].drv_type&(drv_fam0|drv_famL)) |
d | 357 | include/linux/sbpcd.h | #define fam0V_drive (D_S[d].drv_type&(drv_fam0|drv_famV)) |
d | 358 | include/linux/sbpcd.h | #define famLV_drive (D_S[d].drv_type&(drv_famL|drv_famV)) |
d | 359 | include/linux/sbpcd.h | #define fam0LV_drive (D_S[d].drv_type&(drv_fam0|drv_famL|drv_famV)) |
d | 360 | include/linux/sbpcd.h | #define fam1L_drive (D_S[d].drv_type&(drv_fam1|drv_famL)) |
d | 361 | include/linux/sbpcd.h | #define fam1V_drive (D_S[d].drv_type&(drv_fam1|drv_famV)) |
d | 362 | include/linux/sbpcd.h | #define fam1LV_drive (D_S[d].drv_type&(drv_fam1|drv_famL|drv_famV)) |
d | 363 | include/linux/sbpcd.h | #define fam01_drive (D_S[d].drv_type&(drv_fam0|drv_fam1)) |
d | 364 | include/linux/sbpcd.h | #define fam12_drive (D_S[d].drv_type&(drv_fam1|drv_fam2)) |
d | 365 | include/linux/sbpcd.h | #define fam2T_drive (D_S[d].drv_type&(drv_fam2|drv_famT)) |
d | 39 | 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 | 268 | lib/inflate.c | STATIC int huft_build(b, n, s, d, e, t, m) |
d | 272 | lib/inflate.c | ush *d; /* list of base values for non-simple codes */ |
d | 453 | lib/inflate.c | r.v.n = d[*p++ - s]; |
d | 514 | lib/inflate.c | unsigned n, d; /* length and index for copy */ |
d | 575 | lib/inflate.c | d = w - t->v.n - ((unsigned)b & mask_bits[e]); |
d | 577 | lib/inflate.c | Tracevv((stderr,"\\[%d,%d]", w-d, n)); |
d | 581 | lib/inflate.c | n -= (e = (e = WSIZE - ((d &= WSIZE-1) > w ? d : w)) > n ? n : e); |
d | 583 | lib/inflate.c | if (w - d >= e) /* (this test assumes unsigned comparison) */ |
d | 585 | lib/inflate.c | memcpy(slide + w, slide + d, e); |
d | 587 | lib/inflate.c | d += e; |
d | 592 | lib/inflate.c | slide[w++] = slide[d++]; |
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 | 1687 | net/ipx/af_ipx.c | void dump_data(char *str,unsigned char *d, int len) { |
d | 1695 | net/ipx/af_ipx.c | *(p++) = h2c[(d[i] >> 4) & 0x0f]; |
d | 1696 | net/ipx/af_ipx.c | *(p++) = h2c[d[i] & 0x0f]; |
d | 1709 | net/ipx/af_ipx.c | *(p++) = ' '<= d[i] && d[i]<'\177' ? d[i] : '.'; |
d | 1713 | net/ipx/af_ipx.c | d += i; |