taglinefilesource code
operation324drivers/block/xd.cstatic int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count)
operation331drivers/block/xd.cprintk("xd_readwrite: operation = %s, drive = %d, buffer = 0x%X, block = %d, count = %d\n",operation == READ ? "read" : "write",drive,buffer,block,count);
operation347drivers/block/xd.cmode = xd_setup_dma(operation == READ ? DMA_MODE_READ : DMA_MODE_WRITE,(u_char *)buffer,temp * 0x200);
operation348drivers/block/xd.cxd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control);
operation2558drivers/char/tpqic02.cstruct mtop operation;
operation2669drivers/char/tpqic02.cerror = verify_area(VERIFY_READ, (char *) ioarg, sizeof(operation));
operation2674drivers/char/tpqic02.cstp = (char *) &operation;
operation2676drivers/char/tpqic02.cfor (i=0; i<sizeof(operation); i++)
operation2688drivers/char/tpqic02.cprintk("OP op=%4x, count=%4x\n", operation.mt_op, operation.mt_count);
operation2690drivers/char/tpqic02.cif (operation.mt_count < 0)
operation2693drivers/char/tpqic02.cioctl_status.mt_resid = operation.mt_count;
operation2694drivers/char/tpqic02.cif (operation.mt_op == MTSEEK) {
operation2697drivers/char/tpqic02.cseek_addr_buf[0] = (operation.mt_count>>16)&0xff;
operation2698drivers/char/tpqic02.cseek_addr_buf[1] = (operation.mt_count>>8)&0xff;
operation2699drivers/char/tpqic02.cseek_addr_buf[2] = (operation.mt_count)&0xff;
operation2700drivers/char/tpqic02.cif (operation.mt_count>>24)
operation2702drivers/char/tpqic02.cif ((error = do_ioctl_cmd(operation.mt_op)) != 0)
operation2706drivers/char/tpqic02.cwhile (operation.mt_count > 0) {
operation2707drivers/char/tpqic02.coperation.mt_count--;
operation2708drivers/char/tpqic02.cif ((error = do_ioctl_cmd(operation.mt_op)) != 0)
operation2710drivers/char/tpqic02.cioctl_status.mt_resid = operation.mt_count;
operation117include/linux/xd.hstatic int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count);