Lines Matching refs:bv
66 struct nfp_bpf_vnic *bv; in nfp_bpf_vnic_alloc() local
79 bv = kzalloc(sizeof(*bv), GFP_KERNEL); in nfp_bpf_vnic_alloc()
80 if (!bv) in nfp_bpf_vnic_alloc()
82 nn->app_priv = bv; in nfp_bpf_vnic_alloc()
88 bv->start_off = nn_readw(nn, NFP_NET_CFG_BPF_START); in nfp_bpf_vnic_alloc()
89 bv->tgt_done = nn_readw(nn, NFP_NET_CFG_BPF_DONE); in nfp_bpf_vnic_alloc()
99 struct nfp_bpf_vnic *bv = nn->app_priv; in nfp_bpf_vnic_free() local
101 WARN_ON(bv->tc_prog); in nfp_bpf_vnic_free()
102 kfree(bv); in nfp_bpf_vnic_free()
111 struct nfp_bpf_vnic *bv; in nfp_bpf_setup_tc_block_cb() local
143 bv = nn->app_priv; in nfp_bpf_setup_tc_block_cb()
147 if (bv->tc_prog != oldprog) { in nfp_bpf_setup_tc_block_cb()
158 bv->tc_prog = cls_bpf->prog; in nfp_bpf_setup_tc_block_cb()
159 nn->port->tc_offload_cnt = !!bv->tc_prog; in nfp_bpf_setup_tc_block_cb()
185 struct nfp_bpf_vnic *bv; in nfp_bpf_check_mtu() local
194 bv = nn->app_priv; in nfp_bpf_check_mtu()
195 prog = bv->tc_prog; in nfp_bpf_check_mtu()