/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_common.c | 89 static void nfp_net_reconfig_start(struct nfp_net *nn, u32 update) in nfp_net_reconfig_start() argument 91 nn_writel(nn, NFP_NET_CFG_UPDATE, update); in nfp_net_reconfig_start() 93 nn_pci_flush(nn); in nfp_net_reconfig_start() 94 nfp_qcp_wr_ptr_add(nn->qcp_cfg, 1); in nfp_net_reconfig_start() 98 static void nfp_net_reconfig_start_async(struct nfp_net *nn, u32 update) in nfp_net_reconfig_start_async() argument 100 update |= nn->reconfig_posted; in nfp_net_reconfig_start_async() 101 nn->reconfig_posted = 0; in nfp_net_reconfig_start_async() 103 nfp_net_reconfig_start(nn, update); in nfp_net_reconfig_start_async() 105 nn->reconfig_timer_active = true; in nfp_net_reconfig_start_async() 106 mod_timer(&nn->reconfig_timer, jiffies + NFP_NET_POLL_TIMEOUT * HZ); in nfp_net_reconfig_start_async() [all …]
|
D | nfp_net_offload.c | 56 struct nfp_net *nn = (void *)data; in nfp_net_filter_stats_timer() local 59 spin_lock_bh(&nn->rx_filter_lock); in nfp_net_filter_stats_timer() 61 if (nn->ctrl & NFP_NET_CFG_CTRL_BPF) in nfp_net_filter_stats_timer() 62 mod_timer(&nn->rx_filter_stats_timer, in nfp_net_filter_stats_timer() 65 spin_unlock_bh(&nn->rx_filter_lock); in nfp_net_filter_stats_timer() 67 latest.pkts = nn_readq(nn, NFP_NET_CFG_STATS_APP1_FRAMES); in nfp_net_filter_stats_timer() 68 latest.bytes = nn_readq(nn, NFP_NET_CFG_STATS_APP1_BYTES); in nfp_net_filter_stats_timer() 70 if (latest.pkts != nn->rx_filter.pkts) in nfp_net_filter_stats_timer() 71 nn->rx_filter_change = jiffies; in nfp_net_filter_stats_timer() 73 nn->rx_filter = latest; in nfp_net_filter_stats_timer() [all …]
|
D | nfp_net_ethtool.c | 124 #define NN_ET_RVEC_STATS_LEN (nn->num_r_vecs * 3) 126 #define NN_ET_QUEUE_STATS_LEN ((nn->num_tx_rings + nn->num_rx_rings) * 2) 133 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_get_drvinfo() local 141 nn->fw_ver.resv, nn->fw_ver.class, in nfp_net_get_drvinfo() 142 nn->fw_ver.major, nn->fw_ver.minor); in nfp_net_get_drvinfo() 143 strlcpy(drvinfo->bus_info, pci_name(nn->pdev), in nfp_net_get_drvinfo() 153 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_get_ringparam() local 157 ring->rx_pending = nn->rxd_cnt; in nfp_net_get_ringparam() 158 ring->tx_pending = nn->txd_cnt; in nfp_net_get_ringparam() 164 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_set_ringparam() local [all …]
|
D | nfp_netvf_main.c | 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() 67 put_unaligned_be16(nn_readl(nn, NFP_NET_CFG_MACADDR + 4) >> 16, in nfp_netvf_get_mac_addr() 71 eth_hw_addr_random(nn->netdev); in nfp_netvf_get_mac_addr() 75 ether_addr_copy(nn->netdev->dev_addr, mac_addr); in nfp_netvf_get_mac_addr() 76 ether_addr_copy(nn->netdev->perm_addr, mac_addr); in nfp_netvf_get_mac_addr() 88 struct nfp_net *nn; in nfp_netvf_pci_probe() local 208 nn = nfp_net_netdev_alloc(pdev, max_tx_rings, max_rx_rings); in nfp_netvf_pci_probe() 209 if (IS_ERR(nn)) { in nfp_netvf_pci_probe() 210 err = PTR_ERR(nn); in nfp_netvf_pci_probe() [all …]
|
D | nfp_net.h | 52 #define nn_err(nn, fmt, args...) netdev_err((nn)->netdev, fmt, ## args) argument 53 #define nn_warn(nn, fmt, args...) netdev_warn((nn)->netdev, fmt, ## args) argument 54 #define nn_info(nn, fmt, args...) netdev_info((nn)->netdev, fmt, ## args) argument 55 #define nn_dbg(nn, fmt, args...) netdev_dbg((nn)->netdev, fmt, ## args) argument 56 #define nn_warn_ratelimit(nn, fmt, args...) \ argument 59 netdev_warn((nn)->netdev, fmt, ## args); \ 586 static inline u16 nn_readb(struct nfp_net *nn, int off) in nn_readb() argument 588 return readb(nn->ctrl_bar + off); in nn_readb() 591 static inline void nn_writeb(struct nfp_net *nn, int off, u8 val) in nn_writeb() argument 593 writeb(val, nn->ctrl_bar + off); in nn_writeb() [all …]
|
D | nfp_net_debugfs.c | 48 struct nfp_net *nn; in nfp_net_debugfs_rx_q_read() local 55 nn = r_vec->nfp_net; in nfp_net_debugfs_rx_q_read() 57 if (!netif_running(nn->netdev)) in nfp_net_debugfs_rx_q_read() 125 struct nfp_net *nn; in nfp_net_debugfs_tx_q_read() local 132 nn = r_vec->nfp_net; in nfp_net_debugfs_tx_q_read() 134 if (!netif_running(nn->netdev)) in nfp_net_debugfs_tx_q_read() 188 void nfp_net_debugfs_adapter_add(struct nfp_net *nn) in nfp_net_debugfs_adapter_add() argument 197 nn->debugfs_dir = debugfs_create_dir(pci_name(nn->pdev), nfp_dir); in nfp_net_debugfs_adapter_add() 198 if (IS_ERR_OR_NULL(nn->debugfs_dir)) in nfp_net_debugfs_adapter_add() 202 queues = debugfs_create_dir("queue", nn->debugfs_dir); in nfp_net_debugfs_adapter_add() [all …]
|
/drivers/nvme/host/ |
D | core.c | 1764 static int nvme_scan_ns_list(struct nvme_ctrl *ctrl, unsigned nn) in nvme_scan_ns_list() argument 1768 unsigned i, j, nsid, prev = 0, num_lists = DIV_ROUND_UP(nn, 1024); in nvme_scan_ns_list() 1780 for (j = 0; j < min(nn, 1024U); j++) { in nvme_scan_ns_list() 1795 nn -= j; in nvme_scan_ns_list() 1804 static void nvme_scan_ns_sequential(struct nvme_ctrl *ctrl, unsigned nn) in nvme_scan_ns_sequential() argument 1808 for (i = 1; i <= nn; i++) in nvme_scan_ns_sequential() 1811 nvme_remove_invalid_namespaces(ctrl, nn); in nvme_scan_ns_sequential() 1819 unsigned nn; in nvme_scan_work() local 1827 nn = le32_to_cpu(id->nn); in nvme_scan_work() 1830 if (!nvme_scan_ns_list(ctrl, nn)) in nvme_scan_work() [all …]
|
D | scsi.c | 2055 ll_length = le32_to_cpu(id_ctrl->nn) * LUN_ENTRY_SIZE; in nvme_trans_report_luns() 2074 for (lun_id = 0; lun_id < le32_to_cpu(id_ctrl->nn); lun_id++) { in nvme_trans_report_luns()
|
/drivers/clk/ |
D | clk-cdce925.c | 202 u16 nn; in cdce925_pll_prepare() local 216 nn = n * BIT(p); in cdce925_pll_prepare() 218 q = nn / m; in cdce925_pll_prepare() 223 r = nn - (m*q); in cdce925_pll_prepare()
|
/drivers/message/fusion/ |
D | mptfc.c | 436 u64 pn, nn; in mptfc_register_dev() local 492 nn = (u64)ri->pg0.WWNN.High << 32 | (u64)ri->pg0.WWNN.Low; in mptfc_register_dev() 499 (unsigned long long)nn, in mptfc_register_dev() 579 u64 nn, pn; in mptfc_dump_lun_info() local 584 nn = (u64)ri->pg0.WWNN.High << 32 | (u64)ri->pg0.WWNN.Low; in mptfc_dump_lun_info() 594 (unsigned long long)nn)); in mptfc_dump_lun_info()
|
/drivers/net/ethernet/xircom/ |
D | xirc2ps_cs.c | 1134 unsigned n, nn; in xirc2ps_interrupt() local 1137 nn = GetByte(XIRCREG0_PTR); in xirc2ps_interrupt() 1138 lp->last_ptr_value = nn; in xirc2ps_interrupt() 1139 if (nn < n) /* rollover */ in xirc2ps_interrupt() 1141 else if (n == nn) { /* happens sometimes - don't know why */ in xirc2ps_interrupt()
|
/drivers/video/fbdev/ |
D | pm2fb.c | 248 static void pm2_mnp(u32 clk, unsigned char *mm, unsigned char *nn, in pm2_mnp() argument 258 *mm = *nn = *pp = 0; in pm2_mnp() 268 *nn = n; in pm2_mnp() 277 static void pm2v_mnp(u32 clk, unsigned char *mm, unsigned char *nn, in pm2v_mnp() argument 286 *mm = *nn = *pp = 0; in pm2v_mnp() 294 *nn = n; in pm2v_mnp()
|
/drivers/net/fddi/skfp/ |
D | pmf.c | 1566 int nn ; in dump_smt() local 1622 nn = (n > 16) ? 16 : n ; in dump_smt() 1630 dump_hex(c,nn) ; in dump_smt() 1633 n -= nn ; in dump_smt()
|
/drivers/nvdimm/ |
D | Kconfig | 30 'memmap=nn[KMG]!ss[KMG]' kernel command line (see
|
/drivers/nvme/target/ |
D | admin-cmd.c | 239 id->nn = cpu_to_le32(ctrl->subsys->max_nsid); in nvmet_execute_identify_ctrl()
|
/drivers/staging/i4l/Documentation/ |
D | README.sc | 122 tar xzf sc-n.nn.tar.gz -C /usr/src/spellcaster 273 different from the total number of bytes in the "dcbfwn.nn.sr" file. Please
|
/drivers/crypto/qat/qat_common/ |
D | qat_hal.c | 1280 unsigned short nn, unsigned int val) in qat_hal_put_rel_nn() argument 1289 stat = qat_hal_put_rel_wr_xfer(handle, ae, ctx, ICP_NEIGH_REL, nn, val); in qat_hal_put_rel_nn()
|
/drivers/mtd/nand/ |
D | atmel_nand.c | 1135 unsigned int nn = (1 << mm) - 1; in build_gf_tables() local 1141 for (i = 0; i < nn; i++) { in build_gf_tables() 1151 alpha_to[nn] = 1; in build_gf_tables()
|
/drivers/scsi/lpfc/ |
D | lpfc_nportdisc.c | 49 struct lpfc_name *nn, struct lpfc_name *pn) in lpfc_check_adisc() argument 58 if (memcmp(nn, &ndlp->nlp_nodename, sizeof (struct lpfc_name))) in lpfc_check_adisc()
|