Home
last modified time | relevance | path

Searched refs:ops (Results 1 – 25 of 287) sorted by relevance

12345678910>>...12

/net/core/
Dfib_rules.c25 int fib_default_rule_add(struct fib_rules_ops *ops, in fib_default_rule_add() argument
30 r = kzalloc(ops->rule_size, GFP_KERNEL); in fib_default_rule_add()
39 r->fr_net = hold_net(ops->fro_net); in fib_default_rule_add()
47 list_add_tail(&r->list, &ops->rules_list); in fib_default_rule_add()
52 u32 fib_default_rule_pref(struct fib_rules_ops *ops) in fib_default_rule_pref() argument
57 if (!list_empty(&ops->rules_list)) { in fib_default_rule_pref()
58 pos = ops->rules_list.next; in fib_default_rule_pref()
59 if (pos->next != &ops->rules_list) { in fib_default_rule_pref()
71 struct fib_rules_ops *ops, struct nlmsghdr *nlh,
76 struct fib_rules_ops *ops; in lookup_rules_ops() local
[all …]
Dnet_namespace.c94 static int ops_init(const struct pernet_operations *ops, struct net *net) in ops_init() argument
99 if (ops->id && ops->size) { in ops_init()
100 data = kzalloc(ops->size, GFP_KERNEL); in ops_init()
104 err = net_assign_generic(net, *ops->id, data); in ops_init()
109 if (ops->init) in ops_init()
110 err = ops->init(net); in ops_init()
121 static void ops_free(const struct pernet_operations *ops, struct net *net) in ops_free() argument
123 if (ops->id && ops->size) { in ops_free()
124 int id = *ops->id; in ops_free()
129 static void ops_exit_list(const struct pernet_operations *ops, in ops_exit_list() argument
[all …]
Dethtool.c183 const struct ethtool_ops *ops = dev->ethtool_ops; in __ethtool_get_sset_count() local
188 if (ops->get_sset_count && ops->get_strings) in __ethtool_get_sset_count()
189 return ops->get_sset_count(dev, sset); in __ethtool_get_sset_count()
197 const struct ethtool_ops *ops = dev->ethtool_ops; in __ethtool_get_strings() local
204 ops->get_strings(dev, stringset, data); in __ethtool_get_strings()
375 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_drvinfo() local
379 if (ops->get_drvinfo) { in ethtool_get_drvinfo()
380 ops->get_drvinfo(dev, &info); in ethtool_get_drvinfo()
394 if (ops->get_sset_count) { in ethtool_get_drvinfo()
397 rc = ops->get_sset_count(dev, ETH_SS_TEST); in ethtool_get_drvinfo()
[all …]
Drtnetlink.c278 const struct rtnl_link_ops *ops; in rtnl_link_ops_get() local
280 list_for_each_entry(ops, &link_ops, list) { in rtnl_link_ops_get()
281 if (!strcmp(ops->kind, kind)) in rtnl_link_ops_get()
282 return ops; in rtnl_link_ops_get()
297 int __rtnl_link_register(struct rtnl_link_ops *ops) in __rtnl_link_register() argument
299 if (rtnl_link_ops_get(ops->kind)) in __rtnl_link_register()
307 if (ops->setup && !ops->dellink) in __rtnl_link_register()
308 ops->dellink = unregister_netdevice_queue; in __rtnl_link_register()
310 list_add_tail(&ops->list, &link_ops); in __rtnl_link_register()
321 int rtnl_link_register(struct rtnl_link_ops *ops) in rtnl_link_register() argument
[all …]
/net/netfilter/
Dnf_sockopt.c26 struct nf_sockopt_ops *ops; in nf_register_sockopt() local
30 list_for_each_entry(ops, &nf_sockopts, list) { in nf_register_sockopt()
31 if (ops->pf == reg->pf in nf_register_sockopt()
32 && (overlap(ops->set_optmin, ops->set_optmax, in nf_register_sockopt()
34 || overlap(ops->get_optmin, ops->get_optmax, in nf_register_sockopt()
37 ops->set_optmin, ops->set_optmax, in nf_register_sockopt()
38 ops->get_optmin, ops->get_optmax, in nf_register_sockopt()
64 struct nf_sockopt_ops *ops; in nf_sockopt_find() local
67 list_for_each_entry(ops, &nf_sockopts, list) { in nf_sockopt_find()
68 if (ops->pf == pf) { in nf_sockopt_find()
[all …]
Dnft_compat.c58 struct xt_target *target = expr->ops->data; in nft_target_eval()
113 const struct nf_hook_ops *ops = &basechain->ops[0]; in nft_target_set_tgchk_param() local
115 par->hook_mask = 1 << ops->hooknum; in nft_target_set_tgchk_param()
166 struct xt_target *target = expr->ops->data; in nft_target_init()
207 struct xt_target *target = expr->ops->data; in nft_target_destroy()
223 const struct xt_target *target = expr->ops->data; in nft_target_dump()
241 struct xt_target *target = expr->ops->data; in nft_target_validate()
248 const struct nf_hook_ops *ops = &basechain->ops[0]; in nft_target_validate() local
250 hook_mask = 1 << ops->hooknum; in nft_target_validate()
267 struct xt_match *match = expr->ops->data; in nft_match_eval()
[all …]
/net/mac80211/
Ddriver-ops.h29 local->ops->tx(&local->hw, control, skb); in drv_tx()
36 if (local->ops->get_et_strings) { in drv_get_et_strings()
38 local->ops->get_et_strings(&local->hw, &sdata->vif, sset, data); in drv_get_et_strings()
48 if (local->ops->get_et_stats) { in drv_get_et_stats()
50 local->ops->get_et_stats(&local->hw, &sdata->vif, stats, data); in drv_get_et_stats()
60 if (local->ops->get_et_sset_count) { in drv_get_et_sset_count()
62 rv = local->ops->get_et_sset_count(&local->hw, &sdata->vif, in drv_get_et_sset_count()
78 ret = local->ops->start(&local->hw); in drv_start()
88 local->ops->stop(&local->hw); in drv_stop()
109 ret = local->ops->suspend(&local->hw, wowlan); in drv_suspend()
[all …]
Drate.c21 const struct rate_control_ops *ops; member
32 int ieee80211_rate_control_register(const struct rate_control_ops *ops) in ieee80211_rate_control_register() argument
36 if (!ops->name) in ieee80211_rate_control_register()
41 if (!strcmp(alg->ops->name, ops->name)) { in ieee80211_rate_control_register()
54 alg->ops = ops; in ieee80211_rate_control_register()
63 void ieee80211_rate_control_unregister(const struct rate_control_ops *ops) in ieee80211_rate_control_unregister() argument
69 if (alg->ops == ops) { in ieee80211_rate_control_unregister()
83 const struct rate_control_ops *ops = NULL; in ieee80211_try_rate_control_ops_get() local
90 if (!strcmp(alg->ops->name, name)) { in ieee80211_try_rate_control_ops_get()
91 ops = alg->ops; in ieee80211_try_rate_control_ops_get()
[all …]
Drate.h24 const struct rate_control_ops *ops; member
44 ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); in rate_control_tx_status()
72 ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista, in rate_control_rate_init()
87 if (ref && ref->ops->rate_update) { in rate_control_rate_update()
96 ref->ops->rate_update(ref->priv, sband, &chanctx_conf->def, in rate_control_rate_update()
107 return ref->ops->alloc_sta(ref->priv, sta, gfp); in rate_control_alloc_sta()
116 ref->ops->free_sta(ref->priv, ista, priv_sta); in rate_control_free_sta()
123 if (ref && sta->debugfs.dir && ref->ops->add_sta_debugfs) in rate_control_add_sta_debugfs()
124 ref->ops->add_sta_debugfs(ref->priv, sta->rate_ctrl_priv, in rate_control_add_sta_debugfs()
133 if (ref && ref->ops->remove_sta_debugfs) in rate_control_remove_sta_debugfs()
[all …]
/net/wireless/
Drdev-ops.h14 ret = rdev->ops->suspend(&rdev->wiphy, wowlan); in rdev_suspend()
23 ret = rdev->ops->resume(&rdev->wiphy); in rdev_resume()
32 rdev->ops->set_wakeup(&rdev->wiphy, enabled); in rdev_set_wakeup()
43 ret = rdev->ops->add_virtual_intf(&rdev->wiphy, name, type, flags, in rdev_add_virtual_intf()
55 ret = rdev->ops->del_virtual_intf(&rdev->wiphy, wdev); in rdev_del_virtual_intf()
67 ret = rdev->ops->change_virtual_intf(&rdev->wiphy, dev, type, flags, in rdev_change_virtual_intf()
80 ret = rdev->ops->add_key(&rdev->wiphy, netdev, key_index, pairwise, in rdev_add_key()
93 ret = rdev->ops->get_key(&rdev->wiphy, netdev, key_index, pairwise, in rdev_get_key()
105 ret = rdev->ops->del_key(&rdev->wiphy, netdev, key_index, pairwise, in rdev_del_key()
119 ret = rdev->ops->set_default_key(&rdev->wiphy, netdev, key_index, in rdev_set_default_key()
[all …]
Dlib80211.c38 struct lib80211_crypto_ops *ops; member
76 if (crypt->ops) { in lib80211_crypt_info_free()
77 crypt->ops->deinit(crypt->priv); in lib80211_crypt_info_free()
78 module_put(crypt->ops->owner); in lib80211_crypt_info_free()
100 if (entry->ops) { in lib80211_crypt_deinit_entries()
101 entry->ops->deinit(entry->priv); in lib80211_crypt_deinit_entries()
102 module_put(entry->ops->owner); in lib80211_crypt_deinit_entries()
164 int lib80211_register_crypto_ops(struct lib80211_crypto_ops *ops) in lib80211_register_crypto_ops() argument
173 alg->ops = ops; in lib80211_register_crypto_ops()
180 ops->name); in lib80211_register_crypto_ops()
[all …]
/net/ceph/
Dauth.c67 if (ac->ops) in ceph_auth_destroy()
68 ac->ops->destroy(ac); in ceph_auth_destroy()
79 if (ac->ops && !ac->negotiating) in ceph_auth_reset()
80 ac->ops->reset(ac); in ceph_auth_reset()
158 ret = ac->ops->build_request(ac, p + sizeof(u32), end); in ceph_build_auth_request()
161 ac->ops->name); in ceph_build_auth_request()
223 ac->ops->destroy(ac); in ceph_handle_auth_reply()
225 ac->ops = NULL; in ceph_handle_auth_reply()
239 ret = ac->ops->handle_reply(ac, result, payload, payload_end); in ceph_handle_auth_reply()
243 pr_err("auth method '%s' error %d\n", ac->ops->name, ret); in ceph_handle_auth_reply()
[all …]
/net/sched/
Dematch.c126 int tcf_em_register(struct tcf_ematch_ops *ops) in tcf_em_register() argument
131 if (ops->match == NULL) in tcf_em_register()
136 if (ops->kind == e->kind) in tcf_em_register()
139 list_add_tail(&ops->link, &ematch_ops); in tcf_em_register()
158 void tcf_em_unregister(struct tcf_ematch_ops *ops) in tcf_em_unregister() argument
161 list_del(&ops->link); in tcf_em_unregister()
216 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate()
218 if (em->ops == NULL) { in tcf_em_validate()
224 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate()
225 if (em->ops) { in tcf_em_validate()
[all …]
/net/mac802154/
Dieee802154_dev.c62 res = ipriv->ops->start(&ipriv->hw); in mac802154_slave_open()
68 if (ipriv->ops->ieee_addr) { in mac802154_slave_open()
71 res = ipriv->ops->ieee_addr(&ipriv->hw, addr); in mac802154_slave_open()
100 ipriv->ops->stop(&ipriv->hw); in mac802154_slave_close()
203 return priv->ops->set_txpower(&priv->hw, db); in mac802154_set_txpower()
210 return priv->ops->set_lbt(&priv->hw, on); in mac802154_set_lbt()
217 return priv->ops->set_cca_mode(&priv->hw, mode); in mac802154_set_cca_mode()
224 return priv->ops->set_cca_ed_level(&priv->hw, level); in mac802154_set_cca_ed_level()
232 return priv->ops->set_csma_params(&priv->hw, min_be, max_be, retries); in mac802154_set_csma_params()
239 return priv->ops->set_frame_retries(&priv->hw, retries); in mac802154_set_frame_retries()
[all …]
/net/nfc/hci/
Dcore.c244 if (hdev->ops->complete_target_discovered) { in nfc_hci_target_discovered()
245 r = hdev->ops->complete_target_discovered(hdev, gate, in nfc_hci_target_discovered()
255 if (hdev->ops->target_from_gate) in nfc_hci_target_discovered()
256 r = hdev->ops->target_from_gate(hdev, gate, targets); in nfc_hci_target_discovered()
262 if (hdev->ops->complete_target_discovered) { in nfc_hci_target_discovered()
263 r = hdev->ops->complete_target_discovered(hdev, gate, in nfc_hci_target_discovered()
298 if (hdev->ops->event_received) { in nfc_hci_event_received()
299 r = hdev->ops->event_received(hdev, gate, event, skb); in nfc_hci_event_received()
385 skb->len) == 0) && hdev->ops->load_session) { in hci_dev_session_init()
388 r = hdev->ops->load_session(hdev); in hci_dev_session_init()
[all …]
Dllc.c55 int nfc_llc_register(const char *name, struct nfc_llc_ops *ops) in nfc_llc_register() argument
68 llc_engine->ops = ops; in nfc_llc_register()
117 llc->data = llc_engine->ops->init(hdev, xmit_to_drv, rcv_to_hci, in nfc_llc_allocate()
125 llc->ops = llc_engine->ops; in nfc_llc_allocate()
132 llc->ops->deinit(llc); in nfc_llc_free()
145 return llc->ops->start(llc); in nfc_llc_start()
150 return llc->ops->stop(llc); in nfc_llc_stop()
155 llc->ops->rcv_from_drv(llc, skb); in nfc_llc_rcv_from_drv()
160 return llc->ops->xmit_from_hci(llc, skb); in nfc_llc_xmit_from_hci()
/net/ipv6/
Dip6_offload.c24 const struct net_offload *ops = NULL; in ipv6_gso_pull_exthdrs() local
31 ops = rcu_dereference(inet6_offloads[proto]); in ipv6_gso_pull_exthdrs()
33 if (unlikely(!ops)) in ipv6_gso_pull_exthdrs()
36 if (!(ops->flags & INET6_PROTO_GSO_EXTHDR)) in ipv6_gso_pull_exthdrs()
62 const struct net_offload *ops; in ipv6_gso_segment() local
108 ops = rcu_dereference(inet6_offloads[proto]); in ipv6_gso_segment()
109 if (likely(ops && ops->callbacks.gso_segment)) { in ipv6_gso_segment()
111 segs = ops->callbacks.gso_segment(skb, features); in ipv6_gso_segment()
172 const struct net_offload *ops; in ipv6_gro_receive() local
199 ops = rcu_dereference(inet6_offloads[proto]); in ipv6_gro_receive()
[all …]
/net/ipv6/netfilter/
Dnft_chain_nat_ipv6.c27 static unsigned int nft_nat_do_chain(const struct nf_hook_ops *ops, in nft_nat_do_chain() argument
35 nft_set_pktinfo_ipv6(&pkt, ops, skb, in, out); in nft_nat_do_chain()
37 return nft_do_chain(&pkt, ops); in nft_nat_do_chain()
40 static unsigned int nft_nat_ipv6_fn(const struct nf_hook_ops *ops, in nft_nat_ipv6_fn() argument
46 return nf_nat_ipv6_fn(ops, skb, in, out, nft_nat_do_chain); in nft_nat_ipv6_fn()
49 static unsigned int nft_nat_ipv6_in(const struct nf_hook_ops *ops, in nft_nat_ipv6_in() argument
55 return nf_nat_ipv6_in(ops, skb, in, out, nft_nat_do_chain); in nft_nat_ipv6_in()
58 static unsigned int nft_nat_ipv6_out(const struct nf_hook_ops *ops, in nft_nat_ipv6_out() argument
64 return nf_nat_ipv6_out(ops, skb, in, out, nft_nat_do_chain); in nft_nat_ipv6_out()
67 static unsigned int nft_nat_ipv6_local_fn(const struct nf_hook_ops *ops, in nft_nat_ipv6_local_fn() argument
[all …]
Dip6table_nat.c33 static unsigned int ip6table_nat_do_chain(const struct nf_hook_ops *ops, in ip6table_nat_do_chain() argument
41 return ip6t_do_table(skb, ops->hooknum, in, out, net->ipv6.ip6table_nat); in ip6table_nat_do_chain()
44 static unsigned int ip6table_nat_fn(const struct nf_hook_ops *ops, in ip6table_nat_fn() argument
50 return nf_nat_ipv6_fn(ops, skb, in, out, ip6table_nat_do_chain); in ip6table_nat_fn()
53 static unsigned int ip6table_nat_in(const struct nf_hook_ops *ops, in ip6table_nat_in() argument
59 return nf_nat_ipv6_in(ops, skb, in, out, ip6table_nat_do_chain); in ip6table_nat_in()
62 static unsigned int ip6table_nat_out(const struct nf_hook_ops *ops, in ip6table_nat_out() argument
68 return nf_nat_ipv6_out(ops, skb, in, out, ip6table_nat_do_chain); in ip6table_nat_out()
71 static unsigned int ip6table_nat_local_fn(const struct nf_hook_ops *ops, in ip6table_nat_local_fn() argument
77 return nf_nat_ipv6_local_fn(ops, skb, in, out, ip6table_nat_do_chain); in ip6table_nat_local_fn()
/net/ipv4/netfilter/
Dnft_chain_nat_ipv4.c29 static unsigned int nft_nat_do_chain(const struct nf_hook_ops *ops, in nft_nat_do_chain() argument
37 nft_set_pktinfo_ipv4(&pkt, ops, skb, in, out); in nft_nat_do_chain()
39 return nft_do_chain(&pkt, ops); in nft_nat_do_chain()
42 static unsigned int nft_nat_ipv4_fn(const struct nf_hook_ops *ops, in nft_nat_ipv4_fn() argument
48 return nf_nat_ipv4_fn(ops, skb, in, out, nft_nat_do_chain); in nft_nat_ipv4_fn()
51 static unsigned int nft_nat_ipv4_in(const struct nf_hook_ops *ops, in nft_nat_ipv4_in() argument
57 return nf_nat_ipv4_in(ops, skb, in, out, nft_nat_do_chain); in nft_nat_ipv4_in()
60 static unsigned int nft_nat_ipv4_out(const struct nf_hook_ops *ops, in nft_nat_ipv4_out() argument
66 return nf_nat_ipv4_out(ops, skb, in, out, nft_nat_do_chain); in nft_nat_ipv4_out()
69 static unsigned int nft_nat_ipv4_local_fn(const struct nf_hook_ops *ops, in nft_nat_ipv4_local_fn() argument
[all …]
Diptable_nat.c31 static unsigned int iptable_nat_do_chain(const struct nf_hook_ops *ops, in iptable_nat_do_chain() argument
39 return ipt_do_table(skb, ops->hooknum, in, out, net->ipv4.nat_table); in iptable_nat_do_chain()
42 static unsigned int iptable_nat_ipv4_fn(const struct nf_hook_ops *ops, in iptable_nat_ipv4_fn() argument
48 return nf_nat_ipv4_fn(ops, skb, in, out, iptable_nat_do_chain); in iptable_nat_ipv4_fn()
51 static unsigned int iptable_nat_ipv4_in(const struct nf_hook_ops *ops, in iptable_nat_ipv4_in() argument
57 return nf_nat_ipv4_in(ops, skb, in, out, iptable_nat_do_chain); in iptable_nat_ipv4_in()
60 static unsigned int iptable_nat_ipv4_out(const struct nf_hook_ops *ops, in iptable_nat_ipv4_out() argument
66 return nf_nat_ipv4_out(ops, skb, in, out, iptable_nat_do_chain); in iptable_nat_ipv4_out()
69 static unsigned int iptable_nat_ipv4_local_fn(const struct nf_hook_ops *ops, in iptable_nat_ipv4_local_fn() argument
75 return nf_nat_ipv4_local_fn(ops, skb, in, out, iptable_nat_do_chain); in iptable_nat_ipv4_local_fn()
/net/sunrpc/
Dauth.c95 rpcauth_register(const struct rpc_authops *ops) in rpcauth_register() argument
100 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) in rpcauth_register()
104 auth_flavors[flavor] = ops; in rpcauth_register()
113 rpcauth_unregister(const struct rpc_authops *ops) in rpcauth_unregister() argument
118 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) in rpcauth_unregister()
121 if (auth_flavors[flavor] == ops) { in rpcauth_unregister()
142 const struct rpc_authops *ops; in rpcauth_get_pseudoflavor() local
145 ops = auth_flavors[flavor]; in rpcauth_get_pseudoflavor()
146 if (ops == NULL) in rpcauth_get_pseudoflavor()
149 ops = auth_flavors[flavor]; in rpcauth_get_pseudoflavor()
[all …]
/net/nfc/
Dcore.c63 if (!dev->ops->fw_download) { in nfc_fw_download()
69 rc = dev->ops->fw_download(dev, firmware_name); in nfc_fw_download()
129 if (dev->ops->dev_up) in nfc_dev_up()
130 rc = dev->ops->dev_up(dev); in nfc_dev_up()
136 if (dev->ops->discover_se && dev->ops->discover_se(dev)) in nfc_dev_up()
172 if (dev->ops->dev_down) in nfc_dev_down()
173 dev->ops->dev_down(dev); in nfc_dev_down()
236 rc = dev->ops->start_poll(dev, im_protocols, tm_protocols); in nfc_start_poll()
270 dev->ops->stop_poll(dev); in nfc_stop_poll()
300 if (!dev->ops->dep_link_up) in nfc_dep_link_up()
[all …]
/net/netlink/
Dgenetlink.c129 if (family->ops[i].cmd == cmd) in genl_get_cmd()
130 return &family->ops[i]; in genl_get_cmd()
322 const struct genl_ops *ops = family->ops; in genl_validate_ops() local
326 if (WARN_ON(n_ops && !ops)) in genl_validate_ops()
333 if (ops[i].dumpit == NULL && ops[i].doit == NULL) in genl_validate_ops()
336 if (ops[i].cmd == ops[j].cmd) in genl_validate_ops()
513 const struct genl_ops *ops = cb->data; in genl_lock_start() local
516 if (ops->start) { in genl_lock_start()
518 rc = ops->start(cb); in genl_lock_start()
527 const struct genl_ops *ops = cb->data; in genl_lock_dumpit() local
[all …]
/net/ipv4/
Dfou.c111 const struct net_offload *ops; in fou_gro_receive() local
126 ops = rcu_dereference(offloads[proto]); in fou_gro_receive()
127 if (!ops || !ops->callbacks.gro_receive) in fou_gro_receive()
130 pp = ops->callbacks.gro_receive(head, skb); in fou_gro_receive()
140 const struct net_offload *ops; in fou_gro_complete() local
149 ops = rcu_dereference(offloads[proto]); in fou_gro_complete()
150 if (WARN_ON(!ops || !ops->callbacks.gro_complete)) in fou_gro_complete()
153 err = ops->callbacks.gro_complete(skb, nhoff); in fou_gro_complete()
165 const struct net_offload *ops; in gue_gro_receive() local
187 ops = rcu_dereference(offloads[proto]); in gue_gro_receive()
[all …]

12345678910>>...12