Searched refs:hdr (Results 1 – 2 of 2) sorted by relevance
/block/ |
D | scsi_ioctl.c | 231 struct sg_io_hdr *hdr, fmode_t mode) in blk_fill_sghdr_rq() argument 233 if (copy_from_user(rq->cmd, hdr->cmdp, hdr->cmd_len)) in blk_fill_sghdr_rq() 241 rq->cmd_len = hdr->cmd_len; in blk_fill_sghdr_rq() 243 rq->timeout = msecs_to_jiffies(hdr->timeout); in blk_fill_sghdr_rq() 254 static int blk_complete_sghdr_rq(struct request *rq, struct sg_io_hdr *hdr, in blk_complete_sghdr_rq() argument 262 hdr->status = rq->errors & 0xff; in blk_complete_sghdr_rq() 263 hdr->masked_status = status_byte(rq->errors); in blk_complete_sghdr_rq() 264 hdr->msg_status = msg_byte(rq->errors); in blk_complete_sghdr_rq() 265 hdr->host_status = host_byte(rq->errors); in blk_complete_sghdr_rq() 266 hdr->driver_status = driver_byte(rq->errors); in blk_complete_sghdr_rq() [all …]
|
D | bsg.c | 87 struct sg_io_v4 hdr; member 176 struct sg_io_v4 *hdr, struct bsg_device *bd, in blk_fill_sgv4_hdr_rq() argument 179 if (hdr->request_len > BLK_MAX_CDB) { in blk_fill_sgv4_hdr_rq() 180 rq->cmd = kzalloc(hdr->request_len, GFP_KERNEL); in blk_fill_sgv4_hdr_rq() 185 if (copy_from_user(rq->cmd, (void __user *)(unsigned long)hdr->request, in blk_fill_sgv4_hdr_rq() 186 hdr->request_len)) in blk_fill_sgv4_hdr_rq() 189 if (hdr->subprotocol == BSG_SUB_PROTOCOL_SCSI_CMD) { in blk_fill_sgv4_hdr_rq() 198 rq->cmd_len = hdr->request_len; in blk_fill_sgv4_hdr_rq() 200 rq->timeout = msecs_to_jiffies(hdr->timeout); in blk_fill_sgv4_hdr_rq() 215 bsg_validate_sgv4_hdr(struct request_queue *q, struct sg_io_v4 *hdr, int *rw) in bsg_validate_sgv4_hdr() argument [all …]
|