Home
last modified time | relevance | path

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

1234567

/openbmc/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_common.c493 nn->port->link_cb(nn->port); in nfp_net_read_link_status()
1983 if (nn->dp.is_vf || nn->vnic_no_name) in nfp_net_get_phys_port_name()
2237 nn->fw_ver.major, nn->fw_ver.minor, in nfp_net_info()
2268 nfp_app_extra_cap(nn->app, nn)); in nfp_net_info()
2307 nn = vzalloc(sizeof(*nn)); in nfp_net_alloc()
2353 nn->dp.num_r_vecs = max(nn->dp.num_tx_rings, nn->dp.num_rx_rings); in nfp_net_alloc()
2356 nn->max_r_vecs = nn->dp.num_r_vecs; in nfp_net_alloc()
2358 nn->dp.xsk_pools = kcalloc(nn->max_r_vecs, sizeof(nn->dp.xsk_pools), in nfp_net_alloc()
2646 nn->cap &= nn->dp.ops->cap_mask; in nfp_net_read_caps()
2673 nn->dp.mtu = min(nn->app->ctrl_mtu, nn->max_mtu); in nfp_net_init()
[all …]
H A Dccm_mbox.c140 queue_work(nn->mbox_cmsg.workq, &nn->mbox_cmsg.runq_work); in nfp_ccm_mbox_mark_next_runner()
146 nn_writel(nn, off, in nfp_ccm_mbox_write_tlv()
220 data = nn->dp.ctrl_bar + nn->tlv_caps.mbox_off + in nfp_ccm_mbox_copy_out()
271 nn_dp_warn(&nn->dp, in nfp_ccm_mbox_copy_out()
323 nn_dp_warn(&nn->dp, in nfp_ccm_mbox_copy_out()
405 nn_ctrl_bar_lock(nn); in nfp_ccm_mbox_run_queue_unlock()
475 nn_dp_warn(&nn->dp, in nfp_ccm_mbox_msg_prepare()
496 nn_dp_warn(&nn->dp, in nfp_ccm_mbox_msg_prepare()
505 nn_dp_warn(&nn->dp, in nfp_ccm_mbox_msg_prepare()
609 struct nfp_net *nn; in nfp_ccm_mbox_post_runq_work() local
[all …]
H A Dnfp_netvf_main.c29 struct nfp_net *nn; member
89 struct nfp_net *nn; in nfp_netvf_pci_probe() local
193 if (IS_ERR(nn)) { in nfp_netvf_pci_probe()
194 err = PTR_ERR(nn); in nfp_netvf_pci_probe()
197 vf->nn = nn; in nfp_netvf_pci_probe()
199 nn->dp.is_vf = 1; in nfp_netvf_pci_probe()
269 nfp_net_info(nn); in nfp_netvf_pci_probe()
286 nfp_net_free(nn); in nfp_netvf_pci_probe()
308 nn = vf->nn; in nfp_netvf_pci_remove()
316 nfp_net_clean(nn); in nfp_netvf_pci_remove()
[all …]
H A Dnfp_net.h30 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
883 WARN_ON_ONCE(!nn->dp.netdev && nn->port); in nfp_net_is_data_vnic()
884 return !!nn->dp.netdev; in nfp_net_is_data_vnic()
894 return nn->dp.netdev ? nn->dp.netdev->name : "ctrl"; in nfp_net_name()
898 __acquires(&nn->r_vecs[0].lock) in nfp_ctrl_lock()
911 down(&nn->bar_lock); in nn_ctrl_bar_lock()
[all …]
H A Dnfp_net_main.c86 nfp_net_free(nn); in nfp_net_pf_free_vnic()
115 if (IS_ERR(nn)) in nfp_net_pf_alloc_vnic()
116 return nn; in nfp_net_pf_alloc_vnic()
136 return nn; in nfp_net_pf_alloc_vnic()
144 nn->id = id; in nfp_net_pf_init_vnic()
146 if (nn->port) { in nfp_net_pf_init_vnic()
172 if (nn->port) in nfp_net_pf_init_vnic()
193 if (nn->port) in nfp_net_pf_alloc_vnics()
199 if (nn->port && nn->port->type == NFP_PORT_INVALID) in nfp_net_pf_alloc_vnics()
219 if (nn->port) in nfp_net_pf_clean_vnic()
[all …]
H A Dnfp_net_ethtool.c223 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()
228 nfp_get_drvinfo(nn->app, nn->pdev, vnic_version, drvinfo); in nfp_net_get_drvinfo()
677 nn->dp.rxd_cnt, rxd_cnt, nn->dp.txd_cnt, txd_cnt); in nfp_net_set_ringparam()
984 return nn->tlv_caps.vnic_stats_cnt + nn->max_r_vecs * 4; in nfp_vnic_get_tlv_stats_count()
993 mem = nn->dp.ctrl_bar + nn->tlv_caps.vnic_stats_off; in nfp_vnic_get_tlv_stats_strings()
1025 mem = nn->dp.ctrl_bar + nn->tlv_caps.vnic_stats_off; in nfp_vnic_get_tlv_stats()
1434 memcpy(key, nn->rss_key, nfp_net_rss_key_sz(nn)); in nfp_net_get_rxfh()
1459 memcpy(nn->rss_key, key, nfp_net_rss_key_sz(nn)); in nfp_net_set_rxfh()
1862 if (total_rx > min(nn->max_rx_rings, nn->max_r_vecs) || in nfp_net_set_channels()
[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()
79 struct nfp_net *nn = r_vec->nfp_net; in nfp_net_rx_ring_init() local
207 &nn->r_vecs[r - bias], r, bias); in nfp_net_tx_rings_prepare()
400 nn->dp.txrwb_dma + idx * sizeof(u64)); in nfp_net_tx_ring_hw_cfg_write()
409 nn_writeb(nn, NFP_NET_CFG_RXR_SZ(idx), 0); in nfp_net_vec_clear_ring_data()
414 nn_writeb(nn, NFP_NET_CFG_TXR_SZ(idx), 0); in nfp_net_vec_clear_ring_data()
420 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_tx() local
422 return nn->dp.ops->xmit(skb, netdev); in nfp_net_tx()
429 return nn->dp.ops->ctrl_tx_one(nn, r_vec, skb, false); in __nfp_ctrl_tx()
[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()
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()
146 for (i = 0; i < min(nn->max_rx_rings, nn->max_r_vecs); i++) { in nfp_net_debugfs_vnic_add()
149 &nn->r_vecs[i], &nfp_rx_q_fops); in nfp_net_debugfs_vnic_add()
[all …]
/openbmc/linux/fs/nfsd/
H A Dnfssvc.c197 if (!nn->nfsd_versions || !nn->nfsd4_minorversions) in nfsd_netns_init_versions()
281 if (nn->nfsd_serv) in nfsd_nrthreads()
344 return nfsd_vers(nn, 2, NFSD_TEST) || nfsd_vers(nn, 3, NFSD_TEST); in nfsd_needs_lockd()
361 memcpy(verf, nn->writeverf, sizeof(nn->writeverf)); in nfsd_copy_write_verifier()
377 memcpy(nn->writeverf, &verf, sizeof(nn->writeverf)); in nfsd_reset_write_verifier_locked()
410 if (nn->nfsd_net_up) in nfsd_startup_net()
420 if (nfsd_needs_lockd(nn) && !nn->lockd_up) { in nfsd_startup_net()
450 if (nn->lockd_up) { in nfsd_startup_net()
466 if (nn->lockd_up) { in nfsd_shutdown_net()
488 if (nn->nfsd_serv) { in nfsd_inetaddr_event()
[all …]
H A Dnfscache.c89 struct nfsd_net *nn) in nfsd_cacherep_alloc() argument
151 struct nfsd_net *nn) in nfsd_reply_cache_free_locked() argument
159 struct nfsd_net *nn) in nfsd_reply_cache_free() argument
200 if (!nn->drc_hashtbl) in nfsd_reply_cache_init()
228 rp, nn); in nfsd_reply_cache_shutdown()
232 kvfree(nn->drc_hashtbl); in nfsd_reply_cache_shutdown()
233 nn->drc_hashtbl = NULL; in nfsd_reply_cache_shutdown()
234 nn->drc_hashsize = 0; in nfsd_reply_cache_shutdown()
280 if (atomic_read(&nn->num_drc_entries) <= nn->max_drc_entries && in nfsd_prune_bucket_locked()
422 struct nfsd_net *nn) in nfsd_cache_insert() argument
[all …]
H A Dstats.h16 int nfsd_stat_counters_init(struct nfsd_net *nn);
17 void nfsd_stat_counters_destroy(struct nfsd_net *nn);
21 static inline void nfsd_stats_rc_hits_inc(struct nfsd_net *nn) in nfsd_stats_rc_hits_inc() argument
23 percpu_counter_inc(&nn->counter[NFSD_STATS_RC_HITS]); in nfsd_stats_rc_hits_inc()
28 percpu_counter_inc(&nn->counter[NFSD_STATS_RC_MISSES]); in nfsd_stats_rc_misses_inc()
33 percpu_counter_inc(&nn->counter[NFSD_STATS_RC_NOCACHE]); in nfsd_stats_rc_nocache_inc()
36 static inline void nfsd_stats_fh_stale_inc(struct nfsd_net *nn, in nfsd_stats_fh_stale_inc() argument
39 percpu_counter_inc(&nn->counter[NFSD_STATS_FH_STALE]); in nfsd_stats_fh_stale_inc()
44 static inline void nfsd_stats_io_read_add(struct nfsd_net *nn, in nfsd_stats_io_read_add() argument
47 percpu_counter_add(&nn->counter[NFSD_STATS_IO_READ], amount); in nfsd_stats_io_read_add()
[all …]
H A Dnfs4recover.c202 if (!nn->rec_file) in nfsd4_create_clid_dir()
242 if (nn->in_grace) in nfsd4_create_clid_dir()
244 HEXDIR_LEN, nn); in nfsd4_create_clid_dir()
412 if (nn->in_grace) in nfsd4_remove_clid_dir()
463 if (!nn->rec_file) in nfsd4_recdir_purge_old()
509 if (!nn->rec_file) in nfsd4_recdir_load()
562 if (!nn->rec_file) in nfsd4_shutdown_recdir()
564 fput(nn->rec_file); in nfsd4_shutdown_recdir()
997 if (nn->cld_net) in __nfsd4_init_cld_pipe()
1022 nn->cld_net = cn; in __nfsd4_init_cld_pipe()
[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()
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()
108 int nfsd_stat_counters_init(struct nfsd_net *nn) in nfsd_stat_counters_init() argument
113 void nfsd_stat_counters_destroy(struct nfsd_net *nn) in nfsd_stat_counters_destroy() argument
120 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_proc_stat_init() local
[all …]
H A Dnfs4state.c753 struct nfsd_net *nn; in nfs4_resolve_deny_conflicts_locked() local
1032 struct nfsd_net *nn; in nfs4_free_copy_state() local
1046 struct nfsd_net *nn; in nfs4_free_cpntf_statelist() local
2089 if (atomic_read(&nn->nfs4_client_count) >= nn->nfs4_max_clients) { in alloc_client()
2919 gen_clid(clp, nn); in create_client()
4430 nn->clientid_counter = nn->clientid_base + 1; in nfsd4_init_leases_net()
4431 nn->s2s_cp_cl_id = nn->clientid_counter++; in nfsd4_init_leases_net()
6298 deleg_reaper(nn); in nfsd4_state_shrinker_worker()
6656 &s, nn); in nfs4_preprocess_stateid_op()
7034 &stp, nn); in nfsd4_close()
[all …]
H A Dnfsctl.c536 if (nn->nfsd_serv) in __write_versions()
706 serv = nn->nfsd_serv; in __write_ports_addfd()
741 serv = nn->nfsd_serv; in __write_ports_addxprt()
882 if (nn->nfsd_serv) { in write_maxblksize()
941 if (nn->nfsd_serv) in __nfsd4_write_time()
1004 return nfsd4_write_time(file, buf, size, &nn->nfsd4_lease, nn); in write_leasetime()
1020 return nfsd4_write_time(file, buf, size, &nn->nfsd4_grace, nn); in write_gracetime()
1031 if (nn->nfsd_serv) in __write_recoverydir()
1113 if (!nn->nfsd_serv) in write_v4_end_grace()
1530 memset(&nn->nfsd_svcstats, 0, sizeof(nn->nfsd_svcstats)); in nfsd_net_init()
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/crypto/
H A Dtls.c37 val = nn_readl(nn, off); in nfp_net_crypto_set_op()
42 nn_writel(nn, off, val); in nfp_net_crypto_set_op()
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()
60 cnt = nn->ktls_rx_conn_cnt; in __nfp_net_tls_conn_cnt_changed()
78 nn_ctrl_bar_lock(nn); in nfp_net_tls_conn_cnt_changed()
85 nn_ctrl_bar_unlock(nn); in nfp_net_tls_conn_cnt_changed()
374 nn_dp_warn(&nn->dp, in nfp_net_tls_add()
583 nn_ctrl_bar_lock(nn); in nfp_net_tls_init()
584 nn_writel(nn, nn->tlv_caps.crypto_enable_off, 0); in nfp_net_tls_init()
[all …]
H A Dipsec.c149 nn_ctrl_bar_unlock(nn); 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()
517 struct nfp_net *nn; in nfp_net_xfrm_del_state() local
520 nn = netdev_priv(netdev); in nfp_net_xfrm_del_state()
560 xa_destroy(&nn->xa_ipsec); in nfp_net_ipsec_clean()
586 struct nfp_net *nn; in nfp_net_ipsec_rx() local
589 nn = netdev_priv(netdev); in nfp_net_ipsec_rx()
599 xa_lock(&nn->xa_ipsec); in nfp_net_ipsec_rx()
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nic/
H A Ddcb.c75 dcb = get_dcb_priv(nn); in nfp_nic_dcbnl_ieee_getets()
93 dcb = get_dcb_priv(nn); in nfp_refresh_tc2idx()
122 dcb = get_dcb_priv(nn); in nfp_fill_maxrate()
154 dcb = get_dcb_priv(nn); in update_dscp_maxrate()
180 dcb = get_dcb_priv(nn); in nfp_nic_set_trust()
258 nfp_nic_fill_ets(nn); in nfp_nic_ets_init()
287 nfp_nic_fill_ets(nn); in nfp_nic_dcbnl_ieee_setets()
306 nn_writel(nn, nn->tlv_caps.mbox_off + NFP_NET_CFG_MBOX_SIMPLE_VAL, in nfp_nic_dcbnl_ieee_setets()
356 nn_writel(nn, nn->tlv_caps.mbox_off + NFP_NET_CFG_MBOX_SIMPLE_VAL, in nfp_nic_dcbnl_ieee_setmaxrate()
387 nn_writel(nn, nn->tlv_caps.mbox_off + NFP_NET_CFG_MBOX_SIMPLE_VAL, in nfp_nic_set_trust_status()
[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 …]
/openbmc/linux/drivers/fpga/
H A Ddfl-n3000-nios.c299 struct device *dev = nn->dev; in n3000_nios_init_done_check()
443 pdevinfo.parent = nn->dev; in create_altera_spi_controller()
529 struct n3000_nios *nn; in n3000_nios_probe() local
532 nn = devm_kzalloc(dev, sizeof(*nn), GFP_KERNEL); in n3000_nios_probe()
533 if (!nn) in n3000_nios_probe()
538 nn->dev = dev; in n3000_nios_probe()
541 if (IS_ERR(nn->base)) in n3000_nios_probe()
542 return PTR_ERR(nn->base); in n3000_nios_probe()
544 nn->regmap = devm_regmap_init(dev, NULL, nn, &n3000_nios_regbus_cfg); in n3000_nios_probe()
545 if (IS_ERR(nn->regmap)) in n3000_nios_probe()
[all …]
/openbmc/linux/fs/nfs/blocklayout/
H A Drpc_pipefs.c67 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()
107 mutex_unlock(&nn->bl_mutex); in bl_resolve_deviceid()
123 wake_up(&nn->bl_wq); in bl_pipe_downcall()
176 if (nn->bl_device_pipe == NULL) { in rpc_pipefs_event()
191 if (nn->bl_device_pipe->dentry) in rpc_pipefs_event()
237 mutex_init(&nn->bl_mutex); in nfs4blocklayout_net_init()
238 init_waitqueue_head(&nn->bl_wq); in nfs4blocklayout_net_init()
240 if (IS_ERR(nn->bl_device_pipe)) in nfs4blocklayout_net_init()
[all …]
/openbmc/linux/fs/ocfs2/cluster/
H A Dtcp.c285 BUG_ON(nn == NULL); in o2net_num_from_nn()
504 BUG_ON(sc && nn->nn_sc && nn->nn_sc != sc); in o2net_set_nn_state()
512 o2net_num_from_nn(nn), nn->nn_sc, sc, nn->nn_sc_valid, valid, in o2net_set_nn_state()
515 nn->nn_sc = sc; in o2net_set_nn_state()
520 if (nn->nn_persistent_error || nn->nn_sc_valid) in o2net_set_nn_state()
701 if (nn->nn_sc == sc) in o2net_ensure_shutdown()
990 *sc_ret = nn->nn_sc; in o2net_tx_can_proceed()
1060 wait_event(nn->nn_sc_wq, o2net_tx_can_proceed(nn, &sc, &ret)); in o2net_send_message_vec()
1317 if (nn->nn_sc == sc) { in o2net_check_handshake()
1587 stop = (nn->nn_sc || in o2net_start_connect()
[all …]
/openbmc/linux/lib/reed_solomon/
H A Ddecode_rs.c16 int nn = rs->nn; variable
42 pad = nn - nroots - len;
51 if (s[i] != nn)
117 if (tmp != nn) {
146 if (discr_r == nn) {
149 b[0] = nn;
154 if (b[i] != nn) {
175 b[0] = nn;
185 if (lambda[i] != nn)
203 if (reg[j] != nn) {
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.c27 struct nfp_app_bpf *bpf = nn->app->priv; in nfp_net_ebpf_capable()
43 if (!nfp_net_ebpf_capable(nn)) in nfp_bpf_xdp_offload()
82 nn->app_priv = bv; in nfp_bpf_vnic_alloc()
93 kfree(nn->app_priv); in nfp_bpf_vnic_alloc()
109 struct nfp_net *nn = cb_priv; in nfp_bpf_setup_tc_block_cb() local
121 if (!nfp_net_ebpf_capable(nn)) { in nfp_bpf_setup_tc_block_cb()
143 bv = nn->app_priv; in nfp_bpf_setup_tc_block_cb()
175 nn, nn, true); in nfp_bpf_setup_tc()
191 if (nn->xdp_hw.prog) { in nfp_bpf_check_mtu()
192 prog = nn->xdp_hw.prog; in nfp_bpf_check_mtu()
[all …]

1234567