• Home
  • Raw
  • Download

Lines Matching refs:scsi_req

401 skd_prep_rw_cdb(struct skd_scsi_request *scsi_req,  in skd_prep_rw_cdb()  argument
406 scsi_req->cdb[0] = READ_10; in skd_prep_rw_cdb()
408 scsi_req->cdb[0] = WRITE_10; in skd_prep_rw_cdb()
410 scsi_req->cdb[1] = 0; in skd_prep_rw_cdb()
411 scsi_req->cdb[2] = (lba & 0xff000000) >> 24; in skd_prep_rw_cdb()
412 scsi_req->cdb[3] = (lba & 0xff0000) >> 16; in skd_prep_rw_cdb()
413 scsi_req->cdb[4] = (lba & 0xff00) >> 8; in skd_prep_rw_cdb()
414 scsi_req->cdb[5] = (lba & 0xff); in skd_prep_rw_cdb()
415 scsi_req->cdb[6] = 0; in skd_prep_rw_cdb()
416 scsi_req->cdb[7] = (count & 0xff00) >> 8; in skd_prep_rw_cdb()
417 scsi_req->cdb[8] = count & 0xff; in skd_prep_rw_cdb()
418 scsi_req->cdb[9] = 0; in skd_prep_rw_cdb()
422 skd_prep_zerosize_flush_cdb(struct skd_scsi_request *scsi_req, in skd_prep_zerosize_flush_cdb() argument
427 scsi_req->cdb[0] = SYNCHRONIZE_CACHE; in skd_prep_zerosize_flush_cdb()
428 scsi_req->cdb[1] = 0; in skd_prep_zerosize_flush_cdb()
429 scsi_req->cdb[2] = 0; in skd_prep_zerosize_flush_cdb()
430 scsi_req->cdb[3] = 0; in skd_prep_zerosize_flush_cdb()
431 scsi_req->cdb[4] = 0; in skd_prep_zerosize_flush_cdb()
432 scsi_req->cdb[5] = 0; in skd_prep_zerosize_flush_cdb()
433 scsi_req->cdb[6] = 0; in skd_prep_zerosize_flush_cdb()
434 scsi_req->cdb[7] = 0; in skd_prep_zerosize_flush_cdb()
435 scsi_req->cdb[8] = 0; in skd_prep_zerosize_flush_cdb()
436 scsi_req->cdb[9] = 0; in skd_prep_zerosize_flush_cdb()
487 struct skd_scsi_request *scsi_req; in skd_mq_queue_rq() local
555 scsi_req = &skmsg->msg_buf->scsi[fmh->num_protocol_cmds_coalesced]; in skd_mq_queue_rq()
556 memset(scsi_req, 0, sizeof(*scsi_req)); in skd_mq_queue_rq()
558 scsi_req->hdr.tag = skreq->id; in skd_mq_queue_rq()
559 scsi_req->hdr.sg_list_dma_address = in skd_mq_queue_rq()
563 skd_prep_zerosize_flush_cdb(scsi_req, skreq); in skd_mq_queue_rq()
566 skd_prep_rw_cdb(scsi_req, data_dir, lba, count); in skd_mq_queue_rq()
570 scsi_req->cdb[1] |= SKD_FUA_NV; in skd_mq_queue_rq()
572 scsi_req->hdr.sg_list_len_bytes = cpu_to_be32(skreq->sg_byte_count); in skd_mq_queue_rq()