Lines Matching refs:inst_c2h
136 struct c2h_reg *const inst_c2h; member
172 .inst_c2h = (struct c2h_reg *)DT_INST_REG_ADDR_BY_NAME(0, c2h),
666 struct c2h_reg *const inst_c2h = host_sub_cfg.inst_c2h; in host_uart_init() local
672 inst_c2h->LKSIOHA &= ~BIT(NPCX_LKSIOHA_LKSPHA); in host_uart_init()
674 inst_c2h->SIOLV |= BIT(NPCX_SIOLV_SPLV); in host_uart_init()
681 struct c2h_reg *const inst_c2h = host_sub_cfg.inst_c2h; in host_c2h_wait_write_done() local
687 while (IS_BIT_SET(inst_c2h->SIBCTRL, NPCX_SIBCTRL_CSWR)) { in host_c2h_wait_write_done()
698 struct c2h_reg *const inst_c2h = host_sub_cfg.inst_c2h; in host_c2h_wait_read_done() local
704 while (IS_BIT_SET(inst_c2h->SIBCTRL, NPCX_SIBCTRL_CSRD)) { in host_c2h_wait_read_done()
715 struct c2h_reg *const inst_c2h = host_sub_cfg.inst_c2h; in host_c2h_write_io_cfg_reg() local
721 inst_c2h->LKSIOHA |= BIT(NPCX_LKSIOHA_LKCFG); in host_c2h_write_io_cfg_reg()
723 inst_c2h->CRSMAE |= BIT(NPCX_CRSMAE_CFGAE); in host_c2h_write_io_cfg_reg()
734 inst_c2h->IHIOA = NPCX_EC_CFG_IO_ADDR; in host_c2h_write_io_cfg_reg()
735 inst_c2h->IHD = reg_index; in host_c2h_write_io_cfg_reg()
743 inst_c2h->IHIOA = NPCX_EC_CFG_IO_ADDR + 1; in host_c2h_write_io_cfg_reg()
744 inst_c2h->IHD = reg_data; in host_c2h_write_io_cfg_reg()
748 inst_c2h->CRSMAE &= ~BIT(NPCX_CRSMAE_CFGAE); in host_c2h_write_io_cfg_reg()
750 inst_c2h->LKSIOHA &= ~BIT(NPCX_LKSIOHA_LKCFG); in host_c2h_write_io_cfg_reg()
758 struct c2h_reg *const inst_c2h = host_sub_cfg.inst_c2h; in host_c2h_read_io_cfg_reg() local
765 inst_c2h->LKSIOHA |= BIT(NPCX_LKSIOHA_LKCFG); in host_c2h_read_io_cfg_reg()
767 inst_c2h->CRSMAE |= BIT(NPCX_CRSMAE_CFGAE); in host_c2h_read_io_cfg_reg()
778 inst_c2h->IHIOA = NPCX_EC_CFG_IO_ADDR; in host_c2h_read_io_cfg_reg()
779 inst_c2h->IHD = reg_index; in host_c2h_read_io_cfg_reg()
788 inst_c2h->IHIOA = NPCX_EC_CFG_IO_ADDR + 1; in host_c2h_read_io_cfg_reg()
789 inst_c2h->SIBCTRL |= BIT(NPCX_SIBCTRL_CSRD); in host_c2h_read_io_cfg_reg()
791 data_val = inst_c2h->IHD; in host_c2h_read_io_cfg_reg()
794 inst_c2h->CRSMAE &= ~BIT(NPCX_CRSMAE_CFGAE); in host_c2h_read_io_cfg_reg()
796 inst_c2h->LKSIOHA &= ~BIT(NPCX_LKSIOHA_LKCFG); in host_c2h_read_io_cfg_reg()
1000 struct c2h_reg *const inst_c2h = host_sub_cfg.inst_c2h; in npcx_host_init_subs_host_domain() local
1003 inst_c2h->SIBCTRL |= BIT(NPCX_SIBCTRL_CSAE); in npcx_host_init_subs_host_domain()