Searched refs:srp_cmd (Results 1 – 8 of 8) sorted by relevance
/drivers/scsi/ibmvscsi_tgt/ |
D | libsrp.c | 192 static int srp_indirect_data(struct ibmvscsis_cmd *cmd, struct srp_cmd *srp_cmd, in srp_indirect_data() argument 211 if ((dir == DMA_FROM_DEVICE && nmd == srp_cmd->data_in_desc_cnt) || in srp_indirect_data() 212 (dir == DMA_TO_DEVICE && nmd == srp_cmd->data_out_desc_cnt)) { in srp_indirect_data() 269 static int data_out_desc_size(struct srp_cmd *cmd) in data_out_desc_size() 295 int srp_transfer_data(struct ibmvscsis_cmd *cmd, struct srp_cmd *srp_cmd, in srp_transfer_data() argument 307 offset = srp_cmd->add_cdb_len & ~3; in srp_transfer_data() 309 dir = srp_cmd_direction(srp_cmd); in srp_transfer_data() 311 offset += data_out_desc_size(srp_cmd); in srp_transfer_data() 314 format = srp_cmd->buf_fmt >> 4; in srp_transfer_data() 316 format = srp_cmd->buf_fmt & ((1U << 4) - 1); in srp_transfer_data() [all …]
|
D | libsrp.h | 117 int srp_transfer_data(struct ibmvscsis_cmd *, struct srp_cmd *, 119 u64 srp_data_length(struct srp_cmd *cmd, enum dma_data_direction dir); 120 int srp_get_desc_table(struct srp_cmd *srp_cmd, enum dma_data_direction *dir, 122 static inline int srp_cmd_direction(struct srp_cmd *cmd) in srp_cmd_direction()
|
D | ibmvscsi_tgt.c | 2381 struct srp_cmd *srp; in ibmvscsis_srp_cmd() 2672 struct srp_cmd *srp = (struct srp_cmd *)iue->sbuf->buf; in ibmvscsis_parse_cmd() 3063 struct srp_cmd *srp = (struct srp_cmd *)iue->sbuf->buf; in ibmvscsis_fast_fail()
|
/drivers/scsi/ibmvscsi/ |
D | ibmvscsi.c | 604 struct srp_cmd *srp_cmd, in set_srp_direction() argument 619 srp_cmd->data_out_desc_cnt = numbuf; in set_srp_direction() 621 srp_cmd->data_in_desc_cnt = numbuf; in set_srp_direction() 625 srp_cmd->buf_fmt = fmt << 4; in set_srp_direction() 627 srp_cmd->buf_fmt = fmt; in set_srp_direction() 636 static void unmap_cmd_data(struct srp_cmd *cmd, in unmap_cmd_data() 680 struct srp_cmd *srp_cmd, struct device *dev) in map_sg_data() argument 686 (struct srp_direct_buf *) srp_cmd->add_data; in map_sg_data() 696 set_srp_direction(cmd, srp_cmd, sg_mapped); in map_sg_data() 754 struct srp_cmd *srp_cmd, struct device *dev) in map_data_for_srp_cmd() argument [all …]
|
/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.c | 974 static inline void *srpt_get_desc_buf(struct srp_cmd *srp_cmd) in srpt_get_desc_buf() argument 981 BUILD_BUG_ON(!__same_type(srp_cmd->add_data[0], (s8)0) && in srpt_get_desc_buf() 982 !__same_type(srp_cmd->add_data[0], (u8)0)); in srpt_get_desc_buf() 989 return srp_cmd->add_data + (srp_cmd->add_cdb_len & ~3); in srpt_get_desc_buf() 1013 struct srp_cmd *srp_cmd, enum dma_data_direction *dir, in srpt_get_desc_tbl() argument 1025 if (srp_cmd->buf_fmt & 0xf) in srpt_get_desc_tbl() 1028 else if (srp_cmd->buf_fmt >> 4) in srpt_get_desc_tbl() 1037 if (((srp_cmd->buf_fmt & 0xf) == SRP_DATA_DESC_DIRECT) || in srpt_get_desc_tbl() 1038 ((srp_cmd->buf_fmt >> 4) == SRP_DATA_DESC_DIRECT)) { in srpt_get_desc_tbl() 1039 struct srp_direct_buf *db = srpt_get_desc_buf(srp_cmd); in srpt_get_desc_tbl() [all …]
|
D | ib_srpt.h | 127 DEFAULT_MAX_REQ_SIZE_1 = sizeof(struct srp_cmd)/*48*/ +
|
/drivers/infiniband/ulp/srp/ |
D | ib_srp.h | 78 SRP_IMM_DATA_OFFSET = sizeof(struct srp_cmd) +
|
D | ib_srp.c | 1367 uint32_t max_iu_len = sizeof(struct srp_cmd) + SRP_MAX_ADD_CDB_LEN + in srp_max_it_iu_len() 1805 struct srp_cmd *cmd = req->cmd->buf; in srp_map_data() 1819 return sizeof(struct srp_cmd) + cmd->add_cdb_len; in srp_map_data() 1863 len = sizeof(struct srp_cmd) + cmd->add_cdb_len + in srp_map_data() 1943 len = sizeof(struct srp_cmd) + cmd->add_cdb_len + in srp_map_data() 2346 struct srp_cmd *cmd; in srp_queuecommand() 3791 target_host->max_cmd_len = sizeof ((struct srp_cmd *) (void *) 0L)->cdb; in srp_create_target() 4255 BUILD_BUG_ON(sizeof(struct srp_cmd) != 48); in srp_init_module()
|