| /OK3568_Linux_fs/u-boot/drivers/spi/ |
| H A D | atcspi200_spi.c | 89 u8 *din; member 145 if ((ns->din)&&(ns->cmd_len)) in __atcspi200_spi_start() 147 else if (ns->din) in __atcspi200_spi_start() 156 if(ns->din) in __atcspi200_spi_start() 183 static int __nspi_espi_rx(struct nds_spi_slave *ns, void *din, unsigned int bytes) in __nspi_espi_rx() argument 185 *(u8 *)din = ns->regs->data; in __nspi_espi_rx() 196 void *din = NULL; in __atcspi200_spi_xfer() local 218 ns->din = (u8 *)data_in; in __atcspi200_spi_xfer() 224 ns->din = 0; in __atcspi200_spi_xfer() 236 din = data_in; in __atcspi200_spi_xfer() [all …]
|
| H A D | mvebu_a3700_spi.c | 34 u32 din; /* 0x1060c */ member 82 const void *dout, void *din) in spi_legacy_shift_byte() argument 95 din_8 = din; in spi_legacy_shift_byte() 112 if (din) { in spi_legacy_shift_byte() 120 *din_8 = (u8)readl(®->din); in spi_legacy_shift_byte() 126 if (din) in spi_legacy_shift_byte() 136 const void *dout, void *din, unsigned long flags) in mvebu_spi_xfer() argument 146 if (dout && din) in mvebu_spi_xfer() 156 if (dout || din) { in mvebu_spi_xfer() 157 ret = spi_legacy_shift_byte(reg, bytelen, dout, din); in mvebu_spi_xfer()
|
| H A D | mxc_spi.c | 220 const u8 *dout, u8 *din, unsigned long flags) in spi_xchg_single() argument 229 __func__, bitlen, (u32)dout, (u32)din); in spi_xchg_single() 310 if (din) { in spi_xchg_single() 311 memcpy(din, &data, cnt); in spi_xchg_single() 312 din += cnt; in spi_xchg_single() 323 if (din) { in spi_xchg_single() 324 memcpy(din, &data, cnt); in spi_xchg_single() 325 din += cnt; in spi_xchg_single() 336 void *din, unsigned long flags) in mxc_spi_xfer_internal() argument 343 u8 *p_inbuf = (u8 *)din; in mxc_spi_xfer_internal() [all …]
|
| H A D | kirkwood_spi.c | 33 const void *dout, void *din, unsigned long flags) in _spi_xfer() argument 38 debug("spi_xfer: dout %p din %p bitlen %u\n", dout, din, bitlen); in _spi_xfer() 70 tmpdin = readl(®->din); in _spi_xfer() 72 din, tmpdin); in _spi_xfer() 74 if (din) { in _spi_xfer() 75 *((u8 *)din) = (u8)tmpdin; in _spi_xfer() 76 din += 1; in _spi_xfer() 237 const void *dout, void *din, unsigned long flags) in spi_xfer() argument 239 return _spi_xfer(spireg, bitlen, dout, din, flags); in spi_xfer() 335 const void *dout, void *din, unsigned long flags) in mvebu_spi_xfer() argument [all …]
|
| H A D | fsl_espi.c | 213 static int fsl_espi_rx(struct fsl_spi_slave *fsl, void *din, unsigned int bytes) in fsl_espi_rx() argument 236 if (din) in fsl_espi_rx() 237 memcpy(din, buf, bytes); in fsl_espi_rx() 252 void *din = NULL; in spi_xfer() local 307 din = buffer + rx_offset; in spi_xfer() 339 if (fsl_espi_rx(fsl, din, rx_bytes) in spi_xfer() 342 if (din) in spi_xfer() 343 din = (unsigned char *)din in spi_xfer()
|
| H A D | cf_spi.c | 104 void *din, ulong flags) in cfspi_xfer() argument 115 spi_rd16 = (u16 *) din; in cfspi_xfer() 118 spi_rd = (u8 *) din; in cfspi_xfer() 137 if (din != NULL) { in cfspi_xfer() 161 if (din != NULL) { in cfspi_xfer() 332 void *din, unsigned long flags) in spi_xfer() argument 334 return cfspi_xfer(slave, bitlen, dout, din, flags); in spi_xfer()
|
| H A D | sandbox_spi.c | 55 const void *dout, void *din, unsigned long flags) in sandbox_spi_xfer() argument 94 ret = ops->xfer(emul, bitlen, dout, din, flags); in sandbox_spi_xfer() 98 if (din) { in sandbox_spi_xfer() 100 log_content(" %u:%02x", i, ((u8 *)din)[i]); in sandbox_spi_xfer()
|
| H A D | mpc8xxx_spi.c | 76 void *din, unsigned long flags) in spi_xfer() argument 85 slave->bus, slave->cs, *(uint *) dout, *(uint *) din, bitlen); in spi_xfer() 141 *(u32 *) din = (tmpdin << (32 - charSize)); in spi_xfer() 144 din += 4; in spi_xfer()
|
| H A D | davinci_spi.c | 305 unsigned int bitlen, const void *dout, void *din, in __davinci_spi_xfer() argument 329 return davinci_spi_read(ds, len, din, flags); in __davinci_spi_xfer() 330 if (!din) in __davinci_spi_xfer() 333 return davinci_spi_read_write(ds, len, din, dout, flags); in __davinci_spi_xfer() 440 const void *dout, void *din, unsigned long flags) in spi_xfer() argument 446 return __davinci_spi_xfer(ds, bitlen, dout, din, flags); in spi_xfer() 516 const void *dout, void *din, in davinci_spi_xfer() argument 530 return __davinci_spi_xfer(ds, bitlen, dout, din, flags); in davinci_spi_xfer()
|
| H A D | mxs_spi.c | 311 const void *dout, void *din, unsigned long flags) in spi_xfer() argument 323 din = (void *)&dummy; in spi_xfer() 330 if (din && dout) in spi_xfer() 333 if (!din && !dout) in spi_xfer() 339 } else if (din) { in spi_xfer() 340 data = (char *)din; in spi_xfer()
|
| H A D | sh_qspi.c | 203 void *din, unsigned long flags) in spi_xfer() argument 212 if (dout == NULL && din == NULL) { in spi_xfer() 238 if (din != NULL) in spi_xfer() 239 rdata = din; in spi_xfer() 269 if (din != NULL) in spi_xfer()
|
| H A D | tegra210_qspi.c | 212 u8 *din = data_in; in tegra210_qspi_xfer() local 216 __func__, bus->seq, spi_chip_select(dev), dout, din, bitlen); in tegra210_qspi_xfer() 281 if (din != NULL) in tegra210_qspi_xfer() 340 if (din != NULL) { in tegra210_qspi_xfer() 341 memcpy(din, &tmpdin, bytes); in tegra210_qspi_xfer() 342 din += bytes; in tegra210_qspi_xfer()
|
| H A D | bcm63xx_spi.c | 198 const void *dout, void *din, unsigned long flags) in bcm63xx_spi_xfer() argument 212 if (din) { in bcm63xx_spi_xfer() 246 if (dout && !din) { in bcm63xx_spi_xfer() 252 if (dout && din && (flags & SPI_XFER_ONCE)) { in bcm63xx_spi_xfer() 297 if (din) in bcm63xx_spi_xfer() 298 memcpy_fromio(din, priv->base + regs[SPI_RX], in bcm63xx_spi_xfer()
|
| H A D | omap3_spi.c | 316 const void *dout, void *din, unsigned long flags) in _spi_xfer() argument 346 if (dout != NULL && din != NULL) in _spi_xfer() 347 ret = omap3_spi_txrx(priv, len, dout, din, flags); in _spi_xfer() 350 else if (din != NULL) in _spi_xfer() 351 ret = omap3_spi_read(priv, len, din, flags); in _spi_xfer() 578 const void *dout, void *din, unsigned long flags) in spi_xfer() argument 582 return _spi_xfer(priv, bitlen, dout, din, flags); in spi_xfer() 642 const void *dout, void *din, unsigned long flags) in omap3_spi_xfer() argument 647 return _spi_xfer(priv, bitlen, dout, din, flags); in omap3_spi_xfer()
|
| H A D | fsl_dspi.c | 252 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() 285 if (din != NULL) { in dspi_xfer() 309 if (din != NULL) { in dspi_xfer() 517 void *din, unsigned long flags) in spi_xfer() argument 520 return dspi_xfer(&dspi->priv, slave->cs, bitlen, dout, din, flags); in spi_xfer() 668 const void *dout, void *din, unsigned long flags) in fsl_dspi_xfer() argument 677 return dspi_xfer(priv, slave_plat->cs, bitlen, dout, din, flags); in fsl_dspi_xfer()
|
| /OK3568_Linux_fs/kernel/drivers/platform/chrome/ |
| H A D | cros_ec_spi.c | 163 BUG_ON(buf - ec_dev->din + n > ec_dev->din_size); in receive_n_bytes() 208 ec_dev->din, in cros_ec_spi_receive_packet() 213 ptr = ec_dev->din; in cros_ec_spi_receive_packet() 217 ptr - ec_dev->din); in cros_ec_spi_receive_packet() 242 memmove(ec_dev->din, ptr, todo); in cros_ec_spi_receive_packet() 243 ptr = ec_dev->din + todo; in cros_ec_spi_receive_packet() 257 response = (struct ec_host_response *)ec_dev->din; in cros_ec_spi_receive_packet() 273 todo, need_len, ptr - ec_dev->din); in cros_ec_spi_receive_packet() 283 dev_dbg(ec_dev->dev, "loop done, ptr=%zd\n", ptr - ec_dev->din); in cros_ec_spi_receive_packet() 316 ec_dev->din, in cros_ec_spi_receive_response() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/misc/ |
| H A D | cros_ec_i2c.c | 59 (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()
|
| H A D | cros_ec.c | 134 if (in_bytes > (int)sizeof(dev->din)) { in prepare_proto3_response_buffer() 158 struct ec_host_response *rs = (struct ec_host_response *)dev->din; in handle_proto3_response() 162 cros_ec_dump_data("in-header", -1, dev->din, sizeof(*rs)); in handle_proto3_response() 180 cros_ec_dump_data("in-data", -1, dev->din + sizeof(*rs), rs->data_len); in handle_proto3_response() 186 csum = cros_ec_calc_checksum(dev->din, in_bytes); in handle_proto3_response() 272 uint8_t *din = NULL; in ec_command_inptr() local 276 &din, din_len); in ec_command_inptr() 305 NULL, 0, &din, din_len); in ec_command_inptr() 308 debug("%s: len=%d, din=%p\n", __func__, len, din); in ec_command_inptr() 311 assert(len <= 0 || !((uintptr_t)din & 7)); in ec_command_inptr() [all …]
|
| H A D | cros_ec_spi.c | 54 rv = spi_xfer(slave, in_bytes * 8, NULL, dev->din, 0); in cros_ec_spi_packet() 104 if (in_bytes > sizeof(dev->din)) { in cros_ec_spi_command() 118 memset(dev->din, '\0', in_bytes); in cros_ec_spi_command() 138 p = dev->din + sizeof(int64_t) - 2; in cros_ec_spi_command()
|
| /OK3568_Linux_fs/u-boot/test/dm/ |
| H A D | spi.c | 104 unsigned char din[5]; in dm_test_spi_xfer() local 109 ut_assertok(spi_xfer(slave, 40, dout, din, in dm_test_spi_xfer() 111 ut_asserteq(0xff, din[0]); in dm_test_spi_xfer() 112 ut_asserteq(0x20, din[1]); in dm_test_spi_xfer() 113 ut_asserteq(0x20, din[2]); in dm_test_spi_xfer() 114 ut_asserteq(0x15, din[3]); in dm_test_spi_xfer()
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | spi.h | 269 void *din, unsigned long flags); 344 unsigned char din[2]; in spi_w8r8() local 350 ret = spi_xfer(slave, 16, dout, din, SPI_XFER_BEGIN | SPI_XFER_END); in spi_w8r8() 351 return ret < 0 ? ret : din[1]; in spi_w8r8() 438 void *din, unsigned long flags); 526 const void *dout, void *din, unsigned long flags); 685 const void *dout, void *din, unsigned long flags);
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/mlx5/ |
| H A D | devx.c | 1018 static void devx_obj_build_destroy_cmd(void *in, void *out, void *din, in devx_obj_build_destroy_cmd() argument 1028 MLX5_SET(general_obj_in_cmd_hdr, din, obj_id, *obj_id); in devx_obj_build_destroy_cmd() 1029 MLX5_SET(general_obj_in_cmd_hdr, din, uid, uid); in devx_obj_build_destroy_cmd() 1033 MLX5_SET(general_obj_in_cmd_hdr, din, opcode, MLX5_CMD_OP_DESTROY_GENERAL_OBJECT); in devx_obj_build_destroy_cmd() 1034 MLX5_SET(general_obj_in_cmd_hdr, din, obj_type, obj_type); in devx_obj_build_destroy_cmd() 1038 MLX5_SET(general_obj_in_cmd_hdr, din, opcode, in devx_obj_build_destroy_cmd() 1042 MLX5_SET(general_obj_in_cmd_hdr, din, opcode, MLX5_CMD_OP_DESTROY_MKEY); in devx_obj_build_destroy_cmd() 1045 MLX5_SET(general_obj_in_cmd_hdr, din, opcode, MLX5_CMD_OP_DESTROY_CQ); in devx_obj_build_destroy_cmd() 1048 MLX5_SET(general_obj_in_cmd_hdr, din, opcode, MLX5_CMD_OP_DEALLOC_PD); in devx_obj_build_destroy_cmd() 1051 MLX5_SET(general_obj_in_cmd_hdr, din, opcode, in devx_obj_build_destroy_cmd() [all …]
|
| /OK3568_Linux_fs/u-boot/board/work-microwave/work_92105/ |
| H A D | work_92105_display.c | 112 uint8_t dout[2], din[2]; in max6957aax_read() local 123 din[0] = 0; in max6957aax_read() 124 din[1] = 0; 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()
|
| /OK3568_Linux_fs/kernel/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 = PTR_ERR(ddata->din); in siox_gpio_probe()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | cq.c | 93 u32 din[MLX5_ST_SZ_DW(destroy_cq_in)] = {}; in mlx5_core_create_cq() local 144 MLX5_SET(destroy_cq_in, din, opcode, MLX5_CMD_OP_DESTROY_CQ); in mlx5_core_create_cq() 145 MLX5_SET(destroy_cq_in, din, cqn, cq->cqn); in mlx5_core_create_cq() 146 MLX5_SET(destroy_cq_in, din, uid, cq->uid); in mlx5_core_create_cq() 147 mlx5_cmd_exec_in(dev, destroy_cq, din); in mlx5_core_create_cq()
|