Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 785) sorted by relevance

12345678910>>...32

/net/devlink/
A Dnetlink_gen.c50 [DEVLINK_RATE_TC_ATTR_BW] = { .type = NLA_U32, },
67 [DEVLINK_ATTR_PORT_INDEX] = { .type = NLA_U32, },
80 [DEVLINK_ATTR_PORT_INDEX] = { .type = NLA_U32, },
89 [DEVLINK_ATTR_PORT_INDEX] = { .type = NLA_U32, },
122 [DEVLINK_ATTR_SB_INDEX] = { .type = NLA_U32, },
135 [DEVLINK_ATTR_SB_INDEX] = { .type = NLA_U32, },
149 [DEVLINK_ATTR_SB_INDEX] = { .type = NLA_U32, },
160 [DEVLINK_ATTR_SB_INDEX] = { .type = NLA_U32, },
175 [DEVLINK_ATTR_SB_INDEX] = { .type = NLA_U32, },
185 [DEVLINK_ATTR_SB_INDEX] = { .type = NLA_U32, },
[all …]
A Dlinecard.c17 const char *type; member
69 const char *type; member
95 if (linecard->type && in devlink_nl_linecard_fill()
248 if (!strcmp(type, linecard_type->type)) in devlink_linecard_type_lookup()
298 linecard->type = linecard_type->type; in devlink_linecard_type_set()
309 linecard->type = NULL; in devlink_linecard_type_set()
338 linecard->type = NULL; in devlink_linecard_type_unset()
383 const char *type; in devlink_nl_linecard_set_doit() local
506 WARN_ON(linecard->type && strcmp(linecard->type, type)); in devlink_linecard_provision_set()
508 linecard->type = type; in devlink_linecard_provision_set()
[all …]
/net/ieee802154/
A Dnl_policy.c15 [IEEE802154_ATTR_DEV_NAME] = { .type = NLA_STRING, },
16 [IEEE802154_ATTR_DEV_INDEX] = { .type = NLA_U32, },
19 [IEEE802154_ATTR_STATUS] = { .type = NLA_U8, },
22 [IEEE802154_ATTR_PAN_ID] = { .type = NLA_U16, },
23 [IEEE802154_ATTR_CHANNEL] = { .type = NLA_U8, },
24 [IEEE802154_ATTR_BCN_ORD] = { .type = NLA_U8, },
25 [IEEE802154_ATTR_SF_ORD] = { .type = NLA_U8, },
27 [IEEE802154_ATTR_BAT_EXT] = { .type = NLA_U8, },
29 [IEEE802154_ATTR_PAGE] = { .type = NLA_U8, },
30 [IEEE802154_ATTR_DEV_TYPE] = { .type = NLA_U8, },
[all …]
/net/tipc/
A Dnetlink.c50 [TIPC_NLA_SOCK] = { .type = NLA_NESTED, },
51 [TIPC_NLA_PUBL] = { .type = NLA_NESTED, },
52 [TIPC_NLA_LINK] = { .type = NLA_NESTED, },
53 [TIPC_NLA_MEDIA] = { .type = NLA_NESTED, },
54 [TIPC_NLA_NODE] = { .type = NLA_NESTED, },
55 [TIPC_NLA_NET] = { .type = NLA_NESTED, },
57 [TIPC_NLA_MON] = { .type = NLA_NESTED, },
68 [TIPC_NLA_MON_REF] = { .type = NLA_U32 },
82 [TIPC_NLA_NET_ID] = { .type = NLA_U32 },
99 [TIPC_NLA_LINK_RX] = { .type = NLA_U32 },
[all …]
/net/netlink/
A Dpolicy.c154 unsigned int type; in netlink_policy_dump_add_policy() local
158 for (type = 0; in netlink_policy_dump_add_policy()
160 type++) { in netlink_policy_dump_add_policy()
161 switch (policy[type].type) { in netlink_policy_dump_add_policy()
166 policy[type].len); in netlink_policy_dump_add_policy()
215 switch (pt->type) { in netlink_policy_dump_attr_size_estimate()
267 switch (pt->type) { in __netlink_policy_dump_write_attr()
297 if (pt->type == NLA_U8) in __netlink_policy_dump_write_attr()
298 type = NL_ATTR_TYPE_U8; in __netlink_policy_dump_write_attr()
334 if (pt->type == NLA_S8) in __netlink_policy_dump_write_attr()
[all …]
/net/bridge/
A Dbr_mrp_netlink.c10 [IFLA_BRIDGE_MRP_UNSPEC] = { .type = NLA_REJECT },
11 [IFLA_BRIDGE_MRP_INSTANCE] = { .type = NLA_NESTED },
12 [IFLA_BRIDGE_MRP_PORT_STATE] = { .type = NLA_NESTED },
13 [IFLA_BRIDGE_MRP_PORT_ROLE] = { .type = NLA_NESTED },
14 [IFLA_BRIDGE_MRP_RING_STATE] = { .type = NLA_NESTED },
15 [IFLA_BRIDGE_MRP_RING_ROLE] = { .type = NLA_NESTED },
16 [IFLA_BRIDGE_MRP_START_TEST] = { .type = NLA_NESTED },
17 [IFLA_BRIDGE_MRP_IN_ROLE] = { .type = NLA_NESTED },
18 [IFLA_BRIDGE_MRP_IN_STATE] = { .type = NLA_NESTED },
19 [IFLA_BRIDGE_MRP_START_IN_TEST] = { .type = NLA_NESTED },
[all …]
/net/sctp/
A Dsm_statefuns.c74 const union sctp_subtype type,
81 const union sctp_subtype type,
88 const union sctp_subtype type,
95 const union sctp_subtype type,
120 const union sctp_subtype type,
128 const union sctp_subtype type,
136 const union sctp_subtype type,
144 const union sctp_subtype type,
4100 type, commands); in sctp_sf_do_asconf_ack()
5570 type.primitive); in sctp_sf_ignore_primitive()
[all …]
/net/shaper/
A Dshaper_nl_gen.c16 [NET_SHAPER_A_HANDLE_ID] = { .type = NLA_U32, },
21 [NET_SHAPER_A_PRIORITY] = { .type = NLA_U32, },
22 [NET_SHAPER_A_WEIGHT] = { .type = NLA_U32, },
27 [NET_SHAPER_A_IFINDEX] = { .type = NLA_U32, },
33 [NET_SHAPER_A_IFINDEX] = { .type = NLA_U32, },
38 [NET_SHAPER_A_IFINDEX] = { .type = NLA_U32, },
41 [NET_SHAPER_A_BW_MIN] = { .type = NLA_UINT, },
42 [NET_SHAPER_A_BW_MAX] = { .type = NLA_UINT, },
43 [NET_SHAPER_A_BURST] = { .type = NLA_UINT, },
45 [NET_SHAPER_A_WEIGHT] = { .type = NLA_U32, },
[all …]
/net/netfilter/
A Dnf_conntrack_proto_icmpv6.c42 tuple->dst.u.icmp.type = hp->icmp6_type; in icmpv6_pkt_to_tuple()
73 int type = orig->dst.u.icmp.type - 128; in nf_conntrack_invert_icmpv6_tuple() local
74 if (type < 0 || type >= sizeof(invmap) || !invmap[type]) in nf_conntrack_invert_icmpv6_tuple()
78 tuple->dst.u.icmp.type = invmap[type] - 1; in nf_conntrack_invert_icmpv6_tuple()
104 int type = ct->tuplehash[0].tuple.dst.u.icmp.type - 128; in nf_conntrack_icmpv6_packet() local
106 if (type < 0 || type >= sizeof(valid_new) || !valid_new[type]) { in nf_conntrack_icmpv6_packet()
109 type + 128); in nf_conntrack_icmpv6_packet()
192 int type; in nf_conntrack_icmpv6_error() local
207 type = icmp6h->icmp6_type - 130; in nf_conntrack_icmpv6_error()
208 if (type >= 0 && type < sizeof(noct_valid_new) && in nf_conntrack_icmpv6_error()
[all …]
A Dnft_tunnel.c154 .type = &nft_tunnel_type,
392 u32 type = 0; in nft_tunnel_obj_opts_init() local
402 if (type) in nft_tunnel_obj_opts_init()
407 type = IP_TUNNEL_VXLAN_OPT_BIT; in nft_tunnel_obj_opts_init()
410 if (type) in nft_tunnel_obj_opts_init()
415 type = IP_TUNNEL_ERSPAN_OPT_BIT; in nft_tunnel_obj_opts_init()
418 if (type && type != IP_TUNNEL_GENEVE_OPT_BIT) in nft_tunnel_obj_opts_init()
423 type = IP_TUNNEL_GENEVE_OPT_BIT; in nft_tunnel_obj_opts_init()
632 opt->type) || in nft_tunnel_opts_dump()
710 .type = &nft_tunnel_obj_type,
[all …]
A Dxt_repldata.h17 #define xt_alloc_initial_table(type, typ2) ({ \ argument
22 struct type##_replace repl; \
23 struct type##_standard entries[]; \
25 struct type##_error *term; \
31 term = (struct type##_error *)&(((char *)tbl)[term_offset]); \
33 *term = (struct type##_error)typ2##_ERROR_INIT; \
36 tbl->repl.size = nhooks * sizeof(struct type##_standard) + \
37 sizeof(struct type##_error); \
43 tbl->entries[i++] = (struct type##_standard) \
45 bytes += sizeof(struct type##_standard); \
/net/mptcp/
A Dmptcp_pm_gen.c15 [MPTCP_PM_ADDR_ATTR_FAMILY] = { .type = NLA_U16, },
16 [MPTCP_PM_ADDR_ATTR_ID] = { .type = NLA_U8, },
19 [MPTCP_PM_ADDR_ATTR_PORT] = { .type = NLA_U16, },
20 [MPTCP_PM_ADDR_ATTR_FLAGS] = { .type = NLA_U32, },
37 [MPTCP_PM_ATTR_TOKEN] = { .type = NLA_U32, },
60 [MPTCP_PM_ATTR_TOKEN] = { .type = NLA_U32, },
67 [MPTCP_PM_ATTR_TOKEN] = { .type = NLA_U32, },
72 [MPTCP_PM_ATTR_TOKEN] = { .type = NLA_U32, },
73 [MPTCP_PM_ATTR_LOC_ID] = { .type = NLA_U8, },
79 [MPTCP_PM_ATTR_TOKEN] = { .type = NLA_U32, },
[all …]
/net/netfilter/ipset/
A Dip_set_core.c211 type->name, family_name(type->family), in ip_set_type_register()
212 type->revision_min, type->revision_max, in ip_set_type_register()
218 if (find_set_type(type->name, type->family, type->revision_min)) { in ip_set_type_register()
221 type->name, family_name(type->family), in ip_set_type_register()
228 type->name, family_name(type->family), in ip_set_type_register()
229 type->revision_min, type->revision_max); in ip_set_type_register()
241 if (!find_set_type(type->name, type->family, type->revision_min)) { in ip_set_type_unregister()
243 type->name, family_name(type->family), in ip_set_type_unregister()
250 type->name, family_name(type->family), type->revision_min); in ip_set_type_unregister()
1123 STRNCMP(set->type->name, clash->type->name) && in ip_set_create()
[all …]
A Dip_set_hash_mac.c132 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 },
133 [IPSET_ATTR_INITVAL] = { .type = NLA_U32 },
135 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 },
136 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 },
140 [IPSET_ATTR_ETHER] = { .type = NLA_BINARY,
142 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 },
143 [IPSET_ATTR_LINENO] = { .type = NLA_U32 },
144 [IPSET_ATTR_BYTES] = { .type = NLA_U64 },
145 [IPSET_ATTR_PACKETS] = { .type = NLA_U64 },
148 [IPSET_ATTR_SKBMARK] = { .type = NLA_U64 },
[all …]
A Dip_set_hash_ipmark.c292 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 },
293 [IPSET_ATTR_INITVAL] = { .type = NLA_U32 },
295 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 },
296 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 },
300 [IPSET_ATTR_IP] = { .type = NLA_NESTED },
302 [IPSET_ATTR_MARK] = { .type = NLA_U32 },
303 [IPSET_ATTR_CIDR] = { .type = NLA_U8 },
304 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 },
305 [IPSET_ATTR_LINENO] = { .type = NLA_U32 },
306 [IPSET_ATTR_BYTES] = { .type = NLA_U64 },
[all …]
A Dip_set_hash_ip.c286 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 },
287 [IPSET_ATTR_INITVAL] = { .type = NLA_U32 },
289 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 },
290 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 },
291 [IPSET_ATTR_NETMASK] = { .type = NLA_U8 },
296 [IPSET_ATTR_IP] = { .type = NLA_NESTED },
298 [IPSET_ATTR_CIDR] = { .type = NLA_U8 },
299 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 },
300 [IPSET_ATTR_LINENO] = { .type = NLA_U32 },
301 [IPSET_ATTR_BYTES] = { .type = NLA_U64 },
[all …]
/net/xfrm/
A Dxfrm_compat.c72 #define XMSGSIZE(type) sizeof(struct type) argument
104 [XFRMA_LASTUSED] = { .type = NLA_U64},
126 [XFRMA_PROTO] = { .type = NLA_U8 },
131 [XFRMA_IF_ID] = { .type = NLA_U32 },
141 int payload = compat_msg_min[type]; in xfrm_nlmsg_put_compat()
142 int src_len = xfrm_msg_min[type]; in xfrm_nlmsg_put_compat()
445 int type = nla_type(nla); in xfrm_xlate32_attr() local
449 if (type > XFRMA_MAX) { in xfrm_xlate32_attr()
454 type = array_index_nospec(type, XFRMA_MAX + 1); in xfrm_xlate32_attr()
460 pol_len32 = compat_policy[type].len; in xfrm_xlate32_attr()
[all …]
/net/dcb/
A Ddcbnl.c62 [DCB_PFC_UP_ATTR_0] = {.type = NLA_U8},
63 [DCB_PFC_UP_ATTR_1] = {.type = NLA_U8},
64 [DCB_PFC_UP_ATTR_2] = {.type = NLA_U8},
65 [DCB_PFC_UP_ATTR_3] = {.type = NLA_U8},
202 switch (type) { in dcbnl_app_attr_type_validate()
1067 enum ieee_attrs_app type; in dcbnl_getapptrust() local
1112 enum ieee_attrs_app type; in dcbnl_app_table_setdel() local
1117 type = nla_type(attr_itr); in dcbnl_app_table_setdel()
1227 enum ieee_attrs_app type = in dcbnl_ieee_fill() local
1252 enum ieee_attrs_app type = in dcbnl_ieee_fill() local
[all …]
/net/core/
A Dlwtunnel.c239 if (lwtstate->type == LWTUNNEL_ENCAP_NONE || in lwtunnel_fill_encap()
240 lwtstate->type > LWTUNNEL_ENCAP_MAX) in lwtunnel_fill_encap()
278 if (lwtstate->type == LWTUNNEL_ENCAP_NONE || in lwtunnel_get_encap_size()
279 lwtstate->type > LWTUNNEL_ENCAP_MAX) in lwtunnel_get_encap_size()
303 if (a->type != b->type) in lwtunnel_cmp_encap()
306 if (a->type == LWTUNNEL_ENCAP_NONE || in lwtunnel_cmp_encap()
307 a->type > LWTUNNEL_ENCAP_MAX) in lwtunnel_cmp_encap()
343 if (lwtstate->type == LWTUNNEL_ENCAP_NONE || in lwtunnel_output()
344 lwtstate->type > LWTUNNEL_ENCAP_MAX) { in lwtunnel_output()
398 lwtstate->type > LWTUNNEL_ENCAP_MAX) { in lwtunnel_xmit()
[all …]
/net/802/
A Dfddi.c49 unsigned short type, in fddi_header() argument
55 if(type != ETH_P_IP && type != ETH_P_IPV6 && type != ETH_P_ARP) in fddi_header()
59 if(type == ETH_P_IP || type == ETH_P_IPV6 || type == ETH_P_ARP) in fddi_header()
67 fddi->hdr.llc_snap.ethertype = htons(type); in fddi_header()
96 __be16 type; in fddi_type_trans() local
109 type = htons(ETH_P_802_2); in fddi_type_trans()
114 type=fddi->hdr.llc_snap.ethertype; in fddi_type_trans()
135 return type; in fddi_type_trans()
148 dev->type = ARPHRD_FDDI; in fddi_setup()
/net/ipv4/
A Dmetrics.c19 int type = nla_type(nla); in ip_metrics_convert() local
22 if (!type) in ip_metrics_convert()
24 if (type > RTAX_MAX) { in ip_metrics_convert()
29 type = array_index_nospec(type, RTAX_MAX + 1); in ip_metrics_convert()
30 if (type == RTAX_CC_ALGO) { in ip_metrics_convert()
47 if (type == RTAX_ADVMSS && val > 65535 - 40) in ip_metrics_convert()
49 if (type == RTAX_MTU && val > 65535 - 15) in ip_metrics_convert()
51 if (type == RTAX_HOPLIMIT && val > 255) in ip_metrics_convert()
53 if (type == RTAX_FEATURES && (val & ~RTAX_FEATURE_MASK)) { in ip_metrics_convert()
57 metrics[type - 1] = val; in ip_metrics_convert()
A Dicmp.c276 if (type > NR_ICMP_TYPES) in icmpv4_mask_allow()
344 ICMPMSGOUT_INC_STATS(net, type); in icmp_out_count()
412 int type = icmp_param->data.icmph.type; in icmp_reply() local
500 fl4->fl4_icmp_type = type; in icmp_route_lookup()
656 if (icmp_pointers[type].error) { in __icmp_send()
668 type) - in __icmp_send()
734 icmp_param.data.icmph.type = type; in __icmp_send()
893 switch (icmph->type) { in icmp_unreach()
1270 if (icmph->type != ICMP_ECHO && in icmp_rcv()
1379 int type = icmp_hdr(skb)->type; in icmp_err() local
[all …]
A Dfou_nl.c15 [FOU_ATTR_PORT] = { .type = NLA_BE16, },
16 [FOU_ATTR_AF] = { .type = NLA_U8, },
17 [FOU_ATTR_IPPROTO] = { .type = NLA_U8, },
18 [FOU_ATTR_TYPE] = { .type = NLA_U8, },
19 [FOU_ATTR_REMCSUM_NOPARTIAL] = { .type = NLA_FLAG, },
20 [FOU_ATTR_LOCAL_V4] = { .type = NLA_U32, },
22 [FOU_ATTR_PEER_V4] = { .type = NLA_U32, },
24 [FOU_ATTR_PEER_PORT] = { .type = NLA_BE16, },
25 [FOU_ATTR_IFINDEX] = { .type = NLA_S32, },
/net/bluetooth/
A Deir.h26 static inline u16 eir_append_data(u8 *eir, u16 eir_len, u8 type, in eir_append_data() argument
29 eir[eir_len++] = sizeof(type) + data_len; in eir_append_data()
30 eir[eir_len++] = type; in eir_append_data()
37 static inline u16 eir_append_le16(u8 *eir, u16 eir_len, u8 type, u16 data) in eir_append_le16() argument
39 eir[eir_len++] = sizeof(type) + sizeof(data); in eir_append_le16()
40 eir[eir_len++] = type; in eir_append_le16()
54 WARN_ON(sizeof(type) + data_len > U8_MAX); in eir_skb_put_data()
55 eir[0] = sizeof(type) + data_len; in eir_skb_put_data()
56 eir[1] = type; in eir_skb_put_data()
62 static inline void *eir_get_data(u8 *eir, size_t eir_len, u8 type, in eir_get_data() argument
[all …]
/net/mac80211/
A Diface.c236 switch (sdata->vif.type) { in ieee80211_can_powered_addr_change()
377 nsdata->vif.type)) in ieee80211_check_concurrent_iface()
478 switch (sdata->vif.type) { in ieee80211_do_stop()
579 switch (sdata->vif.type) { in ieee80211_do_stop()
1819 sdata->vif.type = type; in ieee80211_setup_sdata()
1844 switch (type) { in ieee80211_setup_sdata()
1847 sdata->vif.type = type; in ieee80211_setup_sdata()
1857 sdata->vif.type = type; in ieee80211_setup_sdata()
1940 switch (type) { in ieee80211_runtime_change_iftype()
2041 switch (type) { in ieee80211_assign_perm_addr()
[all …]

Completed in 68 milliseconds

12345678910>>...32