/drivers/ssb/ |
D | driver_chipcommon.c | 54 if (ccdev->id.revision >= 10 && mode == SSB_CLKMODE_SLOW) in ssb_chipco_set_clockmode() 59 SSB_WARN_ON(ccdev->id.revision >= 20); in ssb_chipco_set_clockmode() 62 if (ccdev->id.revision < 6) in ssb_chipco_set_clockmode() 66 if (ccdev->id.revision >= 10) in ssb_chipco_set_clockmode() 79 if (ccdev->id.revision < 10) { in ssb_chipco_set_clockmode() 93 if (ccdev->id.revision < 10) { in ssb_chipco_set_clockmode() 124 if (cc->dev->id.revision < 6) { in chipco_pctl_get_slowclksrc() 135 if (cc->dev->id.revision < 10) { in chipco_pctl_get_slowclksrc() 158 if (cc->dev->id.revision < 6) { in chipco_pctl_clockfreqlimit() 169 } else if (cc->dev->id.revision < 10) { in chipco_pctl_clockfreqlimit() [all …]
|
D | pci.c | 369 if (out->revision == 3) /* rev 3 moved MAC */ in sprom_extract_r123() 377 if (out->revision < 3) { /* only rev 1-2 have et0, et1 */ in sprom_extract_r123() 388 if (out->revision == 1) in sprom_extract_r123() 419 out->antenna_gain.a0 = sprom_extract_antgain(out->revision, in, in sprom_extract_r123() 423 out->antenna_gain.a1 = sprom_extract_antgain(out->revision, in, in sprom_extract_r123() 427 if (out->revision >= 2) in sprom_extract_r123() 483 if (out->revision == 4) in sprom_extract_r45() 495 if (out->revision == 4) { in sprom_extract_r45() 520 if (out->revision == 4) { in sprom_extract_r45() 537 out->antenna_gain.a0 = sprom_extract_antgain(out->revision, in, in sprom_extract_r45() [all …]
|
D | driver_pcicore.c | 454 if (pdev->id.revision < 5) { in ssb_pcicore_pci_setup_workarounds() 462 } else if (pdev->id.revision >= 11) { in ssb_pcicore_pci_setup_workarounds() 472 u8 rev = pc->dev->id.revision; in ssb_pcicore_pcie_setup_workarounds() 602 if (pc->dev->id.revision >= 10) { in ssb_pcie_mdio_read() 610 if (pc->dev->id.revision < 10) in ssb_pcie_mdio_read() 642 if (pc->dev->id.revision >= 10) { in ssb_pcie_mdio_write() 650 if (pc->dev->id.revision < 10) in ssb_pcie_mdio_write() 688 if ((pdev->id.revision >= 6) || (pdev->id.coreid == SSB_DEV_PCIE)) { in ssb_pcicore_dev_irqvecs_enable()
|
/drivers/mfd/ |
D | mc13xxx-core.c | 181 static void mc13xxx_print_revision(struct mc13xxx *mc13xxx, u32 revision) in mc13xxx_print_revision() argument 186 maskval(revision, MC13XXX_REVISION_REVFULL), in mc13xxx_print_revision() 187 maskval(revision, MC13XXX_REVISION_REVMETAL), in mc13xxx_print_revision() 188 maskval(revision, MC13XXX_REVISION_FIN), in mc13xxx_print_revision() 189 maskval(revision, MC13XXX_REVISION_FAB), in mc13xxx_print_revision() 190 maskval(revision, MC13XXX_REVISION_ICID), in mc13xxx_print_revision() 191 maskval(revision, MC13XXX_REVISION_ICIDCODE)); in mc13xxx_print_revision() 194 static void mc34708_print_revision(struct mc13xxx *mc13xxx, u32 revision) in mc34708_print_revision() argument 198 maskval(revision, MC34708_REVISION_REVFULL), in mc34708_print_revision() 199 maskval(revision, MC34708_REVISION_REVMETAL), in mc34708_print_revision() [all …]
|
D | si476x-prop.c | 152 BUG_ON(core->revision > SI476X_REVISION_A30 || in si476x_core_is_valid_property() 153 core->revision == -1); in si476x_core_is_valid_property() 154 return is_valid_property[core->revision](core, property); in si476x_core_is_valid_property() 161 BUG_ON(core->revision > SI476X_REVISION_A30 || in si476x_core_is_readonly_property() 162 core->revision == -1); in si476x_core_is_readonly_property() 164 switch (core->revision) { in si476x_core_is_readonly_property()
|
D | si476x-cmd.c | 186 if (core->revision != SI476X_REVISION_A10) { in si476x_core_parse_and_nag_about_error() 1487 BUG_ON(core->revision > SI476X_REVISION_A30 || in si476x_core_cmd_power_up() 1488 core->revision == -1); in si476x_core_cmd_power_up() 1489 return si476x_cmds_vtable[core->revision].power_up(core, args); in si476x_core_cmd_power_up() 1496 BUG_ON(core->revision > SI476X_REVISION_A30 || in si476x_core_cmd_power_down() 1497 core->revision == -1); in si476x_core_cmd_power_down() 1498 return si476x_cmds_vtable[core->revision].power_down(core, args); in si476x_core_cmd_power_down() 1505 BUG_ON(core->revision > SI476X_REVISION_A30 || in si476x_core_cmd_fm_tune_freq() 1506 core->revision == -1); in si476x_core_cmd_fm_tune_freq() 1507 return si476x_cmds_vtable[core->revision].fm_tune_freq(core, args); in si476x_core_cmd_fm_tune_freq() [all …]
|
D | wm8994-core.c | 451 wm8994->revision = ret & WM8994_CHIP_REV_MASK; in wm8994_device_init() 456 switch (wm8994->revision) { in wm8994_device_init() 461 'A' + wm8994->revision); in wm8994_device_init() 473 switch (wm8994->revision) { in wm8994_device_init() 485 if (wm8994->revision > 1) in wm8994_device_init() 486 wm8994->revision++; in wm8994_device_init() 497 'A' + wm8994->revision, wm8994->cust_id); in wm8994_device_init()
|
/drivers/ata/ |
D | pata_ali.c | 441 if (pdev->revision <= 0x20) { in ali_init_chipset() 449 if (pdev->revision < 0xC2) in ali_init_chipset() 454 if (pdev->revision >= 0xc2) in ali_init_chipset() 463 if (pdev->revision >= 0xc7) in ali_init_chipset() 474 if (pdev->revision == 0xC2) in ali_init_chipset() 476 else if (pdev->revision > 0xC2 && pdev->revision < 0xC5) in ali_init_chipset() 564 if (pdev->revision < 0x20) { in ali_init_one() 566 } else if (pdev->revision < 0xC2) { in ali_init_one() 568 } else if (pdev->revision == 0xC2) { in ali_init_one() 570 } else if (pdev->revision == 0xC3) { in ali_init_one() [all …]
|
/drivers/pci/ |
D | pci-acpi.c | 40 u32 revision = fields[1].integer.value; in decode_type0_hpx_record() local 42 switch (revision) { in decode_type0_hpx_record() 50 hpx->t0->revision = revision; in decode_type0_hpx_record() 59 __func__, revision); in decode_type0_hpx_record() 70 u32 revision = fields[1].integer.value; in decode_type1_hpx_record() local 72 switch (revision) { in decode_type1_hpx_record() 80 hpx->t1->revision = revision; in decode_type1_hpx_record() 88 __func__, revision); in decode_type1_hpx_record() 99 u32 revision = fields[1].integer.value; in decode_type2_hpx_record() local 101 switch (revision) { in decode_type2_hpx_record() [all …]
|
/drivers/isdn/hardware/avm/ |
D | b1pci.c | 30 static char *revision = "$Revision: 1.1.2.2 $"; variable 57 cinfo->card ? cinfo->card->revision : 0 in b1pci_procinfo() 125 if (card->revision >= 4) { in b1pci_probe() 127 card->port, card->irq, card->revision); in b1pci_probe() 130 card->port, card->irq, card->revision); in b1pci_probe() 176 cinfo->card ? cinfo->card->revision : 0 in b1pciv4_procinfo() 265 card->port, card->irq, card->membase, card->revision); in b1pciv4_probe() 370 .revision = "1.0", 375 .revision = "1.0", 385 if ((p = strchr(revision, ':')) != NULL && p[1]) { in b1pci_init() [all …]
|
D | b1pcmcia.c | 30 static char *revision = "$Revision: 1.1.2.2 $"; variable 126 cardname, card->port, card->irq, card->revision); in b1pcmcia_add_card() 152 cinfo->card ? cinfo->card->revision : 0 in b1pcmcia_procinfo() 196 .revision = "1.0", 204 if ((p = strchr(revision, ':')) != NULL && p[1]) { in b1pcmcia_init() 211 strlcpy(capi_driver_b1pcmcia.revision, rev, 32); in b1pcmcia_init()
|
D | b1isa.c | 30 static char *revision = "$Revision: 1.1.2.3 $"; variable 134 card->port, card->irq, card->revision); in b1isa_probe() 160 cinfo->card ? cinfo->card->revision : 0 in b1isa_procinfo() 196 .revision = "1.0", 206 if ((p = strchr(revision, ':')) != NULL && p[1]) { in b1isa_init() 224 strlcpy(capi_driver_b1isa.revision, rev, 32); in b1isa_init()
|
/drivers/watchdog/ |
D | pcwd.c | 178 int revision; /* The card's revision */ member 335 if (pcwd_private.revision == PCWD_REVISION_A) in pcwd_show_card_info() 338 else if (pcwd_private.revision == PCWD_REVISION_C) { in pcwd_show_card_info() 379 if (pcwd_private.revision == PCWD_REVISION_A) { in pcwd_timer_ping() 411 if (pcwd_private.revision == PCWD_REVISION_C) { in pcwd_start() 437 if (pcwd_private.revision == PCWD_REVISION_C) { in pcwd_stop() 487 if (pcwd_private.revision == PCWD_REVISION_A) in pcwd_get_status() 502 if (pcwd_private.revision == PCWD_REVISION_A) { in pcwd_get_status() 533 if (pcwd_private.revision == PCWD_REVISION_C) { in pcwd_clear_status() 622 if (pcwd_private.revision == PCWD_REVISION_C) { in pcwd_ioctl() [all …]
|
D | it8712f_wdt.c | 56 static unsigned char revision; variable 170 if (revision >= 0x08) in it8712f_wdt_update_margin() 214 if (revision >= 0x08) in it8712f_wdt_disable() 388 revision = superio_inb(DEVREV) & 0x0f; in it8712f_wdt_find() 391 if (revision >= 0x08) in it8712f_wdt_find() 398 chip_type, revision, *address); in it8712f_wdt_find()
|
/drivers/scsi/mvsas/ |
D | mv_94xx.c | 70 if (mvi->pdev->revision == VANIR_A0_REV) in set_phy_tuning() 119 if ((mvi->pdev->revision == VANIR_A0_REV) in set_phy_ffe_tuning() 120 || (mvi->pdev->revision == VANIR_B0_REV)) in set_phy_ffe_tuning() 231 switch (mvi->pdev->revision) { in mvs_94xx_config_reg_from_hba() 313 u8 revision = 0; in mvs_94xx_phy_enable() local 315 revision = mvi->pdev->revision; in mvs_94xx_phy_enable() 316 if (revision == VANIR_A0_REV) { in mvs_94xx_phy_enable() 320 if (revision == VANIR_B0_REV) { in mvs_94xx_phy_enable() 338 u8 revision; in mvs_94xx_init() local 340 revision = mvi->pdev->revision; in mvs_94xx_init() [all …]
|
/drivers/media/dvb-frontends/ |
D | dib7000m.c | 51 u16 revision; member 196 if (state->revision == 0x4003) { in dib7000m_set_output_mode() 245 if (state->revision != 0x4000) in dib7000m_set_power_mode() 248 if (state->revision == 0x4003) in dib7000m_set_power_mode() 275 if (state->revision == 0x4000) { // workaround for PA/MA in dib7000m_set_adc_state() 577 if (state->revision == 0x4000) in dib7000m_demod_reset() 612 if (state->revision == 0x4000) in dib7000m_demod_reset() 725 if (state->revision > 0x4000) { // settings for the MC in dib7000m_set_agc_config() 926 if (1 == 1 || state->revision > 0x4000) in dib7000m_set_channel() 1001 if (state->revision == 0x4000) in dib7000m_autosearch_start() [all …]
|
D | dib8000.c | 88 u16 revision; member 492 if (state->revision == 0x8002) { in dib8000_set_diversity_in() 508 if (state->revision != 0x8090) in dib8000_set_power_mode() 521 if (state->revision != 0x8090) in dib8000_set_power_mode() 527 if (state->revision != 0x8090) in dib8000_set_power_mode() 550 if (state->revision != 0x8090) { in dib8000_set_adc_state() 576 if (state->revision == 0x8090) { in dib8000_set_adc_state() 639 if (state->revision == 0x8090) { in dib8000_sad_calib() 671 if (state->revision != 0x8090) { in dib8000_reset_pll_common() 685 if (state->revision != 0x8090) in dib8000_reset_pll_common() [all …]
|
D | dib0070.c | 59 u8 revision; member 363 switch (state->revision) { in dib0070_tune_digital() 416 switch (state->revision) { in dib0070_tune_digital() 452 if (state->revision == DIB0070S_P1A) { in dib0070_tune_digital() 662 state->revision = (dib0070_read_reg(state, 0x1f) >> 8) & 0xff; in dib0070_reset() 667 state->revision = DIB0070S_P1A; in dib0070_reset() 670 dprintk("Revision: %x", state->revision); in dib0070_reset() 672 if (state->revision == DIB0070_P1D) { in dib0070_reset() 706 if (state->revision == DIB0070S_P1A) in dib0070_reset()
|
/drivers/bcma/ |
D | sprom.c | 64 bus->sprom.revision); in bcma_fill_sprom_with_fallback() 160 u16 revision; in bcma_sprom_valid() local 167 revision = sprom[words - 1] & SSB_SPROM_REVISION_REV; in bcma_sprom_valid() 168 if (revision != 8 && revision != 9 && revision != 10) { in bcma_sprom_valid() 169 pr_err("Unsupported SPROM revision: %d\n", revision); in bcma_sprom_valid() 173 bus->sprom.revision = revision; in bcma_sprom_valid() 174 bcma_debug(bus, "Found SPROM revision %d\n", revision); in bcma_sprom_valid()
|
/drivers/net/ethernet/sfc/ |
D | nic.c | 380 if (efx->type->revision >= reg->min_revision && in efx_nic_get_regs_len() 381 efx->type->revision <= reg->max_revision) in efx_nic_get_regs_len() 387 if (efx->type->revision >= table->min_revision && in efx_nic_get_regs_len() 388 efx->type->revision <= table->max_revision) in efx_nic_get_regs_len() 402 if (efx->type->revision >= reg->min_revision && in efx_nic_get_regs() 403 efx->type->revision <= reg->max_revision) { in efx_nic_get_regs() 414 if (!(efx->type->revision >= table->min_revision && in efx_nic_get_regs() 415 efx->type->revision <= table->max_revision)) in efx_nic_get_regs()
|
/drivers/scsi/ |
D | ips.c | 2158 if (ha->pcidev->revision <= IPS_REVID_SERVERAID) { in ips_identify_controller() 2160 } else if (ha->pcidev->revision == IPS_REVID_SERVERAID2) { in ips_identify_controller() 2162 } else if (ha->pcidev->revision == IPS_REVID_NAVAJO) { in ips_identify_controller() 2164 } else if ((ha->pcidev->revision == IPS_REVID_SERVERAID2) in ips_identify_controller() 2167 } else if ((ha->pcidev->revision >= IPS_REVID_CLARINETP1) && in ips_identify_controller() 2168 (ha->pcidev->revision <= IPS_REVID_CLARINETP3)) { in ips_identify_controller() 2173 } else if ((ha->pcidev->revision >= IPS_REVID_TROMBONE32) && in ips_identify_controller() 2174 (ha->pcidev->revision <= IPS_REVID_TROMBONE64)) { in ips_identify_controller() 2262 if (ha->pcidev->revision == IPS_REVID_TROMBONE64) in ips_get_bios_version() 2269 if (ha->pcidev->revision == IPS_REVID_TROMBONE64) in ips_get_bios_version() [all …]
|
/drivers/media/common/ |
D | tveeprom.c | 519 tvee->revision = eeprom_data[i+10] + in tveeprom_hauppauge_analog() 585 tvee->revision = in tveeprom_hauppauge_analog() 654 if (tvee->revision != 0) { in tveeprom_hauppauge_analog() 655 tvee->rev_str[0] = 32 + ((tvee->revision >> 18) & 0x3f); in tveeprom_hauppauge_analog() 656 tvee->rev_str[1] = 32 + ((tvee->revision >> 12) & 0x3f); in tveeprom_hauppauge_analog() 657 tvee->rev_str[2] = 32 + ((tvee->revision >> 6) & 0x3f); in tveeprom_hauppauge_analog() 658 tvee->rev_str[3] = 32 + (tvee->revision & 0x3f); in tveeprom_hauppauge_analog()
|
/drivers/acpi/acpica/ |
D | tbprint.c | 149 revision > in acpi_tb_print_table_header() 153 header)->revision, in acpi_tb_print_table_header() 164 local_header.length, local_header.revision, in acpi_tb_print_table_header()
|
/drivers/media/pci/mantis/ |
D | mantis_pci.c | 99 mantis->revision = pdev->revision; in mantis_pci_init() 102 mantis->revision, in mantis_pci_init()
|
/drivers/net/wireless/ |
D | adm8211.c | 148 if (priv->pdev->revision < ADM8211_REV_CA) in adm8211_read_eeprom() 166 if (priv->pdev->revision < ADM8211_REV_CA) in adm8211_read_eeprom() 206 if (priv->pdev->revision < ADM8211_REV_CA) in adm8211_read_eeprom() 225 if (priv->pdev->revision == ADM8211_REV_BA) in adm8211_read_eeprom() 227 else if (priv->pdev->revision == ADM8211_REV_CA) in adm8211_read_eeprom() 229 else if (priv->pdev->revision == ADM8211_REV_AB) in adm8211_read_eeprom() 251 (priv->pdev->revision < ADM8211_REV_BA ? in adm8211_write_sram() 269 if (priv->pdev->revision < ADM8211_REV_BA) { in adm8211_write_sram_bytes() 435 if (priv->pdev->revision < ADM8211_REV_CA) in adm8211_interrupt_rci() 709 (priv->pdev->revision < ADM8211_REV_CA ? tx_power : 0)); in adm8211_rf_set_channel() [all …]
|