Lines Matching refs:need_len
193 int need_len) in cros_ec_spi_receive_packet() argument
242 todo = min(todo, need_len); in cros_ec_spi_receive_packet()
246 need_len, todo); in cros_ec_spi_receive_packet()
247 need_len -= todo; in cros_ec_spi_receive_packet()
265 while (need_len > 0) { in cros_ec_spi_receive_packet()
272 todo = min(need_len, 256); in cros_ec_spi_receive_packet()
274 todo, need_len, ptr - ec_dev->din); in cros_ec_spi_receive_packet()
281 need_len -= todo; in cros_ec_spi_receive_packet()
302 int need_len) in cros_ec_spi_receive_response() argument
350 todo = min(todo, need_len); in cros_ec_spi_receive_response()
354 need_len, todo); in cros_ec_spi_receive_response()
355 need_len -= todo; in cros_ec_spi_receive_response()
358 while (need_len > 0) { in cros_ec_spi_receive_response()
365 todo = min(need_len, 256); in cros_ec_spi_receive_response()
367 todo, need_len, ptr - ec_dev->din); in cros_ec_spi_receive_response()
375 need_len -= todo; in cros_ec_spi_receive_response()