Lines Matching defs:buf
59 int taskfile_lib_get_identify(ide_drive_t *drive, u8 *buf)
73 return ide_raw_taskfile(drive, &cmd, buf, 1);
234 u8 *buf;
251 buf = kmap_atomic(page) + offset;
263 hwif->tp_ops->output_data(drive, cmd, buf, nr_bytes);
265 hwif->tp_ops->input_data(drive, cmd, buf, nr_bytes);
267 kunmap_atomic(buf);
419 int ide_raw_taskfile(ide_drive_t *drive, struct ide_cmd *cmd, u8 *buf,
437 error = blk_rq_map_kern(drive->queue, rq, buf,
475 char __user *buf = (char __user *)arg;
477 req_task = memdup_user(buf, tasksize);
496 if (copy_from_user(outbuf, buf + outtotal, taskout)) {
509 if (copy_from_user(inbuf, buf + intotal, taskin)) {
643 if (copy_to_user(buf, req_task, tasksize)) {
649 if (copy_to_user(buf + outtotal, outbuf, taskout)) {
656 if (copy_to_user(buf + intotal, inbuf, taskin)) {