taglinefilesource code
operation334drivers/block/xd.cstatic int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count)
operation341drivers/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);
operation357drivers/block/xd.cmode = xd_setup_dma(operation == READ ? DMA_MODE_READ : DMA_MODE_WRITE,(u_char *)buffer,temp * 0x200);
operation358drivers/block/xd.cxd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control);
operation2560drivers/char/tpqic02.cstruct mtop operation;
operation2671drivers/char/tpqic02.cerror = verify_area(VERIFY_READ, (char *) ioarg, sizeof(operation));
operation2676drivers/char/tpqic02.cstp = (char *) &operation;
operation2678drivers/char/tpqic02.cfor (i=0; i<sizeof(operation); i++)
operation2690drivers/char/tpqic02.cprintk("OP op=%4x, count=%4x\n", operation.mt_op, operation.mt_count);
operation2692drivers/char/tpqic02.cif (operation.mt_count < 0)
operation2695drivers/char/tpqic02.cioctl_status.mt_resid = operation.mt_count;
operation2696drivers/char/tpqic02.cif (operation.mt_op == MTSEEK) {
operation2699drivers/char/tpqic02.cseek_addr_buf[0] = (operation.mt_count>>16)&0xff;
operation2700drivers/char/tpqic02.cseek_addr_buf[1] = (operation.mt_count>>8)&0xff;
operation2701drivers/char/tpqic02.cseek_addr_buf[2] = (operation.mt_count)&0xff;
operation2702drivers/char/tpqic02.cif (operation.mt_count>>24)
operation2704drivers/char/tpqic02.cif ((error = do_ioctl_cmd(operation.mt_op)) != 0)
operation2708drivers/char/tpqic02.cwhile (operation.mt_count > 0) {
operation2709drivers/char/tpqic02.coperation.mt_count--;
operation2710drivers/char/tpqic02.cif ((error = do_ioctl_cmd(operation.mt_op)) != 0)
operation2712drivers/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);