Lines Matching refs:eeprom
35 const struct device *eeprom; in cmd_read() local
45 eeprom = shell_device_get_binding(argv[args_indx.device]); in cmd_read()
46 if (!eeprom) { in cmd_read()
58 err = eeprom_read(eeprom, addr, data, pending); in cmd_read()
76 const struct device *eeprom; in cmd_write() local
101 eeprom = shell_device_get_binding(argv[args_indx.device]); in cmd_write()
102 if (!eeprom) { in cmd_write()
109 err = eeprom_write(eeprom, offset, wr_buf, len); in cmd_write()
117 err = eeprom_read(eeprom, offset, rd_buf, len); in cmd_write()
135 const struct device *eeprom; in cmd_size() local
137 eeprom = shell_device_get_binding(argv[args_indx.device]); in cmd_size()
138 if (!eeprom) { in cmd_size()
143 shell_print(sh, "%zu bytes", eeprom_get_size(eeprom)); in cmd_size()
151 const struct device *eeprom; in cmd_fill() local
170 eeprom = shell_device_get_binding(argv[args_indx.device]); in cmd_fill()
171 if (!eeprom) { in cmd_fill()
183 err = eeprom_write(eeprom, addr, wr_buf, pending); in cmd_fill()
197 err = eeprom_read(eeprom, addr, rd_buf, pending); in cmd_fill()
241 SHELL_CMD_REGISTER(eeprom, &eeprom_cmds, "EEPROM shell commands", NULL);