Lines Matching refs:width
35 static int memory_dump(const struct shell *sh, mem_addr_t phys_addr, size_t size, uint8_t width) in memory_dump() argument
40 const size_t vsize = width / BITS_PER_BYTE; in memory_dump()
56 switch (width) { in memory_dump()
92 size_t width = 32; in cmd_dump() local
115 width = (size_t)shell_strtoul(sys_getopt_optarg, 0, &err); in cmd_dump()
137 return memory_dump(sh, addr, size, width); in cmd_dump()
245 static int memory_read(const struct shell *sh, mem_addr_t addr, uint8_t width) in memory_read() argument
250 switch (width) { in memory_read()
278 static int memory_write(const struct shell *sh, mem_addr_t addr, uint8_t width, uint64_t value) in memory_write() argument
282 switch (width) { in memory_write()
311 uint8_t width; in cmd_devmem() local
324 width = 32; in cmd_devmem()
326 width = strtoul(argv[2], NULL, 10); in cmd_devmem()
329 shell_print(sh, "Using data width %d", width); in cmd_devmem()
332 return memory_read(sh, addr, width); in cmd_devmem()
343 return memory_write(sh, addr, width, value); in cmd_devmem()