tag | line | file | source code |
pc | 441 | arch/alpha/kernel/alcor.c | regs->pc, mchk_header->size, mchk_header->proc_offset, mchk_header->sys_offset)); |
pc | 462 | arch/alpha/kernel/apecs.c | regs->pc, mchk_header->size, mchk_header->proc_offset, mchk_header->sys_offset)); |
pc | 265 | arch/alpha/kernel/irq.c | printk("PC = %016lx PS=%04lx\n", regs->pc, regs->ps); |
pc | 652 | arch/alpha/kernel/irq.c | printk("PC = %016lx PS=%04lx\n", regs.pc, regs.ps); |
pc | 393 | arch/alpha/kernel/lca.c | printk("lca: machine check (la=0x%lx,pc=0x%lx)\n", la, regs->pc); |
pc | 60 | arch/alpha/kernel/process.c | printk("\nps: %04lx pc: [<%016lx>]\n", regs->ps, regs->pc); |
pc | 196 | arch/alpha/kernel/process.c | dump->regs[EF_PC] = pt->pc; |
pc | 103 | arch/alpha/kernel/ptrace.c | PT_REG( pc) |
pc | 419 | arch/alpha/kernel/ptrace.c | unsigned long pc; |
pc | 421 | arch/alpha/kernel/ptrace.c | pc = get_reg(child, REG_PC); |
pc | 422 | arch/alpha/kernel/ptrace.c | res = read_int(child, pc, &insn); |
pc | 437 | arch/alpha/kernel/ptrace.c | child->debugreg[nsaved++] = pc + 4; |
pc | 439 | arch/alpha/kernel/ptrace.c | child->debugreg[nsaved++] = pc + 4 + displ; |
pc | 446 | arch/alpha/kernel/ptrace.c | child->debugreg[nsaved++] = pc + 4; |
pc | 183 | arch/alpha/kernel/setup.c | unsigned long count, va, pc; |
pc | 224 | arch/alpha/kernel/setup.c | unaligned[0].count, unaligned[0].pc, unaligned[0].va, |
pc | 225 | arch/alpha/kernel/setup.c | unaligned[1].count, unaligned[1].pc, unaligned[1].va); |
pc | 88 | arch/alpha/kernel/signal.c | regs->pc = get_fs_quad(&sc->sc_pc); |
pc | 134 | arch/alpha/kernel/signal.c | unsigned long pc, struct pt_regs * regs, |
pc | 149 | arch/alpha/kernel/signal.c | put_fs_quad(pc, &sc->sc_pc); |
pc | 222 | arch/alpha/kernel/signal.c | unsigned long pc = 0; |
pc | 307 | arch/alpha/kernel/signal.c | regs->pc -= 4; |
pc | 315 | arch/alpha/kernel/signal.c | pc = regs->pc; |
pc | 324 | arch/alpha/kernel/signal.c | setup_frame(sa,&frame,pc,regs,sw,signr,oldmask); |
pc | 325 | arch/alpha/kernel/signal.c | pc = (unsigned long) sa->sa_handler; |
pc | 326 | arch/alpha/kernel/signal.c | regs->r27 = pc; |
pc | 334 | arch/alpha/kernel/signal.c | regs->pc = pc; /* "return" to the first handler */ |
pc | 24 | arch/alpha/kernel/traps.c | unsigned int * pc; |
pc | 30 | arch/alpha/kernel/traps.c | printk("pc = [<%lx>] ps = %04lx\n", regs->pc, regs->ps); |
pc | 44 | arch/alpha/kernel/traps.c | pc = (unsigned int *) regs->pc; |
pc | 46 | arch/alpha/kernel/traps.c | printk("%c%08x%c",i?' ':'<',pc[i],i?' ':'>'); |
pc | 68 | arch/alpha/kernel/traps.c | current->comm, regs.pc, summary, write_mask); |
pc | 83 | arch/alpha/kernel/traps.c | regs.pc -= 4; /* make pc point to former bpt */ |
pc | 134 | arch/alpha/kernel/traps.c | extern long alpha_fp_emul (unsigned long pc); |
pc | 138 | arch/alpha/kernel/traps.c | opcode = get_user((__u32*)(regs.pc - 4)) >> 26; |
pc | 144 | arch/alpha/kernel/traps.c | if (!alpha_fp_emul(regs.pc - 4)) |
pc | 173 | arch/alpha/kernel/traps.c | unsigned long ps, pc, gp, a0, a1, a2; |
pc | 177 | arch/alpha/kernel/traps.c | unsigned long count, va, pc; |
pc | 192 | arch/alpha/kernel/traps.c | regs.pc - 4, va, opcode, reg); |
pc | 198 | arch/alpha/kernel/traps.c | unaligned[0].pc = regs.pc; |
pc | 218 | arch/alpha/kernel/traps.c | regs.pc, va, opcode, reg); |
pc | 303 | arch/alpha/kernel/traps.c | unaligned[1].pc = *pc_addr; |
pc | 169 | arch/alpha/math-emu/fp-emul.c | alpha_fp_emul (unsigned long pc) |
pc | 176 | arch/alpha/math-emu/fp-emul.c | insn = get_user((__u32*)pc); |
pc | 292 | arch/alpha/math-emu/fp-emul.c | func & 0x3f, pc); |
pc | 327 | arch/alpha/math-emu/fp-emul.c | unsigned long trigger_pc = regs->pc - 4; |
pc | 380 | arch/alpha/math-emu/fp-emul.c | regs->pc = trigger_pc + 4; |
pc | 82 | arch/alpha/mm/fault.c | current->comm, regs.pc, regs.r26, address); |
pc | 147 | arch/mips/kernel/signal.c | unsigned long pc, struct pt_regs *regs, |
pc | 245 | arch/mips/kernel/signal.c | unsigned long pc = 0; |
pc | 336 | arch/mips/kernel/signal.c | pc = regs->cp0_epc; |
pc | 345 | arch/mips/kernel/signal.c | setup_frame(sa, &frame, pc, regs, signr, oldmask); |
pc | 346 | arch/mips/kernel/signal.c | pc = (unsigned long) sa->sa_handler; |
pc | 354 | arch/mips/kernel/signal.c | regs->cp0_epc = pc; /* "return" to the first handler */ |
pc | 87 | arch/mips/kernel/traps.c | u32 *sp, *pc, addr, module_start, module_end; |
pc | 94 | arch/mips/kernel/traps.c | pc = (u32 *)regs->cp0_epc; |
pc | 144 | arch/mips/kernel/traps.c | if ((!verify_area(VERIFY_READ, pc, 5 * sizeof(*pc)) || |
pc | 145 | arch/mips/kernel/traps.c | KSEGX(pc) == KSEG0 || |
pc | 146 | arch/mips/kernel/traps.c | KSEGX(pc) == KSEG1) && |
pc | 147 | arch/mips/kernel/traps.c | (((unsigned long) pc & 3) == 0)) |
pc | 150 | arch/mips/kernel/traps.c | printk("%08x ", *pc++); |
pc | 181 | arch/mips/kernel/traps.c | unsigned long pc = regs->cp0_epc; |
pc | 194 | arch/mips/kernel/traps.c | dump_list_process(task[i], pc); |
pc | 237 | arch/sparc/kernel/irq.c | printk("PC = %08lx NPC = %08lx FP=%08lx\n", regs->pc, |
pc | 76 | arch/sparc/kernel/process.c | regs->pc, regs->npc, regs->y); |
pc | 210 | arch/sparc/kernel/process.c | dump->regs.pc = regs->pc; |
pc | 43 | arch/sparc/kernel/signal.c | regs->pc = regs->npc; |
pc | 71 | arch/sparc/kernel/signal.c | regs->pc = regs->npc; |
pc | 92 | arch/sparc/kernel/signal.c | current->comm, current->pid, regs->pc, scptr); |
pc | 101 | arch/sparc/kernel/signal.c | regs->pc = scptr->sigc_pc; |
pc | 138 | arch/sparc/kernel/signal.c | unsigned long pc, unsigned long npc, struct pt_regs *regs, |
pc | 158 | arch/sparc/kernel/signal.c | sframep, pc, signr); |
pc | 172 | arch/sparc/kernel/signal.c | sc->sigc_pc = pc; |
pc | 222 | arch/sparc/kernel/signal.c | unsigned long pc = 0; |
pc | 282 | arch/sparc/kernel/signal.c | regs->pc -= 4; |
pc | 287 | arch/sparc/kernel/signal.c | pc = regs->pc; |
pc | 297 | arch/sparc/kernel/signal.c | setup_frame(sa, &frame, pc, npc, regs, signr, oldmask); |
pc | 298 | arch/sparc/kernel/signal.c | pc = (unsigned long) sa->sa_handler; |
pc | 299 | arch/sparc/kernel/signal.c | npc = pc + 4; |
pc | 305 | arch/sparc/kernel/signal.c | regs->pc = pc; |
pc | 41 | arch/sparc/kernel/sys_bsd.c | current->tss.sig_address = regs->pc; |
pc | 523 | arch/sparc/kernel/sys_sunos.c | current->tss.sig_address = regs->pc; |
pc | 26 | arch/sparc/kernel/traps.c | unsigned long pc; |
pc | 47 | arch/sparc/kernel/traps.c | unsigned long *pc; |
pc | 54 | arch/sparc/kernel/traps.c | pc = (unsigned long *) regs->pc; |
pc | 56 | arch/sparc/kernel/traps.c | printk("%c%08lx%c",i?' ':'<',pc[i],i?' ':'>'); |
pc | 61 | arch/sparc/kernel/traps.c | void do_hw_interrupt(unsigned long type, unsigned long psr, unsigned long pc) |
pc | 69 | arch/sparc/kernel/traps.c | current->tss.sig_address = pc; |
pc | 73 | arch/sparc/kernel/traps.c | void do_illegal_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 78 | arch/sparc/kernel/traps.c | current->tss.sig_address = pc; |
pc | 83 | arch/sparc/kernel/traps.c | void do_priv_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 88 | arch/sparc/kernel/traps.c | current->tss.sig_address = pc; |
pc | 95 | arch/sparc/kernel/traps.c | void do_memaccess_unaligned(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 100 | arch/sparc/kernel/traps.c | current->tss.sig_address = pc; |
pc | 116 | arch/sparc/kernel/traps.c | void do_fpd_trap(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 148 | arch/sparc/kernel/traps.c | void do_fpe_trap(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 166 | arch/sparc/kernel/traps.c | last_task_used_math->tss.sig_address = pc; |
pc | 173 | arch/sparc/kernel/traps.c | regs->pc); |
pc | 174 | arch/sparc/kernel/traps.c | regs->pc = regs->npc; |
pc | 189 | arch/sparc/kernel/traps.c | void handle_tag_overflow(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 194 | arch/sparc/kernel/traps.c | current->tss.sig_address = pc; |
pc | 199 | arch/sparc/kernel/traps.c | void handle_watchpoint(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 203 | arch/sparc/kernel/traps.c | pc, npc, psr); |
pc | 209 | arch/sparc/kernel/traps.c | void handle_reg_access(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 213 | arch/sparc/kernel/traps.c | pc, npc, psr); |
pc | 217 | arch/sparc/kernel/traps.c | void handle_cp_disabled(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 223 | arch/sparc/kernel/traps.c | void handle_bad_flush(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 227 | arch/sparc/kernel/traps.c | pc, npc, psr); |
pc | 231 | arch/sparc/kernel/traps.c | void handle_cp_exception(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 235 | arch/sparc/kernel/traps.c | pc, npc, psr); |
pc | 239 | arch/sparc/kernel/traps.c | void handle_hw_divzero(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 243 | arch/sparc/kernel/traps.c | pc, npc, psr); |
pc | 126 | arch/sparc/mm/fault.c | address = regs->pc; |
pc | 179 | arch/sparc/mm/fault.c | regs->pc = regs->npc; |
pc | 1003 | arch/sparc/mm/sun4c.c | force_user_fault(regs->pc, 0); |
pc | 17 | arch/sparc/prom/mp.c | prom_startcpu(int cpunode, struct linux_prom_registers *ctable_reg, int ctx, char *pc) |
pc | 25 | arch/sparc/prom/mp.c | return (*(romvec->v3_cpustart))(cpunode, (int) ctable_reg, ctx, pc); |
pc | 548 | drivers/block/ide-cd.c | struct packet_command *pc; |
pc | 558 | drivers/block/ide-cd.c | pc = &HWIF(drive)->request_sense_pc; |
pc | 559 | drivers/block/ide-cd.c | memset (pc, 0, sizeof (*pc)); |
pc | 568 | drivers/block/ide-cd.c | pc->c[0] = REQUEST_SENSE; |
pc | 569 | drivers/block/ide-cd.c | pc->c[4] = len; |
pc | 570 | drivers/block/ide-cd.c | pc->buffer = (char *)reqbuf; |
pc | 571 | drivers/block/ide-cd.c | pc->buflen = len; |
pc | 572 | drivers/block/ide-cd.c | pc->sense_data = (struct atapi_request_sense *)failed_command; |
pc | 579 | drivers/block/ide-cd.c | rq->buffer = (char *)pc; |
pc | 600 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
pc | 602 | drivers/block/ide-cd.c | (struct atapi_request_sense *)(pc->buffer - pc->c[4]), |
pc | 603 | drivers/block/ide-cd.c | (struct packet_command *)pc->sense_data); |
pc | 650 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
pc | 651 | drivers/block/ide-cd.c | pc->stat = 1; |
pc | 661 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
pc | 674 | drivers/block/ide-cd.c | if (pc->c[0] != SCMD_READ_SUBCHANNEL) |
pc | 705 | drivers/block/ide-cd.c | pc->stat = 1; |
pc | 709 | drivers/block/ide-cd.c | cdrom_queue_request_sense (drive, sem, pc->sense_data, pc); |
pc | 1123 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1166 | drivers/block/ide-cd.c | memset (&pc.c, 0, sizeof (pc.c)); |
pc | 1167 | drivers/block/ide-cd.c | pc.c[0] = READ_10; |
pc | 1168 | drivers/block/ide-cd.c | pc.c[7] = (nframes >> 8); |
pc | 1169 | drivers/block/ide-cd.c | pc.c[8] = (nframes & 0xff); |
pc | 1171 | drivers/block/ide-cd.c | stl_u (htonl (frame), (unsigned int *) &pc.c[2]); |
pc | 1173 | drivers/block/ide-cd.c | *(int *)(&pc.c[2]) = htonl (frame); |
pc | 1177 | drivers/block/ide-cd.c | (void) cdrom_transfer_packet_command (drive, pc.c, sizeof (pc.c), |
pc | 1232 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
pc | 1247 | drivers/block/ide-cd.c | if (pc->c[0] == REQUEST_SENSE && pc->buflen > 0 && pc->buflen <= 5) { |
pc | 1248 | drivers/block/ide-cd.c | while (pc->buflen > 0) { |
pc | 1249 | drivers/block/ide-cd.c | *pc->buffer++ = 0; |
pc | 1250 | drivers/block/ide-cd.c | --pc->buflen; |
pc | 1254 | drivers/block/ide-cd.c | if (pc->buflen == 0) |
pc | 1259 | drivers/block/ide-cd.c | drive->name, pc->buflen); |
pc | 1260 | drivers/block/ide-cd.c | pc->stat = 1; |
pc | 1267 | drivers/block/ide-cd.c | thislen = pc->buflen; |
pc | 1275 | drivers/block/ide-cd.c | if (pc->buflen > 0) |
pc | 1279 | drivers/block/ide-cd.c | pc->stat = 1; |
pc | 1284 | drivers/block/ide-cd.c | cdrom_out_bytes (drive, pc->buffer, thislen); |
pc | 1296 | drivers/block/ide-cd.c | pc->buffer += thislen; |
pc | 1297 | drivers/block/ide-cd.c | pc->buflen += thislen; |
pc | 1304 | drivers/block/ide-cd.c | if (pc->buflen < 0) |
pc | 1308 | drivers/block/ide-cd.c | pc->stat = 1; |
pc | 1313 | drivers/block/ide-cd.c | cdrom_in_bytes (drive, pc->buffer, thislen); |
pc | 1325 | drivers/block/ide-cd.c | pc->buffer += thislen; |
pc | 1326 | drivers/block/ide-cd.c | pc->buflen -= thislen; |
pc | 1333 | drivers/block/ide-cd.c | pc->stat = 1; |
pc | 1344 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
pc | 1347 | drivers/block/ide-cd.c | cdrom_transfer_packet_command (drive, pc->c, sizeof (pc->c), &cdrom_pc_intr); |
pc | 1355 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
pc | 1357 | drivers/block/ide-cd.c | len = pc->buflen; |
pc | 1360 | drivers/block/ide-cd.c | pc->stat = 0; |
pc | 1378 | drivers/block/ide-cd.c | int cdrom_queue_packet_command (ide_drive_t *drive, struct packet_command *pc) |
pc | 1386 | drivers/block/ide-cd.c | if (pc->sense_data == NULL) |
pc | 1387 | drivers/block/ide-cd.c | pc->sense_data = &my_reqbuf; |
pc | 1388 | drivers/block/ide-cd.c | pc->sense_data->sense_key = 0; |
pc | 1394 | drivers/block/ide-cd.c | req.buffer = (char *)pc; |
pc | 1397 | drivers/block/ide-cd.c | if (pc->stat != 0) |
pc | 1401 | drivers/block/ide-cd.c | struct atapi_request_sense *reqbuf = pc->sense_data; |
pc | 1422 | drivers/block/ide-cd.c | } while (pc->stat != 0 && retries >= 0); |
pc | 1426 | drivers/block/ide-cd.c | if (pc->stat != 0) |
pc | 1436 | drivers/block/ide-cd.c | (pc->c[0] != REQUEST_SENSE && |
pc | 1437 | drivers/block/ide-cd.c | pc->c[0] != ALLOW_MEDIUM_REMOVAL && |
pc | 1438 | drivers/block/ide-cd.c | pc->c[0] != START_STOP)) |
pc | 1525 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1527 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1529 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1530 | drivers/block/ide-cd.c | pc.c[0] = TEST_UNIT_READY; |
pc | 1532 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (drive, &pc); |
pc | 1543 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1553 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1554 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1556 | drivers/block/ide-cd.c | pc.c[0] = ALLOW_MEDIUM_REMOVAL; |
pc | 1557 | drivers/block/ide-cd.c | pc.c[4] = (lockflag != 0); |
pc | 1558 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
pc | 1585 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1587 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1588 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1590 | drivers/block/ide-cd.c | pc.c[0] = START_STOP; |
pc | 1591 | drivers/block/ide-cd.c | pc.c[4] = 2 + (ejectflag != 0); |
pc | 1592 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (drive, &pc); |
pc | 1600 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1602 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1603 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1605 | drivers/block/ide-cd.c | pc.c[0] = SCMD_PAUSE_RESUME; |
pc | 1606 | drivers/block/ide-cd.c | pc.c[8] = !pauseflag; |
pc | 1607 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (drive, &pc); |
pc | 1615 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1617 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1618 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1620 | drivers/block/ide-cd.c | pc.c[0] = START_STOP; |
pc | 1621 | drivers/block/ide-cd.c | pc.c[1] = 1; |
pc | 1622 | drivers/block/ide-cd.c | pc.c[4] = startflag; |
pc | 1623 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (drive, &pc); |
pc | 1637 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1639 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1640 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1642 | drivers/block/ide-cd.c | pc.c[0] = READ_CAPACITY; |
pc | 1643 | drivers/block/ide-cd.c | pc.buffer = (char *)&capbuf; |
pc | 1644 | drivers/block/ide-cd.c | pc.buflen = sizeof (capbuf); |
pc | 1646 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
pc | 1661 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1663 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1664 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1666 | drivers/block/ide-cd.c | pc.buffer = buf; |
pc | 1667 | drivers/block/ide-cd.c | pc.buflen = buflen; |
pc | 1668 | drivers/block/ide-cd.c | pc.c[0] = SCMD_READ_TOC; |
pc | 1669 | drivers/block/ide-cd.c | pc.c[6] = trackno; |
pc | 1670 | drivers/block/ide-cd.c | pc.c[7] = (buflen >> 8); |
pc | 1671 | drivers/block/ide-cd.c | pc.c[8] = (buflen & 0xff); |
pc | 1672 | drivers/block/ide-cd.c | pc.c[9] = (format << 6); |
pc | 1673 | drivers/block/ide-cd.c | if (msf_flag) pc.c[1] = 2; |
pc | 1674 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (drive, &pc); |
pc | 1813 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1815 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1816 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1818 | drivers/block/ide-cd.c | pc.buffer = buf; |
pc | 1819 | drivers/block/ide-cd.c | pc.buflen = buflen; |
pc | 1820 | drivers/block/ide-cd.c | pc.c[0] = SCMD_READ_SUBCHANNEL; |
pc | 1821 | drivers/block/ide-cd.c | pc.c[2] = 0x40; /* request subQ data */ |
pc | 1822 | drivers/block/ide-cd.c | pc.c[3] = 0x01; /* Format 1: current position */ |
pc | 1823 | drivers/block/ide-cd.c | pc.c[7] = (buflen >> 8); |
pc | 1824 | drivers/block/ide-cd.c | pc.c[8] = (buflen & 0xff); |
pc | 1825 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (drive, &pc); |
pc | 1835 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1837 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1838 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1840 | drivers/block/ide-cd.c | pc.buffer = buf; |
pc | 1841 | drivers/block/ide-cd.c | pc.buflen = buflen; |
pc | 1842 | drivers/block/ide-cd.c | pc.c[0] = MODE_SENSE_10; |
pc | 1843 | drivers/block/ide-cd.c | pc.c[2] = pageno | (modeflag << 6); |
pc | 1844 | drivers/block/ide-cd.c | pc.c[7] = (buflen >> 8); |
pc | 1845 | drivers/block/ide-cd.c | pc.c[8] = (buflen & 0xff); |
pc | 1846 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (drive, &pc); |
pc | 1854 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1856 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1857 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1859 | drivers/block/ide-cd.c | pc.buffer = buf; |
pc | 1860 | drivers/block/ide-cd.c | pc.buflen = - buflen; |
pc | 1861 | drivers/block/ide-cd.c | pc.c[0] = MODE_SELECT_10; |
pc | 1862 | drivers/block/ide-cd.c | pc.c[1] = 0x10; |
pc | 1863 | drivers/block/ide-cd.c | pc.c[2] = pageno; |
pc | 1864 | drivers/block/ide-cd.c | pc.c[7] = (buflen >> 8); |
pc | 1865 | drivers/block/ide-cd.c | pc.c[8] = (buflen & 0xff); |
pc | 1866 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (drive, &pc); |
pc | 1874 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1876 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1877 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1879 | drivers/block/ide-cd.c | pc.c[0] = SCMD_PLAYAUDIO12; |
pc | 1882 | drivers/block/ide-cd.c | (unsigned long *) &pc.c[2]); |
pc | 1884 | drivers/block/ide-cd.c | *(int *)(&pc.c[2]) = htonl (lba_start); |
pc | 1885 | drivers/block/ide-cd.c | *(int *)(&pc.c[6]) = htonl (lba_end - lba_start); |
pc | 1888 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (drive, &pc); |
pc | 1897 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1899 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1900 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1902 | drivers/block/ide-cd.c | pc.c[0] = SCMD_PLAYAUDIO_MSF; |
pc | 1903 | drivers/block/ide-cd.c | lba_to_msf (lba_start, &pc.c[3], &pc.c[4], &pc.c[5]); |
pc | 1904 | drivers/block/ide-cd.c | lba_to_msf (lba_end-1, &pc.c[6], &pc.c[7], &pc.c[8]); |
pc | 1908 | drivers/block/ide-cd.c | pc.c[3] = bin2bcd (pc.c[3]); |
pc | 1909 | drivers/block/ide-cd.c | pc.c[4] = bin2bcd (pc.c[4]); |
pc | 1910 | drivers/block/ide-cd.c | pc.c[5] = bin2bcd (pc.c[5]); |
pc | 1911 | drivers/block/ide-cd.c | pc.c[6] = bin2bcd (pc.c[6]); |
pc | 1912 | drivers/block/ide-cd.c | pc.c[7] = bin2bcd (pc.c[7]); |
pc | 1913 | drivers/block/ide-cd.c | pc.c[8] = bin2bcd (pc.c[8]); |
pc | 1916 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (drive, &pc); |
pc | 2036 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 2043 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 2044 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 2046 | drivers/block/ide-cd.c | pc.buffer = buf; |
pc | 2047 | drivers/block/ide-cd.c | pc.buflen = buflen; |
pc | 2051 | drivers/block/ide-cd.c | pc.c[0] = 0xd4; |
pc | 2054 | drivers/block/ide-cd.c | pc.c[0] = READ_CD; |
pc | 2056 | drivers/block/ide-cd.c | pc.c[1] = (format << 2); |
pc | 2058 | drivers/block/ide-cd.c | stl_u(htonl (lba), (unsigned int *) &pc.c[2]); |
pc | 2060 | drivers/block/ide-cd.c | *(int *)(&pc.c[2]) = htonl (lba); |
pc | 2062 | drivers/block/ide-cd.c | pc.c[8] = 1; /* one block */ |
pc | 2063 | drivers/block/ide-cd.c | pc.c[9] = 0x10; |
pc | 2065 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
pc | 2492 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 2495 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 2497 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (pc.c)); |
pc | 2499 | drivers/block/ide-cd.c | memcpy_fromfs (&pc.c, (void *) arg, sizeof (pc.c)); |
pc | 2500 | drivers/block/ide-cd.c | arg += sizeof (pc.c); |
pc | 2518 | drivers/block/ide-cd.c | pc.buflen = len; |
pc | 2519 | drivers/block/ide-cd.c | pc.buffer = buf; |
pc | 2522 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
pc | 819 | drivers/block/ide-tape.c | void idetape_issue_packet_command (ide_drive_t *drive,idetape_packet_command_t *pc,ide_handler_t *handler); |
pc | 838 | drivers/block/ide-tape.c | void idetape_zero_packet_command (idetape_packet_command_t *pc); |
pc | 839 | drivers/block/ide-tape.c | void idetape_queue_pc_head (ide_drive_t *drive,idetape_packet_command_t *pc,struct request *rq); |
pc | 849 | drivers/block/ide-tape.c | void idetape_create_inquiry_cmd (idetape_packet_command_t *pc); |
pc | 851 | drivers/block/ide-tape.c | void idetape_create_locate_cmd (idetape_packet_command_t *pc,unsigned long block,byte partition); |
pc | 852 | drivers/block/ide-tape.c | void idetape_create_rewind_cmd (idetape_packet_command_t *pc); |
pc | 853 | drivers/block/ide-tape.c | void idetape_create_write_filemark_cmd (idetape_packet_command_t *pc,int write_filemark); |
pc | 854 | drivers/block/ide-tape.c | void idetape_create_load_unload_cmd (idetape_packet_command_t *pc,int cmd); |
pc | 855 | drivers/block/ide-tape.c | void idetape_create_space_cmd (idetape_packet_command_t *pc,long count,byte cmd); |
pc | 856 | drivers/block/ide-tape.c | void idetape_create_erase_cmd (idetape_packet_command_t *pc); |
pc | 857 | drivers/block/ide-tape.c | void idetape_create_test_unit_ready_cmd (idetape_packet_command_t *pc); |
pc | 858 | drivers/block/ide-tape.c | void idetape_create_read_position_cmd (idetape_packet_command_t *pc); |
pc | 860 | drivers/block/ide-tape.c | void idetape_create_read_cmd (idetape_packet_command_t *pc,unsigned long length); |
pc | 862 | drivers/block/ide-tape.c | void idetape_create_write_cmd (idetape_packet_command_t *pc,unsigned long length); |
pc | 864 | drivers/block/ide-tape.c | void idetape_create_request_sense_cmd (idetape_packet_command_t *pc); |
pc | 865 | drivers/block/ide-tape.c | void idetape_create_mode_sense_cmd (idetape_packet_command_t *pc,byte page_code); |
pc | 928 | drivers/block/ide-tape.c | int idetape_queue_pc_tail (ide_drive_t *drive,idetape_packet_command_t *pc); |
pc | 1350 | drivers/block/ide-tape.c | idetape_packet_command_t pc; |
pc | 1352 | drivers/block/ide-tape.c | idetape_create_mode_sense_cmd (&pc,IDETAPE_CAPABILITIES_PAGE); |
pc | 1353 | drivers/block/ide-tape.c | pc.buffer=pc.temp_buffer; |
pc | 1354 | drivers/block/ide-tape.c | pc.buffer_size=IDETAPE_TEMP_BUFFER_SIZE; |
pc | 1355 | drivers/block/ide-tape.c | pc.current_position=pc.temp_buffer; |
pc | 1356 | drivers/block/ide-tape.c | retval=idetape_queue_pc_tail (drive,&pc); |
pc | 1358 | drivers/block/ide-tape.c | header=(idetape_mode_parameter_header_t *) pc.buffer; |
pc | 1359 | drivers/block/ide-tape.c | capabilities=(idetape_capabilities_page_t *) (pc.buffer+sizeof (idetape_mode_parameter_header_t)); |
pc | 1453 | drivers/block/ide-tape.c | void idetape_issue_packet_command (ide_drive_t *drive,idetape_packet_command_t *pc,ide_handler_t *handler) |
pc | 1464 | drivers/block/ide-tape.c | if (tape->pc->c[0] == IDETAPE_REQUEST_SENSE_CMD && pc->c[0] == IDETAPE_REQUEST_SENSE_CMD) { |
pc | 1469 | drivers/block/ide-tape.c | if (tape->failed_pc == NULL && pc->c[0] != IDETAPE_REQUEST_SENSE_CMD) |
pc | 1470 | drivers/block/ide-tape.c | tape->failed_pc=pc; |
pc | 1471 | drivers/block/ide-tape.c | tape->pc=pc; /* Set the current packet command */ |
pc | 1473 | drivers/block/ide-tape.c | if (pc->retries > IDETAPE_MAX_PC_RETRIES || pc->abort) { |
pc | 1482 | drivers/block/ide-tape.c | if (!pc->abort) { |
pc | 1484 | drivers/block/ide-tape.c | printk ("pc = %x, key = %x, asc = %x, ascq = %x\n",pc->c[0],tape->sense_key,tape->asc,tape->ascq); |
pc | 1486 | drivers/block/ide-tape.c | pc->error=1; /* Giving up */ |
pc | 1490 | drivers/block/ide-tape.c | if (pc->callback==NULL) |
pc | 1494 | drivers/block/ide-tape.c | (*pc->callback)(drive); |
pc | 1499 | drivers/block/ide-tape.c | printk ("Retry number - %d\n",pc->retries); |
pc | 1502 | drivers/block/ide-tape.c | pc->retries++; |
pc | 1509 | drivers/block/ide-tape.c | pc->actually_transferred=0; /* We haven't transferred any data yet */ |
pc | 1510 | drivers/block/ide-tape.c | pc->current_position=pc->buffer; |
pc | 1511 | drivers/block/ide-tape.c | bcount.all=pc->request_transfer; /* Request to transfer the entire buffer at once */ |
pc | 1514 | drivers/block/ide-tape.c | if (pc->dma_error) { |
pc | 1517 | drivers/block/ide-tape.c | pc->dma_error=0; |
pc | 1519 | drivers/block/ide-tape.c | if (pc->request_transfer && pc->dma_recommended && drive->using_dma) { |
pc | 1520 | drivers/block/ide-tape.c | dma_ok=!(HWIF(drive)->dmaproc(pc->writing ? ide_dma_write : ide_dma_read, drive)); |
pc | 1552 | drivers/block/ide-tape.c | ide_output_data (drive,pc->c,12/4); /* Send the actual packet */ |
pc | 1554 | drivers/block/ide-tape.c | if ((pc->dma_in_progress=dma_ok)) { /* Begin DMA, if necessary */ |
pc | 1555 | drivers/block/ide-tape.c | pc->dma_error=0; |
pc | 1578 | drivers/block/ide-tape.c | idetape_packet_command_t *pc=tape->pc; |
pc | 1582 | drivers/block/ide-tape.c | if (pc->dma_in_progress) { |
pc | 1583 | drivers/block/ide-tape.c | if ((pc->dma_error=HWIF(drive)->dmaproc(ide_dma_status_bad, drive))) |
pc | 1588 | drivers/block/ide-tape.c | pc->actually_transferred=HWIF(drive)->dmaproc(ide_dma_transferred, drive); |
pc | 1590 | drivers/block/ide-tape.c | pc->actually_transferred=pc->request_transfer; |
pc | 1607 | drivers/block/ide-tape.c | printk ("Total bytes transferred: %lu\n",pc->actually_transferred); |
pc | 1609 | drivers/block/ide-tape.c | pc->dma_in_progress=0; |
pc | 1613 | drivers/block/ide-tape.c | if (status.b.check || pc->dma_error) { /* Error detected */ |
pc | 1621 | drivers/block/ide-tape.c | if (pc->c[0] == IDETAPE_REQUEST_SENSE_CMD) { |
pc | 1630 | drivers/block/ide-tape.c | pc->error=0; |
pc | 1631 | drivers/block/ide-tape.c | if (pc->wait_for_dsc && !status.b.dsc) { /* Media access command */ |
pc | 1636 | drivers/block/ide-tape.c | if (tape->failed_pc == pc) |
pc | 1639 | drivers/block/ide-tape.c | if (pc->callback==NULL) |
pc | 1643 | drivers/block/ide-tape.c | (*pc->callback)(drive); /* Command finished - Call the callback function */ |
pc | 1647 | drivers/block/ide-tape.c | if (pc->dma_in_progress) { |
pc | 1648 | drivers/block/ide-tape.c | pc->dma_in_progress=0; |
pc | 1665 | drivers/block/ide-tape.c | if (ireason.b.io != !(pc->writing)) { /* Hopefully, we will never get here */ |
pc | 1666 | drivers/block/ide-tape.c | printk ("ide-tape: We wanted to %s, ",pc->writing ? "Write":"Read"); |
pc | 1672 | drivers/block/ide-tape.c | if (!pc->writing) { /* Reading - Check that we have enough space */ |
pc | 1673 | drivers/block/ide-tape.c | temp=(unsigned long) pc->actually_transferred + bcount.all; |
pc | 1674 | drivers/block/ide-tape.c | if ( temp > pc->request_transfer) { |
pc | 1676 | drivers/block/ide-tape.c | if (temp > pc->buffer_size) { |
pc | 1687 | drivers/block/ide-tape.c | if (bcount.all && !pc->buffer) { |
pc | 1690 | drivers/block/ide-tape.c | if (!pc->writing) { |
pc | 1700 | drivers/block/ide-tape.c | if (pc->writing) |
pc | 1701 | drivers/block/ide-tape.c | idetape_output_data (drive,pc->current_position,bcount.all); /* Write the current buffer */ |
pc | 1703 | drivers/block/ide-tape.c | idetape_input_data (drive,pc->current_position,bcount.all); /* Read the current buffer */ |
pc | 1705 | drivers/block/ide-tape.c | printk ("ide-tape: %s %d bytes\n",pc->writing ? "Wrote":"Received",bcount.all); |
pc | 1707 | drivers/block/ide-tape.c | pc->actually_transferred+=bcount.all; /* Update the current position */ |
pc | 1708 | drivers/block/ide-tape.c | pc->current_position+=bcount.all; |
pc | 2051 | drivers/block/ide-tape.c | idetape_packet_command_t *pc; |
pc | 2053 | drivers/block/ide-tape.c | pc=tape->pc; |
pc | 2066 | drivers/block/ide-tape.c | pc->error=0; |
pc | 2067 | drivers/block/ide-tape.c | if (tape->failed_pc == pc) |
pc | 2070 | drivers/block/ide-tape.c | if (pc->callback==NULL) |
pc | 2074 | drivers/block/ide-tape.c | (*pc->callback)(drive); |
pc | 2081 | drivers/block/ide-tape.c | pc->error=1; |
pc | 2084 | drivers/block/ide-tape.c | if (pc->callback==NULL) |
pc | 2088 | drivers/block/ide-tape.c | (*pc->callback)(drive); |
pc | 2103 | drivers/block/ide-tape.c | idetape_packet_command_t *pc; |
pc | 2108 | drivers/block/ide-tape.c | pc=idetape_next_pc_storage (drive); |
pc | 2110 | drivers/block/ide-tape.c | idetape_create_request_sense_cmd (pc); |
pc | 2111 | drivers/block/ide-tape.c | pc->buffer=pc->temp_buffer; |
pc | 2112 | drivers/block/ide-tape.c | pc->buffer_size=IDETAPE_TEMP_BUFFER_SIZE; |
pc | 2113 | drivers/block/ide-tape.c | pc->current_position=pc->temp_buffer; |
pc | 2114 | drivers/block/ide-tape.c | idetape_queue_pc_head (drive,pc,new_rq); |
pc | 2133 | drivers/block/ide-tape.c | if (!tape->pc->error) { |
pc | 2151 | drivers/block/ide-tape.c | int blocks_read=tape->pc->actually_transferred/tape->tape_block_size; |
pc | 2160 | drivers/block/ide-tape.c | if (!tape->pc->error) |
pc | 2163 | drivers/block/ide-tape.c | rq->errors=tape->pc->error; |
pc | 2179 | drivers/block/ide-tape.c | int blocks_written=tape->pc->actually_transferred/tape->tape_block_size; |
pc | 2188 | drivers/block/ide-tape.c | if (!tape->pc->error) |
pc | 2191 | drivers/block/ide-tape.c | rq->errors=tape->pc->error; |
pc | 2204 | drivers/block/ide-tape.c | idetape_display_inquiry_result (tape->pc->buffer); |
pc | 2272 | drivers/block/ide-tape.c | void idetape_create_inquiry_cmd (idetape_packet_command_t *pc) |
pc | 2278 | drivers/block/ide-tape.c | pc->request_transfer=36; |
pc | 2279 | drivers/block/ide-tape.c | pc->callback=&idetape_inquiry_callback; |
pc | 2280 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2282 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2283 | drivers/block/ide-tape.c | pc->c[0]=IDETAPE_INQUIRY_CMD; |
pc | 2284 | drivers/block/ide-tape.c | pc->c[4]=255; |
pc | 2372 | drivers/block/ide-tape.c | void idetape_create_request_sense_cmd (idetape_packet_command_t *pc) |
pc | 2378 | drivers/block/ide-tape.c | pc->request_transfer=18; |
pc | 2379 | drivers/block/ide-tape.c | pc->callback=&idetape_request_sense_callback; |
pc | 2380 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2382 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2383 | drivers/block/ide-tape.c | pc->c[0]=IDETAPE_REQUEST_SENSE_CMD; |
pc | 2384 | drivers/block/ide-tape.c | pc->c[4]=255; |
pc | 2395 | drivers/block/ide-tape.c | if (!tape->pc->error) { |
pc | 2399 | drivers/block/ide-tape.c | idetape_analyze_error (drive,(idetape_request_sense_result_t *) tape->pc->buffer); |
pc | 2419 | drivers/block/ide-tape.c | idetape_packet_command_t *pc=tape->failed_pc; |
pc | 2430 | drivers/block/ide-tape.c | printk ("ide-tape: pc = %x, sense key = %x, asc = %x, ascq = %x\n",pc->c[0],result->sense_key,result->asc,result->ascq); |
pc | 2433 | drivers/block/ide-tape.c | if (pc->c[0] == IDETAPE_READ_CMD) { |
pc | 2435 | drivers/block/ide-tape.c | pc->error=IDETAPE_RQ_ERROR_FILEMARK; |
pc | 2436 | drivers/block/ide-tape.c | pc->abort=1; |
pc | 2440 | drivers/block/ide-tape.c | if (pc->c[0] == IDETAPE_READ_CMD || pc->c[0] == IDETAPE_WRITE_CMD) { |
pc | 2442 | drivers/block/ide-tape.c | pc->error=IDETAPE_RQ_ERROR_EOD; |
pc | 2443 | drivers/block/ide-tape.c | pc->abort=1; |
pc | 2454 | drivers/block/ide-tape.c | if (pc->dma_error && pc->abort) { |
pc | 2456 | drivers/block/ide-tape.c | pc->actually_transferred=pc->request_transfer-tape->tape_block_size*idetape_swap_long (*long_ptr); |
pc | 2462 | drivers/block/ide-tape.c | void idetape_create_test_unit_ready_cmd (idetape_packet_command_t *pc) |
pc | 2468 | drivers/block/ide-tape.c | pc->request_transfer=0; |
pc | 2469 | drivers/block/ide-tape.c | pc->buffer=NULL; |
pc | 2470 | drivers/block/ide-tape.c | pc->current_position=NULL; |
pc | 2471 | drivers/block/ide-tape.c | pc->callback=&idetape_pc_callback; |
pc | 2472 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2474 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2475 | drivers/block/ide-tape.c | pc->c[0]=IDETAPE_TEST_UNIT_READY_CMD; |
pc | 2478 | drivers/block/ide-tape.c | void idetape_create_locate_cmd (idetape_packet_command_t *pc,unsigned long block,byte partition) |
pc | 2486 | drivers/block/ide-tape.c | pc->request_transfer=0; |
pc | 2487 | drivers/block/ide-tape.c | pc->buffer=NULL; |
pc | 2488 | drivers/block/ide-tape.c | pc->current_position=NULL; |
pc | 2489 | drivers/block/ide-tape.c | pc->buffer_size=0; |
pc | 2490 | drivers/block/ide-tape.c | pc->wait_for_dsc=1; |
pc | 2491 | drivers/block/ide-tape.c | pc->callback=&idetape_pc_callback; |
pc | 2492 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2494 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2495 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_LOCATE_CMD; |
pc | 2496 | drivers/block/ide-tape.c | pc->c [1]=2; |
pc | 2497 | drivers/block/ide-tape.c | ptr=(unsigned long *) &(pc->c[3]); |
pc | 2499 | drivers/block/ide-tape.c | pc->c[8]=partition; |
pc | 2502 | drivers/block/ide-tape.c | void idetape_create_rewind_cmd (idetape_packet_command_t *pc) |
pc | 2508 | drivers/block/ide-tape.c | pc->request_transfer=0; |
pc | 2509 | drivers/block/ide-tape.c | pc->buffer=NULL; |
pc | 2510 | drivers/block/ide-tape.c | pc->current_position=NULL; |
pc | 2511 | drivers/block/ide-tape.c | pc->buffer_size=0; |
pc | 2512 | drivers/block/ide-tape.c | pc->wait_for_dsc=1; |
pc | 2513 | drivers/block/ide-tape.c | pc->callback=&idetape_pc_callback; |
pc | 2514 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2516 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2517 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_REWIND_CMD; |
pc | 2524 | drivers/block/ide-tape.c | void idetape_create_mode_sense_cmd (idetape_packet_command_t *pc,byte page_code) |
pc | 2531 | drivers/block/ide-tape.c | pc->wait_for_dsc=0; |
pc | 2532 | drivers/block/ide-tape.c | pc->callback=&idetape_pc_callback; |
pc | 2533 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2537 | drivers/block/ide-tape.c | pc->request_transfer=24; |
pc | 2540 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2541 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_MODE_SENSE_CMD; |
pc | 2542 | drivers/block/ide-tape.c | pc->c [1]=8; /* DBD = 1 - Don't return block descriptors for now */ |
pc | 2543 | drivers/block/ide-tape.c | pc->c [2]=page_code; |
pc | 2544 | drivers/block/ide-tape.c | pc->c [3]=255; /* Don't limit the returned information */ |
pc | 2545 | drivers/block/ide-tape.c | pc->c [4]=255; /* (We will just discard data in that case) */ |
pc | 2557 | drivers/block/ide-tape.c | void idetape_create_write_filemark_cmd (idetape_packet_command_t *pc,int write_filemark) |
pc | 2565 | drivers/block/ide-tape.c | pc->request_transfer=0; |
pc | 2566 | drivers/block/ide-tape.c | pc->buffer=NULL; |
pc | 2567 | drivers/block/ide-tape.c | pc->current_position=NULL; |
pc | 2568 | drivers/block/ide-tape.c | pc->buffer_size=0; |
pc | 2569 | drivers/block/ide-tape.c | pc->wait_for_dsc=1; |
pc | 2570 | drivers/block/ide-tape.c | pc->callback=&idetape_pc_callback; |
pc | 2571 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2573 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2574 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_WRITE_FILEMARK_CMD; |
pc | 2576 | drivers/block/ide-tape.c | pc->c [4]=1; |
pc | 2579 | drivers/block/ide-tape.c | void idetape_create_load_unload_cmd (idetape_packet_command_t *pc,int cmd) |
pc | 2585 | drivers/block/ide-tape.c | pc->request_transfer=0; |
pc | 2586 | drivers/block/ide-tape.c | pc->buffer=NULL; |
pc | 2587 | drivers/block/ide-tape.c | pc->current_position=NULL; |
pc | 2588 | drivers/block/ide-tape.c | pc->buffer_size=0; |
pc | 2589 | drivers/block/ide-tape.c | pc->wait_for_dsc=1; |
pc | 2590 | drivers/block/ide-tape.c | pc->callback=&idetape_pc_callback; |
pc | 2591 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2593 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2594 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_LOAD_UNLOAD_CMD; |
pc | 2595 | drivers/block/ide-tape.c | pc->c [4]=cmd; |
pc | 2598 | drivers/block/ide-tape.c | void idetape_create_erase_cmd (idetape_packet_command_t *pc) |
pc | 2606 | drivers/block/ide-tape.c | pc->request_transfer=0; |
pc | 2607 | drivers/block/ide-tape.c | pc->buffer=NULL; |
pc | 2608 | drivers/block/ide-tape.c | pc->current_position=NULL; |
pc | 2609 | drivers/block/ide-tape.c | pc->buffer_size=0; |
pc | 2610 | drivers/block/ide-tape.c | pc->wait_for_dsc=1; |
pc | 2611 | drivers/block/ide-tape.c | pc->callback=&idetape_pc_callback; |
pc | 2612 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2614 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2615 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_ERASE_CMD; |
pc | 2616 | drivers/block/ide-tape.c | pc->c [1]=1; |
pc | 2619 | drivers/block/ide-tape.c | void idetape_create_read_cmd (idetape_packet_command_t *pc,unsigned long length) |
pc | 2638 | drivers/block/ide-tape.c | pc->wait_for_dsc=0; |
pc | 2639 | drivers/block/ide-tape.c | pc->callback=&idetape_read_callback; |
pc | 2640 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2642 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2644 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_READ_CMD; |
pc | 2645 | drivers/block/ide-tape.c | pc->c [1]=1; |
pc | 2646 | drivers/block/ide-tape.c | pc->c [4]=original.b.b1; |
pc | 2647 | drivers/block/ide-tape.c | pc->c [3]=original.b.b2; |
pc | 2648 | drivers/block/ide-tape.c | pc->c [2]=original.b.b3; |
pc | 2651 | drivers/block/ide-tape.c | pc->dma_recommended=1; |
pc | 2656 | drivers/block/ide-tape.c | void idetape_create_space_cmd (idetape_packet_command_t *pc,long count,byte cmd) |
pc | 2675 | drivers/block/ide-tape.c | pc->request_transfer=0; |
pc | 2676 | drivers/block/ide-tape.c | pc->buffer=NULL; |
pc | 2677 | drivers/block/ide-tape.c | pc->current_position=NULL; |
pc | 2678 | drivers/block/ide-tape.c | pc->buffer_size=0; |
pc | 2679 | drivers/block/ide-tape.c | pc->wait_for_dsc=1; |
pc | 2680 | drivers/block/ide-tape.c | pc->callback=&idetape_pc_callback; |
pc | 2681 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2683 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2684 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_SPACE_CMD; |
pc | 2685 | drivers/block/ide-tape.c | pc->c [1]=cmd; |
pc | 2686 | drivers/block/ide-tape.c | pc->c [4]=original.b.b1; |
pc | 2687 | drivers/block/ide-tape.c | pc->c [3]=original.b.b2; |
pc | 2688 | drivers/block/ide-tape.c | pc->c [2]=original.b.b3; |
pc | 2693 | drivers/block/ide-tape.c | void idetape_create_write_cmd (idetape_packet_command_t *pc,unsigned long length) |
pc | 2712 | drivers/block/ide-tape.c | pc->wait_for_dsc=0; |
pc | 2713 | drivers/block/ide-tape.c | pc->callback=&idetape_write_callback; |
pc | 2714 | drivers/block/ide-tape.c | pc->writing=1; |
pc | 2716 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2718 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_WRITE_CMD; |
pc | 2719 | drivers/block/ide-tape.c | pc->c [1]=1; |
pc | 2720 | drivers/block/ide-tape.c | pc->c [4]=original.b.b1; |
pc | 2721 | drivers/block/ide-tape.c | pc->c [3]=original.b.b2; |
pc | 2722 | drivers/block/ide-tape.c | pc->c [2]=original.b.b3; |
pc | 2725 | drivers/block/ide-tape.c | pc->dma_recommended=1; |
pc | 2730 | drivers/block/ide-tape.c | void idetape_create_read_position_cmd (idetape_packet_command_t *pc) |
pc | 2737 | drivers/block/ide-tape.c | pc->request_transfer=20; |
pc | 2738 | drivers/block/ide-tape.c | pc->wait_for_dsc=0; |
pc | 2739 | drivers/block/ide-tape.c | pc->callback=&idetape_read_position_callback; |
pc | 2740 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2742 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2743 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_READ_POSITION_CMD; |
pc | 2744 | drivers/block/ide-tape.c | pc->c [1]=0; |
pc | 2762 | drivers/block/ide-tape.c | if (!tape->pc->error) { |
pc | 2763 | drivers/block/ide-tape.c | result=(idetape_read_position_result_t *) tape->pc->buffer; |
pc | 2803 | drivers/block/ide-tape.c | idetape_packet_command_t pc; |
pc | 2805 | drivers/block/ide-tape.c | pc.buffer=pc.temp_buffer; |
pc | 2806 | drivers/block/ide-tape.c | pc.buffer_size=IDETAPE_TEMP_BUFFER_SIZE; |
pc | 2807 | drivers/block/ide-tape.c | pc.current_position=pc.temp_buffer; |
pc | 2899 | drivers/block/ide-tape.c | idetape_packet_command_t *pc; |
pc | 2952 | drivers/block/ide-tape.c | if (tape->failed_pc != NULL && tape->pc->c[0] == IDETAPE_REQUEST_SENSE_CMD) { |
pc | 3009 | drivers/block/ide-tape.c | pc=idetape_next_pc_storage (drive); |
pc | 3011 | drivers/block/ide-tape.c | idetape_create_read_cmd (pc,rq->current_nr_sectors); |
pc | 3013 | drivers/block/ide-tape.c | pc->buffer=rq->buffer; |
pc | 3014 | drivers/block/ide-tape.c | pc->buffer_size=rq->current_nr_sectors*tape->tape_block_size; |
pc | 3015 | drivers/block/ide-tape.c | pc->current_position=rq->buffer; |
pc | 3016 | drivers/block/ide-tape.c | pc->request_transfer=rq->current_nr_sectors*tape->tape_block_size; |
pc | 3018 | drivers/block/ide-tape.c | idetape_issue_packet_command (drive,pc,&idetape_pc_intr); |
pc | 3031 | drivers/block/ide-tape.c | pc=idetape_next_pc_storage (drive); |
pc | 3033 | drivers/block/ide-tape.c | idetape_create_write_cmd (pc,rq->current_nr_sectors); |
pc | 3035 | drivers/block/ide-tape.c | pc->buffer=rq->buffer; |
pc | 3036 | drivers/block/ide-tape.c | pc->buffer_size=rq->current_nr_sectors*tape->tape_block_size; |
pc | 3037 | drivers/block/ide-tape.c | pc->current_position=rq->buffer; |
pc | 3038 | drivers/block/ide-tape.c | pc->request_transfer=rq->current_nr_sectors*tape->tape_block_size; |
pc | 3040 | drivers/block/ide-tape.c | idetape_issue_packet_command (drive,pc,&idetape_pc_intr); |
pc | 3061 | drivers/block/ide-tape.c | pc=(idetape_packet_command_t *) rq->buffer; |
pc | 3062 | drivers/block/ide-tape.c | idetape_issue_packet_command (drive,pc,&idetape_pc_intr); |
pc | 3093 | drivers/block/ide-tape.c | int idetape_queue_pc_tail (ide_drive_t *drive,idetape_packet_command_t *pc) |
pc | 3098 | drivers/block/ide-tape.c | rq.buffer = (char *) pc; |
pc | 3123 | drivers/block/ide-tape.c | void idetape_queue_pc_head (ide_drive_t *drive,idetape_packet_command_t *pc,struct request *rq) |
pc | 3132 | drivers/block/ide-tape.c | rq->buffer = (char *) pc; |
pc | 3463 | drivers/block/ide-tape.c | void idetape_zero_packet_command (idetape_packet_command_t *pc) |
pc | 3469 | drivers/block/ide-tape.c | pc->c[i]=0; |
pc | 3470 | drivers/block/ide-tape.c | pc->retries=0; |
pc | 3471 | drivers/block/ide-tape.c | pc->abort=0; |
pc | 3472 | drivers/block/ide-tape.c | pc->dma_recommended=0; |
pc | 3473 | drivers/block/ide-tape.c | pc->dma_error=0; |
pc | 3818 | drivers/block/ide-tape.c | idetape_packet_command_t pc; |
pc | 3836 | drivers/block/ide-tape.c | pc.buffer=pc.temp_buffer; |
pc | 3837 | drivers/block/ide-tape.c | pc.buffer_size=IDETAPE_TEMP_BUFFER_SIZE; |
pc | 3838 | drivers/block/ide-tape.c | pc.current_position=pc.temp_buffer; |
pc | 3853 | drivers/block/ide-tape.c | idetape_create_read_position_cmd (&pc); |
pc | 3854 | drivers/block/ide-tape.c | retval=idetape_queue_pc_tail (drive,&pc); |
pc | 3923 | drivers/block/ide-tape.c | idetape_packet_command_t pc; |
pc | 3926 | drivers/block/ide-tape.c | pc.buffer=pc.temp_buffer; |
pc | 3927 | drivers/block/ide-tape.c | pc.buffer_size=IDETAPE_TEMP_BUFFER_SIZE; |
pc | 3928 | drivers/block/ide-tape.c | pc.current_position=pc.temp_buffer; |
pc | 3960 | drivers/block/ide-tape.c | idetape_create_write_filemark_cmd (&pc,1); |
pc | 3961 | drivers/block/ide-tape.c | retval=idetape_queue_pc_tail (drive,&pc); |
pc | 3968 | drivers/block/ide-tape.c | idetape_create_load_unload_cmd (&pc,!IDETAPE_LU_LOAD_MASK); |
pc | 3969 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 3973 | drivers/block/ide-tape.c | idetape_create_load_unload_cmd (&pc,IDETAPE_LU_RETENSION_MASK | IDETAPE_LU_LOAD_MASK); |
pc | 3974 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 3976 | drivers/block/ide-tape.c | idetape_create_space_cmd (&pc,0,IDETAPE_SPACE_TO_EOD); |
pc | 3977 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 3981 | drivers/block/ide-tape.c | idetape_create_erase_cmd (&pc); |
pc | 3982 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 4005 | drivers/block/ide-tape.c | idetape_packet_command_t pc; |
pc | 4051 | drivers/block/ide-tape.c | pc.buffer=pc.temp_buffer; |
pc | 4052 | drivers/block/ide-tape.c | pc.buffer_size=IDETAPE_TEMP_BUFFER_SIZE; |
pc | 4053 | drivers/block/ide-tape.c | pc.current_position=pc.temp_buffer; |
pc | 4057 | drivers/block/ide-tape.c | idetape_create_space_cmd (&pc,mt_count-count,IDETAPE_SPACE_OVER_FILEMARK); |
pc | 4058 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 4068 | drivers/block/ide-tape.c | idetape_create_space_cmd (&pc,-(mt_count+count),IDETAPE_SPACE_OVER_FILEMARK); |
pc | 4069 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 4154 | drivers/block/ide-tape.c | idetape_packet_command_t pc; |
pc | 4163 | drivers/block/ide-tape.c | idetape_create_write_filemark_cmd (&pc,1); /* Write a filemark */ |
pc | 4164 | drivers/block/ide-tape.c | if (idetape_queue_pc_tail (drive,&pc)) |
pc | 4209 | drivers/block/ide-tape.c | idetape_packet_command_t pc; |
pc | 4211 | drivers/block/ide-tape.c | idetape_create_locate_cmd (&pc,block,0); |
pc | 4212 | drivers/block/ide-tape.c | retval=idetape_queue_pc_tail (drive,&pc); |
pc | 4215 | drivers/block/ide-tape.c | idetape_create_read_position_cmd (&pc); |
pc | 4216 | drivers/block/ide-tape.c | pc.buffer=pc.temp_buffer; |
pc | 4217 | drivers/block/ide-tape.c | pc.buffer_size=IDETAPE_TEMP_BUFFER_SIZE; |
pc | 4218 | drivers/block/ide-tape.c | pc.current_position=pc.temp_buffer; |
pc | 4219 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 4232 | drivers/block/ide-tape.c | idetape_packet_command_t pc; |
pc | 4237 | drivers/block/ide-tape.c | idetape_create_rewind_cmd (&pc); |
pc | 4238 | drivers/block/ide-tape.c | retval=idetape_queue_pc_tail (drive,&pc); |
pc | 4241 | drivers/block/ide-tape.c | idetape_create_read_position_cmd (&pc); |
pc | 4242 | drivers/block/ide-tape.c | pc.buffer=pc.temp_buffer; |
pc | 4243 | drivers/block/ide-tape.c | pc.buffer_size=IDETAPE_TEMP_BUFFER_SIZE; |
pc | 4244 | drivers/block/ide-tape.c | pc.current_position=pc.temp_buffer; |
pc | 4245 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 4251 | drivers/block/ide-tape.c | idetape_packet_command_t pc; |
pc | 4253 | drivers/block/ide-tape.c | idetape_create_write_filemark_cmd (&pc,0); |
pc | 4254 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 380 | drivers/block/ide-tape.h | idetape_packet_command_t *pc; /* Current packet command */ |
pc | 198 | drivers/block/triton.c | size = drive->tape.pc->request_transfer; |
pc | 1039 | drivers/net/plip.c | struct plipconf *pc = (struct plipconf *) &rq->ifr_data; |
pc | 1041 | drivers/net/plip.c | switch(pc->pcmd) { |
pc | 1043 | drivers/net/plip.c | pc->trigger = nl->trigger; |
pc | 1044 | drivers/net/plip.c | pc->nibble = nl->nibble; |
pc | 1047 | drivers/net/plip.c | nl->trigger = pc->trigger; |
pc | 1048 | drivers/net/plip.c | nl->nibble = pc->nibble; |
pc | 452 | fs/proc/array.c | unsigned long pc; |
pc | 454 | fs/proc/array.c | pc = thread_saved_pc(&p->tss); |
pc | 455 | fs/proc/array.c | if (pc >= (unsigned long) interruptible_sleep_on && pc < (unsigned long) add_timer) { |
pc | 459 | fs/proc/array.c | return pc; |
pc | 474 | fs/proc/array.c | # define KSTK_EIP(tsk) (*(unsigned long *)(tsk->kernel_stack_page + PT_REG(pc))) |
pc | 77 | include/asm-alpha/processor.h | static inline void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp) |
pc | 79 | include/asm-alpha/processor.h | regs->pc = pc; |
pc | 42 | include/asm-alpha/ptrace.h | unsigned long pc; |
pc | 67 | include/asm-alpha/ptrace.h | #define instruction_pointer(regs) ((regs)->pc) |
pc | 172 | include/asm-mips/processor.h | void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp) |
pc | 179 | include/asm-mips/processor.h | regs->cp0_epc = pc; |
pc | 30 | include/asm-sparc/kgdb.h | unsigned long pc; |
pc | 109 | include/asm-sparc/processor.h | return t->kregs->pc; |
pc | 115 | include/asm-sparc/processor.h | extern inline void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp) |
pc | 122 | include/asm-sparc/processor.h | regs->pc = ((pc & (~3)) - 4); |
pc | 123 | include/asm-sparc/processor.h | regs->npc = regs->pc + 4; |
pc | 15 | include/asm-sparc/ptrace.h | unsigned long pc; |
pc | 66 | include/asm-sparc/ptrace.h | #define instruction_pointer(regs) ((regs)->pc) |
pc | 10 | include/asm-sparc/user.h | unsigned long psr, pc, npc, y; |
pc | 407 | include/linux/sched.h | unsigned long pc; |
pc | 408 | include/linux/sched.h | pc = (unsigned long) &&here; |
pc | 410 | include/linux/sched.h | printk("add_wait_queue (%08lx): wait->next = %08lx\n",pc,(unsigned long) wait->next); |