/drivers/infiniband/hw/mlx4/ |
D | cm.c | 75 static void set_local_comm_id(struct ib_mad *mad, u32 cm_id) in set_local_comm_id() argument 77 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in set_local_comm_id() 79 (struct cm_sidr_generic_msg *)mad; in set_local_comm_id() 81 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in set_local_comm_id() 85 struct cm_generic_msg *msg = (struct cm_generic_msg *)mad; in set_local_comm_id() 90 static u32 get_local_comm_id(struct ib_mad *mad) in get_local_comm_id() argument 92 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in get_local_comm_id() 94 (struct cm_sidr_generic_msg *)mad; in get_local_comm_id() 96 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in get_local_comm_id() 100 struct cm_generic_msg *msg = (struct cm_generic_msg *)mad; in get_local_comm_id() [all …]
|
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() argument 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() 259 memcpy(&mad, sa_mad, sizeof mad); in send_join_to_wire() 265 mad.mad_hdr.tid = mlx4_ib_get_new_demux_tid(group->demux); in send_join_to_wire() 266 group->last_req_tid = mad.mad_hdr.tid; /* keep it for later validation */ in send_join_to_wire() 268 ret = send_mad_to_wire(group->demux, (struct ib_mad *)&mad); in send_join_to_wire() [all …]
|
D | mad.c | 79 struct ib_mad mad; member 85 struct ib_mad mad; member 216 static void smp_snoop(struct ib_device *ibdev, u8 port_num, const struct ib_mad *mad, in smp_snoop() argument 227 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in smp_snoop() 228 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in smp_snoop() 229 mad->mad_hdr.method == IB_MGMT_METHOD_SET) in smp_snoop() 230 switch (mad->mad_hdr.attr_id) { in smp_snoop() 232 pinfo = (struct ib_port_info *) ((struct ib_smp *) mad)->data; in smp_snoop() 256 bn = be32_to_cpu(((struct ib_smp *)mad)->attr_mod) & 0xFFFF; in smp_snoop() 257 base = (__be16 *) &(((struct ib_smp *)mad)->data[0]); in smp_snoop() [all …]
|
D | mlx4_ib.h | 802 struct ib_sa_mad *mad); 814 struct ib_grh *grh, struct ib_mad *mad); 819 u16 vlan_id, struct ib_mad *mad); 824 struct ib_mad *mad); 827 struct ib_mad *mad);
|
D | Makefile | 3 mlx4_ib-y := ah.o cq.o doorbell.o mad.o main.o mr.o qp.o srq.o mcg.o cm.o alias_GUID.o sysfs.o
|
/drivers/infiniband/hw/mthca/ |
D | mthca_mad.c | 107 const struct ib_mad *mad, in smp_snoop() argument 112 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in smp_snoop() 113 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in smp_snoop() 114 mad->mad_hdr.method == IB_MGMT_METHOD_SET) { in smp_snoop() 115 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO) { in smp_snoop() 117 (struct ib_port_info *) ((struct ib_smp *) mad)->data; in smp_snoop() 139 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PKEY_TABLE) { in smp_snoop() 149 struct ib_mad *mad) in node_desc_override() argument 151 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in node_desc_override() 152 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in node_desc_override() [all …]
|
D | mthca_provider.c | 52 static void init_query_mad(struct ib_smp *mad) in init_query_mad() argument 54 mad->base_version = 1; in init_query_mad() 55 mad->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED; in init_query_mad() 56 mad->class_version = 1; in init_query_mad() 57 mad->method = IB_MGMT_METHOD_GET; in init_query_mad()
|
/drivers/infiniband/core/ |
D | sa_query.c | 435 struct ib_sa_mad *mad = query->mad_buf->mad; in ib_nl_set_path_rec_attrs() local 436 ib_sa_comp_mask comp_mask = mad->sa_hdr.comp_mask; in ib_nl_set_path_rec_attrs() 521 struct ib_sa_mad *mad; in ib_nl_send_msg() local 524 mad = query->mad_buf->mad; in ib_nl_send_msg() 525 len = ib_nl_get_path_rec_attrs_len(mad->sa_hdr.comp_mask); in ib_nl_send_msg() 619 struct ib_sa_mad *mad = NULL; in ib_nl_process_good_resolve_rsp() local 649 mad = query->mad_buf->mad; in ib_nl_process_good_resolve_rsp() 650 mad->mad_hdr.method |= in ib_nl_process_good_resolve_rsp() 652 memcpy(mad->data, rec->path_rec, in ib_nl_process_good_resolve_rsp() 659 query->callback(query, status, mad); in ib_nl_process_good_resolve_rsp() [all …]
|
D | user_mad.c | 126 struct ib_user_mad mad; member 171 for (packet->mad.hdr.id = 0; in queue_packet() 172 packet->mad.hdr.id < IB_UMAD_MAX_AGENTS; in queue_packet() 173 packet->mad.hdr.id++) in queue_packet() 174 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet() 206 packet->mad.hdr.status = ETIMEDOUT; in send_handler() 229 packet->mad.hdr.status = 0; in recv_handler() 230 packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len; in recv_handler() 231 packet->mad.hdr.qpn = cpu_to_be32(mad_recv_wc->wc->src_qp); in recv_handler() 232 packet->mad.hdr.lid = cpu_to_be16(mad_recv_wc->wc->slid); in recv_handler() [all …]
|
D | mad_rmpp.c | 119 struct ib_rmpp_mad *ack = msg->mad; in format_ack() 141 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in ack_recv() 149 format_ack(msg, (struct ib_rmpp_mad *) recv_wc->recv_buf.mad, rmpp_recv); in ack_recv() 168 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in alloc_response_msg() 194 rmpp_mad = msg->mad; in ack_ds_ack() 195 memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len); in ack_ds_ack() 227 rmpp_mad = msg->mad; in nack_recv() 228 memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len); in nack_recv() 316 mad_hdr = &mad_recv_wc->recv_buf.mad->mad_hdr; in create_rmpp_recv() 335 struct ib_mad_hdr *mad_hdr = &mad_recv_wc->recv_buf.mad->mad_hdr; in find_rmpp_recv() [all …]
|
D | mad.c | 76 const struct ib_mad_hdr *mad); 78 struct ib_mad_private *mad); 745 struct ib_smp *smp = mad_send_wr->send_buf.mad; in handle_outgoing_dr_smp() 848 (struct ib_mad_hdr *)mad_priv->mad, in handle_outgoing_dr_smp() 853 if (ib_response_mad((const struct ib_mad_hdr *)mad_priv->mad) && in handle_outgoing_dr_smp() 873 memcpy(mad_priv->mad, smp, mad_priv->mad_size); in handle_outgoing_dr_smp() 875 (const struct ib_mad_hdr *)mad_priv->mad); in handle_outgoing_dr_smp() 939 struct ib_rmpp_mad *rmpp_mad = send_buf->mad; in alloc_send_rmpp_list() 1024 mad_send_wr->send_buf.mad = buf; in ib_create_send_mad() 1122 return mad_send_wr->send_buf.mad + in ib_get_payload() [all …]
|
D | cm.c | 1287 req_msg = (struct cm_req_msg *) cm_id_priv->msg->mad; in ib_send_cm_req() 1328 rcv_msg = (struct cm_rej_msg *) mad_recv_wc->recv_buf.mad; in cm_issue_rej() 1329 rej_msg = (struct cm_rej_msg *) msg->mad; in cm_issue_rej() 1431 req_msg = (struct cm_req_msg *)work->mad_recv_wc->recv_buf.mad; in cm_format_req_event() 1558 cm_format_mra((struct cm_mra_msg *) msg->mad, cm_id_priv, in cm_dup_req_handler() 1564 cm_format_rej((struct cm_rej_msg *) msg->mad, cm_id_priv, in cm_dup_req_handler() 1588 req_msg = (struct cm_req_msg *)work->mad_recv_wc->recv_buf.mad; in cm_match_req() 1670 req_msg = (struct cm_req_msg *)work->mad_recv_wc->recv_buf.mad; in cm_req_handler() 1811 rep_msg = (struct cm_rep_msg *) msg->mad; in ib_send_cm_rep() 1877 cm_format_rtu((struct cm_rtu_msg *) msg->mad, cm_id_priv, in ib_send_cm_rtu() [all …]
|
D | Makefile | 17 ib_mad-y := mad.o smi.o agent.o mad_rmpp.o
|
D | mad_priv.h | 81 u8 mad[0]; member
|
D | agent.c | 122 memcpy(send_buf->mad, mad_hdr, resp_mad_len); in agent_send_response()
|
/drivers/scsi/ibmvscsi/ |
D | ibmvfc.c | 157 struct ibmvfc_mad_common *mad = &evt->iu.mad_common; in ibmvfc_trc_start() local 175 entry->op_code = be32_to_cpu(mad->opcode); in ibmvfc_trc_start() 191 struct ibmvfc_mad_common *mad = &evt->xfer_iu->mad_common; in ibmvfc_trc_end() local 212 entry->op_code = be32_to_cpu(mad->opcode); in ibmvfc_trc_end() 213 entry->u.end.status = be16_to_cpu(mad->status); in ibmvfc_trc_end() 1819 struct ibmvfc_passthru_mad *mad; in ibmvfc_bsg_request() local 1894 mad = &evt->iu.passthru; in ibmvfc_bsg_request() 1896 memset(mad, 0, sizeof(*mad)); in ibmvfc_bsg_request() 1897 mad->common.version = cpu_to_be32(1); in ibmvfc_bsg_request() 1898 mad->common.opcode = cpu_to_be32(IBMVFC_PASSTHRU); in ibmvfc_bsg_request() [all …]
|
D | ibmvscsi.c | 1233 if (evt_struct->xfer_iu->mad.capabilities.common.status) { in capabilities_rsp() 1235 evt_struct->xfer_iu->mad.capabilities.common.status); in capabilities_rsp() 1272 req = &evt_struct->iu.mad.capabilities; in send_mad_capabilities() 1330 u16 status = be16_to_cpu(evt_struct->xfer_iu->mad.fast_fail.common.status); in fast_fail_rsp() 1365 fast_fail_mad = &evt_struct->iu.mad.fast_fail; in enable_fast_fail() 1387 if (evt_struct->xfer_iu->mad.adapter_info.common.status) { in adapter_info_rsp() 1389 evt_struct->xfer_iu->mad.adapter_info.common.status); in adapter_info_rsp() 1444 req = &evt_struct->iu.mad.adapter_info; in send_mad_adapter_info() 1883 host_config = &evt_struct->iu.mad.host_config; in ibmvscsi_do_host_config()
|
D | viosrp.h | 205 union mad_iu mad; member
|
/drivers/infiniband/hw/mlx5/ |
D | mlx5_ib.h | 640 static inline void init_query_mad(struct ib_smp *mad) in init_query_mad() argument 642 mad->base_version = 1; in init_query_mad() 643 mad->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED; in init_query_mad() 644 mad->class_version = 1; in init_query_mad() 645 mad->method = IB_MGMT_METHOD_GET; in init_query_mad()
|
D | Makefile | 3 mlx5_ib-y := main.o cq.o doorbell.o qp.o mem.o srq.o mr.o ah.o mad.o
|
/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.c | 277 static void srpt_get_class_port_info(struct ib_dm_mad *mad) in srpt_get_class_port_info() argument 281 cif = (struct ib_class_port_info *)mad->data; in srpt_get_class_port_info() 287 mad->mad_hdr.status = 0; in srpt_get_class_port_info() 296 static void srpt_get_iou(struct ib_dm_mad *mad) in srpt_get_iou() argument 302 ioui = (struct ib_dm_iou_info *)mad->data; in srpt_get_iou() 311 mad->mad_hdr.status = 0; in srpt_get_iou() 322 struct ib_dm_mad *mad) in srpt_get_ioc() argument 327 iocp = (struct ib_dm_ioc_profile *)mad->data; in srpt_get_ioc() 330 mad->mad_hdr.status in srpt_get_ioc() 336 mad->mad_hdr.status in srpt_get_ioc() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | Makefile | 5 mad.o transobj.o vport.o
|
/drivers/staging/rdma/hfi1/ |
D | Makefile | 11 init.o intr.o keys.o mad.o mmap.o mr.o pcie.o pio.o pio_copy.o \
|
D | mad.c | 119 smp = send_buf->mad; in send_trap() 197 static void bad_mkey(struct hfi1_ibport *ibp, struct ib_mad_hdr *mad, in bad_mkey() argument 211 data.details.ntc_256.method = mad->method; in bad_mkey() 212 data.details.ntc_256.attr_id = mad->attr_id; in bad_mkey() 213 data.details.ntc_256.attr_mod = mad->attr_mod; in bad_mkey() 215 if (mad->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in bad_mkey() 401 static int check_mkey(struct hfi1_ibport *ibp, struct ib_mad_hdr *mad, in check_mkey() argument 422 (mad->method == IB_MGMT_METHOD_GET || in check_mkey() 423 mad->method == IB_MGMT_METHOD_SET || in check_mkey() 424 mad->method == IB_MGMT_METHOD_TRAP_REPRESS)) in check_mkey() [all …]
|
/drivers/ata/ |
D | sata_inic162x.c | 222 __le32 mad; /* Physical Memory Address */ member 465 prd->mad = cpu_to_le32(sg_dma_address(sg)); in inic_fill_sg() 521 prd->mad = cpu_to_le32(pp->pkt_dma + in inic_qc_prep()
|