Lines Matching refs:iocommand
1433 IOCTL_Command_struct iocommand;
1446 (&iocommand, argp, sizeof(IOCTL_Command_struct)))
1448 if ((iocommand.buf_size < 1) &&
1449 (iocommand.Request.Type.Direction != XFER_NONE)) {
1452 if (iocommand.buf_size > 0) {
1453 buff = kmalloc(iocommand.buf_size, GFP_KERNEL);
1457 if (iocommand.Request.Type.Direction == XFER_WRITE) {
1460 (buff, iocommand.buf, iocommand.buf_size)) {
1465 memset(buff, 0, iocommand.buf_size);
1476 if (iocommand.buf_size > 0) /* buffer to fill */
1485 c->Header.LUN = iocommand.LUN_info;
1490 c->Request = iocommand.Request;
1493 if (iocommand.buf_size > 0) {
1495 iocommand.buf_size,
1499 c->SG[0].Len = iocommand.buf_size;
1511 iocommand.buf_size,
1517 iocommand.error_info = *(c->err_info);
1519 (argp, &iocommand, sizeof(IOCTL_Command_struct))) {
1525 if (iocommand.Request.Type.Direction == XFER_READ) {
1528 (iocommand.buf, buff, iocommand.buf_size)) {