- int ata_build_rw_tf(struct ata_taskfile * tf, struct ata_device * dev, u64 block, u32 n_block, unsigned int tf_flags, unsigned int tag);
- Target ATA taskfile
- ATA device tf belongs to
- Block address
- Number of blocks
- RW/FUA etc...
Build ATA taskfile tf for read/write request described by block, n_block, tf_flags and tag on dev.
0 on success, -ERANGE if the request is too large for dev, -EINVAL if the request is invalid.