Searched refs:sreq (Results 1 – 1 of 1) sorted by relevance
69 struct scsi_request *sreq = scsi_req(rq); in bsg_scsi_fill_hdr() local76 sreq->cmd_len = hdr->request_len; in bsg_scsi_fill_hdr()77 if (sreq->cmd_len > BLK_MAX_CDB) { in bsg_scsi_fill_hdr()78 sreq->cmd = kzalloc(sreq->cmd_len, GFP_KERNEL); in bsg_scsi_fill_hdr()79 if (!sreq->cmd) in bsg_scsi_fill_hdr()83 if (copy_from_user(sreq->cmd, uptr64(hdr->request), sreq->cmd_len)) in bsg_scsi_fill_hdr()85 if (blk_verify_command(sreq->cmd, mode)) in bsg_scsi_fill_hdr()92 struct scsi_request *sreq = scsi_req(rq); in bsg_scsi_complete_rq() local98 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 …]