Home
last modified time | relevance | path

Searched refs:ulp_ops (Results 1 – 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/net/ipv4/
Dtcp_ulp.c87 struct tcp_ulp_ops *ulp_ops; in tcp_get_available_ulp() local
92 list_for_each_entry_rcu(ulp_ops, &tcp_ulp_list, list) { in tcp_get_available_ulp()
95 offs == 0 ? "" : " ", ulp_ops->name); in tcp_get_available_ulp()
130 static int __tcp_set_ulp(struct sock *sk, const struct tcp_ulp_ops *ulp_ops) in __tcp_set_ulp() argument
140 if (!ulp_ops->clone && sk->sk_state == TCP_LISTEN) in __tcp_set_ulp()
143 err = ulp_ops->init(sk); in __tcp_set_ulp()
147 icsk->icsk_ulp_ops = ulp_ops; in __tcp_set_ulp()
150 module_put(ulp_ops->owner); in __tcp_set_ulp()
156 const struct tcp_ulp_ops *ulp_ops; in tcp_set_ulp() local
160 ulp_ops = __tcp_ulp_find_autoload(name); in tcp_set_ulp()
[all …]
Dtcp_diag.c86 const struct tcp_ulp_ops *ulp_ops) in tcp_diag_put_ulp() argument
95 err = nla_put_string(skb, INET_ULP_INFO_NAME, ulp_ops->name); in tcp_diag_put_ulp()
99 if (ulp_ops->get_info) in tcp_diag_put_ulp()
100 err = ulp_ops->get_info(sk, skb); in tcp_diag_put_ulp()
133 const struct tcp_ulp_ops *ulp_ops; in tcp_diag_get_aux() local
135 ulp_ops = icsk->icsk_ulp_ops; in tcp_diag_get_aux()
136 if (ulp_ops) in tcp_diag_get_aux()
137 err = tcp_diag_put_ulp(skb, sk, ulp_ops); in tcp_diag_get_aux()
168 const struct tcp_ulp_ops *ulp_ops; in tcp_diag_get_aux_size() local
170 ulp_ops = icsk->icsk_ulp_ops; in tcp_diag_get_aux_size()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ulp.c28 struct bnxt_ulp_ops *ulp_ops, void *handle) in bnxt_register_dev() argument
39 if (rcu_access_pointer(ulp->ulp_ops)) { in bnxt_register_dev()
54 rcu_assign_pointer(ulp->ulp_ops, ulp_ops); in bnxt_register_dev()
76 if (!rcu_access_pointer(ulp->ulp_ops)) { in bnxt_unregister_dev()
86 RCU_INIT_POINTER(ulp->ulp_ops, NULL); in bnxt_unregister_dev()
287 ops = rtnl_dereference(ulp->ulp_ops); in bnxt_ulp_stop()
311 ops = rtnl_dereference(ulp->ulp_ops); in bnxt_ulp_start()
331 ops = rcu_dereference(ulp->ulp_ops); in bnxt_ulp_sriov_cfg()
355 ops = rtnl_dereference(ulp->ulp_ops); in bnxt_ulp_shutdown()
376 ops = rtnl_dereference(ulp->ulp_ops); in bnxt_ulp_irq_stop()
[all …]
Dbnxt_ulp.h50 struct bnxt_ulp_ops __rcu *ulp_ops; member
95 if (edev && rcu_access_pointer(edev->ulp_tbl[ulp_id].ulp_ops)) in bnxt_ulp_registered()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/
Dcnic.c178 static inline void ulp_get(struct cnic_ulp_ops *ulp_ops) in ulp_get() argument
180 atomic_inc(&ulp_ops->ref_count); in ulp_get()
183 static inline void ulp_put(struct cnic_ulp_ops *ulp_ops) in ulp_put() argument
185 atomic_dec(&ulp_ops->ref_count); in ulp_put()
325 struct cnic_ulp_ops *ulp_ops; in cnic_send_nlmsg() local
355 ulp_ops = rcu_dereference(cp->ulp_ops[CNIC_ULP_ISCSI]); in cnic_send_nlmsg()
356 if (ulp_ops) in cnic_send_nlmsg()
357 rc = ulp_ops->iscsi_nl_send_msg( in cnic_send_nlmsg()
393 if (!rcu_access_pointer(cp->ulp_ops[CNIC_ULP_L4])) { in cnic_iscsi_nl_msg_recv()
473 int cnic_register_driver(int ulp_type, struct cnic_ulp_ops *ulp_ops) in cnic_register_driver() argument
[all …]
Dcnic_if.h384 int cnic_register_driver(int ulp_type, struct cnic_ulp_ops *ulp_ops);
Dcnic.h217 struct cnic_ulp_ops __rcu *ulp_ops[MAX_CNIC_ULP_TYPE]; member