| /drivers/net/ethernet/intel/fm10k/ |
| A D | fm10k_tlv.h | 96 #define fm10k_tlv_attr_put_u8(msg, attr_id, val) \ argument 97 fm10k_tlv_attr_put_value(msg, attr_id, val, 1) 98 #define fm10k_tlv_attr_put_u16(msg, attr_id, val) \ argument 99 fm10k_tlv_attr_put_value(msg, attr_id, val, 2) 101 fm10k_tlv_attr_put_value(msg, attr_id, val, 4) 103 fm10k_tlv_attr_put_value(msg, attr_id, val, 8) 104 #define fm10k_tlv_attr_put_s8(msg, attr_id, val) \ argument 105 fm10k_tlv_attr_put_value(msg, attr_id, val, 1) 107 fm10k_tlv_attr_put_value(msg, attr_id, val, 2) 109 fm10k_tlv_attr_put_value(msg, attr_id, val, 4) [all …]
|
| A D | fm10k_tlv.c | 66 attr[0] = len | attr_id; in fm10k_tlv_attr_put_null_string() 125 attr[0] = len | attr_id; in fm10k_tlv_attr_put_mac_vlan() 218 attr[0] = len | attr_id; in fm10k_tlv_attr_put_value() 289 attr[0] = len | attr_id; in fm10k_tlv_attr_put_le_struct() 350 attr[0] = attr_id; in fm10k_tlv_attr_nest_start() 409 while (tlv_attr->id < attr_id) in fm10k_tlv_attr_validate() 413 if (tlv_attr->id != attr_id) in fm10k_tlv_attr_validate() 474 u32 i, attr_id, offset = 0; in fm10k_tlv_attr_parse() local 504 attr_id = *attr & FM10K_TLV_ID_MASK; in fm10k_tlv_attr_parse() 506 if (attr_id >= FM10K_TLV_RESULTS_MAX) in fm10k_tlv_attr_parse() [all …]
|
| /drivers/net/ethernet/meta/fbnic/ |
| A D | fbnic_tlv.c | 67 hdr.type = attr_id; in fbnic_tlv_attr_put_flag() 109 hdr.type = attr_id; in fbnic_tlv_attr_put_value() 293 u16 attr_id) in fbnic_tlv_attr_nest_start() argument 305 hdr.type = attr_id; in fbnic_tlv_attr_nest_start() 345 u16 attr_id = attr->hdr.type; in fbnic_tlv_attr_validate() local 354 while (tlv_index->id != attr_id) { in fbnic_tlv_attr_validate() 429 u16 attr_id = attr->hdr.type; in fbnic_tlv_attr_parse_array() local 433 if (tlv_attr_id != attr_id) in fbnic_tlv_attr_parse_array() 480 u16 attr_id = attr->hdr.type; in fbnic_tlv_attr_parse() local 490 if (results[attr_id]) in fbnic_tlv_attr_parse() [all …]
|
| A D | fbnic_tlv.h | 122 int fbnic_tlv_attr_put_flag(struct fbnic_tlv_msg *msg, const u16 attr_id); 123 int fbnic_tlv_attr_put_value(struct fbnic_tlv_msg *msg, const u16 attr_id, 125 int __fbnic_tlv_attr_put_int(struct fbnic_tlv_msg *msg, const u16 attr_id, 127 #define fbnic_tlv_attr_put_int(msg, attr_id, value) \ argument 128 __fbnic_tlv_attr_put_int(msg, attr_id, value, \ 130 int fbnic_tlv_attr_put_mac_addr(struct fbnic_tlv_msg *msg, const u16 attr_id, 132 int fbnic_tlv_attr_put_string(struct fbnic_tlv_msg *msg, u16 attr_id, 135 u16 attr_id);
|
| /drivers/infiniband/hw/mlx4/ |
| A D | cm.c | 87 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in set_local_comm_id() 102 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in get_local_comm_id() 117 if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in set_remote_comm_id() 309 if (mad->mad_hdr.attr_id == CM_REQ_ATTR_ID || in mlx4_ib_multiplex_cm_handler() 310 mad->mad_hdr.attr_id == CM_REP_ATTR_ID || in mlx4_ib_multiplex_cm_handler() 311 mad->mad_hdr.attr_id == CM_MRA_ATTR_ID || in mlx4_ib_multiplex_cm_handler() 341 if (mad->mad_hdr.attr_id == CM_DREQ_ATTR_ID) in mlx4_ib_multiplex_cm_handler() 435 if (mad->mad_hdr.attr_id == CM_REQ_ATTR_ID || in mlx4_ib_demux_cm_handler() 463 if (mad->mad_hdr.attr_id == CM_REJ_ATTR_ID && in mlx4_ib_demux_cm_handler() 478 if (mad->mad_hdr.attr_id == CM_DREQ_ATTR_ID || in mlx4_ib_demux_cm_handler() [all …]
|
| A D | mad.c | 234 switch (mad->mad_hdr.attr_id) { in smp_snoop() 375 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { in node_desc_override() 423 switch (be16_to_cpu(sa_mad->mad_hdr.attr_id)) { in mlx4_ib_demux_sa_handler() 847 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) in ib_process_mad() 893 __be16 attr_id) in edit_counter() argument 895 switch (attr_id) { in edit_counter() 949 if (in_mad->mad_hdr.attr_id == IB_PMA_CLASS_PORT_INFO) in iboe_process_mad() 973 in_mad->mad_hdr.attr_id); in iboe_process_mad() 998 (in->mad_hdr.attr_id == IB_PMA_PORT_COUNTERS || in mlx4_ib_process_mad() 1153 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in handle_slaves_guid_change() [all …]
|
| A D | main.c | 472 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx4_ib_query_device() 670 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in ib_link_query_port() 722 in_mad->attr_id = MLX4_ATTR_EXTENDED_PORT_INFO; in ib_link_query_port() 849 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in __mlx4_ib_query_gid() 871 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in __mlx4_ib_query_gid() 918 in_mad->attr_id = IB_SMP_ATTR_SL_TO_VL_TABLE; in mlx4_ib_query_sl2vl() 972 in_mad->attr_id = IB_SMP_ATTR_PKEY_TABLE; in __mlx4_ib_query_pkey() 1988 in_mad->attr_id = IB_SMP_ATTR_NODE_DESC; in init_node_data() 1998 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in init_node_data()
|
| /drivers/infiniband/hw/mlx5/ |
| A D | mad.c | 237 if (in_mad->mad_hdr.attr_id == IB_PMA_CLASS_PORT_INFO) { in process_pma_cmd() 327 if (in->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) in mlx5_ib_process_mad() 376 in_mad->attr_id = MLX5_ATTR_EXTENDED_PORT_INFO; in mlx5_query_ext_port_caps() 403 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx5_query_mad_ifc_smp_attr_node_info() 490 in_mad->attr_id = IB_SMP_ATTR_NODE_DESC; in mlx5_query_mad_ifc_node_desc() 515 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx5_query_mad_ifc_node_guid() 541 in_mad->attr_id = IB_SMP_ATTR_PKEY_TABLE; in mlx5_query_mad_ifc_pkey() 570 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mlx5_query_mad_ifc_gids() 581 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in mlx5_query_mad_ifc_gids() 615 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mlx5_query_mad_ifc_port() [all …]
|
| /drivers/infiniband/hw/mthca/ |
| A D | mthca_mad.c | 117 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO) { in smp_snoop() 141 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PKEY_TABLE) { in smp_snoop() 156 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { in node_desc_override() 232 if (in->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO || in mthca_process_mad() 233 ((in->mad_hdr.attr_id & IB_SMP_ATTR_VENDOR_MASK) == in mthca_process_mad() 247 in->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && in mthca_process_mad()
|
| A D | mthca_provider.c | 74 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mthca_query_device() 136 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mthca_query_port() 230 in_mad->attr_id = IB_SMP_ATTR_PKEY_TABLE; in mthca_query_pkey() 259 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mthca_query_gid() 270 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in mthca_query_gid() 1007 in_mad->attr_id = IB_SMP_ATTR_NODE_DESC; in mthca_init_node_data() 1016 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mthca_init_node_data()
|
| /drivers/net/ethernet/mellanox/mlx5/core/ |
| A D | en_rep.h | 251 bool mlx5e_rep_has_offload_stats(const struct net_device *dev, int attr_id); 252 int mlx5e_rep_get_offload_stats(int attr_id, const struct net_device *dev, 276 int attr_id) { return false; } in mlx5e_rep_has_offload_stats() argument 277 static inline int mlx5e_rep_get_offload_stats(int attr_id, in mlx5e_rep_get_offload_stats() argument
|
| /drivers/infiniband/ulp/opa_vnic/ |
| A D | opa_vnic_vema.c | 457 u16 attr_id) in vema_get_mac_list() argument 478 if (attr_id == OPA_EM_ATTR_IFACE_MCAST_MACS) in vema_get_mac_list() 538 u16 attr_id = be16_to_cpu(recvd_mad->mad_hdr.attr_id); in vema_get() local 540 switch (attr_id) { in vema_get() 552 vema_get_mac_list(port, recvd_mad, rsp_mad, attr_id); in vema_get() 576 u16 attr_id = be16_to_cpu(recvd_mad->mad_hdr.attr_id); in vema_set() local 578 switch (attr_id) { in vema_set() 814 trap_mad->mad_hdr.attr_id = IB_SMP_ATTR_NOTICE; in opa_vnic_vema_send_trap()
|
| /drivers/gpu/drm/i915/gt/ |
| A D | intel_gt_sysfs.c | 62 static struct kobj_attribute attr_id = __ATTR_RO(id); variable 65 &attr_id.attr,
|
| /drivers/gpu/drm/amd/pm/inc/ |
| A D | amdgpu_pm.h | 86 enum amdgpu_device_attr_id attr_id; member 103 .attr_id = device_attr_id__##_name, \
|
| /drivers/net/ethernet/intel/ice/ |
| A D | ice_repr.c | 201 ice_repr_ndo_has_offload_stats(const struct net_device *dev, int attr_id) in ice_repr_ndo_has_offload_stats() argument 203 return attr_id == IFLA_OFFLOAD_XSTATS_CPU_HIT; in ice_repr_ndo_has_offload_stats() 207 ice_repr_ndo_get_offload_stats(int attr_id, const struct net_device *dev, in ice_repr_ndo_get_offload_stats() argument 210 if (attr_id == IFLA_OFFLOAD_XSTATS_CPU_HIT) in ice_repr_ndo_get_offload_stats()
|
| /drivers/net/ethernet/netronome/nfp/ |
| A D | nfp_net_repr.c | 113 nfp_repr_has_offload_stats(const struct net_device *dev, int attr_id) in nfp_repr_has_offload_stats() argument 115 switch (attr_id) { in nfp_repr_has_offload_stats() 156 nfp_repr_get_offload_stats(int attr_id, const struct net_device *dev, in nfp_repr_get_offload_stats() argument 159 switch (attr_id) { in nfp_repr_get_offload_stats()
|
| /drivers/edac/ |
| A D | ecs.c | 92 static umode_t ecs_attr_visible(struct kobject *kobj, struct attribute *a, int attr_id) in EDAC_ECS_ATTR_STORE() 98 switch (attr_id) { in EDAC_ECS_ATTR_STORE()
|
| A D | scrub.c | 89 static umode_t scrub_attr_visible(struct kobject *kobj, struct attribute *a, int attr_id) in EDAC_SCRUB_ATTR_STORE() 97 switch (attr_id) { in EDAC_SCRUB_ATTR_STORE()
|
| A D | mem_repair.c | 157 static umode_t mem_repair_attr_visible(struct kobject *kobj, struct attribute *a, int attr_id) 165 switch (attr_id) {
|
| /drivers/infiniband/hw/hfi1/ |
| A D | mad.c | 326 smp->attr_id = IB_SMP_ATTR_NOTICE; in send_trap() 452 trap->data.ntc_256.attr_id = mad->attr_id; in bad_mkey() 2380 __be16 attr_id; member 4056 switch (attr_id) { in subn_get_opa_sma() 4146 switch (attr_id) { in subn_set_opa_sma() 4478 __be16 attr_id; in process_subn_opa() local 4486 attr_id = smp->attr_id; in process_subn_opa() 4523 switch (attr_id) { in process_subn_opa() 4537 switch (attr_id) { in process_subn_opa() 4618 switch (smp->attr_id) { in process_subn() [all …]
|
| /drivers/scsi/qla2xxx/ |
| A D | qla_dfs.c | 17 qla_dfs_rport_get(struct fc_port *fp, int attr_id, u64 *val) in qla_dfs_rport_get() argument 19 switch (attr_id) { in qla_dfs_rport_get() 33 qla_dfs_rport_set(struct fc_port *fp, int attr_id, u64 val) in qla_dfs_rport_set() argument 35 switch (attr_id) { in qla_dfs_rport_set()
|
| /drivers/net/ethernet/marvell/octeontx2/nic/ |
| A D | rep.c | 172 rvu_rep_has_offload_stats(const struct net_device *dev, int attr_id) in rvu_rep_has_offload_stats() argument 174 return attr_id == IFLA_OFFLOAD_XSTATS_CPU_HIT; in rvu_rep_has_offload_stats() 178 rvu_rep_get_offload_stats(int attr_id, const struct net_device *dev, in rvu_rep_get_offload_stats() argument 181 if (attr_id == IFLA_OFFLOAD_XSTATS_CPU_HIT) in rvu_rep_get_offload_stats()
|
| /drivers/infiniband/core/ |
| A D | sysfs.c | 53 __be16 attr_id; member 532 .attr_id = IB_PMA_PORT_COUNTERS, \ 539 .attr_id = IB_PMA_PORT_COUNTERS_EXT, \ 569 in_mad->mad_hdr.attr_id = attr; in get_perf_mad() 601 ret = get_perf_mad(ibdev, port_num, tab_attr->attr_id, &data, in show_pma_counter()
|
| A D | cm.c | 1323 __be16 attr_id, __be64 tid) in cm_format_mad_hdr() argument 1329 hdr->attr_id = attr_id; in cm_format_mad_hdr() 1333 static void cm_format_mad_ece_hdr(struct ib_mad_hdr *hdr, __be16 attr_id, in cm_format_mad_ece_hdr() argument 1336 cm_format_mad_hdr(hdr, attr_id, tid); in cm_format_mad_ece_hdr() 3820 msg->mad)->attr_id) - CM_ATTR_ID_OFFSET; in cm_send_handler() 4004 u16 attr_id; in cm_recv_handler() local 4008 switch (mad_recv_wc->recv_buf.mad->mad_hdr.attr_id) { in cm_recv_handler() 4051 attr_id = be16_to_cpu(mad_recv_wc->recv_buf.mad->mad_hdr.attr_id); in cm_recv_handler() 4052 atomic_long_inc(&port->counters[CM_RECV][attr_id - CM_ATTR_ID_OFFSET]); in cm_recv_handler()
|
| /drivers/block/mtip32xx/ |
| A D | mtip32xx.h | 162 u8 attr_id; member
|