| /openbmc/qemu/include/hw/ppc/ |
| H A D | pnv.h | 29 #define TYPE_PNV_CHIP "pnv-chip" 65 PnvCore *pnv_chip_find_core(PnvChip *chip, uint32_t core_id); 66 PowerPCCPU *pnv_chip_find_cpu(PnvChip *chip, uint32_t pir); 117 PnvChip *pnv_chip_add_phb(PnvChip *chip, PnvPHB *phb); 137 #define PNV_XSCOM_BASE(chip) \ argument 138 (0x0003fc0000000000ull + ((uint64_t)(chip)->chip_id) * PNV_XSCOM_SIZE) 142 #define PNV_OCC_SENSOR_BASE(chip) (PNV_OCC_COMMON_AREA_BASE + \ 143 PNV_OCC_SENSOR_DATA_BLOCK_BASE((chip)->chip_id)) 146 #define PNV_HOMER_BASE(chip) \ 147 (0x7ffd800000ull + ((uint64_t)(chip) 132 PNV_XSCOM_BASE(chip) global() argument 141 PNV_HOMER_BASE(chip) global() argument 160 PNV_ICP_BASE(chip) global() argument 165 PNV_PSIHB_BASE(chip) global() argument 169 PNV_PSIHB_FSP_BASE(chip) global() argument 176 PNV9_CHIP_BASE(chip,base) global() argument 180 PNV9_XIVE_VC_BASE(chip) global() argument 183 PNV9_XIVE_PC_BASE(chip) global() argument 186 PNV9_LPCM_BASE(chip) global() argument 189 PNV9_PSIHB_BASE(chip) global() argument 192 PNV9_XIVE_IC_BASE(chip) global() argument 195 PNV9_XIVE_TM_BASE(chip) global() argument 198 PNV9_PSIHB_ESB_BASE(chip) global() argument 201 PNV9_XSCOM_BASE(chip) global() argument 205 PNV9_OCC_SENSOR_BASE(chip) global() argument 208 PNV9_HOMER_BASE(chip) global() argument 214 PNV10_CHIP_BASE(chip,base) global() argument 218 PNV10_XSCOM_BASE(chip) global() argument 221 PNV10_LPCM_BASE(chip) global() argument 224 PNV10_XIVE2_IC_BASE(chip) global() argument 227 PNV10_PSIHB_ESB_BASE(chip) global() argument 230 PNV10_PSIHB_BASE(chip) global() argument 233 PNV10_XIVE2_TM_BASE(chip) global() argument 236 PNV10_XIVE2_NVC_BASE(chip) global() argument 239 PNV10_XIVE2_NVPG_BASE(chip) global() argument 242 PNV10_XIVE2_ESB_BASE(chip) global() argument 245 PNV10_XIVE2_END_BASE(chip) global() argument 249 PNV10_OCC_SENSOR_BASE(chip) global() argument 252 PNV10_HOMER_BASE(chip) global() argument [all...] |
| /openbmc/u-boot/drivers/mtd/nand/raw/ |
| H A D | nand_base.c | 109 struct nand_chip *chip = mtd_to_nand(mtd); in check_offs_len() local 113 if (ofs & ((1ULL << chip->phys_erase_shift) - 1)) { in check_offs_len() 119 if (len & ((1ULL << chip->phys_erase_shift) - 1)) { in check_offs_len() 135 struct nand_chip *chip = mtd_to_nand(mtd); in nand_release_device() local 138 chip->select_chip(mtd, -1); in nand_release_device() 149 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_byte() local 150 return readb(chip->IO_ADDR_R); in nand_read_byte() 162 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_byte16() local 163 return (uint8_t) cpu_to_le16(readw(chip->IO_ADDR_R)); in nand_read_byte16() 174 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_word() local [all …]
|
| H A D | mxs_nand_spl.c | 17 register struct nand_chip *chip = mtd_to_nand(mtd); in mxs_nand_command() local 21 chip->cmd_ctrl(mtd, command, NAND_CLE); in mxs_nand_command() 25 chip->cmd_ctrl(mtd, column, NAND_ALE); in mxs_nand_command() 26 chip->cmd_ctrl(mtd, column >> 8, NAND_ALE); in mxs_nand_command() 29 chip->cmd_ctrl(mtd, page_addr, NAND_ALE); in mxs_nand_command() 30 chip->cmd_ctrl(mtd, page_addr >> 8, NAND_ALE); in mxs_nand_command() 32 if (chip->chipsize > (128 << 20)) in mxs_nand_command() 33 chip->cmd_ctrl(mtd, page_addr >> 16, NAND_ALE); in mxs_nand_command() 35 chip->cmd_ctrl(mtd, NAND_CMD_NONE, 0); in mxs_nand_command() 38 chip->cmd_ctrl(mtd, NAND_CMD_READSTART, NAND_CLE); in mxs_nand_command() [all …]
|
| H A D | zynq_nand.c | 422 static int zynq_nand_read_oob(struct mtd_info *mtd, struct nand_chip *chip, in zynq_nand_read_oob() argument 429 chip->cmdfunc(mtd, NAND_CMD_READOOB, 0, page); in zynq_nand_read_oob() 431 p = chip->oob_poi; in zynq_nand_read_oob() 432 chip->read_buf(mtd, p, (mtd->oobsize - data_width)); in zynq_nand_read_oob() 435 data_phase_addr = (unsigned long)chip->IO_ADDR_R; in zynq_nand_read_oob() 437 chip->IO_ADDR_R = (void __iomem *)data_phase_addr; in zynq_nand_read_oob() 438 chip->read_buf(mtd, p, data_width); in zynq_nand_read_oob() 449 static int zynq_nand_write_oob(struct mtd_info *mtd, struct nand_chip *chip, in zynq_nand_write_oob() argument 453 const u8 *buf = chip->oob_poi; in zynq_nand_write_oob() 456 chip->cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, page); in zynq_nand_write_oob() [all …]
|
| H A D | fsl_upm.c | 66 struct nand_chip *chip = mtd_to_nand(mtd); in fun_select_chip() local 67 struct fsl_upm_nand *fun = nand_get_controller_data(chip); in fun_select_chip() 71 chip->IO_ADDR_R = chip->IO_ADDR_W = in fun_select_chip() 74 chip->cmd_ctrl(mtd, NAND_CMD_NONE, 0 | NAND_CTRL_CHANGE); in fun_select_chip() 81 struct nand_chip *chip = mtd_to_nand(mtd); in fun_cmd_ctrl() local 82 struct fsl_upm_nand *fun = nand_get_controller_data(chip); in fun_cmd_ctrl() 125 struct nand_chip *chip = mtd_to_nand(mtd); in upm_nand_read_byte() local 127 return in_8(chip->IO_ADDR_R); in upm_nand_read_byte() 133 struct nand_chip *chip = mtd_to_nand(mtd); in upm_nand_write_buf() local 134 struct fsl_upm_nand *fun = nand_get_controller_data(chip); in upm_nand_write_buf() [all …]
|
| H A D | mxc_nand.c | 384 struct nand_chip *chip, argument 387 struct mxc_nand_host *host = nand_get_controller_data(chip); 388 uint8_t *buf = chip->oob_poi; 390 int eccpitch = chip->ecc.bytes + chip->ecc.prepad + chip->ecc.postpad; 397 chip->cmdfunc(mtd, NAND_CMD_READOOB, mtd->writesize, page); 398 for (i = 0; i < chip->ecc.steps; i++) { 399 toread = min_t(int, length, chip->ecc.prepad); 401 chip->read_buf(mtd, bufpoi, toread); 405 bufpoi += chip->ecc.bytes; 406 host->col_addr += chip->ecc.bytes; [all …]
|
| H A D | denali.c | 308 struct nand_chip *chip, uint8_t *buf, in denali_check_erased_page() argument 312 uint8_t *ecc_code = chip->buffers->ecccode; in denali_check_erased_page() 313 int ecc_steps = chip->ecc.steps; in denali_check_erased_page() 314 int ecc_size = chip->ecc.size; in denali_check_erased_page() 315 int ecc_bytes = chip->ecc.bytes; in denali_check_erased_page() 318 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0, in denali_check_erased_page() 319 chip->ecc.total); in denali_check_erased_page() 330 chip->ecc.strength); in denali_check_erased_page() 349 struct nand_chip *chip = mtd_to_nand(mtd); in denali_hw_ecc_fixup() local 363 *uncor_ecc_flags = GENMASK(chip->ecc.steps - 1, 0); in denali_hw_ecc_fixup() [all …]
|
| H A D | davinci_nand.c | 56 struct nand_chip *chip = mtd_to_nand(mtd); in nand_davinci_read_buf() local 57 const u32 *nand = chip->IO_ADDR_R; in nand_davinci_read_buf() 101 struct nand_chip *chip = mtd_to_nand(mtd); in nand_davinci_write_buf() local 102 const u32 *nand = chip->IO_ADDR_W; in nand_davinci_write_buf() 362 static int nand_davinci_write_page(struct mtd_info *mtd, struct nand_chip *chip, in nand_davinci_write_page() argument 373 saved_ecc_layout = chip->ecc.layout; in nand_davinci_write_page() 374 chip->ecc.layout = &nand_keystone_rbl_4bit_layout_oobfirst; in nand_davinci_write_page() 375 mtd->oobavail = chip->ecc.layout->oobavail; in nand_davinci_write_page() 378 chip->cmdfunc(mtd, NAND_CMD_SEQIN, 0x00, page); in nand_davinci_write_page() 381 status = chip->ecc.write_page_raw(mtd, chip, buf, in nand_davinci_write_page() [all …]
|
| /openbmc/u-boot/drivers/tpm/ |
| H A D | tpm2_tis_core.c | 17 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_get_desc() local 24 dev->name, chip->vend_dev & 0xFFFF, in tpm_tis_get_desc() 25 chip->vend_dev >> 16, chip->rid, in tpm_tis_get_desc() 26 (chip->is_open ? "open" : "closed")); in tpm_tis_get_desc() 39 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_check_locality() local 40 struct tpm_tis_phy_ops *phy_ops = chip->phy_ops; in tpm_tis_check_locality() 47 chip->locality = loc; in tpm_tis_check_locality() 64 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_request_locality() local 65 struct tpm_tis_phy_ops *phy_ops = chip->phy_ops; in tpm_tis_request_locality() 74 stop = chip->timeout_a; in tpm_tis_request_locality() [all …]
|
| H A D | tpm2_tis_spi.c | 194 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_spi_check_locality() local 203 chip->locality = loc; in tpm_tis_spi_check_locality() 227 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_spi_request_locality() local 250 stop = chip->timeout_a; in tpm_tis_spi_request_locality() 273 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_spi_status() local 275 return tpm_tis_spi_read(dev, TPM_STS(chip->locality), status, 1); in tpm_tis_spi_status() 300 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_spi_get_burstcount() local 306 stop = chip->timeout_d; in tpm_tis_spi_get_burstcount() 308 ret = tpm_tis_spi_read32(dev, TPM_STS(chip->locality), in tpm_tis_spi_get_burstcount() 325 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_spi_cancel() local [all …]
|
| H A D | tpm_tis_infineon.c | 73 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_i2c_read() local 78 if ((chip->chip_type == SLB9635) || (chip->chip_type == UNKNOWN)) { in tpm_tis_i2c_read() 128 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_i2c_write_generic() local 132 if (chip->chip_type == SLB9635) { in tpm_tis_i2c_write_generic() 194 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_i2c_check_locality() local 203 chip->locality = loc; in tpm_tis_i2c_check_locality() 227 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_i2c_request_locality() local 249 stop = chip->timeout_a; in tpm_tis_i2c_request_locality() 268 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_i2c_status() local 272 if (tpm_tis_i2c_read(dev, TPM_STS(chip->locality), &buf, 1) < 0) in tpm_tis_i2c_status() [all …]
|
| H A D | tpm_tis_st33zp24_i2c.c | 128 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_check_locality() local 136 return chip->locality; in st33zp24_i2c_check_locality() 148 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_request_locality() local 153 if (st33zp24_i2c_check_locality(dev) == chip->locality) in st33zp24_i2c_request_locality() 154 return chip->locality; in st33zp24_i2c_request_locality() 163 stop = chip->timeout_a; in st33zp24_i2c_request_locality() 166 return chip->locality; in st33zp24_i2c_request_locality() 194 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_get_burstcount() local 201 stop = chip->timeout_d; in st33zp24_i2c_get_burstcount() 275 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_recv_data() local [all …]
|
| /openbmc/u-boot/drivers/gpio/ |
| H A D | pca953x.c | 30 uint8_t chip; member 41 static int pca953x_ngpio(uint8_t chip) in pca953x_ngpio() argument 46 if (pca953x_chip_ngpios[i].chip == chip) in pca953x_ngpio() 52 static int pca953x_ngpio(uint8_t chip) in pca953x_ngpio() argument 61 static int pca953x_reg_write(uint8_t chip, uint addr, uint mask, uint data) in pca953x_reg_write() argument 66 if (pca953x_ngpio(chip) <= 8) { in pca953x_reg_write() 67 if (i2c_read(chip, addr, 1, &valb, 1)) in pca953x_reg_write() 73 return i2c_write(chip, addr, 1, &valb, 1); in pca953x_reg_write() 75 if (i2c_read(chip, addr << 1, 1, (u8*)&valw, 2)) in pca953x_reg_write() 83 return i2c_write(chip, addr << 1, 1, (u8*)&valw, 2); in pca953x_reg_write() [all …]
|
| H A D | tca642x.c | 46 static int tca642x_reg_write(uchar chip, uint8_t addr, in tca642x_reg_write() argument 56 if (i2c_read(chip, addr, 1, (uint8_t *)&valw, 1)) { in tca642x_reg_write() 64 ret = i2c_write(chip, addr, 1, (u8 *)&valw, 1); in tca642x_reg_write() 71 static int tca642x_reg_read(uchar chip, uint8_t addr, uint8_t *data) in tca642x_reg_read() argument 79 if (i2c_read(chip, addr, 1, (u8 *)&valw, 1)) { in tca642x_reg_read() 95 int tca642x_set_val(uchar chip, uint8_t gpio_bank, in tca642x_set_val() argument 100 return tca642x_reg_write(chip, out_reg, reg_bit, data); in tca642x_set_val() 107 int tca642x_set_pol(uchar chip, uint8_t gpio_bank, in tca642x_set_pol() argument 112 return tca642x_reg_write(chip, pol_reg, reg_bit, data); in tca642x_set_pol() 119 int tca642x_set_dir(uchar chip, uint8_t gpio_bank, in tca642x_set_dir() argument [all …]
|
| /openbmc/u-boot/drivers/net/ |
| H A D | ftmac110.c | 70 struct ftmac110_chip *chip = dev->priv; in mdio_read() local 71 struct ftmac110_regs *regs = chip->regs; in mdio_read() 99 struct ftmac110_chip *chip = dev->priv; in mdio_write() local 100 struct ftmac110_regs *regs = chip->regs; in mdio_write() 125 struct ftmac110_chip *chip = dev->priv; in ftmac110_phyqry() local 135 chip->phy_addr = pa; in ftmac110_phyqry() 144 chip->lnkup = 0; in ftmac110_phyqry() 145 bmcr = mdio_read(dev, chip->phy_addr, MII_BMCR); in ftmac110_phyqry() 148 bmsr = mdio_read(dev, chip->phy_addr, MII_BMSR); in ftmac110_phyqry() 149 chip->lnkup = (bmsr & BMSR_LSTATUS) ? 1 : 0; in ftmac110_phyqry() [all …]
|
| /openbmc/qemu/tests/qtest/ |
| H A D | pnv-xscom-test.c | 15 static uint64_t pnv_xscom_read(QTestState *qts, const PnvChip *chip, in pnv_xscom_read() argument 18 return qtest_readq(qts, pnv_xscom_addr(chip, pcba)); in pnv_xscom_read() 21 static void test_xscom_cfam_id(QTestState *qts, const PnvChip *chip) in test_xscom_cfam_id() argument 23 uint64_t f000f = pnv_xscom_read(qts, chip, 0xf000f); in test_xscom_cfam_id() 25 g_assert_cmphex(f000f, ==, chip->cfam_id); in test_xscom_cfam_id() 30 const PnvChip *chip = data; in test_cfam_id() local 34 if (chip->chip_type == PNV_CHIP_POWER9) { in test_cfam_id() 36 } else if (chip->chip_type == PNV_CHIP_POWER10) { in test_cfam_id() 41 machine, chip->cpu_model); in test_cfam_id() 42 test_xscom_cfam_id(qts, chip); in test_cfam_id() [all …]
|
| H A D | pnv-spi-seeprom-test.c | 36 static void pnv_spi_xscom_write(QTestState *qts, const PnvChip *chip, 40 qtest_writeq(qts, pnv_xscom_addr(chip, pcba), val); in pnv_spi_xscom_write() 43 static uint64_t pnv_spi_xscom_read(QTestState *qts, const PnvChip *chip, 47 return qtest_readq(qts, pnv_xscom_addr(chip, pcba)); in pnv_spi_xscom_read() 50 static void spi_seeprom_transaction(QTestState *qts, const PnvChip *chip) 53 pnv_spi_xscom_write(qts, chip, SPI_CTR_CFG_REG, READ_OP_COUNTER_CONFIG); in spi_seeprom_transaction() 54 pnv_spi_xscom_write(qts, chip, SPI_SEQ_OP_REG, READ_OP_SEQUENCER); in spi_seeprom_transaction() 55 pnv_spi_xscom_write(qts, chip, SPI_XMIT_DATA_REG, READ_OP_TDR_DATA); in spi_seeprom_transaction() 56 pnv_spi_xscom_write(qts, chip, SPI_XMIT_DATA_REG, 0); in spi_seeprom_transaction() 58 uint64_t rdr_val = pnv_spi_xscom_read(qts, chip, SPI_RCV_DATA_RE in spi_seeprom_transaction() 37 pnv_spi_xscom_write(QTestState * qts,const PnvChip * chip,uint32_t reg,uint64_t val) pnv_spi_xscom_write() argument 44 pnv_spi_xscom_read(QTestState * qts,const PnvChip * chip,uint32_t reg) pnv_spi_xscom_read() argument 51 spi_seeprom_transaction(QTestState * qts,const PnvChip * chip) spi_seeprom_transaction() argument 79 const PnvChip *chip = data; test_spi_seeprom() local [all...] |
| /openbmc/u-boot/drivers/misc/ |
| H A D | ds4510.c | 32 static int ds4510_mem_write(uint8_t chip, int offset, uint8_t *buf, int count) in ds4510_mem_write() argument 42 if (i2c_write(chip, offset, 1, &buf[i], wrlen)) in ds4510_mem_write() 61 static int ds4510_mem_read(uint8_t chip, int offset, uint8_t *buf, int count) in ds4510_mem_read() argument 63 return i2c_read(chip, offset, 1, buf, count); in ds4510_mem_read() 71 static int ds4510_see_write(uint8_t chip, uint8_t nv) in ds4510_see_write() argument 75 if (i2c_read(chip, DS4510_CFG, 1, &data, 1)) in ds4510_see_write() 83 return ds4510_mem_write(chip, DS4510_CFG, &data, 1); in ds4510_see_write() 89 static int ds4510_rstdelay_write(uint8_t chip, uint8_t delay) in ds4510_rstdelay_write() argument 93 if (i2c_read(chip, DS4510_RSTDELAY, 1, &data, 1)) in ds4510_rstdelay_write() 99 return ds4510_mem_write(chip, DS4510_RSTDELAY, &data, 1); in ds4510_rstdelay_write() [all …]
|
| /openbmc/qemu/hw/ppc/ |
| H A D | pnv_xscom.c | 56 static uint32_t pnv_xscom_pcba(PnvChip *chip, uint64_t addr) in pnv_xscom_pcba() argument 58 return PNV_CHIP_GET_CLASS(chip)->xscom_pcba(chip, addr); in pnv_xscom_pcba() 61 static uint64_t xscom_read_default(PnvChip *chip, uint32_t pcba) in xscom_read_default() argument 65 return PNV_CHIP_GET_CLASS(chip)->chip_cfam_id; in xscom_read_default() 106 static bool xscom_write_default(PnvChip *chip, uint32_t pcba, uint64_t val) in xscom_write_default() argument 151 PnvChip *chip = opaque; in xscom_read() local 152 uint32_t pcba = pnv_xscom_pcba(chip, addr); in xscom_read() 157 val = xscom_read_default(chip, pcba); in xscom_read() 162 val = address_space_ldq(&chip->xscom_as, (uint64_t) pcba << 3, in xscom_read() 179 PnvChip *chip = opaque; in xscom_write() local [all …]
|
| H A D | pnv.c | 97 * per chip. 115 _FDT((fdt_setprop_cell(fdt, off, "ibm,chip-id", chip_id))); in pnv_dt_memory() 140 static int pnv_dt_core(PnvChip *chip, PnvCore *pc, void *fdt) in pnv_dt_core() argument 148 PnvChipClass *pnv_cc = PNV_CHIP_GET_CLASS(chip); in pnv_dt_core() 162 pnv_cc->get_pir_tir(chip, pc->hwid, 0, &pir, &tir); in pnv_dt_core() 172 _FDT((fdt_setprop_cell(fdt, offset, "ibm,chip-id", chip->chip_id))); in pnv_dt_core() 249 pnv_cc->get_pir_tir(chip, pc->hwid, i, &pir, NULL); in pnv_dt_core() 252 pnv_cc->get_pir_tir(chip, pc->hwid + 1, i, &pir, NULL); in pnv_dt_core() 261 pnv_cc->get_pir_tir(chip, p in pnv_dt_core() 272 pnv_dt_icp(PnvChip * chip,void * fdt,uint32_t hwid,uint32_t nr_threads) pnv_dt_icp() argument 319 pnv_chip_add_phb(PnvChip * chip,PnvPHB * phb) pnv_chip_add_phb() argument 341 pnv_chip_power8_dt_populate(PnvChip * chip,void * fdt) pnv_chip_power8_dt_populate() argument 398 pnv_chip_power9_dt_populate(PnvChip * chip,void * fdt) pnv_chip_power9_dt_populate() argument 463 pnv_chip_power10_dt_populate(PnvChip * chip,void * fdt) pnv_chip_power10_dt_populate() argument 766 pnv_chip_power8_isa_create(PnvChip * chip,Error ** errp) pnv_chip_power8_isa_create() argument 776 pnv_chip_power8nvl_isa_create(PnvChip * chip,Error ** errp) pnv_chip_power8nvl_isa_create() argument 786 pnv_chip_power9_isa_create(PnvChip * chip,Error ** errp) pnv_chip_power9_isa_create() argument 806 pnv_chip_power10_isa_create(PnvChip * chip,Error ** errp) pnv_chip_power10_isa_create() argument 826 pnv_isa_create(PnvChip * chip,Error ** errp) pnv_isa_create() argument 831 pnv_chip_power8_pic_print_info(PnvChip * chip,GString * buf) pnv_chip_power8_pic_print_info() argument 861 pnv_chip_power9_pic_print_info(PnvChip * chip,GString * buf) pnv_chip_power9_pic_print_info() argument 871 pnv_chip_power8_xscom_core_base(PnvChip * chip,uint32_t core_id) pnv_chip_power8_xscom_core_base() argument 877 pnv_chip_power9_xscom_core_base(PnvChip * chip,uint32_t core_id) pnv_chip_power9_xscom_core_base() argument 883 pnv_chip_power10_xscom_core_base(PnvChip * chip,uint32_t core_id) pnv_chip_power10_xscom_core_base() argument 908 pnv_chip_power10_pic_print_info(PnvChip * chip,GString * buf) pnv_chip_power10_pic_print_info() argument 1134 Object *chip = OBJECT(qdev_new(chip_typename)); pnv_init() local 1219 pnv_get_pir_tir_p8(PnvChip * chip,uint32_t core_id,uint32_t thread_id,uint32_t * pir,uint32_t * tir) pnv_get_pir_tir_p8() argument 1231 pnv_chip_power8_intc_create(PnvChip * chip,PowerPCCPU * cpu,Error ** errp) pnv_chip_power8_intc_create() argument 1249 pnv_chip_power8_intc_reset(PnvChip * chip,PowerPCCPU * cpu) pnv_chip_power8_intc_reset() argument 1256 pnv_chip_power8_intc_destroy(PnvChip * chip,PowerPCCPU * cpu) pnv_chip_power8_intc_destroy() argument 1264 pnv_chip_power8_intc_print_info(PnvChip * chip,PowerPCCPU * cpu,GString * buf) pnv_chip_power8_intc_print_info() argument 1280 pnv_get_pir_tir_p9(PnvChip * chip,uint32_t core_id,uint32_t thread_id,uint32_t * pir,uint32_t * tir) pnv_get_pir_tir_p9() argument 1314 pnv_get_pir_tir_p10(PnvChip * chip,uint32_t core_id,uint32_t thread_id,uint32_t * pir,uint32_t * tir) pnv_get_pir_tir_p10() argument 1337 pnv_chip_power9_intc_create(PnvChip * chip,PowerPCCPU * cpu,Error ** errp) pnv_chip_power9_intc_create() argument 1360 pnv_chip_power9_intc_reset(PnvChip * chip,PowerPCCPU * cpu) pnv_chip_power9_intc_reset() argument 1367 pnv_chip_power9_intc_destroy(PnvChip * chip,PowerPCCPU * cpu) pnv_chip_power9_intc_destroy() argument 1375 pnv_chip_power9_intc_print_info(PnvChip * chip,PowerPCCPU * cpu,GString * buf) pnv_chip_power9_intc_print_info() argument 1381 pnv_chip_power10_intc_create(PnvChip * chip,PowerPCCPU * cpu,Error ** errp) pnv_chip_power10_intc_create() argument 1404 pnv_chip_power10_intc_reset(PnvChip * chip,PowerPCCPU * cpu) pnv_chip_power10_intc_reset() argument 1411 pnv_chip_power10_intc_destroy(PnvChip * chip,PowerPCCPU * cpu) pnv_chip_power10_intc_destroy() argument 1419 pnv_chip_power10_intc_print_info(PnvChip * chip,PowerPCCPU * cpu,GString * buf) pnv_chip_power10_intc_print_info() argument 1496 PnvChip *chip = PNV_CHIP(chip8); pnv_chip_icp_realize() local 1528 PnvChip *chip = PNV_CHIP(dev); pnv_chip_power8_realize() local 1616 pnv_chip_power8_xscom_pcba(PnvChip * chip,uint64_t addr) pnv_chip_power8_xscom_pcba() argument 1696 PnvChip *chip = PNV_CHIP(obj); pnv_chip_power9_instance_init() local 1731 pnv_chip_quad_realize_one(PnvChip * chip,PnvQuad * eq,PnvCore * pnv_core,const char * type) pnv_chip_quad_realize_one() argument 1749 PnvChip *chip = PNV_CHIP(chip9); pnv_chip_quad_realize() local 1766 pnv_chip_power9_pec_realize(PnvChip * chip,Error ** errp) pnv_chip_power9_pec_realize() argument 1871 PnvChip *chip = PNV_CHIP(dev); pnv_chip_power9_realize() local 2029 pnv_chip_power9_xscom_pcba(PnvChip * chip,uint64_t addr) pnv_chip_power9_xscom_pcba() argument 2064 PnvChip *chip = PNV_CHIP(obj); pnv_chip_power10_instance_init() local 2102 PnvChip *chip = PNV_CHIP(chip10); pnv_chip_power10_quad_realize() local 2122 pnv_chip_power10_phb_realize(PnvChip * chip,Error ** errp) pnv_chip_power10_phb_realize() argument 2157 PnvChip *chip = PNV_CHIP(dev); pnv_chip_power10_realize() local 2385 pnv_chip_power10_xscom_pcba(PnvChip * chip,uint64_t addr) pnv_chip_power10_xscom_pcba() argument 2418 pnv_chip_core_sanitize(PnvMachineState * pnv,PnvChip * chip,Error ** errp) pnv_chip_core_sanitize() argument 2460 pnv_chip_core_realize(PnvChip * chip,Error ** errp) pnv_chip_core_realize() argument 2528 PnvChip *chip = PNV_CHIP(dev); pnv_chip_realize() local 2560 pnv_chip_find_core(PnvChip * chip,uint32_t core_id) pnv_chip_find_core() argument 2575 pnv_chip_find_cpu(PnvChip * chip,uint32_t pir) pnv_chip_find_cpu() argument 2592 pnv_chip_foreach_cpu(PnvChip * chip,void (* fn)(PnvChip * chip,PowerPCCPU * cpu,void * opaque),void * opaque) pnv_chip_foreach_cpu() argument 2593 pnv_chip_foreach_cpu(PnvChip * chip,void (* fn)(PnvChip * chip,PowerPCCPU * cpu,void * opaque),void * opaque) pnv_chip_foreach_cpu() argument 2640 PnvChip *chip = pnv->chips[i]; pnv_get_chip() local 2675 pnv_pic_intc_print_info(PnvChip * chip,PowerPCCPU * cpu,void * opaque) pnv_pic_intc_print_info() argument 2687 PnvChip *chip = pnv->chips[i]; pnv_pic_print_info() local 2971 pnv_cpu_do_nmi(PnvChip * chip,PowerPCCPU * cpu,void * opaque) pnv_cpu_do_nmi() argument [all...] |
| /openbmc/u-boot/drivers/usb/gadget/ |
| H A D | fotg210.c | 38 struct fotg210_chip *chip; member 66 static inline int fifo_to_ep(struct fotg210_chip *chip, int id, int in) in fifo_to_ep() argument 71 static inline int ep_to_fifo(struct fotg210_chip *chip, int id) in ep_to_fifo() argument 76 static inline int ep_reset(struct fotg210_chip *chip, uint8_t ep_addr) in ep_reset() argument 79 struct fotg210_regs *regs = chip->regs; in ep_reset() 100 static int fotg210_reset(struct fotg210_chip *chip) in fotg210_reset() argument 102 struct fotg210_regs *regs = chip->regs; in fotg210_reset() 105 chip->state = USB_STATE_POWERED; in fotg210_reset() 111 chip->addr = 0; in fotg210_reset() 189 static inline int fotg210_cxwait(struct fotg210_chip *chip, uint32_t mask) in fotg210_cxwait() argument [all …]
|
| /openbmc/u-boot/drivers/mmc/ |
| H A D | ftsdc010_mci.c | 57 struct ftsdc010_chip chip; member 65 struct ftsdc010_chip *chip = mmc->priv; in ftsdc010_send_cmd() local 66 struct ftsdc010_mmc __iomem *regs = chip->regs; in ftsdc010_send_cmd() 75 if (chip->acmd) { in ftsdc010_send_cmd() 77 chip->acmd = 0; in ftsdc010_send_cmd() 127 chip->acmd = 1; in ftsdc010_send_cmd() 135 struct ftsdc010_chip *chip = mmc->priv; in ftsdc010_clkset() local 136 struct ftsdc010_mmc __iomem *regs = chip->regs; in ftsdc010_clkset() 140 if (rate >= chip->sclk / (2 * (div + 1))) in ftsdc010_clkset() 143 chip->rate = chip->sclk / (2 * (div + 1)); in ftsdc010_clkset() [all …]
|
| /openbmc/openbmc/meta-facebook/meta-ventura/recipes-ventura/plat-svc/files/ |
| H A D | gpio_util | 22 local chip line gpio_val 23 read -r chip line < <(get_gpio_by_name "$name") 26 if ! gpio_val="$(gpioget "$chip" "$line" 2>/dev/null)"; then 29 if ! gpio_val=$(get_gpio_val_from_debugfs "$chip" "$line"); then 40 if [[ $chip =~ ^[0-9]+$ ]]; then 41 local chip="gpiochip$1" 43 local chip=$1 53 gpio_base=$(grep "$chip" /sys/kernel/debug/gpio | sed -n 's/.*GPIOs \([0-9]\+\)-.*/\1/p')
|
| /openbmc/u-boot/drivers/i2c/ |
| H A D | i2c_core.c | 58 static int i2c_mux_set(struct i2c_adapter *adap, int mux_id, int chip, in i2c_mux_set() argument 67 ret = adap->write(adap, chip, 0, 0, &buf, 1); in i2c_mux_set() 100 ret = adap->write(adap, chip, 0, 0, &buf, 1); in i2c_mux_set() 103 __func__, mux_id, chip, channel); in i2c_mux_set() 113 if (i2c_bus_tmp->next_hop[0].chip != 0) { in i2c_mux_set_all() 118 if (i2c_bus_tmp->next_hop[i].chip == 0) in i2c_mux_set_all() 123 i2c_bus_tmp->next_hop[i].chip, in i2c_mux_set_all() 142 if ((i2c_bus_tmp->next_hop[0].chip != 0) && in i2c_mux_disconnect_all() 146 uint8_t chip; in i2c_mux_disconnect_all() local 149 chip = i2c_bus_tmp->next_hop[--i].chip; in i2c_mux_disconnect_all() [all …]
|
| /openbmc/u-boot/include/linux/mtd/ |
| H A D | rawnand.h | 31 struct nand_chip *chip, 225 #define NAND_HAS_CACHEPROG(chip) ((chip->options & NAND_CACHEPRG)) argument 226 #define NAND_HAS_SUBPAGE_READ(chip) ((chip->options & NAND_SUBPAGE_READ)) argument 227 #define NAND_HAS_SUBPAGE_WRITE(chip) !((chip)->options & NAND_NO_SUBPAGE_WRITE) argument 609 int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip, 611 int (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip, 613 int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip, 615 int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip, 617 int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip, 620 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip, [all …]
|