Lines Matching refs:pos
26 static int read_io_options(const struct shell *sh, int pos, char **argv, in read_io_options() argument
29 char *arg = argv[pos]; in read_io_options()
32 return pos; in read_io_options()
46 return ++pos; in read_io_options()
193 int pos = 1; in cmd_w1_write_byte() local
197 dev = shell_device_get_binding(argv[pos]); in cmd_w1_write_byte()
199 shell_error(sh, W1DEV_X_NOT_FOUND, argv[pos]); in cmd_w1_write_byte()
202 pos++; in cmd_w1_write_byte()
204 pos = read_io_options(sh, pos, argv, &reset); in cmd_w1_write_byte()
205 if (pos < 0) { in cmd_w1_write_byte()
208 if (argc <= pos) { in cmd_w1_write_byte()
213 input = strtoul(argv[pos], NULL, 0); in cmd_w1_write_byte()
242 int pos = 1; in cmd_w1_write_block() local
246 dev = shell_device_get_binding(argv[pos]); in cmd_w1_write_block()
251 pos++; in cmd_w1_write_block()
253 pos = read_io_options(sh, pos, argv, &reset); in cmd_w1_write_block()
254 if (pos < 0) { in cmd_w1_write_block()
257 if (argc <= pos) { in cmd_w1_write_block()
261 if ((argc - pos) > BUF_SIZE) { in cmd_w1_write_block()
269 msg_buf[i] = (uint8_t)strtoul(argv[i + pos], NULL, 16); in cmd_w1_write_block()
271 } while ((i + pos) < argc); in cmd_w1_write_block()