/net/core/ |
D | fib_rules.c | 25 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() 44 list_add_tail(&r->list, &ops->rules_list); in fib_default_rule_add() 49 u32 fib_default_rule_pref(struct fib_rules_ops *ops) in fib_default_rule_pref() argument 54 if (!list_empty(&ops->rules_list)) { in fib_default_rule_pref() 55 pos = ops->rules_list.next; in fib_default_rule_pref() 56 if (pos->next != &ops->rules_list) { in fib_default_rule_pref() 68 struct fib_rules_ops *ops, struct nlmsghdr *nlh, 73 struct fib_rules_ops *ops; in lookup_rules_ops() local [all …]
|
D | net_namespace.c | 94 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 …]
|
D | ethtool.c | 178 const struct ethtool_ops *ops = dev->ethtool_ops; in __ethtool_get_sset_count() local 183 if (ops->get_sset_count && ops->get_strings) in __ethtool_get_sset_count() 184 return ops->get_sset_count(dev, sset); in __ethtool_get_sset_count() 192 const struct ethtool_ops *ops = dev->ethtool_ops; in __ethtool_get_strings() local 199 ops->get_strings(dev, stringset, data); in __ethtool_get_strings() 360 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_drvinfo() local 364 if (ops->get_drvinfo) { in ethtool_get_drvinfo() 365 ops->get_drvinfo(dev, &info); in ethtool_get_drvinfo() 379 if (ops->get_sset_count) { in ethtool_get_drvinfo() 382 rc = ops->get_sset_count(dev, ETH_SS_TEST); in ethtool_get_drvinfo() [all …]
|
D | rtnetlink.c | 278 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() 302 if (!ops->dellink) in __rtnl_link_register() 303 ops->dellink = unregister_netdevice_queue; in __rtnl_link_register() 305 list_add_tail(&ops->list, &link_ops); in __rtnl_link_register() 316 int rtnl_link_register(struct rtnl_link_ops *ops) in rtnl_link_register() argument [all …]
|
D | dst.c | 162 void *dst_alloc(struct dst_ops *ops, struct net_device *dev, in dst_alloc() argument 167 if (ops->gc && dst_entries_get_fast(ops) > ops->gc_thresh) { in dst_alloc() 168 if (ops->gc(ops)) in dst_alloc() 171 dst = kmem_cache_alloc(ops->kmem_cachep, GFP_ATOMIC); in dst_alloc() 178 dst->ops = ops; in dst_alloc() 202 dst_entries_add(ops, 1); in dst_alloc() 243 dst_entries_add(dst->ops, -1); in dst_destroy() 245 if (dst->ops->destroy) in dst_destroy() 246 dst->ops->destroy(dst); in dst_destroy() 249 kmem_cache_free(dst->ops->kmem_cachep, dst); in dst_destroy() [all …]
|
/net/netfilter/ |
D | nf_sockopt.c | 26 struct nf_sockopt_ops *ops; in nf_register_sockopt() local 32 list_for_each_entry(ops, &nf_sockopts, list) { in nf_register_sockopt() 33 if (ops->pf == reg->pf in nf_register_sockopt() 34 && (overlap(ops->set_optmin, ops->set_optmax, in nf_register_sockopt() 36 || overlap(ops->get_optmin, ops->get_optmax, in nf_register_sockopt() 39 ops->set_optmin, ops->set_optmax, in nf_register_sockopt() 40 ops->get_optmin, ops->get_optmax, in nf_register_sockopt() 66 struct nf_sockopt_ops *ops; in nf_sockopt_find() local 71 list_for_each_entry(ops, &nf_sockopts, list) { in nf_sockopt_find() 72 if (ops->pf == pf) { in nf_sockopt_find() [all …]
|
/net/mac80211/ |
D | driver-ops.h | 29 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 …]
|
D | rate.c | 21 struct rate_control_ops *ops; member 32 int ieee80211_rate_control_register(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(struct rate_control_ops *ops) in ieee80211_rate_control_unregister() argument 69 if (alg->ops == ops) { in ieee80211_rate_control_unregister() 83 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 if (try_module_get(alg->ops->module)) { in ieee80211_try_rate_control_ops_get() [all …]
|
D | rate.h | 24 struct rate_control_ops *ops; member 44 ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); in rate_control_tx_status() 73 ref->ops->rate_init(ref->priv, sband, ista, priv_sta); in rate_control_rate_init() 85 if (ref && ref->ops->rate_update) in rate_control_rate_update() 86 ref->ops->rate_update(ref->priv, sband, ista, in rate_control_rate_update() 95 return ref->ops->alloc_sta(ref->priv, sta, gfp); in rate_control_alloc_sta() 104 ref->ops->free_sta(ref->priv, ista, priv_sta); in rate_control_free_sta() 111 if (ref && sta->debugfs.dir && ref->ops->add_sta_debugfs) in rate_control_add_sta_debugfs() 112 ref->ops->add_sta_debugfs(ref->priv, sta->rate_ctrl_priv, in rate_control_add_sta_debugfs() 121 if (ref && ref->ops->remove_sta_debugfs) in rate_control_remove_sta_debugfs() [all …]
|
/net/ipv6/ |
D | ip6_offload.c | 24 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() 59 const struct net_offload *ops; in ipv6_gso_send_check() local 70 ops = rcu_dereference(inet6_offloads[ in ipv6_gso_send_check() 73 if (likely(ops && ops->callbacks.gso_send_check)) { in ipv6_gso_send_check() 75 err = ops->callbacks.gso_send_check(skb); in ipv6_gso_send_check() 88 const struct net_offload *ops; in ipv6_gso_segment() local 114 ops = rcu_dereference(inet6_offloads[proto]); in ipv6_gso_segment() [all …]
|
/net/wireless/ |
D | rdev-ops.h | 14 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 …]
|
D | lib80211.c | 38 struct lib80211_crypto_ops *ops; member 108 if (crypt->ops) { in lib80211_crypt_info_free() 109 crypt->ops->deinit(crypt->priv); in lib80211_crypt_info_free() 110 module_put(crypt->ops->owner); in lib80211_crypt_info_free() 132 if (entry->ops) { in lib80211_crypt_deinit_entries() 133 entry->ops->deinit(entry->priv); in lib80211_crypt_deinit_entries() 134 module_put(entry->ops->owner); in lib80211_crypt_deinit_entries() 196 int lib80211_register_crypto_ops(struct lib80211_crypto_ops *ops) in lib80211_register_crypto_ops() argument 205 alg->ops = ops; in lib80211_register_crypto_ops() 212 ops->name); in lib80211_register_crypto_ops() [all …]
|
/net/ceph/ |
D | auth.c | 67 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/ |
D | ematch.c | 126 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() 215 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate() 217 if (em->ops == NULL) { in tcf_em_validate() 223 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate() 224 if (em->ops) { in tcf_em_validate() [all …]
|
D | sch_generic.c | 361 .ops = &noop_qdisc_ops, 388 .ops = &noqueue_qdisc_ops, 533 struct Qdisc_ops *ops) in qdisc_alloc() argument 537 unsigned int size = QDISC_ALIGN(sizeof(*sch)) + ops->priv_size; in qdisc_alloc() 564 sch->ops = ops; in qdisc_alloc() 565 sch->enqueue = ops->enqueue; in qdisc_alloc() 566 sch->dequeue = ops->dequeue; in qdisc_alloc() 577 struct Qdisc_ops *ops, unsigned int parentid) in qdisc_create_dflt() argument 581 sch = qdisc_alloc(dev_queue, ops); in qdisc_create_dflt() 586 if (!ops->init || ops->init(sch, NULL) == 0) in qdisc_create_dflt() [all …]
|
/net/sunrpc/ |
D | auth.c | 91 rpcauth_register(const struct rpc_authops *ops) in rpcauth_register() argument 96 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) in rpcauth_register() 100 auth_flavors[flavor] = ops; in rpcauth_register() 109 rpcauth_unregister(const struct rpc_authops *ops) in rpcauth_unregister() argument 114 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) in rpcauth_unregister() 117 if (auth_flavors[flavor] == ops) { in rpcauth_unregister() 138 const struct rpc_authops *ops; in rpcauth_get_pseudoflavor() local 141 ops = auth_flavors[flavor]; in rpcauth_get_pseudoflavor() 142 if (ops == NULL) in rpcauth_get_pseudoflavor() 145 ops = auth_flavors[flavor]; in rpcauth_get_pseudoflavor() [all …]
|
/net/netlink/ |
D | genetlink.c | 111 struct genl_ops *ops; in genl_get_cmd() local 113 list_for_each_entry(ops, &family->ops_list, ops_list) in genl_get_cmd() 114 if (ops->cmd == cmd) in genl_get_cmd() 115 return ops; in genl_get_cmd() 301 int genl_register_ops(struct genl_family *family, struct genl_ops *ops) in genl_register_ops() argument 305 if (ops->dumpit == NULL && ops->doit == NULL) in genl_register_ops() 308 if (genl_get_cmd(ops->cmd, family)) { in genl_register_ops() 313 if (ops->dumpit) in genl_register_ops() 314 ops->flags |= GENL_CMD_CAP_DUMP; in genl_register_ops() 315 if (ops->doit) in genl_register_ops() [all …]
|
/net/nfc/hci/ |
D | llc.c | 59 int nfc_llc_register(const char *name, struct nfc_llc_ops *ops) in nfc_llc_register() argument 72 llc_engine->ops = ops; in nfc_llc_register() 121 llc->data = llc_engine->ops->init(hdev, xmit_to_drv, rcv_to_hci, in nfc_llc_allocate() 129 llc->ops = llc_engine->ops; in nfc_llc_allocate() 136 llc->ops->deinit(llc); in nfc_llc_free() 149 return llc->ops->start(llc); in nfc_llc_start() 154 return llc->ops->stop(llc); in nfc_llc_stop() 159 llc->ops->rcv_from_drv(llc, skb); in nfc_llc_rcv_from_drv() 164 return llc->ops->xmit_from_hci(llc, skb); in nfc_llc_xmit_from_hci()
|
D | core.c | 246 if (hdev->ops->complete_target_discovered) { in nfc_hci_target_discovered() 247 r = hdev->ops->complete_target_discovered(hdev, gate, in nfc_hci_target_discovered() 257 if (hdev->ops->target_from_gate) in nfc_hci_target_discovered() 258 r = hdev->ops->target_from_gate(hdev, gate, targets); in nfc_hci_target_discovered() 264 if (hdev->ops->complete_target_discovered) { in nfc_hci_target_discovered() 265 r = hdev->ops->complete_target_discovered(hdev, gate, in nfc_hci_target_discovered() 300 if (hdev->ops->event_received) { in nfc_hci_event_received() 301 r = hdev->ops->event_received(hdev, gate, event, skb); in nfc_hci_event_received() 492 if (hdev->ops->open) { in hci_dev_up() 493 r = hdev->ops->open(hdev); in hci_dev_up() [all …]
|
/net/nfc/ |
D | core.c | 77 if (dev->ops->dev_up) in nfc_dev_up() 78 rc = dev->ops->dev_up(dev); in nfc_dev_up() 116 if (dev->ops->dev_down) in nfc_dev_down() 117 dev->ops->dev_down(dev); in nfc_dev_down() 180 rc = dev->ops->start_poll(dev, im_protocols, tm_protocols); in nfc_start_poll() 214 dev->ops->stop_poll(dev); in nfc_stop_poll() 247 if (!dev->ops->dep_link_up) in nfc_dep_link_up() 274 rc = dev->ops->dep_link_up(dev, target, comm_mode, gb, gb_len); in nfc_dep_link_up() 291 if (!dev->ops->dep_link_down) in nfc_dep_link_down() 306 rc = dev->ops->dep_link_down(dev); in nfc_dep_link_down() [all …]
|
/net/mac802154/ |
D | ieee802154_dev.c | 42 res = ipriv->ops->start(&ipriv->hw); in mac802154_slave_open() 48 if (ipriv->ops->ieee_addr) { in mac802154_slave_open() 49 res = ipriv->ops->ieee_addr(&ipriv->hw, dev->dev_addr); in mac802154_slave_open() 72 ipriv->ops->stop(&ipriv->hw); in mac802154_slave_close() 169 ieee802154_alloc_device(size_t priv_data_len, struct ieee802154_ops *ops) in ieee802154_alloc_device() argument 175 if (!ops || !ops->xmit || !ops->ed || !ops->start || in ieee802154_alloc_device() 176 !ops->stop || !ops->set_channel) { in ieee802154_alloc_device() 212 priv->ops = ops; in ieee802154_alloc_device()
|
/net/ipv4/ |
D | fib_rules.c | 260 static void fib4_rule_flush_cache(struct fib_rules_ops *ops) in fib4_rule_flush_cache() argument 262 rt_cache_flush(ops->fro_net); in fib4_rule_flush_cache() 283 static int fib_default_rules_init(struct fib_rules_ops *ops) in fib_default_rules_init() argument 287 err = fib_default_rule_add(ops, 0, RT_TABLE_LOCAL, 0); in fib_default_rules_init() 290 err = fib_default_rule_add(ops, 0x7FFE, RT_TABLE_MAIN, 0); in fib_default_rules_init() 293 err = fib_default_rule_add(ops, 0x7FFF, RT_TABLE_DEFAULT, 0); in fib_default_rules_init() 302 struct fib_rules_ops *ops; in fib4_rules_init() local 304 ops = fib_rules_register(&fib4_rules_ops_template, net); in fib4_rules_init() 305 if (IS_ERR(ops)) in fib4_rules_init() 306 return PTR_ERR(ops); in fib4_rules_init() [all …]
|
/net/openvswitch/ |
D | vport.c | 91 if (!strcmp(name, vport->ops->get_name(vport)) && in ovs_vport_locate() 109 struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *ops, in ovs_vport_alloc() argument 128 vport->ops = ops; in ovs_vport_alloc() 183 vport->ops->get_name(vport)); in ovs_vport_add() 206 if (!vport->ops->set_options) in ovs_vport_set_options() 208 return vport->ops->set_options(vport, options); in ovs_vport_set_options() 225 vport->ops->destroy(vport); in ovs_vport_del() 302 if (!vport->ops->get_options) in ovs_vport_get_options() 309 err = vport->ops->get_options(vport, skb); in ovs_vport_get_options() 352 int sent = vport->ops->send(vport, skb); in ovs_vport_send()
|
/net/dcb/ |
D | dcbnl.c | 978 const struct dcbnl_rtnl_ops *ops = netdev->dcbnl_ops; in dcbnl_build_peer_app() local 987 err = ops->peer_getappinfo(netdev, &info, &app_count); in dcbnl_build_peer_app() 993 err = ops->peer_getapptable(netdev, table); in dcbnl_build_peer_app() 1033 const struct dcbnl_rtnl_ops *ops = netdev->dcbnl_ops; in dcbnl_ieee_fill() local 1044 if (ops->ieee_getets) { in dcbnl_ieee_fill() 1047 err = ops->ieee_getets(netdev, &ets); in dcbnl_ieee_fill() 1053 if (ops->ieee_getmaxrate) { in dcbnl_ieee_fill() 1056 err = ops->ieee_getmaxrate(netdev, &maxrate); in dcbnl_ieee_fill() 1065 if (ops->ieee_getpfc) { in dcbnl_ieee_fill() 1068 err = ops->ieee_getpfc(netdev, &pfc); in dcbnl_ieee_fill() [all …]
|
/net/8021q/ |
D | vlan_dev.c | 389 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_ioctl() local 400 if (netif_device_present(real_dev) && ops->ndo_do_ioctl) in vlan_dev_ioctl() 401 err = ops->ndo_do_ioctl(real_dev, &ifrr, cmd); in vlan_dev_ioctl() 414 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_neigh_setup() local 417 if (netif_device_present(real_dev) && ops->ndo_neigh_setup) in vlan_dev_neigh_setup() 418 err = ops->ndo_neigh_setup(real_dev, pa); in vlan_dev_neigh_setup() 428 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_ddp_setup() local 431 if (ops->ndo_fcoe_ddp_setup) in vlan_dev_fcoe_ddp_setup() 432 rc = ops->ndo_fcoe_ddp_setup(real_dev, xid, sgl, sgc); in vlan_dev_fcoe_ddp_setup() 440 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_ddp_done() local [all …]
|