/net/netfilter/ |
D | nf_sockopt.c | 27 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 …]
|
D | nft_compat.c | 72 struct xt_target *target = expr->ops->data; in nft_target_eval_xt() 98 struct xt_target *target = expr->ops->data; in nft_target_eval_bridge() 167 const struct nf_hook_ops *ops = &basechain->ops; in nft_target_set_tgchk_param() local 169 par->hook_mask = 1 << ops->hooknum; in nft_target_set_tgchk_param() 221 struct xt_target *target = expr->ops->data; in nft_target_init() 253 struct xt_target *target = expr->ops->data; in nft_target_destroy() 266 kfree(expr->ops); in nft_target_destroy() 289 const struct xt_target *target = expr->ops->data; in nft_target_dump() 308 struct xt_target *target = expr->ops->data; in nft_target_validate() 315 const struct nf_hook_ops *ops = &basechain->ops; in nft_target_validate() local [all …]
|
/net/dsa/ |
D | master.c | 14 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_regs_len() local 20 if (ops->get_regs_len) { in dsa_master_get_regs_len() 21 len = ops->get_regs_len(dev); in dsa_master_get_regs_len() 30 if (ds->ops->get_regs_len) { in dsa_master_get_regs_len() 31 len = ds->ops->get_regs_len(ds, port); in dsa_master_get_regs_len() 44 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_regs() local 51 if (ops->get_regs_len && ops->get_regs) { in dsa_master_get_regs() 52 len = ops->get_regs_len(dev); in dsa_master_get_regs() 56 ops->get_regs(dev, regs, data); in dsa_master_get_regs() 66 if (ds->ops->get_regs_len && ds->ops->get_regs) { in dsa_master_get_regs() [all …]
|
D | switch.c | 49 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() 58 if (ds->index == info->sw_index && ds->ops->port_bridge_join) in dsa_switch_bridge_join() 59 return ds->ops->port_bridge_join(ds, info->port, info->br); in dsa_switch_bridge_join() 61 if (ds->index != info->sw_index && ds->ops->crosschip_bridge_join) in dsa_switch_bridge_join() 62 return ds->ops->crosschip_bridge_join(ds, info->sw_index, in dsa_switch_bridge_join() 74 if (ds->index == info->sw_index && ds->ops->port_bridge_leave) in dsa_switch_bridge_leave() 75 ds->ops->port_bridge_leave(ds, info->port, info->br); in dsa_switch_bridge_leave() 77 if (ds->index != info->sw_index && ds->ops->crosschip_bridge_leave) in dsa_switch_bridge_leave() 78 ds->ops->crosschip_bridge_leave(ds, info->sw_index, info->port, in dsa_switch_bridge_leave() [all …]
|
D | port.c | 33 return ds->ops->port_stp_state_set ? 0 : -EOPNOTSUPP; in dsa_port_set_state() 35 if (ds->ops->port_stp_state_set) in dsa_port_set_state() 36 ds->ops->port_stp_state_set(ds, port, state); in dsa_port_set_state() 38 if (ds->ops->port_fast_age) { in dsa_port_set_state() 49 ds->ops->port_fast_age(ds, port); in dsa_port_set_state() 72 if (ds->ops->port_enable) { in dsa_port_enable() 73 err = ds->ops->port_enable(ds, port, phy); in dsa_port_enable() 92 if (ds->ops->port_disable) in dsa_port_disable() 93 ds->ops->port_disable(ds, port); in dsa_port_disable() 196 if (!ds->ops->port_vlan_filtering) in dsa_port_vlan_filtering() [all …]
|
D | dsa.c | 82 const char *dsa_tag_protocol_to_str(const struct dsa_device_ops *ops) in dsa_tag_protocol_to_str() argument 84 return ops->name; in dsa_tag_protocol_to_str() 90 const struct dsa_device_ops *ops; in dsa_tag_driver_get() local 101 ops = dsa_tag_driver->ops; in dsa_tag_driver_get() 102 if (ops->proto == tag_protocol) { in dsa_tag_driver_get() 110 ops = ERR_PTR(-ENOPROTOOPT); in dsa_tag_driver_get() 112 ops = ERR_PTR(-ENOPROTOOPT); in dsa_tag_driver_get() 117 return ops; in dsa_tag_driver_get() 120 void dsa_tag_driver_put(const struct dsa_device_ops *ops) in dsa_tag_driver_put() argument 126 if (dsa_tag_driver->ops == ops) { in dsa_tag_driver_put() [all …]
|
/net/core/ |
D | fib_rules.c | 41 int fib_default_rule_add(struct fib_rules_ops *ops, in fib_default_rule_add() argument 46 r = kzalloc(ops->rule_size, GFP_KERNEL); in fib_default_rule_add() 56 r->fr_net = ops->fro_net; in fib_default_rule_add() 64 list_add_tail(&r->list, &ops->rules_list); in fib_default_rule_add() 69 static u32 fib_default_rule_pref(struct fib_rules_ops *ops) in fib_default_rule_pref() argument 74 if (!list_empty(&ops->rules_list)) { in fib_default_rule_pref() 75 pos = ops->rules_list.next; in fib_default_rule_pref() 76 if (pos->next != &ops->rules_list) { in fib_default_rule_pref() 87 struct fib_rules_ops *ops, struct nlmsghdr *nlh, 92 struct fib_rules_ops *ops; in lookup_rules_ops() local [all …]
|
D | lwtunnel.c | 70 int lwtunnel_encap_add_ops(const struct lwtunnel_encap_ops *ops, in lwtunnel_encap_add_ops() argument 78 NULL, ops) ? 0 : -1; in lwtunnel_encap_add_ops() 82 int lwtunnel_encap_del_ops(const struct lwtunnel_encap_ops *ops, in lwtunnel_encap_del_ops() argument 93 ops, NULL) == ops) ? 0 : -1; in lwtunnel_encap_del_ops() 106 const struct lwtunnel_encap_ops *ops; in lwtunnel_build_state() local 119 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_build_state() 120 if (likely(ops && ops->build_state && try_module_get(ops->owner))) in lwtunnel_build_state() 125 ret = ops->build_state(encap, family, cfg, lws, extack); in lwtunnel_build_state() 127 module_put(ops->owner); in lwtunnel_build_state() 142 const struct lwtunnel_encap_ops *ops; in lwtunnel_valid_encap_type() local [all …]
|
D | net_namespace.c | 121 static int ops_init(const struct pernet_operations *ops, struct net *net) in ops_init() argument 126 if (ops->id && ops->size) { in ops_init() 127 data = kzalloc(ops->size, GFP_KERNEL); in ops_init() 131 err = net_assign_generic(net, *ops->id, data); in ops_init() 136 if (ops->init) in ops_init() 137 err = ops->init(net); in ops_init() 148 static void ops_free(const struct pernet_operations *ops, struct net *net) in ops_free() argument 150 if (ops->id && ops->size) { in ops_free() 151 kfree(net_generic(net, *ops->id)); in ops_free() 155 static void ops_pre_exit_list(const struct pernet_operations *ops, in ops_pre_exit_list() argument [all …]
|
D | fib_notifier.c | 45 struct fib_notifier_ops *ops; in fib_seq_sum() local 54 list_for_each_entry_rcu(ops, &fn_net->fib_notifier_ops, list) { in fib_seq_sum() 55 if (!try_module_get(ops->owner)) in fib_seq_sum() 57 fib_seq += ops->fib_seq_read(net); in fib_seq_sum() 58 module_put(ops->owner); in fib_seq_sum() 71 struct fib_notifier_ops *ops; in fib_net_dump() local 73 list_for_each_entry_rcu(ops, &fn_net->fib_notifier_ops, list) { in fib_net_dump() 76 if (!try_module_get(ops->owner)) in fib_net_dump() 78 err = ops->fib_dump(net, nb); in fib_net_dump() 79 module_put(ops->owner); in fib_net_dump() [all …]
|
D | dst.c | 47 void dst_init(struct dst_entry *dst, struct dst_ops *ops, in dst_init() argument 54 dst->ops = ops; in dst_init() 75 dst_entries_add(ops, 1); in dst_init() 79 void *dst_alloc(struct dst_ops *ops, struct net_device *dev, in dst_alloc() argument 84 if (ops->gc && dst_entries_get_fast(ops) > ops->gc_thresh) { in dst_alloc() 85 if (ops->gc(ops)) { in dst_alloc() 93 dst = kmem_cache_alloc(ops->kmem_cachep, GFP_ATOMIC); in dst_alloc() 97 dst_init(dst, ops, dev, initial_ref, initial_obsolete, flags); in dst_alloc() 117 dst_entries_add(dst->ops, -1); in dst_destroy() 119 if (dst->ops->destroy) in dst_destroy() [all …]
|
/net/netlabel/ |
D | netlabel_calipso.c | 345 .ops = netlbl_calipso_ops, 375 netlbl_calipso_ops_register(const struct netlbl_calipso_ops *ops) in netlbl_calipso_ops_register() argument 377 return xchg(&calipso_ops, ops); in netlbl_calipso_ops_register() 403 const struct netlbl_calipso_ops *ops = netlbl_calipso_ops_get(); in calipso_doi_add() local 405 if (ops) in calipso_doi_add() 406 ret_val = ops->doi_add(doi_def, audit_info); in calipso_doi_add() 420 const struct netlbl_calipso_ops *ops = netlbl_calipso_ops_get(); in calipso_doi_free() local 422 if (ops) in calipso_doi_free() 423 ops->doi_free(doi_def); in calipso_doi_free() 440 const struct netlbl_calipso_ops *ops = netlbl_calipso_ops_get(); in calipso_doi_remove() local [all …]
|
/net/mac80211/ |
D | driver-ops.h | 36 local->ops->tx(&local->hw, control, skb); in drv_tx() 42 if (local->ops->sync_rx_queues) { in drv_sync_rx_queues() 44 local->ops->sync_rx_queues(&local->hw); in drv_sync_rx_queues() 53 if (local->ops->get_et_strings) { in drv_get_et_strings() 55 local->ops->get_et_strings(&local->hw, &sdata->vif, sset, data); in drv_get_et_strings() 65 if (local->ops->get_et_stats) { in drv_get_et_stats() 67 local->ops->get_et_stats(&local->hw, &sdata->vif, stats, data); in drv_get_et_stats() 77 if (local->ops->get_et_sset_count) { in drv_get_et_sset_count() 79 rv = local->ops->get_et_sset_count(&local->hw, &sdata->vif, in drv_get_et_sset_count() 98 ret = local->ops->suspend(&local->hw, wowlan); in drv_suspend() [all …]
|
D | driver-ops.c | 23 ret = local->ops->start(&local->hw); in drv_start() 40 local->ops->stop(&local->hw); in drv_stop() 66 ret = local->ops->add_interface(&local->hw, &sdata->vif); in drv_add_interface() 87 ret = local->ops->change_interface(&local->hw, &sdata->vif, type, p2p); in drv_change_interface() 101 local->ops->remove_interface(&local->hw, &sdata->vif); in drv_remove_interface() 122 if (local->ops->sta_state) { in drv_sta_state() 123 ret = local->ops->sta_state(&local->hw, &sdata->vif, &sta->sta, in drv_sta_state() 152 if (local->ops->sta_set_txpwr) in drv_sta_set_txpwr() 153 ret = local->ops->sta_set_txpwr(&local->hw, &sdata->vif, in drv_sta_set_txpwr() 172 if (local->ops->sta_rc_update) in drv_sta_rc_update() [all …]
|
/net/wireless/ |
D | rdev-ops.h | 15 ret = rdev->ops->suspend(&rdev->wiphy, wowlan); in rdev_suspend() 24 ret = rdev->ops->resume(&rdev->wiphy); in rdev_resume() 33 rdev->ops->set_wakeup(&rdev->wiphy, enabled); in rdev_set_wakeup() 45 ret = rdev->ops->add_virtual_intf(&rdev->wiphy, name, name_assign_type, in rdev_add_virtual_intf() 57 ret = rdev->ops->del_virtual_intf(&rdev->wiphy, wdev); in rdev_del_virtual_intf() 69 ret = rdev->ops->change_virtual_intf(&rdev->wiphy, dev, type, params); in rdev_change_virtual_intf() 82 ret = rdev->ops->add_key(&rdev->wiphy, netdev, key_index, pairwise, in rdev_add_key() 95 ret = rdev->ops->get_key(&rdev->wiphy, netdev, key_index, pairwise, in rdev_get_key() 107 ret = rdev->ops->del_key(&rdev->wiphy, netdev, key_index, pairwise, in rdev_del_key() 121 ret = rdev->ops->set_default_key(&rdev->wiphy, netdev, key_index, in rdev_set_default_key() [all …]
|
D | lib80211.c | 39 struct lib80211_crypto_ops *ops; member 77 if (crypt->ops) { in lib80211_crypt_info_free() 78 crypt->ops->deinit(crypt->priv); in lib80211_crypt_info_free() 79 module_put(crypt->ops->owner); in lib80211_crypt_info_free() 101 if (entry->ops) { in lib80211_crypt_deinit_entries() 102 entry->ops->deinit(entry->priv); in lib80211_crypt_deinit_entries() 103 module_put(entry->ops->owner); in lib80211_crypt_deinit_entries() 166 int lib80211_register_crypto_ops(struct lib80211_crypto_ops *ops) in lib80211_register_crypto_ops() argument 175 alg->ops = ops; in lib80211_register_crypto_ops() 182 ops->name); in lib80211_register_crypto_ops() [all …]
|
D | core.c | 398 struct wiphy *wiphy_new_nm(const struct cfg80211_ops *ops, int sizeof_priv, in wiphy_new_nm() argument 406 WARN_ON(ops->add_key && (!ops->del_key || !ops->set_default_key)); in wiphy_new_nm() 407 WARN_ON(ops->auth && (!ops->assoc || !ops->deauth || !ops->disassoc)); in wiphy_new_nm() 408 WARN_ON(ops->connect && !ops->disconnect); in wiphy_new_nm() 409 WARN_ON(ops->join_ibss && !ops->leave_ibss); in wiphy_new_nm() 410 WARN_ON(ops->add_virtual_intf && !ops->del_virtual_intf); in wiphy_new_nm() 411 WARN_ON(ops->add_station && !ops->del_station); in wiphy_new_nm() 412 WARN_ON(ops->add_mpath && !ops->del_mpath); in wiphy_new_nm() 413 WARN_ON(ops->join_mesh && !ops->leave_mesh); in wiphy_new_nm() 414 WARN_ON(ops->start_p2p_device && !ops->stop_p2p_device); in wiphy_new_nm() [all …]
|
/net/mac802154/ |
D | driver-ops.h | 16 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() 36 ret = local->ops->start(&local->hw); in drv_start() 46 local->ops->stop(&local->hw); in drv_stop() 66 ret = local->ops->set_channel(&local->hw, page, channel); in drv_set_channel() 77 if (!local->ops->set_txpower) { in drv_set_tx_power() 83 ret = local->ops->set_txpower(&local->hw, mbm); in drv_set_tx_power() 95 if (!local->ops->set_cca_mode) { in drv_set_cca_mode() 101 ret = local->ops->set_cca_mode(&local->hw, cca); in drv_set_cca_mode() 112 if (!local->ops->set_lbt) { in drv_set_lbt_mode() [all …]
|
/net/ieee802154/ |
D | rdev-ops.h | 16 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/sunrpc/ |
D | auth.c | 109 rpcauth_register(const struct rpc_authops *ops) in rpcauth_register() argument 114 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) in rpcauth_register() 116 old = cmpxchg((const struct rpc_authops ** __force)&auth_flavors[flavor], NULL, ops); in rpcauth_register() 117 if (old == NULL || old == ops) in rpcauth_register() 124 rpcauth_unregister(const struct rpc_authops *ops) in rpcauth_unregister() argument 129 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) in rpcauth_unregister() 132 old = cmpxchg((const struct rpc_authops ** __force)&auth_flavors[flavor], ops, NULL); in rpcauth_unregister() 133 if (old == ops || old == NULL) in rpcauth_unregister() 142 const struct rpc_authops *ops; in rpcauth_get_authops() local 148 ops = rcu_dereference(auth_flavors[flavor]); in rpcauth_get_authops() [all …]
|
/net/ceph/ |
D | auth.c | 68 if (ac->ops) in ceph_auth_destroy() 69 ac->ops->destroy(ac); in ceph_auth_destroy() 80 if (ac->ops && !ac->negotiating) in ceph_auth_reset() 81 ac->ops->reset(ac); in ceph_auth_reset() 162 ret = ac->ops->build_request(ac, p + sizeof(u32), end); in ceph_build_auth_request() 165 ac->ops->name); in ceph_build_auth_request() 227 ac->ops->destroy(ac); in ceph_handle_auth_reply() 229 ac->ops = NULL; in ceph_handle_auth_reply() 243 ret = ac->ops->handle_reply(ac, result, payload, payload_end); in ceph_handle_auth_reply() 247 pr_err("auth method '%s' error %d\n", ac->ops->name, ret); in ceph_handle_auth_reply() [all …]
|
/net/openvswitch/ |
D | vport.c | 61 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() 118 struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *ops, in ovs_vport_alloc() argument 136 vport->ops = ops; in ovs_vport_alloc() 170 struct vport_ops *ops; in ovs_vport_lookup() local 172 list_for_each_entry(ops, &vport_ops_list, list) in ovs_vport_lookup() 173 if (ops->type == parms->type) in ovs_vport_lookup() [all …]
|
/net/sched/ |
D | ematch.c | 122 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/nfc/hci/ |
D | core.c | 250 if (hdev->ops->cmd_received) in nfc_hci_cmd_received() 251 hdev->ops->cmd_received(hdev, pipe, cmd, skb); in nfc_hci_cmd_received() 331 if (hdev->ops->complete_target_discovered) { in nfc_hci_target_discovered() 332 r = hdev->ops->complete_target_discovered(hdev, gate, in nfc_hci_target_discovered() 342 if (hdev->ops->target_from_gate) in nfc_hci_target_discovered() 343 r = hdev->ops->target_from_gate(hdev, gate, targets); in nfc_hci_target_discovered() 349 if (hdev->ops->complete_target_discovered) { in nfc_hci_target_discovered() 350 r = hdev->ops->complete_target_discovered(hdev, gate, in nfc_hci_target_discovered() 385 if (hdev->ops->event_received) { in nfc_hci_event_received() 386 r = hdev->ops->event_received(hdev, pipe, event, skb); in nfc_hci_event_received() [all …]
|
/net/nfc/nci/ |
D | uart.c | 92 if (nu->ops.tx_start) in nci_uart_write_work() 93 nu->ops.tx_start(nu); in nci_uart_write_work() 99 len = tty->ops->write(tty, skb->data, skb->len); in nci_uart_write_work() 111 if (nu->ops.tx_done && nci_uart_queue_empty(nu)) in nci_uart_write_work() 112 nu->ops.tx_done(nu); in nci_uart_write_work() 139 ret = nu->ops.open(nu); in nci_uart_set_driver() 144 nu->ops.close(nu); in nci_uart_set_driver() 168 if (!tty->ops->write) in nci_uart_tty_open() 200 nu->ops.close(nu); in nci_uart_tty_close() 253 nu->ops.recv_buf(nu, (void *)data, flags, count); in nci_uart_tty_receive() [all …]
|