/openbmc/u-boot/drivers/spi/ |
H A D | mvebu_a3700_spi.c | 33 u32 din; /* 0x1060c */ member 55 * @din: Buffer address of where to receive. 59 * @din, if necessary. 80 const void *dout, void *din) in spi_legacy_shift_byte() argument 92 /* din_8: pointer of current din */ in spi_legacy_shift_byte() 93 din_8 = din; in spi_legacy_shift_byte() 110 if (din) { in spi_legacy_shift_byte() 118 *din_8 = (u8)readl(®->din); in spi_legacy_shift_byte() 124 if (din) in spi_legacy_shift_byte() 134 const void *dout, void *din, unsigned long flags) in mvebu_spi_xfer() argument [all …]
|
H A D | atcspi200_spi.c | 88 u8 *din; member 144 if ((ns->din)&&(ns->cmd_len)) in __atcspi200_spi_start() 146 else if (ns->din) in __atcspi200_spi_start() 155 if(ns->din) in __atcspi200_spi_start() 182 static int __nspi_espi_rx(struct nds_spi_slave *ns, void *din, unsigned int bytes) in __nspi_espi_rx() argument 184 *(u8 *)din = ns->regs->data; in __nspi_espi_rx() 195 void *din = NULL; in __atcspi200_spi_xfer() local 217 ns->din = (u8 *)data_in; in __atcspi200_spi_xfer() 223 ns->din = 0; in __atcspi200_spi_xfer() 237 din = data_in; in __atcspi200_spi_xfer() [all …]
|
H A D | kirkwood_spi.c | 32 const void *dout, void *din, unsigned long flags) in _spi_xfer() argument 37 debug("spi_xfer: dout %p din %p bitlen %u\n", dout, din, bitlen); in _spi_xfer() 69 tmpdin = readl(®->din); in _spi_xfer() 70 debug("spi_xfer: din %p..%08x read\n", in _spi_xfer() 71 din, tmpdin); in _spi_xfer() 73 if (din) { in _spi_xfer() 74 *((u8 *)din) = (u8)tmpdin; in _spi_xfer() 75 din += 1; in _spi_xfer() 236 const void *dout, void *din, unsigned long flags) in spi_xfer() argument 238 return _spi_xfer(spireg, bitlen, dout, din, flags); in spi_xfer() [all …]
|
H A D | mxc_spi.c | 219 const u8 *dout, u8 *din, unsigned long flags) in spi_xchg_single() argument 227 debug("%s: bitlen %d dout 0x%lx din 0x%lx\n", in spi_xchg_single() 228 __func__, bitlen, (ulong)dout, (ulong)din); in spi_xchg_single() 309 if (din) { in spi_xchg_single() 310 memcpy(din, &data, cnt); in spi_xchg_single() 311 din += cnt; in spi_xchg_single() 322 if (din) { in spi_xchg_single() 323 memcpy(din, &data, cnt); in spi_xchg_single() 324 din += cnt; in spi_xchg_single() 335 void *din, unsigned long flags) in mxc_spi_xfer_internal() argument [all …]
|
H A D | sh_qspi.c | 147 const void *dout, void *din, unsigned long flags) in sh_qspi_xfer_common() argument 155 if (dout == NULL && din == NULL) { in sh_qspi_xfer_common() 181 if (din != NULL) in sh_qspi_xfer_common() 182 rdata = din; in sh_qspi_xfer_common() 212 if (din != NULL) in sh_qspi_xfer_common() 289 const void *dout, void *din, unsigned long flags) in spi_xfer() argument 293 return sh_qspi_xfer_common(ss, bitlen, dout, din, flags); in spi_xfer() 301 const void *dout, void *din, unsigned long flags) in sh_qspi_xfer() argument 306 return sh_qspi_xfer_common(ss, bitlen, dout, din, flags); in sh_qspi_xfer()
|
H A D | meson_spifc.c | 129 * @din: data buffer for RX 137 const u8 *dout, u8 *din, int offset, in meson_spifc_txrx() argument 173 if (!ret && din) in meson_spifc_txrx() 174 meson_spifc_drain_buffer(spifc, din + offset, len); in meson_spifc_txrx() 184 * @din: data buffer for RX 189 const void *dout, void *din, unsigned long flags) in meson_spifc_xfer() argument 198 debug("xfer len %d (%d) dout %p din %p\n", bitlen, blen, dout, din); in meson_spifc_xfer() 204 ret = meson_spifc_txrx(spifc, dout, din, done, len, in meson_spifc_xfer()
|
H A D | fsl_espi.c | 207 static int fsl_espi_rx(struct fsl_spi_slave *fsl, void *din, unsigned int bytes) in fsl_espi_rx() argument 230 if (din) in fsl_espi_rx() 231 memcpy(din, buf, bytes); in fsl_espi_rx() 246 void *din = NULL; in spi_xfer() local 301 din = buffer + rx_offset; in spi_xfer() 333 if (fsl_espi_rx(fsl, din, rx_bytes) in spi_xfer() 336 if (din) in spi_xfer() 337 din = (unsigned char *)din in spi_xfer()
|
H A D | soft_spi_legacy.c | 96 * destination of the input bits is the "din" parameter. Note that "dout" 97 * and "din" can point to the same memory location, in which case the 102 const void *dout, void *din, unsigned long flags) in spi_xfer() argument 111 u8 *rxd = din; in spi_xfer() 116 PRINTD("spi_xfer: slave %u:%u dout %08X din %08X bitlen %u\n", in spi_xfer()
|
H A D | mpc8xxx_spi.c | 75 void *din, unsigned long flags) in spi_xfer() argument 83 debug("spi_xfer: slave %u:%u dout %08X din %08X bitlen %u\n", in spi_xfer() 84 slave->bus, slave->cs, *(uint *) dout, *(uint *) din, bitlen); in spi_xfer() 140 *(u32 *) din = (tmpdin << (32 - charSize)); in spi_xfer() 143 din += 4; in spi_xfer()
|
H A D | cf_spi.c | 103 void *din, ulong flags) in cfspi_xfer() argument 114 spi_rd16 = (u16 *) din; in cfspi_xfer() 117 spi_rd = (u8 *) din; in cfspi_xfer() 136 if (din != NULL) { in cfspi_xfer() 160 if (din != NULL) { in cfspi_xfer() 331 void *din, unsigned long flags) in spi_xfer() argument 333 return cfspi_xfer(slave, bitlen, dout, din, flags); in spi_xfer()
|
H A D | mtk_qspi.c | 221 const void *dout, void *din, unsigned long flags) in mtk_qspi_transfer() argument 259 if (din) { in mtk_qspi_transfer() 263 * and, din is the buf to receive data. in mtk_qspi_transfer() 267 return mtk_qspi_read(priv, addr, (u8 *)din, bytes); in mtk_qspi_transfer() 271 priv->rx = (u8 *)din; in mtk_qspi_transfer() 280 const void *dout, void *din, unsigned long flags) in mtk_qspi_xfer() argument 285 return mtk_qspi_transfer(priv, bitlen, dout, din, flags); in mtk_qspi_xfer()
|
H A D | sandbox_spi.c | 53 const void *dout, void *din, unsigned long flags) in sandbox_spi_xfer() argument 92 ret = ops->xfer(emul, bitlen, dout, din, flags); in sandbox_spi_xfer() 96 if (din) { in sandbox_spi_xfer() 98 log_content(" %u:%02x", i, ((u8 *)din)[i]); in sandbox_spi_xfer()
|
H A D | tegra210_qspi.c | 211 u8 *din = data_in; in tegra210_qspi_xfer() local 214 debug("%s: slave %u:%u dout %p din %p bitlen %u\n", in tegra210_qspi_xfer() 215 __func__, bus->seq, spi_chip_select(dev), dout, din, bitlen); in tegra210_qspi_xfer() 252 * i.e., both dout and din are not NULL. in tegra210_qspi_xfer() 280 if (din != NULL) in tegra210_qspi_xfer() 339 if (din != NULL) { in tegra210_qspi_xfer() 340 memcpy(din, &tmpdin, bytes); in tegra210_qspi_xfer() 341 din += bytes; in tegra210_qspi_xfer()
|
H A D | mt7621_spi.c | 132 const void *dout, void *din, unsigned long flags) in mt7621_spi_xfer() argument 138 u8 *rx_buf = din; in mt7621_spi_xfer() 146 debug("%s: dout=%p, din=%p, len=%x, flags=%lx\n", __func__, dout, din, in mt7621_spi_xfer() 153 if (dout && din) { in mt7621_spi_xfer() 185 if (din) in mt7621_spi_xfer()
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | devx.c | 1107 static void devx_obj_build_destroy_cmd(void *in, void *out, void *din, in devx_obj_build_destroy_cmd() argument 1116 MLX5_SET(general_obj_in_cmd_hdr, din, uid, uid); in devx_obj_build_destroy_cmd() 1120 MLX5_SET(general_obj_in_cmd_hdr, din, opcode, MLX5_CMD_OP_DESTROY_GENERAL_OBJECT); in devx_obj_build_destroy_cmd() 1121 MLX5_SET(general_obj_in_cmd_hdr, din, obj_id, *obj_id); in devx_obj_build_destroy_cmd() 1122 MLX5_SET(general_obj_in_cmd_hdr, din, obj_type, in devx_obj_build_destroy_cmd() 1127 MLX5_SET(destroy_umem_in, din, opcode, in devx_obj_build_destroy_cmd() 1129 MLX5_SET(destroy_umem_in, din, umem_id, *obj_id); in devx_obj_build_destroy_cmd() 1132 MLX5_SET(destroy_mkey_in, din, opcode, in devx_obj_build_destroy_cmd() 1134 MLX5_SET(destroy_mkey_in, din, mkey_index, *obj_id); in devx_obj_build_destroy_cmd() 1137 MLX5_SET(destroy_cq_in, din, opcode, MLX5_CMD_OP_DESTROY_CQ); in devx_obj_build_destroy_cmd() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/misc/ |
H A D | xlnx,sd-fec.txt | 16 - "s_axis_din_aclk", DIN AXI4-Stream Slave interface clock (optional) 27 - xlnx,sdfec-din-words : A value 0 indicates that the DIN_WORDS interface is 31 - xlnx,sdfec-din-width : Configures the DIN AXI stream where a value of 1 54 xlnx,sdfec-din-words = <0>; 55 xlnx,sdfec-din-width = <2>;
|
/openbmc/linux/drivers/siox/ |
H A D | siox-bus-gpio.c | 18 struct gpio_desc *din; member 53 if (gpiod_get_value_cansleep(ddata->din)) in siox_gpio_pushpull() 103 ddata->din = devm_gpiod_get(dev, "din", GPIOD_IN); in siox_gpio_probe() 104 if (IS_ERR(ddata->din)) { in siox_gpio_probe() 105 ret = dev_err_probe(dev, PTR_ERR(ddata->din), in siox_gpio_probe() 106 "Failed to get din GPIO\n"); in siox_gpio_probe()
|
/openbmc/u-boot/board/work-microwave/work_92105/ |
H A D | work_92105_display.c | 95 /* do SPI read/write (passing din==dout is OK) */ in max6957aax_write() 112 uint8_t dout[2], din[2]; in max6957aax_read() local 118 /* do SPI read/write (passing din==dout is OK) */ in max6957aax_read() 122 /* read register -- din = noop on xmit, din[1] = reg on recv */ in max6957aax_read() 123 din[0] = 0; in max6957aax_read() 124 din[1] = 0; in max6957aax_read() 126 /* do SPI read/write (passing din==dout is OK) */ in max6957aax_read() 127 spi_xfer(slave, 16, din, din, SPI_XFER_BEGIN | SPI_XFER_END); in max6957aax_read() 130 return din[1]; in max6957aax_read()
|
/openbmc/linux/drivers/platform/chrome/ |
H A D | cros_ec_spi.c | 144 * Assumes buf is a pointer into the ec_dev->din buffer 157 if (buf - ec_dev->din + n > ec_dev->din_size) in receive_n_bytes() 181 * The received data is placed into ec_dev->din. 204 ec_dev->din, in cros_ec_spi_receive_packet() 209 ptr = ec_dev->din; in cros_ec_spi_receive_packet() 213 ptr - ec_dev->din); in cros_ec_spi_receive_packet() 237 memmove(ec_dev->din, ptr, todo); in cros_ec_spi_receive_packet() 238 ptr = ec_dev->din + todo; in cros_ec_spi_receive_packet() 252 response = (struct ec_host_response *)ec_dev->din; in cros_ec_spi_receive_packet() 268 todo, need_len, ptr - ec_dev->din); in cros_ec_spi_receive_packet() [all …]
|
/openbmc/u-boot/include/ |
H A D | spi.h | 233 * destination of the input bits is the "din" parameter. Note that "dout" 234 * and "din" can point to the same memory location, in which case the 243 * @din: Pointer to a string of bits that will be filled in. 249 void *din, unsigned long flags); 304 unsigned char din[2]; in spi_w8r8() local 310 ret = spi_xfer(slave, 16, dout, din, SPI_XFER_BEGIN | SPI_XFER_END); in spi_w8r8() 311 return ret < 0 ? ret : din[1]; in spi_w8r8() 382 * destination of the input bits is the "din" parameter. Note that 383 * "dout" and "din" can point to the same memory location, in which 392 * @din: Pointer to a string of bits that will be filled in. [all …]
|
/openbmc/u-boot/test/dm/ |
H A D | spi.c | 103 unsigned char din[5]; in dm_test_spi_xfer() local 108 ut_assertok(spi_xfer(slave, 40, dout, din, in dm_test_spi_xfer() 110 ut_asserteq(0xff, din[0]); in dm_test_spi_xfer() 111 ut_asserteq(0x20, din[1]); in dm_test_spi_xfer() 112 ut_asserteq(0x20, din[2]); in dm_test_spi_xfer() 113 ut_asserteq(0x15, din[3]); in dm_test_spi_xfer()
|
/openbmc/u-boot/drivers/misc/ |
H A D | cros_ec_i2c.c | 58 (struct ec_host_response_i2c *)dev->din; in cros_ec_i2c_packet() 77 i2c_msg[1].buf = dev->din; in cros_ec_i2c_packet() 104 memmove(dev->din, &ec_response_i2c->ec_response, in_bytes); in cros_ec_i2c_packet() 133 if (in_bytes > sizeof(dev->din)) { in cros_ec_i2c_command() 157 in_ptr = dev->din + sizeof(int64_t); in cros_ec_i2c_command() 198 if (len + 3 > sizeof(dev->din)) { in cros_ec_i2c_command() 213 *dinp = dev->din + sizeof(int64_t); in cros_ec_i2c_command()
|
/openbmc/linux/include/uapi/misc/ |
H A D | xilinx_sdfec.h | 94 * enum xsdfec_axis_width - AXIS_WIDTH.DIN Setting for 128-bit width. 95 * @XSDFEC_1x128b: DIN data input stream consists of a 128-bit lane 96 * @XSDFEC_2x128b: DIN data input stream consists of two 128-bit lanes 97 * @XSDFEC_4x128b: DIN data input stream consists of four 128-bit lanes 99 * This enum is used to indicate the AXIS_WIDTH.DIN setting for 128-bit width. 100 * The number of lanes of the DIN data input stream depends upon the 101 * AXIS_WIDTH.DIN parameter. 118 * expect one DIN_WORDS value per input transaction on the DIN interface. The 216 * @din_width: Width of the DIN AXI4-Stream
|
/openbmc/linux/drivers/pinctrl/starfive/ |
H A D | pinctrl-starfive-jh7110.h | 43 /* gpio dout/doen/din/gpioinput register */ 59 unsigned int din, u32 dout, 69 unsigned int din, u32 dout, u32 doen);
|
/openbmc/qemu/tests/qtest/ |
H A D | npcm7xx_gpio-test.c | 84 /* When output is enabled, DOUT should be reflected on DIN. */ in test_dout_to_din() 86 /* PU and PD shouldn't have any impact on DIN. */ in test_dout_to_din() 100 * reflected on DIN. If PD is not the inverse of PU, the state of DIN is in test_pullup_pulldown() 104 /* DOUT shouldn't have any impact on DIN. */ in test_pullup_pulldown() 119 * reflected on DIN. in test_output_enable() 143 * not set. If OTYP is set, DIN is determined by PU/PD. Lower half of in test_open_drain() 161 * In push-pull mode, DIN should reflect DOUT because the signal is in test_polarity() 172 * When turning off the drivers, DIN should reflect the inverse of the in test_polarity() 182 * In open-drain mode, DOUT=1 will appear to drive the pin high (since DIN in test_polarity()
|