/net/core/ |
H A D | net_namespace.c | 90 static int ops_init(const struct pernet_operations *ops, struct net *net) argument 95 if (ops->id && ops->size) { 96 data = kzalloc(ops->size, GFP_KERNEL); 100 err = net_assign_generic(net, *ops->id, data); 105 if (ops->init) 106 err = ops->init(net); 117 static void ops_free(const struct pernet_operations *ops, struct net *net) argument 119 if (ops->id && ops 125 ops_exit_list(const struct pernet_operations *ops, struct list_head *net_exit_list) argument 137 ops_free_list(const struct pernet_operations *ops, struct list_head *net_exit_list) argument 153 const struct pernet_operations *ops, *saved_ops; local 274 const struct pernet_operations *ops; local 439 __register_pernet_operations(struct list_head *list, struct pernet_operations *ops) argument 465 __unregister_pernet_operations(struct pernet_operations *ops) argument 479 __register_pernet_operations(struct list_head *list, struct pernet_operations *ops) argument 485 __unregister_pernet_operations(struct pernet_operations *ops) argument 497 register_pernet_operations(struct list_head *list, struct pernet_operations *ops) argument 524 unregister_pernet_operations(struct pernet_operations *ops) argument 552 register_pernet_subsys(struct pernet_operations *ops) argument 571 unregister_pernet_subsys(struct pernet_operations *ops) argument 598 register_pernet_device(struct pernet_operations *ops) argument 619 unregister_pernet_device(struct pernet_operations *ops) argument [all...] |
H A D | fib_rules.c | 20 int fib_default_rule_add(struct fib_rules_ops *ops, argument 25 r = kzalloc(ops->rule_size, GFP_KERNEL); 36 r->fr_net = hold_net(ops->fro_net); 40 list_add_tail(&r->list, &ops->rules_list); 45 u32 fib_default_rule_pref(struct fib_rules_ops *ops) argument 50 if (!list_empty(&ops->rules_list)) { 51 pos = ops->rules_list.next; 52 if (pos->next != &ops->rules_list) { 64 struct fib_rules_ops *ops, struct nlmsghdr *nlh, 69 struct fib_rules_ops *ops; local 85 rules_ops_put(struct fib_rules_ops *ops) argument 91 flush_route_cache(struct fib_rules_ops *ops) argument 97 __fib_rules_register(struct fib_rules_ops *ops) argument 130 struct fib_rules_ops *ops; local 150 fib_rules_cleanup_ops(struct fib_rules_ops *ops) argument 164 struct fib_rules_ops *ops = container_of(head, struct fib_rules_ops, rcu); local 171 fib_rules_unregister(struct fib_rules_ops *ops) argument 201 fib_rule_match(struct fib_rule *rule, struct fib_rules_ops *ops, struct flowi *fl, int flags) argument 223 fib_rules_lookup(struct fib_rules_ops *ops, struct flowi *fl, int flags, struct fib_lookup_arg *arg) argument 269 validate_rulemsg(struct fib_rule_hdr *frh, struct nlattr **tb, struct fib_rules_ops *ops) argument 295 struct fib_rules_ops *ops = NULL; local 457 struct fib_rules_ops *ops = NULL; local 562 fib_rule_nlmsg_size(struct fib_rules_ops *ops, struct fib_rule *rule) argument 581 fib_nl_fill_rule(struct sk_buff *skb, struct fib_rule *rule, u32 pid, u32 seq, int type, int flags, struct fib_rules_ops *ops) argument 643 dump_rules(struct sk_buff *skb, struct netlink_callback *cb, struct fib_rules_ops *ops) argument 671 struct fib_rules_ops *ops; local 702 notify_rule_change(int event, struct fib_rule *rule, struct fib_rules_ops *ops, struct nlmsghdr *nlh, u32 pid) argument 762 struct fib_rules_ops *ops; local [all...] |
H A D | dst.c | 162 void *dst_alloc(struct dst_ops *ops, struct net_device *dev, argument 167 if (ops->gc && dst_entries_get_fast(ops) > ops->gc_thresh) { 168 if (ops->gc(ops)) 171 dst = kmem_cache_alloc(ops->kmem_cachep, GFP_ATOMIC); 178 dst->ops = ops; 202 dst_entries_add(ops, [all...] |
H A D | rtnetlink.c | 278 const struct rtnl_link_ops *ops; local 280 list_for_each_entry(ops, &link_ops, list) { 281 if (!strcmp(ops->kind, kind)) 282 return ops; 289 * @ops: struct rtnl_link_ops * to register 297 int __rtnl_link_register(struct rtnl_link_ops *ops) argument 299 if (rtnl_link_ops_get(ops->kind)) 302 if (!ops->dellink) 303 ops->dellink = unregister_netdevice_queue; 305 list_add_tail(&ops 316 rtnl_link_register(struct rtnl_link_ops *ops) argument 327 __rtnl_kill_links(struct net *net, struct rtnl_link_ops *ops) argument 345 __rtnl_link_unregister(struct rtnl_link_ops *ops) argument 360 rtnl_link_unregister(struct rtnl_link_ops *ops) argument 370 const struct rtnl_link_ops *ops = dev->rtnl_link_ops; local 395 const struct rtnl_af_ops *ops; local 413 __rtnl_af_register(struct rtnl_af_ops *ops) argument 426 rtnl_af_register(struct rtnl_af_ops *ops) argument 443 __rtnl_af_unregister(struct rtnl_af_ops *ops) argument 453 rtnl_af_unregister(struct rtnl_af_ops *ops) argument 482 const struct rtnl_link_ops *ops = dev->rtnl_link_ops; local 1200 const struct net_device_ops *ops = dev->netdev_ops; local 1254 const struct net_device_ops *ops; local 1289 const struct net_device_ops *ops = dev->netdev_ops; local 1560 const struct rtnl_link_ops *ops; local 1616 rtnl_create_link(struct net *net, char *ifname, const struct rtnl_link_ops *ops, struct nlattr *tb[]) argument 1691 const struct rtnl_link_ops *ops; local 2105 const struct net_device_ops *ops = br_dev->netdev_ops; local 2206 const struct net_device_ops *ops = br_dev->netdev_ops; local 2297 const struct net_device_ops *ops; local 2384 const struct net_device_ops *ops = dev->netdev_ops; local [all...] |
H A D | ethtool.c | 178 const struct ethtool_ops *ops = dev->ethtool_ops; local 183 if (ops->get_sset_count && ops->get_strings) 184 return ops->get_sset_count(dev, sset); 192 const struct ethtool_ops *ops = dev->ethtool_ops; local 198 /* ops->get_strings is valid because checked earlier */ 199 ops->get_strings(dev, stringset, data); 204 /* feature masks of legacy discrete ethtool ops */ 360 const struct ethtool_ops *ops = dev->ethtool_ops; local 364 if (ops 495 const struct ethtool_ops *ops = dev->ethtool_ops; local 599 const struct ethtool_ops *ops = dev->ethtool_ops; local 659 const struct ethtool_ops *ops = dev->ethtool_ops; local 848 const struct ethtool_ops *ops = dev->ethtool_ops; local 860 const struct ethtool_ops *ops = dev->ethtool_ops; local 1019 const struct ethtool_ops *ops = dev->ethtool_ops; local 1092 const struct ethtool_ops *ops = dev->ethtool_ops; local 1151 const struct ethtool_ops *ops = dev->ethtool_ops; local 1284 const struct ethtool_ops *ops = dev->ethtool_ops; local 1307 const struct ethtool_ops *ops = dev->ethtool_ops; local 1349 const struct ethtool_ops *ops = dev->ethtool_ops; local 1380 const struct ethtool_ops *ops = dev->ethtool_ops; local 1403 const struct ethtool_ops *ops = dev->ethtool_ops; local [all...] |
/net/netfilter/ |
H A D | nf_sockopt.c | 26 struct nf_sockopt_ops *ops; local 32 list_for_each_entry(ops, &nf_sockopts, list) { 33 if (ops->pf == reg->pf 34 && (overlap(ops->set_optmin, ops->set_optmax, 36 || overlap(ops->get_optmin, ops->get_optmax, 39 ops->set_optmin, ops->set_optmax, 40 ops 66 struct nf_sockopt_ops *ops; local 99 struct nf_sockopt_ops *ops; local 133 struct nf_sockopt_ops *ops; local [all...] |
/net/mac80211/ |
H A D | driver-ops.h | 29 local->ops->tx(&local->hw, control, skb); 36 if (local->ops->get_et_strings) { 38 local->ops->get_et_strings(&local->hw, &sdata->vif, sset, data); 48 if (local->ops->get_et_stats) { 50 local->ops->get_et_stats(&local->hw, &sdata->vif, stats, data); 60 if (local->ops->get_et_sset_count) { 62 rv = local->ops->get_et_sset_count(&local->hw, &sdata->vif, 78 ret = local->ops->start(&local->hw); 88 local->ops->stop(&local->hw); 109 ret = local->ops [all...] |
H A D | rate.h | 20 #include "driver-ops.h" 24 struct rate_control_ops *ops; member in struct:rate_control_ref 44 ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); 73 ref->ops->rate_init(ref->priv, sband, ista, priv_sta); 85 if (ref && ref->ops->rate_update) 86 ref->ops->rate_update(ref->priv, sband, ista, 95 return ref->ops->alloc_sta(ref->priv, sta, gfp); 104 ref->ops->free_sta(ref->priv, ista, priv_sta); 111 if (ref && sta->debugfs.dir && ref->ops->add_sta_debugfs) 112 ref->ops [all...] |
H A D | rate.c | 21 struct rate_control_ops *ops; member in struct:rate_control_alg 32 int ieee80211_rate_control_register(struct rate_control_ops *ops) argument 36 if (!ops->name) 41 if (!strcmp(alg->ops->name, ops->name)) { 54 alg->ops = ops; 63 void ieee80211_rate_control_unregister(struct rate_control_ops *ops) argument 69 if (alg->ops == ops) { 83 struct rate_control_ops *ops = NULL; local 104 struct rate_control_ops *ops; local 130 ieee80211_rate_control_ops_put(struct rate_control_ops *ops) argument [all...] |
/net/ipv6/ |
H A D | ip6_offload.c | 24 const struct net_offload *ops = NULL; local 31 ops = rcu_dereference(inet6_offloads[proto]); 33 if (unlikely(!ops)) 36 if (!(ops->flags & INET6_PROTO_GSO_EXTHDR)) 59 const struct net_offload *ops; local 70 ops = rcu_dereference(inet6_offloads[ 73 if (likely(ops && ops->callbacks.gso_send_check)) { 75 err = ops->callbacks.gso_send_check(skb); 88 const struct net_offload *ops; local 147 const struct net_offload *ops; local 237 const struct net_offload *ops; local [all...] |
/net/nfc/hci/ |
H A D | llc.c | 59 int nfc_llc_register(const char *name, struct nfc_llc_ops *ops) argument 72 llc_engine->ops = ops; 121 llc->data = llc_engine->ops->init(hdev, xmit_to_drv, rcv_to_hci, 129 llc->ops = llc_engine->ops; 136 llc->ops->deinit(llc); 149 return llc->ops->start(llc); 154 return llc->ops->stop(llc); 159 llc->ops [all...] |
H A D | llc.h | 42 struct nfc_llc_ops *ops; member in struct:nfc_llc_engine 48 struct nfc_llc_ops *ops; member in struct:nfc_llc 55 int nfc_llc_register(const char *name, struct nfc_llc_ops *ops);
|
H A D | core.c | 246 if (hdev->ops->complete_target_discovered) { 247 r = hdev->ops->complete_target_discovered(hdev, gate, 257 if (hdev->ops->target_from_gate) 258 r = hdev->ops->target_from_gate(hdev, gate, targets); 264 if (hdev->ops->complete_target_discovered) { 265 r = hdev->ops->complete_target_discovered(hdev, gate, 300 if (hdev->ops->event_received) { 301 r = hdev->ops->event_received(hdev, gate, event, skb); 492 if (hdev->ops->open) { 493 r = hdev->ops 796 nfc_hci_allocate_device(struct nfc_hci_ops *ops, struct nfc_hci_init_data *init_data, unsigned long quirks, u32 protocols, u32 supported_se, const char *llc_name, int tx_headroom, int tx_tailroom, int max_link_payload) argument [all...] |
/net/ceph/ |
H A D | auth.c | 67 if (ac->ops) 68 ac->ops->destroy(ac); 79 if (ac->ops && !ac->negotiating) 80 ac->ops->reset(ac); 158 ret = ac->ops->build_request(ac, p + sizeof(u32), end); 161 ac->ops->name); 223 ac->ops->destroy(ac); 225 ac->ops = NULL; 239 ret = ac->ops->handle_reply(ac, result, payload, payload_end); 243 pr_err("auth method '%s' error %d\n", ac->ops [all...] |
/net/sched/ |
H A D | ematch.c | 117 * @ops: ematch operations lookup table 120 * The given @ops must have kind set to a unique identifier and the 126 int tcf_em_register(struct tcf_ematch_ops *ops) argument 131 if (ops->match == NULL) 136 if (ops->kind == e->kind) 139 list_add_tail(&ops->link, &ematch_ops); 150 * @ops: ematch operations lookup table 153 * for examples when the module gets unloaded. The @ops parameter must be 158 void tcf_em_unregister(struct tcf_ematch_ops *ops) argument 161 list_del(&ops [all...] |
/net/wireless/ |
H A D | lib80211.c | 38 struct lib80211_crypto_ops *ops; member in struct:lib80211_crypto_alg 108 if (crypt->ops) { 109 crypt->ops->deinit(crypt->priv); 110 module_put(crypt->ops->owner); 132 if (entry->ops) { 133 entry->ops->deinit(entry->priv); 134 module_put(entry->ops->owner); 180 /* must not run ops->deinit() while there may be pending encrypt or 196 int lib80211_register_crypto_ops(struct lib80211_crypto_ops *ops) argument 205 alg->ops 218 lib80211_unregister_crypto_ops(struct lib80211_crypto_ops *ops) argument [all...] |
H A D | rdev-ops.h | 14 ret = rdev->ops->suspend(&rdev->wiphy, wowlan); 23 ret = rdev->ops->resume(&rdev->wiphy); 32 rdev->ops->set_wakeup(&rdev->wiphy, enabled); 43 ret = rdev->ops->add_virtual_intf(&rdev->wiphy, name, type, flags, 55 ret = rdev->ops->del_virtual_intf(&rdev->wiphy, wdev); 67 ret = rdev->ops->change_virtual_intf(&rdev->wiphy, dev, type, flags, 80 ret = rdev->ops->add_key(&rdev->wiphy, netdev, key_index, pairwise, 93 ret = rdev->ops->get_key(&rdev->wiphy, netdev, key_index, pairwise, 105 ret = rdev->ops->del_key(&rdev->wiphy, netdev, key_index, pairwise, 119 ret = rdev->ops [all...] |
H A D | ethtool.c | 5 #include "rdev-ops.h" 50 if (rdev->ops->get_ringparam) 64 if (rdev->ops->set_ringparam) 74 if (rdev->ops->get_et_sset_count) 84 if (rdev->ops->get_et_stats) 92 if (rdev->ops->get_et_strings)
|
/net/mac802154/ |
H A D | ieee802154_dev.c | 42 res = ipriv->ops->start(&ipriv->hw); 48 if (ipriv->ops->ieee_addr) { 49 res = ipriv->ops->ieee_addr(&ipriv->hw, dev->dev_addr); 72 ipriv->ops->stop(&ipriv->hw); 169 ieee802154_alloc_device(size_t priv_data_len, struct ieee802154_ops *ops) argument 175 if (!ops || !ops->xmit || !ops->ed || !ops->start || 176 !ops [all...] |
/net/openvswitch/ |
H A D | vport.c | 91 if (!strcmp(name, vport->ops->get_name(vport)) && 102 * @ops: vport device ops 104 * Allocate and initialize a new vport defined by @ops. The vport will contain 109 struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *ops, argument 128 vport->ops = ops; 183 vport->ops->get_name(vport)); 206 if (!vport->ops->set_options) 208 return vport->ops [all...] |
/net/ipv4/ |
H A D | fib_rules.c | 260 static void fib4_rule_flush_cache(struct fib_rules_ops *ops) argument 262 rt_cache_flush(ops->fro_net); 283 static int fib_default_rules_init(struct fib_rules_ops *ops) argument 287 err = fib_default_rule_add(ops, 0, RT_TABLE_LOCAL, 0); 290 err = fib_default_rule_add(ops, 0x7FFE, RT_TABLE_MAIN, 0); 293 err = fib_default_rule_add(ops, 0x7FFF, RT_TABLE_DEFAULT, 0); 302 struct fib_rules_ops *ops; local 304 ops = fib_rules_register(&fib4_rules_ops_template, net); 305 if (IS_ERR(ops)) 306 return PTR_ERR(ops); [all...] |
/net/netlink/ |
H A D | genetlink.c | 111 struct genl_ops *ops; local 113 list_for_each_entry(ops, &family->ops_list, ops_list) 114 if (ops->cmd == cmd) 115 return ops; 289 * @ops: operations to be registered 301 int genl_register_ops(struct genl_family *family, struct genl_ops *ops) argument 305 if (ops->dumpit == NULL && ops->doit == NULL) 308 if (genl_get_cmd(ops->cmd, family)) { 313 if (ops 347 genl_unregister_ops(struct genl_family *family, struct genl_ops *ops) argument 460 genl_register_family_with_ops(struct genl_family *family, struct genl_ops *ops, size_t n_ops) argument 551 struct genl_ops *ops; local 688 struct genl_ops *ops; local [all...] |
/net/sunrpc/ |
H A D | auth.c | 91 rpcauth_register(const struct rpc_authops *ops) argument 96 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) 100 auth_flavors[flavor] = ops; 109 rpcauth_unregister(const struct rpc_authops *ops) argument 114 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) 117 if (auth_flavors[flavor] == ops) { 138 const struct rpc_authops *ops; local 141 ops = auth_flavors[flavor]; 142 if (ops == NULL) 145 ops 173 const struct rpc_authops *ops; local 217 const struct rpc_authops *ops = auth_flavors[flavor]; local 256 const struct rpc_authops *ops; local 564 rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred, struct rpc_auth *auth, const struct rpc_credops *ops) argument [all...] |
/net/atm/ |
H A D | raw.c | 56 return vcc->dev->ops->send(vcc, skb); 73 vcc->send = vcc->dev->ops->send; 82 vcc->send = vcc->dev->ops->send;
|
/net/dcb/ |
H A D | dcbnl.c | 978 const struct dcbnl_rtnl_ops *ops = netdev->dcbnl_ops; local 987 err = ops->peer_getappinfo(netdev, &info, &app_count); 993 err = ops->peer_getapptable(netdev, table); 1033 const struct dcbnl_rtnl_ops *ops = netdev->dcbnl_ops; local 1044 if (ops->ieee_getets) { 1047 err = ops->ieee_getets(netdev, &ets); 1053 if (ops->ieee_getmaxrate) { 1056 err = ops->ieee_getmaxrate(netdev, &maxrate); 1065 if (ops->ieee_getpfc) { 1068 err = ops 1140 const struct dcbnl_rtnl_ops *ops = dev->dcbnl_ops; local 1193 const struct dcbnl_rtnl_ops *ops = netdev->dcbnl_ops; local 1335 const struct dcbnl_rtnl_ops *ops = dev->dcbnl_ops; local 1385 const struct dcbnl_rtnl_ops *ops = netdev->dcbnl_ops; local 1449 const struct dcbnl_rtnl_ops *ops = netdev->dcbnl_ops; local 1460 const struct dcbnl_rtnl_ops *ops = netdev->dcbnl_ops; local 1614 const struct dcbnl_rtnl_ops *ops = netdev->dcbnl_ops; local [all...] |