/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/ |
H A D | cm.c | 84 static void set_local_comm_id(struct ib_mad *mad, u32 cm_id) in set_local_comm_id() argument 86 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in set_local_comm_id() 88 (struct cm_sidr_generic_msg *)mad; in set_local_comm_id() 90 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in set_local_comm_id() 94 struct cm_generic_msg *msg = (struct cm_generic_msg *)mad; in set_local_comm_id() 99 static u32 get_local_comm_id(struct ib_mad *mad) in get_local_comm_id() argument 101 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in get_local_comm_id() 103 (struct cm_sidr_generic_msg *)mad; in get_local_comm_id() 105 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in get_local_comm_id() 109 struct cm_generic_msg *msg = (struct cm_generic_msg *)mad; in get_local_comm_id() 114 set_remote_comm_id(struct ib_mad *mad, u32 cm_id) set_remote_comm_id() argument 129 get_remote_comm_id(struct ib_mad *mad) get_remote_comm_id() argument 144 gid_from_req_msg(struct ib_device *ibdev, struct ib_mad *mad) gid_from_req_msg() argument 301 mlx4_ib_multiplex_cm_handler(struct ib_device *ibdev, int port, int slave_id, struct ib_mad *mad) mlx4_ib_multiplex_cm_handler() argument 425 mlx4_ib_demux_cm_handler(struct ib_device *ibdev, int port, int *slave, struct ib_mad *mad) mlx4_ib_demux_cm_handler() argument [all...] |
H A D | mcg.c | 209 static int send_mad_to_wire(struct mlx4_ib_demux_ctx *ctx, struct ib_mad *mad) in send_mad_to_wire() argument 225 &ah_attr, NULL, 0xffff, mad); in send_mad_to_wire() 229 struct ib_mad *mad) in send_mad_to_slave() 249 return mlx4_ib_send_to_slave(dev, slave, ctx->port, IB_QPT_GSI, &wc, NULL, mad); in send_mad_to_slave() 254 struct ib_sa_mad mad; in send_join_to_wire() local 255 struct ib_sa_mcmember_data *sa_mad_data = (struct ib_sa_mcmember_data *)&mad.data; in send_join_to_wire() 258 /* we rely on a mad request as arrived from a VF */ in send_join_to_wire() 259 memcpy(&mad, sa_mad, sizeof mad); in send_join_to_wire() 265 mad in send_join_to_wire() 228 send_mad_to_slave(int slave, struct mlx4_ib_demux_ctx *ctx, struct ib_mad *mad) send_mad_to_slave() argument 281 struct ib_sa_mad mad; send_leave_to_wire() local 321 struct ib_sa_mad mad; send_reply_to_slave() local 882 mlx4_ib_mcg_demux_handler(struct ib_device *ibdev, int port, int slave, struct ib_sa_mad *mad) mlx4_ib_mcg_demux_handler() argument 1157 struct ib_sa_mad *mad = &req->sa_mad; build_leave_mad() local [all...] |
H A D | mad.c | 82 struct ib_mad mad; member 88 struct ib_mad mad; member 220 static void smp_snoop(struct ib_device *ibdev, u8 port_num, const struct ib_mad *mad, in smp_snoop() argument 231 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in smp_snoop() 232 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in smp_snoop() 233 mad->mad_hdr.method == IB_MGMT_METHOD_SET) in smp_snoop() 234 switch (mad->mad_hdr.attr_id) { in smp_snoop() 238 pinfo = (struct ib_port_info *) ((struct ib_smp *) mad)->data; in smp_snoop() 264 bn = be32_to_cpu(((struct ib_smp *)mad)->attr_mod) & 0xFFFF; in smp_snoop() 265 base = (__be16 *) &(((struct ib_smp *)mad) in smp_snoop() 367 node_desc_override(struct ib_device *dev, struct ib_mad *mad) node_desc_override() argument 383 forward_trap(struct mlx4_ib_dev *dev, u8 port_num, const struct ib_mad *mad) forward_trap() argument 510 mlx4_ib_send_to_slave(struct mlx4_ib_dev *dev, int slave, u8 port, enum ib_qp_type dest_qpt, struct ib_wc *wc, struct ib_grh *grh, struct ib_mad *mad) mlx4_ib_send_to_slave() argument 681 mlx4_ib_demux_mad(struct ib_device *ibdev, u8 port, struct ib_wc *wc, struct ib_grh *grh, struct ib_mad *mad) mlx4_ib_demux_mad() argument 1354 mlx4_ib_send_to_wire(struct mlx4_ib_dev *dev, int slave, u8 port, enum ib_qp_type dest_qpt, u16 pkey_index, u32 remote_qpn, u32 qkey, struct rdma_ah_attr *attr, u8 *s_mac, u16 vlan_id, struct ib_mad *mad) mlx4_ib_send_to_wire() argument 1901 struct ib_mad *mad; mlx4_ib_sqp_comp_worker() local [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/mlx4/ |
H A D | cm.c | 85 static void set_local_comm_id(struct ib_mad *mad, u32 cm_id) in set_local_comm_id() argument 87 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in set_local_comm_id() 89 (struct cm_sidr_generic_msg *)mad; in set_local_comm_id() 91 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in set_local_comm_id() 95 struct cm_generic_msg *msg = (struct cm_generic_msg *)mad; in set_local_comm_id() 100 static u32 get_local_comm_id(struct ib_mad *mad) in get_local_comm_id() argument 102 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in get_local_comm_id() 104 (struct cm_sidr_generic_msg *)mad; in get_local_comm_id() 106 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in get_local_comm_id() 110 struct cm_generic_msg *msg = (struct cm_generic_msg *)mad; in get_local_comm_id() 115 set_remote_comm_id(struct ib_mad *mad, u32 cm_id) set_remote_comm_id() argument 130 get_remote_comm_id(struct ib_mad *mad) get_remote_comm_id() argument 145 gid_from_req_msg(struct ib_device *ibdev, struct ib_mad *mad) gid_from_req_msg() argument 302 mlx4_ib_multiplex_cm_handler(struct ib_device *ibdev, int port, int slave_id, struct ib_mad *mad) mlx4_ib_multiplex_cm_handler() argument 426 mlx4_ib_demux_cm_handler(struct ib_device *ibdev, int port, int *slave, struct ib_mad *mad) mlx4_ib_demux_cm_handler() argument [all...] |
H A D | mcg.c | 209 static int send_mad_to_wire(struct mlx4_ib_demux_ctx *ctx, struct ib_mad *mad) in send_mad_to_wire() argument 225 &ah_attr, NULL, 0xffff, mad); in send_mad_to_wire() 229 struct ib_mad *mad) in send_mad_to_slave() 249 return mlx4_ib_send_to_slave(dev, slave, ctx->port, IB_QPT_GSI, &wc, NULL, mad); in send_mad_to_slave() 254 struct ib_sa_mad mad; in send_join_to_wire() local 255 struct ib_sa_mcmember_data *sa_mad_data = (struct ib_sa_mcmember_data *)&mad.data; in send_join_to_wire() 258 /* we rely on a mad request as arrived from a VF */ in send_join_to_wire() 259 memcpy(&mad, sa_mad, sizeof mad); in send_join_to_wire() 265 mad in send_join_to_wire() 228 send_mad_to_slave(int slave, struct mlx4_ib_demux_ctx *ctx, struct ib_mad *mad) send_mad_to_slave() argument 281 struct ib_sa_mad mad; send_leave_to_wire() local 321 struct ib_sa_mad mad; send_reply_to_slave() local 882 mlx4_ib_mcg_demux_handler(struct ib_device *ibdev, int port, int slave, struct ib_sa_mad *mad) mlx4_ib_mcg_demux_handler() argument 1167 struct ib_sa_mad *mad = &req->sa_mad; build_leave_mad() local [all...] |
H A D | mad.c | 82 struct ib_mad mad; member 88 struct ib_mad mad; member 221 const struct ib_mad *mad, u16 prev_lid) in smp_snoop() 231 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in smp_snoop() 232 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in smp_snoop() 233 mad->mad_hdr.method == IB_MGMT_METHOD_SET) in smp_snoop() 234 switch (mad->mad_hdr.attr_id) { in smp_snoop() 238 pinfo = (struct ib_port_info *) ((struct ib_smp *) mad)->data; in smp_snoop() 264 bn = be32_to_cpu(((struct ib_smp *)mad)->attr_mod) & 0xFFFF; in smp_snoop() 265 base = (__be16 *) &(((struct ib_smp *)mad) in smp_snoop() 220 smp_snoop(struct ib_device *ibdev, u32 port_num, const struct ib_mad *mad, u16 prev_lid) smp_snoop() argument 367 node_desc_override(struct ib_device *dev, struct ib_mad *mad) node_desc_override() argument 383 forward_trap(struct mlx4_ib_dev *dev, u32 port_num, const struct ib_mad *mad) forward_trap() argument 511 mlx4_ib_send_to_slave(struct mlx4_ib_dev *dev, int slave, u32 port, enum ib_qp_type dest_qpt, struct ib_wc *wc, struct ib_grh *grh, struct ib_mad *mad) mlx4_ib_send_to_slave() argument 682 mlx4_ib_demux_mad(struct ib_device *ibdev, u32 port, struct ib_wc *wc, struct ib_grh *grh, struct ib_mad *mad) mlx4_ib_demux_mad() argument 1356 mlx4_ib_send_to_wire(struct mlx4_ib_dev *dev, int slave, u32 port, enum ib_qp_type dest_qpt, u16 pkey_index, u32 remote_qpn, u32 qkey, struct rdma_ah_attr *attr, u8 *s_mac, u16 vlan_id, struct ib_mad *mad) mlx4_ib_send_to_wire() argument 1904 struct ib_mad *mad; mlx4_ib_sqp_comp_worker() local [all...] |
/kernel/linux/linux-6.6/drivers/iio/adc/ |
H A D | mt6360-adc.c | 66 static int mt6360_adc_read_channel(struct mt6360_adc_data *mad, int channel, int *val) in mt6360_adc_read_channel() argument 74 mutex_lock(&mad->adc_lock); in mt6360_adc_read_channel() 77 ret = regmap_update_bits(mad->regmap, MT6360_REG_PMUADCRPT1, MT6360_PREFERCH_MASK, in mt6360_adc_read_channel() 83 ret = regmap_raw_write(mad->regmap, MT6360_REG_PMUADCCFG, &adc_enable, sizeof(adc_enable)); in mt6360_adc_read_channel() 87 predict_end_t = ktime_add_ms(mad->last_off_timestamps[channel], 2 * ADC_WAIT_TIME_MS); in mt6360_adc_read_channel() 101 ret = regmap_raw_read(mad->regmap, MT6360_REG_PMUADCRPT1, rpt, sizeof(rpt)); in mt6360_adc_read_channel() 133 regmap_raw_write(mad->regmap, MT6360_REG_PMUADCCFG, &adc_enable, sizeof(adc_enable)); in mt6360_adc_read_channel() 134 mad->last_off_timestamps[channel] = ktime_get(); in mt6360_adc_read_channel() 136 regmap_update_bits(mad->regmap, MT6360_REG_PMUADCRPT1, MT6360_PREFERCH_MASK, in mt6360_adc_read_channel() 139 mutex_unlock(&mad in mt6360_adc_read_channel() 144 mt6360_adc_read_scale(struct mt6360_adc_data *mad, int channel, int *val, int *val2) mt6360_adc_read_scale() argument 188 mt6360_adc_read_offset(struct mt6360_adc_data *mad, int channel, int *val) mt6360_adc_read_offset() argument 197 struct mt6360_adc_data *mad = iio_priv(iio_dev); mt6360_adc_read_raw() local 263 struct mt6360_adc_data *mad = iio_priv(indio_dev); mt6360_adc_trigger_handler() local 314 struct mt6360_adc_data *mad; mt6360_adc_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/ |
H A D | mthca_mad.c | 109 const struct ib_mad *mad, in smp_snoop() 114 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in smp_snoop() 115 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in smp_snoop() 116 mad->mad_hdr.method == IB_MGMT_METHOD_SET) { in smp_snoop() 117 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO) { in smp_snoop() 119 (struct ib_port_info *) ((struct ib_smp *) mad)->data; in smp_snoop() 141 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PKEY_TABLE) { in smp_snoop() 151 struct ib_mad *mad) in node_desc_override() 153 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in node_desc_override() 154 mad in node_desc_override() 107 smp_snoop(struct ib_device *ibdev, u8 port_num, const struct ib_mad *mad, u16 prev_lid) smp_snoop() argument 150 node_desc_override(struct ib_device *dev, struct ib_mad *mad) node_desc_override() argument 164 forward_trap(struct mthca_dev *dev, u8 port_num, const struct ib_mad *mad) forward_trap() argument [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/mthca/ |
H A D | mthca_mad.c | 109 const struct ib_mad *mad, in smp_snoop() 114 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in smp_snoop() 115 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in smp_snoop() 116 mad->mad_hdr.method == IB_MGMT_METHOD_SET) { in smp_snoop() 117 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO) { in smp_snoop() 119 (struct ib_port_info *) ((struct ib_smp *) mad)->data; in smp_snoop() 141 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PKEY_TABLE) { in smp_snoop() 151 struct ib_mad *mad) in node_desc_override() 153 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in node_desc_override() 154 mad in node_desc_override() 107 smp_snoop(struct ib_device *ibdev, u8 port_num, const struct ib_mad *mad, u16 prev_lid) smp_snoop() argument 150 node_desc_override(struct ib_device *dev, struct ib_mad *mad) node_desc_override() argument 164 forward_trap(struct mthca_dev *dev, u32 port_num, const struct ib_mad *mad) forward_trap() argument [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
H A D | sa_query.c | 753 struct ib_sa_mad *mad = query->mad_buf->mad; in ib_nl_set_path_rec_attrs() local 754 ib_sa_comp_mask comp_mask = mad->sa_hdr.comp_mask; in ib_nl_set_path_rec_attrs() 838 struct ib_sa_mad *mad; in ib_nl_make_request() local 848 mad = query->mad_buf->mad; in ib_nl_make_request() 849 len = ib_nl_get_path_rec_attrs_len(mad->sa_hdr.comp_mask); in ib_nl_make_request() 924 struct ib_sa_mad *mad = NULL; in ib_nl_process_good_resolve_rsp() local 954 mad = query->mad_buf->mad; in ib_nl_process_good_resolve_rsp() 1340 struct ib_sa_mad *mad = query->mad_buf->mad; init_mad() local 1464 ib_sa_path_rec_callback(struct ib_sa_query *sa_query, int status, struct ib_sa_mad *mad) ib_sa_path_rec_callback() argument 1550 struct ib_sa_mad *mad; ib_sa_path_rec_get() local 1641 ib_sa_service_rec_callback(struct ib_sa_query *sa_query, int status, struct ib_sa_mad *mad) ib_sa_service_rec_callback() argument 1705 struct ib_sa_mad *mad; ib_sa_service_rec_query() local 1764 ib_sa_mcmember_rec_callback(struct ib_sa_query *sa_query, int status, struct ib_sa_mad *mad) ib_sa_mcmember_rec_callback() argument 1802 struct ib_sa_mad *mad; ib_sa_mcmember_rec_query() local 1856 ib_sa_guidinfo_rec_callback(struct ib_sa_query *sa_query, int status, struct ib_sa_mad *mad) ib_sa_guidinfo_rec_callback() argument 1893 struct ib_sa_mad *mad; ib_sa_guid_info_rec_query() local 1990 ib_sa_classport_info_rec_callback(struct ib_sa_query *sa_query, int status, struct ib_sa_mad *mad) ib_sa_classport_info_rec_callback() argument 2056 struct ib_sa_mad *mad; ib_sa_classport_info_rec_query() local [all...] |
H A D | user_mad.c | 131 struct ib_user_mad mad; member 191 for (packet->mad.hdr.id = 0; in queue_packet() 192 packet->mad.hdr.id < IB_UMAD_MAX_AGENTS; in queue_packet() 193 packet->mad.hdr.id++) in queue_packet() 194 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet() 226 packet->mad.hdr.status = ETIMEDOUT; in send_handler() 250 packet->mad.hdr.status = 0; in recv_handler() 251 packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len; in recv_handler() 252 packet->mad.hdr.qpn = cpu_to_be32(mad_recv_wc->wc->src_qp); in recv_handler() 258 packet->mad in recv_handler() [all...] |
H A D | mad_rmpp.c | 114 struct ib_rmpp_mad *ack = msg->mad; in format_ack() 136 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in ack_recv() 144 format_ack(msg, (struct ib_rmpp_mad *) recv_wc->recv_buf.mad, rmpp_recv); in ack_recv() 163 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in alloc_response_msg() 189 rmpp_mad = msg->mad; in ack_ds_ack() 190 memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len); in ack_ds_ack() 223 rmpp_mad = msg->mad; in nack_recv() 224 memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len); in nack_recv() 308 mad_hdr = &mad_recv_wc->recv_buf.mad->mad_hdr; in create_rmpp_recv() 327 struct ib_mad_hdr *mad_hdr = &mad_recv_wc->recv_buf.mad in find_rmpp_recv() [all...] |
H A D | mad.c | 101 const struct ib_mad_hdr *mad); 103 struct ib_mad_private *mad); 603 struct ib_smp *smp = mad_send_wr->send_buf.mad; in handle_outgoing_dr_smp() 708 (struct ib_mad *)mad_priv->mad, &mad_size, in handle_outgoing_dr_smp() 713 if (ib_response_mad((const struct ib_mad_hdr *)mad_priv->mad) && in handle_outgoing_dr_smp() 733 memcpy(mad_priv->mad, smp, mad_priv->mad_size); in handle_outgoing_dr_smp() 735 (const struct ib_mad_hdr *)mad_priv->mad); in handle_outgoing_dr_smp() 799 struct ib_rmpp_mad *rmpp_mad = send_buf->mad; in alloc_send_rmpp_list() 881 mad_send_wr->send_buf.mad = buf; in ib_create_send_mad() 981 return mad_send_wr->send_buf.mad in ib_get_payload() 2683 ib_mad_post_receive_mads(struct ib_mad_qp_info *qp_info, struct ib_mad_private *mad) ib_mad_post_receive_mads() argument [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | sa_query.c | 109 struct ib_sa_mad *mad); 703 struct ib_sa_mad *mad = query->mad_buf->mad; in ib_nl_set_path_rec_attrs() local 704 ib_sa_comp_mask comp_mask = mad->sa_hdr.comp_mask; in ib_nl_set_path_rec_attrs() 788 struct ib_sa_mad *mad; in ib_nl_make_request() local 798 mad = query->mad_buf->mad; in ib_nl_make_request() 799 len = ib_nl_get_path_rec_attrs_len(mad->sa_hdr.comp_mask); in ib_nl_make_request() 878 struct ib_sa_mad *mad = NULL; in ib_nl_process_good_resolve_rsp() local 887 mad in ib_nl_process_good_resolve_rsp() 1315 struct ib_sa_mad *mad = query->mad_buf->mad; init_mad() local 1446 ib_sa_path_rec_callback(struct ib_sa_query *sa_query, int status, struct ib_sa_mad *mad) ib_sa_path_rec_callback() argument 1531 struct ib_sa_mad *mad; ib_sa_path_rec_get() local 1621 ib_sa_mcmember_rec_callback(struct ib_sa_query *sa_query, int status, struct ib_sa_mad *mad) ib_sa_mcmember_rec_callback() argument 1658 struct ib_sa_mad *mad; ib_sa_mcmember_rec_query() local 1712 ib_sa_guidinfo_rec_callback(struct ib_sa_query *sa_query, int status, struct ib_sa_mad *mad) ib_sa_guidinfo_rec_callback() argument 1748 struct ib_sa_mad *mad; ib_sa_guid_info_rec_query() local 1821 ib_sa_classport_info_rec_callback(struct ib_sa_query *sa_query, int status, struct ib_sa_mad *mad) ib_sa_classport_info_rec_callback() argument 1886 struct ib_sa_mad *mad; ib_sa_classport_info_rec_query() local [all...] |
H A D | user_mad.c | 131 struct ib_user_mad mad; member 191 for (packet->mad.hdr.id = 0; in queue_packet() 192 packet->mad.hdr.id < IB_UMAD_MAX_AGENTS; in queue_packet() 193 packet->mad.hdr.id++) in queue_packet() 194 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet() 226 packet->mad.hdr.status = ETIMEDOUT; in send_handler() 250 packet->mad.hdr.status = 0; in recv_handler() 251 packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len; in recv_handler() 252 packet->mad.hdr.qpn = cpu_to_be32(mad_recv_wc->wc->src_qp); in recv_handler() 258 packet->mad in recv_handler() [all...] |
H A D | mad_rmpp.c | 114 struct ib_rmpp_mad *ack = msg->mad; in format_ack() 136 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in ack_recv() 144 format_ack(msg, (struct ib_rmpp_mad *) recv_wc->recv_buf.mad, rmpp_recv); in ack_recv() 163 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in alloc_response_msg() 189 rmpp_mad = msg->mad; in ack_ds_ack() 190 memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len); in ack_ds_ack() 223 rmpp_mad = msg->mad; in nack_recv() 224 memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len); in nack_recv() 308 mad_hdr = &mad_recv_wc->recv_buf.mad->mad_hdr; in create_rmpp_recv() 327 struct ib_mad_hdr *mad_hdr = &mad_recv_wc->recv_buf.mad in find_rmpp_recv() [all...] |
H A D | mad.c | 96 const struct ib_mad_hdr *mad); 98 struct ib_mad_private *mad); 597 struct ib_smp *smp = mad_send_wr->send_buf.mad; in handle_outgoing_dr_smp() 702 (struct ib_mad *)mad_priv->mad, &mad_size, in handle_outgoing_dr_smp() 706 if (ib_response_mad((const struct ib_mad_hdr *)mad_priv->mad) && in handle_outgoing_dr_smp() 726 memcpy(mad_priv->mad, smp, mad_priv->mad_size); in handle_outgoing_dr_smp() 728 (const struct ib_mad_hdr *)mad_priv->mad); in handle_outgoing_dr_smp() 792 struct ib_rmpp_mad *rmpp_mad = send_buf->mad; in alloc_send_rmpp_list() 873 mad_send_wr->send_buf.mad = buf; in ib_create_send_mad() 973 return mad_send_wr->send_buf.mad in ib_get_payload() 2668 ib_mad_post_receive_mads(struct ib_mad_qp_info *qp_info, struct ib_mad_private *mad) ib_mad_post_receive_mads() argument [all...] |
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | ib_mad.h | 68 ((struct ib_mad_hdr *)wr->send_buf.mad)->base_version; 70 ((struct ib_mad_hdr *)wr->send_buf.mad)->mgmt_class; 72 ((struct ib_mad_hdr *)wr->send_buf.mad)->class_version; 74 ((struct ib_mad_hdr *)wr->send_buf.mad)->method; 76 ((struct ib_mad_hdr *)wr->send_buf.mad)->status; 78 ((struct ib_mad_hdr *)wr->send_buf.mad)->class_specific; 79 __entry->tid = ((struct ib_mad_hdr *)wr->send_buf.mad)->tid; 81 ((struct ib_mad_hdr *)wr->send_buf.mad)->attr_id; 83 ((struct ib_mad_hdr *)wr->send_buf.mad)->attr_mod; 155 ((struct ib_mad_hdr *)wr->send_buf.mad) [all...] |
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | ib_mad.h | 67 ((struct ib_mad_hdr *)wr->send_buf.mad)->base_version; 69 ((struct ib_mad_hdr *)wr->send_buf.mad)->mgmt_class; 71 ((struct ib_mad_hdr *)wr->send_buf.mad)->class_version; 73 ((struct ib_mad_hdr *)wr->send_buf.mad)->method; 75 ((struct ib_mad_hdr *)wr->send_buf.mad)->status; 77 ((struct ib_mad_hdr *)wr->send_buf.mad)->class_specific; 78 __entry->tid = ((struct ib_mad_hdr *)wr->send_buf.mad)->tid; 80 ((struct ib_mad_hdr *)wr->send_buf.mad)->attr_id; 82 ((struct ib_mad_hdr *)wr->send_buf.mad)->attr_mod; 154 ((struct ib_mad_hdr *)wr->send_buf.mad) [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ibmvscsi/ |
H A D | ibmvfc.c | 151 struct ibmvfc_mad_common *mad = &evt->iu.mad_common; in ibmvfc_trc_start() local 169 entry->op_code = be32_to_cpu(mad->opcode); in ibmvfc_trc_start() 185 struct ibmvfc_mad_common *mad = &evt->xfer_iu->mad_common; in ibmvfc_trc_end() local 206 entry->op_code = be32_to_cpu(mad->opcode); in ibmvfc_trc_end() 207 entry->u.end.status = be16_to_cpu(mad->status); in ibmvfc_trc_end() 1871 struct ibmvfc_passthru_mad *mad; in ibmvfc_bsg_request() local 1950 mad = &evt->iu.passthru; in ibmvfc_bsg_request() 1952 memset(mad, 0, sizeof(*mad)); in ibmvfc_bsg_request() 1953 mad in ibmvfc_bsg_request() 3619 struct ibmvfc_implicit_logout *mad; __ibmvfc_tgt_get_implicit_logout_evt() local 3671 struct ibmvfc_passthru_mad *mad = &evt->xfer_iu->passthru; ibmvfc_tgt_implicit_logout_and_del_done() local 3821 ibmvfc_adisc_needs_plogi(struct ibmvfc_passthru_mad *mad, struct ibmvfc_target *tgt) ibmvfc_adisc_needs_plogi() argument 3842 struct ibmvfc_passthru_mad *mad = &evt->xfer_iu->passthru; ibmvfc_tgt_adisc_done() local 3883 struct ibmvfc_passthru_mad *mad = &evt->iu.passthru; ibmvfc_init_passthru() local 3992 struct ibmvfc_passthru_mad *mad; ibmvfc_tgt_adisc() local 4269 struct ibmvfc_discover_targets *mad; ibmvfc_discover_targets() local 4382 struct ibmvfc_npiv_login_mad *mad; ibmvfc_npiv_login() local 4445 struct ibmvfc_npiv_logout_mad *mad; ibmvfc_npiv_logout() local [all...] |
/kernel/linux/linux-6.6/include/rdma/ |
H A D | ib_smi.h | 149 * @mad: MAD to initialize. 151 static inline void ib_init_query_mad(struct ib_smp *mad) in ib_init_query_mad() argument 153 mad->base_version = IB_MGMT_BASE_VERSION; in ib_init_query_mad() 154 mad->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED; in ib_init_query_mad() 155 mad->class_version = 1; in ib_init_query_mad() 156 mad->method = IB_MGMT_METHOD_GET; in ib_init_query_mad()
|
/kernel/linux/linux-6.6/drivers/scsi/ibmvscsi/ |
H A D | ibmvfc.c | 216 struct ibmvfc_mad_common *mad = &evt->iu.mad_common; in ibmvfc_trc_start() local 236 entry->op_code = be32_to_cpu(mad->opcode); in ibmvfc_trc_start() 252 struct ibmvfc_mad_common *mad = &evt->xfer_iu->mad_common; in ibmvfc_trc_end() local 277 entry->op_code = be32_to_cpu(mad->opcode); in ibmvfc_trc_end() 278 entry->u.end.status = be16_to_cpu(mad->status); in ibmvfc_trc_end() 2157 struct ibmvfc_passthru_mad *mad; in ibmvfc_bsg_request() local 2241 mad = &evt->iu.passthru; in ibmvfc_bsg_request() 2243 memset(mad, 0, sizeof(*mad)); in ibmvfc_bsg_request() 2244 mad in ibmvfc_bsg_request() 4263 struct ibmvfc_implicit_logout *mad; __ibmvfc_tgt_get_implicit_logout_evt() local 4324 struct ibmvfc_passthru_mad *mad = &evt->xfer_iu->passthru; ibmvfc_tgt_implicit_logout_and_del_done() local 4481 ibmvfc_adisc_needs_plogi(struct ibmvfc_passthru_mad *mad, struct ibmvfc_target *tgt) ibmvfc_adisc_needs_plogi() argument 4502 struct ibmvfc_passthru_mad *mad = &evt->xfer_iu->passthru; ibmvfc_tgt_adisc_done() local 4543 struct ibmvfc_passthru_mad *mad = &evt->iu.passthru; ibmvfc_init_passthru() local 4665 struct ibmvfc_passthru_mad *mad; ibmvfc_tgt_adisc() local 4959 struct ibmvfc_discover_targets *mad; ibmvfc_discover_targets() local 5039 struct ibmvfc_channel_setup_mad *mad; ibmvfc_channel_setup() local 5113 struct ibmvfc_channel_enquiry *mad; ibmvfc_channel_enquiry() local 5241 struct ibmvfc_npiv_login_mad *mad; ibmvfc_npiv_login() local 5310 struct ibmvfc_npiv_logout_mad *mad; ibmvfc_npiv_logout() local [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ibmvscsi_tgt/ |
H A D | ibmvscsi_tgt.c | 1503 struct viosrp_adapter_info *mad = &vio_iu(iue)->mad.adapter_info; in ibmvscsis_adapter_info() local 1509 mad->common.status = cpu_to_be16(VIOSRP_MAD_SUCCESS); in ibmvscsis_adapter_info() 1511 if (be16_to_cpu(mad->common.length) > sizeof(*info)) { in ibmvscsis_adapter_info() 1512 mad->common.status = cpu_to_be16(VIOSRP_MAD_FAILED); in ibmvscsis_adapter_info() 1521 mad->common.status = cpu_to_be16(VIOSRP_MAD_FAILED); in ibmvscsis_adapter_info() 1526 rc = h_copy_rdma(be16_to_cpu(mad->common.length), in ibmvscsis_adapter_info() 1528 be64_to_cpu(mad->buffer), in ibmvscsis_adapter_info() 1539 be64_to_cpu(mad->buffer), vscsi->flags, flag_bits); in ibmvscsis_adapter_info() 1574 be64_to_cpu(mad in ibmvscsis_adapter_info() 1614 struct viosrp_capabilities *mad = &vio_iu(iue)->mad.capabilities; ibmvscsis_cap_mad() local 1728 struct mad_common *mad = (struct mad_common *)&vio_iu(iue)->mad; ibmvscsis_process_mad() local 1986 struct mad_common *mad = (struct mad_common *)&vio_iu(iue)->mad; ibmvscsis_send_mad_resp() local 2029 struct mad_common *mad; ibmvscsis_mad() local [all...] |
/kernel/linux/linux-6.6/drivers/scsi/ibmvscsi_tgt/ |
H A D | ibmvscsi_tgt.c | 1504 struct viosrp_adapter_info *mad = &vio_iu(iue)->mad.adapter_info; in ibmvscsis_adapter_info() local 1510 mad->common.status = cpu_to_be16(VIOSRP_MAD_SUCCESS); in ibmvscsis_adapter_info() 1512 if (be16_to_cpu(mad->common.length) > sizeof(*info)) { in ibmvscsis_adapter_info() 1513 mad->common.status = cpu_to_be16(VIOSRP_MAD_FAILED); in ibmvscsis_adapter_info() 1522 mad->common.status = cpu_to_be16(VIOSRP_MAD_FAILED); in ibmvscsis_adapter_info() 1527 rc = h_copy_rdma(be16_to_cpu(mad->common.length), in ibmvscsis_adapter_info() 1529 be64_to_cpu(mad->buffer), in ibmvscsis_adapter_info() 1540 be64_to_cpu(mad->buffer), vscsi->flags, flag_bits); in ibmvscsis_adapter_info() 1575 be64_to_cpu(mad in ibmvscsis_adapter_info() 1615 struct viosrp_capabilities *mad = &vio_iu(iue)->mad.capabilities; ibmvscsis_cap_mad() local 1729 struct mad_common *mad = (struct mad_common *)&vio_iu(iue)->mad; ibmvscsis_process_mad() local 1984 struct mad_common *mad = (struct mad_common *)&vio_iu(iue)->mad; ibmvscsis_send_mad_resp() local 2027 struct mad_common *mad; ibmvscsis_mad() local [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_vema.c | 95 * @mad_agent: pointer to mad agent for port 127 * vema_get_vport_num -- Get the vnic from the mad 128 * @recvd_mad: Received mad 138 * vema_get_vport_adapter -- Get vnic port adapter from recvd mad 139 * @recvd_mad: received mad 222 * @recvd_mad: pointer to the received mad 223 * @rsp_mad: pointer to respose mad 257 * @recvd_mad: pointer to the received mad 258 * @rsp_mad: pointer to respose mad 261 * and sets up the response mad dat [all...] |