Searched refs:nspi (Results 1 – 6 of 6) sorted by relevance
/linux/net/nfc/nci/ |
H A D | spi.c | 30 static int __nci_spi_send(struct nci_spi *nspi, const struct sk_buff *skb, in __nci_spi_send() argument 47 t.delay.value = nspi->xfer_udelay; in __nci_spi_send() 49 t.speed_hz = nspi->xfer_speed_hz; in __nci_spi_send() 54 return spi_sync(nspi->spi, &m); in __nci_spi_send() 57 int nci_spi_send(struct nci_spi *nspi, in nci_spi_send() argument 69 hdr[1] = nspi->acknowledge_mode; in nci_spi_send() 73 if (nspi->acknowledge_mode == NCI_SPI_CRC_ENABLED) { in nci_spi_send() 83 ret = __nci_spi_send(nspi, NULL, 1); in nci_spi_send() 95 ret = __nci_spi_send(nspi, skb, 0); in nci_spi_send() 96 if (ret != 0 || nspi->acknowledge_mode == NCI_SPI_CRC_DISABLED) in nci_spi_send() [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
H A D | nfp_nsp_cmds.c | 25 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 …]
|
/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_hwmon.c | 54 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()
|
H A D | nfp_main.c | 634 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()
|
H A D | nfp_main.h | 127 struct nfp_nsp_identify *nspi; member
|
H A D | nfp_net_ethtool.c | 700 struct nfp_nsp_identify *nspi; in nfp_test_nsp() local 716 nspi = kzalloc(sizeof(*nspi), GFP_KERNEL); in nfp_test_nsp() 717 if (!nspi) { in nfp_test_nsp() 722 err = nfp_nsp_read_identify(nsp, nspi, sizeof(*nspi)); in nfp_test_nsp() 726 kfree(nspi); in nfp_test_nsp()
|