Home
last modified time | relevance | path

Searched refs:reg (Results 1 – 14 of 14) sorted by relevance

/net/netfilter/
Dcore.c102 const struct nf_hook_ops *reg) in nf_hook_entries_grow() argument
138 if (inserted || reg->priority > orig_ops[i]->priority) { in nf_hook_entries_grow()
143 new_ops[nhooks] = (void *)reg; in nf_hook_entries_grow()
144 new->hooks[nhooks].hook = reg->hook; in nf_hook_entries_grow()
145 new->hooks[nhooks].priv = reg->priv; in nf_hook_entries_grow()
152 new_ops[nhooks] = (void *)reg; in nf_hook_entries_grow()
153 new->hooks[nhooks].hook = reg->hook; in nf_hook_entries_grow()
154 new->hooks[nhooks].priv = reg->priv; in nf_hook_entries_grow()
240 …c struct nf_hook_entries __rcu **nf_hook_entry_head(struct net *net, const struct nf_hook_ops *reg) in nf_hook_entry_head() argument
242 if (reg->pf != NFPROTO_NETDEV) in nf_hook_entry_head()
[all …]
Dnf_sockopt.c25 int nf_register_sockopt(struct nf_sockopt_ops *reg) in nf_register_sockopt() argument
32 if (ops->pf == reg->pf in nf_register_sockopt()
34 reg->set_optmin, reg->set_optmax) in nf_register_sockopt()
36 reg->get_optmin, reg->get_optmax))) { in nf_register_sockopt()
40 reg->set_optmin, reg->set_optmax, in nf_register_sockopt()
41 reg->get_optmin, reg->get_optmax); in nf_register_sockopt()
47 list_add(&reg->list, &nf_sockopts); in nf_register_sockopt()
54 void nf_unregister_sockopt(struct nf_sockopt_ops *reg) in nf_unregister_sockopt() argument
57 list_del(&reg->list); in nf_unregister_sockopt()
Dnft_fib.c137 void nft_fib_store_result(void *reg, const struct nft_fib *priv, in nft_fib_store_result() argument
141 u32 *dreg = reg; in nft_fib_store_result()
152 strncpy(reg, dev ? dev->name : "", IFNAMSIZ); in nft_fib_store_result()
Dnf_tables_api.c5556 unsigned int reg; in nft_parse_register() local
5558 reg = ntohl(nla_get_be32(attr)); in nft_parse_register()
5559 switch (reg) { in nft_parse_register()
5561 return reg * NFT_REG_SIZE / NFT_REG32_SIZE; in nft_parse_register()
5563 return reg + NFT_REG_SIZE / NFT_REG32_SIZE - NFT_REG32_00; in nft_parse_register()
5579 int nft_dump_register(struct sk_buff *skb, unsigned int attr, unsigned int reg) in nft_dump_register() argument
5581 if (reg % (NFT_REG_SIZE / NFT_REG32_SIZE) == 0) in nft_dump_register()
5582 reg = reg / (NFT_REG_SIZE / NFT_REG32_SIZE); in nft_dump_register()
5584 reg = reg - NFT_REG_SIZE / NFT_REG32_SIZE + NFT_REG32_00; in nft_dump_register()
5586 return nla_put_be32(skb, attr, htonl(reg)); in nft_dump_register()
[all …]
/net/wireless/
Dmlme.c430 struct cfg80211_mgmt_registration *reg; in cfg80211_process_mlme_unregistrations() local
435 while ((reg = list_first_entry_or_null(&rdev->mlme_unreg, in cfg80211_process_mlme_unregistrations()
438 list_del(&reg->list); in cfg80211_process_mlme_unregistrations()
442 u16 frame_type = le16_to_cpu(reg->frame_type); in cfg80211_process_mlme_unregistrations()
444 rdev_mgmt_frame_register(rdev, reg->wdev, in cfg80211_process_mlme_unregistrations()
448 kfree(reg); in cfg80211_process_mlme_unregistrations()
473 struct cfg80211_mgmt_registration *reg, *nreg; in cfg80211_mlme_register_mgmt() local
490 nreg = kzalloc(sizeof(*reg) + match_len, GFP_KERNEL); in cfg80211_mlme_register_mgmt()
496 list_for_each_entry(reg, &wdev->mgmt_registrations, list) { in cfg80211_mlme_register_mgmt()
497 int mlen = min(match_len, reg->match_len); in cfg80211_mlme_register_mgmt()
[all …]
DMakefile13 cfg80211-y += core.o sysfs.o radiotap.o util.o reg.o scan.o nl80211.o
Dcore.c967 struct cfg80211_beacon_registration *reg, *treg; in cfg80211_dev_free() local
969 list_for_each_entry_safe(reg, treg, &rdev->beacon_registrations, list) { in cfg80211_dev_free()
970 list_del(&reg->list); in cfg80211_dev_free()
971 kfree(reg); in cfg80211_dev_free()
Drdev-ops.h782 struct wireless_dev *wdev, u16 frame_type, bool reg) in rdev_mgmt_frame_register() argument
786 trace_rdev_mgmt_frame_register(&rdev->wiphy, wdev , frame_type, reg); in rdev_mgmt_frame_register()
787 rdev->ops->mgmt_frame_register(&rdev->wiphy, wdev , frame_type, reg); in rdev_mgmt_frame_register()
Dtrace.h1531 u16 frame_type, bool reg),
1532 TP_ARGS(wiphy, wdev, frame_type, reg),
1537 __field(bool, reg)
1543 __entry->reg = reg;
1547 __entry->reg ? "true" : "false")
Dnl80211.c11083 struct cfg80211_beacon_registration *reg, *nreg; in nl80211_register_beacons() local
11095 list_for_each_entry(reg, &rdev->beacon_registrations, list) { in nl80211_register_beacons()
11096 if (reg->nlportid == info->snd_portid) { in nl80211_register_beacons()
14883 struct cfg80211_beacon_registration *reg; in cfg80211_report_obss_beacon() local
14888 list_for_each_entry(reg, &rdev->beacon_registrations, list) { in cfg80211_report_obss_beacon()
14909 genlmsg_unicast(wiphy_net(&rdev->wiphy), msg, reg->nlportid); in cfg80211_report_obss_beacon()
15145 struct cfg80211_beacon_registration *reg, *tmp; in nl80211_netlink_notify() local
15176 list_for_each_entry_safe(reg, tmp, &rdev->beacon_registrations, in nl80211_netlink_notify()
15178 if (reg->nlportid == notify->portid) { in nl80211_netlink_notify()
15179 list_del(&reg->list); in nl80211_netlink_notify()
[all …]
/net/dsa/
Dlegacy.c335 const __be32 *reg; in dsa_of_setup_routing_table() local
344 reg = of_get_property(parent_sw, "reg", &len); in dsa_of_setup_routing_table()
345 if (!reg || (len != sizeof(*reg) * 2)) in dsa_of_setup_routing_table()
352 link_sw_addr = be32_to_cpup(reg + 1); in dsa_of_setup_routing_table()
Ddsa2.c612 u32 reg; in dsa_parse_ports_dn() local
615 err = of_property_read_u32(port, "reg", &reg); in dsa_parse_ports_dn()
619 if (reg >= ds->num_ports) in dsa_parse_ports_dn()
622 ds->ports[reg].dn = port; in dsa_parse_ports_dn()
Dslave.c31 static int dsa_slave_phy_read(struct mii_bus *bus, int addr, int reg) in dsa_slave_phy_read() argument
36 return ds->ops->phy_read(ds, addr, reg); in dsa_slave_phy_read()
41 static int dsa_slave_phy_write(struct mii_bus *bus, int addr, int reg, u16 val) in dsa_slave_phy_write() argument
46 return ds->ops->phy_write(ds, addr, reg, val); in dsa_slave_phy_write()
/net/mac80211/
Dcfg.c3302 u16 frame_type, bool reg) in ieee80211_mgmt_frame_register() argument
3309 if (reg) { in ieee80211_mgmt_frame_register()