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 | 611 | drivers/cdrom/sbpcd.c | static int d=0; /* DriveStruct index: drive number */ |
d | 738 | drivers/cdrom/sbpcd.c | sprintf(buf, KERN_NOTICE "%s-%d [%02d]: ", major_name, d, msgnum); |
d | 913 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=0xFF; |
d | 1028 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=0; |
d | 1029 | drivers/cdrom/sbpcd.c | if (fam1_drive) D_S[d].status_bits=st|p_success; |
d | 1032 | drivers/cdrom/sbpcd.c | if (st&p_caddin_old) D_S[d].status_bits |= p_door_closed|p_caddy_in; |
d | 1033 | drivers/cdrom/sbpcd.c | if (st&p_spinning) D_S[d].status_bits |= p_spinning; |
d | 1034 | drivers/cdrom/sbpcd.c | if (st&p_check) D_S[d].status_bits |= p_check; |
d | 1035 | drivers/cdrom/sbpcd.c | if (st&p_success_old) D_S[d].status_bits |= p_success; |
d | 1036 | drivers/cdrom/sbpcd.c | if (st&p_busy_old) D_S[d].status_bits |= p_busy_new; |
d | 1037 | drivers/cdrom/sbpcd.c | if (st&p_disk_ok) D_S[d].status_bits |= p_disk_ok; |
d | 1041 | drivers/cdrom/sbpcd.c | D_S[d].status_bits |= p_success; |
d | 1042 | drivers/cdrom/sbpcd.c | if (st&p_caddin_old) D_S[d].status_bits |= p_disk_ok|p_caddy_in; |
d | 1043 | drivers/cdrom/sbpcd.c | if (st&p_spinning) D_S[d].status_bits |= p_spinning; |
d | 1044 | drivers/cdrom/sbpcd.c | if (st&p_check) D_S[d].status_bits |= p_check; |
d | 1045 | drivers/cdrom/sbpcd.c | if (st&p_busy_old) D_S[d].status_bits |= p_busy_new; |
d | 1046 | drivers/cdrom/sbpcd.c | if (st&p_lcs_door_closed) D_S[d].status_bits |= p_door_closed; |
d | 1047 | drivers/cdrom/sbpcd.c | if (st&p_lcs_door_locked) D_S[d].status_bits |= p_door_locked; |
d | 1051 | drivers/cdrom/sbpcd.c | D_S[d].status_bits |= p_success; |
d | 1052 | drivers/cdrom/sbpcd.c | if (st&p2_check) D_S[d].status_bits |= p1_check; |
d | 1053 | drivers/cdrom/sbpcd.c | if (st&p2_door_closed) D_S[d].status_bits |= p1_door_closed; |
d | 1054 | drivers/cdrom/sbpcd.c | if (st&p2_disk_in) D_S[d].status_bits |= p1_disk_in; |
d | 1055 | drivers/cdrom/sbpcd.c | if (st&p2_busy1) D_S[d].status_bits |= p1_busy; |
d | 1056 | drivers/cdrom/sbpcd.c | if (st&p2_busy2) D_S[d].status_bits |= p1_busy; |
d | 1057 | drivers/cdrom/sbpcd.c | if (st&p2_spinning) D_S[d].status_bits |= p1_spinning; |
d | 1058 | drivers/cdrom/sbpcd.c | if (st&p2_door_locked) D_S[d].status_bits |= p1_door_locked; |
d | 1059 | drivers/cdrom/sbpcd.c | if (st&p2_disk_ok) D_S[d].status_bits |= p1_disk_ok; |
d | 1064 | drivers/cdrom/sbpcd.c | D_S[d].status_bits |= p_success; |
d | 1065 | drivers/cdrom/sbpcd.c | if (st&p2_check) D_S[d].status_bits |= p1_check; |
d | 1066 | drivers/cdrom/sbpcd.c | if (st&p2_door_closed) D_S[d].status_bits |= p1_door_closed; |
d | 1067 | drivers/cdrom/sbpcd.c | if (st&p2_disk_in) D_S[d].status_bits |= p1_disk_in; |
d | 1068 | drivers/cdrom/sbpcd.c | if (st&p2_busy1) D_S[d].status_bits |= p1_busy; |
d | 1069 | drivers/cdrom/sbpcd.c | if (st&p2_busy2) D_S[d].status_bits |= p1_busy; |
d | 1070 | drivers/cdrom/sbpcd.c | if (st&p2_spinning) D_S[d].status_bits |= p1_spinning; |
d | 1071 | drivers/cdrom/sbpcd.c | if (st&p2_door_locked) D_S[d].status_bits |= p1_door_locked; |
d | 1072 | drivers/cdrom/sbpcd.c | if (st&p2_disk_ok) D_S[d].status_bits |= p1_disk_ok; |
d | 1084 | drivers/cdrom/sbpcd.c | D_S[d].n_bytes=1; |
d | 1095 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=p1_door_closed|p1_disk_in|p1_spinning|p1_disk_ok; |
d | 1096 | drivers/cdrom/sbpcd.c | else if (D_S[d].error_state==6) |
d | 1098 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=p1_door_closed|p1_disk_in; |
d | 1099 | drivers/cdrom/sbpcd.c | else if ((D_S[d].error_state!=2)||(D_S[d].b3!=0x3A)||(D_S[d].b4==0x00)) |
d | 1102 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=p1_door_closed; |
d | 1103 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
d | 1105 | drivers/cdrom/sbpcd.c | else if (D_S[d].b4==0x01) |
d | 1108 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=0; |
d | 1109 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
d | 1114 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=p1_door_closed; |
d | 1115 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
d | 1117 | drivers/cdrom/sbpcd.c | return (D_S[d].status_bits); |
d | 1147 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=0; |
d | 1153 | drivers/cdrom/sbpcd.c | msg(DBG_STA,"status_bits=%02X, i=%02X\n",D_S[d].status_bits,i); |
d | 1154 | drivers/cdrom/sbpcd.c | return (D_S[d].status_bits); |
d | 1204 | drivers/cdrom/sbpcd.c | D_S[d].error_byte=0; |
d | 1209 | drivers/cdrom/sbpcd.c | D_S[d].error_byte=infobuf[i]; |
d | 1210 | 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 | 1225 | drivers/cdrom/sbpcd.c | D_S[d].error_state=0; |
d | 1226 | drivers/cdrom/sbpcd.c | D_S[d].b3=0; |
d | 1227 | drivers/cdrom/sbpcd.c | D_S[d].b4=0; |
d | 1228 | drivers/cdrom/sbpcd.c | D_S[d].f_drv_error=0; |
d | 1234 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
d | 1339 | drivers/cdrom/sbpcd.c | D_S[d].error_state=infobuf[2]; |
d | 1340 | drivers/cdrom/sbpcd.c | D_S[d].b3=infobuf[3]; |
d | 1341 | drivers/cdrom/sbpcd.c | D_S[d].b4=infobuf[4]; |
d | 1342 | drivers/cdrom/sbpcd.c | if (D_S[d].f_drv_error) |
d | 1344 | drivers/cdrom/sbpcd.c | D_S[d].f_drv_error=0; |
d | 1346 | drivers/cdrom/sbpcd.c | D_S[d].error_state=2; |
d | 1348 | drivers/cdrom/sbpcd.c | return (-D_S[d].error_state-400); |
d | 1355 | drivers/cdrom/sbpcd.c | D_S[d].f_drv_error=1; |
d | 1357 | drivers/cdrom/sbpcd.c | D_S[d].error_state=2; |
d | 1389 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to CDi_stat_loop.\n"); |
d | 1398 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cc_ReadStatus.\n"); |
d | 1404 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to ResponseStatus.\n"); |
d | 1420 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cc_ReadError.\n"); |
d | 1422 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cmd_out OK.\n"); |
d | 1476 | drivers/cdrom/sbpcd.c | D_S[d].n_bytes=1; |
d | 1488 | drivers/cdrom/sbpcd.c | D_S[d].in_SpinUp = 1; |
d | 1517 | drivers/cdrom/sbpcd.c | D_S[d].in_SpinUp = 0; |
d | 1578 | drivers/cdrom/sbpcd.c | drvcmd[1]=D_S[d].speed_byte; |
d | 1579 | drivers/cdrom/sbpcd.c | drvcmd[2]=D_S[d].frmsiz>>8; |
d | 1580 | drivers/cdrom/sbpcd.c | drvcmd[3]=D_S[d].frmsiz&0x0FF; |
d | 1581 | drivers/cdrom/sbpcd.c | drvcmd[4]=D_S[d].f_XA; /* 1: XA */ |
d | 1582 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].type_byte; /* 0, 1, 3 */ |
d | 1583 | drivers/cdrom/sbpcd.c | drvcmd[6]=D_S[d].mode_xb_6; |
d | 1584 | drivers/cdrom/sbpcd.c | drvcmd[7]=D_S[d].mode_yb_7|D_S[d].volume_control; |
d | 1585 | drivers/cdrom/sbpcd.c | drvcmd[8]=D_S[d].mode_xb_8; |
d | 1586 | drivers/cdrom/sbpcd.c | drvcmd[9]=D_S[d].delay; |
d | 1601 | drivers/cdrom/sbpcd.c | D_S[d].speed_byte=0x02; /* 0x02: auto quad, 0x82: quad, 0x81: double, 0x80: single */ |
d | 1602 | drivers/cdrom/sbpcd.c | D_S[d].frmsiz=make16(infobuf[2],infobuf[3]); |
d | 1603 | drivers/cdrom/sbpcd.c | D_S[d].f_XA=infobuf[4]; |
d | 1604 | drivers/cdrom/sbpcd.c | if (D_S[d].f_XA==0) D_S[d].type_byte=0; |
d | 1605 | drivers/cdrom/sbpcd.c | else D_S[d].type_byte=1; |
d | 1606 | drivers/cdrom/sbpcd.c | D_S[d].mode_xb_6=infobuf[6]; |
d | 1607 | drivers/cdrom/sbpcd.c | D_S[d].mode_yb_7=1; |
d | 1608 | drivers/cdrom/sbpcd.c | D_S[d].mode_xb_8=infobuf[8]; |
d | 1609 | drivers/cdrom/sbpcd.c | D_S[d].delay=0; /* 0, 1, 2, 3 */ |
d | 1664 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~volume_bit; |
d | 1666 | drivers/cdrom/sbpcd.c | channel0=D_S[d].vol_chan0; |
d | 1667 | drivers/cdrom/sbpcd.c | volume0=D_S[d].vol_ctrl0; |
d | 1668 | drivers/cdrom/sbpcd.c | channel1=control1=D_S[d].vol_chan1; |
d | 1669 | drivers/cdrom/sbpcd.c | volume1=value1=D_S[d].vol_ctrl1; |
d | 1674 | drivers/cdrom/sbpcd.c | if (((D_S[d].drv_options&audio_mono)!=0)&&(D_S[d].drv_type>=drv_211)) |
d | 1743 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_300) |
d | 1755 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type<drv_211) |
d | 1788 | drivers/cdrom/sbpcd.c | else if (D_S[d].drv_type<drv_201) volume0=volume1=value0; |
d | 1790 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_201) |
d | 1795 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_211) |
d | 1809 | drivers/cdrom/sbpcd.c | D_S[d].volume_control=0; |
d | 1810 | drivers/cdrom/sbpcd.c | if (!volume0) D_S[d].volume_control|=0x10; |
d | 1811 | drivers/cdrom/sbpcd.c | if (!volume1) D_S[d].volume_control|=0x20; |
d | 1821 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= volume_bit; |
d | 1861 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
d | 1878 | drivers/cdrom/sbpcd.c | if (D_S[d].error_byte!=aud_12) return -501; |
d | 1886 | drivers/cdrom/sbpcd.c | if (!(D_S[d].drv_options&(speed_auto|speed_300|speed_150))) return (0); |
d | 1888 | drivers/cdrom/sbpcd.c | if (!(D_S[d].drv_options&speed_auto)) |
d | 1891 | drivers/cdrom/sbpcd.c | if (!(D_S[d].drv_options&speed_300)) speed=0; |
d | 1912 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=1; |
d | 1926 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state==audio_playing) return (-EINVAL); |
d | 2016 | drivers/cdrom/sbpcd.c | if (pau_res==3) return (cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end)); |
d | 2029 | drivers/cdrom/sbpcd.c | msg(DBG_LCK,"cc_LockDoor: %d (drive %d)\n", lock, d); |
d | 2117 | drivers/cdrom/sbpcd.c | msg(DBG_LCK,"cc_CloseTray (drive %d)\n", d); |
d | 2157 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~subq_bit; |
d | 2206 | 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 | 2207 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_run_tot=D_S[d].SubQ_run_trk=0; |
d | 2211 | drivers/cdrom/sbpcd.c | if (famT_drive) D_S[d].SubQ_ctl_adr=infobuf[1]; |
d | 2212 | drivers/cdrom/sbpcd.c | else D_S[d].SubQ_ctl_adr=swap_nibbles(infobuf[1]); |
d | 2213 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_trk=byt2bcd(infobuf[2]); |
d | 2214 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_pnt_idx=byt2bcd(infobuf[3]); |
d | 2218 | 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 | 2223 | 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 | 2224 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_whatisthis=infobuf[i+3]; |
d | 2225 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= subq_bit; |
d | 2235 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~frame_size_bit; |
d | 2259 | drivers/cdrom/sbpcd.c | D_S[d].sense_byte=0; |
d | 2260 | drivers/cdrom/sbpcd.c | if (fam1_drive) D_S[d].sense_byte=infobuf[i++]; |
d | 2263 | drivers/cdrom/sbpcd.c | if (infobuf[4]==0x01) D_S[d].xa_byte=0x20; |
d | 2264 | drivers/cdrom/sbpcd.c | else D_S[d].xa_byte=0; |
d | 2267 | drivers/cdrom/sbpcd.c | D_S[d].frame_size=make16(infobuf[i],infobuf[i+1]); |
d | 2273 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= frame_size_bit; |
d | 2284 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~frame_size_bit; |
d | 2286 | drivers/cdrom/sbpcd.c | D_S[d].frame_size=framesize; |
d | 2287 | drivers/cdrom/sbpcd.c | if (framesize==CD_FRAMESIZE_RAW) D_S[d].sense_byte=0x82; |
d | 2288 | drivers/cdrom/sbpcd.c | else D_S[d].sense_byte=0x00; |
d | 2291 | drivers/cdrom/sbpcd.c | D_S[d].sense_byte, D_S[d].frame_size); |
d | 2297 | drivers/cdrom/sbpcd.c | drvcmd[2]=D_S[d].sense_byte; |
d | 2298 | drivers/cdrom/sbpcd.c | drvcmd[3]=(D_S[d].frame_size>>8)&0xFF; |
d | 2299 | drivers/cdrom/sbpcd.c | drvcmd[4]=D_S[d].frame_size&0xFF; |
d | 2306 | drivers/cdrom/sbpcd.c | drvcmd[2]=(D_S[d].frame_size>>8)&0xFF; |
d | 2307 | drivers/cdrom/sbpcd.c | drvcmd[3]=D_S[d].frame_size&0xFF; |
d | 2321 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= frame_size_bit; |
d | 2335 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~volume_bit; |
d | 2411 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_201) |
d | 2413 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type<drv_300) |
d | 2418 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_211) |
d | 2438 | drivers/cdrom/sbpcd.c | D_S[d].volume_control=infobuf[7]; |
d | 2441 | drivers/cdrom/sbpcd.c | if (D_S[d].volume_control&0x10) vol0=0; |
d | 2443 | drivers/cdrom/sbpcd.c | if (D_S[d].volume_control&0x20) vol1=0; |
d | 2446 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan0=chan0; |
d | 2447 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl0=vol0; |
d | 2448 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan1=chan1; |
d | 2449 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl1=vol1; |
d | 2451 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan2=2; |
d | 2452 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl2=0xFF; |
d | 2453 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan3=3; |
d | 2454 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl3=0xFF; |
d | 2456 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= volume_bit; |
d | 2467 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~cd_size_bit; |
d | 2497 | 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 | 2498 | drivers/cdrom/sbpcd.c | else if (fam0_drive) D_S[d].CDsize_frm=make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])); |
d | 2500 | 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 | 2502 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= cd_size_bit; |
d | 2503 | drivers/cdrom/sbpcd.c | msg(DBG_000,"cc_ReadCapacity: %d frames.\n", D_S[d].CDsize_frm); |
d | 2511 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~toc_bit; |
d | 2531 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=0; |
d | 2541 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=0; |
d | 2553 | drivers/cdrom/sbpcd.c | D_S[d].xa_byte=infobuf[0]; |
d | 2556 | drivers/cdrom/sbpcd.c | D_S[d].first_session=infobuf[1]; |
d | 2557 | drivers/cdrom/sbpcd.c | D_S[d].last_session=infobuf[2]; |
d | 2558 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track=infobuf[3]; |
d | 2559 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track=infobuf[4]; |
d | 2560 | drivers/cdrom/sbpcd.c | if (D_S[d].first_session!=D_S[d].last_session) |
d | 2562 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=1; |
d | 2563 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7]))); |
d | 2566 | drivers/cdrom/sbpcd.c | if (D_S[d].first_session!=D_S[d].last_session) |
d | 2568 | drivers/cdrom/sbpcd.c | if (D_S[d].last_session<=20) |
d | 2569 | drivers/cdrom/sbpcd.c | zwanzig=D_S[d].last_session+1; |
d | 2571 | drivers/cdrom/sbpcd.c | for (count=D_S[d].first_session;count<zwanzig;count++) |
d | 2581 | drivers/cdrom/sbpcd.c | D_S[d].msf_multi_n[count]=make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7])); |
d | 2583 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= multisession_bit; |
d | 2594 | drivers/cdrom/sbpcd.c | D_S[d].size_msf=make32(make16(0,infobuf[2]),make16(infobuf[3],infobuf[4])); |
d | 2595 | drivers/cdrom/sbpcd.c | D_S[d].size_blk=msf2blk(D_S[d].size_msf); |
d | 2596 | drivers/cdrom/sbpcd.c | D_S[d].CDsize_frm=D_S[d].size_blk+1; |
d | 2600 | drivers/cdrom/sbpcd.c | D_S[d].size_msf=make32(make16(infobuf[8],infobuf[9]),make16(infobuf[10],infobuf[11])); |
d | 2601 | drivers/cdrom/sbpcd.c | D_S[d].size_blk=msf2blk(D_S[d].size_msf); |
d | 2602 | drivers/cdrom/sbpcd.c | D_S[d].CDsize_frm=D_S[d].size_blk+1; |
d | 2603 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track=infobuf[2]; |
d | 2604 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track=infobuf[3]; |
d | 2608 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track=infobuf[1]; |
d | 2609 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track=infobuf[2]; |
d | 2610 | drivers/cdrom/sbpcd.c | D_S[d].size_msf=make32(make16(0,infobuf[3]),make16(infobuf[4],infobuf[5])); |
d | 2611 | drivers/cdrom/sbpcd.c | D_S[d].size_blk=msf2blk(D_S[d].size_msf); |
d | 2612 | drivers/cdrom/sbpcd.c | if (famLV_drive) D_S[d].CDsize_frm=D_S[d].size_blk+1; |
d | 2614 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= toc_bit; |
d | 2616 | drivers/cdrom/sbpcd.c | D_S[d].xa_byte, |
d | 2617 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track, |
d | 2618 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track, |
d | 2619 | drivers/cdrom/sbpcd.c | D_S[d].size_msf); |
d | 2669 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_nixbyte=infobuf[0]; |
d | 2674 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]); |
d | 2677 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_number=infobuf[i++]; |
d | 2678 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_format=infobuf[i]; |
d | 2682 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_number=num; |
d | 2683 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_format=0; |
d | 2689 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_address=make32(make16(0,infobuf[i]), |
d | 2696 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_nixbyte, D_S[d].TocEnt_ctl_adr, |
d | 2697 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_number, D_S[d].TocEnt_format, |
d | 2698 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_address); |
d | 2729 | drivers/cdrom/sbpcd.c | if (fam1_drive) D_S[d].UPC_buf[i]=swap_nibbles(*p++); |
d | 2732 | drivers/cdrom/sbpcd.c | D_S[d].UPC_buf[i]=((*p++)<<4)&0xFF; |
d | 2733 | drivers/cdrom/sbpcd.c | D_S[d].UPC_buf[i] |= *p++; |
d | 2744 | drivers/cdrom/sbpcd.c | D_S[d].UPC_buf[6] &= 0xF0; |
d | 2762 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~upc_bit; |
d | 2831 | drivers/cdrom/sbpcd.c | D_S[d].UPC_ctl_adr=0; |
d | 2837 | drivers/cdrom/sbpcd.c | D_S[d].UPC_ctl_adr = (D_S[d].TocEnt_ctl_adr & 0xF0) | 0x02; |
d | 2840 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", D_S[d].UPC_buf[i]); |
d | 2841 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " (%02X)", D_S[d].UPC_ctl_adr); |
d | 2844 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= upc_bit; |
d | 2853 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=0; |
d | 2854 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=0; |
d | 2866 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=1; |
d | 2867 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[1]), |
d | 2880 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]), |
d | 2894 | drivers/cdrom/sbpcd.c | D_S[d].first_session=infobuf[2]; |
d | 2895 | drivers/cdrom/sbpcd.c | D_S[d].last_session=infobuf[3]; |
d | 2896 | drivers/cdrom/sbpcd.c | D_S[d].track_of_last_session=infobuf[6]; |
d | 2897 | drivers/cdrom/sbpcd.c | if (D_S[d].first_session!=D_S[d].last_session) |
d | 2899 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=1; |
d | 2900 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[9]),make16(infobuf[10],infobuf[11]))); |
d | 2906 | drivers/cdrom/sbpcd.c | msg(DBG_MUL,"MultiSession Info:%s (%d)\n", msgbuf, D_S[d].lba_multi); |
d | 2907 | drivers/cdrom/sbpcd.c | if (D_S[d].lba_multi>200) |
d | 2909 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=1; |
d | 2910 | drivers/cdrom/sbpcd.c | msg(DBG_MUL,"MultiSession base: %06X\n", D_S[d].lba_multi); |
d | 2927 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state!=audio_playing) return (-ENODATA); |
d | 2938 | drivers/cdrom/sbpcd.c | D_S[d].frame_size=CD_FRAMESIZE_SUB; |
d | 3022 | drivers/cdrom/sbpcd.c | CDo_command, type, D_S[d].drive_model, D_S[d].drv_id); |
d | 3038 | drivers/cdrom/sbpcd.c | msg(DBG_INI,"check_version: id=%d, d=%d.\n", D_S[d].drv_id, d); |
d | 3039 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=0; |
d | 3074 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[0]='C'; |
d | 3075 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[1]='R'; |
d | 3076 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[2]='-'; |
d | 3077 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[3]='5'; |
d | 3078 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[4]=infobuf[i++]; |
d | 3079 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]=infobuf[i++]; |
d | 3080 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[6]=0; |
d | 3081 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_fam1; |
d | 3083 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
d | 3088 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[0]='C'; |
d | 3089 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[1]='R'; |
d | 3090 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[2]='-'; |
d | 3091 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[3]='5'; |
d | 3092 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[4]='2'; |
d | 3093 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]='x'; |
d | 3094 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[6]=0; |
d | 3095 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_fam0; |
d | 3098 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
d | 3104 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[j]=infobuf[j]; |
d | 3105 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[8]=0; |
d | 3106 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_famL; |
d | 3109 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
d | 3115 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[j]=infobuf[j]; |
d | 3116 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[6]=0; |
d | 3117 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_famV; |
d | 3121 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
d | 3138 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
d | 3164 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[0]='C'; |
d | 3165 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[1]='D'; |
d | 3166 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[2]='2'; |
d | 3167 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[3]='0'; |
d | 3168 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[4]='0'; |
d | 3169 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]=infobuf[i++]; |
d | 3170 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[6]=infobuf[i++]; |
d | 3171 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[7]=0; |
d | 3172 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_fam2; |
d | 3176 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
d | 3180 | drivers/cdrom/sbpcd.c | for (j=1;j<=((D_S[d].drv_id==0)?3:1);j++) |
d | 3182 | drivers/cdrom/sbpcd.c | for (l=1;l<=((D_S[d].drv_id==0)?10:1);l++) |
d | 3188 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
d | 3194 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
d | 3221 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[0]='C'; |
d | 3222 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[1]='D'; |
d | 3223 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[2]='-'; |
d | 3224 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[3]='5'; |
d | 3225 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[4]='5'; |
d | 3226 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]=0; |
d | 3227 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_famT; |
d | 3231 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
d | 3233 | 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 | 3236 | drivers/cdrom/sbpcd.c | for (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j]; |
d | 3243 | drivers/cdrom/sbpcd.c | if (D_S[d].firmware_version[j]!=lcs_firm_e1[j]) break; |
d | 3244 | drivers/cdrom/sbpcd.c | if (j==4) D_S[d].drv_type=drv_e1; |
d | 3247 | drivers/cdrom/sbpcd.c | if (D_S[d].firmware_version[j]!=lcs_firm_f4[j]) break; |
d | 3248 | drivers/cdrom/sbpcd.c | if (j==4) D_S[d].drv_type=drv_f4; |
d | 3250 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type==drv_famL) ask_mail(); |
d | 3257 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[0]=infobuf[7]; |
d | 3258 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[1]=infobuf[8]; |
d | 3259 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[2]=infobuf[10]; |
d | 3260 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[3]=infobuf[11]; |
d | 3265 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[0]='0'; |
d | 3266 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[1]='.'; |
d | 3267 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[2]='0'+(j>>4); |
d | 3268 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[3]='0'+(j&0x0f); |
d | 3273 | drivers/cdrom/sbpcd.c | j = (D_S[d].firmware_version[0] & 0x0F) * 100 + |
d | 3274 | drivers/cdrom/sbpcd.c | (D_S[d].firmware_version[2] & 0x0F) *10 + |
d | 3275 | drivers/cdrom/sbpcd.c | (D_S[d].firmware_version[3] & 0x0F); |
d | 3278 | drivers/cdrom/sbpcd.c | if (j<200) D_S[d].drv_type=drv_199; |
d | 3279 | drivers/cdrom/sbpcd.c | else if (j<201) D_S[d].drv_type=drv_200; |
d | 3280 | drivers/cdrom/sbpcd.c | else if (j<210) D_S[d].drv_type=drv_201; |
d | 3281 | drivers/cdrom/sbpcd.c | else if (j<211) D_S[d].drv_type=drv_210; |
d | 3282 | drivers/cdrom/sbpcd.c | else if (j<300) D_S[d].drv_type=drv_211; |
d | 3283 | drivers/cdrom/sbpcd.c | else if (j>=300) D_S[d].drv_type=drv_300; |
d | 3287 | drivers/cdrom/sbpcd.c | if (j<100) D_S[d].drv_type=drv_099; |
d | 3290 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_100; |
d | 3296 | drivers/cdrom/sbpcd.c | if (D_S[d].drive_model[5]=='F') |
d | 3310 | drivers/cdrom/sbpcd.c | if (j==100) D_S[d].drv_type=drv_at; |
d | 3314 | drivers/cdrom/sbpcd.c | msg(DBG_LCS,"drive type %02X\n",D_S[d].drv_type); |
d | 3321 | drivers/cdrom/sbpcd.c | d=i; |
d | 3322 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
d | 3323 | drivers/cdrom/sbpcd.c | msg(DBG_DID,"drive %d (ID=%d) activated.\n", i, D_S[d].drv_id); |
d | 3453 | drivers/cdrom/sbpcd.c | D_S[d].drv_options=drv_pattern[j]; |
d | 3454 | drivers/cdrom/sbpcd.c | if (fam0L_drive) D_S[d].drv_options&=~(speed_auto|speed_300|speed_150); |
d | 3456 | drivers/cdrom/sbpcd.c | d, |
d | 3457 | drivers/cdrom/sbpcd.c | D_S[d].drv_id, |
d | 3458 | drivers/cdrom/sbpcd.c | D_S[d].drive_model, |
d | 3459 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version, |
d | 3595 | drivers/cdrom/sbpcd.c | i=msf2blk(D_S[d].pos_audio_end)-1; |
d | 3605 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~toc_bit; |
d | 3606 | drivers/cdrom/sbpcd.c | D_S[d].ored_ctl_adr=0; |
d | 3607 | drivers/cdrom/sbpcd.c | for (j=D_S[d].n_first_track;j<=D_S[d].n_last_track;j++) |
d | 3615 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].nixbyte=D_S[d].TocEnt_nixbyte; |
d | 3616 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].ctl_adr=D_S[d].TocEnt_ctl_adr; |
d | 3617 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].number=D_S[d].TocEnt_number; |
d | 3618 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].format=D_S[d].TocEnt_format; |
d | 3619 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].address=D_S[d].TocEnt_address; |
d | 3620 | drivers/cdrom/sbpcd.c | D_S[d].ored_ctl_adr |= D_S[d].TocEnt_ctl_adr; |
d | 3623 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].nixbyte=0; |
d | 3624 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].ctl_adr=0; |
d | 3625 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].number=CDROM_LEADOUT; |
d | 3626 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].format=0; |
d | 3627 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].address=D_S[d].size_msf; |
d | 3629 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= toc_bit; |
d | 3637 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_M1; |
d | 3682 | drivers/cdrom/sbpcd.c | if (D_S[d].f_multisession) D_S[d].sbp_bufsiz=1; /* possibly a weird PhotoCD */ |
d | 3683 | drivers/cdrom/sbpcd.c | else D_S[d].sbp_bufsiz=SBP_BUFFER_FRAMES; |
d | 3684 | drivers/cdrom/sbpcd.c | i=cc_ReadTocEntry(D_S[d].n_first_track); |
d | 3692 | drivers/cdrom/sbpcd.c | if ((fam0L_drive) && (D_S[d].xa_byte==0x20)) |
d | 3720 | drivers/cdrom/sbpcd.c | if (D_S[d].CD_changed==0xFF) |
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 | 3734 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=1; |
d | 3743 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags=0; |
d | 3744 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 3752 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state!=audio_pausing) |
d | 3760 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state==audio_playing) seek_pos_audio_end(); |
d | 3761 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 3768 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags=0; |
d | 3769 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 3845 | drivers/cdrom/sbpcd.c | if (d!=i) switch_drive(i); |
d | 3872 | drivers/cdrom/sbpcd.c | switch (D_S[d].audio_state) |
d | 3881 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start=D_S[d].SubQ_run_tot; |
d | 3882 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=audio_pausing; |
d | 3885 | drivers/cdrom/sbpcd.c | i=cc_Seek(D_S[d].pos_audio_start,1); |
d | 3897 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state!=audio_pausing) return -EINVAL; |
d | 3899 | drivers/cdrom/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start, |
d | 3900 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_end); |
d | 3903 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=audio_playing; |
d | 3908 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state==audio_playing) |
d | 3914 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start=D_S[d].SubQ_run_tot; |
d | 3915 | drivers/cdrom/sbpcd.c | i=cc_Seek(D_S[d].pos_audio_start,1); |
d | 3921 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start = (msf.cdmsf_min0<<16) | |
d | 3924 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_end = (msf.cdmsf_min1<<16) | |
d | 3928 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
d | 3929 | drivers/cdrom/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
d | 3934 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=audio_playing; |
d | 3939 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state==audio_playing) |
d | 3954 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk0<D_S[d].n_first_track) return (-EINVAL); |
d | 3955 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk0>D_S[d].n_last_track) return (-EINVAL); |
d | 3957 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk1>D_S[d].n_last_track) ti.cdti_trk1=D_S[d].n_last_track; |
d | 3958 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start=D_S[d].TocBuffer[ti.cdti_trk0].address; |
d | 3959 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_end=D_S[d].TocBuffer[ti.cdti_trk1+1].address; |
d | 3960 | drivers/cdrom/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
d | 3964 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=audio_playing; |
d | 3969 | drivers/cdrom/sbpcd.c | tochdr.cdth_trk0=D_S[d].n_first_track; |
d | 3970 | drivers/cdrom/sbpcd.c | tochdr.cdth_trk1=D_S[d].n_last_track; |
d | 3982 | drivers/cdrom/sbpcd.c | if (i==CDROM_LEADOUT) i=D_S[d].n_last_track+1; |
d | 3983 | drivers/cdrom/sbpcd.c | else if (i<D_S[d].n_first_track||i>D_S[d].n_last_track) return (-EINVAL); |
d | 3984 | drivers/cdrom/sbpcd.c | tocentry.cdte_adr=D_S[d].TocBuffer[i].ctl_adr&0x0F; |
d | 3985 | drivers/cdrom/sbpcd.c | tocentry.cdte_ctrl=(D_S[d].TocBuffer[i].ctl_adr>>4)&0x0F; |
d | 3986 | drivers/cdrom/sbpcd.c | tocentry.cdte_datamode=D_S[d].TocBuffer[i].format; |
d | 3989 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.msf.minute=(D_S[d].TocBuffer[i].address>>16)&0x00FF; |
d | 3990 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.msf.second=(D_S[d].TocBuffer[i].address>>8)&0x00FF; |
d | 3991 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.msf.frame=D_S[d].TocBuffer[i].address&0x00FF; |
d | 3994 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.lba=msf2blk(D_S[d].TocBuffer[i].address); |
d | 4004 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 4010 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 4016 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 4022 | drivers/cdrom/sbpcd.c | if (D_S[d].open_count>1) return (-EBUSY); |
d | 4024 | drivers/cdrom/sbpcd.c | D_S[d].open_count=-9; /* to get it locked next time again */ |
d | 4029 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=0xFF; |
d | 4030 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags=0; |
d | 4031 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
d | 4037 | drivers/cdrom/sbpcd.c | D_S[d].f_eject=arg; |
d | 4045 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan0=0; |
d | 4046 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl0=volctrl.channel0; |
d | 4047 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan1=1; |
d | 4048 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl1=volctrl.channel1; |
d | 4058 | drivers/cdrom/sbpcd.c | volctrl.channel0=D_S[d].vol_ctrl0; |
d | 4059 | drivers/cdrom/sbpcd.c | volctrl.channel1=D_S[d].vol_ctrl1; |
d | 4075 | drivers/cdrom/sbpcd.c | switch (D_S[d].audio_state) |
d | 4087 | drivers/cdrom/sbpcd.c | SC.cdsc_adr=D_S[d].SubQ_ctl_adr; |
d | 4088 | drivers/cdrom/sbpcd.c | SC.cdsc_ctrl=D_S[d].SubQ_ctl_adr>>4; |
d | 4089 | drivers/cdrom/sbpcd.c | SC.cdsc_trk=bcd2bin(D_S[d].SubQ_trk); |
d | 4090 | drivers/cdrom/sbpcd.c | SC.cdsc_ind=bcd2bin(D_S[d].SubQ_pnt_idx); |
d | 4093 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.lba=msf2blk(D_S[d].SubQ_run_tot); |
d | 4094 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.lba=msf2blk(D_S[d].SubQ_run_trk); |
d | 4098 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.msf.minute=(D_S[d].SubQ_run_tot>>16)&0x00FF; |
d | 4099 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.msf.second=(D_S[d].SubQ_run_tot>>8)&0x00FF; |
d | 4100 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.msf.frame=D_S[d].SubQ_run_tot&0x00FF; |
d | 4101 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.msf.minute=(D_S[d].SubQ_run_trk>>16)&0x00FF; |
d | 4102 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.msf.second=(D_S[d].SubQ_run_trk>>8)&0x00FF; |
d | 4103 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.msf.frame=D_S[d].SubQ_run_trk&0x00FF; |
d | 4117 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_M1; |
d | 4124 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_M2; |
d | 4129 | drivers/cdrom/sbpcd.c | if (D_S[d].sbp_audsiz>0) vfree(D_S[d].aud_buf); |
d | 4130 | drivers/cdrom/sbpcd.c | D_S[d].aud_buf=NULL; |
d | 4131 | drivers/cdrom/sbpcd.c | D_S[d].sbp_audsiz=arg; |
d | 4132 | drivers/cdrom/sbpcd.c | if (D_S[d].sbp_audsiz>0) |
d | 4134 | drivers/cdrom/sbpcd.c | D_S[d].aud_buf=(u_char *) vmalloc(D_S[d].sbp_audsiz*CD_FRAMESIZE_RAW); |
d | 4135 | drivers/cdrom/sbpcd.c | if (D_S[d].aud_buf==NULL) |
d | 4137 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"audio buffer (%d frames) not available.\n",D_S[d].sbp_audsiz); |
d | 4138 | drivers/cdrom/sbpcd.c | D_S[d].sbp_audsiz=0; |
d | 4140 | drivers/cdrom/sbpcd.c | else msg(DBG_INF,"audio buffer size: %d frames.\n",D_S[d].sbp_audsiz); |
d | 4142 | drivers/cdrom/sbpcd.c | return (D_S[d].sbp_audsiz); |
d | 4161 | drivers/cdrom/sbpcd.c | if (D_S[d].aud_buf==NULL) return (-EINVAL); |
d | 4165 | drivers/cdrom/sbpcd.c | if (read_audio.nframes>D_S[d].sbp_audsiz) return (-EINVAL); |
d | 4188 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_AU; |
d | 4278 | drivers/cdrom/sbpcd.c | p = D_S[d].aud_buf; |
d | 4326 | drivers/cdrom/sbpcd.c | D_S[d].status_bits); |
d | 4338 | drivers/cdrom/sbpcd.c | (u_char *) D_S[d].aud_buf, |
d | 4345 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_M1; |
d | 4362 | drivers/cdrom/sbpcd.c | lba2msf(D_S[d].lba_multi,&ms_info.addr.msf.minute); |
d | 4364 | drivers/cdrom/sbpcd.c | ms_info.addr.lba=D_S[d].lba_multi; |
d | 4366 | drivers/cdrom/sbpcd.c | if (D_S[d].f_multisession) ms_info.xa_flag=1; /* valid redirection address */ |
d | 4396 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 >= D_S[d].sbp_first_frame) && |
d | 4397 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 <= D_S[d].sbp_last_frame) ) |
d | 4399 | drivers/cdrom/sbpcd.c | offs = (CURRENT->sector - D_S[d].sbp_first_frame * 4) * 512; |
d | 4400 | drivers/cdrom/sbpcd.c | memcpy(CURRENT->buffer, D_S[d].sbp_buf + offs, 512); |
d | 4440 | drivers/cdrom/sbpcd.c | if (d!=i) switch_drive(i); |
d | 4508 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1; /* purge buffer */ |
d | 4509 | drivers/cdrom/sbpcd.c | D_S[d].sbp_current = 0; |
d | 4511 | drivers/cdrom/sbpcd.c | if (block+D_S[d].sbp_bufsiz <= D_S[d].CDsize_frm) |
d | 4512 | drivers/cdrom/sbpcd.c | D_S[d].sbp_read_frames = D_S[d].sbp_bufsiz; |
d | 4515 | drivers/cdrom/sbpcd.c | D_S[d].sbp_read_frames=D_S[d].CDsize_frm-block; |
d | 4517 | drivers/cdrom/sbpcd.c | if (D_S[d].sbp_read_frames < 1) |
d | 4520 | drivers/cdrom/sbpcd.c | block, D_S[d].CDsize_frm); |
d | 4521 | drivers/cdrom/sbpcd.c | D_S[d].sbp_read_frames=1; |
d | 4534 | drivers/cdrom/sbpcd.c | drvcmd[4]=D_S[d].sbp_read_frames>>8; |
d | 4535 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].sbp_read_frames&0xff; |
d | 4541 | drivers/cdrom/sbpcd.c | if (D_S[d].xa_byte==0x20) |
d | 4548 | drivers/cdrom/sbpcd.c | drvcmd[4]=(D_S[d].sbp_read_frames>>8)&0x0ff; |
d | 4549 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].sbp_read_frames&0x0ff; |
d | 4554 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_201) |
d | 4567 | drivers/cdrom/sbpcd.c | drvcmd[4]=(D_S[d].sbp_read_frames>>8)&0x0ff; |
d | 4568 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].sbp_read_frames&0x0ff; |
d | 4569 | drivers/cdrom/sbpcd.c | drvcmd[6]=(D_S[d].drv_type<drv_201)?0:2; /* flag "lba or msf-bcd format" */ |
d | 4576 | drivers/cdrom/sbpcd.c | drvcmd[5]=(D_S[d].sbp_read_frames>>8)&0x0ff; |
d | 4577 | drivers/cdrom/sbpcd.c | drvcmd[6]=D_S[d].sbp_read_frames&0x0ff; |
d | 4583 | drivers/cdrom/sbpcd.c | drvcmd[4]=(D_S[d].sbp_read_frames>>8)&0x0ff; |
d | 4584 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].sbp_read_frames&0x0ff; |
d | 4594 | drivers/cdrom/sbpcd.c | drvcmd[7]=(D_S[d].sbp_read_frames>>8)&0x0ff; |
d | 4595 | drivers/cdrom/sbpcd.c | drvcmd[8]=D_S[d].sbp_read_frames&0x0ff; |
d | 4629 | drivers/cdrom/sbpcd.c | if (D_S[d].f_multisession) max_latency=9*HZ; |
d | 4633 | drivers/cdrom/sbpcd.c | for (frame=0;frame<D_S[d].sbp_read_frames&&!error_flag; frame++) |
d | 4643 | drivers/cdrom/sbpcd.c | if (D_S[d].f_multisession) try=maxtim_data*4; |
d | 4688 | drivers/cdrom/sbpcd.c | if ((D_S[d].ored_ctl_adr&0x40)==0) |
d | 4697 | drivers/cdrom/sbpcd.c | p = D_S[d].sbp_buf + frame * CD_FRAMESIZE; |
d | 4707 | drivers/cdrom/sbpcd.c | D_S[d].sbp_current++; |
d | 4779 | drivers/cdrom/sbpcd.c | D_S[d].error_state=infobuf[2]; |
d | 4780 | drivers/cdrom/sbpcd.c | D_S[d].b3=infobuf[3]; |
d | 4781 | drivers/cdrom/sbpcd.c | D_S[d].b4=infobuf[4]; |
d | 4851 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"bad cc_ReadStatus after read: %02X\n", D_S[d].status_bits); |
d | 4865 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1; /* purge buffer */ |
d | 4866 | drivers/cdrom/sbpcd.c | D_S[d].sbp_current = 0; |
d | 4871 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame = CURRENT -> sector / 4; |
d | 4872 | drivers/cdrom/sbpcd.c | D_S[d].sbp_last_frame = D_S[d].sbp_first_frame + D_S[d].sbp_read_frames - 1; |
d | 4929 | drivers/cdrom/sbpcd.c | if (famT_drive) msg(DBG_TEA,"sbpcd_open: status %02X\n", D_S[d].status_bits); |
d | 4933 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
d | 4948 | drivers/cdrom/sbpcd.c | D_S[d].open_count,D_S[d].open_count+1); |
d | 4949 | drivers/cdrom/sbpcd.c | if (++D_S[d].open_count<=1) |
d | 4952 | drivers/cdrom/sbpcd.c | D_S[d].open_count=1; |
d | 4956 | drivers/cdrom/sbpcd.c | if ((D_S[d].ored_ctl_adr&0x40)==0) |
d | 4978 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1; |
d | 4987 | drivers/cdrom/sbpcd.c | D_S[d].open_count,D_S[d].open_count-1); |
d | 4988 | drivers/cdrom/sbpcd.c | if (D_S[d].open_count>-2) /* CDROMEJECT may have been done */ |
d | 4990 | drivers/cdrom/sbpcd.c | if (--D_S[d].open_count<=0) |
d | 4993 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state!=audio_playing) |
d | 4994 | drivers/cdrom/sbpcd.c | if (D_S[d].f_eject) cc_SpinDown(); |
d | 4995 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~cd_size_bit; |
d | 4996 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
d | 5252 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame = -1; /* First frame in buffer */ |
d | 5253 | drivers/cdrom/sbpcd.c | D_S[d].sbp_last_frame = -1; /* Last frame in buffer */ |
d | 5254 | drivers/cdrom/sbpcd.c | D_S[d].sbp_read_frames = 0; /* Number of frames being read to buffer */ |
d | 5255 | drivers/cdrom/sbpcd.c | D_S[d].sbp_current = 0; /* Frame being currently read */ |
d | 5256 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=1; |
d | 5257 | drivers/cdrom/sbpcd.c | D_S[d].frame_size=CD_FRAMESIZE; |
d | 5258 | drivers/cdrom/sbpcd.c | D_S[d].f_eject=0; |
d | 5260 | drivers/cdrom/sbpcd.c | if (!fam0_drive) D_S[d].f_eject=1; |
d | 5278 | drivers/cdrom/sbpcd.c | D_S[d].error_byte); |
d | 5279 | drivers/cdrom/sbpcd.c | if (D_S[d].error_byte==aud_12) |
d | 5288 | drivers/cdrom/sbpcd.c | D_S[d].error_byte); |
d | 5295 | drivers/cdrom/sbpcd.c | if (i>=0) D_S[d].CD_changed=1; |
d | 5417 | drivers/cdrom/sbpcd.c | msg(DBG_CHK,"media_check: %02X\n",D_S[d].status_bits); |
d | 5423 | drivers/cdrom/sbpcd.c | if (D_S[d].CD_changed==0xFF) msg(DBG_CHK,"media_check: \"changed\" assumed.\n"); |
d | 5428 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=0xFF; |
d | 5433 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
d | 5434 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=0xFF; |
d | 5439 | drivers/cdrom/sbpcd.c | if (D_S[d].CD_changed==0xFF) |
d | 5441 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=1; |
d | 222 | drivers/cdrom/sjcd.c | unsigned char b, unsigned char c, unsigned char d ){ |
d | 230 | drivers/cdrom/sjcd.c | outb( d, SJCDPORT( 0 ) ); |
d | 308 | drivers/char/console.c | return (i < MAX_NR_CONSOLES && vc_cons[i].d); |
d | 315 | drivers/char/console.c | if (!vc_cons[i].d) { |
d | 334 | drivers/char/console.c | vc_cons[i].d = (struct vc_data *) p; |
d | 338 | drivers/char/console.c | vc_cons[i].d->vc_kmalloced = 1; |
d | 339 | drivers/char/console.c | vc_cons[i].d->vc_screenbuf_size = video_screen_size; |
d | 451 | drivers/char/console.c | kfree_s(vc_cons[currcons].d, structsize); |
d | 452 | drivers/char/console.c | vc_cons[currcons].d = 0; |
d | 539 | drivers/char/console.c | unsigned short * d = (unsigned short *) video_mem_base; |
d | 548 | drivers/char/console.c | scr_writew(scr_readw(d++),s++); |
d | 604 | drivers/char/console.c | unsigned short * d = (unsigned short *) video_mem_start; |
d | 611 | drivers/char/console.c | scr_writew(scr_readw(s++),d++); |
d | 616 | drivers/char/console.c | scr_writew(video_erase_char, d++); |
d | 625 | drivers/char/console.c | unsigned short * d; |
d | 628 | drivers/char/console.c | d = (unsigned short *) (scr_end - video_size_row); |
d | 632 | drivers/char/console.c | scr_writew(video_erase_char, d++); |
d | 639 | drivers/char/console.c | unsigned short * d = (unsigned short *) (origin+video_size_row*t); |
d | 645 | drivers/char/console.c | scr_writew(scr_readw(s++), d++); |
d | 650 | drivers/char/console.c | scr_writew(video_erase_char, d++); |
d | 658 | drivers/char/console.c | unsigned short *d, *s; |
d | 663 | drivers/char/console.c | d = (unsigned short *) (origin+video_size_row*b); |
d | 668 | drivers/char/console.c | scr_writew(scr_readw(--s), --d); |
d | 673 | drivers/char/console.c | scr_writew(video_erase_char, --d); |
d | 1933 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_red[j] ; |
d | 1934 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_grn[j] ; |
d | 1935 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_blu[j] ; |
d | 2043 | drivers/char/console.c | vc_cons[currcons].d = (struct vc_data *) kmem_start; |
d | 2053 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_red[j] ; |
d | 2054 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_grn[j] ; |
d | 2055 | 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 | 831 | drivers/char/keyboard.c | int d = diacr; |
d | 836 | drivers/char/keyboard.c | return d; |
d | 839 | drivers/char/keyboard.c | if (accent_table[i].diacr == d && accent_table[i].base == ch) |
d | 843 | 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 | 1340 | drivers/char/tty_io.c | char *c, *d; |
d | 1350 | drivers/char/tty_io.c | d = (char *)(ts->tasks+n); |
d | 1352 | 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 | 271 | drivers/net/net_init.c | while (d->next) |
d | 272 | drivers/net/net_init.c | d = d->next; |
d | 273 | drivers/net/net_init.c | d->next = dev; |
d | 285 | drivers/net/net_init.c | struct device *d = dev_base; |
d | 312 | drivers/net/net_init.c | while(d && (net_alias_nextdev(d) != dev)) /* skip aliases */ |
d | 313 | drivers/net/net_init.c | d = net_alias_nextdev(d); |
d | 315 | drivers/net/net_init.c | if (d && (net_alias_nextdev(d) == dev)) |
d | 320 | drivers/net/net_init.c | net_alias_nextdev_set(d, net_alias_nextdev(dev)); |
d | 327 | drivers/net/net_init.c | while (d && (d->next != dev)) |
d | 328 | drivers/net/net_init.c | d = d->next; |
d | 330 | drivers/net/net_init.c | if (d && (d->next == dev)) |
d | 332 | drivers/net/net_init.c | d->next = dev->next; |
d | 2840 | drivers/net/ppp.c | &temp.d); |
d | 104 | drivers/net/slip.c | static int slip_esc(unsigned char *p, unsigned char *d, int len); |
d | 107 | drivers/net/slip.c | static int slip_esc6(unsigned char *p, unsigned char *d, int len); |
d | 851 | drivers/net/slip.c | slip_esc(unsigned char *s, unsigned char *d, int len) |
d | 853 | drivers/net/slip.c | unsigned char *ptr = d; |
d | 885 | drivers/net/slip.c | return (ptr - d); |
d | 936 | drivers/net/slip.c | slip_esc6(unsigned char *s, unsigned char *d, int len) |
d | 938 | drivers/net/slip.c | unsigned char *ptr = d; |
d | 970 | drivers/net/slip.c | return ptr - d; |
d | 1594 | drivers/scsi/NCR5380.c | register unsigned char *d = *data; |
d | 1634 | drivers/scsi/NCR5380.c | NCR5380_write(OUTPUT_DATA_REG, *d); |
d | 1636 | drivers/scsi/NCR5380.c | *d = NCR5380_read(CURRENT_SCSI_DATA_REG); |
d | 1638 | drivers/scsi/NCR5380.c | ++d; |
d | 1702 | drivers/scsi/NCR5380.c | *data = d; |
d | 1808 | drivers/scsi/NCR5380.c | register unsigned char *d = *data; |
d | 1834 | drivers/scsi/NCR5380.c | "writing", c, (p & SR_IO) ? "to" : "from", (unsigned) d); |
d | 1837 | drivers/scsi/NCR5380.c | NCR5380_dma_read_setup(instance, d, c) : |
d | 1838 | drivers/scsi/NCR5380.c | NCR5380_dma_write_setup(instance, d, c); |
d | 2010 | drivers/scsi/NCR5380.c | if (!(foo = NCR5380_pread(instance, d, c - diff))) { |
d | 2037 | drivers/scsi/NCR5380.c | d[c - 1] = NCR5380_read(INPUT_DATA_REG); |
d | 2045 | drivers/scsi/NCR5380.c | if (!(foo = NCR5380_pwrite(instance, d, c))) { |
d | 2117 | 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 | 325 | drivers/scsi/t128.c | T_DATA_REG_OFFSET), *d = dst; |
d | 336 | drivers/scsi/t128.c | *d++ = *reg; |
d | 113 | drivers/sound/ad1848.c | #define io_Index_Addr(d) ((d)->base) |
d | 114 | drivers/sound/ad1848.c | #define io_Indexed_Data(d) ((d)->base+1) |
d | 115 | drivers/sound/ad1848.c | #define io_Status(d) ((d)->base+2) |
d | 116 | drivers/sound/ad1848.c | #define io_Polled_IO(d) ((d)->base+3) |
d | 31 | fs/fat/msbuffer.h | #define bread(d,b,s) fat_bread(sb,b) |
d | 32 | fs/fat/msbuffer.h | #define getblk(d,b,s) fat_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 | 225 | include/linux/sbpcd.h | #define upc_valid (D_S[d].diskstate_flags&upc_bit) |
d | 226 | include/linux/sbpcd.h | #define volume_valid (D_S[d].diskstate_flags&volume_bit) |
d | 227 | include/linux/sbpcd.h | #define toc_valid (D_S[d].diskstate_flags&toc_bit) |
d | 228 | include/linux/sbpcd.h | #define cd_size_valid (D_S[d].diskstate_flags&cd_size_bit) |
d | 229 | include/linux/sbpcd.h | #define subq_valid (D_S[d].diskstate_flags&subq_bit) |
d | 230 | include/linux/sbpcd.h | #define frame_size_valid (D_S[d].diskstate_flags&frame_size_bit) |
d | 307 | include/linux/sbpcd.h | #define st_door_closed (D_S[d].status_bits&p_door_closed) |
d | 308 | include/linux/sbpcd.h | #define st_caddy_in (D_S[d].status_bits&p_caddy_in) |
d | 309 | include/linux/sbpcd.h | #define st_spinning (D_S[d].status_bits&p_spinning) |
d | 310 | include/linux/sbpcd.h | #define st_check (D_S[d].status_bits&p_check) |
d | 311 | include/linux/sbpcd.h | #define st_busy (D_S[d].status_bits&p_busy_new) |
d | 312 | include/linux/sbpcd.h | #define st_door_locked (D_S[d].status_bits&p_door_locked) |
d | 313 | include/linux/sbpcd.h | #define st_diskok (D_S[d].status_bits&p_disk_ok) |
d | 355 | include/linux/sbpcd.h | #define fam0_drive (D_S[d].drv_type&drv_fam0) |
d | 356 | include/linux/sbpcd.h | #define famL_drive (D_S[d].drv_type&drv_famL) |
d | 357 | include/linux/sbpcd.h | #define famV_drive (D_S[d].drv_type&drv_famV) |
d | 358 | include/linux/sbpcd.h | #define fam1_drive (D_S[d].drv_type&drv_fam1) |
d | 359 | include/linux/sbpcd.h | #define fam2_drive (D_S[d].drv_type&drv_fam2) |
d | 360 | include/linux/sbpcd.h | #define famT_drive (D_S[d].drv_type&drv_famT) |
d | 361 | include/linux/sbpcd.h | #define fam0L_drive (D_S[d].drv_type&(drv_fam0|drv_famL)) |
d | 362 | include/linux/sbpcd.h | #define fam0V_drive (D_S[d].drv_type&(drv_fam0|drv_famV)) |
d | 363 | include/linux/sbpcd.h | #define famLV_drive (D_S[d].drv_type&(drv_famL|drv_famV)) |
d | 364 | include/linux/sbpcd.h | #define fam0LV_drive (D_S[d].drv_type&(drv_fam0|drv_famL|drv_famV)) |
d | 365 | include/linux/sbpcd.h | #define fam1L_drive (D_S[d].drv_type&(drv_fam1|drv_famL)) |
d | 366 | include/linux/sbpcd.h | #define fam1V_drive (D_S[d].drv_type&(drv_fam1|drv_famV)) |
d | 367 | include/linux/sbpcd.h | #define fam1LV_drive (D_S[d].drv_type&(drv_fam1|drv_famL|drv_famV)) |
d | 368 | include/linux/sbpcd.h | #define fam01_drive (D_S[d].drv_type&(drv_fam0|drv_fam1)) |
d | 369 | include/linux/sbpcd.h | #define fam12_drive (D_S[d].drv_type&(drv_fam1|drv_fam2)) |
d | 370 | include/linux/sbpcd.h | #define fam2T_drive (D_S[d].drv_type&(drv_fam2|drv_famT)) |
d | 50 | 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 | 335 | net/ax25/ax25_subr.c | int d = 0; |
d | 365 | net/ax25/ax25_subr.c | if (d >= AX25_MAX_DIGIS) return NULL; /* Max of 6 digis */ |
d | 369 | net/ax25/ax25_subr.c | memcpy(&digi->calls[d], buf, AX25_ADDR_LEN); |
d | 370 | net/ax25/ax25_subr.c | digi->ndigi = d + 1; |
d | 372 | net/ax25/ax25_subr.c | digi->repeated[d] = 1; |
d | 373 | net/ax25/ax25_subr.c | digi->lastrepeat = d; |
d | 375 | net/ax25/ax25_subr.c | digi->repeated[d] = 0; |
d | 381 | net/ax25/ax25_subr.c | d++; |
d | 390 | 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 | 419 | net/ax25/ax25_subr.c | if (d == NULL || d->ndigi == 0) { |
d | 427 | net/ax25/ax25_subr.c | while (ct < d->ndigi) { |
d | 428 | net/ax25/ax25_subr.c | memcpy(buf, &d->calls[ct], AX25_ADDR_LEN); |
d | 429 | 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 | 1870 | net/ipx/af_ipx.c | void dump_data(char *str,unsigned char *d, int len) { |
d | 1878 | net/ipx/af_ipx.c | *(p++) = h2c[(d[i] >> 4) & 0x0f]; |
d | 1879 | net/ipx/af_ipx.c | *(p++) = h2c[d[i] & 0x0f]; |
d | 1892 | net/ipx/af_ipx.c | *(p++) = ' '<= d[i] && d[i]<'\177' ? d[i] : '.'; |
d | 1896 | net/ipx/af_ipx.c | d += i; |