/u-boot/board/work-microwave/work_92105/ |
A D | work_92105_display.c | 93 uint8_t dout[2]; in max6957aax_write() local 95 dout[0] = reg; in max6957aax_write() 96 dout[1] = value; in max6957aax_write() 99 spi_xfer(slave, 16, dout, dout, SPI_XFER_BEGIN | SPI_XFER_END); in max6957aax_write() 115 uint8_t dout[2], din[2]; in max6957aax_read() local 118 dout[0] = reg | 0x80; /* set bit 7 to indicate read */ in max6957aax_read() 119 dout[1] = 0; in max6957aax_read() 122 spi_xfer(slave, 16, dout, dout, SPI_XFER_BEGIN | SPI_XFER_END); in max6957aax_read()
|
/u-boot/drivers/misc/ |
A D | cros_ec_i2c.c | 57 (struct ec_host_request_i2c *)dev->dout; in cros_ec_i2c_packet() 70 i2c_msg[0].buf = dev->dout; in cros_ec_i2c_packet() 73 memmove(&ec_request_i2c->ec_request, dev->dout, out_bytes); in cros_ec_i2c_packet() 111 int cmd_version, const uint8_t *dout, in cros_ec_i2c_command() argument 130 if (out_bytes > sizeof(dev->dout)) { in cros_ec_i2c_command() 143 i2c_msg[0].buf = dev->dout; in cros_ec_i2c_command() 150 ptr = dev->dout; in cros_ec_i2c_command() 172 memcpy(ptr, dout, dout_len); in cros_ec_i2c_command() 176 cros_ec_calc_checksum(dev->dout, dout_len + 3); in cros_ec_i2c_command() 184 cros_ec_dump_data("out", -1, dev->dout, out_bytes); in cros_ec_i2c_command()
|
A D | cros_ec_spi.c | 36 rv = spi_xfer(slave, out_bytes * 8, dev->dout, NULL, SPI_XFER_BEGIN); in cros_ec_spi_packet() 81 const uint8_t *dout, int dout_len, in cros_ec_spi_command() argument 123 out = dev->dout; in cros_ec_spi_command() 127 memcpy(out + 3, dout, dout_len); in cros_ec_spi_command() 129 + cros_ec_calc_checksum(dout, dout_len); in cros_ec_spi_command()
|
A D | cros_ec_lpc.c | 63 for (i = 0, d = (uint8_t *)dev->dout; i < out_bytes; i++, d++) in cros_ec_lpc_packet() 80 const uint8_t *dout, int dout_len, in cros_ec_lpc_command() argument 106 for (i = 0, d = (uint8_t *)dout; i < dout_len; i++, d++) in cros_ec_lpc_command() 122 for (i = 0, d = (uint8_t *)dout; i < dout_len; i++, d++) { in cros_ec_lpc_command()
|
/u-boot/drivers/spi/ |
A D | mvebu_a3700_spi.c | 38 u32 dout; /* 0x10608 */ member 93 const void *dout, void *din) in spi_legacy_shift_byte() argument 104 dout_8 = dout; in spi_legacy_shift_byte() 115 if (dout) in spi_legacy_shift_byte() 121 writel(pending_dout, ®->dout); in spi_legacy_shift_byte() 135 if (dout) in spi_legacy_shift_byte() 147 const void *dout, void *din, unsigned long flags) in mvebu_spi_xfer() argument 157 if (dout && din) in mvebu_spi_xfer() 167 if (dout || din) { in mvebu_spi_xfer() 168 ret = spi_legacy_shift_byte(reg, bytelen, dout, din); in mvebu_spi_xfer()
|
A D | kirkwood_spi.c | 46 const void *dout, void *din, unsigned long flags) in _spi_xfer() argument 51 debug("spi_xfer: dout %p din %p bitlen %u\n", dout, din, bitlen); in _spi_xfer() 67 if (dout) in _spi_xfer() 68 tmpdout = *(u32 *)dout & 0xff; in _spi_xfer() 71 writel(tmpdout, ®->dout); /* Write the data out */ in _spi_xfer() 91 if (dout) in _spi_xfer() 92 dout += 1; in _spi_xfer() 185 const void *dout, void *din, unsigned long flags) in mvebu_spi_xfer() argument 190 return _spi_xfer(plat->spireg, bitlen, dout, din, flags); in mvebu_spi_xfer()
|
A D | atcspi200_spi.c | 91 u8 *dout; member 153 if(ns->dout) in __atcspi200_spi_start() 181 ns->regs->data = *(u8 *)dout; in __nspi_espi_tx() 196 const void *dout = NULL; in __atcspi200_spi_xfer() local 220 ns->dout = (u8 *)data_out; in __atcspi200_spi_xfer() 226 ns->dout = 0; in __atcspi200_spi_xfer() 240 dout = data_out; in __atcspi200_spi_xfer() 253 __nspi_espi_tx(ns, dout); in __atcspi200_spi_xfer() 255 dout += CHUNK_SIZE; in __atcspi200_spi_xfer() 334 const void *dout, void *din, in atcspi200_spi_xfer() argument [all …]
|
A D | sh_qspi.c | 148 const void *dout, void *din, unsigned long flags) in sh_qspi_xfer_common() argument 156 if (dout == NULL && din == NULL) { in sh_qspi_xfer_common() 179 if (dout != NULL) in sh_qspi_xfer_common() 180 tdata = (u8 *)dout; in sh_qspi_xfer_common() 202 if (dout != NULL) in sh_qspi_xfer_common() 290 const void *dout, void *din, unsigned long flags) in spi_xfer() argument 294 return sh_qspi_xfer_common(ss, bitlen, dout, din, flags); in spi_xfer() 302 const void *dout, void *din, unsigned long flags) in sh_qspi_xfer() argument 307 return sh_qspi_xfer_common(ss, bitlen, dout, din, flags); in sh_qspi_xfer()
|
A D | mxc_spi.c | 330 __func__, bitlen, (ulong)dout, (ulong)din); in spi_xchg_single() 352 if (dout) { in spi_xchg_single() 354 data = (data << 8) | (*dout++ & 0xFF); in spi_xchg_single() 367 if (dout) { in spi_xchg_single() 369 if ((unsigned long)dout & 0x03) { in spi_xchg_single() 372 data = (data << 8) | (*dout++ & 0xFF); in spi_xchg_single() 374 data = *(u32 *)dout; in spi_xchg_single() 376 dout += 4; in spi_xchg_single() 436 unsigned int bitlen, const void *dout, in mxc_spi_xfer_internal() argument 443 u8 *p_outbuf = (u8 *)dout; in mxc_spi_xfer_internal() [all …]
|
A D | meson_spifc.c | 139 const u8 *dout, u8 *din, int offset, in meson_spifc_txrx() argument 146 if (dout) in meson_spifc_txrx() 147 meson_spifc_fill_buffer(spifc, dout + offset, len); in meson_spifc_txrx() 191 const void *dout, void *din, unsigned long flags) in meson_spifc_xfer() argument 200 debug("xfer len %d (%d) dout %p din %p\n", bitlen, blen, dout, din); in meson_spifc_xfer() 206 ret = meson_spifc_txrx(spifc, dout, din, done, len, in meson_spifc_xfer()
|
A D | fsl_espi.c | 103 static void fsl_espi_tx(struct fsl_spi_slave *fsl, const void *dout) in fsl_espi_tx() argument 109 if (dout) in fsl_espi_tx() 110 tmpdout = *(u32 *)dout; in fsl_espi_tx() 179 const void *dout = NULL; in espi_xfer() local 237 dout = buffer; in espi_xfer() 250 fsl_espi_tx(fsl, dout); in espi_xfer() 254 dout += 4; in espi_xfer() 426 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer() argument 431 return espi_xfer(fsl, slave->cs, bitlen, dout, din, flags); in spi_xfer() 478 const void *dout, void *din, unsigned long flags) in fsl_espi_xfer() argument [all …]
|
A D | mt7621_spi.c | 221 const void *dout, void *din, unsigned long flags) in mt7621_spi_xfer() argument 228 debug("%s: dout=%p, din=%p, len=%x, flags=%lx\n", __func__, dout, din, in mt7621_spi_xfer() 235 if (dout && din) { in mt7621_spi_xfer() 251 else if (dout) in mt7621_spi_xfer() 252 ret = mt7621_spi_write(rs, dout, total_size); in mt7621_spi_xfer()
|
A D | tegra20_sflash.c | 215 const u8 *dout = data_out; in tegra20_sflash_xfer() local 221 __func__, dev_seq(bus), spi_chip_select(dev), dout, din, bitlen); in tegra20_sflash_xfer() 249 if (dout != NULL) { in tegra20_sflash_xfer() 251 tmpdout = (tmpdout << 8) | dout[i]; in tegra20_sflash_xfer() 255 if (dout) in tegra20_sflash_xfer() 256 dout += bytes; in tegra20_sflash_xfer()
|
A D | xilinx_spi.c | 209 const void *dout, void *din) in xilinx_spi_startup_block() argument 215 const unsigned char *txp = dout; in xilinx_spi_startup_block() 236 txp = dout; in xilinx_spi_startup_block() 242 const void *dout, void *din, unsigned long flags) in xilinx_spi_xfer() argument 250 const unsigned char *txp = dout; in xilinx_spi_xfer() 279 xilinx_spi_startup_block(dev, bytes, dout, din); in xilinx_spi_xfer()
|
A D | davinci_spi.c | 271 unsigned int bitlen, const void *dout, void *din, in __davinci_spi_xfer() argument 294 if (!dout) in __davinci_spi_xfer() 297 return davinci_spi_write(ds, len, dout, flags); in __davinci_spi_xfer() 299 return davinci_spi_read_write(ds, len, din, dout, flags); in __davinci_spi_xfer() 359 const void *dout, void *din, in davinci_spi_xfer() argument 373 return __davinci_spi_xfer(ds, bitlen, dout, din, flags); in davinci_spi_xfer()
|
A D | mt7620_spi.c | 191 const void *dout, void *din, unsigned long flags) in mt7620_spi_xfer() argument 202 if (dout && din) { in mt7620_spi_xfer() 218 else if (dout) in mt7620_spi_xfer() 219 ret = mt7620_spi_write(ms, cs, dout, total_size); in mt7620_spi_xfer()
|
A D | fsl_dspi.c | 252 const void *dout, void *din, unsigned long flags) in dspi_xfer() argument 261 spi_wr16 = (u16 *)dout; in dspi_xfer() 264 spi_wr = (u8 *)dout; in dspi_xfer() 277 if ((dout != NULL) && (din != NULL)) { in dspi_xfer() 288 else if (dout != NULL) { in dspi_xfer() 312 if ((dout != NULL) && (din != NULL)) { in dspi_xfer() 323 else if (dout != NULL) { in dspi_xfer() 611 const void *dout, void *din, unsigned long flags) in fsl_dspi_xfer() argument 620 return dspi_xfer(priv, slave_plat->cs, bitlen, dout, din, flags); in fsl_dspi_xfer()
|
A D | mscc_bb_spi.c | 117 const void *dout, void *din, unsigned long flags) in mscc_bb_spi_xfer() argument 123 const u8 *txd = dout; in mscc_bb_spi_xfer() 127 dev->parent->name, dev->name, plat->cs, plat->mode, dout, in mscc_bb_spi_xfer()
|
A D | bcm63xx_spi.c | 197 const void *dout, void *din, unsigned long flags) in bcm63xx_spi_xfer() argument 225 if (dout) { in bcm63xx_spi_xfer() 234 dout, data_bytes); in bcm63xx_spi_xfer() 245 if (dout && !din) { in bcm63xx_spi_xfer() 251 if (dout && din && (flags & SPI_XFER_ONCE)) { in bcm63xx_spi_xfer()
|
A D | tegra114_spi.c | 228 const u8 *dout = data_out; in tegra114_spi_xfer() local 234 __func__, dev_seq(bus), spi_chip_select(dev), dout, din, bitlen); in tegra114_spi_xfer() 263 if (dout != NULL) { in tegra114_spi_xfer() 265 tmpdout = (tmpdout << 8) | dout[i]; in tegra114_spi_xfer() 266 dout += bytes; in tegra114_spi_xfer()
|
A D | tegra20_slink.c | 209 const u8 *dout = data_out; in tegra30_spi_xfer() local 215 __func__, dev_seq(bus), spi_chip_select(dev), dout, din, bitlen); in tegra30_spi_xfer() 249 if (dout != NULL) { in tegra30_spi_xfer() 251 tmpdout = (tmpdout << 8) | dout[i]; in tegra30_spi_xfer() 252 dout += bytes; in tegra30_spi_xfer()
|
/u-boot/include/ |
A D | spi.h | 289 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, 369 unsigned char dout[2]; in spi_w8r8() local 373 dout[0] = byte; in spi_w8r8() 374 dout[1] = 0; in spi_w8r8() 376 ret = spi_xfer(slave, 16, dout, din, SPI_XFER_BEGIN | SPI_XFER_END); in spi_w8r8() 461 int (*xfer)(struct udevice *dev, unsigned int bitlen, const void *dout, 550 const void *dout, void *din, unsigned long flags); 708 const void *dout, void *din, unsigned long flags);
|
/u-boot/arch/arm/mach-mvebu/ |
A D | gpio.c | 25 writel(gpp0_oe_val, &gpio0reg->dout); in mvebu_config_gpio() 26 writel(gpp1_oe_val, &gpio1reg->dout); in mvebu_config_gpio()
|
/u-boot/cmd/ |
A D | spi.c | 33 static uchar dout[MAX_SPI_BYTES]; variable 64 ret = spi_xfer(slave, bitlen, dout, din, in do_spi_xfer() 144 dout[j / 2] = (tmp << 4); in do_spi() 146 dout[j / 2] |= tmp; in do_spi()
|
/u-boot/board/CZ.NIC/turris_mox/ |
A D | turris_mox.c | 158 u8 din[MAX_MOX_MODULES], dout[MAX_MOX_MODULES]; in mox_get_topology() local 172 memset(dout, 0, MAX_MOX_MODULES); in mox_get_topology() 174 ret = mox_do_spi(din, dout, MAX_MOX_MODULES); in mox_get_topology() 307 u8 dout[MAX_MOX_MODULES]; in configure_peridots() local 309 memset(dout, 0, MAX_MOX_MODULES); in configure_peridots() 313 dout[module_count - peridot_pos[i]] = (~i) & 3; in configure_peridots() 320 dout[module_count - peridot_pos[i - 1]] |= 1 << 3; in configure_peridots() 325 ret = mox_do_spi(NULL, dout, module_count + 1); in configure_peridots()
|