Searched refs:ARGV_DEV (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/drivers/smbus/ |
D | smbus_shell.c | 26 #define ARGV_DEV 1 macro 51 dev = shell_device_get_binding(argv[ARGV_DEV]); in cmd_smbus_scan() 53 shell_error(sh, "SMBus: Device %s not found", argv[ARGV_DEV]); in cmd_smbus_scan() 78 shell_print(sh, "%u devices found on %s", cnt, argv[ARGV_DEV]); in cmd_smbus_scan() 90 dev = shell_device_get_binding(argv[ARGV_DEV]); in cmd_smbus_quick() 92 shell_error(sh, "SMBus: Device %s not found", argv[ARGV_DEV]); in cmd_smbus_quick() 114 dev = shell_device_get_binding(argv[ARGV_DEV]); in cmd_smbus_byte_read() 116 shell_error(sh, "SMBus: Device %s not found", argv[ARGV_DEV]); in cmd_smbus_byte_read() 143 dev = shell_device_get_binding(argv[ARGV_DEV]); in cmd_smbus_byte_write() 145 shell_error(sh, "SMBus: Device %s not found", argv[ARGV_DEV]); in cmd_smbus_byte_write() [all …]
|
/Zephyr-latest/drivers/counter/ |
D | counter_timer_shell.c | 13 #define ARGV_DEV 1 macro 45 *timer_dev = shell_device_get_binding(argv[ARGV_DEV]); in parse_device() 47 shell_error(shctx, "Timer: Device %s not found", argv[ARGV_DEV]); in parse_device() 66 shell_error(shctx, "%s is not available err:%d", argv[ARGV_DEV], err); in cmd_timer_free_running() 70 shell_info(shctx, "%s: Timer is freerunning", argv[ARGV_DEV]); in cmd_timer_free_running() 140 shell_error(shctx, "%s:Failed to set channel alarm, err:%d", argv[ARGV_DEV], err); in cmd_timer_oneshot() 146 shell_info(shctx, "%s: Alarm triggered", argv[ARGV_DEV]); in cmd_timer_oneshot() 184 shell_error(shctx, "%s: failed to set top value, err: %d", argv[ARGV_DEV], err); in cmd_timer_periodic() 195 shell_info(shctx, "%s: periodic timer triggered for %d times", argv[ARGV_DEV], count); in cmd_timer_periodic()
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_shell.c | 18 #define ARGV_DEV 1 macro 56 dev = shell_device_get_binding(argv[ARGV_DEV]); in cmd_i2c_scan() 60 argv[ARGV_DEV]); in cmd_i2c_scan() 93 cnt, argv[ARGV_DEV]); in cmd_i2c_scan() 105 dev = shell_device_get_binding(argv[ARGV_DEV]); in cmd_i2c_recover() 178 return i2c_write_from_buffer(shell_ctx, argv[ARGV_DEV], in cmd_i2c_write() 187 return i2c_write_from_buffer(shell_ctx, argv[ARGV_DEV], in cmd_i2c_write_byte() 243 ret = i2c_read_to_buffer(shell_ctx, argv[ARGV_DEV], in cmd_i2c_read_byte() 268 ret = i2c_read_to_buffer(shell_ctx, argv[ARGV_DEV], in cmd_i2c_read() 294 ret = i2c_read_to_buffer(shell_ctx, argv[ARGV_DEV], argv[ARGV_ADDR], NULL, buf, num_bytes); in cmd_i2c_direct_read() [all …]
|
/Zephyr-latest/drivers/i3c/ |
D | i3c_shell.c | 18 #define ARGV_DEV 1 macro 150 *dev = shell_device_get_binding(argv[ARGV_DEV]); in i3c_parse_args() 152 shell_error(sh, "I3C: Device driver %s not found.", argv[ARGV_DEV]); in i3c_parse_args() 178 dev = shell_device_get_binding(argv[ARGV_DEV]); in cmd_i3c_info() 181 shell_error(sh, "I3C: Device driver %s not found.", argv[ARGV_DEV]); in cmd_i3c_info() 301 dev = shell_device_get_binding(argv[ARGV_DEV]); in cmd_i3c_speed() 307 speed = strtol(argv[ARGV_DEV + 1], NULL, 10); in cmd_i3c_speed() 332 dev = shell_device_get_binding(argv[ARGV_DEV]); in cmd_i3c_recover() 406 return i3c_write_from_buffer(sh, argv[ARGV_DEV], argv[ARGV_TDEV], argv[ARGV_REG], &argv[4], in cmd_i3c_write() 413 return i3c_write_from_buffer(sh, argv[ARGV_DEV], argv[ARGV_TDEV], argv[ARGV_REG], &argv[4], in cmd_i3c_write_byte() [all …]
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_shell.c | 14 #define ARGV_DEV 1 macro 206 ctrl = get_gpio_ctrl(argv[ARGV_DEV]); in get_sh_gpio() 208 shell_error(sh, "unknown gpio controller: %s", argv[ARGV_DEV]); in get_sh_gpio() 623 const struct gpio_ctrl *ctrl = get_gpio_ctrl(argv[ARGV_DEV]); in cmd_gpio_info()
|