/freebsd/sys/dev/ntb/ntb_hw/ |
H A D | ntb_hw_plx.c | 146 static int ntb_plx_mw_set_trans_internal(device_t dev, unsigned mw_idx); 637 ntb_plx_mw_get_range(device_t dev, unsigned mw_idx, vm_paddr_t *base, in ntb_plx_mw_get_range() argument 646 mw_idx = ntb_plx_user_mw_to_idx(sc, mw_idx, &sp); in ntb_plx_mw_get_range() 647 if (mw_idx >= sc->mw_count) in ntb_plx_mw_get_range() 650 if (mw_idx == sc->b2b_mw) { in ntb_plx_mw_get_range() 655 mw = &sc->mw_info[mw_idx]; in ntb_plx_mw_get_range() 706 ntb_plx_mw_set_trans_internal(device_t dev, unsigned mw_idx) in ntb_plx_mw_set_trans_internal() argument 714 mw = &sc->mw_info[mw_idx]; in ntb_plx_mw_set_trans_internal() 715 off = (mw_idx == sc->b2b_mw) ? sc->b2b_off : 0; in ntb_plx_mw_set_trans_internal() 797 ntb_plx_mw_set_trans(device_t dev, unsigned mw_idx, bus_addr_t addr, size_t size) in ntb_plx_mw_set_trans() argument [all …]
|
H A D | ntb_hw_amd.c | 342 amd_ntb_mw_get_range(device_t dev, unsigned mw_idx, vm_paddr_t *base, in amd_ntb_mw_get_range() argument 349 if (mw_idx < 0 || mw_idx >= ntb->hw_info->mw_count) in amd_ntb_mw_get_range() 352 bar_info = &ntb->bar_info[ntb->hw_info->bar_start_idx + mw_idx]; in amd_ntb_mw_get_range() 375 if ((mw_idx == 0) && (ntb->hw_info->quirks & QUIRK_MW0_32BIT)) in amd_ntb_mw_get_range() 385 amd_ntb_mw_set_trans(device_t dev, unsigned mw_idx, bus_addr_t addr, size_t size) in amd_ntb_mw_set_trans() argument 390 if (mw_idx < 0 || mw_idx >= ntb->hw_info->mw_count) in amd_ntb_mw_set_trans() 393 bar_info = &ntb->bar_info[ntb->hw_info->bar_start_idx + mw_idx]; in amd_ntb_mw_set_trans() 403 __func__, mw_idx, (uintmax_t)bar_info->size, in amd_ntb_mw_set_trans() 414 __func__, mw_idx, bar_info->xlat_off, in amd_ntb_mw_set_trans() 424 if ((mw_idx == 0) && (ntb->hw_info->quirks & QUIRK_MW0_32BIT)) { in amd_ntb_mw_set_trans() [all …]
|
H A D | ntb_hw_intel.c | 3551 intel_ntb_mw_get_range(device_t dev, unsigned mw_idx, vm_paddr_t *base, in intel_ntb_mw_get_range() argument 3561 if (mw_idx >= intel_ntb_mw_count(dev)) in intel_ntb_mw_get_range() 3563 mw_idx = intel_ntb_user_mw_to_idx(ntb, mw_idx); in intel_ntb_mw_get_range() 3565 bar_num = intel_ntb_mw_to_bar(ntb, mw_idx); in intel_ntb_mw_get_range() 3568 if (mw_idx == ntb->b2b_mw_idx) { in intel_ntb_mw_get_range() 3690 intel_ntb_mw_clear_trans(device_t dev, unsigned mw_idx) in intel_ntb_mw_clear_trans() argument 3693 return (intel_ntb_mw_set_trans(dev, mw_idx, 0, 0)); in intel_ntb_mw_clear_trans()
|
/freebsd/sys/dev/ntb/ |
H A D | ntb.h | 213 int ntb_mw_get_range(device_t ntb, unsigned mw_idx, vm_paddr_t *base, 233 int ntb_mw_set_trans(device_t ntb, unsigned mw_idx, bus_addr_t addr, 246 int ntb_mw_clear_trans(device_t ntb, unsigned mw_idx); 256 int ntb_mw_get_wc(device_t ntb, unsigned mw_idx, vm_memattr_t *mode); 268 int ntb_mw_set_wc(device_t ntb, unsigned mw_idx, vm_memattr_t mode);
|
H A D | ntb.c | 381 ntb_mw_get_range(device_t ntb, unsigned mw_idx, vm_paddr_t *base, in ntb_mw_get_range() argument 387 return (NTB_MW_GET_RANGE(device_get_parent(ntb), mw_idx + nc->mwoff, in ntb_mw_get_range() 392 ntb_mw_set_trans(device_t ntb, unsigned mw_idx, bus_addr_t addr, size_t size) in ntb_mw_set_trans() argument 396 return (NTB_MW_SET_TRANS(device_get_parent(ntb), mw_idx + nc->mwoff, in ntb_mw_set_trans() 401 ntb_mw_clear_trans(device_t ntb, unsigned mw_idx) in ntb_mw_clear_trans() argument 405 return (NTB_MW_CLEAR_TRANS(device_get_parent(ntb), mw_idx + nc->mwoff)); in ntb_mw_clear_trans() 409 ntb_mw_get_wc(device_t ntb, unsigned mw_idx, vm_memattr_t *mode) in ntb_mw_get_wc() argument 413 return (NTB_MW_GET_WC(device_get_parent(ntb), mw_idx + nc->mwoff, mode)); in ntb_mw_get_wc() 417 ntb_mw_set_wc(device_t ntb, unsigned mw_idx, vm_memattr_t mode) in ntb_mw_set_wc() argument 421 return (NTB_MW_SET_WC(device_get_parent(ntb), mw_idx + nc->mwoff, mode)); in ntb_mw_set_wc()
|
H A D | ntb_if.m | 122 unsigned mw_idx; 133 unsigned mw_idx; 140 unsigned mw_idx; 145 unsigned mw_idx; 151 unsigned mw_idx;
|