Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/pci/endpoint/functions/
Dpci-epf-vntb.c112 u32 spad_count; member
125 u32 spad_count; member
411 u32 spad_count; in epf_ntb_config_spad_bar_alloc() local
424 spad_count = ntb->spad_count; in epf_ntb_config_spad_bar_alloc()
427 spad_size = 2 * spad_count * 4; in epf_ntb_config_spad_bar_alloc()
453 ctrl->spad_count = spad_count; in epf_ntb_config_spad_bar_alloc()
896 EPF_NTB_R(spad_count)
897 EPF_NTB_W(spad_count)
916 CONFIGFS_ATTR(epf_ntb_, spad_count);
1032 return ntb_ndev(ntb)->spad_count; in vntb_epf_spad_count()
[all …]
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-6.1.9/drivers/ntb/hw/epf/
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-6.1.9/include/linux/
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-6.1.9/drivers/ntb/hw/amd/
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()
1066 ndev->spad_count = AMD_SPADS_CNT; in amd_init_ntb()
1072 ndev->spad_count >>= 1; in amd_init_ntb()
Dntb_hw_amd.h190 unsigned char spad_count; member
/linux-6.1.9/Documentation/PCI/endpoint/function/binding/
Dpci-ntb.rst37 spad_count Number of scratchpad registers; default = 64
/linux-6.1.9/drivers/ntb/hw/intel/
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()
1830 ndev->spad_count = 0; in ndev_init_struct()
2015 .spad_count = intel_ntb_spad_count,
Dntb_hw_intel.h153 unsigned char spad_count; member
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,
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,
/linux-6.1.9/Documentation/PCI/endpoint/
Dpci-ntb-howto.rst101 spad_count
106 # echo 128 > functions/pci_epf_ntb/func1/pci_epf_ntb.0/spad_count
Dpci-vntb-howto.rst97 spad_count
102 # echo 128 > functions/pci_epf_vntb/func1/pci_epf_vntb.0/spad_count
/linux-6.1.9/drivers/ntb/
Dntb_transport.c1245 unsigned int mw_count, qp_count, spad_count, max_mw_count_for_spads; in ntb_transport_probe() local
1287 spad_count = ntb_spad_count(ndev); in ntb_transport_probe()
1291 if (spad_count < NTB_TRANSPORT_MIN_SPADS) { in ntb_transport_probe()
1297 max_mw_count_for_spads = (spad_count - MW0_SZ_HIGH) / 2; in ntb_transport_probe()
/linux-6.1.9/drivers/ntb/hw/mscc/
Dntb_hw_switchtec.c832 .spad_count = switchtec_ntb_spad_count,