Home
last modified time | relevance | path

Searched refs:attr_id (Results 1 – 25 of 30) sorted by relevance

12

/drivers/net/ethernet/intel/fm10k/
Dfm10k_tlv.h115 #define fm10k_tlv_attr_put_u8(msg, attr_id, val) \ argument
116 fm10k_tlv_attr_put_value(msg, attr_id, val, 1)
117 #define fm10k_tlv_attr_put_u16(msg, attr_id, val) \ argument
118 fm10k_tlv_attr_put_value(msg, attr_id, val, 2)
119 #define fm10k_tlv_attr_put_u32(msg, attr_id, val) \ argument
120 fm10k_tlv_attr_put_value(msg, attr_id, val, 4)
121 #define fm10k_tlv_attr_put_u64(msg, attr_id, val) \ argument
122 fm10k_tlv_attr_put_value(msg, attr_id, val, 8)
123 #define fm10k_tlv_attr_put_s8(msg, attr_id, val) \ argument
124 fm10k_tlv_attr_put_value(msg, attr_id, val, 1)
[all …]
Dfm10k_tlv.c51 s32 fm10k_tlv_attr_put_null_string(u32 *msg, u16 attr_id, in fm10k_tlv_attr_put_null_string() argument
83 attr[0] = len | attr_id; in fm10k_tlv_attr_put_null_string()
128 s32 fm10k_tlv_attr_put_mac_vlan(u32 *msg, u16 attr_id, in fm10k_tlv_attr_put_mac_vlan() argument
141 attr[0] = len | attr_id; in fm10k_tlv_attr_put_mac_vlan()
188 s32 fm10k_tlv_attr_put_bool(u32 *msg, u16 attr_id) in fm10k_tlv_attr_put_bool() argument
195 msg[FM10K_TLV_DWORD_LEN(*msg)] = attr_id; in fm10k_tlv_attr_put_bool()
214 s32 fm10k_tlv_attr_put_value(u32 *msg, u16 attr_id, s64 value, u32 len) in fm10k_tlv_attr_put_value() argument
234 attr[0] = len | attr_id; in fm10k_tlv_attr_put_value()
286 s32 fm10k_tlv_attr_put_le_struct(u32 *msg, u16 attr_id, in fm10k_tlv_attr_put_le_struct() argument
305 attr[0] = len | attr_id; in fm10k_tlv_attr_put_le_struct()
[all …]
/drivers/infiniband/hw/mlx4/
Dcm.c77 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in set_local_comm_id()
81 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in set_local_comm_id()
92 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in get_local_comm_id()
96 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in get_local_comm_id()
107 if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in set_remote_comm_id()
111 } else if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in set_remote_comm_id()
122 if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in get_remote_comm_id()
126 } else if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in get_remote_comm_id()
327 if (mad->mad_hdr.attr_id == CM_REQ_ATTR_ID || in mlx4_ib_multiplex_cm_handler()
328 mad->mad_hdr.attr_id == CM_REP_ATTR_ID || in mlx4_ib_multiplex_cm_handler()
[all …]
Dmad.c230 switch (mad->mad_hdr.attr_id) { in smp_snoop()
345 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { in node_desc_override()
391 switch (be16_to_cpu(sa_mad->mad_hdr.attr_id)) { in mlx4_ib_demux_sa_handler()
741 be16_to_cpu(in_mad->mad_hdr.attr_id)); in ib_process_mad()
769 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) in ib_process_mad()
784 in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && in ib_process_mad()
893 in_mad->mad_hdr.attr_id == IB_PMA_PORT_COUNTERS) in mlx4_ib_process_mad()
1031 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in handle_slaves_guid_change()
1193 switch (be16_to_cpu(sa_mad->mad_hdr.attr_id)) { in mlx4_ib_multiplex_sa_handler()
Dmain.c395 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx4_ib_query_device()
531 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in ib_link_query_port()
583 in_mad->attr_id = MLX4_ATTR_EXTENDED_PORT_INFO; in ib_link_query_port()
707 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in __mlx4_ib_query_gid()
729 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in __mlx4_ib_query_gid()
784 in_mad->attr_id = IB_SMP_ATTR_PKEY_TABLE; in __mlx4_ib_query_pkey()
1867 in_mad->attr_id = IB_SMP_ATTR_NODE_DESC; in init_node_data()
1877 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in init_node_data()
Dmcg.c294 mad.mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); in send_leave_to_wire()
335 mad.mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); in send_reply_to_slave()
/drivers/infiniband/hw/mlx5/
Dmad.c89 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) in mlx5_ib_process_mad()
133 in_mad->attr_id = MLX5_ATTR_EXTENDED_PORT_INFO; in mlx5_query_ext_port_caps()
160 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx5_query_mad_ifc_smp_attr_node_info()
247 in_mad->attr_id = IB_SMP_ATTR_NODE_DESC; in mlx5_query_mad_ifc_node_desc()
272 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx5_query_mad_ifc_node_guid()
298 in_mad->attr_id = IB_SMP_ATTR_PKEY_TABLE; in mlx5_query_mad_ifc_pkey()
327 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mlx5_query_mad_ifc_gids()
338 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in mlx5_query_mad_ifc_gids()
377 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mlx5_query_mad_ifc_port()
425 in_mad->attr_id = MLX5_ATTR_EXTENDED_PORT_INFO; in mlx5_query_mad_ifc_port()
/drivers/infiniband/hw/mthca/
Dmthca_mad.c115 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO) { in smp_snoop()
139 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PKEY_TABLE) { in smp_snoop()
154 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { in node_desc_override()
240 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO || in mthca_process_mad()
241 ((in_mad->mad_hdr.attr_id & IB_SMP_ATTR_VENDOR_MASK) == in mthca_process_mad()
255 in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && in mthca_process_mad()
Dmthca_provider.c81 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mthca_query_device()
152 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mthca_query_port()
245 in_mad->attr_id = IB_SMP_ATTR_PKEY_TABLE; in mthca_query_pkey()
274 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mthca_query_gid()
285 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in mthca_query_gid()
1229 in_mad->attr_id = IB_SMP_ATTR_NODE_DESC; in mthca_init_node_data()
1238 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mthca_init_node_data()
/drivers/scsi/osd/
Dosd_initiator.c237 attr->attr_id = cpu_to_be32(oa->attr_id); in _osd_req_alist_elem_encode()
244 attr->attr_id = cpu_to_be32(oa->attr_id); in _osd_req_alist_elem_encode()
266 oa->attr_id = be32_to_cpu(attr->attr_id); in _osd_req_alist_elem_decode()
286 oa->attr_id = be32_to_cpu(attr->attr_id); in _osd_req_alist_elem_decode()
1280 attrid->attr_id = cpu_to_be32(oa->attr_id); in osd_req_add_get_attr_list()
1363 oa->attr_id = 0; in osd_req_decode_get_attr_list()
1449 cdbh->attrs_page.set_attr_id = cpu_to_be32(set_one_attr->attr_id); in osd_req_add_get_attr_page()
1855 u32 attr_id = be32_to_cpu(pattr->attr_id); in osd_req_decode_sense_full() local
1859 osi->attr.attr_id = attr_id; in osd_req_decode_sense_full()
1864 bad_attr_list->attr_id = attr_id; in osd_req_decode_sense_full()
[all …]
/drivers/staging/rdma/hfi1/
Dmad.c126 smp->attr_id = IB_SMP_ATTR_NOTICE; in send_trap()
212 data.details.ntc_256.attr_id = mad->attr_id; in bad_mkey()
2073 __be16 attr_id; member
3496 static int subn_get_opa_sma(__be16 attr_id, struct opa_smp *smp, u32 am, in subn_get_opa_sma() argument
3503 switch (attr_id) { in subn_get_opa_sma()
3586 static int subn_set_opa_sma(__be16 attr_id, struct opa_smp *smp, u32 am, in subn_set_opa_sma() argument
3593 switch (attr_id) { in subn_set_opa_sma()
3695 (void) subn_get_opa_sma(agg->attr_id, smp, am, agg->data, in subn_get_opa_aggregate()
3739 (void) subn_set_opa_sma(agg->attr_id, smp, am, agg->data, in subn_set_opa_aggregate()
3853 __be16 attr_id; in process_subn_opa() local
[all …]
/drivers/infiniband/hw/qib/
Dqib_mad.c98 smp->attr_id = IB_SMP_ATTR_NOTICE; in qib_send_trap()
183 data.details.ntc_256.attr_id = smp->attr_id; in qib_bad_mkey()
1884 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && in process_subn()
1896 switch (smp->attr_id) { in process_subn()
1936 switch (smp->attr_id) { in process_subn()
1970 if (smp->attr_id == IB_SMP_ATTR_NOTICE) in process_subn()
1992 smp->attr_id == QIB_VENDOR_IPG) { in process_subn()
2025 switch (pmp->mad_hdr.attr_id) { in process_perf()
2054 switch (pmp->mad_hdr.attr_id) { in process_perf()
2324 switch (ccp->attr_id) { in process_cc()
[all …]
Dqib_mad.h127 __be16 attr_id; member
/drivers/block/
Dosdblk.c189 (cur_attr.attr_id == attr->attr_id)) { in extract_attr_from_req()
/drivers/block/mtip32xx/
Dmtip32xx.h175 u8 attr_id; member
/drivers/staging/rdma/ehca/
Dehca_sqp.c171 out_perf->mad_hdr.attr_id = IB_PMA_CLASS_PORT_INFO; in ehca_process_perf()
/drivers/net/wireless/iwlwifi/mvm/
Ddebugfs.c1047 u32 filter_id, attr_id, mask, value; in iwl_dbgfs_bcast_filters_write() local
1058 for (attr_id = 0; attr_id < ARRAY_SIZE(filter.attrs); in iwl_dbgfs_bcast_filters_write()
1059 attr_id++) { in iwl_dbgfs_bcast_filters_write()
1061 &filter.attrs[attr_id]; in iwl_dbgfs_bcast_filters_write()
/drivers/staging/rdma/ipath/
Dipath_mad.c1309 switch (smp->attr_id) { in process_subn()
1343 switch (smp->attr_id) { in process_subn()
1407 switch (pmp->mad_hdr.attr_id) { in process_perf()
1437 switch (pmp->mad_hdr.attr_id) { in process_perf()
/drivers/staging/rtl8723au/core/
Drtw_ieee80211.c631 u16 attr_id = get_unaligned_be16(attr_ptr); in rtw_get_wps_attr23a() local
636 if (attr_id == target_attr_id) { in rtw_get_wps_attr23a()
/drivers/infiniband/core/
Dsa_query.c1240 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_PATH_REC); in ib_sa_path_rec_get()
1365 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_SERVICE_REC); in ib_sa_service_rec_query()
1457 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); in ib_sa_mcmember_rec_query()
1555 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_GUID_INFO_REC); in ib_sa_guid_info_rec_query()
Dcm.c1114 __be16 attr_id, __be64 tid) in cm_format_mad_hdr() argument
1120 hdr->attr_id = attr_id; in cm_format_mad_hdr()
3368 msg->mad)->attr_id) - CM_ATTR_ID_OFFSET; in cm_send_handler()
3569 u16 attr_id; in cm_recv_handler() local
3573 switch (mad_recv_wc->recv_buf.mad->mad_hdr.attr_id) { in cm_recv_handler()
3615 attr_id = be16_to_cpu(mad_recv_wc->recv_buf.mad->mad_hdr.attr_id); in cm_recv_handler()
3617 counter[attr_id - CM_ATTR_ID_OFFSET]); in cm_recv_handler()
/drivers/staging/rtl8188eu/core/
Drtw_ieee80211.c811 u16 attr_id = get_unaligned_be16(attr_ptr); in rtw_get_wps_attr() local
815 if (attr_id == target_attr_id) { in rtw_get_wps_attr()
/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c923 if (smp->attr_id == IB_SMP_ATTR_PKEY_TABLE) { in mlx4_MAD_IFC_wrapper()
945 if (smp->attr_id == IB_SMP_ATTR_PORT_INFO) { in mlx4_MAD_IFC_wrapper()
962 if (smp->attr_id == IB_SMP_ATTR_GUID_INFO) { in mlx4_MAD_IFC_wrapper()
992 if (smp->attr_id == IB_SMP_ATTR_NODE_INFO) { in mlx4_MAD_IFC_wrapper()
1015 be16_to_cpu(smp->attr_id)); in mlx4_MAD_IFC_wrapper()
Dport.c1364 inmad->attr_id = cpu_to_be16(0xFF60); /* Module Info */ in mlx4_get_module_id()
1482 inmad->attr_id = cpu_to_be16(0xFF60); /* Module Info */ in mlx4_get_module_info()
/drivers/infiniband/ulp/srpt/
Dib_srpt.c411 u16 attr_id; in srpt_mgmt_method_get() local
415 attr_id = be16_to_cpu(rq_mad->mad_hdr.attr_id); in srpt_mgmt_method_get()
416 switch (attr_id) { in srpt_mgmt_method_get()

12