Searched refs:mad (Results 1 - 18 of 18) sorted by relevance

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/infiniband/core/
H A Dagent.h49 extern int agent_send_response(struct ib_mad *mad, struct ib_grh *grh,
H A Duser_mad.c128 struct ib_user_mad mad; member in struct:ib_umad_packet
164 for (packet->mad.hdr.id = 0;
165 packet->mad.hdr.id < IB_UMAD_MAX_AGENTS;
166 packet->mad.hdr.id++)
167 if (agent == __get_agent(file, packet->mad.hdr.id)) {
201 packet->mad.hdr.status = ETIMEDOUT;
224 packet->mad.hdr.status = 0;
225 packet->mad.hdr.length = sizeof (struct ib_user_mad) +
227 packet->mad.hdr.qpn = cpu_to_be32(mad_recv_wc->wc->src_qp);
228 packet->mad
[all...]
H A Dsa_query.c515 static void init_mad(struct ib_sa_mad *mad, struct ib_mad_agent *agent) argument
519 memset(mad, 0, sizeof *mad);
521 mad->mad_hdr.base_version = IB_MGMT_BASE_VERSION;
522 mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM;
523 mad->mad_hdr.class_version = IB_SA_CLASS_VERSION;
526 mad->mad_hdr.tid =
577 struct ib_sa_mad *mad)
582 if (mad) {
586 mad
575 ib_sa_path_rec_callback(struct ib_sa_query *sa_query, int status, struct ib_sa_mad *mad) argument
637 struct ib_sa_mad *mad; local
694 ib_sa_service_rec_callback(struct ib_sa_query *sa_query, int status, struct ib_sa_mad *mad) argument
758 struct ib_sa_mad *mad; local
821 ib_sa_mcmember_rec_callback(struct ib_sa_query *sa_query, int status, struct ib_sa_mad *mad) argument
859 struct ib_sa_mad *mad; local
[all...]
H A Dmad.c63 struct ib_mad *mad);
65 struct ib_mad_private *mad);
169 int ib_response_mad(struct ib_mad *mad) argument
171 return ((mad->mad_hdr.method & IB_MGMT_METHOD_RESP) ||
172 (mad->mad_hdr.method == IB_MGMT_METHOD_TRAP_REPRESS) ||
173 ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_BM) &&
174 (mad->mad_hdr.attr_mod & IB_BM_ATTR_MOD_RESP)));
349 /* Add mad agent into port's agent list */
671 struct ib_smp *smp = mad_send_wr->send_buf.mad;
725 (struct ib_mad *)&mad_priv->mad);
1550 find_mad_agent(struct ib_mad_port_private *port_priv, struct ib_mad *mad) argument
1634 validate_mad(struct ib_mad *mad, u32 qp_num) argument
1741 struct ib_mad *mad; local
2506 ib_mad_post_receive_mads(struct ib_mad_qp_info *qp_info, struct ib_mad_private *mad) argument
[all...]
H A Dagent.c81 int agent_send_response(struct ib_mad *mad, struct ib_grh *grh, argument
114 memcpy(send_buf->mad, mad, sizeof *mad);
H A Dmad_rmpp.c112 struct ib_rmpp_mad *ack = msg->mad;
134 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class);
141 format_ack(msg, (struct ib_rmpp_mad *) recv_wc->recv_buf.mad, rmpp_recv);
160 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class);
183 rmpp_mad = msg->mad;
184 memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len);
200 struct ib_rmpp_mad *rmpp_mad = mad_send_wc->send_buf->mad;
218 rmpp_mad = msg->mad;
219 memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len);
303 mad_hdr = &mad_recv_wc->recv_buf.mad
[all...]
H A DMakefile14 ib_mad-y := mad.o smi.o agent.o mad_rmpp.o
H A Dmad_priv.h82 struct ib_mad mad; member in union:ib_mad_private::__anon4498
85 } mad; member in struct:ib_mad_private
H A Dcm.c1018 req_msg = (struct cm_req_msg *) cm_id_priv->msg->mad;
1059 rcv_msg = (struct cm_rej_msg *) mad_recv_wc->recv_buf.mad;
1060 rej_msg = (struct cm_rej_msg *) msg->mad;
1142 req_msg = (struct cm_req_msg *)work->mad_recv_wc->recv_buf.mad;
1267 cm_format_mra((struct cm_mra_msg *) msg->mad, cm_id_priv,
1273 cm_format_rej((struct cm_rej_msg *) msg->mad, cm_id_priv,
1298 req_msg = (struct cm_req_msg *)work->mad_recv_wc->recv_buf.mad;
1353 req_msg = (struct cm_req_msg *)work->mad_recv_wc->recv_buf.mad;
1480 rep_msg = (struct cm_rep_msg *) msg->mad;
1546 cm_format_rtu((struct cm_rtu_msg *) msg->mad, cm_id_pri
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/infiniband/hw/mlx4/
H A DMakefile3 mlx4_ib-y := ah.o cq.o doorbell.o mad.o main.o mr.o qp.o srq.o
H A Dmad.c150 static void smp_snoop(struct ib_device *ibdev, u8 port_num, struct ib_mad *mad) argument
154 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED ||
155 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) &&
156 mad->mad_hdr.method == IB_MGMT_METHOD_SET) {
157 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO) {
159 (struct ib_port_info *) ((struct ib_smp *) mad)->data;
176 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PKEY_TABLE) {
186 struct ib_mad *mad)
188 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED ||
189 mad
185 node_desc_override(struct ib_device *dev, struct ib_mad *mad) argument
198 forward_trap(struct mlx4_ib_dev *dev, u8 port_num, struct ib_mad *mad) argument
[all...]
H A Dmain.c59 static void init_query_mad(struct ib_smp *mad) argument
61 mad->base_version = 1;
62 mad->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED;
63 mad->class_version = 1;
64 mad->method = IB_MGMT_METHOD_GET;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/infiniband/hw/mthca/
H A Dmthca_mad.c109 struct ib_mad *mad)
113 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED ||
114 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) &&
115 mad->mad_hdr.method == IB_MGMT_METHOD_SET) {
116 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO) {
118 (struct ib_port_info *) ((struct ib_smp *) mad)->data;
136 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PKEY_TABLE) {
146 struct ib_mad *mad)
148 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED ||
149 mad
107 smp_snoop(struct ib_device *ibdev, u8 port_num, struct ib_mad *mad) argument
145 node_desc_override(struct ib_device *dev, struct ib_mad *mad) argument
158 forward_trap(struct mthca_dev *dev, u8 port_num, struct ib_mad *mad) argument
[all...]
H A Dmthca_provider.c49 static void init_query_mad(struct ib_smp *mad) argument
51 mad->base_version = 1;
52 mad->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED;
53 mad->class_version = 1;
54 mad->method = IB_MGMT_METHOD_GET;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/ibmvscsi/
H A Dviosrp.h129 union mad_iu mad; member in union:viosrp_iu
H A Dibmvstgt.c431 switch (iu->mad.empty_iu.common.type) {
437 iu->mad.error_log.common.status = 1;
438 send_iu(iue, sizeof(iu->mad.error_log), VIOSRP_MAD_FORMAT);
441 info = &iu->mad.adapter_info;
447 conf = &iu->mad.host_config;
H A Dibmvscsi.c742 evt_struct->iu.mad.adapter_info.buffer,
743 evt_struct->iu.mad.adapter_info.common.length,
746 if (evt_struct->xfer_iu->mad.adapter_info.common.status) {
748 evt_struct->xfer_iu->mad.adapter_info.common.status);
775 * send_mad_adapter_info: - Sends the mad adapter info request
801 req = &evt_struct->iu.mad.adapter_info;
1331 host_config = &evt_struct->iu.mad.host_config;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/rdma/
H A Dib_mad.h216 * @mad: References an allocated MAD data buffer for MADs that do not have
236 void *mad; member in struct:ib_mad_send_buf
252 int ib_response_mad(struct ib_mad *mad);
380 * @mad: References the start of the received MAD.
385 struct ib_mad *mad; member in struct:ib_mad_recv_buf

Completed in 98 milliseconds