Lines Matching full:regs
66 struct eeprom_xec_regs * const regs; member
75 static void eeprom_xec_execute_reg_set(struct eeprom_xec_regs * const regs, in eeprom_xec_execute_reg_set() argument
84 regs->execute = temp; in eeprom_xec_execute_reg_set()
87 static uint8_t eeprom_xec_data_buffer_read(struct eeprom_xec_regs * const regs, in eeprom_xec_data_buffer_read() argument
96 *destination_ptr = regs->buffer[count]; in eeprom_xec_data_buffer_read()
103 static uint8_t eeprom_xec_data_buffer_write(struct eeprom_xec_regs * const regs, in eeprom_xec_data_buffer_write() argument
112 regs->buffer[count] = *source_ptr; in eeprom_xec_data_buffer_write()
119 static void eeprom_xec_wait_transfer_compl(struct eeprom_xec_regs * const regs) in eeprom_xec_wait_transfer_compl() argument
133 sts = XEC_EEPROM_STS_TRANSFER_COMPL & regs->status; in eeprom_xec_wait_transfer_compl()
140 regs->status = XEC_EEPROM_STS_TRANSFER_COMPL; in eeprom_xec_wait_transfer_compl()
144 static void eeprom_xec_wait_write_compl(struct eeprom_xec_regs * const regs) in eeprom_xec_wait_write_compl() argument
155 regs->buffer[0] = 0; in eeprom_xec_wait_write_compl()
158 regs->execute = XEC_EEPROM_EXC_CMD_READ_STS; in eeprom_xec_wait_write_compl()
160 eeprom_xec_wait_transfer_compl(regs); in eeprom_xec_wait_write_compl()
162 sts = regs->buffer[0] & (XEC_EEPROM_STS_BYTE_WIP | in eeprom_xec_wait_write_compl()
170 static void eeprom_xec_data_read_32_bytes(struct eeprom_xec_regs * const regs, in eeprom_xec_data_read_32_bytes() argument
174 eeprom_xec_execute_reg_set(regs, len, XEC_EEPROM_EXC_CMD_READ, offset); in eeprom_xec_data_read_32_bytes()
177 eeprom_xec_wait_transfer_compl(regs); in eeprom_xec_data_read_32_bytes()
180 eeprom_xec_data_buffer_read(regs, len, buf); in eeprom_xec_data_read_32_bytes()
183 static void eeprom_xec_data_write_32_bytes(struct eeprom_xec_regs * const regs, in eeprom_xec_data_write_32_bytes() argument
197 eeprom_xec_data_buffer_write(regs, rem_bytes, buf); in eeprom_xec_data_write_32_bytes()
200 eeprom_xec_execute_reg_set(regs, rem_bytes, in eeprom_xec_data_write_32_bytes()
203 eeprom_xec_wait_transfer_compl(regs); in eeprom_xec_data_write_32_bytes()
205 eeprom_xec_wait_write_compl(regs); in eeprom_xec_data_write_32_bytes()
213 eeprom_xec_data_buffer_write(regs, len, buf); in eeprom_xec_data_write_32_bytes()
216 eeprom_xec_execute_reg_set(regs, len, XEC_EEPROM_EXC_CMD_WRITE, offset); in eeprom_xec_data_write_32_bytes()
218 eeprom_xec_wait_transfer_compl(regs); in eeprom_xec_data_write_32_bytes()
220 eeprom_xec_wait_write_compl(regs); in eeprom_xec_data_write_32_bytes()
229 struct eeprom_xec_regs * const regs = config->regs; in eeprom_xec_read() local
251 eeprom_xec_data_read_32_bytes(regs, &data_buf[chunk_idx], in eeprom_xec_read()
265 struct eeprom_xec_regs * const regs = config->regs; in eeprom_xec_write() local
287 eeprom_xec_data_write_32_bytes(regs, &data_buf[chunk_idx], in eeprom_xec_write()
308 struct eeprom_xec_regs * const regs = devcfg->regs; in eeprom_xec_pm_action() local
318 regs->mode |= XEC_EEPROM_MODE_ACTIVATE; in eeprom_xec_pm_action()
322 regs->mode &= (~XEC_EEPROM_MODE_ACTIVATE); in eeprom_xec_pm_action()
341 struct eeprom_xec_regs * const regs = config->regs; in eeprom_xec_init() local
352 regs->mode |= XEC_EEPROM_MODE_ACTIVATE; in eeprom_xec_init()
366 .regs = (struct eeprom_xec_regs * const)DT_INST_REG_ADDR(0),