tag | line | file | source code |
pc | 460 | arch/alpha/kernel/apecs.c | regs->pc, mchk_header->size, mchk_header->proc_offset, mchk_header->sys_offset)); |
pc | 285 | arch/alpha/kernel/irq.c | printk("PC = %016lx PS=%04lx\n", regs->pc, regs->ps); |
pc | 633 | 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 | 195 | 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 | 173 | arch/alpha/kernel/setup.c | unsigned long count, va, pc; |
pc | 214 | arch/alpha/kernel/setup.c | unaligned[0].count, unaligned[0].pc, unaligned[0].va, |
pc | 215 | arch/alpha/kernel/setup.c | unaligned[1].count, unaligned[1].pc, unaligned[1].va); |
pc | 89 | arch/alpha/kernel/signal.c | regs->pc = get_fs_quad(&sc->sc_pc); |
pc | 135 | arch/alpha/kernel/signal.c | unsigned long pc, struct pt_regs * regs, |
pc | 150 | arch/alpha/kernel/signal.c | put_fs_quad(pc, &sc->sc_pc); |
pc | 223 | 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 | 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 | 264 | 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 | opcode, 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 | 81 | arch/alpha/mm/fault.c | printk("memory violation at pc=%08lx (%08lx)\n", regs.pc, 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 | 335 | arch/mips/kernel/signal.c | pc = regs->cp0_epc; |
pc | 344 | arch/mips/kernel/signal.c | setup_frame(sa, &frame, pc, regs, signr, oldmask); |
pc | 345 | arch/mips/kernel/signal.c | pc = (unsigned long) sa->sa_handler; |
pc | 353 | 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 | 211 | arch/sparc/kernel/irq.c | printk("PC = %08lx NPC = %08lx FP=%08lx\n", regs->pc, |
pc | 67 | arch/sparc/kernel/process.c | regs->pc, regs->npc, regs->y); |
pc | 211 | arch/sparc/kernel/process.c | void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp) |
pc | 216 | arch/sparc/kernel/process.c | regs->pc = ((pc & (~3)) - 4); /* whee borken a.out header fields... */ |
pc | 217 | arch/sparc/kernel/process.c | regs->npc = regs->pc + 4; |
pc | 42 | arch/sparc/kernel/signal.c | regs->pc += 4; |
pc | 53 | arch/sparc/kernel/signal.c | regs->pc -= 4; |
pc | 106 | arch/sparc/kernel/signal.c | regs->pc = scptr->sigc_pc; |
pc | 175 | arch/sparc/kernel/signal.c | unsigned long pc, struct pt_regs *regs, int signr, |
pc | 192 | arch/sparc/kernel/signal.c | sframep, pc, signr); |
pc | 208 | arch/sparc/kernel/signal.c | sc->sigc_pc = regs->pc; |
pc | 263 | arch/sparc/kernel/signal.c | unsigned long pc = 0; |
pc | 330 | arch/sparc/kernel/signal.c | pc = regs->pc; |
pc | 339 | arch/sparc/kernel/signal.c | setup_frame(sa, &frame, pc, regs, signr, oldmask); |
pc | 340 | arch/sparc/kernel/signal.c | pc = (unsigned long) sa->sa_handler; |
pc | 347 | arch/sparc/kernel/signal.c | regs->npc = (regs->pc = pc) + 4; |
pc | 454 | arch/sparc/kernel/sys_sunos.c | current->tss.sig_address = regs->pc; |
pc | 711 | arch/sparc/kernel/sys_sunos.c | current->tss.sig_address = regs->pc; |
pc | 39 | arch/sparc/kernel/traps.c | regs->pc, regs->npc); |
pc | 53 | arch/sparc/kernel/traps.c | do_hw_interrupt(unsigned long type, unsigned long psr, unsigned long pc) |
pc | 57 | arch/sparc/kernel/traps.c | type, psr, pc); |
pc | 64 | arch/sparc/kernel/traps.c | do_illegal_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 68 | arch/sparc/kernel/traps.c | pc, npc, psr); |
pc | 71 | arch/sparc/kernel/traps.c | current->tss.sig_address = pc; |
pc | 78 | arch/sparc/kernel/traps.c | do_priv_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 82 | arch/sparc/kernel/traps.c | pc, npc, psr); |
pc | 83 | arch/sparc/kernel/traps.c | current->tss.sig_address = pc; |
pc | 92 | arch/sparc/kernel/traps.c | do_memaccess_unaligned(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 96 | arch/sparc/kernel/traps.c | pc, npc, psr); |
pc | 99 | arch/sparc/kernel/traps.c | current->tss.sig_address = pc; |
pc | 106 | arch/sparc/kernel/traps.c | do_fpd_trap(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 215 | arch/sparc/kernel/traps.c | do_fpe_trap(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 223 | arch/sparc/kernel/traps.c | current->tss.sig_address = pc; |
pc | 230 | arch/sparc/kernel/traps.c | handle_tag_overflow(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 234 | arch/sparc/kernel/traps.c | pc, npc, psr); |
pc | 237 | arch/sparc/kernel/traps.c | current->tss.sig_address = pc; |
pc | 244 | arch/sparc/kernel/traps.c | handle_watchpoint(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 248 | arch/sparc/kernel/traps.c | pc, npc, psr); |
pc | 256 | arch/sparc/kernel/traps.c | handle_reg_access(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 260 | arch/sparc/kernel/traps.c | pc, npc, psr); |
pc | 266 | arch/sparc/kernel/traps.c | handle_cp_disabled(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 270 | arch/sparc/kernel/traps.c | pc, npc, psr); |
pc | 276 | arch/sparc/kernel/traps.c | handle_bad_flush(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 280 | arch/sparc/kernel/traps.c | pc, npc, psr); |
pc | 286 | arch/sparc/kernel/traps.c | handle_cp_exception(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 290 | arch/sparc/kernel/traps.c | pc, npc, psr); |
pc | 296 | arch/sparc/kernel/traps.c | handle_hw_divzero(struct pt_regs *regs, unsigned long pc, unsigned long npc, |
pc | 300 | arch/sparc/kernel/traps.c | pc, npc, psr); |
pc | 140 | arch/sparc/mm/fault.c | address = regs->pc; |
pc | 198 | arch/sparc/mm/fault.c | regs->pc = regs->npc; |
pc | 207 | arch/sparc/mm/fault.c | printk("At PC %08lx nPC %08lx\n", (unsigned long) regs->pc, |
pc | 297 | arch/sparc/mm/fault.c | current->comm, current->pid, regs->pc, regs->u_regs[UREG_FP]); |
pc | 298 | arch/sparc/mm/fault.c | tsp->sig_address = regs->pc; |
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 | 529 | drivers/block/ide-cd.c | struct packet_command *pc; |
pc | 539 | drivers/block/ide-cd.c | pc = &HWIF(drive)->request_sense_pc; |
pc | 540 | drivers/block/ide-cd.c | memset (pc, 0, sizeof (*pc)); |
pc | 549 | drivers/block/ide-cd.c | pc->c[0] = REQUEST_SENSE; |
pc | 550 | drivers/block/ide-cd.c | pc->c[4] = len; |
pc | 551 | drivers/block/ide-cd.c | pc->buffer = (char *)reqbuf; |
pc | 552 | drivers/block/ide-cd.c | pc->buflen = len; |
pc | 553 | drivers/block/ide-cd.c | pc->sense_data = (struct atapi_request_sense *)failed_command; |
pc | 560 | drivers/block/ide-cd.c | rq->buffer = (char *)pc; |
pc | 581 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
pc | 583 | drivers/block/ide-cd.c | (struct atapi_request_sense *)(pc->buffer - pc->c[4]), |
pc | 584 | drivers/block/ide-cd.c | (struct packet_command *)pc->sense_data); |
pc | 631 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
pc | 632 | drivers/block/ide-cd.c | pc->stat = 1; |
pc | 642 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
pc | 655 | drivers/block/ide-cd.c | if (pc->c[0] != SCMD_READ_SUBCHANNEL) |
pc | 686 | drivers/block/ide-cd.c | pc->stat = 1; |
pc | 690 | drivers/block/ide-cd.c | cdrom_queue_request_sense (drive, sem, pc->sense_data, pc); |
pc | 1104 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1147 | drivers/block/ide-cd.c | memset (&pc.c, 0, sizeof (pc.c)); |
pc | 1148 | drivers/block/ide-cd.c | pc.c[0] = READ_10; |
pc | 1149 | drivers/block/ide-cd.c | pc.c[7] = (nframes >> 8); |
pc | 1150 | drivers/block/ide-cd.c | pc.c[8] = (nframes & 0xff); |
pc | 1151 | drivers/block/ide-cd.c | *(int *)(&pc.c[2]) = htonl (frame); |
pc | 1154 | drivers/block/ide-cd.c | (void) cdrom_transfer_packet_command (drive, pc.c, sizeof (pc.c), |
pc | 1209 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
pc | 1224 | drivers/block/ide-cd.c | if (pc->c[0] == REQUEST_SENSE && pc->buflen > 0 && pc->buflen <= 5) { |
pc | 1225 | drivers/block/ide-cd.c | while (pc->buflen > 0) { |
pc | 1226 | drivers/block/ide-cd.c | *pc->buffer++ = 0; |
pc | 1227 | drivers/block/ide-cd.c | --pc->buflen; |
pc | 1231 | drivers/block/ide-cd.c | if (pc->buflen == 0) |
pc | 1236 | drivers/block/ide-cd.c | drive->name, pc->buflen); |
pc | 1237 | drivers/block/ide-cd.c | pc->stat = 1; |
pc | 1244 | drivers/block/ide-cd.c | thislen = pc->buflen; |
pc | 1252 | drivers/block/ide-cd.c | if (pc->buflen > 0) |
pc | 1256 | drivers/block/ide-cd.c | pc->stat = 1; |
pc | 1261 | drivers/block/ide-cd.c | cdrom_out_bytes (drive, pc->buffer, thislen); |
pc | 1273 | drivers/block/ide-cd.c | pc->buffer += thislen; |
pc | 1274 | drivers/block/ide-cd.c | pc->buflen += thislen; |
pc | 1281 | drivers/block/ide-cd.c | if (pc->buflen < 0) |
pc | 1285 | drivers/block/ide-cd.c | pc->stat = 1; |
pc | 1290 | drivers/block/ide-cd.c | cdrom_in_bytes (drive, pc->buffer, thislen); |
pc | 1302 | drivers/block/ide-cd.c | pc->buffer += thislen; |
pc | 1303 | drivers/block/ide-cd.c | pc->buflen -= thislen; |
pc | 1310 | drivers/block/ide-cd.c | pc->stat = 1; |
pc | 1321 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
pc | 1324 | drivers/block/ide-cd.c | cdrom_transfer_packet_command (drive, pc->c, sizeof (pc->c), &cdrom_pc_intr); |
pc | 1332 | drivers/block/ide-cd.c | struct packet_command *pc = (struct packet_command *)rq->buffer; |
pc | 1334 | drivers/block/ide-cd.c | len = pc->buflen; |
pc | 1337 | drivers/block/ide-cd.c | pc->stat = 0; |
pc | 1355 | drivers/block/ide-cd.c | int cdrom_queue_packet_command (ide_drive_t *drive, struct packet_command *pc) |
pc | 1363 | drivers/block/ide-cd.c | if (pc->sense_data == NULL) |
pc | 1364 | drivers/block/ide-cd.c | pc->sense_data = &my_reqbuf; |
pc | 1365 | drivers/block/ide-cd.c | pc->sense_data->sense_key = 0; |
pc | 1371 | drivers/block/ide-cd.c | req.buffer = (char *)pc; |
pc | 1374 | drivers/block/ide-cd.c | if (pc->stat != 0) |
pc | 1378 | drivers/block/ide-cd.c | struct atapi_request_sense *reqbuf = pc->sense_data; |
pc | 1399 | drivers/block/ide-cd.c | } while (pc->stat != 0 && retries >= 0); |
pc | 1403 | drivers/block/ide-cd.c | if (pc->stat != 0) |
pc | 1413 | drivers/block/ide-cd.c | (pc->c[0] != REQUEST_SENSE && |
pc | 1414 | drivers/block/ide-cd.c | pc->c[0] != ALLOW_MEDIUM_REMOVAL && |
pc | 1415 | drivers/block/ide-cd.c | pc->c[0] != START_STOP)) |
pc | 1503 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1505 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1507 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1508 | drivers/block/ide-cd.c | pc.c[0] = TEST_UNIT_READY; |
pc | 1510 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (drive, &pc); |
pc | 1521 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1531 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1532 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1534 | drivers/block/ide-cd.c | pc.c[0] = ALLOW_MEDIUM_REMOVAL; |
pc | 1535 | drivers/block/ide-cd.c | pc.c[4] = (lockflag != 0); |
pc | 1536 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
pc | 1563 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1565 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1566 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1568 | drivers/block/ide-cd.c | pc.c[0] = START_STOP; |
pc | 1569 | drivers/block/ide-cd.c | pc.c[4] = 2 + (ejectflag != 0); |
pc | 1570 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (drive, &pc); |
pc | 1578 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1580 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1581 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1583 | drivers/block/ide-cd.c | pc.c[0] = SCMD_PAUSE_RESUME; |
pc | 1584 | drivers/block/ide-cd.c | pc.c[8] = !pauseflag; |
pc | 1585 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (drive, &pc); |
pc | 1593 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1595 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1596 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1598 | drivers/block/ide-cd.c | pc.c[0] = START_STOP; |
pc | 1599 | drivers/block/ide-cd.c | pc.c[1] = 1; |
pc | 1600 | drivers/block/ide-cd.c | pc.c[4] = startflag; |
pc | 1601 | 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] = READ_CAPACITY; |
pc | 1621 | drivers/block/ide-cd.c | pc.buffer = (char *)&capbuf; |
pc | 1622 | drivers/block/ide-cd.c | pc.buflen = sizeof (capbuf); |
pc | 1624 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
pc | 1639 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1641 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1642 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1644 | drivers/block/ide-cd.c | pc.buffer = buf; |
pc | 1645 | drivers/block/ide-cd.c | pc.buflen = buflen; |
pc | 1646 | drivers/block/ide-cd.c | pc.c[0] = SCMD_READ_TOC; |
pc | 1647 | drivers/block/ide-cd.c | pc.c[6] = trackno; |
pc | 1648 | drivers/block/ide-cd.c | pc.c[7] = (buflen >> 8); |
pc | 1649 | drivers/block/ide-cd.c | pc.c[8] = (buflen & 0xff); |
pc | 1650 | drivers/block/ide-cd.c | pc.c[9] = (format << 6); |
pc | 1651 | drivers/block/ide-cd.c | if (msf_flag) pc.c[1] = 2; |
pc | 1652 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (drive, &pc); |
pc | 1791 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1793 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1794 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1796 | drivers/block/ide-cd.c | pc.buffer = buf; |
pc | 1797 | drivers/block/ide-cd.c | pc.buflen = buflen; |
pc | 1798 | drivers/block/ide-cd.c | pc.c[0] = SCMD_READ_SUBCHANNEL; |
pc | 1799 | drivers/block/ide-cd.c | pc.c[2] = 0x40; /* request subQ data */ |
pc | 1800 | drivers/block/ide-cd.c | pc.c[3] = 0x01; /* Format 1: current position */ |
pc | 1801 | drivers/block/ide-cd.c | pc.c[7] = (buflen >> 8); |
pc | 1802 | drivers/block/ide-cd.c | pc.c[8] = (buflen & 0xff); |
pc | 1803 | 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] = MODE_SENSE_10; |
pc | 1821 | drivers/block/ide-cd.c | pc.c[2] = pageno | (modeflag << 6); |
pc | 1822 | drivers/block/ide-cd.c | pc.c[7] = (buflen >> 8); |
pc | 1823 | drivers/block/ide-cd.c | pc.c[8] = (buflen & 0xff); |
pc | 1824 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (drive, &pc); |
pc | 1832 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1834 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1835 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1837 | drivers/block/ide-cd.c | pc.buffer = buf; |
pc | 1838 | drivers/block/ide-cd.c | pc.buflen = - buflen; |
pc | 1839 | drivers/block/ide-cd.c | pc.c[0] = MODE_SELECT_10; |
pc | 1840 | drivers/block/ide-cd.c | pc.c[1] = 0x10; |
pc | 1841 | drivers/block/ide-cd.c | pc.c[2] = pageno; |
pc | 1842 | drivers/block/ide-cd.c | pc.c[7] = (buflen >> 8); |
pc | 1843 | drivers/block/ide-cd.c | pc.c[8] = (buflen & 0xff); |
pc | 1844 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (drive, &pc); |
pc | 1852 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1854 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1855 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1857 | drivers/block/ide-cd.c | pc.c[0] = SCMD_PLAYAUDIO12; |
pc | 1858 | drivers/block/ide-cd.c | *(int *)(&pc.c[2]) = htonl (lba_start); |
pc | 1859 | drivers/block/ide-cd.c | *(int *)(&pc.c[6]) = htonl (lba_end - lba_start); |
pc | 1861 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (drive, &pc); |
pc | 1870 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1872 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1873 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1875 | drivers/block/ide-cd.c | pc.c[0] = SCMD_PLAYAUDIO_MSF; |
pc | 1876 | drivers/block/ide-cd.c | lba_to_msf (lba_start, &pc.c[3], &pc.c[4], &pc.c[5]); |
pc | 1877 | drivers/block/ide-cd.c | lba_to_msf (lba_end-1, &pc.c[6], &pc.c[7], &pc.c[8]); |
pc | 1881 | drivers/block/ide-cd.c | pc.c[3] = bin2bcd (pc.c[3]); |
pc | 1882 | drivers/block/ide-cd.c | pc.c[4] = bin2bcd (pc.c[4]); |
pc | 1883 | drivers/block/ide-cd.c | pc.c[5] = bin2bcd (pc.c[5]); |
pc | 1884 | drivers/block/ide-cd.c | pc.c[6] = bin2bcd (pc.c[6]); |
pc | 1885 | drivers/block/ide-cd.c | pc.c[7] = bin2bcd (pc.c[7]); |
pc | 1886 | drivers/block/ide-cd.c | pc.c[8] = bin2bcd (pc.c[8]); |
pc | 1889 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (drive, &pc); |
pc | 1979 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 1986 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 1987 | drivers/block/ide-cd.c | pc.sense_data = reqbuf; |
pc | 1989 | drivers/block/ide-cd.c | pc.buffer = buf; |
pc | 1990 | drivers/block/ide-cd.c | pc.buflen = buflen; |
pc | 1994 | drivers/block/ide-cd.c | pc.c[0] = 0xd4; |
pc | 1997 | drivers/block/ide-cd.c | pc.c[0] = READ_CD; |
pc | 1999 | drivers/block/ide-cd.c | pc.c[1] = (format << 2); |
pc | 2000 | drivers/block/ide-cd.c | *(int *)(&pc.c[2]) = htonl (lba); |
pc | 2001 | drivers/block/ide-cd.c | pc.c[8] = 1; /* one block */ |
pc | 2002 | drivers/block/ide-cd.c | pc.c[9] = 0x10; |
pc | 2004 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
pc | 2431 | drivers/block/ide-cd.c | struct packet_command pc; |
pc | 2434 | drivers/block/ide-cd.c | memset (&pc, 0, sizeof (pc)); |
pc | 2436 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (pc.c)); |
pc | 2438 | drivers/block/ide-cd.c | memcpy_fromfs (&pc.c, (void *) arg, sizeof (pc.c)); |
pc | 2439 | drivers/block/ide-cd.c | arg += sizeof (pc.c); |
pc | 2457 | drivers/block/ide-cd.c | pc.buflen = len; |
pc | 2458 | drivers/block/ide-cd.c | pc.buffer = buf; |
pc | 2461 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
pc | 795 | drivers/block/ide-tape.c | void idetape_issue_packet_command (ide_drive_t *drive,idetape_packet_command_t *pc,ide_handler_t *handler); |
pc | 814 | drivers/block/ide-tape.c | void idetape_zero_packet_command (idetape_packet_command_t *pc); |
pc | 815 | drivers/block/ide-tape.c | void idetape_queue_pc_head (ide_drive_t *drive,idetape_packet_command_t *pc,struct request *rq); |
pc | 832 | drivers/block/ide-tape.c | void idetape_create_inquiry_cmd (idetape_packet_command_t *pc); |
pc | 834 | drivers/block/ide-tape.c | void idetape_create_locate_cmd (idetape_packet_command_t *pc,unsigned long block,byte partition); |
pc | 835 | drivers/block/ide-tape.c | void idetape_create_rewind_cmd (idetape_packet_command_t *pc); |
pc | 836 | drivers/block/ide-tape.c | void idetape_create_write_filemark_cmd (idetape_packet_command_t *pc,int write_filemark); |
pc | 837 | drivers/block/ide-tape.c | void idetape_create_load_unload_cmd (idetape_packet_command_t *pc,int cmd); |
pc | 838 | drivers/block/ide-tape.c | void idetape_create_space_cmd (idetape_packet_command_t *pc,long count,byte cmd); |
pc | 839 | drivers/block/ide-tape.c | void idetape_create_erase_cmd (idetape_packet_command_t *pc); |
pc | 840 | drivers/block/ide-tape.c | void idetape_create_test_unit_ready_cmd (idetape_packet_command_t *pc); |
pc | 841 | drivers/block/ide-tape.c | void idetape_create_read_position_cmd (idetape_packet_command_t *pc); |
pc | 843 | drivers/block/ide-tape.c | void idetape_create_read_cmd (idetape_packet_command_t *pc,unsigned long length); |
pc | 845 | drivers/block/ide-tape.c | void idetape_create_write_cmd (idetape_packet_command_t *pc,unsigned long length); |
pc | 847 | drivers/block/ide-tape.c | void idetape_create_request_sense_cmd (idetape_packet_command_t *pc); |
pc | 848 | drivers/block/ide-tape.c | void idetape_create_mode_sense_cmd (idetape_packet_command_t *pc,byte page_code); |
pc | 913 | drivers/block/ide-tape.c | int idetape_queue_pc_tail (ide_drive_t *drive,idetape_packet_command_t *pc); |
pc | 1325 | drivers/block/ide-tape.c | idetape_packet_command_t pc; |
pc | 1327 | drivers/block/ide-tape.c | idetape_create_mode_sense_cmd (&pc,IDETAPE_CAPABILITIES_PAGE); |
pc | 1328 | drivers/block/ide-tape.c | pc.buffer=pc.temp_buffer; |
pc | 1329 | drivers/block/ide-tape.c | pc.buffer_size=IDETAPE_TEMP_BUFFER_SIZE; |
pc | 1330 | drivers/block/ide-tape.c | pc.current_position=pc.temp_buffer; |
pc | 1331 | drivers/block/ide-tape.c | retval=idetape_queue_pc_tail (drive,&pc); |
pc | 1333 | drivers/block/ide-tape.c | header=(idetape_mode_parameter_header_t *) pc.buffer; |
pc | 1334 | drivers/block/ide-tape.c | capabilities=(idetape_capabilities_page_t *) (pc.buffer+sizeof (idetape_mode_parameter_header_t)); |
pc | 1428 | drivers/block/ide-tape.c | void idetape_issue_packet_command (ide_drive_t *drive,idetape_packet_command_t *pc,ide_handler_t *handler) |
pc | 1438 | drivers/block/ide-tape.c | if (tape->pc->c[0] == IDETAPE_REQUEST_SENSE_CMD && pc->c[0] == IDETAPE_REQUEST_SENSE_CMD) { |
pc | 1443 | drivers/block/ide-tape.c | if (tape->failed_pc == NULL && pc->c[0] != IDETAPE_REQUEST_SENSE_CMD) |
pc | 1444 | drivers/block/ide-tape.c | tape->failed_pc=pc; |
pc | 1445 | drivers/block/ide-tape.c | tape->pc=pc; /* Set the current packet command */ |
pc | 1447 | drivers/block/ide-tape.c | if (pc->retries > IDETAPE_MAX_PC_RETRIES || pc->abort) { |
pc | 1455 | drivers/block/ide-tape.c | if (!pc->abort) { |
pc | 1457 | 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 | 1459 | drivers/block/ide-tape.c | pc->error=1; /* Giving up */ |
pc | 1463 | drivers/block/ide-tape.c | if (pc->callback==NULL) |
pc | 1467 | drivers/block/ide-tape.c | (*pc->callback)(drive); |
pc | 1472 | drivers/block/ide-tape.c | printk ("Retry number - %d\n",pc->retries); |
pc | 1475 | drivers/block/ide-tape.c | pc->retries++; |
pc | 1482 | drivers/block/ide-tape.c | pc->actually_transferred=0; /* We haven't transferred any data yet */ |
pc | 1483 | drivers/block/ide-tape.c | bcount.all=pc->request_transfer; /* Request to transfer the entire buffer at once */ |
pc | 1513 | drivers/block/ide-tape.c | ide_output_data (drive,pc->c,12/4); /* Send the actual packet */ |
pc | 1533 | drivers/block/ide-tape.c | idetape_packet_command_t *pc=tape->pc; |
pc | 1545 | drivers/block/ide-tape.c | printk ("Total bytes transferred: %lu\n",pc->actually_transferred); |
pc | 1561 | drivers/block/ide-tape.c | pc->error=0; |
pc | 1562 | drivers/block/ide-tape.c | if (pc->wait_for_dsc && !status.b.dsc) { /* Media access command */ |
pc | 1567 | drivers/block/ide-tape.c | if (tape->failed_pc == pc) |
pc | 1570 | drivers/block/ide-tape.c | if (pc->callback==NULL) |
pc | 1574 | drivers/block/ide-tape.c | (*pc->callback)(drive); /* Command finished - Call the callback function */ |
pc | 1586 | drivers/block/ide-tape.c | if (ireason.b.io != !(pc->writing)) { /* Hopefully, we will never get here */ |
pc | 1587 | drivers/block/ide-tape.c | printk ("ide-tape: We wanted to %s, ",pc->writing ? "Write":"Read"); |
pc | 1592 | drivers/block/ide-tape.c | if (!pc->writing) { /* Reading - Check that we have enough space */ |
pc | 1593 | drivers/block/ide-tape.c | temp=(unsigned long) pc->actually_transferred + bcount.all; |
pc | 1594 | drivers/block/ide-tape.c | if ( temp > pc->request_transfer) { |
pc | 1596 | drivers/block/ide-tape.c | if (temp > pc->buffer_size) { |
pc | 1607 | drivers/block/ide-tape.c | if (bcount.all && !pc->buffer) { |
pc | 1610 | drivers/block/ide-tape.c | if (!pc->writing) { |
pc | 1620 | drivers/block/ide-tape.c | if (pc->writing) |
pc | 1621 | drivers/block/ide-tape.c | idetape_output_data (drive,pc->current_position,bcount.all); /* Write the current buffer */ |
pc | 1623 | drivers/block/ide-tape.c | idetape_input_data (drive,pc->current_position,bcount.all); /* Read the current buffer */ |
pc | 1625 | drivers/block/ide-tape.c | printk ("ide-tape: %s %d bytes\n",pc->writing ? "Wrote":"Received",bcount.all); |
pc | 1627 | drivers/block/ide-tape.c | pc->actually_transferred+=bcount.all; /* Update the current position */ |
pc | 1628 | drivers/block/ide-tape.c | pc->current_position+=bcount.all; |
pc | 1965 | drivers/block/ide-tape.c | idetape_packet_command_t *pc; |
pc | 1967 | drivers/block/ide-tape.c | pc=tape->pc; |
pc | 1980 | drivers/block/ide-tape.c | pc->error=0; |
pc | 1981 | drivers/block/ide-tape.c | if (tape->failed_pc == pc) |
pc | 1984 | drivers/block/ide-tape.c | if (pc->callback==NULL) |
pc | 1988 | drivers/block/ide-tape.c | (*pc->callback)(drive); |
pc | 1995 | drivers/block/ide-tape.c | pc->error=1; |
pc | 1998 | drivers/block/ide-tape.c | if (pc->callback==NULL) |
pc | 2002 | drivers/block/ide-tape.c | (*pc->callback)(drive); |
pc | 2017 | drivers/block/ide-tape.c | idetape_packet_command_t *pc; |
pc | 2022 | drivers/block/ide-tape.c | pc=idetape_next_pc_storage (drive); |
pc | 2024 | drivers/block/ide-tape.c | idetape_create_request_sense_cmd (pc); |
pc | 2025 | drivers/block/ide-tape.c | pc->buffer=pc->temp_buffer; |
pc | 2026 | drivers/block/ide-tape.c | pc->buffer_size=IDETAPE_TEMP_BUFFER_SIZE; |
pc | 2027 | drivers/block/ide-tape.c | pc->current_position=pc->temp_buffer; |
pc | 2028 | drivers/block/ide-tape.c | idetape_queue_pc_head (drive,pc,new_rq); |
pc | 2047 | drivers/block/ide-tape.c | if (!tape->pc->error) { |
pc | 2071 | drivers/block/ide-tape.c | tape->block_address+=tape->pc->actually_transferred/tape->tape_block_size; |
pc | 2072 | drivers/block/ide-tape.c | if (!tape->pc->error) { |
pc | 2082 | drivers/block/ide-tape.c | rq->errors=tape->pc->error; |
pc | 2104 | drivers/block/ide-tape.c | tape->block_address+=tape->pc->actually_transferred/tape->tape_block_size; |
pc | 2105 | drivers/block/ide-tape.c | if (!tape->pc->error) { |
pc | 2127 | drivers/block/ide-tape.c | idetape_display_inquiry_result (tape->pc->buffer); |
pc | 2195 | drivers/block/ide-tape.c | void idetape_create_inquiry_cmd (idetape_packet_command_t *pc) |
pc | 2201 | drivers/block/ide-tape.c | pc->request_transfer=36; |
pc | 2202 | drivers/block/ide-tape.c | pc->callback=&idetape_inquiry_callback; |
pc | 2203 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2205 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2206 | drivers/block/ide-tape.c | pc->c[0]=IDETAPE_INQUIRY_CMD; |
pc | 2207 | drivers/block/ide-tape.c | pc->c[4]=255; |
pc | 2295 | drivers/block/ide-tape.c | void idetape_create_request_sense_cmd (idetape_packet_command_t *pc) |
pc | 2301 | drivers/block/ide-tape.c | pc->request_transfer=18; |
pc | 2302 | drivers/block/ide-tape.c | pc->callback=&idetape_request_sense_callback; |
pc | 2303 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2305 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2306 | drivers/block/ide-tape.c | pc->c[0]=IDETAPE_REQUEST_SENSE_CMD; |
pc | 2307 | drivers/block/ide-tape.c | pc->c[4]=255; |
pc | 2318 | drivers/block/ide-tape.c | if (!tape->pc->error) { |
pc | 2322 | drivers/block/ide-tape.c | idetape_analyze_error (drive,(idetape_request_sense_result_t *) tape->pc->buffer); |
pc | 2342 | drivers/block/ide-tape.c | idetape_packet_command_t *pc=tape->failed_pc; |
pc | 2353 | 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 | 2356 | drivers/block/ide-tape.c | if (pc->c[0] == IDETAPE_READ_CMD) { |
pc | 2358 | drivers/block/ide-tape.c | pc->error=IDETAPE_RQ_ERROR_FILEMARK; |
pc | 2359 | drivers/block/ide-tape.c | pc->abort=1; |
pc | 2363 | drivers/block/ide-tape.c | pc->error=IDETAPE_RQ_ERROR_EOD; |
pc | 2364 | drivers/block/ide-tape.c | pc->abort=1; |
pc | 2370 | drivers/block/ide-tape.c | void idetape_create_test_unit_ready_cmd (idetape_packet_command_t *pc) |
pc | 2376 | drivers/block/ide-tape.c | pc->request_transfer=0; |
pc | 2377 | drivers/block/ide-tape.c | pc->buffer=NULL; |
pc | 2378 | drivers/block/ide-tape.c | pc->current_position=NULL; |
pc | 2379 | drivers/block/ide-tape.c | pc->callback=&idetape_pc_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_TEST_UNIT_READY_CMD; |
pc | 2386 | drivers/block/ide-tape.c | void idetape_create_locate_cmd (idetape_packet_command_t *pc,unsigned long block,byte partition) |
pc | 2394 | drivers/block/ide-tape.c | pc->request_transfer=0; |
pc | 2395 | drivers/block/ide-tape.c | pc->buffer=NULL; |
pc | 2396 | drivers/block/ide-tape.c | pc->current_position=NULL; |
pc | 2397 | drivers/block/ide-tape.c | pc->buffer_size=0; |
pc | 2398 | drivers/block/ide-tape.c | pc->wait_for_dsc=1; |
pc | 2399 | drivers/block/ide-tape.c | pc->callback=&idetape_pc_callback; |
pc | 2400 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2402 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2403 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_LOCATE_CMD; |
pc | 2404 | drivers/block/ide-tape.c | pc->c [1]=2; |
pc | 2405 | drivers/block/ide-tape.c | ptr=(unsigned long *) &(pc->c[3]); |
pc | 2407 | drivers/block/ide-tape.c | pc->c[8]=partition; |
pc | 2410 | drivers/block/ide-tape.c | void idetape_create_rewind_cmd (idetape_packet_command_t *pc) |
pc | 2416 | drivers/block/ide-tape.c | pc->request_transfer=0; |
pc | 2417 | drivers/block/ide-tape.c | pc->buffer=NULL; |
pc | 2418 | drivers/block/ide-tape.c | pc->current_position=NULL; |
pc | 2419 | drivers/block/ide-tape.c | pc->buffer_size=0; |
pc | 2420 | drivers/block/ide-tape.c | pc->wait_for_dsc=1; |
pc | 2421 | drivers/block/ide-tape.c | pc->callback=&idetape_pc_callback; |
pc | 2422 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2424 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2425 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_REWIND_CMD; |
pc | 2432 | drivers/block/ide-tape.c | void idetape_create_mode_sense_cmd (idetape_packet_command_t *pc,byte page_code) |
pc | 2439 | drivers/block/ide-tape.c | pc->wait_for_dsc=0; |
pc | 2440 | drivers/block/ide-tape.c | pc->callback=&idetape_pc_callback; |
pc | 2441 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2445 | drivers/block/ide-tape.c | pc->request_transfer=24; |
pc | 2448 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2449 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_MODE_SENSE_CMD; |
pc | 2450 | drivers/block/ide-tape.c | pc->c [1]=8; /* DBD = 1 - Don't return block descriptors for now */ |
pc | 2451 | drivers/block/ide-tape.c | pc->c [2]=page_code; |
pc | 2452 | drivers/block/ide-tape.c | pc->c [3]=255; /* Don't limit the returned information */ |
pc | 2453 | drivers/block/ide-tape.c | pc->c [4]=255; /* (We will just discard data in that case) */ |
pc | 2465 | drivers/block/ide-tape.c | void idetape_create_write_filemark_cmd (idetape_packet_command_t *pc,int write_filemark) |
pc | 2473 | drivers/block/ide-tape.c | pc->request_transfer=0; |
pc | 2474 | drivers/block/ide-tape.c | pc->buffer=NULL; |
pc | 2475 | drivers/block/ide-tape.c | pc->current_position=NULL; |
pc | 2476 | drivers/block/ide-tape.c | pc->buffer_size=0; |
pc | 2477 | drivers/block/ide-tape.c | pc->wait_for_dsc=1; |
pc | 2478 | drivers/block/ide-tape.c | pc->callback=&idetape_pc_callback; |
pc | 2479 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2481 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2482 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_WRITE_FILEMARK_CMD; |
pc | 2484 | drivers/block/ide-tape.c | pc->c [4]=1; |
pc | 2487 | drivers/block/ide-tape.c | void idetape_create_load_unload_cmd (idetape_packet_command_t *pc,int cmd) |
pc | 2493 | drivers/block/ide-tape.c | pc->request_transfer=0; |
pc | 2494 | drivers/block/ide-tape.c | pc->buffer=NULL; |
pc | 2495 | drivers/block/ide-tape.c | pc->current_position=NULL; |
pc | 2496 | drivers/block/ide-tape.c | pc->buffer_size=0; |
pc | 2497 | drivers/block/ide-tape.c | pc->wait_for_dsc=1; |
pc | 2498 | drivers/block/ide-tape.c | pc->callback=&idetape_pc_callback; |
pc | 2499 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2501 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2502 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_LOAD_UNLOAD_CMD; |
pc | 2503 | drivers/block/ide-tape.c | pc->c [4]=cmd; |
pc | 2506 | drivers/block/ide-tape.c | void idetape_create_erase_cmd (idetape_packet_command_t *pc) |
pc | 2514 | drivers/block/ide-tape.c | pc->request_transfer=0; |
pc | 2515 | drivers/block/ide-tape.c | pc->buffer=NULL; |
pc | 2516 | drivers/block/ide-tape.c | pc->current_position=NULL; |
pc | 2517 | drivers/block/ide-tape.c | pc->buffer_size=0; |
pc | 2518 | drivers/block/ide-tape.c | pc->wait_for_dsc=1; |
pc | 2519 | drivers/block/ide-tape.c | pc->callback=&idetape_pc_callback; |
pc | 2520 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2522 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2523 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_ERASE_CMD; |
pc | 2524 | drivers/block/ide-tape.c | pc->c [1]=1; |
pc | 2527 | drivers/block/ide-tape.c | void idetape_create_read_cmd (idetape_packet_command_t *pc,unsigned long length) |
pc | 2546 | drivers/block/ide-tape.c | pc->wait_for_dsc=0; |
pc | 2547 | drivers/block/ide-tape.c | pc->callback=&idetape_read_callback; |
pc | 2548 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2550 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2551 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_READ_CMD; |
pc | 2552 | drivers/block/ide-tape.c | pc->c [1]=1; |
pc | 2553 | drivers/block/ide-tape.c | pc->c [4]=original.b.b1; |
pc | 2554 | drivers/block/ide-tape.c | pc->c [3]=original.b.b2; |
pc | 2555 | drivers/block/ide-tape.c | pc->c [2]=original.b.b3; |
pc | 2560 | drivers/block/ide-tape.c | void idetape_create_space_cmd (idetape_packet_command_t *pc,long count,byte cmd) |
pc | 2579 | drivers/block/ide-tape.c | pc->request_transfer=0; |
pc | 2580 | drivers/block/ide-tape.c | pc->buffer=NULL; |
pc | 2581 | drivers/block/ide-tape.c | pc->current_position=NULL; |
pc | 2582 | drivers/block/ide-tape.c | pc->buffer_size=0; |
pc | 2583 | drivers/block/ide-tape.c | pc->wait_for_dsc=1; |
pc | 2584 | drivers/block/ide-tape.c | pc->callback=&idetape_pc_callback; |
pc | 2585 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2587 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2588 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_SPACE_CMD; |
pc | 2589 | drivers/block/ide-tape.c | pc->c [1]=cmd; |
pc | 2590 | drivers/block/ide-tape.c | pc->c [4]=original.b.b1; |
pc | 2591 | drivers/block/ide-tape.c | pc->c [3]=original.b.b2; |
pc | 2592 | drivers/block/ide-tape.c | pc->c [2]=original.b.b3; |
pc | 2597 | drivers/block/ide-tape.c | void idetape_create_write_cmd (idetape_packet_command_t *pc,unsigned long length) |
pc | 2616 | drivers/block/ide-tape.c | pc->wait_for_dsc=0; |
pc | 2617 | drivers/block/ide-tape.c | pc->callback=&idetape_write_callback; |
pc | 2618 | drivers/block/ide-tape.c | pc->writing=1; |
pc | 2620 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2621 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_WRITE_CMD; |
pc | 2622 | drivers/block/ide-tape.c | pc->c [1]=1; |
pc | 2623 | drivers/block/ide-tape.c | pc->c [4]=original.b.b1; |
pc | 2624 | drivers/block/ide-tape.c | pc->c [3]=original.b.b2; |
pc | 2625 | drivers/block/ide-tape.c | pc->c [2]=original.b.b3; |
pc | 2630 | drivers/block/ide-tape.c | void idetape_create_read_position_cmd (idetape_packet_command_t *pc) |
pc | 2637 | drivers/block/ide-tape.c | pc->request_transfer=20; |
pc | 2638 | drivers/block/ide-tape.c | pc->wait_for_dsc=0; |
pc | 2639 | drivers/block/ide-tape.c | pc->callback=&idetape_read_position_callback; |
pc | 2640 | drivers/block/ide-tape.c | pc->writing=0; |
pc | 2642 | drivers/block/ide-tape.c | idetape_zero_packet_command (pc); |
pc | 2643 | drivers/block/ide-tape.c | pc->c [0]=IDETAPE_READ_POSITION_CMD; |
pc | 2644 | drivers/block/ide-tape.c | pc->c [1]=0; |
pc | 2662 | drivers/block/ide-tape.c | if (!tape->pc->error) { |
pc | 2663 | drivers/block/ide-tape.c | result=(idetape_read_position_result_t *) tape->pc->buffer; |
pc | 2703 | drivers/block/ide-tape.c | idetape_packet_command_t pc; |
pc | 2706 | drivers/block/ide-tape.c | pc.buffer=pc.temp_buffer; |
pc | 2707 | drivers/block/ide-tape.c | pc.buffer_size=IDETAPE_TEMP_BUFFER_SIZE; |
pc | 2708 | drivers/block/ide-tape.c | pc.current_position=pc.temp_buffer; |
pc | 2718 | drivers/block/ide-tape.c | idetape_create_inquiry_cmd (&pc); |
pc | 2719 | drivers/block/ide-tape.c | pc.buffer=pc.temp_buffer; |
pc | 2720 | drivers/block/ide-tape.c | pc.buffer_size=IDETAPE_TEMP_BUFFER_SIZE; |
pc | 2721 | drivers/block/ide-tape.c | pc.current_position=pc.temp_buffer; |
pc | 2722 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 2727 | drivers/block/ide-tape.c | idetape_create_locate_cmd (&pc,arg,0); |
pc | 2728 | drivers/block/ide-tape.c | retval=idetape_queue_pc_tail (drive,&pc); |
pc | 2731 | drivers/block/ide-tape.c | idetape_create_read_position_cmd (&pc); |
pc | 2732 | drivers/block/ide-tape.c | pc.buffer=pc.temp_buffer; |
pc | 2733 | drivers/block/ide-tape.c | pc.buffer_size=IDETAPE_TEMP_BUFFER_SIZE; |
pc | 2734 | drivers/block/ide-tape.c | pc.current_position=pc.temp_buffer; |
pc | 2735 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 2824 | drivers/block/ide-tape.c | idetape_packet_command_t *pc; |
pc | 2877 | drivers/block/ide-tape.c | if (tape->failed_pc != NULL && tape->pc->c[0] == IDETAPE_REQUEST_SENSE_CMD) { |
pc | 2922 | drivers/block/ide-tape.c | pc=idetape_next_pc_storage (drive); |
pc | 2924 | drivers/block/ide-tape.c | idetape_create_read_cmd (pc,rq->current_nr_sectors); |
pc | 2926 | drivers/block/ide-tape.c | pc->buffer=rq->buffer; |
pc | 2927 | drivers/block/ide-tape.c | pc->buffer_size=rq->current_nr_sectors*tape->tape_block_size; |
pc | 2928 | drivers/block/ide-tape.c | pc->current_position=rq->buffer; |
pc | 2929 | drivers/block/ide-tape.c | pc->request_transfer=rq->current_nr_sectors*tape->tape_block_size; |
pc | 2931 | drivers/block/ide-tape.c | idetape_issue_packet_command (drive,pc,&idetape_pc_intr); |
pc | 2945 | drivers/block/ide-tape.c | pc=idetape_next_pc_storage (drive); |
pc | 2947 | drivers/block/ide-tape.c | idetape_create_write_cmd (pc,rq->current_nr_sectors); |
pc | 2949 | drivers/block/ide-tape.c | pc->buffer=rq->buffer; |
pc | 2950 | drivers/block/ide-tape.c | pc->buffer_size=rq->current_nr_sectors*tape->tape_block_size; |
pc | 2951 | drivers/block/ide-tape.c | pc->current_position=rq->buffer; |
pc | 2952 | drivers/block/ide-tape.c | pc->request_transfer=rq->current_nr_sectors*tape->tape_block_size; |
pc | 2954 | drivers/block/ide-tape.c | idetape_issue_packet_command (drive,pc,&idetape_pc_intr); |
pc | 2976 | drivers/block/ide-tape.c | pc=(idetape_packet_command_t *) rq->buffer; |
pc | 2977 | drivers/block/ide-tape.c | idetape_issue_packet_command (drive,pc,&idetape_pc_intr); |
pc | 3008 | drivers/block/ide-tape.c | int idetape_queue_pc_tail (ide_drive_t *drive,idetape_packet_command_t *pc) |
pc | 3013 | drivers/block/ide-tape.c | rq.buffer = (char *) pc; |
pc | 3038 | drivers/block/ide-tape.c | void idetape_queue_pc_head (ide_drive_t *drive,idetape_packet_command_t *pc,struct request *rq) |
pc | 3047 | drivers/block/ide-tape.c | rq->buffer = (char *) pc; |
pc | 3335 | drivers/block/ide-tape.c | void idetape_zero_packet_command (idetape_packet_command_t *pc) |
pc | 3341 | drivers/block/ide-tape.c | pc->c[i]=0; |
pc | 3342 | drivers/block/ide-tape.c | pc->retries=0; |
pc | 3343 | drivers/block/ide-tape.c | pc->abort=0; |
pc | 3780 | drivers/block/ide-tape.c | idetape_packet_command_t pc; |
pc | 3802 | drivers/block/ide-tape.c | pc.buffer=pc.temp_buffer; |
pc | 3803 | drivers/block/ide-tape.c | pc.buffer_size=IDETAPE_TEMP_BUFFER_SIZE; |
pc | 3804 | drivers/block/ide-tape.c | pc.current_position=pc.temp_buffer; |
pc | 3819 | drivers/block/ide-tape.c | idetape_create_read_position_cmd (&pc); |
pc | 3820 | drivers/block/ide-tape.c | retval=idetape_queue_pc_tail (drive,&pc); |
pc | 3889 | drivers/block/ide-tape.c | idetape_packet_command_t pc; |
pc | 3892 | drivers/block/ide-tape.c | pc.buffer=pc.temp_buffer; |
pc | 3893 | drivers/block/ide-tape.c | pc.buffer_size=IDETAPE_TEMP_BUFFER_SIZE; |
pc | 3894 | drivers/block/ide-tape.c | pc.current_position=pc.temp_buffer; |
pc | 3926 | drivers/block/ide-tape.c | idetape_create_write_filemark_cmd (&pc,1); |
pc | 3927 | drivers/block/ide-tape.c | retval=idetape_queue_pc_tail (drive,&pc); |
pc | 3934 | drivers/block/ide-tape.c | idetape_create_load_unload_cmd (&pc,!IDETAPE_LU_LOAD_MASK); |
pc | 3935 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 3939 | drivers/block/ide-tape.c | idetape_create_load_unload_cmd (&pc,IDETAPE_LU_RETENSION_MASK | IDETAPE_LU_LOAD_MASK); |
pc | 3940 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 3942 | drivers/block/ide-tape.c | idetape_create_space_cmd (&pc,0,IDETAPE_SPACE_TO_EOD); |
pc | 3943 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 3947 | drivers/block/ide-tape.c | idetape_create_erase_cmd (&pc); |
pc | 3948 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 3971 | drivers/block/ide-tape.c | idetape_packet_command_t pc; |
pc | 4016 | drivers/block/ide-tape.c | pc.buffer=pc.temp_buffer; |
pc | 4017 | drivers/block/ide-tape.c | pc.buffer_size=IDETAPE_TEMP_BUFFER_SIZE; |
pc | 4018 | drivers/block/ide-tape.c | pc.current_position=pc.temp_buffer; |
pc | 4022 | drivers/block/ide-tape.c | idetape_create_space_cmd (&pc,mt_count-count,IDETAPE_SPACE_OVER_FILEMARK); |
pc | 4023 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 4033 | drivers/block/ide-tape.c | idetape_create_space_cmd (&pc,-(mt_count+count),IDETAPE_SPACE_OVER_FILEMARK); |
pc | 4034 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 4105 | drivers/block/ide-tape.c | idetape_packet_command_t pc; |
pc | 4119 | drivers/block/ide-tape.c | idetape_create_write_filemark_cmd (&pc,1); /* Write a filemark */ |
pc | 4120 | drivers/block/ide-tape.c | if (idetape_queue_pc_tail (drive,&pc)) { |
pc | 4156 | drivers/block/ide-tape.c | idetape_packet_command_t pc; |
pc | 4158 | drivers/block/ide-tape.c | idetape_create_locate_cmd (&pc,block,0); |
pc | 4159 | drivers/block/ide-tape.c | retval=idetape_queue_pc_tail (drive,&pc); |
pc | 4162 | drivers/block/ide-tape.c | idetape_create_read_position_cmd (&pc); |
pc | 4163 | drivers/block/ide-tape.c | pc.buffer=pc.temp_buffer; |
pc | 4164 | drivers/block/ide-tape.c | pc.buffer_size=IDETAPE_TEMP_BUFFER_SIZE; |
pc | 4165 | drivers/block/ide-tape.c | pc.current_position=pc.temp_buffer; |
pc | 4166 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 4179 | drivers/block/ide-tape.c | idetape_packet_command_t pc; |
pc | 4184 | drivers/block/ide-tape.c | idetape_create_rewind_cmd (&pc); |
pc | 4185 | drivers/block/ide-tape.c | retval=idetape_queue_pc_tail (drive,&pc); |
pc | 4188 | drivers/block/ide-tape.c | idetape_create_read_position_cmd (&pc); |
pc | 4189 | drivers/block/ide-tape.c | pc.buffer=pc.temp_buffer; |
pc | 4190 | drivers/block/ide-tape.c | pc.buffer_size=IDETAPE_TEMP_BUFFER_SIZE; |
pc | 4191 | drivers/block/ide-tape.c | pc.current_position=pc.temp_buffer; |
pc | 4192 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 4198 | drivers/block/ide-tape.c | idetape_packet_command_t pc; |
pc | 4200 | drivers/block/ide-tape.c | idetape_create_write_filemark_cmd (&pc,0); |
pc | 4201 | drivers/block/ide-tape.c | return (idetape_queue_pc_tail (drive,&pc)); |
pc | 363 | drivers/block/ide-tape.h | idetape_packet_command_t *pc; /* Current packet command */ |
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 | 431 | fs/proc/array.c | unsigned long pc; |
pc | 433 | fs/proc/array.c | pc = thread_saved_pc(&p->tss); |
pc | 434 | fs/proc/array.c | if (pc >= (unsigned long) interruptible_sleep_on && pc < (unsigned long) add_timer) { |
pc | 438 | fs/proc/array.c | return pc; |
pc | 453 | 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 | 102 | include/asm-sparc/processor.h | ((t->ksp&(~0xfff))+(0x1000-TRACEREG_SZ)))->pc; |
pc | 108 | include/asm-sparc/processor.h | extern void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp); |
pc | 15 | include/asm-sparc/ptrace.h | unsigned long pc; |
pc | 65 | include/asm-sparc/ptrace.h | #define instruction_pointer(regs) ((regs)->pc) |
pc | 355 | include/linux/sched.h | unsigned long pc; |
pc | 356 | include/linux/sched.h | pc = (unsigned long) &&here; |
pc | 358 | include/linux/sched.h | printk("add_wait_queue (%08lx): wait->next = %08lx\n",pc,(unsigned long) wait->next); |