/external/u-boot/drivers/mtd/nand/ |
D | nand_base.c | 107 struct nand_chip *chip = mtd_to_nand(mtd); in check_offs_len() local 111 if (ofs & ((1ULL << chip->phys_erase_shift) - 1)) { in check_offs_len() 117 if (len & ((1ULL << chip->phys_erase_shift) - 1)) { in check_offs_len() 133 struct nand_chip *chip = mtd_to_nand(mtd); in nand_release_device() local 136 chip->select_chip(mtd, -1); in nand_release_device() 147 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_byte() local 148 return readb(chip->IO_ADDR_R); in nand_read_byte() 160 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_byte16() local 161 return (uint8_t) cpu_to_le16(readw(chip->IO_ADDR_R)); in nand_read_byte16() 172 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_word() local [all …]
|
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 …]
|
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 …]
|
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 …]
|
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 …]
|
D | denali.c | 312 struct nand_chip *chip, uint8_t *buf, in denali_check_erased_page() argument 316 uint8_t *ecc_code = chip->buffers->ecccode; in denali_check_erased_page() 317 int ecc_steps = chip->ecc.steps; in denali_check_erased_page() 318 int ecc_size = chip->ecc.size; in denali_check_erased_page() 319 int ecc_bytes = chip->ecc.bytes; in denali_check_erased_page() 322 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0, in denali_check_erased_page() 323 chip->ecc.total); in denali_check_erased_page() 334 chip->ecc.strength); in denali_check_erased_page() 353 struct nand_chip *chip = mtd_to_nand(mtd); in denali_hw_ecc_fixup() local 367 *uncor_ecc_flags = GENMASK(chip->ecc.steps - 1, 0); in denali_hw_ecc_fixup() [all …]
|
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 …]
|
D | vf610_nfc.c | 148 struct nand_chip chip; member 324 if (nfc->chip.options & NAND_BUSWIDTH_16) in vf610_nfc_addr_cycle() 351 int trfr_sz = nfc->chip.options & NAND_BUSWIDTH_16 ? 1 : 0; in vf610_nfc_command() 517 static void vf610_nfc_select_chip(struct mtd_info *mtd, int chip) in vf610_nfc_select_chip() argument 523 if (chip >= 0) { in vf610_nfc_select_chip() 525 tmp |= (1 << chip) << ROW_ADDR_CHIP_SEL_SHIFT; in vf610_nfc_select_chip() 555 int flips_threshold = nfc->chip.ecc.strength / 2; in vf610_nfc_correct_data() 571 flips = count_written_bits(dat, nfc->chip.ecc.size, flips_threshold); in vf610_nfc_correct_data() 578 memset(dat, 0xff, nfc->chip.ecc.size); in vf610_nfc_correct_data() 583 static int vf610_nfc_read_page(struct mtd_info *mtd, struct nand_chip *chip, in vf610_nfc_read_page() argument [all …]
|
D | nand_util.c | 61 struct nand_chip *chip = mtd_to_nand(mtd); in nand_erase_opts() local 91 if (chip->bbt) { in nand_erase_opts() 92 kfree(chip->bbt); in nand_erase_opts() 94 chip->bbt = NULL; in nand_erase_opts() 95 chip->options &= ~NAND_BBT_SCANNED; in nand_erase_opts() 140 if (opts->jffs2 && chip->ecc.layout->oobavail >= 8) { in nand_erase_opts() 219 struct nand_chip *chip = mtd_to_nand(mtd); in nand_lock() local 222 chip->select_chip(mtd, 0); in nand_lock() 225 chip->cmdfunc(mtd, NAND_CMD_LOCK_STATUS, -1, 0); in nand_lock() 226 if (chip->read_byte(mtd) & NAND_LOCK_STATUS_TIGHT) { in nand_lock() [all …]
|
/external/u-boot/drivers/gpio/ |
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 …]
|
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 …]
|
/external/u-boot/drivers/net/ |
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 …]
|
/external/u-boot/drivers/misc/ |
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 …]
|
/external/u-boot/drivers/usb/gadget/ |
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 …]
|
/external/u-boot/drivers/mmc/ |
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 …]
|
/external/u-boot/drivers/tpm/ |
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 …]
|
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 …]
|
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 …]
|
D | tpm_tis_st33zp24_spi.c | 260 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_spi_check_locality() local 266 return chip->locality; in st33zp24_spi_check_locality() 281 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_spi_request_locality() local 283 if (st33zp24_spi_check_locality(dev) == chip->locality) in st33zp24_spi_request_locality() 284 return chip->locality; in st33zp24_spi_request_locality() 293 stop = chip->timeout_a; in st33zp24_spi_request_locality() 296 return chip->locality; in st33zp24_spi_request_locality() 323 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_spi_get_burstcount() local 330 stop = chip->timeout_d; in st33zp24_spi_get_burstcount() 404 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_spi_recv_data() local [all …]
|
/external/mesa3d/src/loader/ |
D | pci_id_driver_map.h | 15 #define CHIPSET(chip, desc, name) chip, argument 21 #define CHIPSET(chip, family, name) chip, argument 27 #define CHIPSET(chip, name, family) chip, argument 33 #define CHIPSET(chip, name, family) chip, argument 39 #define CHIPSET(chip, name, family) chip, argument 45 #define CHIPSET(chip, name, family) chip, argument 51 #define CHIPSET(chip, family) chip, argument 57 #define CHIPSET(chip, name, family) chip, argument 63 #define CHIPSET(chip, name, family) chip, argument
|
/external/mesa3d/src/gallium/auxiliary/hud/ |
D | hud_sensors_temp.c | 70 sensors_chip_name *chip; member 96 sf = sensors_get_subfeature(sti->chip, sti->feature, in get_sensor_values() 99 sti->current = get_value(sti->chip, sf); in get_sensor_values() 102 sf = sensors_get_subfeature(sti->chip, sti->feature, in get_sensor_values() 107 sti->current = get_value(sti->chip, sf) * 1000; in get_sensor_values() 111 sf = sensors_get_subfeature(sti->chip, sti->feature, in get_sensor_values() 114 sti->current = get_value(sti->chip, sf); in get_sensor_values() 117 sf = sensors_get_subfeature(sti->chip, sti->feature, in get_sensor_values() 120 sti->critical = get_value(sti->chip, sf); in get_sensor_values() 123 sf = sensors_get_subfeature(sti->chip, sti->feature, in get_sensor_values() [all …]
|
/external/u-boot/include/linux/mtd/ |
D | rawnand.h | 31 struct nand_chip *chip, 219 #define NAND_HAS_CACHEPROG(chip) ((chip->options & NAND_CACHEPRG)) argument 220 #define NAND_HAS_SUBPAGE_READ(chip) ((chip->options & NAND_SUBPAGE_READ)) argument 221 #define NAND_HAS_SUBPAGE_WRITE(chip) !((chip)->options & NAND_NO_SUBPAGE_WRITE) argument 601 int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip, 603 int (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip, 605 int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip, 607 int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip, 609 int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip, 612 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip, [all …]
|
/external/eigen/unsupported/test/ |
D | cxx11_tensor_chipping.cpp | 23 chip1 = tensor.template chip<0>(1); in test_simple_chip() 40 Tensor<float, 4, DataLayout> chip2 = tensor.template chip<1>(1); in test_simple_chip() 55 Tensor<float, 4, DataLayout> chip3 = tensor.template chip<2>(2); in test_simple_chip() 70 Tensor<float, 4, DataLayout> chip4(tensor.template chip<3>(5)); in test_simple_chip() 85 Tensor<float, 4, DataLayout> chip5(tensor.template chip<4>(7)); in test_simple_chip() 108 chip1 = tensor.chip(1, 0); in test_dynamic_chip() 123 Tensor<float, 4, DataLayout> chip2 = tensor.chip(1, 1); in test_dynamic_chip() 138 Tensor<float, 4, DataLayout> chip3 = tensor.chip(2, 2); in test_dynamic_chip() 153 Tensor<float, 4, DataLayout> chip4(tensor.chip(5, 3)); in test_dynamic_chip() 168 Tensor<float, 4, DataLayout> chip5(tensor.chip(7, 4)); in test_dynamic_chip() [all …]
|
/external/u-boot/drivers/i2c/ |
D | i2c-uclass.c | 52 static int i2c_setup_offset(struct dm_i2c_chip *chip, uint offset, in i2c_setup_offset() argument 57 msg->addr = chip->chip_addr; in i2c_setup_offset() 58 msg->flags = chip->flags & DM_I2C_CHIP_10BIT ? I2C_M_TEN : 0; in i2c_setup_offset() 59 msg->len = chip->offset_len; in i2c_setup_offset() 61 if (!chip->offset_len) in i2c_setup_offset() 63 assert(chip->offset_len <= I2C_MAX_OFFSET_LEN); in i2c_setup_offset() 64 offset_len = chip->offset_len; in i2c_setup_offset() 74 struct dm_i2c_chip *chip = dev_get_parent_platdata(dev); in i2c_read_bytewise() local 83 if (i2c_setup_offset(chip, offset + i, offset_buf, msg)) in i2c_read_bytewise() 86 ptr->addr = chip->chip_addr; in i2c_read_bytewise() [all …]
|
/external/autotest/server/site_tests/firmware_CompareChipFwToShellBall/ |
D | firmware_CompareChipFwToShellBall.py | 73 chip = chip_utils.chip_id_map[chip_id]() 81 chip.set_fw_ver_from_string(fw_rev) 82 return chip 98 chip = self.dut_get_chip(port) 99 if not chip: 101 port2chip.append(chip) 102 chip_types.add(type(chip)) 154 chip = chip_type() 155 fw = chip.fw_name 160 if not self.faft_client.updater.cbfs_extract_chip(chip.fw_name): [all …]
|