Home
last modified time | relevance | path

Searched refs:din (Results 1 – 25 of 64) sorted by relevance

123

/u-boot/drivers/spi/
A Datcspi200_spi.c90 u8 *din; member
146 if ((ns->din)&&(ns->cmd_len)) in __atcspi200_spi_start()
148 else if (ns->din) in __atcspi200_spi_start()
157 if(ns->din) in __atcspi200_spi_start()
186 *(u8 *)din = ns->regs->data; in __nspi_espi_rx()
197 void *din = NULL; in __atcspi200_spi_xfer() local
219 ns->din = (u8 *)data_in; in __atcspi200_spi_xfer()
225 ns->din = 0; in __atcspi200_spi_xfer()
239 din = data_in; in __atcspi200_spi_xfer()
269 din = (unsigned char *)din + rx_bytes; in __atcspi200_spi_xfer()
[all …]
A Dmvebu_a3700_spi.c39 u32 din; /* 0x1060c */ member
93 const void *dout, void *din) in spi_legacy_shift_byte() argument
106 din_8 = din; in spi_legacy_shift_byte()
123 if (din) { in spi_legacy_shift_byte()
131 *din_8 = (u8)readl(&reg->din); in spi_legacy_shift_byte()
137 if (din) 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 Dkirkwood_spi.c46 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()
83 tmpdin = readl(&reg->din); in _spi_xfer()
85 din, tmpdin); in _spi_xfer()
87 if (din) { in _spi_xfer()
88 *((u8 *)din) = (u8)tmpdin; in _spi_xfer()
89 din += 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 Dsh_qspi.c148 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()
182 if (din != NULL) in sh_qspi_xfer_common()
183 rdata = din; in sh_qspi_xfer_common()
213 if (din != 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 Dmxc_spi.c330 __func__, bitlen, (ulong)dout, (ulong)din); in spi_xchg_single()
411 if (din) { in spi_xchg_single()
412 memcpy(din, &data, cnt); in spi_xchg_single()
413 din += cnt; in spi_xchg_single()
424 if (din) { in spi_xchg_single()
425 memcpy(din, &data, cnt); in spi_xchg_single()
426 din += cnt; in spi_xchg_single()
437 void *din, unsigned long flags) in mxc_spi_xfer_internal() argument
444 u8 *p_inbuf = (u8 *)din; in mxc_spi_xfer_internal()
466 if (din) in mxc_spi_xfer_internal()
[all …]
A Dsandbox_spi.c70 const void *dout, void *din, unsigned long flags) in sandbox_spi_xfer() argument
109 ret = ops->xfer(emul, bitlen, dout, din, flags); in sandbox_spi_xfer()
113 if (din) { in sandbox_spi_xfer()
115 log_content(" %u:%02x", i, ((u8 *)din)[i]); in sandbox_spi_xfer()
A Dfsl_espi.c133 static int fsl_espi_rx(struct fsl_spi_slave *fsl, void *din, in fsl_espi_rx() argument
157 if (din) in fsl_espi_rx()
158 memcpy(din, buf, bytes); in fsl_espi_rx()
180 void *din = NULL; in espi_xfer() local
236 din = buffer + rx_offset; in espi_xfer()
268 if (fsl_espi_rx(fsl, din, rx_bytes) in espi_xfer()
271 if (din) in espi_xfer()
272 din = (unsigned char *)din in espi_xfer()
427 void *din, unsigned long flags) in spi_xfer() argument
478 const void *dout, void *din, unsigned long flags) in fsl_espi_xfer() argument
[all …]
A Dmeson_spifc.c139 const u8 *dout, u8 *din, int offset, in meson_spifc_txrx() argument
175 if (!ret && din) in meson_spifc_txrx()
176 meson_spifc_drain_buffer(spifc, din + 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 Dmt7620_spi.c191 const void *dout, void *din, unsigned long flags) in mt7620_spi_xfer() argument
202 if (dout && din) { in mt7620_spi_xfer()
216 if (din) in mt7620_spi_xfer()
217 ret = mt7620_spi_read(ms, cs, din, total_size); in mt7620_spi_xfer()
223 din ? "read" : "write"); in mt7620_spi_xfer()
A Dmt7621_spi.c221 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()
249 if (din) in mt7621_spi_xfer()
250 ret = mt7621_spi_read(rs, din, total_size); in mt7621_spi_xfer()
A Dbcm63xx_spi.c197 const void *dout, void *din, unsigned long flags) in bcm63xx_spi_xfer() argument
211 if (din) { in bcm63xx_spi_xfer()
245 if (dout && !din) { in bcm63xx_spi_xfer()
251 if (dout && din && (flags & SPI_XFER_ONCE)) { in bcm63xx_spi_xfer()
296 if (din) in bcm63xx_spi_xfer()
297 memcpy_fromio(din, priv->base + regs[SPI_RX], in bcm63xx_spi_xfer()
A Dxilinx_spi.c209 const void *dout, void *din) in xilinx_spi_startup_block() argument
216 unsigned char *rxp = din; in xilinx_spi_startup_block()
231 txp = din; in xilinx_spi_startup_block()
242 const void *dout, void *din, unsigned long flags) in xilinx_spi_xfer() argument
251 unsigned char *rxp = din; in xilinx_spi_xfer()
279 xilinx_spi_startup_block(dev, bytes, dout, din); in xilinx_spi_xfer()
A Ddavinci_spi.c271 unsigned int bitlen, const void *dout, void *din, in __davinci_spi_xfer() argument
295 return davinci_spi_read(ds, len, din, flags); in __davinci_spi_xfer()
296 if (!din) 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 Dtegra210_qspi.c223 u8 *din = data_in; in tegra210_qspi_xfer() local
227 __func__, dev_seq(bus), spi_chip_select(dev), dout, din, bitlen); in tegra210_qspi_xfer()
292 if (din != NULL) in tegra210_qspi_xfer()
351 if (din != NULL) { in tegra210_qspi_xfer()
352 memcpy(din, &tmpdin, bytes); in tegra210_qspi_xfer()
353 din += bytes; in tegra210_qspi_xfer()
A Dfsl_dspi.c252 const void *dout, void *din, unsigned long flags) in dspi_xfer() argument
262 spi_rd16 = (u16 *)din; in dspi_xfer()
265 spi_rd = (u8 *)din; in dspi_xfer()
277 if ((dout != NULL) && (din != NULL)) { in dspi_xfer()
296 else if (din != NULL) { in dspi_xfer()
312 if ((dout != NULL) && (din != NULL)) { in dspi_xfer()
331 else if (din != 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 Dmscc_bb_spi.c117 const void *dout, void *din, unsigned long flags) in mscc_bb_spi_xfer() argument
124 u8 *rxd = din; in mscc_bb_spi_xfer()
128 din, bitlen); in mscc_bb_spi_xfer()
A Dtegra114_spi.c229 u8 *din = data_in; in tegra114_spi_xfer() local
234 __func__, dev_seq(bus), spi_chip_select(dev), dout, din, bitlen); in tegra114_spi_xfer()
318 if (din != NULL) { in tegra114_spi_xfer()
320 din[i] = tmpdin & 0xff; in tegra114_spi_xfer()
323 din += bytes; in tegra114_spi_xfer()
/u-boot/drivers/misc/
A Dcros_ec_i2c.c59 (struct ec_host_response_i2c *)dev->din; in cros_ec_i2c_packet()
78 i2c_msg[1].buf = dev->din; in cros_ec_i2c_packet()
105 memmove(dev->din, &ec_response_i2c->ec_response, in_bytes); in cros_ec_i2c_packet()
134 if (in_bytes > sizeof(dev->din)) { in cros_ec_i2c_command()
158 in_ptr = dev->din + sizeof(int64_t); in cros_ec_i2c_command()
199 if (len + 3 > sizeof(dev->din)) { in cros_ec_i2c_command()
214 *dinp = dev->din + sizeof(int64_t); in cros_ec_i2c_command()
A Dcros_ec_spi.c52 rv = spi_xfer(slave, in_bytes * 8, NULL, dev->din, 0); in cros_ec_spi_packet()
102 if (in_bytes > sizeof(dev->din)) { in cros_ec_spi_command()
116 memset(dev->din, '\0', in_bytes); in cros_ec_spi_command()
136 p = dev->din + sizeof(int64_t) - 2; in cros_ec_spi_command()
A Dcros_ec_lpc.c73 for (i = 0, d = dev->din; i < in_bytes; i++, d++) in cros_ec_lpc_packet()
163 for (i = 0, d = (uint8_t *)dev->din; i < args.data_size; i++, d++) { in cros_ec_lpc_command()
171 for (i = 0, d = (uint8_t *)dev->din; i < args.data_size; i++, d++) in cros_ec_lpc_command()
178 *dinp = dev->din; in cros_ec_lpc_command()
/u-boot/include/
A Dspi.h290 void *din, unsigned long flags);
370 unsigned char din[2]; in spi_w8r8() local
376 ret = spi_xfer(slave, 16, dout, din, SPI_XFER_BEGIN | SPI_XFER_END); in spi_w8r8()
377 return ret < 0 ? ret : din[1]; in spi_w8r8()
462 void *din, unsigned long flags);
550 const void *dout, void *din, unsigned long flags);
708 const void *dout, void *din, unsigned long flags);
/u-boot/board/work-microwave/work_92105/
A Dwork_92105_display.c115 uint8_t dout[2], din[2]; in max6957aax_read() local
126 din[0] = 0; in max6957aax_read()
127 din[1] = 0; in max6957aax_read()
130 spi_xfer(slave, 16, din, din, SPI_XFER_BEGIN | SPI_XFER_END); in max6957aax_read()
133 return din[1]; in max6957aax_read()
/u-boot/test/dm/
A Dspi.c183 unsigned char din[5]; in dm_test_spi_xfer() local
188 ut_assertok(spi_xfer(slave, 40, dout, din, in dm_test_spi_xfer()
190 ut_asserteq(0xff, din[0]); in dm_test_spi_xfer()
191 ut_asserteq(0x20, din[1]); in dm_test_spi_xfer()
192 ut_asserteq(0x20, din[2]); in dm_test_spi_xfer()
193 ut_asserteq(0x15, din[3]); in dm_test_spi_xfer()
/u-boot/cmd/
A Dspi.c34 static uchar din[MAX_SPI_BYTES]; variable
64 ret = spi_xfer(slave, bitlen, dout, din, in do_spi_xfer()
77 printf("%02X", din[j]); in do_spi_xfer()
/u-boot/board/kontron/sl28/
A Dcmds.c45 u8 din = (data_in & (1 << i)) ? UFM_CTRL_DIN : 0; in ufm_shift_data() local
48 | din); in ufm_shift_data()
59 UFM_CTRL_DSHIFT | UFM_CTRL_DCLK | din); in ufm_shift_data()

Completed in 42 milliseconds

123