Lines Matching refs:iocommand
258 IOCTL_Command_struct *iocommand);
6402 IOCTL_Command_struct *iocommand)
6411 if ((iocommand->buf_size < 1) &&
6412 (iocommand->Request.Type.Direction != XFER_NONE)) {
6415 if (iocommand->buf_size > 0) {
6416 buff = kmalloc(iocommand->buf_size, GFP_KERNEL);
6419 if (iocommand->Request.Type.Direction & XFER_WRITE) {
6421 if (copy_from_user(buff, iocommand->buf,
6422 iocommand->buf_size)) {
6427 memset(buff, 0, iocommand->buf_size);
6437 if (iocommand->buf_size > 0) { /* buffer to fill */
6444 memcpy(&c->Header.LUN, &iocommand->LUN_info, sizeof(c->Header.LUN));
6447 memcpy(&c->Request, &iocommand->Request,
6451 if (iocommand->buf_size > 0) {
6453 iocommand->buf_size, DMA_BIDIRECTIONAL);
6461 c->SG[0].Len = cpu_to_le32(iocommand->buf_size);
6466 if (iocommand->buf_size > 0)
6475 memcpy(&iocommand->error_info, c->err_info,
6476 sizeof(iocommand->error_info));
6477 if ((iocommand->Request.Type.Direction & XFER_READ) &&
6478 iocommand->buf_size > 0) {
6480 if (copy_to_user(iocommand->buf, buff, iocommand->buf_size)) {
6644 IOCTL_Command_struct iocommand;
6648 if (copy_from_user(&iocommand, argp, sizeof(iocommand)))
6652 rc = hpsa_passthru_ioctl(h, &iocommand);
6654 if (!rc && copy_to_user(argp, &iocommand, sizeof(iocommand)))