Searched defs:mad (Results 1 - 16 of 16) sorted by relevance

/drivers/infiniband/core/
H A Dagent.c81 void agent_send_response(struct ib_mad *mad, struct ib_grh *grh, argument
117 memcpy(send_buf->mad, mad, sizeof *mad);
H A Dmad_priv.h80 struct ib_mad mad; member in union:ib_mad_private::__anon1420
83 } mad; member in struct:ib_mad_private
H A Dsa_query.c603 static void init_mad(struct ib_sa_mad *mad, struct ib_mad_agent *agent) argument
607 memset(mad, 0, sizeof *mad);
609 mad->mad_hdr.base_version = IB_MGMT_BASE_VERSION;
610 mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM;
611 mad->mad_hdr.class_version = IB_SA_CLASS_VERSION;
614 mad->mad_hdr.tid =
670 struct ib_sa_mad *mad)
675 if (mad) {
679 mad
668 ib_sa_path_rec_callback(struct ib_sa_query *sa_query, int status, struct ib_sa_mad *mad) argument
733 struct ib_sa_mad *mad; local
786 ib_sa_service_rec_callback(struct ib_sa_query *sa_query, int status, struct ib_sa_mad *mad) argument
850 struct ib_sa_mad *mad; local
909 ib_sa_mcmember_rec_callback(struct ib_sa_query *sa_query, int status, struct ib_sa_mad *mad) argument
947 struct ib_sa_mad *mad; local
1001 ib_sa_guidinfo_rec_callback(struct ib_sa_query *sa_query, int status, struct ib_sa_mad *mad) argument
1038 struct ib_sa_mad *mad; local
[all...]
H A Duser_mad.c126 struct ib_user_mad mad; member in struct:ib_umad_packet
171 for (packet->mad.hdr.id = 0;
172 packet->mad.hdr.id < IB_UMAD_MAX_AGENTS;
173 packet->mad.hdr.id++)
174 if (agent == __get_agent(file, packet->mad.hdr.id)) {
206 packet->mad.hdr.status = ETIMEDOUT;
229 packet->mad.hdr.status = 0;
230 packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len;
231 packet->mad.hdr.qpn = cpu_to_be32(mad_recv_wc->wc->src_qp);
232 packet->mad
[all...]
H A Dmad.c76 struct ib_mad *mad);
78 struct ib_mad_private *mad);
182 int ib_response_mad(struct ib_mad *mad) argument
184 return ((mad->mad_hdr.method & IB_MGMT_METHOD_RESP) ||
185 (mad->mad_hdr.method == IB_MGMT_METHOD_TRAP_REPRESS) ||
186 ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_BM) &&
187 (mad->mad_hdr.attr_mod & IB_BM_ATTR_MOD_RESP)));
422 /* Add mad agent into port's agent list */
729 struct ib_smp *smp = mad_send_wr->send_buf.mad;
790 (struct ib_mad *)&mad_priv->mad);
1624 find_mad_agent(struct ib_mad_port_private *port_priv, struct ib_mad *mad) argument
1711 validate_mad(struct ib_mad *mad, u32 qp_num) argument
1818 struct ib_mad *mad; local
2641 ib_mad_post_receive_mads(struct ib_mad_qp_info *qp_info, struct ib_mad_private *mad) argument
[all...]
/drivers/infiniband/hw/mthca/
H A Dmthca_mad.c107 struct ib_mad *mad,
112 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED ||
113 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) &&
114 mad->mad_hdr.method == IB_MGMT_METHOD_SET) {
115 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO) {
117 (struct ib_port_info *) ((struct ib_smp *) mad)->data;
139 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PKEY_TABLE) {
149 struct ib_mad *mad)
151 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED ||
152 mad
105 smp_snoop(struct ib_device *ibdev, u8 port_num, struct ib_mad *mad, u16 prev_lid) argument
148 node_desc_override(struct ib_device *dev, struct ib_mad *mad) argument
161 forward_trap(struct mthca_dev *dev, u8 port_num, struct ib_mad *mad) argument
[all...]
H A Dmthca_provider.c52 static void init_query_mad(struct ib_smp *mad) argument
54 mad->base_version = 1;
55 mad->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED;
56 mad->class_version = 1;
57 mad->method = IB_MGMT_METHOD_GET;
/drivers/infiniband/hw/mlx4/
H A Dcm.c75 static void set_local_comm_id(struct ib_mad *mad, u32 cm_id) argument
77 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) {
79 (struct cm_sidr_generic_msg *)mad;
81 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) {
85 struct cm_generic_msg *msg = (struct cm_generic_msg *)mad;
90 static u32 get_local_comm_id(struct ib_mad *mad) argument
92 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) {
94 (struct cm_sidr_generic_msg *)mad;
96 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) {
100 struct cm_generic_msg *msg = (struct cm_generic_msg *)mad;
105 set_remote_comm_id(struct ib_mad *mad, u32 cm_id) argument
120 get_remote_comm_id(struct ib_mad *mad) argument
135 gid_from_req_msg(struct ib_device *ibdev, struct ib_mad *mad) argument
317 mlx4_ib_multiplex_cm_handler(struct ib_device *ibdev, int port, int slave_id, struct ib_mad *mad) argument
358 mlx4_ib_demux_cm_handler(struct ib_device *ibdev, int port, int *slave, struct ib_mad *mad) argument
[all...]
H A Dmad.c79 struct ib_mad mad; member in struct:mlx4_tunnel_mad
85 struct ib_mad mad; member in struct:mlx4_rcv_tunnel_mad
215 static void smp_snoop(struct ib_device *ibdev, u8 port_num, struct ib_mad *mad, argument
226 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED ||
227 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) &&
228 mad->mad_hdr.method == IB_MGMT_METHOD_SET)
229 switch (mad->mad_hdr.attr_id) {
231 pinfo = (struct ib_port_info *) ((struct ib_smp *) mad)->data;
255 bn = be32_to_cpu(((struct ib_smp *)mad)->attr_mod) & 0xFFFF;
256 base = (__be16 *) &(((struct ib_smp *)mad)
336 node_desc_override(struct ib_device *dev, struct ib_mad *mad) argument
351 forward_trap(struct mlx4_ib_dev *dev, u8 port_num, struct ib_mad *mad) argument
453 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) argument
601 mlx4_ib_demux_mad(struct ib_device *ibdev, u8 port, struct ib_wc *wc, struct ib_grh *grh, struct ib_mad *mad) argument
1154 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 ib_ah_attr *attr, u8 *s_mac, struct ib_mad *mad) argument
1671 struct ib_mad *mad; local
[all...]
H A Dmain.c88 static void init_query_mad(struct ib_smp *mad) argument
90 mad->base_version = 1;
91 mad->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED;
92 mad->class_version = 1;
93 mad->method = IB_MGMT_METHOD_GET;
H A Dmcg.c205 static int send_mad_to_wire(struct mlx4_ib_demux_ctx *ctx, struct ib_mad *mad) argument
220 &ah_attr, NULL, mad);
224 struct ib_mad *mad)
244 return mlx4_ib_send_to_slave(dev, slave, ctx->port, IB_QPT_GSI, &wc, NULL, mad);
249 struct ib_sa_mad mad; local
250 struct ib_sa_mcmember_data *sa_mad_data = (struct ib_sa_mcmember_data *)&mad.data;
253 /* we rely on a mad request as arrived from a VF */
254 memcpy(&mad, sa_mad, sizeof mad);
260 mad
223 send_mad_to_slave(int slave, struct mlx4_ib_demux_ctx *ctx, struct ib_mad *mad) argument
276 struct ib_sa_mad mad; local
316 struct ib_sa_mad mad; local
881 mlx4_ib_mcg_demux_handler(struct ib_device *ibdev, int port, int slave, struct ib_sa_mad *mad) argument
1155 struct ib_sa_mad *mad = &req->sa_mad; local
[all...]
/drivers/scsi/ibmvscsi/
H A Dviosrp.h205 union mad_iu mad; member in union:viosrp_iu
H A Dibmvfc.c157 struct ibmvfc_mad_common *mad = &evt->iu.mad_common; local
175 entry->op_code = be32_to_cpu(mad->opcode);
191 struct ibmvfc_mad_common *mad = &evt->xfer_iu->mad_common; local
212 entry->op_code = be32_to_cpu(mad->opcode);
213 entry->u.end.status = be16_to_cpu(mad->status);
1831 struct ibmvfc_passthru_mad *mad; local
1906 mad = &evt->iu.passthru;
1908 memset(mad, 0, sizeof(*mad));
1909 mad
3577 struct ibmvfc_implicit_logout *mad; local
3613 ibmvfc_adisc_needs_plogi(struct ibmvfc_passthru_mad *mad, struct ibmvfc_target *tgt) argument
3636 struct ibmvfc_passthru_mad *mad = &evt->xfer_iu->passthru; local
3677 struct ibmvfc_passthru_mad *mad = &evt->iu.passthru; local
3785 struct ibmvfc_passthru_mad *mad; local
4027 struct ibmvfc_discover_targets *mad; local
4138 struct ibmvfc_npiv_login_mad *mad; local
4201 struct ibmvfc_npiv_logout_mad *mad; local
[all...]
/drivers/ata/
H A Dsata_inic162x.c222 __le32 mad; /* Physical Memory Address */ member in struct:inic_prd
465 prd->mad = cpu_to_le32(sg_dma_address(sg));
521 prd->mad = cpu_to_le32(pp->pkt_dma +
/drivers/infiniband/hw/mlx5/
H A Dmlx5_ib.h547 static inline void init_query_mad(struct ib_smp *mad) argument
549 mad->base_version = 1;
550 mad->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED;
551 mad->class_version = 1;
552 mad->method = IB_MGMT_METHOD_GET;
/drivers/infiniband/ulp/srpt/
H A Dib_srpt.c281 static void srpt_get_class_port_info(struct ib_dm_mad *mad) argument
285 cif = (struct ib_class_port_info *)mad->data;
291 mad->mad_hdr.status = 0;
300 static void srpt_get_iou(struct ib_dm_mad *mad) argument
306 ioui = (struct ib_dm_iou_info *)mad->data;
315 mad->mad_hdr.status = 0;
326 struct ib_dm_mad *mad)
331 iocp = (struct ib_dm_ioc_profile *)mad->data;
334 mad->mad_hdr.status
340 mad
325 srpt_get_ioc(struct srpt_port *sport, u32 slot, struct ib_dm_mad *mad) argument
375 srpt_get_svc_entries(u64 ioc_guid, u16 slot, u8 hi, u8 lo, struct ib_dm_mad *mad) argument
[all...]

Completed in 1230 milliseconds