Home
last modified time | relevance | path

Searched refs:nn (Results 1 – 25 of 110) sorted by relevance

12345

/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_common.c84 static void nfp_net_reconfig_start(struct nfp_net *nn, u32 update) in nfp_net_reconfig_start() argument
86 nn_writel(nn, NFP_NET_CFG_UPDATE, update); in nfp_net_reconfig_start()
88 nn_pci_flush(nn); in nfp_net_reconfig_start()
89 nfp_qcp_wr_ptr_add(nn->qcp_cfg, 1); in nfp_net_reconfig_start()
90 nn->reconfig_in_progress_update = update; in nfp_net_reconfig_start()
94 static void nfp_net_reconfig_start_async(struct nfp_net *nn, u32 update) in nfp_net_reconfig_start_async() argument
96 update |= nn->reconfig_posted; in nfp_net_reconfig_start_async()
97 nn->reconfig_posted = 0; in nfp_net_reconfig_start_async()
99 nfp_net_reconfig_start(nn, update); in nfp_net_reconfig_start_async()
101 nn->reconfig_timer_active = true; in nfp_net_reconfig_start_async()
[all …]
H A Dccm_mbox.c54 static u32 nfp_ccm_mbox_max_msg(struct nfp_net *nn) in nfp_ccm_mbox_max_msg() argument
56 return round_down(nn->tlv_caps.mbox_len, 4) - in nfp_ccm_mbox_max_msg()
116 static bool nfp_ccm_mbox_is_first(struct nfp_net *nn, struct sk_buff *skb) in nfp_ccm_mbox_is_first() argument
118 return skb_queue_is_first(&nn->mbox_cmsg.queue, skb); in nfp_ccm_mbox_is_first()
121 static bool nfp_ccm_mbox_should_run(struct nfp_net *nn, struct sk_buff *skb) in nfp_ccm_mbox_should_run() argument
128 static void nfp_ccm_mbox_mark_next_runner(struct nfp_net *nn) in nfp_ccm_mbox_mark_next_runner() argument
133 skb = skb_peek(&nn->mbox_cmsg.queue); in nfp_ccm_mbox_mark_next_runner()
140 queue_work(nn->mbox_cmsg.workq, &nn->mbox_cmsg.runq_work); in nfp_ccm_mbox_mark_next_runner()
144 nfp_ccm_mbox_write_tlv(struct nfp_net *nn, u32 off, u32 type, u32 len) in nfp_ccm_mbox_write_tlv() argument
146 nn_writel(nn, off, in nfp_ccm_mbox_write_tlv()
[all …]
H A Dnfp_netvf_main.c29 struct nfp_net *nn; member
61 static void nfp_netvf_get_mac_addr(struct nfp_net *nn) in nfp_netvf_get_mac_addr() argument
65 put_unaligned_be32(nn_readl(nn, NFP_NET_CFG_MACADDR + 0), &mac_addr[0]); in nfp_netvf_get_mac_addr()
66 put_unaligned_be16(nn_readw(nn, NFP_NET_CFG_MACADDR + 6), &mac_addr[4]); in nfp_netvf_get_mac_addr()
69 eth_hw_addr_random(nn->dp.netdev); in nfp_netvf_get_mac_addr()
73 eth_hw_addr_set(nn->dp.netdev, mac_addr); in nfp_netvf_get_mac_addr()
74 ether_addr_copy(nn->dp.netdev->perm_addr, mac_addr); in nfp_netvf_get_mac_addr()
89 struct nfp_net *nn; in nfp_netvf_pci_probe() local
191 nn = nfp_net_alloc(pdev, dev_info, ctrl_bar, true, in nfp_netvf_pci_probe()
193 if (IS_ERR(nn)) { in nfp_netvf_pci_probe()
[all …]
H A Dnfp_net.h28 #define nn_pr(nn, lvl, fmt, args...) \ argument
30 struct nfp_net *__nn = (nn); \
38 #define nn_err(nn, fmt, args...) nn_pr(nn, KERN_ERR, fmt, ## args) argument
39 #define nn_warn(nn, fmt, args...) nn_pr(nn, KERN_WARNING, fmt, ## args) argument
40 #define nn_info(nn, fmt, args...) nn_pr(nn, KERN_INFO, fmt, ## args) argument
41 #define nn_dbg(nn, fmt, args...) nn_pr(nn, KERN_DEBUG, fmt, ## args) argument
769 int (*cfg)(struct nfp_net *nn, struct nfp_mbox_amsg_entry *entry);
774 int nfp_net_sched_mbox_amsg_work(struct nfp_net *nn, u32 cmd, const void *data, size_t len,
780 static inline u16 nn_readb(struct nfp_net *nn, int off) in nn_readb() argument
782 return readb(nn->dp.ctrl_bar + off); in nn_readb()
[all …]
H A Dnfp_net_main.c79 static void nfp_net_pf_free_vnic(struct nfp_pf *pf, struct nfp_net *nn) in nfp_net_pf_free_vnic() argument
81 if (nfp_net_is_data_vnic(nn)) in nfp_net_pf_free_vnic()
82 nfp_app_vnic_free(pf->app, nn); in nfp_net_pf_free_vnic()
83 nfp_port_free(nn->port); in nfp_net_pf_free_vnic()
84 list_del(&nn->vnic_list); in nfp_net_pf_free_vnic()
86 nfp_net_free(nn); in nfp_net_pf_free_vnic()
91 struct nfp_net *nn, *next; in nfp_net_pf_free_vnics() local
93 list_for_each_entry_safe(nn, next, &pf->vnics, vnic_list) in nfp_net_pf_free_vnics()
94 if (nfp_net_is_data_vnic(nn)) in nfp_net_pf_free_vnics()
95 nfp_net_pf_free_vnic(pf, nn); in nfp_net_pf_free_vnics()
[all …]
H A Dnfp_net_ethtool.c220 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_get_drvinfo() local
223 nn->fw_ver.extend, nn->fw_ver.class, in nfp_net_get_drvinfo()
224 nn->fw_ver.major, nn->fw_ver.minor); in nfp_net_get_drvinfo()
225 strscpy(drvinfo->bus_info, pci_name(nn->pdev), in nfp_net_get_drvinfo()
228 nfp_get_drvinfo(nn->app, nn->pdev, vnic_version, drvinfo); in nfp_net_get_drvinfo()
489 struct nfp_net *nn; in nfp_net_get_link_ksettings() local
530 nn = netdev_priv(netdev); in nfp_net_get_link_ksettings()
532 sts = nn_readw(nn, NFP_NET_CFG_STS); in nfp_net_get_link_ksettings()
627 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_get_ringparam() local
628 u32 qc_max = nn->dev_info->max_qc_size; in nfp_net_get_ringparam()
[all …]
H A Dnfp_app_nic.c12 struct nfp_net *nn, unsigned int id) in nfp_app_nic_vnic_init_phy_port() argument
19 nn->port = nfp_port_alloc(app, NFP_PORT_PHYS_PORT, nn->dp.netdev); in nfp_app_nic_vnic_init_phy_port()
20 if (IS_ERR(nn->port)) in nfp_app_nic_vnic_init_phy_port()
21 return PTR_ERR(nn->port); in nfp_app_nic_vnic_init_phy_port()
23 err = nfp_port_init_phy_port(pf, app, nn->port, id); in nfp_app_nic_vnic_init_phy_port()
25 nfp_port_free(nn->port); in nfp_app_nic_vnic_init_phy_port()
29 return nn->port->type == NFP_PORT_INVALID; in nfp_app_nic_vnic_init_phy_port()
32 int nfp_app_nic_vnic_alloc(struct nfp_app *app, struct nfp_net *nn, in nfp_app_nic_vnic_alloc() argument
37 err = nfp_app_nic_vnic_init_phy_port(app->pf, app, nn, id); in nfp_app_nic_vnic_alloc()
41 nfp_net_get_mac_addr(app->pf, nn->dp.netdev, nn->port); in nfp_app_nic_vnic_alloc()
H A Dnfp_net_dp.c57 struct nfp_net *nn = r_vec->nfp_net; in nfp_net_tx_ring_init() local
64 tx_ring->qcidx = tx_ring->idx * nn->stride_tx; in nfp_net_tx_ring_init()
66 tx_ring->qcp_q = nn->tx_bar + NFP_QCP_QUEUE_OFF(tx_ring->qcidx); in nfp_net_tx_ring_init()
79 struct nfp_net *nn = r_vec->nfp_net; in nfp_net_rx_ring_init() local
85 rx_ring->fl_qcidx = rx_ring->idx * nn->stride_rx; in nfp_net_rx_ring_init()
86 rx_ring->qcp_fl = nn->rx_bar + NFP_QCP_QUEUE_OFF(rx_ring->fl_qcidx); in nfp_net_rx_ring_init()
183 int nfp_net_tx_rings_prepare(struct nfp_net *nn, struct nfp_net_dp *dp) in nfp_net_tx_rings_prepare() argument
207 &nn->r_vecs[r - bias], r, bias); in nfp_net_tx_rings_prepare()
339 int nfp_net_rx_rings_prepare(struct nfp_net *nn, struct nfp_net_dp *dp) in nfp_net_rx_rings_prepare() argument
349 nfp_net_rx_ring_init(&dp->rx_rings[r], &nn->r_vecs[r], r); in nfp_net_rx_rings_prepare()
[all …]
H A Dnfp_net_debugfs.c18 struct nfp_net *nn; in nfp_rx_q_show() local
26 nn = r_vec->nfp_net; in nfp_rx_q_show()
28 if (!nfp_net_running(nn)) in nfp_rx_q_show()
84 struct nfp_net *nn; in nfp_tx_q_show() local
95 nn = r_vec->nfp_net; in nfp_tx_q_show()
96 if (!nfp_net_running(nn)) in nfp_tx_q_show()
111 nfp_net_debugfs_print_tx_descs(file, &nn->dp, r_vec, tx_ring, in nfp_tx_q_show()
124 void nfp_net_debugfs_vnic_add(struct nfp_net *nn, struct dentry *ddir) in nfp_net_debugfs_vnic_add() argument
133 if (nfp_net_is_data_vnic(nn)) in nfp_net_debugfs_vnic_add()
134 sprintf(name, "vnic%d", nn->id); in nfp_net_debugfs_vnic_add()
[all …]
/linux/fs/nfsd/
H A Dnfssvc.c161 int nfsd_vers(struct nfsd_net *nn, int vers, enum vers_op change) in nfsd_vers() argument
167 nn->nfsd_versions[vers] = nfsd_support_version(vers); in nfsd_vers()
170 nn->nfsd_versions[vers] = false; in nfsd_vers()
173 return nn->nfsd_versions[vers]; in nfsd_vers()
181 nfsd_adjust_nfsd_versions4(struct nfsd_net *nn) in nfsd_adjust_nfsd_versions4() argument
186 if (nn->nfsd4_minorversions[i]) in nfsd_adjust_nfsd_versions4()
189 nfsd_vers(nn, 4, NFSD_CLEAR); in nfsd_adjust_nfsd_versions4()
192 int nfsd_minorversion(struct nfsd_net *nn, u32 minorversion, enum vers_op change) in nfsd_minorversion() argument
200 nfsd_vers(nn, 4, NFSD_SET); in nfsd_minorversion()
201 nn->nfsd4_minorversions[minorversion] = in nfsd_minorversion()
[all …]
H A Dnfscache.c89 struct nfsd_net *nn) in nfsd_cacherep_alloc() argument
136 nfsd_cacherep_unlink_locked(struct nfsd_net *nn, struct nfsd_drc_bucket *b, in nfsd_cacherep_unlink_locked() argument
140 nfsd_stats_drc_mem_usage_sub(nn, rp->c_replvec.iov_len); in nfsd_cacherep_unlink_locked()
144 atomic_dec(&nn->num_drc_entries); in nfsd_cacherep_unlink_locked()
145 nfsd_stats_drc_mem_usage_sub(nn, sizeof(*rp)); in nfsd_cacherep_unlink_locked()
151 struct nfsd_net *nn) in nfsd_reply_cache_free_locked() argument
153 nfsd_cacherep_unlink_locked(nn, b, rp); in nfsd_reply_cache_free_locked()
159 struct nfsd_net *nn) in nfsd_reply_cache_free() argument
162 nfsd_cacherep_unlink_locked(nn, b, rp); in nfsd_reply_cache_free()
178 int nfsd_reply_cache_init(struct nfsd_net *nn) in nfsd_reply_cache_init() argument
[all …]
H A Dstats.h16 static inline void nfsd_stats_rc_hits_inc(struct nfsd_net *nn) in nfsd_stats_rc_hits_inc() argument
18 percpu_counter_inc(&nn->counter[NFSD_STATS_RC_HITS]); in nfsd_stats_rc_hits_inc()
21 static inline void nfsd_stats_rc_misses_inc(struct nfsd_net *nn) in nfsd_stats_rc_misses_inc() argument
23 percpu_counter_inc(&nn->counter[NFSD_STATS_RC_MISSES]); in nfsd_stats_rc_misses_inc()
26 static inline void nfsd_stats_rc_nocache_inc(struct nfsd_net *nn) in nfsd_stats_rc_nocache_inc() argument
28 percpu_counter_inc(&nn->counter[NFSD_STATS_RC_NOCACHE]); in nfsd_stats_rc_nocache_inc()
31 static inline void nfsd_stats_fh_stale_inc(struct nfsd_net *nn, in nfsd_stats_fh_stale_inc() argument
34 percpu_counter_inc(&nn->counter[NFSD_STATS_FH_STALE]); in nfsd_stats_fh_stale_inc()
39 static inline void nfsd_stats_io_read_add(struct nfsd_net *nn, in nfsd_stats_io_read_add() argument
42 percpu_counter_add(&nn->counter[NFSD_STATS_IO_READ], amount); in nfsd_stats_io_read_add()
[all …]
H A Dstats.c33 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_show() local
37 percpu_counter_sum_positive(&nn->counter[NFSD_STATS_RC_HITS]), in nfsd_show()
38 percpu_counter_sum_positive(&nn->counter[NFSD_STATS_RC_MISSES]), in nfsd_show()
39 percpu_counter_sum_positive(&nn->counter[NFSD_STATS_RC_NOCACHE]), in nfsd_show()
40 percpu_counter_sum_positive(&nn->counter[NFSD_STATS_FH_STALE]), in nfsd_show()
41 percpu_counter_sum_positive(&nn->counter[NFSD_STATS_IO_READ]), in nfsd_show()
42 percpu_counter_sum_positive(&nn->counter[NFSD_STATS_IO_WRITE])); in nfsd_show()
55 svc_seq_show(seq, &nn->nfsd_svcstats); in nfsd_show()
63 percpu_counter_sum_positive(&nn->counter[NFSD_STATS_NFS4_OP(i)])); in nfsd_show()
66 percpu_counter_sum_positive(&nn->counter[NFSD_STATS_WDELEG_GETATTR])); in nfsd_show()
[all …]
H A Dnfsctl.c147 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in exports_net_open() local
154 seq->private = nn->svc_export_cache; in exports_net_open()
180 struct nfsd_net *nn = net_generic(inode->i_sb->s_fs_info, nfsd_net_id); in nfsd_pool_stats_open() local
182 return svc_pool_stats_open(&nn->nfsd_info, file); in nfsd_pool_stats_open()
525 nfsd_print_version_support(struct nfsd_net *nn, char *buf, int remaining, in nfsd_print_version_support() argument
529 bool supported = !!nfsd_vers(nn, vers, NFSD_TEST); in nfsd_print_version_support()
532 !nfsd_minorversion(nn, minor, NFSD_TEST)) in nfsd_print_version_support()
552 struct nfsd_net *nn = net_generic(netns(file), nfsd_net_id); in __write_versions() local
555 if (nn->nfsd_serv) in __write_versions()
590 nfsd_vers(nn, num, cmd); in __write_versions()
[all …]
H A Dnfs4state.c87 void nfsd4_end_grace(struct nfsd_net *nn);
88 static void _free_cpntf_state_locked(struct nfsd_net *nn, struct nfs4_cpntf_state *cps);
90 static void deleg_reaper(struct nfsd_net *nn);
168 static void nfsd4_dec_courtesy_client_count(struct nfsd_net *nn, in nfsd4_dec_courtesy_client_count() argument
172 atomic_add_unless(&nn->nfsd_courtesy_clients, -1, 0); in nfsd4_dec_courtesy_client_count()
177 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in get_client_locked() local
179 lockdep_assert_held(&nn->client_lock); in get_client_locked()
184 nfsd4_dec_courtesy_client_count(nn, clp); in get_client_locked()
193 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in renew_client_locked() local
204 list_move_tail(&clp->cl_lru, &nn->client_lru); in renew_client_locked()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/crypto/
H A Dtls.c31 static void nfp_net_crypto_set_op(struct nfp_net *nn, u8 opcode, bool on) in nfp_net_crypto_set_op() argument
35 off = nn->tlv_caps.crypto_enable_off + round_down(opcode / 8, 4); in nfp_net_crypto_set_op()
37 val = nn_readl(nn, off); in nfp_net_crypto_set_op()
42 nn_writel(nn, off, val); in nfp_net_crypto_set_op()
46 __nfp_net_tls_conn_cnt_changed(struct nfp_net *nn, int add, in __nfp_net_tls_conn_cnt_changed() argument
54 nn->ktls_tx_conn_cnt += add; in __nfp_net_tls_conn_cnt_changed()
55 cnt = nn->ktls_tx_conn_cnt; in __nfp_net_tls_conn_cnt_changed()
56 nn->dp.ktls_tx = !!nn->ktls_tx_conn_cnt; in __nfp_net_tls_conn_cnt_changed()
59 nn->ktls_rx_conn_cnt += add; in __nfp_net_tls_conn_cnt_changed()
60 cnt = nn->ktls_rx_conn_cnt; in __nfp_net_tls_conn_cnt_changed()
[all …]
H A Dipsec.c133 static int nfp_net_ipsec_cfg(struct nfp_net *nn, struct nfp_mbox_amsg_entry *entry) in nfp_net_ipsec_cfg() argument
135 unsigned int offset = nn->tlv_caps.mbox_off + NFP_NET_CFG_MBOX_SIMPLE_VAL; in nfp_net_ipsec_cfg()
139 ret = nfp_net_mbox_lock(nn, sizeof(*msg)); in nfp_net_ipsec_cfg()
145 nn_writel(nn, offset + 4 * i, msg->raw[i]); in nfp_net_ipsec_cfg()
147 ret = nfp_net_mbox_reconfig(nn, entry->cmd); in nfp_net_ipsec_cfg()
149 nn_ctrl_bar_unlock(nn); in nfp_net_ipsec_cfg()
155 msg->raw[i] = nn_readl(nn, offset + 4 * i); in nfp_net_ipsec_cfg()
157 nn_ctrl_bar_unlock(nn); in nfp_net_ipsec_cfg()
276 struct nfp_net *nn; in nfp_net_xfrm_add_state() local
279 nn = netdev_priv(netdev); in nfp_net_xfrm_add_state()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/nic/
H A Ddcb.c50 static struct nfp_dcb *get_dcb_priv(struct nfp_net *nn) in get_dcb_priv() argument
52 struct nfp_dcb *dcb = &((struct nfp_app_nic_private *)nn->app_priv)->dcb; in get_dcb_priv()
72 struct nfp_net *nn = netdev_priv(dev); in nfp_nic_dcbnl_ieee_getets() local
75 dcb = get_dcb_priv(nn); in nfp_nic_dcbnl_ieee_getets()
86 static bool nfp_refresh_tc2idx(struct nfp_net *nn) in nfp_refresh_tc2idx() argument
93 dcb = get_dcb_priv(nn); in nfp_refresh_tc2idx()
116 static int nfp_fill_maxrate(struct nfp_net *nn, u64 *max_rate_array) in nfp_fill_maxrate() argument
118 struct nfp_app *app = nn->app; in nfp_fill_maxrate()
122 dcb = get_dcb_priv(nn); in nfp_fill_maxrate()
150 struct nfp_net *nn = netdev_priv(dev); in update_dscp_maxrate() local
[all …]
H A Dmain.c33 static int nfp_nic_vnic_init(struct nfp_app *app, struct nfp_net *nn) in nfp_nic_vnic_init() argument
35 return nfp_nic_dcb_init(nn); in nfp_nic_vnic_init()
38 static void nfp_nic_vnic_clean(struct nfp_app *app, struct nfp_net *nn) in nfp_nic_vnic_clean() argument
40 nfp_nic_dcb_clean(nn); in nfp_nic_vnic_clean()
43 static int nfp_nic_vnic_alloc(struct nfp_app *app, struct nfp_net *nn, in nfp_nic_vnic_alloc() argument
46 struct nfp_app_nic_private *app_pri = nn->app_priv; in nfp_nic_vnic_alloc()
49 err = nfp_app_nic_vnic_alloc(app, nn, id); in nfp_nic_vnic_alloc()
54 nn->app_priv = kzalloc(sizeof(*app_pri), GFP_KERNEL); in nfp_nic_vnic_alloc()
55 if (!nn->app_priv) in nfp_nic_vnic_alloc()
62 static void nfp_nic_vnic_free(struct nfp_app *app, struct nfp_net *nn) in nfp_nic_vnic_free() argument
[all …]
/linux/drivers/fpga/
H A Ddfl-n3000-nios.c167 struct n3000_nios *nn = dev_get_drvdata(dev); in nios_fw_version_show() local
171 ret = regmap_read(nn->regmap, N3000_NIOS_FW_VERSION, &val); in nios_fw_version_show()
190 static int get_retimer_mode(struct n3000_nios *nn, unsigned int mode_stat_reg, in get_retimer_mode() argument
196 ret = regmap_read(nn->regmap, mode_stat_reg, &val); in get_retimer_mode()
211 struct n3000_nios *nn = dev_get_drvdata(dev); in retimer_A_mode_show() local
215 ret = get_retimer_mode(nn, N3000_NIOS_PKVL_A_MODE_STS, &mode); in retimer_A_mode_show()
226 struct n3000_nios *nn = dev_get_drvdata(dev); in retimer_B_mode_show() local
230 ret = get_retimer_mode(nn, N3000_NIOS_PKVL_B_MODE_STS, &mode); in retimer_B_mode_show()
242 struct n3000_nios *nn = dev_get_drvdata(dev); in fec_mode_show() local
246 ret = regmap_read(nn->regmap, N3000_NIOS_FW_VERSION, &val); in fec_mode_show()
[all …]
/linux/fs/ocfs2/cluster/
H A Dtcp.c283 static u8 o2net_num_from_nn(struct o2net_node *nn) in o2net_num_from_nn() argument
285 BUG_ON(nn == NULL); in o2net_num_from_nn()
286 return nn - o2net_nodes; in o2net_num_from_nn()
291 static int o2net_prep_nsw(struct o2net_node *nn, struct o2net_status_wait *nsw) in o2net_prep_nsw() argument
295 spin_lock(&nn->nn_lock); in o2net_prep_nsw()
296 ret = idr_alloc(&nn->nn_status_idr, nsw, 0, 0, GFP_ATOMIC); in o2net_prep_nsw()
299 list_add_tail(&nsw->ns_node_item, &nn->nn_status_list); in o2net_prep_nsw()
301 spin_unlock(&nn->nn_lock); in o2net_prep_nsw()
311 static void o2net_complete_nsw_locked(struct o2net_node *nn, in o2net_complete_nsw_locked() argument
316 assert_spin_locked(&nn->nn_lock); in o2net_complete_nsw_locked()
[all …]
/linux/fs/nfs/blocklayout/
H A Drpc_pipefs.c56 struct nfs_net *nn = net_generic(net, nfs_net_id); in bl_resolve_deviceid() local
57 struct bl_dev_msg *reply = &nn->bl_mount_reply; in bl_resolve_deviceid()
67 mutex_lock(&nn->bl_mutex); in bl_resolve_deviceid()
68 bl_pipe_msg.bl_wq = &nn->bl_wq; in bl_resolve_deviceid()
86 add_wait_queue(&nn->bl_wq, &wq); in bl_resolve_deviceid()
87 rc = rpc_queue_upcall(nn->bl_device_pipe, msg); in bl_resolve_deviceid()
89 remove_wait_queue(&nn->bl_wq, &wq); in bl_resolve_deviceid()
95 remove_wait_queue(&nn->bl_wq, &wq); in bl_resolve_deviceid()
107 mutex_unlock(&nn->bl_mutex); in bl_resolve_deviceid()
114 struct nfs_net *nn = net_generic(file_inode(filp)->i_sb->s_fs_info, in bl_pipe_downcall() local
[all …]
/linux/lib/reed_solomon/
H A Ddecode_rs.c16 int nn = rs->nn; variable
26 uint16_t msk = (uint16_t) rs->nn;
42 pad = nn - nroots - len;
43 BUG_ON(pad < 0 || pad >= nn - nroots);
51 if (s[i] != nn)
112 prim * (nn - 1 - (eras_pos[0] + pad)))];
114 u = rs_modnn(rs, prim * (nn - 1 - (eras_pos[i] + pad)));
117 if (tmp != nn) {
138 if ((lambda[i] != 0) && (s[r - i - 1] != nn)) {
146 if (discr_r == nn) {
[all …]
/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.c24 static bool nfp_net_ebpf_capable(struct nfp_net *nn) in nfp_net_ebpf_capable() argument
27 struct nfp_app_bpf *bpf = nn->app->priv; in nfp_net_ebpf_capable()
29 return nn->cap & NFP_NET_CFG_CTRL_BPF && in nfp_net_ebpf_capable()
31 nn_readb(nn, NFP_NET_CFG_BPF_ABI) == bpf->abi_version; in nfp_net_ebpf_capable()
38 nfp_bpf_xdp_offload(struct nfp_app *app, struct nfp_net *nn, in nfp_bpf_xdp_offload() argument
43 if (!nfp_net_ebpf_capable(nn)) in nfp_bpf_xdp_offload()
46 running = nn->dp.ctrl & NFP_NET_CFG_CTRL_BPF; in nfp_bpf_xdp_offload()
47 xdp_running = running && nn->xdp_hw.prog; in nfp_bpf_xdp_offload()
54 return nfp_net_bpf_offload(nn, prog, running, extack); in nfp_bpf_xdp_offload()
57 static const char *nfp_bpf_extra_cap(struct nfp_app *app, struct nfp_net *nn) in nfp_bpf_extra_cap() argument
[all …]
H A Doffload.c221 struct nfp_net *nn = netdev_priv(prog->aux->offload->netdev); in nfp_bpf_translate() local
230 max_instr = nn_readw(nn, NFP_NET_CFG_BPF_MAX_LEN); in nfp_bpf_translate()
425 int nfp_ndo_bpf(struct nfp_app *app, struct nfp_net *nn, struct netdev_bpf *bpf) in nfp_ndo_bpf() argument
484 bool nfp_bpf_offload_check_mtu(struct nfp_net *nn, struct bpf_prog *prog, in nfp_bpf_offload_check_mtu() argument
489 fw_mtu = nn_readb(nn, NFP_NET_CFG_BPF_INL_MTU) * 64 - 32; in nfp_bpf_offload_check_mtu()
496 nfp_net_bpf_load(struct nfp_net *nn, struct bpf_prog *prog, in nfp_net_bpf_load() argument
505 if (nfp_bpf_offload_check_mtu(nn, prog, nn->dp.netdev->mtu)) { in nfp_net_bpf_load()
510 max_stack = nn_readb(nn, NFP_NET_CFG_BPF_STACK_SZ) * 64; in nfp_net_bpf_load()
516 max_prog_len = nn_readw(nn, NFP_NET_CFG_BPF_MAX_LEN); in nfp_net_bpf_load()
522 img = nfp_bpf_relo_for_vnic(nfp_prog, nn->app_priv); in nfp_net_bpf_load()
[all …]

12345