Searched refs:srp_cmd (Results 1 – 10 of 10) sorted by relevance
/linux-6.6.21/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 | 2375 struct srp_cmd *srp; in ibmvscsis_srp_cmd() 2666 struct srp_cmd *srp = (struct srp_cmd *)iue->sbuf->buf; in ibmvscsis_parse_cmd() 3048 struct srp_cmd *srp = (struct srp_cmd *)iue->sbuf->buf; in ibmvscsis_fast_fail()
|
/linux-6.6.21/drivers/scsi/ibmvscsi/ |
D | ibmvscsi.c | 605 struct srp_cmd *srp_cmd, in set_srp_direction() argument 620 srp_cmd->data_out_desc_cnt = numbuf; in set_srp_direction() 622 srp_cmd->data_in_desc_cnt = numbuf; in set_srp_direction() 626 srp_cmd->buf_fmt = fmt << 4; in set_srp_direction() 628 srp_cmd->buf_fmt = fmt; in set_srp_direction() 637 static void unmap_cmd_data(struct srp_cmd *cmd, in unmap_cmd_data() 682 struct srp_cmd *srp_cmd, struct device *dev) in map_sg_data() argument 688 (struct srp_direct_buf *) srp_cmd->add_data; in map_sg_data() 698 set_srp_direction(cmd, srp_cmd, sg_mapped); in map_sg_data() 756 struct srp_cmd *srp_cmd, struct device *dev) in map_data_for_srp_cmd() argument [all …]
|
/linux-6.6.21/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.c | 981 static inline void *srpt_get_desc_buf(struct srp_cmd *srp_cmd) in srpt_get_desc_buf() argument 988 BUILD_BUG_ON(!__same_type(srp_cmd->add_data[0], (s8)0) && in srpt_get_desc_buf() 989 !__same_type(srp_cmd->add_data[0], (u8)0)); in srpt_get_desc_buf() 996 return srp_cmd->add_data + (srp_cmd->add_cdb_len & ~3); in srpt_get_desc_buf() 1020 struct srp_cmd *srp_cmd, enum dma_data_direction *dir, in srpt_get_desc_tbl() argument 1032 if (srp_cmd->buf_fmt & 0xf) in srpt_get_desc_tbl() 1035 else if (srp_cmd->buf_fmt >> 4) in srpt_get_desc_tbl() 1044 if (((srp_cmd->buf_fmt & 0xf) == SRP_DATA_DESC_DIRECT) || in srpt_get_desc_tbl() 1045 ((srp_cmd->buf_fmt >> 4) == SRP_DATA_DESC_DIRECT)) { in srpt_get_desc_tbl() 1046 struct srp_direct_buf *db = srpt_get_desc_buf(srp_cmd); in srpt_get_desc_tbl() [all …]
|
D | ib_srpt.h | 122 DEFAULT_MAX_REQ_SIZE_1 = sizeof(struct srp_cmd)/*48*/ +
|
/linux-6.6.21/include/scsi/ |
D | viosrp.h | 36 struct srp_cmd cmd;
|
D | srp.h | 224 struct srp_cmd { struct
|
/linux-6.6.21/drivers/infiniband/ulp/srp/ |
D | ib_srp.h | 74 SRP_IMM_DATA_OFFSET = sizeof(struct srp_cmd) +
|
D | ib_srp.c | 1306 uint32_t max_iu_len = sizeof(struct srp_cmd) + SRP_MAX_ADD_CDB_LEN + in srp_max_it_iu_len() 1625 struct srp_cmd *cmd = req->cmd->buf; in srp_map_data() 1639 return sizeof(struct srp_cmd) + cmd->add_cdb_len; in srp_map_data() 1683 len = sizeof(struct srp_cmd) + cmd->add_cdb_len + in srp_map_data() 1761 len = sizeof(struct srp_cmd) + cmd->add_cdb_len + in srp_map_data() 2158 struct srp_cmd *cmd; in srp_queuecommand() 3706 target_host->max_cmd_len = sizeof ((struct srp_cmd *) (void *) 0L)->cdb; in add_target_store() 4134 BUILD_BUG_ON(sizeof(struct srp_cmd) != 48); in srp_init_module()
|