Searched refs:req_task (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/ide/
H A Dide-taskfile.c471 ide_task_request_t *req_task; ide_taskfile_ioctl() local
483 req_task = memdup_user(buf, tasksize); ide_taskfile_ioctl()
484 if (IS_ERR(req_task)) ide_taskfile_ioctl()
485 return PTR_ERR(req_task); ide_taskfile_ioctl()
487 taskout = req_task->out_size; ide_taskfile_ioctl()
488 taskin = req_task->in_size; ide_taskfile_ioctl()
523 memcpy(&cmd.hob, req_task->hob_ports, HDIO_DRIVE_HOB_HDR_SIZE - 2); ide_taskfile_ioctl()
524 memcpy(&cmd.tf, req_task->io_ports, HDIO_DRIVE_TASK_HDR_SIZE); ide_taskfile_ioctl()
535 if (req_task->out_flags.all) { ide_taskfile_ioctl()
538 if (req_task->out_flags.b.data) ide_taskfile_ioctl()
541 if (req_task->out_flags.b.nsector_hob) ide_taskfile_ioctl()
543 if (req_task->out_flags.b.sector_hob) ide_taskfile_ioctl()
545 if (req_task->out_flags.b.lcyl_hob) ide_taskfile_ioctl()
547 if (req_task->out_flags.b.hcyl_hob) ide_taskfile_ioctl()
550 if (req_task->out_flags.b.error_feature) ide_taskfile_ioctl()
552 if (req_task->out_flags.b.nsector) ide_taskfile_ioctl()
554 if (req_task->out_flags.b.sector) ide_taskfile_ioctl()
556 if (req_task->out_flags.b.lcyl) ide_taskfile_ioctl()
558 if (req_task->out_flags.b.hcyl) ide_taskfile_ioctl()
566 if (req_task->in_flags.b.data) ide_taskfile_ioctl()
569 if (req_task->req_cmd == IDE_DRIVE_TASK_RAW_WRITE) { ide_taskfile_ioctl()
571 if (req_task->data_phase == TASKFILE_IN_DMAQ || ide_taskfile_ioctl()
572 req_task->data_phase == TASKFILE_IN_DMA) ide_taskfile_ioctl()
578 switch (req_task->data_phase) { ide_taskfile_ioctl()
624 if (req_task->req_cmd == IDE_DRIVE_TASK_NO_DATA) ide_taskfile_ioctl()
639 memcpy(req_task->hob_ports, &cmd.hob, HDIO_DRIVE_HOB_HDR_SIZE - 2); ide_taskfile_ioctl()
640 memcpy(req_task->io_ports, &cmd.tf, HDIO_DRIVE_TASK_HDR_SIZE); ide_taskfile_ioctl()
643 req_task->in_flags.all == 0) { ide_taskfile_ioctl()
644 req_task->in_flags.all = IDE_TASKFILE_STD_IN_FLAGS; ide_taskfile_ioctl()
646 req_task->in_flags.all |= (IDE_HOB_STD_IN_FLAGS << 8); ide_taskfile_ioctl()
649 if (copy_to_user(buf, req_task, tasksize)) { ide_taskfile_ioctl()
668 kfree(req_task); ide_taskfile_ioctl()
/linux-4.4.14/drivers/block/mtip32xx/
H A Dmtip32xx.c2014 ide_task_request_t *req_task, exec_drive_taskfile()
2032 int intotal = outtotal + req_task->out_size; exec_drive_taskfile()
2035 taskout = req_task->out_size; exec_drive_taskfile()
2036 taskin = req_task->in_size; exec_drive_taskfile()
2086 switch (req_task->data_phase) { exec_drive_taskfile()
2107 fis.command = req_task->io_ports[7]; exec_drive_taskfile()
2108 fis.features = req_task->io_ports[1]; exec_drive_taskfile()
2109 fis.sect_count = req_task->io_ports[2]; exec_drive_taskfile()
2110 fis.lba_low = req_task->io_ports[3]; exec_drive_taskfile()
2111 fis.lba_mid = req_task->io_ports[4]; exec_drive_taskfile()
2112 fis.lba_hi = req_task->io_ports[5]; exec_drive_taskfile()
2114 fis.device = req_task->io_ports[6] & ~0x10; exec_drive_taskfile()
2116 if ((req_task->in_flags.all == 0) && (req_task->out_flags.all & 1)) { exec_drive_taskfile()
2117 req_task->in_flags.all = exec_drive_taskfile()
2120 fis.lba_low_ex = req_task->hob_ports[3]; exec_drive_taskfile()
2121 fis.lba_mid_ex = req_task->hob_ports[4]; exec_drive_taskfile()
2122 fis.lba_hi_ex = req_task->hob_ports[5]; exec_drive_taskfile()
2123 fis.features_ex = req_task->hob_ports[1]; exec_drive_taskfile()
2124 fis.sect_cnt_ex = req_task->hob_ports[2]; exec_drive_taskfile()
2127 req_task->in_flags.all = IDE_TASKFILE_STD_IN_FLAGS; exec_drive_taskfile()
2188 if ((req_task->data_phase == TASKFILE_IN) && !(task_file_data & 1)) { exec_drive_taskfile()
2190 req_task->io_ports[7] = reply->control; exec_drive_taskfile()
2193 req_task->io_ports[7] = reply->command; exec_drive_taskfile()
2207 req_task->io_ports[1] = reply->features; exec_drive_taskfile()
2208 req_task->io_ports[2] = reply->sect_count; exec_drive_taskfile()
2209 req_task->io_ports[3] = reply->lba_low; exec_drive_taskfile()
2210 req_task->io_ports[4] = reply->lba_mid; exec_drive_taskfile()
2211 req_task->io_ports[5] = reply->lba_hi; exec_drive_taskfile()
2212 req_task->io_ports[6] = reply->device; exec_drive_taskfile()
2214 if (req_task->out_flags.all & 1) { exec_drive_taskfile()
2216 req_task->hob_ports[3] = reply->lba_low_ex; exec_drive_taskfile()
2217 req_task->hob_ports[4] = reply->lba_mid_ex; exec_drive_taskfile()
2218 req_task->hob_ports[5] = reply->lba_hi_ex; exec_drive_taskfile()
2219 req_task->hob_ports[1] = reply->features_ex; exec_drive_taskfile()
2220 req_task->hob_ports[2] = reply->sect_cnt_ex; exec_drive_taskfile()
2227 req_task->io_ports[7], exec_drive_taskfile()
2228 req_task->io_ports[1], exec_drive_taskfile()
2229 req_task->io_ports[2], exec_drive_taskfile()
2230 req_task->io_ports[3], exec_drive_taskfile()
2231 req_task->io_ports[4], exec_drive_taskfile()
2232 req_task->io_ports[5], exec_drive_taskfile()
2233 req_task->io_ports[6]); exec_drive_taskfile()
2335 ide_task_request_t req_task; mtip_hw_ioctl() local
2338 if (copy_from_user(&req_task, (void __user *) arg, mtip_hw_ioctl()
2339 sizeof(req_task))) mtip_hw_ioctl()
2342 outtotal = sizeof(req_task); mtip_hw_ioctl()
2345 &req_task, outtotal); mtip_hw_ioctl()
2347 if (copy_to_user((void __user *) arg, &req_task, mtip_hw_ioctl()
2348 sizeof(req_task))) mtip_hw_ioctl()
3595 ide_task_request_t req_task; mtip_block_compat_ioctl() local
3604 if (copy_from_user(&req_task, (void __user *) arg, mtip_block_compat_ioctl()
3608 if (get_user(req_task.out_size, &compat_req_task->out_size)) mtip_block_compat_ioctl()
3611 if (get_user(req_task.in_size, &compat_req_task->in_size)) mtip_block_compat_ioctl()
3617 &req_task, outtotal); mtip_block_compat_ioctl()
3619 if (copy_to_user((void __user *) arg, &req_task, mtip_block_compat_ioctl()
3624 if (put_user(req_task.out_size, &compat_req_task->out_size)) mtip_block_compat_ioctl()
3627 if (put_user(req_task.in_size, &compat_req_task->in_size)) mtip_block_compat_ioctl()
2012 exec_drive_taskfile(struct driver_data *dd, void __user *buf, ide_task_request_t *req_task, int outtotal) exec_drive_taskfile() argument

Completed in 209 milliseconds