Home
last modified time | relevance | path

Searched refs:in_bytes (Results 1 – 7 of 7) sorted by relevance

/drivers/misc/
A Dcros_ec_spi.c22 int cros_ec_spi_packet(struct udevice *udev, int out_bytes, int in_bytes) in cros_ec_spi_packet() argument
52 rv = spi_xfer(slave, in_bytes * 8, NULL, dev->din, 0); in cros_ec_spi_packet()
62 return in_bytes; in cros_ec_spi_packet()
86 int in_bytes = din_len + 4; /* status, length, checksum, trailer */ in cros_ec_spi_command() local
102 if (in_bytes > sizeof(dev->din)) { in cros_ec_spi_command()
116 memset(dev->din, '\0', in_bytes); in cros_ec_spi_command()
139 rv = spi_xfer(slave, max(len, in_bytes) * 8, out, p, in cros_ec_spi_command()
A Dcros_ec_i2c.c51 static int cros_ec_i2c_packet(struct udevice *udev, int out_bytes, int in_bytes) in cros_ec_i2c_packet() argument
76 i2c_msg[1].len = in_bytes + 2; in cros_ec_i2c_packet()
103 memmove(dev->din, &ec_response_i2c->ec_response, in_bytes); in cros_ec_i2c_packet()
105 return in_bytes; in cros_ec_i2c_packet()
118 int in_bytes = din_len + 3; in cros_ec_i2c_command() local
132 if (in_bytes > sizeof(dev->din)) { in cros_ec_i2c_command()
177 i2c_msg[1].len = in_bytes; in cros_ec_i2c_command()
A Dcros_ec_lpc.c47 int cros_ec_lpc_packet(struct udevice *udev, int out_bytes, int in_bytes) in cros_ec_lpc_packet() argument
56 if (in_bytes > EC_LPC_HOST_PACKET_SIZE) in cros_ec_lpc_packet()
73 for (i = 0, d = dev->din; i < in_bytes; i++, d++) in cros_ec_lpc_packet()
76 return in_bytes; in cros_ec_lpc_packet()
A Dcros_ec.c184 int in_bytes = din_len + sizeof(struct ec_host_response); in prepare_proto3_response_buffer() local
187 if (in_bytes > (int)sizeof(cdev->din)) { in prepare_proto3_response_buffer()
193 return in_bytes; in prepare_proto3_response_buffer()
212 int in_bytes; in handle_proto3_response() local
236 in_bytes = sizeof(*rs) + rs->data_len; in handle_proto3_response()
239 csum = cros_ec_calc_checksum(dev->din, in_bytes); in handle_proto3_response()
262 int out_bytes, in_bytes; in send_command_proto3() local
272 in_bytes = prepare_proto3_response_buffer(cdev, din_len); in send_command_proto3()
273 if (in_bytes < 0) in send_command_proto3()
274 return in_bytes; in send_command_proto3()
[all …]
A Dcros_ec_sandbox.c599 int cros_ec_sandbox_packet(struct udevice *udev, int out_bytes, int in_bytes) in cros_ec_sandbox_packet() argument
622 return in_bytes; in cros_ec_sandbox_packet()
/drivers/spi/
A Dexynos_spi.c105 uint out_bytes, in_bytes; in spi_rx_tx() local
111 out_bytes = in_bytes = todo; in spi_rx_tx()
135 toread = in_bytes; in spi_rx_tx()
137 while (in_bytes) { in spi_rx_tx()
176 in_bytes -= step; in spi_rx_tx()
189 out_bytes = in_bytes; in spi_rx_tx()
190 toread = in_bytes; in spi_rx_tx()
196 in_bytes, out_bytes); in spi_rx_tx()
A Dbcmstb_spi.c271 u8 *in_bytes = (u8 *)din; in bcmstb_spi_xfer() local
362 if (!in_bytes) in bcmstb_spi_xfer()
368 !in_bytes, in bcmstb_spi_xfer()
372 !in_bytes && in bcmstb_spi_xfer()
385 if (in_bytes) { in bcmstb_spi_xfer()
387 in_bytes[len - rx_len] = in bcmstb_spi_xfer()
392 priv->rx_slot, in_bytes[len - rx_len]); in bcmstb_spi_xfer()

Completed in 24 milliseconds