Lines Matching +full:- +full:- +full:recover
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
61 return -ENODEV; in cmd_i2c_scan()
86 shell_fprintf(shell_ctx, SHELL_NORMAL, "-- "); in cmd_i2c_scan()
98 /* i2c recover <device> */
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()
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()
205 return -ENODEV; in i2c_read_to_buffer()
220 reg_addr_buf + MAX_BYTES_FOR_REGISTER_INDEX - reg_addr_bytes, in i2c_read_to_buffer()
229 return -EIO; in i2c_read_to_buffer()
317 return -ENODEV; in cmd_i2c_speed()
334 return -EIO; in cmd_i2c_speed()
343 entry->syntax = (dev != NULL) ? dev->name : NULL; in device_name_get()
344 entry->handler = NULL; in device_name_get()
345 entry->help = NULL; in device_name_get()
346 entry->subcmd = NULL; in device_name_get()
356 SHELL_CMD_ARG(recover, &dsub_device_name,
357 "Recover I2C bus\n"
358 "Usage: recover <device>",