Lines Matching refs:iocommand
2434 IOCTL_Command_struct iocommand;
2443 if (copy_from_user(&iocommand, argp, sizeof(iocommand)))
2445 if ((iocommand.buf_size < 1) &&
2446 (iocommand.Request.Type.Direction != XFER_NONE)) {
2449 if (iocommand.buf_size > 0) {
2450 buff = kmalloc(iocommand.buf_size, GFP_KERNEL);
2454 if (iocommand.Request.Type.Direction == XFER_WRITE) {
2456 if (copy_from_user(buff, iocommand.buf, iocommand.buf_size)) {
2461 memset(buff, 0, iocommand.buf_size);
2471 if (iocommand.buf_size > 0) { /* buffer to fill */
2478 memcpy(&c->Header.LUN, &iocommand.LUN_info, sizeof(c->Header.LUN));
2483 memcpy(&c->Request, &iocommand.Request,
2487 if (iocommand.buf_size > 0) {
2489 iocommand.buf_size, PCI_DMA_BIDIRECTIONAL);
2492 c->SG[0].Len = iocommand.buf_size;
2500 memcpy(&iocommand.error_info, c->err_info,
2501 sizeof(iocommand.error_info));
2502 if (copy_to_user(argp, &iocommand, sizeof(iocommand))) {
2508 if (iocommand.Request.Type.Direction == XFER_READ) {
2510 if (copy_to_user(iocommand.buf, buff, iocommand.buf_size)) {