Lines Matching +full:read +full:- +full:cmd

5  * SPDX-License-Identifier: Apache-2.0
42 * https://manpages.debian.org/buster/i2c-tools/i2cdetect.8.en.html
54 return -ENODEV; in cmd_smbus_scan()
71 shell_fprintf(sh, SHELL_NORMAL, "-- "); in cmd_smbus_scan()
93 return -ENODEV; in cmd_smbus_quick()
100 shell_error(sh, "SMBus: Failed quick cmd, perip: 0x%02x", addr); in cmd_smbus_quick()
117 return -ENODEV; in cmd_smbus_byte_read()
124 shell_error(sh, "SMBus: Failed to read from periph: 0x%02x", in cmd_smbus_byte_read()
126 return -EIO; in cmd_smbus_byte_read()
146 return -ENODEV; in cmd_smbus_byte_write()
157 return -EIO; in cmd_smbus_byte_write()
163 /* smbus byte_data_read <device> <dev_addr> <cmd> */
175 return -ENODEV; in cmd_smbus_byte_data_read()
183 shell_error(sh, "SMBus: Failed to read from periph: 0x%02x", in cmd_smbus_byte_data_read()
185 return -EIO; in cmd_smbus_byte_data_read()
193 /* smbus byte_data_write <device> <dev_addr> <cmd> <value> */
205 return -ENODEV; in cmd_smbus_byte_data_write()
216 return -EIO; in cmd_smbus_byte_data_write()
222 /* smbus word_data_read <device> <dev_addr> <cmd> */
234 return -ENODEV; in cmd_smbus_word_data_read()
242 shell_error(sh, "SMBus: Failed to read from periph: 0x%02x", in cmd_smbus_word_data_read()
244 return -EIO; in cmd_smbus_word_data_read()
252 /* smbus word_data_write <device> <dev_addr> <cmd> <value> */
264 return -ENODEV; in cmd_smbus_word_data_write()
275 return -EIO; in cmd_smbus_word_data_write()
281 /* smbus block_write <device> <dev_addr> <cmd> <bytes ... > */
287 uint8_t count = argc - 4; in cmd_smbus_block_write()
293 return -EINVAL; in cmd_smbus_block_write()
299 return -ENODEV; in cmd_smbus_block_write()
321 /* smbus block_read <device> <dev_addr> <cmd> */
334 return -ENODEV; in cmd_smbus_block_read()
342 shell_error(sh, "Failed block read from periph: 0x%02x", in cmd_smbus_block_read()
349 return -ENODATA; in cmd_smbus_block_read()
362 entry->syntax = (dev != NULL) ? dev->name : NULL; in device_name_get()
363 entry->handler = NULL; in device_name_get()
364 entry->help = NULL; in device_name_get()
365 entry->subcmd = NULL; in device_name_get()
380 "SMBus: byte read command\n"
388 "SMBus: byte data read command\n"
389 "Usage: byte_data_read <device> <addr> <cmd>",
393 "Usage: byte_data_write <device> <addr> <cmd> <value>",
396 "SMBus: word data read command\n"
397 "Usage: word_data_read <device> <addr> <cmd>",
401 "Usage: word_data_write <device> <addr> <cmd> <value>",
405 "Usage: block_write <device> <addr> <cmd> [<byte1>, ...]",
408 "SMBus: Block Read command\n"
409 "Usage: block_read <device> <addr> <cmd>",