Lines Matching refs:din
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()
321 ptr = ec_dev->din; in cros_ec_spi_receive_response()
325 ptr - ec_dev->din); in cros_ec_spi_receive_response()
350 memmove(ec_dev->din, ptr, todo); in cros_ec_spi_receive_response()
351 ptr = ec_dev->din + todo; in cros_ec_spi_receive_response()
366 todo, need_len, ptr - ec_dev->din); in cros_ec_spi_receive_response()
377 dev_dbg(ec_dev->dev, "loop done, ptr=%zd\n", ptr - ec_dev->din); in cros_ec_spi_receive_response()
482 ptr = ec_dev->din; in do_cros_ec_pkt_xfer_spi()
601 ptr = ec_dev->din; in do_cros_ec_cmd_xfer_spi()