Lines Matching refs:num_bytes
256 int num_bytes; in cmd_i2c_read() local
260 num_bytes = strtol(argv[4], NULL, 16); in cmd_i2c_read()
261 if (num_bytes > MAX_I2C_BYTES) { in cmd_i2c_read()
262 num_bytes = MAX_I2C_BYTES; in cmd_i2c_read()
265 num_bytes = MAX_I2C_BYTES; in cmd_i2c_read()
270 buf, num_bytes); in cmd_i2c_read()
272 shell_hexdump(shell_ctx, buf, num_bytes); in cmd_i2c_read()
282 int num_bytes; in cmd_i2c_direct_read() local
286 num_bytes = strtol(argv[3], NULL, 16); in cmd_i2c_direct_read()
287 if (num_bytes > MAX_I2C_BYTES) { in cmd_i2c_direct_read()
288 num_bytes = MAX_I2C_BYTES; in cmd_i2c_direct_read()
291 num_bytes = MAX_I2C_BYTES; in cmd_i2c_direct_read()
294 ret = i2c_read_to_buffer(shell_ctx, argv[ARGV_DEV], argv[ARGV_ADDR], NULL, buf, num_bytes); in cmd_i2c_direct_read()
296 shell_hexdump(shell_ctx, buf, num_bytes); in cmd_i2c_direct_read()