Home
last modified time | relevance | path

Searched refs:hw_cap (Results 1 – 16 of 16) sorted by relevance

/freebsd/sys/contrib/dev/rtw88/
H A Defuse.h15 #define GET_EFUSE_HW_CAP_HCI(hw_cap) \ argument
16 le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(3, 0))
17 #define GET_EFUSE_HW_CAP_BW(hw_cap) \ argument
18 le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(18, 16))
19 #define GET_EFUSE_HW_CAP_NSS(hw_cap) \ argument
20 le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(20, 19))
21 #define GET_EFUSE_HW_CAP_ANT_NUM(hw_cap) \ argument
22 le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(23, 21))
23 #define GET_EFUSE_HW_CAP_PTCL(hw_cap) \ argument
24 le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(27, 26))
H A Dmain.c1250 if (efuse->hw_cap.nss == 1 || rtwdev->hal.txrx_1ss) in rtw_update_sta_info()
1585 if (efuse->hw_cap.bw & BIT(RTW_CHANNEL_WIDTH_40)) in rtw_init_ht_cap()
1592 if (efuse->hw_cap.nss > 1) { in rtw_init_ht_cap()
1612 if (efuse->hw_cap.ptcl != EFUSE_HW_CAP_IGNORE && in rtw_init_vht_cap()
1613 efuse->hw_cap.ptcl != EFUSE_HW_CAP_PTCL_VHT) in rtw_init_vht_cap()
1640 if (efuse->hw_cap.nss > 1) { in rtw_init_vht_cap()
1975 efuse->hw_cap.bw = hw_bw_cap_to_bitamp(bw); in rtw_dump_hw_feature()
1976 efuse->hw_cap.hci = GET_EFUSE_HW_CAP_HCI(hw_feature); in rtw_dump_hw_feature()
1977 efuse->hw_cap.nss = GET_EFUSE_HW_CAP_NSS(hw_feature); in rtw_dump_hw_feature()
1978 efuse->hw_cap.ptcl = GET_EFUSE_HW_CAP_PTCL(hw_feature); in rtw_dump_hw_feature()
[all …]
H A Dtx.c128 if (efuse->hw_cap.nss == 1) { in get_highest_vht_tx_rate()
141 } else if (efuse->hw_cap.nss >= 2) { in get_highest_vht_tx_rate()
H A Ddebug.c766 for (ss = 0; ss < efuse->hw_cap.nss; ss++) { in rtw_debugfs_get_phy_info()
780 for (ss = 0; ss < efuse->hw_cap.nss; ss++) { in rtw_debugfs_get_phy_info()
H A Dregd.c287 if (efuse->hw_cap.bw & BIT(RTW_CHANNEL_WIDTH_80)) in rtw_regd_apply_hw_cap_flags()
H A Dmain.h1802 } hw_cap;
1789 } hw_cap; global() member
/freebsd/sys/x86/iommu/
H A Dintel_utils.c118 if ((DMAR_CAP_SAGAW(unit->hw_cap) & sagaw_bits[i].cap) != 0) in dmar_pglvl_supported()
130 sagaw = DMAR_CAP_SAGAW(domain->dmar->hw_cap); in domain_set_agaw()
159 (DMAR_CAP_SAGAW(unit->hw_cap) & sagaw_bits[i].cap) != 0) in dmar_maxaddr2mgaw()
165 } while ((DMAR_CAP_SAGAW(unit->hw_cap) & sagaw_bits[i].cap) in dmar_maxaddr2mgaw()
191 cap_sps = DMAR_CAP_SPS(domain->dmar->hw_cap); in domain_is_sp_lvl()
209 for (am = DMAR_CAP_MAMV(unit->hw_cap);; am--) { in calc_am()
345 KASSERT((unit->hw_cap & DMAR_CAP_RWBF) != 0, in dmar_flush_write_bufs()
369 if ((unit->hw_cap & (DMAR_CAP_PLMR | DMAR_CAP_PHMR)) == 0) in dmar_disable_protected_regions()
H A Dintel_drv.c339 caphi = unit->hw_cap >> 32; in dmar_print_caps()
340 device_printf(dev, "cap=%b,", (u_int)unit->hw_cap, in dmar_print_caps()
344 DMAR_CAP_ND(unit->hw_cap), DMAR_CAP_SAGAW(unit->hw_cap), in dmar_print_caps()
345 DMAR_CAP_MGAW(unit->hw_cap), DMAR_CAP_FRO(unit->hw_cap), in dmar_print_caps()
346 DMAR_CAP_NFR(unit->hw_cap), DMAR_CAP_SPS(unit->hw_cap)); in dmar_print_caps()
347 if ((unit->hw_cap & DMAR_CAP_PSI) != 0) in dmar_print_caps()
348 printf(", mamv=%d", DMAR_CAP_MAMV(unit->hw_cap)); in dmar_print_caps()
387 unit->hw_cap = dmar_read8(unit, DMAR_CAP_REG); in dmar_attach()
442 unit->domids = new_unrhdr(0, dmar_nd2mask(DMAR_CAP_ND(unit->hw_cap)), in dmar_attach()
453 if ((unit->hw_cap & DMAR_CAP_CM) != 0) in dmar_attach()
[all …]
H A Dintel_fault.c140 frir = (DMAR_CAP_FRO(unit->hw_cap) + fri) * 16; in dmar_fault_intr()
158 if (fri >= DMAR_CAP_NFR(unit->hw_cap)) in dmar_fault_intr()
249 for (i = 0; i < DMAR_CAP_NFR(unit->hw_cap); i++) { in dmar_clear_faults()
250 frir = (DMAR_CAP_FRO(unit->hw_cap) + i) * 16; in dmar_clear_faults()
H A Dintel_quirks.c153 unit->hw_cap &= ~(DMAR_CAP_PHMR | DMAR_CAP_PLMR); in nb_5400_no_low_high_prot_mem()
210 unit->hw_cap &= ~(0x3fULL << 48); in cpu_e5_am9()
211 unit->hw_cap |= (9ULL << 48); in cpu_e5_am9()
H A Dintel_idpgtbl.c269 if ((unit->hw_cap & DMAR_CAP_RWBF) != 0) { in dmar_get_idmap_pgtbl()
533 if ((unit->hw_cap & DMAR_CAP_CM) != 0) in dmar_map_buf()
535 else if ((unit->hw_cap & DMAR_CAP_RWBF) != 0) { in dmar_map_buf()
769 if ((unit->hw_cap & DMAR_CAP_PSI) == 0 || size > 2 * 1024 * 1024) { in dmar_flush_iotlb_sync()
H A Dintel_qi.c348 if (!DMAR_HAS_QI(unit) || (unit->hw_cap & DMAR_CAP_CM) != 0) in dmar_init_qi()
H A Dintel_dmar.h120 uint64_t hw_cap; member
H A Dintel_ctx.c198 if ((dmar->hw_cap & DMAR_CAP_CM) == 0 && !force) in dmar_flush_for_ctx_entry()
/freebsd/sys/dev/qat/qat_hw/qat_c4xxx/
H A Dadf_c4xxx_hw_data.c1481 u32 hw_cap = hw_data->accel_capabilities_mask; in check_svc_to_hw_capabilities() local
1483 hw_cap &= cap; in check_svc_to_hw_capabilities()
1484 if (hw_cap != cap) { in check_svc_to_hw_capabilities()
/freebsd/sys/contrib/xen/
H A Dsysctl.h128 uint32_t hw_cap[8]; member