Home
last modified time | relevance | path

Searched refs:nspi (Results 1 – 6 of 6) sorted by relevance

/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp_cmds.c25 struct nfp_nsp_identify *nspi = NULL; in __nfp_nsp_identify() local
43 nspi = kzalloc(sizeof(*nspi), GFP_KERNEL); in __nfp_nsp_identify()
44 if (!nspi) in __nfp_nsp_identify()
47 memcpy(nspi->version, ni->version, sizeof(nspi->version)); in __nfp_nsp_identify()
48 nspi->version[sizeof(nspi->version) - 1] = '\0'; in __nfp_nsp_identify()
49 nspi->flags = ni->flags; in __nfp_nsp_identify()
50 nspi->br_primary = ni->br_primary; in __nfp_nsp_identify()
51 nspi->br_secondary = ni->br_secondary; in __nfp_nsp_identify()
52 nspi->br_nsp = ni->br_nsp; in __nfp_nsp_identify()
53 nspi->primary = le16_to_cpu(ni->primary); in __nfp_nsp_identify()
[all …]
/drivers/media/pci/netup_unidvb/
Dnetup_unidvb_spi.c176 struct netup_spi *nspi; in netup_spi_init() local
185 nspi = spi_master_get_devdata(master); in netup_spi_init()
191 spin_lock_init(&nspi->lock); in netup_spi_init()
192 init_waitqueue_head(&nspi->waitq); in netup_spi_init()
193 nspi->master = master; in netup_spi_init()
194 nspi->regs = (struct netup_spi_regs __iomem *)(ndev->bmmio0 + 0x4000); in netup_spi_init()
195 writew(2, &nspi->regs->clock_divider); in netup_spi_init()
197 ndev->spi = nspi; in netup_spi_init()
/drivers/net/ethernet/netronome/nfp/
Dnfp_hwmon.c54 if (!(pf->nspi->sensor_mask & BIT(id))) in nfp_hwmon_read()
140 if (!pf->nspi) { in nfp_hwmon_register()
144 if (!pf->nspi->sensor_mask) { in nfp_hwmon_register()
Dnfp_main.c634 pf->nspi = __nfp_nsp_identify(nsp); in nfp_nsp_init()
635 if (pf->nspi) in nfp_nsp_init()
636 dev_info(&pdev->dev, "BSP: %s\n", pf->nspi->version); in nfp_nsp_init()
640 kfree(pf->nspi); in nfp_nsp_init()
878 kfree(pf->nspi); in nfp_pci_probe()
923 kfree(pf->nspi); in __nfp_pci_shutdown()
Dnfp_main.h128 struct nfp_nsp_identify *nspi; member
Dnfp_net_ethtool.c689 struct nfp_nsp_identify *nspi; in nfp_test_nsp() local
705 nspi = kzalloc(sizeof(*nspi), GFP_KERNEL); in nfp_test_nsp()
706 if (!nspi) { in nfp_test_nsp()
711 err = nfp_nsp_read_identify(nsp, nspi, sizeof(*nspi)); in nfp_test_nsp()
715 kfree(nspi); in nfp_test_nsp()