| /freebsd/sys/contrib/dev/rtw88/ |
| H A D | efuse.h | 15 #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 D | main.c | 1329 if (efuse->hw_cap.nss == 1 || rtwdev->hal.txrx_1ss) in rtw_update_sta_info() 1331 else if (efuse->hw_cap.nss == 2) in rtw_update_sta_info() 1398 tx_num = efuse->hw_cap.nss; in rtw_update_sta_info() 1676 if (efuse->hw_cap.bw & BIT(RTW_CHANNEL_WIDTH_40)) in rtw_init_ht_cap() 1684 for (i = 0; i < efuse->hw_cap.nss; i++) in rtw_init_ht_cap() 1687 ht_cap->mcs.rx_highest = cpu_to_le16(150 * efuse->hw_cap.nss); in rtw_init_ht_cap() 1698 if (efuse->hw_cap.ptcl != EFUSE_HW_CAP_IGNORE && in rtw_init_vht_cap() 1699 efuse->hw_cap.ptcl != EFUSE_HW_CAP_PTCL_VHT) in rtw_init_vht_cap() 1720 if (i < efuse->hw_cap.nss) in rtw_init_vht_cap() 1726 highest = cpu_to_le16(390 * efuse->hw_cap.nss); in rtw_init_vht_cap() [all …]
|
| H A D | rtw88xxa.c | 132 efuse->hw_cap.bw = BIT(RTW_CHANNEL_WIDTH_20) | in rtw88xxa_read_usb_type() 135 efuse->hw_cap.ptcl = EFUSE_HW_CAP_PTCL_VHT; in rtw88xxa_read_usb_type() 138 efuse->hw_cap.nss = 1; in rtw88xxa_read_usb_type() 140 efuse->hw_cap.nss = 2; in rtw88xxa_read_usb_type() 167 efuse->hw_cap.nss = 1; in rtw88xxa_read_usb_type() 175 efuse->hw_cap.nss = 2; in rtw88xxa_read_usb_type() 188 efuse->hw_cap.ptcl = 1; in rtw88xxa_read_usb_type() 189 efuse->hw_cap.bw &= ~BIT(RTW_CHANNEL_WIDTH_80); in rtw88xxa_read_usb_type() 196 efuse->hw_cap.hci, efuse->hw_cap.bw, efuse->hw_cap.ptcl, in rtw88xxa_read_usb_type() 197 efuse->hw_cap.ant_num, efuse->hw_cap.nss); in rtw88xxa_read_usb_type()
|
| H A D | rtw8814a.c | 117 efuse->hw_cap.bw = BIT(RTW_CHANNEL_WIDTH_20) | in rtw8814a_init_hwcap() 120 efuse->hw_cap.ptcl = EFUSE_HW_CAP_PTCL_VHT; in rtw8814a_init_hwcap() 123 efuse->hw_cap.nss = 3; in rtw8814a_init_hwcap() 125 efuse->hw_cap.nss = 2; in rtw8814a_init_hwcap() 129 efuse->hw_cap.hci, efuse->hw_cap.bw, efuse->hw_cap.ptcl, in rtw8814a_init_hwcap() 130 efuse->hw_cap.ant_num, efuse->hw_cap.nss); in rtw8814a_init_hwcap()
|
| H A D | tx.c | 133 if (efuse->hw_cap.nss == 1) { in get_highest_vht_tx_rate() 146 } else if (efuse->hw_cap.nss >= 2) { in get_highest_vht_tx_rate()
|
| H A D | debug.c | 697 u8 nss = rtwdev->efuse.hw_cap.nss; in rtw_debugfs_get_tx_pwr_tbl() 828 for (ss = 0; ss < efuse->hw_cap.nss; ss++) { in rtw_debugfs_get_phy_info() 842 for (ss = 0; ss < efuse->hw_cap.nss; ss++) { in rtw_debugfs_get_phy_info()
|
| H A D | regd.c | 287 if (efuse->hw_cap.bw & BIT(RTW_CHANNEL_WIDTH_80)) in rtw_regd_apply_hw_cap_flags()
|
| H A D | main.h | 1843 } hw_cap; member
|
| /freebsd/sys/x86/iommu/ |
| H A D | intel_utils.c | 118 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 D | intel_drv.c | 340 caphi = unit->hw_cap >> 32; in dmar_print_caps() 341 device_printf(dev, "cap=%b,", (u_int)unit->hw_cap, in dmar_print_caps() 345 DMAR_CAP_ND(unit->hw_cap), DMAR_CAP_SAGAW(unit->hw_cap), in dmar_print_caps() 346 DMAR_CAP_MGAW(unit->hw_cap), DMAR_CAP_FRO(unit->hw_cap), in dmar_print_caps() 347 DMAR_CAP_NFR(unit->hw_cap), DMAR_CAP_SPS(unit->hw_cap)); in dmar_print_caps() 348 if ((unit->hw_cap & DMAR_CAP_PSI) != 0) in dmar_print_caps() 349 printf(", mamv=%d", DMAR_CAP_MAMV(unit->hw_cap)); in dmar_print_caps() [all...] |
| H A D | intel_quirks.c | 153 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 D | intel_fault.c | 140 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 D | intel_idpgtbl.c | 271 if ((unit->hw_cap & DMAR_CAP_RWBF) != 0) { in dmar_get_idmap_pgtbl() 535 if ((unit->hw_cap & DMAR_CAP_CM) != 0) in dmar_map_buf() 537 else if ((unit->hw_cap & DMAR_CAP_RWBF) != 0) { in dmar_map_buf() 773 if ((unit->hw_cap & DMAR_CAP_PSI) == 0 || size > 2 * 1024 * 1024) { in dmar_flush_iotlb_sync()
|
| H A D | intel_qi.c | 348 if (!DMAR_HAS_QI(unit) || (unit->hw_cap & DMAR_CAP_CM) != 0) in dmar_init_qi()
|
| H A D | intel_dmar.h | 120 uint64_t hw_cap; member
|
| H A D | intel_ctx.c | 198 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 D | adf_c4xxx_hw_data.c | 1481 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 D | sysctl.h | 128 uint32_t hw_cap[8]; member
|