Searched refs:hdr (Results 1 – 4 of 4) sorted by relevance
/block/ |
D | scsi_ioctl.c | 221 struct sg_io_hdr *hdr, fmode_t mode) in blk_fill_sghdr_rq() argument 225 if (copy_from_user(req->cmd, hdr->cmdp, hdr->cmd_len)) in blk_fill_sghdr_rq() 233 req->cmd_len = hdr->cmd_len; in blk_fill_sghdr_rq() 235 rq->timeout = msecs_to_jiffies(hdr->timeout); in blk_fill_sghdr_rq() 246 static int blk_complete_sghdr_rq(struct request *rq, struct sg_io_hdr *hdr, in blk_complete_sghdr_rq() argument 255 hdr->status = req->result & 0xff; in blk_complete_sghdr_rq() 256 hdr->masked_status = status_byte(req->result); in blk_complete_sghdr_rq() 257 hdr->msg_status = msg_byte(req->result); in blk_complete_sghdr_rq() 258 hdr->host_status = host_byte(req->result); in blk_complete_sghdr_rq() 259 hdr->driver_status = driver_byte(req->result); in blk_complete_sghdr_rq() [all …]
|
D | bsg.c | 58 static int bsg_scsi_check_proto(struct sg_io_v4 *hdr) in bsg_scsi_check_proto() argument 60 if (hdr->protocol != BSG_PROTOCOL_SCSI || in bsg_scsi_check_proto() 61 hdr->subprotocol != BSG_SUB_PROTOCOL_SCSI_CMD) in bsg_scsi_check_proto() 66 static int bsg_scsi_fill_hdr(struct request *rq, struct sg_io_v4 *hdr, in bsg_scsi_fill_hdr() argument 71 if (hdr->dout_xfer_len && hdr->din_xfer_len) { in bsg_scsi_fill_hdr() 76 sreq->cmd_len = hdr->request_len; in bsg_scsi_fill_hdr() 83 if (copy_from_user(sreq->cmd, uptr64(hdr->request), sreq->cmd_len)) in bsg_scsi_fill_hdr() 90 static int bsg_scsi_complete_rq(struct request *rq, struct sg_io_v4 *hdr) in bsg_scsi_complete_rq() argument 98 hdr->device_status = sreq->result & 0xff; in bsg_scsi_complete_rq() 99 hdr->transport_status = host_byte(sreq->result); in bsg_scsi_complete_rq() [all …]
|
D | bsg-lib.c | 26 static int bsg_transport_check_proto(struct sg_io_v4 *hdr) in bsg_transport_check_proto() argument 28 if (hdr->protocol != BSG_PROTOCOL_SCSI || in bsg_transport_check_proto() 29 hdr->subprotocol != BSG_SUB_PROTOCOL_SCSI_TRANSPORT) in bsg_transport_check_proto() 36 static int bsg_transport_fill_hdr(struct request *rq, struct sg_io_v4 *hdr, in bsg_transport_fill_hdr() argument 42 job->request_len = hdr->request_len; in bsg_transport_fill_hdr() 43 job->request = memdup_user(uptr64(hdr->request), hdr->request_len); in bsg_transport_fill_hdr() 47 if (hdr->dout_xfer_len && hdr->din_xfer_len) { in bsg_transport_fill_hdr() 55 uptr64(hdr->din_xferp), hdr->din_xfer_len, in bsg_transport_fill_hdr() 76 static int bsg_transport_complete_rq(struct request *rq, struct sg_io_v4 *hdr) in bsg_transport_complete_rq() argument 85 hdr->device_status = job->result & 0xff; in bsg_transport_complete_rq() [all …]
|
D | sed-opal.c | 338 struct opal_header *hdr = buffer; in opal_recv_check() local 343 hdr->cp.outstandingData, in opal_recv_check() 344 hdr->cp.minTransfer); in opal_recv_check() 346 if (hdr->cp.outstandingData == 0 || in opal_recv_check() 347 hdr->cp.minTransfer != 0) in opal_recv_check() 432 const struct d0_header *hdr = (struct d0_header *)dev->resp; in opal_discovery0_end() local 435 u32 hlen = be32_to_cpu(hdr->length); in opal_discovery0_end() 440 if (hlen > IO_BUFFER_LENGTH - sizeof(*hdr)) { in opal_discovery0_end() 442 sizeof(*hdr), hlen, IO_BUFFER_LENGTH); in opal_discovery0_end() 447 cpos += sizeof(*hdr); /* current position on buffer */ in opal_discovery0_end() [all …]
|