Lines Matching +full:scan +full:- +full:limit
4 * SPDX-License-Identifier: Apache-2.0
30 length -= 1; in get_bytes_count_for_hex()
47 * https://manpages.debian.org/buster/i2c-tools/i2cdetect.8.en.html
49 /* i2c scan <device> */
61 return -ENODEV; in cmd_i2c_scan()
86 shell_fprintf(shell_ctx, SHELL_NORMAL, "-- "); in cmd_i2c_scan()
109 return -ENODEV; in cmd_i2c_recover()
130 uint8_t buf[MAX_I2C_BYTES + MAX_BYTES_FOR_REGISTER_INDEX - 1]; in i2c_write_from_buffer()
142 return -ENODEV; in i2c_write_from_buffer()
152 data_length = MAX_I2C_BYTES - reg_addr_bytes; in i2c_write_from_buffer()
153 shell_info(shell_ctx, "Too many bytes provided, limit is %d", in i2c_write_from_buffer()
154 MAX_I2C_BYTES - reg_addr_bytes); in i2c_write_from_buffer()
163 buf + MAX_BYTES_FOR_REGISTER_INDEX - reg_addr_bytes, in i2c_write_from_buffer()
168 return -EIO; in i2c_write_from_buffer()
180 &argv[4], argc - 4); in cmd_i2c_write()
208 return -ENODEV; in i2c_read_to_buffer()
219 MAX_BYTES_FOR_REGISTER_INDEX - reg_addr_bytes, in i2c_read_to_buffer()
224 return -EIO; in i2c_read_to_buffer()
288 return -ENODEV; in cmd_i2c_speed()
305 return -EIO; in cmd_i2c_speed()
314 entry->syntax = (dev != NULL) ? dev->name : NULL; in device_name_get()
315 entry->handler = NULL; in device_name_get()
316 entry->help = NULL; in device_name_get()
317 entry->subcmd = NULL; in device_name_get()
323 SHELL_CMD_ARG(scan, &dsub_device_name,
324 "Scan I2C devices\n"
325 "Usage: scan <device>",