Home
last modified time | relevance | path

Searched refs:iocommand (Results 1 – 2 of 2) sorted by relevance

/drivers/scsi/smartpqi/
Dsmartpqi_init.c5982 IOCTL_Command_struct iocommand; in pqi_passthru_ioctl() local
5993 if (copy_from_user(&iocommand, arg, sizeof(iocommand))) in pqi_passthru_ioctl()
5995 if (iocommand.buf_size < 1 && in pqi_passthru_ioctl()
5996 iocommand.Request.Type.Direction != XFER_NONE) in pqi_passthru_ioctl()
5998 if (iocommand.Request.CDBLen > sizeof(request.cdb)) in pqi_passthru_ioctl()
6000 if (iocommand.Request.Type.Type != TYPE_CMD) in pqi_passthru_ioctl()
6003 switch (iocommand.Request.Type.Direction) { in pqi_passthru_ioctl()
6013 if (iocommand.buf_size > 0) { in pqi_passthru_ioctl()
6014 kernel_buffer = kmalloc(iocommand.buf_size, GFP_KERNEL); in pqi_passthru_ioctl()
6017 if (iocommand.Request.Type.Direction & XFER_WRITE) { in pqi_passthru_ioctl()
[all …]
/drivers/scsi/
Dhpsa.c6342 IOCTL_Command_struct iocommand; in hpsa_passthru_ioctl() local
6352 if (copy_from_user(&iocommand, argp, sizeof(iocommand))) in hpsa_passthru_ioctl()
6354 if ((iocommand.buf_size < 1) && in hpsa_passthru_ioctl()
6355 (iocommand.Request.Type.Direction != XFER_NONE)) { in hpsa_passthru_ioctl()
6358 if (iocommand.buf_size > 0) { in hpsa_passthru_ioctl()
6359 buff = kmalloc(iocommand.buf_size, GFP_KERNEL); in hpsa_passthru_ioctl()
6362 if (iocommand.Request.Type.Direction & XFER_WRITE) { in hpsa_passthru_ioctl()
6364 if (copy_from_user(buff, iocommand.buf, in hpsa_passthru_ioctl()
6365 iocommand.buf_size)) { in hpsa_passthru_ioctl()
6370 memset(buff, 0, iocommand.buf_size); in hpsa_passthru_ioctl()
[all …]