Lines Matching refs:inst_kbc

137 	struct kbc_reg *const inst_kbc;  member
173 .inst_kbc = (struct kbc_reg *)DT_INST_REG_ADDR_BY_NAME(0, kbc),
258 struct kbc_reg *const inst_kbc = host_sub_cfg.inst_kbc; in host_kbc_ibf_isr() local
268 kbc_evt->data = inst_kbc->HIKMDI; in host_kbc_ibf_isr()
274 kbc_evt->type = IS_BIT_SET(inst_kbc->HIKMST, NPCX_HIKMST_A2); in host_kbc_ibf_isr()
284 struct kbc_reg *const inst_kbc = host_sub_cfg.inst_kbc; in host_kbc_obe_isr() local
292 inst_kbc->HICTRL &= ~BIT(NPCX_HICTRL_OBECIE); in host_kbc_obe_isr()
294 LOG_DBG("%s: kbc status 0x%02x", __func__, inst_kbc->HIKMST); in host_kbc_obe_isr()
311 struct kbc_reg *const inst_kbc = host_sub_cfg.inst_kbc; in host_kbc_init() local
316 inst_kbc->HICTRL |= BIT(NPCX_HICTRL_FW_OBF); in host_kbc_init()
326 inst_kbc->HICTRL = BIT(NPCX_HICTRL_IBFCIE) | BIT(NPCX_HICTRL_OBFMIE) in host_kbc_init()
330 inst_kbc->HIIRQC = 0x00; in host_kbc_init()
809 struct kbc_reg *const inst_kbc = host_sub_cfg.inst_kbc; in npcx_host_periph_read_request() local
812 if (!IS_BIT_SET(inst_kbc->HICTRL, NPCX_HICTRL_OBFKIE) || in npcx_host_periph_read_request()
813 !IS_BIT_SET(inst_kbc->HICTRL, NPCX_HICTRL_OBFMIE)) { in npcx_host_periph_read_request()
823 *data = IS_BIT_SET(inst_kbc->HIKMST, NPCX_HIKMST_OBF); in npcx_host_periph_read_request()
826 *data = IS_BIT_SET(inst_kbc->HIKMST, NPCX_HIKMST_IBF); in npcx_host_periph_read_request()
829 *data = inst_kbc->HIKMST; in npcx_host_periph_read_request()
891 struct kbc_reg *const inst_kbc = host_sub_cfg.inst_kbc; in npcx_host_periph_write_request() local
895 if (!IS_BIT_SET(inst_kbc->HICTRL, NPCX_HICTRL_OBFKIE) || in npcx_host_periph_write_request()
896 !IS_BIT_SET(inst_kbc->HICTRL, NPCX_HICTRL_OBFMIE)) { in npcx_host_periph_write_request()
907 inst_kbc->HIKDO = *data & 0xff; in npcx_host_periph_write_request()
912 inst_kbc->HICTRL |= BIT(NPCX_HICTRL_OBECIE); in npcx_host_periph_write_request()
915 inst_kbc->HIMDO = *data & 0xff; in npcx_host_periph_write_request()
920 inst_kbc->HICTRL |= BIT(NPCX_HICTRL_OBECIE); in npcx_host_periph_write_request()
924 inst_kbc->HICTRL |= BIT(NPCX_HICTRL_IBFCIE); in npcx_host_periph_write_request()
928 inst_kbc->HICTRL &= ~BIT(NPCX_HICTRL_IBFCIE); in npcx_host_periph_write_request()
932 inst_kbc->HICTRL |= BIT(NPCX_HICTRL_FW_OBF); in npcx_host_periph_write_request()
936 inst_kbc->HIKMST |= *data & ~NPCX_KBC_STS_MASK; in npcx_host_periph_write_request()
940 inst_kbc->HIKMST &= ~(*data | NPCX_KBC_STS_MASK); in npcx_host_periph_write_request()