Home
last modified time | relevance | path

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

/drivers/ntb/
Dmsi.c35 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()
Dntb_transport.c1170 resource_size_t mw_size; in ntb_transport_init_queue() local
1194 mw_size = nt->mw_vec[mw_num].phys_size; in ntb_transport_init_queue()
1196 if (max_mw_size && mw_size > max_mw_size) in ntb_transport_init_queue()
1197 mw_size = max_mw_size; in ntb_transport_init_queue()
1199 tx_size = (unsigned int)mw_size / num_qps_mw; in ntb_transport_init_queue()
/drivers/ntb/hw/intel/
Dntb_hw_gen4.c341 resource_size_t bar_size, mw_size; in intel_ntb4_mw_set_trans() local
359 mw_size = bar_size - ndev->b2b_off; in intel_ntb4_mw_set_trans()
361 mw_size = bar_size; in intel_ntb4_mw_set_trans()
373 if (size > mw_size) in intel_ntb4_mw_set_trans()
382 if (limit_reg && size != mw_size) { in intel_ntb4_mw_set_trans()
386 limit = base + mw_size; in intel_ntb4_mw_set_trans()
387 base_idx = __ilog2_u64(mw_size); in intel_ntb4_mw_set_trans()
505 resource_size_t bar_size, mw_size; in intel_ntb4_mw_get_align() local
521 mw_size = bar_size - ndev->b2b_off; in intel_ntb4_mw_get_align()
523 mw_size = bar_size; in intel_ntb4_mw_get_align()
[all …]
Dntb_hw_gen3.c448 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()
Dntb_hw_gen1.c810 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/amd/
Dntb_hw_amd.c124 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()