Home
last modified time | relevance | path

Searched refs:spad_count (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/pci/endpoint/functions/
H A Dpci-epf-vntb.c112 u32 spad_count; member
125 u32 spad_count; member
418 u32 spad_count; in epf_ntb_config_spad_bar_alloc() local
431 spad_count = ntb->spad_count; in epf_ntb_config_spad_bar_alloc()
434 spad_size = 2 * spad_count * sizeof(u32); in epf_ntb_config_spad_bar_alloc()
460 ctrl->spad_count = spad_count; in epf_ntb_config_spad_bar_alloc()
903 EPF_NTB_R(spad_count)
904 EPF_NTB_W(spad_count)
923 CONFIGFS_ATTR(epf_ntb_, spad_count);
1043 return ntb_ndev(ntb)->spad_count; in vntb_epf_spad_count()
[all …]
H A Dpci-epf-ntb.c79 u32 spad_count; member
118 u32 spad_count; member
1006 u32 spad_count; in epf_ntb_config_spad_bar_alloc() local
1027 spad_count = ntb->spad_count; in epf_ntb_config_spad_bar_alloc()
1030 spad_size = spad_count * 4; in epf_ntb_config_spad_bar_alloc()
1053 spad_count = peer_size / 4; in epf_ntb_config_spad_bar_alloc()
1081 ctrl->spad_count = spad_count; in epf_ntb_config_spad_bar_alloc()
2016 EPF_NTB_R(spad_count)
2017 EPF_NTB_W(spad_count)
2030 CONFIGFS_ATTR(epf_ntb_, spad_count);
/linux/drivers/ntb/hw/epf/
H A Dntb_hw_epf.c72 unsigned int spad_count; member
211 if (idx < 0 || idx >= ndev->spad_count) { in ntb_epf_spad_read()
229 if (idx < 0 || idx >= ndev->spad_count) { in ntb_epf_spad_write()
252 if (idx < 0 || idx >= ndev->spad_count) { in ntb_epf_peer_spad_read()
273 if (idx < 0 || idx >= ndev->spad_count) { in ntb_epf_peer_spad_write()
390 return ntb_ndev(ntb)->spad_count; in ntb_epf_spad_count()
517 .spad_count = ntb_epf_spad_count,
561 ndev->spad_count = readl(ndev->ctrl_reg + NTB_EPF_SPAD_COUNT); in ntb_epf_init_dev()
/linux/drivers/ntb/hw/amd/
H A Dntb_hw_amd.c484 return ntb_ndev(ntb)->spad_count; in amd_ntb_spad_count()
493 if (idx < 0 || idx >= ndev->spad_count) in amd_ntb_spad_read()
507 if (idx < 0 || idx >= ndev->spad_count) in amd_ntb_spad_write()
522 if (sidx < 0 || sidx >= ndev->spad_count) in amd_ntb_peer_spad_read()
536 if (sidx < 0 || sidx >= ndev->spad_count) in amd_ntb_peer_spad_write()
562 .spad_count = amd_ntb_spad_count,
886 "Scratchpad Count -\t%u\n", ndev->spad_count); in ndev_debugfs_read()
1063 ndev->spad_count = AMD_SPADS_CNT; in amd_init_ntb()
1069 ndev->spad_count >>= 1; in amd_init_ntb()
H A Dntb_hw_amd.h190 unsigned char spad_count; member
/linux/include/linux/
H A Dntb.h312 int (*spad_count)(struct ntb_dev *ntb); member
379 !ops->spad_read == !ops->spad_count && in ntb_dev_ops_is_valid()
380 !ops->spad_write == !ops->spad_count && in ntb_dev_ops_is_valid()
383 !ops->peer_spad_write == !ops->spad_count && in ntb_dev_ops_is_valid()
1306 if (!ntb->ops->spad_count) in ntb_spad_count()
1309 return ntb->ops->spad_count(ntb); in ntb_spad_count()
/linux/Documentation/PCI/endpoint/function/binding/
H A Dpci-ntb.rst37 spad_count Number of scratchpad registers; default = 64
/linux/drivers/ntb/hw/intel/
H A Dntb_hw_gen1.c284 if (idx < 0 || idx >= ndev->spad_count) in ndev_spad_addr()
302 if (idx < 0 || idx >= ndev->spad_count) in ndev_spad_read()
314 if (idx < 0 || idx >= ndev->spad_count) in ndev_spad_write()
554 "Scratchpad Count -\t%u\n", ndev->spad_count); in ndev_ntb_debugfs_read()
1159 return ndev->spad_count; in intel_ntb_spad_count()
1548 ndev->spad_count = XEON_SPAD_COUNT; in xeon_init_ntb()
1565 ndev->spad_count >>= 1; in xeon_init_ntb()
1577 ndev->spad_count >>= 1; in xeon_init_ntb()
1828 ndev->spad_count = 0; in ndev_init_struct()
2013 .spad_count = intel_ntb_spad_count,
H A Dntb_hw_gen3.c179 ndev->spad_count = GEN3_SPAD_COUNT; in gen3_init_ntb()
305 "Scratchpad Count -\t%u\n", ndev->spad_count); in ndev_ntb3_debugfs_read()
620 .spad_count = intel_ntb_spad_count,
H A Dntb_hw_gen4.c133 ndev->spad_count = GEN4_SPAD_COUNT; in gen4_init_ntb()
269 "Scratchpad Count -\t%u\n", ndev->spad_count); in ndev_ntb4_debugfs_read()
585 .spad_count = intel_ntb_spad_count,
H A Dntb_hw_intel.h153 unsigned char spad_count; member
/linux/Documentation/PCI/endpoint/
H A Dpci-vntb-howto.rst94 spad_count
99 # echo 128 > functions/pci_epf_vntb/func1/pci_epf_vntb.0/spad_count
H A Dpci-ntb-howto.rst98 spad_count
103 # echo 128 > functions/pci_epf_ntb/func1/pci_epf_ntb.0/spad_count
/linux/drivers/ntb/
H A Dntb_transport.c1267 unsigned int mw_count, qp_count, spad_count, max_mw_count_for_spads; in ntb_transport_probe() local
1309 spad_count = ntb_spad_count(ndev); in ntb_transport_probe()
1313 if (spad_count < NTB_TRANSPORT_MIN_SPADS) { in ntb_transport_probe()
1319 max_mw_count_for_spads = (spad_count - MW0_SZ_HIGH) / 2; in ntb_transport_probe()
/linux/drivers/ntb/hw/mscc/
H A Dntb_hw_switchtec.c832 .spad_count = switchtec_ntb_spad_count,