Lines Matching refs:sg_io_v4
87 struct sg_io_v4 hdr;
140 struct sg_io_v4 *hdr, struct bsg_device *bd, in blk_fill_sgv4_hdr_rq()
179 bsg_validate_sgv4_hdr(struct request_queue *q, struct sg_io_v4 *hdr, int *rw) in bsg_validate_sgv4_hdr()
208 bsg_map_hdr(struct bsg_device *bd, struct sg_io_v4 *hdr, fmode_t has_write_perm, in bsg_map_hdr()
393 static int blk_complete_sgv4_hdr_rq(struct request *rq, struct sg_io_v4 *hdr, in blk_complete_sgv4_hdr_rq()
519 if (count % sizeof(struct sg_io_v4)) in __bsg_read()
523 nr_commands = count / sizeof(struct sg_io_v4); in __bsg_read()
547 buf += sizeof(struct sg_io_v4); in __bsg_read()
548 *bytes_read += sizeof(struct sg_io_v4); in __bsg_read()
603 if (count % sizeof(struct sg_io_v4)) in __bsg_write()
606 nr_commands = count / sizeof(struct sg_io_v4); in __bsg_write()
639 buf += sizeof(struct sg_io_v4); in __bsg_write()
640 *bytes_written += sizeof(struct sg_io_v4); in __bsg_write()
909 struct sg_io_v4 hdr; in bsg_ioctl()