Searched refs:mw_size (Results 1 – 7 of 7) sorted by relevance
/drivers/ntb/ |
D | msi.c | 35 resource_size_t mw_size; in ntb_msi_init() local 58 &mw_size); in ntb_msi_init() 63 mw_size); in ntb_msi_init() 103 resource_size_t mw_size = SZ_32K; in ntb_msi_setup_mws() local 104 resource_size_t mw_min_size = mw_size; in ntb_msi_setup_mws() 139 mw_size = round_up(mw_size, size_align); in ntb_msi_setup_mws() 140 mw_size = max(mw_size, size_max); in ntb_msi_setup_mws() 141 if (mw_size < mw_min_size) in ntb_msi_setup_mws() 142 mw_min_size = mw_size; in ntb_msi_setup_mws() 145 addr, mw_size); in ntb_msi_setup_mws()
|
D | ntb_transport.c | 1168 resource_size_t mw_size; in ntb_transport_init_queue() local 1192 mw_size = nt->mw_vec[mw_num].phys_size; in ntb_transport_init_queue() 1194 if (max_mw_size && mw_size > max_mw_size) in ntb_transport_init_queue() 1195 mw_size = max_mw_size; in ntb_transport_init_queue() 1197 tx_size = (unsigned int)mw_size / num_qps_mw; in ntb_transport_init_queue()
|
/drivers/ntb/hw/intel/ |
D | ntb_hw_gen4.c | 343 resource_size_t bar_size, mw_size; in intel_ntb4_mw_set_trans() local 361 mw_size = bar_size - ndev->b2b_off; in intel_ntb4_mw_set_trans() 363 mw_size = bar_size; in intel_ntb4_mw_set_trans() 375 if (size > mw_size) in intel_ntb4_mw_set_trans() 384 if (limit_reg && size != mw_size) { in intel_ntb4_mw_set_trans() 388 limit = base + mw_size; in intel_ntb4_mw_set_trans() 389 base_idx = __ilog2_u64(mw_size); in intel_ntb4_mw_set_trans() 530 resource_size_t bar_size, mw_size; in intel_ntb4_mw_get_align() local 546 mw_size = bar_size - ndev->b2b_off; in intel_ntb4_mw_get_align() 548 mw_size = bar_size; in intel_ntb4_mw_get_align() [all …]
|
D | ntb_hw_gen3.c | 448 resource_size_t bar_size, mw_size; in intel_ntb3_mw_set_trans() local 466 mw_size = bar_size - ndev->b2b_off; in intel_ntb3_mw_set_trans() 468 mw_size = bar_size; in intel_ntb3_mw_set_trans() 475 if (size > mw_size) in intel_ntb3_mw_set_trans() 484 if (limit_reg && size != mw_size) in intel_ntb3_mw_set_trans() 487 limit = base + mw_size; in intel_ntb3_mw_set_trans() 515 if (limit_reg && size != mw_size) in intel_ntb3_mw_set_trans() 518 limit = base + mw_size; in intel_ntb3_mw_set_trans()
|
D | ntb_hw_gen1.c | 810 resource_size_t bar_size, mw_size; in intel_ntb_mw_get_align() local 826 mw_size = bar_size - ndev->b2b_off; in intel_ntb_mw_get_align() 828 mw_size = bar_size; in intel_ntb_mw_get_align() 837 *size_max = mw_size; in intel_ntb_mw_get_align() 847 resource_size_t bar_size, mw_size; in intel_ntb_mw_set_trans() local 865 mw_size = bar_size - ndev->b2b_off; in intel_ntb_mw_set_trans() 867 mw_size = bar_size; in intel_ntb_mw_set_trans() 874 if (size > mw_size) in intel_ntb_mw_set_trans() 886 if (limit_reg && size != mw_size) in intel_ntb_mw_set_trans() 917 if (limit_reg && size != mw_size) in intel_ntb_mw_set_trans()
|
/drivers/ntb/hw/epf/ |
D | ntb_hw_epf.c | 406 resource_size_t mw_size; in ntb_epf_mw_set_trans() local 416 mw_size = pci_resource_len(ntb->pdev, bar); in ntb_epf_mw_set_trans() 418 if (size > mw_size) { in ntb_epf_mw_set_trans() 420 &size, &mw_size); in ntb_epf_mw_set_trans()
|
/drivers/ntb/hw/amd/ |
D | ntb_hw_amd.c | 124 resource_size_t mw_size; in amd_ntb_mw_set_trans() local 136 mw_size = pci_resource_len(ntb->pdev, bar); in amd_ntb_mw_set_trans() 139 if (size > mw_size) in amd_ntb_mw_set_trans()
|