Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/
Dfm10k_tlv.h96 #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)
100 #define fm10k_tlv_attr_put_u32(msg, attr_id, val) \ argument
101 fm10k_tlv_attr_put_value(msg, attr_id, val, 4)
102 #define fm10k_tlv_attr_put_u64(msg, attr_id, val) \ argument
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)
[all …]
Dfm10k_tlv.c34 static s32 fm10k_tlv_attr_put_null_string(u32 *msg, u16 attr_id, in fm10k_tlv_attr_put_null_string() argument
66 attr[0] = len | attr_id; in fm10k_tlv_attr_put_null_string()
112 s32 fm10k_tlv_attr_put_mac_vlan(u32 *msg, u16 attr_id, in fm10k_tlv_attr_put_mac_vlan() argument
125 attr[0] = len | attr_id; in fm10k_tlv_attr_put_mac_vlan()
172 s32 fm10k_tlv_attr_put_bool(u32 *msg, u16 attr_id) in fm10k_tlv_attr_put_bool() argument
179 msg[FM10K_TLV_DWORD_LEN(*msg)] = attr_id; in fm10k_tlv_attr_put_bool()
198 s32 fm10k_tlv_attr_put_value(u32 *msg, u16 attr_id, s64 value, u32 len) in fm10k_tlv_attr_put_value() argument
218 attr[0] = len | attr_id; in fm10k_tlv_attr_put_value()
270 s32 fm10k_tlv_attr_put_le_struct(u32 *msg, u16 attr_id, in fm10k_tlv_attr_put_le_struct() argument
289 attr[0] = len | attr_id; in fm10k_tlv_attr_put_le_struct()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dcm.c86 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in set_local_comm_id()
90 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in set_local_comm_id()
101 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in get_local_comm_id()
105 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in get_local_comm_id()
116 if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in set_remote_comm_id()
120 } else if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in set_remote_comm_id()
131 if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in get_remote_comm_id()
135 } else if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in get_remote_comm_id()
308 if (mad->mad_hdr.attr_id == CM_REQ_ATTR_ID || in mlx4_ib_multiplex_cm_handler()
309 mad->mad_hdr.attr_id == CM_REP_ATTR_ID || in mlx4_ib_multiplex_cm_handler()
[all …]
Dmad.c234 switch (mad->mad_hdr.attr_id) { in smp_snoop()
375 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { in node_desc_override()
422 switch (be16_to_cpu(sa_mad->mad_hdr.attr_id)) { in mlx4_ib_demux_sa_handler()
846 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) in ib_process_mad()
861 in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && in ib_process_mad()
892 __be16 attr_id) in edit_counter() argument
894 switch (attr_id) { in edit_counter()
947 if (in_mad->mad_hdr.attr_id == IB_PMA_CLASS_PORT_INFO) in iboe_process_mad()
971 in_mad->mad_hdr.attr_id); in iboe_process_mad()
996 (in->mad_hdr.attr_id == IB_PMA_PORT_COUNTERS || in mlx4_ib_process_mad()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dmad.c176 if (in_mad->mad_hdr.attr_id == IB_PMA_CLASS_PORT_INFO) { in process_pma_cmd()
185 if (in_mad->mad_hdr.attr_id == IB_PMA_PORT_COUNTERS_EXT) { in process_pma_cmd()
252 if (in->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) in mlx5_ib_process_mad()
301 in_mad->attr_id = MLX5_ATTR_EXTENDED_PORT_INFO; in mlx5_query_ext_port_caps()
328 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx5_query_mad_ifc_smp_attr_node_info()
415 in_mad->attr_id = IB_SMP_ATTR_NODE_DESC; in mlx5_query_mad_ifc_node_desc()
440 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx5_query_mad_ifc_node_guid()
466 in_mad->attr_id = IB_SMP_ATTR_PKEY_TABLE; in mlx5_query_mad_ifc_pkey()
495 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mlx5_query_mad_ifc_gids()
506 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in mlx5_query_mad_ifc_gids()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
Dmthca_mad.c117 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()
Dmthca_provider.c82 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mthca_query_device()
144 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mthca_query_port()
238 in_mad->attr_id = IB_SMP_ATTR_PKEY_TABLE; in mthca_query_pkey()
267 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mthca_query_gid()
278 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in mthca_query_gid()
1023 in_mad->attr_id = IB_SMP_ATTR_NODE_DESC; in mthca_init_node_data()
1032 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mthca_init_node_data()
/kernel/linux/linux-5.10/include/trace/events/
Dib_umad.h36 __field(u16, attr_id)
81 __entry->attr_id = mad_hdr->attr_id;
104 be64_to_cpu(__entry->tid), be16_to_cpu(__entry->attr_id),
Dib_mad.h36 __field(u16, attr_id)
80 __entry->attr_id =
81 ((struct ib_mad_hdr *)wr->send_buf.mad)->attr_id;
101 be64_to_cpu(__entry->tid), be16_to_cpu(__entry->attr_id),
201 __field(u16, attr_id)
222 __entry->attr_id = mad_hdr->attr_id;
245 be64_to_cpu(__entry->tid), be16_to_cpu(__entry->attr_id),
/kernel/linux/linux-5.10/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_vema.c456 u16 attr_id) in vema_get_mac_list() argument
477 if (attr_id == OPA_EM_ATTR_IFACE_MCAST_MACS) in vema_get_mac_list()
537 u16 attr_id = be16_to_cpu(recvd_mad->mad_hdr.attr_id); in vema_get() local
539 switch (attr_id) { in vema_get()
551 vema_get_mac_list(port, recvd_mad, rsp_mad, attr_id); in vema_get()
575 u16 attr_id = be16_to_cpu(recvd_mad->mad_hdr.attr_id); in vema_set() local
577 switch (attr_id) { in vema_set()
813 trap_mad->mad_hdr.attr_id = IB_SMP_ATTR_NOTICE; in opa_vnic_vema_send_trap()
/kernel/linux/linux-5.10/fs/ext4/
Dsysfs.c53 short attr_id; member
147 .attr_id = attr_##_id, \
157 .attr_id = attr_##_id, \
167 .attr_id = attr_pointer_string, \
199 .attr_id = attr_##_id, \
373 switch (a->attr_id) { in ext4_attr_show()
453 switch (a->attr_id) { in ext4_attr_store()
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/rdma/
Drdma_user_ioctl_cmds.h30 __u16 attr_id; member
/kernel/linux/linux-5.10/include/uapi/rdma/
Drdma_user_ioctl_cmds.h55 __u16 attr_id; /* command specific type attribute */ member
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
Dnfp_net_repr.c112 nfp_repr_has_offload_stats(const struct net_device *dev, int attr_id) in nfp_repr_has_offload_stats() argument
114 switch (attr_id) { in nfp_repr_has_offload_stats()
155 nfp_repr_get_offload_stats(int attr_id, const struct net_device *dev, in nfp_repr_get_offload_stats() argument
158 switch (attr_id) { in nfp_repr_get_offload_stats()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/rdma/
Drdma_user_ioctl_cmds.h20 __u16 attr_id; member
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dmad.c236 if (smp->attr_id != IB_SMP_ATTR_NOTICE) in subn_handle_opa_trap_repress()
368 smp->attr_id = IB_SMP_ATTR_NOTICE; in send_trap()
494 trap->data.ntc_256.attr_id = mad->attr_id; in bad_mkey()
2422 __be16 attr_id; member
4091 static int subn_get_opa_sma(__be16 attr_id, struct opa_smp *smp, u32 am, in subn_get_opa_sma() argument
4098 switch (attr_id) { in subn_get_opa_sma()
4181 static int subn_set_opa_sma(__be16 attr_id, struct opa_smp *smp, u32 am, in subn_set_opa_sma() argument
4188 switch (attr_id) { in subn_set_opa_sma()
4290 (void)subn_get_opa_sma(agg->attr_id, smp, am, agg->data, in subn_get_opa_aggregate()
4336 (void)subn_set_opa_sma(agg->attr_id, smp, am, agg->data, in subn_set_opa_aggregate()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/
Dqla_dfs.c17 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()
/kernel/linux/linux-5.10/samples/bpf/
Dibumad_kern.c61 u16 attr_id; member
/kernel/linux/linux-5.10/include/rdma/
Dopa_smi.h31 __be16 attr_id; member
Dib_smi.h27 __be16 attr_id; member
Dib_mad.h145 __be16 attr_id; member
414 __be16 attr_id; member
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/
Dqib_mad.c99 smp->attr_id = IB_SMP_ATTR_NOTICE; in qib_send_trap()
181 data.details.ntc_256.attr_id = smp->attr_id; in qib_bad_mkey()
1887 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && in process_subn()
1899 switch (smp->attr_id) { in process_subn()
1939 switch (smp->attr_id) { in process_subn()
1973 if (smp->attr_id == IB_SMP_ATTR_NOTICE) in process_subn()
1995 smp->attr_id == QIB_VENDOR_IPG) { in process_subn()
2028 switch (pmp->mad_hdr.attr_id) { in process_perf()
2057 switch (pmp->mad_hdr.attr_id) { in process_perf()
2305 switch (ccp->attr_id) { in process_cc()
[all …]
Dqib_mad.h127 __be16 attr_id; member
/kernel/linux/linux-5.10/drivers/block/mtip32xx/
Dmtip32xx.h164 u8 attr_id; member
/kernel/linux/linux-5.10/net/core/
Drtnetlink.c5027 static int rtnl_get_offload_stats_attr_size(int attr_id) in rtnl_get_offload_stats_attr_size() argument
5029 switch (attr_id) { in rtnl_get_offload_stats_attr_size()
5041 int attr_id, size; in rtnl_get_offload_stats() local
5049 for (attr_id = IFLA_OFFLOAD_XSTATS_FIRST; in rtnl_get_offload_stats()
5050 attr_id <= IFLA_OFFLOAD_XSTATS_MAX; attr_id++) { in rtnl_get_offload_stats()
5051 if (attr_id < *prividx) in rtnl_get_offload_stats()
5054 size = rtnl_get_offload_stats_attr_size(attr_id); in rtnl_get_offload_stats()
5058 if (!dev->netdev_ops->ndo_has_offload_stats(dev, attr_id)) in rtnl_get_offload_stats()
5061 attr = nla_reserve_64bit(skb, attr_id, size, in rtnl_get_offload_stats()
5068 err = dev->netdev_ops->ndo_get_offload_stats(attr_id, dev, in rtnl_get_offload_stats()
[all …]

12