Lines Matching refs:width
43 static int memory_dump(const struct shell *sh, mem_addr_t phys_addr, size_t size, uint8_t width) in memory_dump() argument
48 const size_t vsize = width / BITS_PER_BYTE; in memory_dump()
64 switch (width) { in memory_dump()
102 size_t width = 32; in cmd_dump() local
126 width = (size_t)shell_strtoul(optarg, 0, &err); in cmd_dump()
148 return memory_dump(sh, addr, size, width); in cmd_dump()
258 static int memory_read(const struct shell *sh, mem_addr_t addr, uint8_t width) in memory_read() argument
263 switch (width) { in memory_read()
286 static int memory_write(const struct shell *sh, mem_addr_t addr, uint8_t width, uint64_t value) in memory_write() argument
290 switch (width) { in memory_write()
314 uint8_t width; in cmd_devmem() local
327 width = 32; in cmd_devmem()
329 width = strtoul(argv[2], NULL, 10); in cmd_devmem()
332 shell_fprintf(sh, SHELL_NORMAL, "Using data width %d\n", width); in cmd_devmem()
335 return memory_read(sh, addr, width); in cmd_devmem()
346 return memory_write(sh, addr, width, value); in cmd_devmem()