/linux/drivers/gpu/drm/amd/display/include/ |
H A D | dal_asic_id.h | 46 #define ASIC_REV_IS_TAHITI_P(rev) \ argument 47 ((rev >= SI_TAHITI_P_A0) && (rev < SI_PITCAIRN_PM_A0)) 49 #define ASIC_REV_IS_PITCAIRN_PM(rev) \ argument 50 ((rev >= SI_PITCAIRN_PM_A0) && (rev < SI_CAPEVERDE_M_A0)) 52 #define ASIC_REV_IS_CAPEVERDE_M(rev) \ argument 53 ((rev >= SI_CAPEVERDE_M_A0) && (rev < SI_OLAND_M_A0)) 55 #define ASIC_REV_IS_OLAND_M(rev) \ argument 56 ((rev >= SI_OLAND_M_A0) && (rev < SI_HAINAN_V_A0)) 58 #define ASIC_REV_IS_HAINAN_V(rev) \ argument 59 ((rev >= SI_HAINAN_V_A0) && (rev < SI_UNKNOWN)) [all …]
|
/linux/arch/mips/ath79/ |
H A D | setup.c | 49 u32 rev = 0; in ath79_detect_sys_type() local 58 rev = id >> AR71XX_REV_ID_REVISION_SHIFT; in ath79_detect_sys_type() 59 rev &= AR71XX_REV_ID_REVISION_MASK; in ath79_detect_sys_type() 81 rev = id & AR724X_REV_ID_REVISION_MASK; in ath79_detect_sys_type() 87 rev = id & AR724X_REV_ID_REVISION_MASK; in ath79_detect_sys_type() 93 rev = id & AR724X_REV_ID_REVISION_MASK; in ath79_detect_sys_type() 98 rev = id >> AR913X_REV_ID_REVISION_SHIFT; in ath79_detect_sys_type() 99 rev &= AR913X_REV_ID_REVISION_MASK; in ath79_detect_sys_type() 116 rev = id & AR933X_REV_ID_REVISION_MASK; in ath79_detect_sys_type() 122 rev = id & AR933X_REV_ID_REVISION_MASK; in ath79_detect_sys_type() [all …]
|
/linux/arch/arm/mach-s3c/ |
H A D | mach-crag6410-module.c | 344 u8 rev; member 353 { .id = 0x01, .rev = 0xff, .name = "1250-EV1 Springbank" }, 354 { .id = 0x02, .rev = 0xff, .name = "1251-EV1 Jura" }, 355 { .id = 0x03, .rev = 0xff, .name = "1252-EV1 Glenlivet" }, 356 { .id = 0x06, .rev = 0xff, .name = "WM8997-6721-CS96-EV1 Lapraoig" }, 357 { .id = 0x07, .rev = 0xff, .name = "WM5110-6271 Deanston", 360 { .id = 0x08, .rev = 0xff, .name = "WM8903-6102 Tamdhu" }, 361 { .id = 0x09, .rev = 0xff, .name = "WM1811A-6305 Adelphi" }, 362 { .id = 0x0a, .rev = 0xff, .name = "WM8996-6272 Blackadder" }, 363 { .id = 0x0b, .rev = 0xff, .name = "WM8994-6235 Benromach" }, [all …]
|
/linux/arch/arm/mach-imx/ |
H A D | cpu-imx31.c | 21 unsigned int rev; member 23 { .srev = 0x00, .name = "i.MX31(L)", .rev = IMX_CHIP_REVISION_1_0 }, 24 { .srev = 0x10, .name = "i.MX31", .rev = IMX_CHIP_REVISION_1_1 }, 25 { .srev = 0x11, .name = "i.MX31L", .rev = IMX_CHIP_REVISION_1_1 }, 26 { .srev = 0x12, .name = "i.MX31", .rev = IMX_CHIP_REVISION_1_1 }, 27 { .srev = 0x13, .name = "i.MX31L", .rev = IMX_CHIP_REVISION_1_1 }, 28 { .srev = 0x14, .name = "i.MX31", .rev = IMX_CHIP_REVISION_1_2 }, 29 { .srev = 0x15, .name = "i.MX31L", .rev = IMX_CHIP_REVISION_1_2 }, 30 { .srev = 0x28, .name = "i.MX31", .rev = IMX_CHIP_REVISION_2_0 }, 31 { .srev = 0x29, .name = "i.MX31L", .rev = IMX_CHIP_REVISION_2_0 }, [all …]
|
/linux/arch/arm/mach-omap2/ |
H A D | id.c | 152 u8 dev_type, rev; in omap2xxx_check_revision() local 158 rev = (idcode >> 28) & 0x0f; in omap2xxx_check_revision() 163 idcode, rev, hawkeye, (idcode >> 1) & 0x7ff); in omap2xxx_check_revision() 353 u8 rev; in omap3xxx_check_revision() local 375 rev = (idcode >> 28) & 0xff; in omap3xxx_check_revision() 380 switch (rev) { in omap3xxx_check_revision() 412 switch (rev) { in omap3xxx_check_revision() 426 switch(rev) { in omap3xxx_check_revision() 442 switch (rev) { in omap3xxx_check_revision() 462 switch (rev) { in omap3xxx_check_revision() [all …]
|
/linux/drivers/firmware/arm_scmi/ |
H A D | base.c | 71 struct scmi_revision_info *rev = ph->get_priv(ph); in scmi_base_attributes_get() local 81 rev->num_protocols = attr_info->num_protocols; in scmi_base_attributes_get() 82 rev->num_agents = attr_info->num_agents; in scmi_base_attributes_get() 105 struct scmi_revision_info *rev = ph->get_priv(ph); in scmi_base_vendor_id_get() local 109 vendor_id = rev->sub_vendor_id; in scmi_base_vendor_id_get() 110 size = ARRAY_SIZE(rev->sub_vendor_id); in scmi_base_vendor_id_get() 113 vendor_id = rev->vendor_id; in scmi_base_vendor_id_get() 114 size = ARRAY_SIZE(rev->vendor_id); in scmi_base_vendor_id_get() 145 struct scmi_revision_info *rev = ph->get_priv(ph); in scmi_base_implementation_version_get() local 155 rev->impl_ver = le32_to_cpu(*impl_ver); in scmi_base_implementation_version_get() [all …]
|
/linux/arch/arm/mach-orion5x/ |
H A D | common.c | 197 u32 rev, dev; in orion5x_init_early() local 203 orion5x_pcie_id(&dev, &rev); in orion5x_init_early() 249 u32 dev, rev; in orion5x_find_tclk() local 251 orion5x_pcie_id(&dev, &rev); in orion5x_find_tclk() 274 void __init orion5x_id(u32 *dev, u32 *rev, char **dev_name) in orion5x_id() argument 276 orion5x_pcie_id(dev, rev); in orion5x_id() 279 if (*rev == MV88F5281_REV_D2) { in orion5x_id() 281 } else if (*rev == MV88F5281_REV_D1) { in orion5x_id() 283 } else if (*rev == MV88F5281_REV_D0) { in orion5x_id() 289 if (*rev == MV88F5182_REV_A2) { in orion5x_id() [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | mlxsw_lib.sh | 27 local rev=$1; shift 29 local rev2=${rev%+} 31 if [[ $rev2 != $rev ]]; then 40 local rev=$1; shift 44 if ! mlxsw_on_spectrum "$rev"; then 45 log_test_xfail $src:$caller "(Spectrum-$rev only)" 54 local rev 56 for rev in "$@"; do 57 if __mlxsw_only_on_spectrum "$rev" "$caller" "$src"; then
|
/linux/arch/powerpc/kvm/ |
H A D | book3s_hv_rm_mmu.c | 68 void kvmppc_add_revmap_chain(struct kvm *kvm, struct revmap_entry *rev, in kvmppc_add_revmap_chain() argument 76 head = &kvm->arch.hpt.rev[i]; in kvmppc_add_revmap_chain() 79 tail = &kvm->arch.hpt.rev[head->back]; in kvmppc_add_revmap_chain() 82 rev->forw = i; in kvmppc_add_revmap_chain() 83 rev->back = head->back; in kvmppc_add_revmap_chain() 87 rev->forw = rev->back = pte_index; in kvmppc_add_revmap_chain() 148 struct revmap_entry *rev, in remove_revmap_chain() argument 159 ptel = rev->guest_rpte |= rcbits; in remove_revmap_chain() 166 next = real_vmalloc_addr(&kvm->arch.hpt.rev[rev->forw]); in remove_revmap_chain() 167 prev = real_vmalloc_addr(&kvm->arch.hpt.rev[rev->back]); in remove_revmap_chain() [all …]
|
/linux/sound/soc/codecs/ |
H A D | tfa989x.c | 55 unsigned int rev; member 60 const struct tfa989x_rev *rev; member 126 if (tfa989x->rev->rev == TFA9897_REVISION) in tfa989x_probe() 215 .rev = TFA9890_REVISION, 240 .rev = TFA9895_REVISION, 263 .rev = TFA9897_REVISION, 320 const struct tfa989x_rev *rev; in tfa989x_i2c_probe() local 326 rev = device_get_match_data(dev); in tfa989x_i2c_probe() 327 if (!rev) { in tfa989x_i2c_probe() 336 tfa989x->rev = rev; in tfa989x_i2c_probe() [all …]
|
/linux/drivers/acpi/ |
H A D | pci_mcfg.c | 46 #define AL_ECAM(table_id, rev, seg, ops) \ argument 47 { "AMAZON", table_id, rev, seg, MCFG_BUS_ANY, ops } 86 #define THUNDER_PEM_QUIRK(rev, node) \ argument 87 { "CAVIUM", "THUNDERX", rev, 4 + (10 * (node)), MCFG_BUS_ANY, \ 89 { "CAVIUM", "THUNDERX", rev, 5 + (10 * (node)), MCFG_BUS_ANY, \ 91 { "CAVIUM", "THUNDERX", rev, 6 + (10 * (node)), MCFG_BUS_ANY, \ 93 { "CAVIUM", "THUNDERX", rev, 7 + (10 * (node)), MCFG_BUS_ANY, \ 95 { "CAVIUM", "THUNDERX", rev, 8 + (10 * (node)), MCFG_BUS_ANY, \ 97 { "CAVIUM", "THUNDERX", rev, 9 + (10 * (node)), MCFG_BUS_ANY, \ 100 #define THUNDER_ECAM_QUIRK(rev, seg) \ argument [all …]
|
/linux/drivers/ras/amd/atl/ |
H A D | system.c | 116 df_cfg.rev = FIELD_GET(DF_MINOR_REVISION, reg) < 5 ? DF4 : DF4p5; in df4_determine_df_rev() 153 df_cfg.rev = DF3p5; in determine_df_rev_legacy() 178 df_cfg.rev = DF3; in determine_df_rev_legacy() 189 df_cfg.rev = DF2; in determine_df_rev_legacy() 197 u8 rev; in determine_df_rev() local 199 if (df_cfg.rev != UNKNOWN) in determine_df_rev() 211 rev = FIELD_GET(DF_MAJOR_REVISION, reg); in determine_df_rev() 212 if (!rev) in determine_df_rev() 220 if (rev == 4) in determine_df_rev() 230 if (df_cfg.rev >= DF4) in get_dram_hole_base() [all …]
|
/linux/drivers/soc/ux500/ |
H A D | ux500-soc-id.c | 53 unsigned int rev = dbx500_id.revision; in ux500_print_soc_info() local 57 if (rev == 0x01) in ux500_print_soc_info() 59 else if (rev >= 0xA0) in ux500_print_soc_info() 60 pr_cont("v%d.%d" , (rev >> 4) - 0xA + 1, rev & 0xf); in ux500_print_soc_info() 138 unsigned int rev = dbx500_id.revision; in ux500_get_revision() local 140 if (rev == 0x01) in ux500_get_revision() 142 else if (rev >= 0xA0) in ux500_get_revision() 144 (rev >> 4) - 0xA + 1, rev & 0xf); in ux500_get_revision()
|
/linux/drivers/net/wireless/broadcom/b43/ |
H A D | wa.c | 26 if (phy->rev <= 2) in b43_wa_initgains() 34 if (phy->rev <= 3) in b43_wa_initgains() 36 else if (phy->rev == 5) { in b43_wa_initgains() 40 if (phy->rev >= 3) in b43_wa_initgains() 87 if (phy->rev == 1) in b43_wa_nft() 117 if (phy->rev >= 6) { in b43_wa_nst() 159 if (phy->rev == 1) { in b43_wa_crs_ed() 161 } else if (phy->rev == 2) { in b43_wa_crs_ed() 192 if (dev->phy.rev == 1) { in b43_wa_wrssi_offset() 215 if (phy->rev == 1) { in b43_wa_altagc() [all …]
|
H A D | phy_n.c | 164 if (phy->rev >= 19 || phy->rev < 3) { in b43_nphy_rf_ctl_override_rev7() 204 B43_WARN_ON(phy->rev < 7); in b43_nphy_rf_ctl_override_one_to_many() 250 if (dev->phy.rev >= 3) { in b43_nphy_rf_ctl_override() 393 if (dev->phy.rev >= 7) { in b43_nphy_rf_ctl_intc_override() 399 B43_WARN_ON(dev->phy.rev < 3); in b43_nphy_rf_ctl_intc_override() 637 u8 end = (dev->phy.rev >= 3) ? 0x1F : 0x0F; in b43_nphy_set_rf_sequence() 1134 B43_WARN_ON(dev->phy.rev < 3); in b43_radio_2056_setup() 1176 if (dev->phy.rev >= 5) { in b43_radio_2056_setup() 1305 if (phy->rev != 3) in b43_radio_2056_rcal() 1413 B43_WARN_ON(dev->phy.rev >= 3); in b43_radio_2055_setup() [all …]
|
H A D | phy_g.c | 305 if (phy->rev <= 1) { in b43_set_all_gains() 311 if (phy->rev <= 1) in b43_set_all_gains() 335 if (phy->rev <= 1) { in b43_set_original_gains() 341 if (phy->rev <= 1) in b43_set_original_gains() 420 if (phy->rev != 1) { /* Not in specs, but needed to prevent PPC machine check */ in b43_calc_nrssi_offset() 437 if (phy->rev >= 6) { in b43_calc_nrssi_offset() 478 if (phy->rev != 1) { /* Not in specs, but needed to prevent PPC machine check */ in b43_calc_nrssi_offset() 489 if (phy->rev == 0) { in b43_calc_nrssi_offset() 494 if (phy->rev != 1) { /* Not in specs, but needed to prevent PPC machine check */ in b43_calc_nrssi_offset() 525 if (phy->rev >= 6) { in b43_calc_nrssi_offset() [all …]
|
/linux/arch/arm/include/debug/ |
H A D | samsung.S | 14 ARM_BE8(rev \rd, \rd) 20 ARM_BE8(rev \rd, \rd) 29 ARM_BE8(rev \rd, \rd) 39 ARM_BE8(rev \rd, \rd) 53 ARM_BE8(rev \rd, \rd) 65 ARM_BE8(rev \rd, \rd) 77 ARM_BE8(rev \rd, \rd) 89 ARM_BE8(rev \rd, \rd)
|
/linux/arch/m68k/mvme16x/ |
H A D | config.c | 89 unsigned char rev = *(unsigned char *)MVME162_VERSION_REG; in mvme16x_get_hardware_list() local 92 rev & MVME16x_CONFIG_NO_VMECHIP2 ? "NOT " : ""); in mvme16x_get_hardware_list() 94 rev & MVME16x_CONFIG_NO_SCSICHIP ? "NOT " : ""); in mvme16x_get_hardware_list() 96 rev & MVME16x_CONFIG_NO_ETHERNET ? "NOT " : ""); in mvme16x_get_hardware_list() 283 pr_info("BRD_ID: %s BUG %x.%x %02x/%02x/%02x\n", id, p->rev >> 4, in config_mvme16x() 284 p->rev & 0xf, p->yr, p->mth, p->day); in config_mvme16x() 287 unsigned char rev = *(unsigned char *)MVME162_VERSION_REG; in config_mvme16x() local 289 mvme16x_config = rev | MVME16x_CONFIG_GOT_SCCA; in config_mvme16x() 293 rev & MVME16x_CONFIG_GOT_FPU ? "" : "LC"); in config_mvme16x() 295 rev & MVME16x_CONFIG_SPEED_32 ? 32 : 25); in config_mvme16x() [all …]
|
/linux/drivers/i2c/busses/ |
H A D | i2c-omap.c | 201 u32 rev; member 289 if (omap->rev >= OMAP_I2C_REV_ON_3430_3530) in __omap_i2c_init() 314 if (omap->rev >= OMAP_I2C_OMAP1_REV_2) { in omap_i2c_reset() 340 if (omap->rev > OMAP_I2C_REV_ON_3430_3530) { in omap_i2c_reset() 358 if (omap->rev >= OMAP_I2C_REV_ON_3430_3530) { in omap_i2c_init() 472 if (omap->rev <= OMAP_I2C_REV_ON_3430_3530) { in omap_i2c_init() 635 if (omap->rev < OMAP_I2C_REV_ON_3630) in omap_i2c_resize_fifo() 1225 .rev = OMAP_I2C_IP_VERSION_1, 1233 .rev = OMAP_I2C_IP_VERSION_1, 1239 .rev = OMAP_I2C_IP_VERSION_1, [all …]
|
/linux/arch/arm/mach-mv78xx0/ |
H A D | common.c | 229 u32 dev, rev; in mv78xx0_ge10_init() local 235 mv78xx0_pcie_id(&dev, &rev); in mv78xx0_ge10_init() 251 u32 dev, rev; in mv78xx0_ge11_init() local 257 mv78xx0_pcie_id(&dev, &rev); in mv78xx0_ge11_init() 374 u32 dev, rev; in mv78xx0_id() local 376 mv78xx0_pcie_id(&dev, &rev); in mv78xx0_id() 379 if (rev == MV78X00_REV_Z0) in mv78xx0_id() 384 if (rev == MV78100_REV_A0) in mv78xx0_id() 386 else if (rev == MV78100_REV_A1) in mv78xx0_id() 391 if (rev == MV78100_REV_A0) in mv78xx0_id()
|
/linux/arch/x86/kernel/cpu/microcode/ |
H A D | amd.c | 95 __u32 rev : 8, member 490 u32 rev, dummy; in __apply_microcode_amd() local 508 native_rdmsr(MSR_AMD64_PATCH_LEVEL, rev, dummy); in __apply_microcode_amd() 510 if (rev != mc->hdr.patch_id) in __apply_microcode_amd() 660 n.patch_id = uci->cpu_sig.rev; in cache_find_patch() 683 return zn.rev > zp.rev; in patch_newer() 730 u32 rev, dummy __always_unused; in find_patch() local 734 if (!uci->cpu_sig.rev) { in find_patch() 735 rdmsr(MSR_AMD64_PATCH_LEVEL, rev, dummy); in find_patch() 736 uci->cpu_sig.rev = rev; in find_patch() [all …]
|
/linux/drivers/media/i2c/ccs/ |
H A D | ccs.h | 126 #define CCS_IDENT_FQ(manufacturer, model, rev, fl, _name, _quirk) \ argument 129 .revision_number_major = rev, \ 134 #define CCS_IDENT_LQ(manufacturer, model, rev, _name, _quirk) \ argument 137 .revision_number_major = rev, \ 142 #define CCS_IDENT_L(manufacturer, model, rev, _name) \ argument 145 .revision_number_major = rev, \ 149 #define CCS_IDENT_Q(manufacturer, model, rev, _name, _quirk) \ argument 152 .revision_number_major = rev, \ 157 #define CCS_IDENT(manufacturer, model, rev, _name) \ argument 160 .revision_number_major = rev, \
|
/linux/arch/arm64/lib/ |
H A D | strcmp.S | 71 rev tmp, data1 82 rev has_nul, has_nul 88 rev syndrome, syndrome 89 rev data1, data1 90 rev data2, data2 139 rev data3, data3 156 rev data3, data3 167 rev tmp, tmp 178 rev data2, data2 179 rev has_nul, has_nul
|
/linux/drivers/usb/host/ |
H A D | pci-quirks.c | 130 u8 rev; member 155 u8 rev = 0; in amd_chipset_sb_type_init() local 161 rev = pinfo->smbus_dev->revision; in amd_chipset_sb_type_init() 162 if (rev >= 0x10 && rev <= 0x1f) in amd_chipset_sb_type_init() 164 else if (rev >= 0x30 && rev <= 0x3f) in amd_chipset_sb_type_init() 166 else if (rev >= 0x40 && rev <= 0x4f) in amd_chipset_sb_type_init() 173 rev = pinfo->smbus_dev->revision; in amd_chipset_sb_type_init() 174 if (rev >= 0x11 && rev <= 0x14) in amd_chipset_sb_type_init() 176 else if (rev >= 0x15 && rev <= 0x18) in amd_chipset_sb_type_init() 178 else if (rev >= 0x39 && rev <= 0x3a) in amd_chipset_sb_type_init() [all …]
|
/linux/arch/x86/include/asm/ |
H A D | microcode.h | 8 unsigned int rev; member 32 unsigned int rev; member 62 u32 rev, dummy; in intel_get_microcode_revision() local 70 native_rdmsr(MSR_IA32_UCODE_REV, dummy, rev); in intel_get_microcode_revision() 72 return rev; in intel_get_microcode_revision()
|