taglinefilesource code
operation279drivers/block/xd.cstatic int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count)
operation286drivers/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);
operation302drivers/block/xd.cmode = xd_setup_dma(operation == READ ? DMA_MODE_READ : DMA_MODE_WRITE,(u_char *)buffer,temp * 0x200);
operation303drivers/block/xd.cxd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control);
operation2331drivers/char/tpqic02.cstruct mtop operation;
operation2363drivers/char/tpqic02.cerror = verify_area(VERIFY_READ, (char *) ioarg, sizeof(operation));
operation2368drivers/char/tpqic02.cstp = (char *) &operation;
operation2370drivers/char/tpqic02.cfor (i=0; i<sizeof(operation); i++)
operation2382drivers/char/tpqic02.cprintk("OP op=%4x, count=%4x\n", operation.mt_op, operation.mt_count);
operation2384drivers/char/tpqic02.cif (operation.mt_count < 0)
operation2387drivers/char/tpqic02.cioctl_status.mt_resid = operation.mt_count;
operation2388drivers/char/tpqic02.cif (operation.mt_op == MTSEEK) {
operation2389drivers/char/tpqic02.cseek_addr_buf[0] = (operation.mt_count>>16)&0xff;
operation2390drivers/char/tpqic02.cseek_addr_buf[1] = (operation.mt_count>>8)&0xff;
operation2391drivers/char/tpqic02.cseek_addr_buf[2] = (operation.mt_count)&0xff;
operation2392drivers/char/tpqic02.cif (operation.mt_count>>24)
operation2395drivers/char/tpqic02.cif ((error = do_ioctl_cmd(operation.mt_op)) != 0)
operation2399drivers/char/tpqic02.cwhile (operation.mt_count > 0) {
operation2400drivers/char/tpqic02.coperation.mt_count--;
operation2401drivers/char/tpqic02.cif ((error = do_ioctl_cmd(operation.mt_op)) != 0)
operation2403drivers/char/tpqic02.cioctl_status.mt_resid = operation.mt_count;
operation118include/linux/xd.hstatic int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count);