/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | uvd_v2_2.c | 101 uint32_t chip_id, size; in uvd_v2_2_resume() local 142 chip_id = 0x01000005; in uvd_v2_2_resume() 145 chip_id = 0x01000006; in uvd_v2_2_resume() 148 chip_id = 0x01000007; in uvd_v2_2_resume() 152 chip_id = 0x01000008; in uvd_v2_2_resume() 155 chip_id = 0x01000009; in uvd_v2_2_resume() 158 chip_id = 0x0100000a; in uvd_v2_2_resume() 161 chip_id = 0x0100000b; in uvd_v2_2_resume() 165 chip_id = 0x0100000c; in uvd_v2_2_resume() 168 chip_id = 0x0100000e; in uvd_v2_2_resume() [all …]
|
H A D | vce_v1_0.c | 45 uint32_t chip_id; member 161 uint32_t chip_id; in vce_v1_0_load_fw() local 166 chip_id = 0x01000014; in vce_v1_0_load_fw() 169 chip_id = 0x01000015; in vce_v1_0_load_fw() 172 chip_id = 0x01000016; in vce_v1_0_load_fw() 175 chip_id = 0x01000017; in vce_v1_0_load_fw() 182 if (le32_to_cpu(sign->val[i].chip_id) == chip_id) in vce_v1_0_load_fw()
|
/openbmc/linux/drivers/hwmon/pmbus/ |
H A D | ltc2978.c | 597 int chip_id; in ltc2978_get_id() local 599 chip_id = i2c_smbus_read_word_data(client, LTC2978_MFR_SPECIAL_ID); in ltc2978_get_id() 600 if (chip_id < 0) { in ltc2978_get_id() 625 chip_id &= LTC2978_ID_MASK; in ltc2978_get_id() 627 if (chip_id == LTC2972_ID) in ltc2978_get_id() 629 else if (chip_id == LTC2974_ID) in ltc2978_get_id() 631 else if (chip_id == LTC2975_ID) in ltc2978_get_id() 633 else if (chip_id == LTC2977_ID) in ltc2978_get_id() 635 else if (chip_id == LTC2978_ID_REV1 || chip_id == LTC2978_ID_REV2) in ltc2978_get_id() 637 else if (chip_id == LTC2979_ID_A || chip_id == LTC2979_ID_B) in ltc2978_get_id() [all …]
|
/openbmc/linux/drivers/net/dsa/b53/ |
H A D | b53_priv.h | 118 u32 chip_id; member 162 return dev->chip_id == BCM5325_DEVICE_ID; in is5325() 168 return dev->chip_id == BCM5365_DEVICE_ID; in is5365() 176 return dev->chip_id == BCM5397_DEVICE_ID || in is5397_98() 177 dev->chip_id == BCM5398_DEVICE_ID; in is5397_98() 182 return dev->chip_id == BCM5395_DEVICE_ID || in is539x() 183 dev->chip_id == BCM5397_DEVICE_ID || in is539x() 184 dev->chip_id == BCM5398_DEVICE_ID; in is539x() 189 return dev->chip_id == BCM53115_DEVICE_ID || in is531x5() 190 dev->chip_id == BCM53125_DEVICE_ID || in is531x5() [all …]
|
/openbmc/u-boot/arch/arm/mach-at91/armv7/ |
H A D | sama5d2_devices.c | 14 unsigned int chip_id = get_chip_id(); in cpu_is_sama5d2() local 16 return ((chip_id == ARCH_ID_SAMA5D2) || in cpu_is_sama5d2() 17 (chip_id == ARCH_ID_SAMA5D2_SIP)) ? 1 : 0; in cpu_is_sama5d2() 22 unsigned int chip_id = get_chip_id(); in get_cpu_name() local 25 if (chip_id == ARCH_ID_SAMA5D2) { in get_cpu_name() 52 if ((chip_id == ARCH_ID_SAMA5D2) || (chip_id == ARCH_ID_SAMA5D2_SIP)) { in get_cpu_name()
|
/openbmc/linux/include/linux/mfd/abx500/ |
H A D | ab8500.h | 355 u8 chip_id; member 410 return (is_ab8500(ab) && (ab->chip_id <= AB8500_CUT1P0)); in is_ab8500_1p0_or_earlier() 416 return (is_ab8500(ab) && (ab->chip_id <= AB8500_CUT1P1)); in is_ab8500_1p1_or_earlier() 422 return (is_ab8500(ab) && (ab->chip_id <= AB8500_CUT2P0)); in is_ab8500_2p0_or_earlier() 427 return (is_ab8500(ab) && (ab->chip_id <= AB8500_CUT3P3)); in is_ab8500_3p3_or_earlier() 433 return (is_ab8500(ab) && (ab->chip_id == AB8500_CUT2P0)); in is_ab8500_2p0() 438 return (is_ab8505(ab) && (ab->chip_id <= AB8500_CUT1P0)); in is_ab8505_1p0_or_earlier() 443 return (is_ab8505(ab) && (ab->chip_id == AB8500_CUT2P0)); in is_ab8505_2p0() 448 return (is_ab9540(ab) && (ab->chip_id <= AB8500_CUT1P0)); in is_ab9540_1p0_or_earlier() 453 return (is_ab9540(ab) && (ab->chip_id == AB8500_CUT2P0)); in is_ab9540_2p0() [all …]
|
/openbmc/qemu/include/hw/ppc/ |
H A D | pnv.h | 111 PnvChip *pnv_get_chip(PnvMachineState *pnv, uint32_t chip_id); 133 (0x0003fc0000000000ull + ((uint64_t)(chip)->chip_id) * PNV_XSCOM_SIZE) 138 PNV_OCC_SENSOR_DATA_BLOCK_BASE((chip)->chip_id)) 142 (0x7ffd800000ull + ((uint64_t)(chip)->chip_id) * PNV_HOMER_SIZE) 161 (0x0003ffff80000000ull + (uint64_t) (chip)->chip_id * PNV_ICP_SIZE) 166 (0x0003fffe80000000ull + (uint64_t)(chip)->chip_id * PNV_PSIHB_SIZE) 170 (0x0003ffe000000000ull + (uint64_t)(chip)->chip_id * \ 177 ((base) + ((uint64_t) (chip)->chip_id << 42)) 206 PNV_OCC_SENSOR_DATA_BLOCK_BASE((chip)->chip_id)) 210 (0x203ffd800000ull + ((uint64_t)(chip)->chip_id) * PNV9_HOMER_SIZE) [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | uli526x.c | 104 u32 chip_id; /* Chip vendor/Device ID */ member 244 pci_read_config_dword(devno, PCI_VENDOR_ID, &db->chip_id); in uli526x_initialize() 247 printf("uli526x: chip_id%x\n", db->chip_id); in uli526x_initialize() 346 uli_phy_write(db->ioaddr, db->phy_addr, 0, 0x8000, db->chip_id); in uli526x_disable() 382 phy_value = uli_phy_read(db->ioaddr, phy_tmp, 3, db->chip_id); in uli526x_init() 402 db->phy_addr, 0, db->chip_id); in uli526x_init() 405 phy_reg_reset, db->chip_id); in uli526x_init() 779 db->phy_addr, 4, db->chip_id) & ~0x01e0; in uli526x_set_phyxcer() 800 uli_phy_write(db->ioaddr, db->phy_addr, 4, phy_reg, db->chip_id); in uli526x_set_phyxcer() 803 uli_phy_write(db->ioaddr, db->phy_addr, 0, 0x1200, db->chip_id); in uli526x_set_phyxcer() [all …]
|
/openbmc/linux/drivers/crypto/nx/ |
H A D | nx-common-powernv.c | 44 unsigned int chip_id; member 676 coproc->chip_id = chipid; in nx_add_coprocs_list() 713 unsigned int i, chip_id; in nx_open_percpu_txwins() local 718 chip_id = cpu_to_chip_id(i); in nx_open_percpu_txwins() 730 if (coproc->chip_id == chip_id) { in nx_open_percpu_txwins() 765 static int __init vas_cfg_coproc_info(struct device_node *dn, int chip_id, in vas_cfg_coproc_info() argument 852 nx_add_coprocs_list(coproc, chip_id); in vas_cfg_coproc_info() 870 static int __init nx_coproc_init(int chip_id, int ct_842, int ct_gzip) in nx_coproc_init() argument 875 ret = opal_nx_coproc_init(chip_id, ct_842); in nx_coproc_init() 878 ret = opal_nx_coproc_init(chip_id, ct_gzip); in nx_coproc_init() [all …]
|
/openbmc/linux/arch/mips/cavium-octeon/executive/ |
H A D | octeon-model.c | 58 static const char *__init octeon_model_get_string_buffer(uint32_t chip_id, in octeon_model_get_string_buffer() argument 80 switch ((chip_id >> 8) & 0xff) { in octeon_model_get_string_buffer() 115 sprintf(pass, "%d.%d", (int)((chip_id >> 3) & 7) + 1, (int)chip_id & 7); in octeon_model_get_string_buffer() 192 switch ((chip_id >> 8) & 0xff) { in octeon_model_get_string_buffer() 209 switch (chip_id & 0xf) { in octeon_model_get_string_buffer() 225 if ((chip_id & 0x10) || l2d_fus3) in octeon_model_get_string_buffer() 233 switch (chip_id & 0xf) { in octeon_model_get_string_buffer() 254 switch (chip_id & 0xf) { in octeon_model_get_string_buffer() 273 if ((chip_id & 0xFF) < 0x8) { in octeon_model_get_string_buffer() 274 switch (chip_id & 0x3) { in octeon_model_get_string_buffer() [all …]
|
/openbmc/linux/arch/mips/bcm47xx/ |
H A D | time.c | 34 u16 chip_id = 0; in plat_time_init() local 50 chip_id = bcm47xx_bus.ssb.chip_id; in plat_time_init() 56 chip_id = bcm47xx_bus.bcma.bus.chipinfo.id; in plat_time_init() 61 if (chip_id == 0x5354) { in plat_time_init()
|
/openbmc/linux/drivers/net/ethernet/dec/tulip/ |
H A D | dmfe.c | 199 u32 chip_id; /* Chip vendor/Device ID */ member 446 db->chip_id = ent->driver_data; in dmfe_init_one() 567 if ( !chkmode || (db->chip_id == PCI_DM9132_ID) || in dmfe_open() 622 if (db->chip_id == PCI_DM9009_ID) { in dmfe_init_dm910x() 643 if (db->chip_id == PCI_DM9132_ID) in dmfe_init_dm910x() 753 dmfe_phy_write(ioaddr, db->phy_addr, 0, 0x8000, db->chip_id); in dmfe_stop() 1061 if (db->chip_id == PCI_DM9132_ID) in dmfe_set_filter_mode() 1133 if (db->chip_type && (db->chip_id==PCI_DM9102_ID)) { in dmfe_timer() 1136 dmfe_phy_write(ioaddr, db->phy_addr, 0, 0x1000, db->chip_id); in dmfe_timer() 1185 if (db->chip_id == PCI_DM9132_ID) in dmfe_timer() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | pci.c | 1689 enum rtw89_core_chip_id chip_id = rtwdev->chip->chip_id; in rtw89_pci_ctrl_dma_io() local 1692 if (chip_id == RTL8852C) { in rtw89_pci_ctrl_dma_io() 1917 enum rtw89_core_chip_id chip_id = rtwdev->chip->chip_id; in rtw89_pci_autok_x() local 1920 if (chip_id != RTL8852B && chip_id != RTL8851B) in rtw89_pci_autok_x() 1930 enum rtw89_core_chip_id chip_id = rtwdev->chip->chip_id; in rtw89_pci_auto_refclk_cal() local 1937 if (chip_id != RTL8852B && chip_id != RTL8851B) in rtw89_pci_auto_refclk_cal() 2082 enum rtw89_core_chip_id chip_id = rtwdev->chip->chip_id; in rtw89_pci_deglitch_setting() local 2085 if (chip_id == RTL8852A) { in rtw89_pci_deglitch_setting() 2094 } else if (chip_id == RTL8852C) { in rtw89_pci_deglitch_setting() 2106 if (rtwdev->chip->chip_id != RTL8852A) in rtw89_pci_rxdma_prefth() [all …]
|
H A D | efuse.c | 24 if (rtwdev->chip->chip_id != RTL8852A) in rtw89_switch_efuse_bank() 53 enum rtw89_core_chip_id chip_id = rtwdev->chip->chip_id; in rtw89_enable_efuse_pwr_cut_ddv() local 56 if (chip_id == RTL8852A) in rtw89_enable_efuse_pwr_cut_ddv() 66 if (chip_id == RTL8852B && hal->cv == CHIP_CAV) in rtw89_enable_efuse_pwr_cut_ddv() 72 enum rtw89_core_chip_id chip_id = rtwdev->chip->chip_id; in rtw89_disable_efuse_pwr_cut_ddv() local 75 if (chip_id == RTL8852A) in rtw89_disable_efuse_pwr_cut_ddv() 78 if (chip_id == RTL8852B && hal->cv == CHIP_CAV) in rtw89_disable_efuse_pwr_cut_ddv()
|
/openbmc/linux/drivers/regulator/ |
H A D | fan53555.c | 129 int chip_id; member 261 switch (di->chip_id) { in fan53526_voltages_setup_fairchild() 271 di->chip_id, di->chip_rev); in fan53526_voltages_setup_fairchild() 277 "Chip ID %d not supported!\n", di->chip_id); in fan53526_voltages_setup_fairchild() 293 switch (di->chip_id) { in fan53555_voltages_setup_fairchild() 307 di->chip_id, di->chip_rev); in fan53555_voltages_setup_fairchild() 324 "Chip ID %d not supported!\n", di->chip_id); in fan53555_voltages_setup_fairchild() 339 switch (di->chip_id) { in fan53555_voltages_setup_rockchip() 346 "Chip ID %d not supported!\n", di->chip_id); in fan53555_voltages_setup_rockchip() 361 switch (di->chip_id) { in rk8602_voltages_setup_rockchip() [all …]
|
H A D | pfuze100-regulator.c | 73 int chip_id; member 126 switch (pfuze100->chip_id) { in pfuze100_set_ramp_delay() 529 switch (chip->chip_id) { in pfuze_parse_regulators_dt() 621 if (pfuze_chip->chip_id != PFUZE100) { in pfuze_power_off_prepare_init() 649 if (((value & 0x0f) == 0x8) && (pfuze_chip->chip_id == PFUZE100)) { in pfuze_identify() 655 } else if ((value & 0x0f) != pfuze_chip->chip_id && in pfuze_identify() 656 (value & 0xf0) >> 4 != pfuze_chip->chip_id && in pfuze_identify() 657 (value != pfuze_chip->chip_id)) { in pfuze_identify() 707 pfuze_chip->chip_id = (int)(long)match->data; in pfuze100_regulator_probe() 709 pfuze_chip->chip_id = id->driver_data; in pfuze100_regulator_probe() [all …]
|
/openbmc/qemu/hw/block/ |
H A D | nand.c | 65 uint8_t manf_id, chip_id; member 283 nand_pushio_byte(s, s->chip_id); in nand_command() 285 if (nand_flash_ids[s->chip_id].options & NAND_SAMSUNG_LP) { in nand_command() 297 if (!(nand_flash_ids[s->chip_id].options & NAND_SAMSUNG_LP)) in nand_command() 322 s->addr <<= nand_flash_ids[s->chip_id].options & NAND_SAMSUNG_LP ? in nand_command() 394 s->buswidth = nand_flash_ids[s->chip_id].width >> 3; in nand_realize() 395 s->size = nand_flash_ids[s->chip_id].size << 20; in nand_realize() 396 if (nand_flash_ids[s->chip_id].options & NAND_SAMSUNG_LP) { in nand_realize() 400 s->page_shift = nand_flash_ids[s->chip_id].page_shift; in nand_realize() 401 s->erase_shift = nand_flash_ids[s->chip_id].erase_shift; in nand_realize() [all …]
|
/openbmc/linux/drivers/mux/ |
H A D | adgs1408.c | 56 enum adgs1408_chip_id chip_id; in adgs1408_probe() local 62 chip_id = (enum adgs1408_chip_id)device_get_match_data(dev); in adgs1408_probe() 63 if (!chip_id) in adgs1408_probe() 64 chip_id = spi_get_device_id(spi)->driver_data; in adgs1408_probe() 82 if (chip_id == ADGS1408) in adgs1408_probe()
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | stv0900_sw.c | 154 if (intp->chip_id == 0x12) { in stv0900_search_carr_sw_loop() 199 if (intp->chip_id >= 0x20) in stv0900_sw_algo() 208 if (intp->chip_id >= 0x20) in stv0900_sw_algo() 219 if (intp->chip_id >= 0x20) { in stv0900_sw_algo() 246 if (intp->chip_id >= 0x20) { in stv0900_sw_algo() 270 if (intp->chip_id >= 0x20) in stv0900_sw_algo() 426 if (intp->chip_id == 0x10) { in stv0900_set_dvbs2_rolloff() 430 } else if (intp->chip_id <= 0x20) in stv0900_set_dvbs2_rolloff() 544 if (intp->chip_id <= 0x20) { in stv0900_get_demod_cold_lock() 581 if (intp->chip_id <= 0x20) { in stv0900_get_demod_cold_lock() [all …]
|
/openbmc/linux/drivers/ssb/ |
H A D | driver_chipcommon_pmu.c | 117 switch (bus->chip_id) { in ssb_pmu0_pllinit_r0() 230 if (bus->chip_id == 0x4312) { in ssb_pmu1_pllinit_r0() 256 switch (bus->chip_id) { in ssb_pmu1_pllinit_r0() 330 switch (bus->chip_id) { in ssb_pmu_pll_init() 353 bus->chip_id); in ssb_pmu_pll_init() 433 switch (bus->chip_id) { in ssb_pmu_resources_init() 475 bus->chip_id); in ssb_pmu_resources_init() 546 switch (bus->chip_id) { in ssb_pmu_set_ldo_voltage() 595 switch (bus->chip_id) { in ssb_pmu_set_ldo_paref() 635 switch (bus->chip_id) { in ssb_pmu_get_alp_clock() [all …]
|
/openbmc/linux/drivers/soc/hisilicon/ |
H A D | kunpeng_hccs.h | 41 u8 chip_id; member 83 u8 chip_id; member 87 u8 chip_id; member 111 u8 chip_id; member 117 u8 chip_id; member
|
/openbmc/linux/drivers/gpu/drm/loongson/ |
H A D | loongson_device.c | 56 .chip_id = CHIP_LS7A1000, 88 .chip_id = CHIP_LS7A2000, 99 lsdc_device_probe(struct pci_dev *pdev, enum loongson_chip_id chip_id) in lsdc_device_probe() argument 101 return __chip_id_desc_table[chip_id]; in lsdc_device_probe()
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | tridentfb.c | 36 int chip_id; member 280 if (is_oldclock(par->chip_id)) { /* not sure if this check is OK */ in tridentfb_setup_ddc_bus() 733 if (!is_oldprotect(par->chip_id)) in enable_mmio() 748 if (!is_oldprotect(par->chip_id)) in disable_mmio() 798 if (par->chip_id == TGUI9440 || par->chip_id == CYBER9320) in set_lwidth() 809 if (par->chip_id != CYBERBLADEXPAi1) in screen_stretch() 843 unsigned char shift = !is_oldclock(par->chip_id) ? 2 : 1; in set_vclk() 863 if (is_oldclock(par->chip_id)) { in set_vclk() 871 if (is3Dchip(par->chip_id)) { in set_vclk() 904 if (crt || !iscyber(par->chip_id)) in is_flatpanel() [all …]
|
/openbmc/linux/drivers/iio/accel/ |
H A D | mxc6255.c | 121 unsigned int chip_id; in mxc6255_probe() local 145 ret = regmap_read(data->regmap, MXC6255_REG_CHIP_ID, &chip_id); in mxc6255_probe() 151 if ((chip_id & 0x1f) != MXC6255_CHIP_ID) { in mxc6255_probe() 152 dev_err(&client->dev, "Invalid chip id %x\n", chip_id); in mxc6255_probe() 156 dev_dbg(&client->dev, "Chip id %x\n", chip_id); in mxc6255_probe()
|
/openbmc/qemu/hw/pci-host/ |
H A D | pnv_phb.c | 83 PnvChip *chip = pnv_get_chip(pnv, phb->chip_id); in pnv_phb_user_device_init() 87 error_setg(errp, "invalid chip id: %d", phb->chip_id); in pnv_phb_user_device_init() 139 object_property_set_uint(phb->backend, "chip-id", phb->chip_id, errp); in pnv_phb_realize() 182 phb->chip_id, phb->phb_id); in pnv_phb_root_bus_path() 188 DEFINE_PROP_UINT32("chip-id", PnvPHB, chip_id, 0), 248 int chip_id, index; in pnv_phb_root_port_realize() local 255 chip_id = object_property_get_int(OBJECT(bus), "chip-id", &local_err); in pnv_phb_root_port_realize() 267 qdev_prop_set_uint8(dev, "chassis", chip_id); in pnv_phb_root_port_realize()
|