Home
last modified time | relevance | path

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

12345678910>>...16

/net/netfilter/
Dnf_sockopt.c27 struct nf_sockopt_ops *ops; in nf_register_sockopt() local
31 list_for_each_entry(ops, &nf_sockopts, list) { in nf_register_sockopt()
32 if (ops->pf == reg->pf in nf_register_sockopt()
33 && (overlap(ops->set_optmin, ops->set_optmax, in nf_register_sockopt()
35 || overlap(ops->get_optmin, ops->get_optmax, in nf_register_sockopt()
38 ops->set_optmin, ops->set_optmax, in nf_register_sockopt()
39 ops->get_optmin, ops->get_optmax, in nf_register_sockopt()
65 struct nf_sockopt_ops *ops; in nf_sockopt_find() local
68 list_for_each_entry(ops, &nf_sockopts, list) { in nf_sockopt_find()
69 if (ops->pf == pf) { in nf_sockopt_find()
[all …]
Dnft_compat.c78 struct xt_target *target = expr->ops->data; in nft_target_eval_xt()
105 struct xt_target *target = expr->ops->data; in nft_target_eval_bridge()
175 const struct nf_hook_ops *ops = &basechain->ops; in nft_target_set_tgchk_param() local
177 par->hook_mask = 1 << ops->hooknum; in nft_target_set_tgchk_param()
247 struct xt_target *target = expr->ops->data; in nft_target_init()
295 kfree(expr->ops); in __nft_mt_tg_destroy()
301 struct xt_target *target = expr->ops->data; in nft_target_destroy()
337 const struct xt_target *target = expr->ops->data; in nft_target_dump()
356 struct xt_target *target = expr->ops->data; in nft_target_validate()
379 const struct nf_hook_ops *ops = &basechain->ops; in nft_target_validate() local
[all …]
/net/netlabel/
Dnetlabel_calipso.c68 netlbl_calipso_ops_register(const struct netlbl_calipso_ops *ops) in netlbl_calipso_ops_register() argument
70 return xchg(&calipso_ops, ops); in netlbl_calipso_ops_register()
124 const struct netlbl_calipso_ops *ops = netlbl_calipso_ops_get(); in netlbl_calipso_add() local
130 if (!ops) in netlbl_calipso_add()
408 const struct netlbl_calipso_ops *ops = netlbl_calipso_ops_get(); in calipso_doi_add() local
410 if (ops) in calipso_doi_add()
411 ret_val = ops->doi_add(doi_def, audit_info); in calipso_doi_add()
425 const struct netlbl_calipso_ops *ops = netlbl_calipso_ops_get(); in calipso_doi_free() local
427 if (ops) in calipso_doi_free()
428 ops->doi_free(doi_def); in calipso_doi_free()
[all …]
/net/core/
Dlwtunnel.c80 int lwtunnel_encap_add_ops(const struct lwtunnel_encap_ops *ops, in lwtunnel_encap_add_ops() argument
88 NULL, ops) ? 0 : -1; in lwtunnel_encap_add_ops()
92 int lwtunnel_encap_del_ops(const struct lwtunnel_encap_ops *ops, in lwtunnel_encap_del_ops() argument
103 ops, NULL) == ops) ? 0 : -1; in lwtunnel_encap_del_ops()
116 const struct lwtunnel_encap_ops *ops; in lwtunnel_build_state() local
129 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_build_state()
130 if (likely(ops && ops->build_state && try_module_get(ops->owner))) in lwtunnel_build_state()
135 ret = ops->build_state(net, encap, family, cfg, lws, extack); in lwtunnel_build_state()
137 module_put(ops->owner); in lwtunnel_build_state()
152 const struct lwtunnel_encap_ops *ops; in lwtunnel_valid_encap_type() local
[all …]
Dfib_rules.c55 int fib_default_rule_add(struct fib_rules_ops *ops, in fib_default_rule_add() argument
60 r = kzalloc(ops->rule_size, GFP_KERNEL_ACCOUNT); in fib_default_rule_add()
70 r->fr_net = ops->fro_net; in fib_default_rule_add()
78 list_add_tail(&r->list, &ops->rules_list); in fib_default_rule_add()
83 static u32 fib_default_rule_pref(struct fib_rules_ops *ops) in fib_default_rule_pref() argument
88 if (!list_empty(&ops->rules_list)) { in fib_default_rule_pref()
89 pos = ops->rules_list.next; in fib_default_rule_pref()
90 if (pos->next != &ops->rules_list) { in fib_default_rule_pref()
101 struct fib_rules_ops *ops, struct nlmsghdr *nlh,
106 struct fib_rules_ops *ops; in lookup_rules_ops() local
[all …]
Dnet_namespace.c122 static int ops_init(const struct pernet_operations *ops, struct net *net) in ops_init() argument
128 if (ops->id && ops->size) { in ops_init()
129 data = kzalloc(ops->size, GFP_KERNEL); in ops_init()
133 err = net_assign_generic(net, *ops->id, data); in ops_init()
138 if (ops->init) in ops_init()
139 err = ops->init(net); in ops_init()
143 if (ops->id && ops->size) { in ops_init()
146 ng->ptr[*ops->id] = NULL; in ops_init()
156 static void ops_pre_exit_list(const struct pernet_operations *ops, in ops_pre_exit_list() argument
161 if (ops->pre_exit) { in ops_pre_exit_list()
[all …]
Dfib_notifier.c43 struct fib_notifier_ops *ops; in fib_seq_sum() local
48 list_for_each_entry_rcu(ops, &fn_net->fib_notifier_ops, list) { in fib_seq_sum()
49 if (!try_module_get(ops->owner)) in fib_seq_sum()
51 fib_seq += ops->fib_seq_read(net); in fib_seq_sum()
52 module_put(ops->owner); in fib_seq_sum()
64 struct fib_notifier_ops *ops; in fib_net_dump() local
68 list_for_each_entry_rcu(ops, &fn_net->fib_notifier_ops, list) { in fib_net_dump()
69 if (!try_module_get(ops->owner)) in fib_net_dump()
71 err = ops->fib_dump(net, nb, extack); in fib_net_dump()
72 module_put(ops->owner); in fib_net_dump()
[all …]
/net/dsa/
Dmaster.c22 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_regs_len() local
28 if (ops->get_regs_len) { in dsa_master_get_regs_len()
29 len = ops->get_regs_len(dev); in dsa_master_get_regs_len()
38 if (ds->ops->get_regs_len) { in dsa_master_get_regs_len()
39 len = ds->ops->get_regs_len(ds, port); in dsa_master_get_regs_len()
52 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_regs() local
59 if (ops->get_regs_len && ops->get_regs) { in dsa_master_get_regs()
60 len = ops->get_regs_len(dev); in dsa_master_get_regs()
64 ops->get_regs(dev, regs, data); in dsa_master_get_regs()
74 if (ds->ops->get_regs_len && ds->ops->get_regs) { in dsa_master_get_regs()
[all …]
Ddevlink.c17 if (ds->ops->devlink_info_get) in dsa_devlink_info_get()
18 return ds->ops->devlink_info_get(ds, req, extack); in dsa_devlink_info_get()
29 if (!ds->ops->devlink_sb_pool_get) in dsa_devlink_sb_pool_get()
32 return ds->ops->devlink_sb_pool_get(ds, sb_index, pool_index, in dsa_devlink_sb_pool_get()
43 if (!ds->ops->devlink_sb_pool_set) in dsa_devlink_sb_pool_set()
46 return ds->ops->devlink_sb_pool_set(ds, sb_index, pool_index, size, in dsa_devlink_sb_pool_set()
57 if (!ds->ops->devlink_sb_port_pool_get) in dsa_devlink_sb_port_pool_get()
60 return ds->ops->devlink_sb_port_pool_get(ds, port, sb_index, in dsa_devlink_sb_port_pool_get()
72 if (!ds->ops->devlink_sb_port_pool_set) in dsa_devlink_sb_port_pool_set()
75 return ds->ops->devlink_sb_port_pool_set(ds, port, sb_index, in dsa_devlink_sb_port_pool_set()
[all …]
Dtag.c36 if (!ds->ops->port_rxtstamp) in dsa_skb_defer_rx_timestamp()
51 return ds->ops->port_rxtstamp(ds, p->dp->index, skb, type); in dsa_skb_defer_rx_timestamp()
169 const char *dsa_tag_protocol_to_str(const struct dsa_device_ops *ops) in dsa_tag_protocol_to_str() argument
171 return ops->name; in dsa_tag_protocol_to_str()
179 const struct dsa_device_ops *ops = ERR_PTR(-ENOPROTOOPT); in dsa_tag_driver_get_by_name() local
186 const struct dsa_device_ops *tmp = dsa_tag_driver->ops; in dsa_tag_driver_get_by_name()
194 ops = tmp; in dsa_tag_driver_get_by_name()
199 return ops; in dsa_tag_driver_get_by_name()
205 const struct dsa_device_ops *ops; in dsa_tag_driver_get_by_id() local
212 ops = dsa_tag_driver->ops; in dsa_tag_driver_get_by_id()
[all …]
Dswitch.c49 if (ds->ops->set_ageing_time) in dsa_switch_ageing_time()
50 return ds->ops->set_ageing_time(ds, ageing_time); in dsa_switch_ageing_time()
67 if (!ds->ops->port_change_mtu) in dsa_switch_mtu()
72 ret = ds->ops->port_change_mtu(ds, dp->index, in dsa_switch_mtu()
88 if (!ds->ops->port_bridge_join) in dsa_switch_bridge_join()
91 err = ds->ops->port_bridge_join(ds, info->dp->index, in dsa_switch_bridge_join()
99 if (info->dp->ds != ds && ds->ops->crosschip_bridge_join) { in dsa_switch_bridge_join()
100 err = ds->ops->crosschip_bridge_join(ds, in dsa_switch_bridge_join()
116 if (info->dp->ds == ds && ds->ops->port_bridge_leave) in dsa_switch_bridge_leave()
117 ds->ops->port_bridge_leave(ds, info->dp->index, info->bridge); in dsa_switch_bridge_leave()
[all …]
Dport.c59 if (!ds->ops->port_fast_age) in dsa_port_fast_age()
62 ds->ops->port_fast_age(ds, dp->index); in dsa_port_fast_age()
73 if (!ds->ops->port_vlan_fast_age) in dsa_port_vlan_fast_age()
76 err = ds->ops->port_vlan_fast_age(ds, dp->index, vid); in dsa_port_vlan_fast_age()
110 if (!ds->ops->port_bridge_flags || !ds->ops->port_pre_bridge_flags) in dsa_port_can_configure_learning()
113 err = ds->ops->port_pre_bridge_flags(ds, dp->index, flags, NULL); in dsa_port_can_configure_learning()
123 if (!ds->ops->port_hwtstamp_get || !ds->ops->port_hwtstamp_set) in dsa_port_supports_hwtstamp()
131 err = ds->ops->port_hwtstamp_get(ds, dp->index, &ifr); in dsa_port_supports_hwtstamp()
140 if (!ds->ops->port_stp_state_set) in dsa_port_set_state()
143 ds->ops->port_stp_state_set(ds, port, state); in dsa_port_set_state()
[all …]
/net/mac80211/
Ddriver-ops.h37 local->ops->tx(&local->hw, control, skb); in drv_tx()
43 if (local->ops->sync_rx_queues) { in drv_sync_rx_queues()
45 local->ops->sync_rx_queues(&local->hw); in drv_sync_rx_queues()
54 if (local->ops->get_et_strings) { in drv_get_et_strings()
56 local->ops->get_et_strings(&local->hw, &sdata->vif, sset, data); in drv_get_et_strings()
66 if (local->ops->get_et_stats) { in drv_get_et_stats()
68 local->ops->get_et_stats(&local->hw, &sdata->vif, stats, data); in drv_get_et_stats()
78 if (local->ops->get_et_sset_count) { in drv_get_et_sset_count()
80 rv = local->ops->get_et_sset_count(&local->hw, &sdata->vif, in drv_get_et_sset_count()
99 ret = local->ops->suspend(&local->hw, wowlan); in drv_suspend()
[all …]
Ddriver-ops.c26 ret = local->ops->start(&local->hw); in drv_start()
43 local->ops->stop(&local->hw); in drv_stop()
69 ret = local->ops->add_interface(&local->hw, &sdata->vif); in drv_add_interface()
90 ret = local->ops->change_interface(&local->hw, &sdata->vif, type, p2p); in drv_change_interface()
104 local->ops->remove_interface(&local->hw, &sdata->vif); in drv_remove_interface()
125 if (local->ops->sta_state) { in drv_sta_state()
126 ret = local->ops->sta_state(&local->hw, &sdata->vif, &sta->sta, in drv_sta_state()
158 if (local->ops->sta_set_txpwr) in drv_sta_set_txpwr()
159 ret = local->ops->sta_set_txpwr(&local->hw, &sdata->vif, in drv_sta_set_txpwr()
178 if (local->ops->sta_rc_update) in drv_sta_rc_update()
[all …]
/net/wireless/
Drdev-ops.h20 ret = rdev->ops->suspend(&rdev->wiphy, wowlan); in rdev_suspend()
29 ret = rdev->ops->resume(&rdev->wiphy); in rdev_resume()
38 rdev->ops->set_wakeup(&rdev->wiphy, enabled); in rdev_set_wakeup()
50 ret = rdev->ops->add_virtual_intf(&rdev->wiphy, name, name_assign_type, in rdev_add_virtual_intf()
62 ret = rdev->ops->del_virtual_intf(&rdev->wiphy, wdev); in rdev_del_virtual_intf()
74 ret = rdev->ops->change_virtual_intf(&rdev->wiphy, dev, type, params); in rdev_change_virtual_intf()
87 ret = rdev->ops->add_key(&rdev->wiphy, netdev, link_id, key_index, in rdev_add_key()
102 ret = rdev->ops->get_key(&rdev->wiphy, netdev, link_id, key_index, in rdev_get_key()
115 ret = rdev->ops->del_key(&rdev->wiphy, netdev, link_id, key_index, in rdev_del_key()
129 ret = rdev->ops->set_default_key(&rdev->wiphy, netdev, link_id, in rdev_set_default_key()
[all …]
Dlib80211.c37 struct lib80211_crypto_ops *ops; member
75 if (crypt->ops) { in lib80211_crypt_info_free()
76 crypt->ops->deinit(crypt->priv); in lib80211_crypt_info_free()
77 module_put(crypt->ops->owner); in lib80211_crypt_info_free()
99 if (entry->ops) { in lib80211_crypt_deinit_entries()
100 entry->ops->deinit(entry->priv); in lib80211_crypt_deinit_entries()
101 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/8021q/
Dvlan_dev.c380 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_ioctl() local
391 if (netif_device_present(real_dev) && ops->ndo_eth_ioctl) in vlan_dev_ioctl()
392 err = ops->ndo_eth_ioctl(real_dev, &ifrr, cmd); in vlan_dev_ioctl()
405 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_neigh_setup() local
408 if (netif_device_present(real_dev) && ops->ndo_neigh_setup) in vlan_dev_neigh_setup()
409 err = ops->ndo_neigh_setup(real_dev, pa); in vlan_dev_neigh_setup()
419 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_ddp_setup() local
422 if (ops->ndo_fcoe_ddp_setup) in vlan_dev_fcoe_ddp_setup()
423 rc = ops->ndo_fcoe_ddp_setup(real_dev, xid, sgl, sgc); in vlan_dev_fcoe_ddp_setup()
431 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_ddp_done() local
[all …]
/net/ieee802154/
Drdev-ops.h16 return rdev->ops->add_virtual_intf_deprecated(&rdev->wpan_phy, name, in rdev_add_virtual_intf_deprecated()
24 rdev->ops->del_virtual_intf_deprecated(&rdev->wpan_phy, dev); in rdev_del_virtual_intf_deprecated()
32 ret = rdev->ops->suspend(&rdev->wpan_phy); in rdev_suspend()
42 ret = rdev->ops->resume(&rdev->wpan_phy); in rdev_resume()
56 ret = rdev->ops->add_virtual_intf(&rdev->wpan_phy, name, in rdev_add_virtual_intf()
70 ret = rdev->ops->del_virtual_intf(&rdev->wpan_phy, wpan_dev); in rdev_del_virtual_intf()
81 ret = rdev->ops->set_channel(&rdev->wpan_phy, page, channel); in rdev_set_channel()
93 ret = rdev->ops->set_cca_mode(&rdev->wpan_phy, cca); in rdev_set_cca_mode()
104 ret = rdev->ops->set_cca_ed_level(&rdev->wpan_phy, ed_level); in rdev_set_cca_ed_level()
116 ret = rdev->ops->set_tx_power(&rdev->wpan_phy, power); in rdev_set_tx_power()
[all …]
/net/mac802154/
Ddriver-ops.h16 return local->ops->xmit_async(&local->hw, skb); in drv_xmit_async()
24 return local->ops->xmit_sync(&local->hw, skb); in drv_xmit_sync()
34 if (!local->ops->set_hw_addr_filt) { in drv_set_pan_id()
42 ret = local->ops->set_hw_addr_filt(&local->hw, &filt, in drv_set_pan_id()
56 if (!local->ops->set_hw_addr_filt) { in drv_set_extended_addr()
64 ret = local->ops->set_hw_addr_filt(&local->hw, &filt, in drv_set_extended_addr()
78 if (!local->ops->set_hw_addr_filt) { in drv_set_short_addr()
86 ret = local->ops->set_hw_addr_filt(&local->hw, &filt, in drv_set_short_addr()
100 if (!local->ops->set_hw_addr_filt) { in drv_set_pan_coord()
108 ret = local->ops->set_hw_addr_filt(&local->hw, &filt, in drv_set_pan_coord()
[all …]
/net/devlink/
Drate.c261 const struct devlink_ops *ops = devlink->ops; in devlink_nl_rate_parent_node_set() local
270 err = ops->rate_leaf_parent_set(devlink_rate, NULL, in devlink_nl_rate_parent_node_set()
274 err = ops->rate_node_parent_set(devlink_rate, NULL, in devlink_nl_rate_parent_node_set()
299 err = ops->rate_leaf_parent_set(devlink_rate, parent, in devlink_nl_rate_parent_node_set()
303 err = ops->rate_node_parent_set(devlink_rate, parent, in devlink_nl_rate_parent_node_set()
321 const struct devlink_ops *ops, in devlink_nl_rate_set() argument
333 err = ops->rate_leaf_tx_share_set(devlink_rate, devlink_rate->priv, in devlink_nl_rate_set()
336 err = ops->rate_node_tx_share_set(devlink_rate, devlink_rate->priv, in devlink_nl_rate_set()
346 err = ops->rate_leaf_tx_max_set(devlink_rate, devlink_rate->priv, in devlink_nl_rate_set()
349 err = ops->rate_node_tx_max_set(devlink_rate, devlink_rate->priv, in devlink_nl_rate_set()
[all …]
/net/sunrpc/
Dauth.c106 rpcauth_register(const struct rpc_authops *ops) in rpcauth_register() argument
111 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) in rpcauth_register()
113 old = cmpxchg((const struct rpc_authops ** __force)&auth_flavors[flavor], NULL, ops); in rpcauth_register()
114 if (old == NULL || old == ops) in rpcauth_register()
121 rpcauth_unregister(const struct rpc_authops *ops) in rpcauth_unregister() argument
126 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) in rpcauth_unregister()
129 old = cmpxchg((const struct rpc_authops ** __force)&auth_flavors[flavor], ops, NULL); in rpcauth_unregister()
130 if (old == ops || old == NULL) in rpcauth_unregister()
139 const struct rpc_authops *ops; in rpcauth_get_authops() local
145 ops = rcu_dereference(auth_flavors[flavor]); in rpcauth_get_authops()
[all …]
/net/sched/
Dematch.c122 int tcf_em_register(struct tcf_ematch_ops *ops) in tcf_em_register() argument
127 if (ops->match == NULL) in tcf_em_register()
132 if (ops->kind == e->kind) in tcf_em_register()
135 list_add_tail(&ops->link, &ematch_ops); in tcf_em_register()
154 void tcf_em_unregister(struct tcf_ematch_ops *ops) in tcf_em_unregister() argument
157 list_del(&ops->link); in tcf_em_unregister()
212 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate()
214 if (em->ops == NULL) { in tcf_em_validate()
220 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate()
221 if (em->ops) { in tcf_em_validate()
[all …]
/net/ethtool/
Dnetlink.c262 const struct ethnl_request_ops *ops; member
362 const struct ethnl_request_ops *ops, in ethnl_init_reply_data() argument
365 memset(reply_data, 0, ops->reply_data_size); in ethnl_init_reply_data()
375 const struct ethnl_request_ops *ops; in ethnl_default_doit() local
381 ops = ethnl_default_requests[cmd]; in ethnl_default_doit()
382 if (WARN_ONCE(!ops, "cmd %u has no ethnl_request_ops\n", cmd)) in ethnl_default_doit()
384 if (GENL_REQ_ATTR_CHECK(info, ops->hdr_attr)) in ethnl_default_doit()
387 req_info = kzalloc(ops->req_info_size, GFP_KERNEL); in ethnl_default_doit()
390 reply_data = kmalloc(ops->reply_data_size, GFP_KERNEL); in ethnl_default_doit()
396 ret = ethnl_default_parse(req_info, info, ops, !ops->allow_nodev_do); in ethnl_default_doit()
[all …]
/net/nfc/hci/
Dcore.c257 if (hdev->ops->cmd_received) in nfc_hci_cmd_received()
258 hdev->ops->cmd_received(hdev, pipe, cmd, skb); in nfc_hci_cmd_received()
338 if (hdev->ops->complete_target_discovered) { in nfc_hci_target_discovered()
339 r = hdev->ops->complete_target_discovered(hdev, gate, in nfc_hci_target_discovered()
349 if (hdev->ops->target_from_gate) in nfc_hci_target_discovered()
350 r = hdev->ops->target_from_gate(hdev, gate, targets); in nfc_hci_target_discovered()
356 if (hdev->ops->complete_target_discovered) { in nfc_hci_target_discovered()
357 r = hdev->ops->complete_target_discovered(hdev, gate, in nfc_hci_target_discovered()
398 if (hdev->ops->event_received) { in nfc_hci_event_received()
399 r = hdev->ops->event_received(hdev, pipe, event, skb); in nfc_hci_event_received()
[all …]
/net/openvswitch/
Dvport.c61 int __ovs_vport_ops_register(struct vport_ops *ops) in __ovs_vport_ops_register() argument
68 if (ops->type == o->type) in __ovs_vport_ops_register()
71 list_add_tail(&ops->list, &vport_ops_list); in __ovs_vport_ops_register()
79 void ovs_vport_ops_unregister(struct vport_ops *ops) in ovs_vport_ops_unregister() argument
82 list_del(&ops->list); in ovs_vport_ops_unregister()
122 struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *ops, in ovs_vport_alloc() argument
147 vport->ops = ops; in ovs_vport_alloc()
188 struct vport_ops *ops; in ovs_vport_lookup() local
190 list_for_each_entry(ops, &vport_ops_list, list) in ovs_vport_lookup()
191 if (ops->type == parms->type) in ovs_vport_lookup()
[all …]

12345678910>>...16