Home
last modified time | relevance | path

Searched defs:chip (Results 1 – 25 of 143) sorted by relevance

123456

/openbmc/qemu/include/hw/ppc/
H A Dpnv.h132 #define PNV_XSCOM_BASE(chip) \ argument
137 #define PNV_OCC_SENSOR_BASE(chip) (PNV_OCC_COMMON_AREA_BASE + \ argument
141 #define PNV_HOMER_BASE(chip) \ argument
160 #define PNV_ICP_BASE(chip) \ argument
165 #define PNV_PSIHB_BASE(chip) \ argument
169 #define PNV_PSIHB_FSP_BASE(chip) \ argument
176 #define PNV9_CHIP_BASE(chip, base) \ argument
180 #define PNV9_XIVE_VC_BASE(chip) PNV9_CHIP_BASE(chip, 0x0006010000000000ull) argument
183 #define PNV9_XIVE_PC_BASE(chip) PNV9_CHIP_BASE(chip, 0x0006018000000000ull) argument
186 #define PNV9_LPCM_BASE(chip) PNV9_CHIP_BASE(chip, 0x0006030000000000ull) argument
[all …]
/openbmc/u-boot/drivers/gpio/
H A Dpca953x.c30 uint8_t chip; member
41 static int pca953x_ngpio(uint8_t chip) in pca953x_ngpio()
52 static int pca953x_ngpio(uint8_t chip) in pca953x_ngpio()
61 static int pca953x_reg_write(uint8_t chip, uint addr, uint mask, uint data) in pca953x_reg_write()
87 static int pca953x_reg_read(uint8_t chip, uint addr, uint *data) in pca953x_reg_read()
108 int pca953x_set_val(uint8_t chip, uint mask, uint data) in pca953x_set_val()
117 int pca953x_set_pol(uint8_t chip, uint mask, uint data) in pca953x_set_pol()
126 int pca953x_set_dir(uint8_t chip, uint mask, uint data) in pca953x_set_dir()
134 int pca953x_get_val(uint8_t chip) in pca953x_get_val()
148 static int pca953x_info(uint8_t chip) in pca953x_info()
[all …]
H A Dtca642x.c46 static int tca642x_reg_write(uchar chip, uint8_t addr, in tca642x_reg_write()
71 static int tca642x_reg_read(uchar chip, uint8_t addr, uint8_t *data) in tca642x_reg_read()
95 int tca642x_set_val(uchar chip, uint8_t gpio_bank, in tca642x_set_val()
107 int tca642x_set_pol(uchar chip, uint8_t gpio_bank, in tca642x_set_pol()
119 int tca642x_set_dir(uchar chip, uint8_t gpio_bank, in tca642x_set_dir()
130 int tca642x_get_val(uchar chip, uint8_t gpio_bank) in tca642x_get_val()
144 int tca642x_set_inital_state(uchar chip, struct tca642x_bank_info init_data[]) in tca642x_set_inital_state()
170 static int tca642x_info(uchar chip) in tca642x_info()
225 static uchar chip = CONFIG_SYS_I2C_TCA642X_ADDR; in do_tca642x() local
/openbmc/u-boot/drivers/misc/
H A Dds4510.c32 static int ds4510_mem_write(uint8_t chip, int offset, uint8_t *buf, int count) in ds4510_mem_write()
61 static int ds4510_mem_read(uint8_t chip, int offset, uint8_t *buf, int count) in ds4510_mem_read()
71 static int ds4510_see_write(uint8_t chip, uint8_t nv) in ds4510_see_write()
89 static int ds4510_rstdelay_write(uint8_t chip, uint8_t delay) in ds4510_rstdelay_write()
105 static int ds4510_pullup_write(uint8_t chip, uint8_t val) in ds4510_pullup_write()
115 static int ds4510_pullup_read(uint8_t chip) in ds4510_pullup_read()
128 static int ds4510_gpio_write(uint8_t chip, uint8_t val) in ds4510_gpio_write()
152 static int ds4510_gpio_read(uint8_t chip) in ds4510_gpio_read()
172 static int ds4510_gpio_read_val(uint8_t chip) in ds4510_gpio_read_val()
185 static int ds4510_info(uint8_t chip) in ds4510_info()
[all …]
/openbmc/u-boot/drivers/tpm/
H A Dtpm2_tis_core.c17 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_get_desc() local
39 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_check_locality() local
64 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_request_locality() local
94 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_status() local
120 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_release_locality() local
174 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_get_burstcount() local
210 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_ready() local
220 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_send() local
306 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_recv_data() local
342 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_recv() local
[all …]
H A Dtpm_tis_infineon.c73 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_i2c_read() local
128 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_i2c_write_generic() local
194 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_i2c_check_locality() local
227 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_i2c_request_locality() local
268 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_i2c_status() local
280 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_i2c_ready() local
296 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_i2c_get_burstcount() local
345 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_i2c_recv_data() local
372 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_i2c_recv() local
422 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_i2c_send() local
[all …]
H A Dtpm2_tis_spi.c194 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_spi_check_locality() local
227 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_spi_request_locality() local
273 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_spi_status() local
300 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_spi_get_burstcount() local
325 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_spi_cancel() local
333 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_spi_recv_data() local
359 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_spi_recv() local
400 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_spi_send() local
497 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_spi_cleanup() local
512 struct tpm_chip *chip = dev_get_priv(dev); in tpm_tis_spi_open() local
[all …]
H A Dtpm_tis_st33zp24_i2c.c128 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_check_locality() local
148 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_request_locality() local
194 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_get_burstcount() local
275 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_recv_data() local
304 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_recv() local
352 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_send() local
434 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_init() local
456 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_open() local
472 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_close() local
485 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_get_desc() local
[all …]
H A Dtpm_tis_st33zp24_spi.c260 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_spi_check_locality() local
281 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_spi_request_locality() local
323 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_spi_get_burstcount() local
404 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_spi_recv_data() local
432 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_spi_recv() local
480 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_spi_send() local
562 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_spi_init() local
589 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_spi_open() local
605 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_spi_close() local
618 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_spi_get_desc() local
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand_base.c109 struct nand_chip *chip = mtd_to_nand(mtd); in check_offs_len() local
135 struct nand_chip *chip = mtd_to_nand(mtd); in nand_release_device() local
149 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_byte() local
162 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_byte16() local
174 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_word() local
187 struct nand_chip *chip = mtd_to_nand(mtd); in nand_select_chip() local
210 struct nand_chip *chip = mtd_to_nand(mtd); in nand_write_byte() local
224 struct nand_chip *chip = mtd_to_nand(mtd); in nand_write_byte16() local
289 struct nand_chip *chip = mtd_to_nand(mtd); in nand_write_buf() local
304 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_buf() local
[all …]
H A Dfsl_upm.c66 struct nand_chip *chip = mtd_to_nand(mtd); in fun_select_chip() local
81 struct nand_chip *chip = mtd_to_nand(mtd); in fun_cmd_ctrl() local
125 struct nand_chip *chip = mtd_to_nand(mtd); in upm_nand_read_byte() local
133 struct nand_chip *chip = mtd_to_nand(mtd); in upm_nand_write_buf() local
149 struct nand_chip *chip = mtd_to_nand(mtd); in upm_nand_read_buf() local
157 struct nand_chip *chip = mtd_to_nand(mtd); in nand_dev_ready() local
163 int fsl_upm_nand_init(struct nand_chip *chip, struct fsl_upm_nand *fun) in fsl_upm_nand_init()
H A Dmxs_nand_spl.c17 register struct nand_chip *chip = mtd_to_nand(mtd); in mxs_nand_command() local
58 struct nand_chip *chip = mtd_to_nand(mtd); in mxs_flash_full_ident() local
76 register struct nand_chip *chip = mtd_to_nand(mtd); in mxs_flash_onfi_ident() local
149 register struct nand_chip *chip = mtd_to_nand(mtd); in mxs_read_page_ecc() local
163 register struct nand_chip *chip = mtd_to_nand(mtd); in is_badblock() local
210 struct nand_chip *chip; in nand_spl_load_image() local
H A Dfsl_elbc_nand.c47 struct nand_chip chip; member
156 struct nand_chip *chip = mtd_to_nand(mtd); in set_addr() local
196 struct nand_chip *chip = mtd_to_nand(mtd); in fsl_elbc_run_command() local
246 static void fsl_elbc_do_read(struct nand_chip *chip, int oob) in fsl_elbc_do_read()
281 struct nand_chip *chip = mtd_to_nand(mtd); in fsl_elbc_cmdfunc() local
479 static void fsl_elbc_select_chip(struct mtd_info *mtd, int chip) in fsl_elbc_select_chip()
491 struct nand_chip *chip = mtd_to_nand(mtd); in fsl_elbc_write_buf() local
528 struct nand_chip *chip = mtd_to_nand(mtd); in fsl_elbc_read_byte() local
545 struct nand_chip *chip = mtd_to_nand(mtd); in fsl_elbc_read_buf() local
566 static int fsl_elbc_wait(struct mtd_info *mtd, struct nand_chip *chip) in fsl_elbc_wait()
[all …]
H A Dfsl_ifc_nand.c33 struct nand_chip chip; member
223 struct nand_chip *chip = mtd_to_nand(mtd); in set_addr() local
257 struct nand_chip *chip = mtd_to_nand(mtd); in fsl_ifc_run_command() local
329 static void fsl_ifc_do_read(struct nand_chip *chip, in fsl_ifc_do_read()
370 struct nand_chip *chip = mtd_to_nand(mtd); in fsl_ifc_cmdfunc() local
573 struct nand_chip *chip = mtd_to_nand(mtd); in fsl_ifc_write_buf() local
601 struct nand_chip *chip = mtd_to_nand(mtd); in fsl_ifc_read_byte() local
625 struct nand_chip *chip = mtd_to_nand(mtd); in fsl_ifc_read_byte16() local
649 struct nand_chip *chip = mtd_to_nand(mtd); in fsl_ifc_read_buf() local
670 static int fsl_ifc_wait(struct mtd_info *mtd, struct nand_chip *chip) in fsl_ifc_wait()
[all …]
H A Dtegra_nand.c155 struct nand_chip *chip = mtd_to_nand(mtd); in read_byte() local
181 struct nand_chip *chip = mtd_to_nand(mtd); in read_buf() local
206 struct nand_chip *chip = mtd_to_nand(mtd); in nand_dev_ready() local
257 struct nand_chip *chip = mtd_to_nand(mtd); in nand_command() local
505 static int nand_rw_page(struct mtd_info *mtd, struct nand_chip *chip, in nand_rw_page()
656 struct nand_chip *chip, uint8_t *buf, int oob_required, int page) in nand_read_page_hwecc()
669 struct nand_chip *chip, const uint8_t *buf, int oob_required, in nand_write_page_hwecc()
689 struct nand_chip *chip, uint8_t *buf, int oob_required, int page) in nand_read_page_raw()
702 struct nand_chip *chip, const uint8_t *buf, in nand_write_page_raw()
721 static int nand_rw_oob(struct mtd_info *mtd, struct nand_chip *chip, in nand_rw_oob()
[all …]
/openbmc/u-boot/drivers/usb/gadget/
H A Dfotg210.c38 struct fotg210_chip *chip; member
66 static inline int fifo_to_ep(struct fotg210_chip *chip, int id, int in) in fifo_to_ep()
71 static inline int ep_to_fifo(struct fotg210_chip *chip, int id) in ep_to_fifo()
76 static inline int ep_reset(struct fotg210_chip *chip, uint8_t ep_addr) in ep_reset()
100 static int fotg210_reset(struct fotg210_chip *chip) in fotg210_reset()
189 static inline int fotg210_cxwait(struct fotg210_chip *chip, uint32_t mask) in fotg210_cxwait()
210 struct fotg210_chip *chip = ep->chip; in fotg210_dma() local
318 static void fotg210_setup(struct fotg210_chip *chip) in fotg210_setup()
466 static void fotg210_recv(struct fotg210_chip *chip, int ep_id) in fotg210_recv()
504 struct fotg210_chip *chip = ep->chip; in fotg210_ep_enable() local
[all …]
/openbmc/qemu/hw/ppc/
H A Dpnv.c140 static int pnv_dt_core(PnvChip *chip, PnvCore *pc, void *fdt) in pnv_dt_core()
272 static void pnv_dt_icp(PnvChip *chip, void *fdt, uint32_t hwid, in pnv_dt_icp()
319 PnvChip *pnv_chip_add_phb(PnvChip *chip, PnvPHB *phb) in pnv_chip_add_phb()
341 static void pnv_chip_power8_dt_populate(PnvChip *chip, void *fdt) in pnv_chip_power8_dt_populate()
398 static void pnv_chip_power9_dt_populate(PnvChip *chip, void *fdt) in pnv_chip_power9_dt_populate()
463 static void pnv_chip_power10_dt_populate(PnvChip *chip, void *fdt) in pnv_chip_power10_dt_populate()
766 static ISABus *pnv_chip_power8_isa_create(PnvChip *chip, Error **errp) in pnv_chip_power8_isa_create()
776 static ISABus *pnv_chip_power8nvl_isa_create(PnvChip *chip, Error **errp) in pnv_chip_power8nvl_isa_create()
786 static ISABus *pnv_chip_power9_isa_create(PnvChip *chip, Error **errp) in pnv_chip_power9_isa_create()
806 static ISABus *pnv_chip_power10_isa_create(PnvChip *chip, Error **errp) in pnv_chip_power10_isa_create()
[all …]
H A Dpnv_xscom.c56 static uint32_t pnv_xscom_pcba(PnvChip *chip, uint64_t addr) in pnv_xscom_pcba()
61 static uint64_t xscom_read_default(PnvChip *chip, uint32_t pcba) in xscom_read_default()
106 static bool xscom_write_default(PnvChip *chip, uint32_t pcba, uint64_t val) in xscom_write_default()
151 PnvChip *chip = opaque; in xscom_read() local
179 PnvChip *chip = opaque; in xscom_write() local
212 void pnv_xscom_init(PnvChip *chip, uint64_t size, hwaddr addr) in pnv_xscom_init()
261 int pnv_dt_xscom(PnvChip *chip, void *fdt, int root_offset, in pnv_dt_xscom()
302 void pnv_xscom_add_subregion(PnvChip *chip, hwaddr offset, MemoryRegion *mr) in pnv_xscom_add_subregion()
/openbmc/qemu/tests/qtest/
H A Dpnv-xscom-test.c15 static uint64_t pnv_xscom_read(QTestState *qts, const PnvChip *chip, in pnv_xscom_read()
21 static void test_xscom_cfam_id(QTestState *qts, const PnvChip *chip) in test_xscom_cfam_id()
30 const PnvChip *chip = data; in test_cfam_id() local
58 static void test_xscom_core(QTestState *qts, const PnvChip *chip) in test_xscom_core()
86 const PnvChip *chip = data; in test_core() local
H A Dpnv-spi-seeprom-test.c37 static void pnv_spi_xscom_write(QTestState *qts, const PnvChip *chip, in pnv_spi_xscom_write()
44 static uint64_t pnv_spi_xscom_read(QTestState *qts, const PnvChip *chip, in pnv_spi_xscom_read()
51 static void spi_seeprom_transaction(QTestState *qts, const PnvChip *chip) in spi_seeprom_transaction()
79 const PnvChip *chip = data; in test_spi_seeprom() local
/openbmc/u-boot/drivers/mmc/
H A Dftsdc010_mci.c57 struct ftsdc010_chip chip; member
65 struct ftsdc010_chip *chip = mmc->priv; in ftsdc010_send_cmd() local
135 struct ftsdc010_chip *chip = mmc->priv; in ftsdc010_clkset() local
186 struct ftsdc010_chip *chip = mmc->priv; in ftsdc010_request() local
287 struct ftsdc010_chip *chip = mmc->priv; in ftsdc010_set_ios() local
311 struct ftsdc010_chip *chip = mmc->priv; in ftsdc010_get_cd() local
319 struct ftsdc010_chip *chip = mmc->priv; in ftsdc010_get_wp() local
331 struct ftsdc010_chip *chip = mmc->priv; in ftsdc010_init() local
394 struct ftsdc010_chip *chip = &priv->chip; in ftsdc010_mmc_ofdata_to_platdata() local
428 struct ftsdc010_chip *chip = &priv->chip; in ftsdc010_mmc_probe() local
/openbmc/u-boot/drivers/i2c/
H A Di2c-uclass.c52 static int i2c_setup_offset(struct dm_i2c_chip *chip, uint offset, in i2c_setup_offset()
77 struct dm_i2c_chip *chip = dev_get_parent_platdata(dev); in i2c_read_bytewise() local
106 struct dm_i2c_chip *chip = dev_get_parent_platdata(dev); in i2c_write_bytewise() local
129 struct dm_i2c_chip *chip = dev_get_parent_platdata(dev); in dm_i2c_read() local
160 struct dm_i2c_chip *chip = dev_get_parent_platdata(dev); in dm_i2c_write() local
280 struct dm_i2c_chip *chip; in i2c_bind_driver() local
326 struct dm_i2c_chip *chip = dev_get_parent_platdata(dev); in i2c_get_chip() local
431 struct dm_i2c_chip *chip = dev_get_parent_platdata(dev); in i2c_set_chip_flags() local
447 struct dm_i2c_chip *chip = dev_get_parent_platdata(dev); in i2c_get_chip_flags() local
456 struct dm_i2c_chip *chip = dev_get_parent_platdata(dev); in i2c_set_chip_offset_len() local
[all …]
H A Ddavinci_i2c.c125 static int _davinci_i2c_read(struct i2c_regs *i2c_base, uint8_t chip, in _davinci_i2c_read()
223 static int _davinci_i2c_write(struct i2c_regs *i2c_base, uint8_t chip, in _davinci_i2c_write()
305 static int _davinci_i2c_probe_chip(struct i2c_regs *i2c_base, uint8_t chip) in _davinci_i2c_probe_chip()
385 static int davinci_i2c_read(struct i2c_adapter *adap, uint8_t chip, in davinci_i2c_read()
392 static int davinci_i2c_write(struct i2c_adapter *adap, uint8_t chip, in davinci_i2c_write()
400 static int davinci_i2c_probe_chip(struct i2c_adapter *adap, uint8_t chip) in davinci_i2c_probe_chip()
/openbmc/openpower-hw-diags/test/
H A Dtest-resolution.cpp57 libhei::Chip chip{util::pdbg::getTrgt(chip_str), 0xdeadbeef}; in TEST() local
150 libhei::Chip chip{util::pdbg::getTrgt(chip_str), 0xdeadbeef}; in TEST() local
205 libhei::Chip chip{util::pdbg::getTrgt(chip_str), 0xdeadbeef}; in TEST() local
296 libhei::Chip chip{util::pdbg::getTrgt(chip_str), 0xdeadbeef}; in TEST() local
391 libhei::Chip chip{util::pdbg::getTrgt(chip_str), 0xdeadbeef}; in TEST() local
437 libhei::Chip chip{util::pdbg::getTrgt(chip_str), 0xdeadbeef}; in TEST() local
481 libhei::Chip chip{util::pdbg::getTrgt(chip_str), 0xdeadbeef}; in TEST() local
/openbmc/u-boot/drivers/net/
H A Dftmac110.c70 struct ftmac110_chip *chip = dev->priv; in mdio_read() local
99 struct ftmac110_chip *chip = dev->priv; in mdio_write() local
125 struct ftmac110_chip *chip = dev->priv; in ftmac110_phyqry() local
196 struct ftmac110_chip *chip = dev->priv; in ftmac110_reset() local
270 struct ftmac110_chip *chip = dev->priv; in ftmac110_halt() local
281 struct ftmac110_chip *chip = dev->priv; in ftmac110_send() local
327 struct ftmac110_chip *chip = dev->priv; in ftmac110_recv() local
409 struct ftmac110_chip *chip; in ftmac110_initialize() local

123456