Lines Matching refs:kbc_hw
191 struct kbc_regs *kbc_hw = (struct kbc_regs *)xec_kbc0_cfg.regbase; in kbc0_ibf_isr() local
209 kbc_evt->type = kbc_hw->EC_KBC_STS & MCHP_KBC_STS_CD ? 1 : 0; in kbc0_ibf_isr()
211 kbc_evt->data = kbc_hw->EC_DATA; in kbc0_ibf_isr()
220 uint32_t isr_data = ((kbc_hw->EC_KBC_STS & MCHP_KBC_STS_CD) << in kbc0_ibf_isr()
222 isr_data |= ((kbc_hw->EC_DATA & 0xFF) << E8042_ISR_DATA_POS); in kbc0_ibf_isr()
275 struct kbc_regs *kbc_hw = (struct kbc_regs *)xec_kbc0_cfg.regbase; in kbc0_rd_req() local
281 if (!(kbc_hw->KBC_CTRL & MCHP_KBC_CTRL_OBFEN)) { in kbc0_rd_req()
291 *data = kbc_hw->EC_KBC_STS & MCHP_KBC_STS_OBF ? 1 : 0; in kbc0_rd_req()
294 *data = kbc_hw->EC_KBC_STS & MCHP_KBC_STS_IBF ? 1 : 0; in kbc0_rd_req()
297 *data = kbc_hw->EC_KBC_STS; in kbc0_rd_req()
313 struct kbc_regs *kbc_hw = (struct kbc_regs *)xec_kbc0_cfg.regbase; in kbc0_wr_req() local
321 if (!(kbc_hw->KBC_CTRL & MCHP_KBC_CTRL_OBFEN)) { in kbc0_wr_req()
327 kbc_hw->EC_DATA = *data & 0xff; in kbc0_wr_req()
330 kbc_hw->EC_AUX_DATA = *data & 0xff; in kbc0_wr_req()
343 dummy = kbc_hw->HOST_AUX_DATA; in kbc0_wr_req()
349 kbc_hw->EC_KBC_STS |= *data; in kbc0_wr_req()
355 kbc_hw->EC_KBC_STS &= ~(*data); in kbc0_wr_req()
398 struct kbc_regs *kbc_hw = (struct kbc_regs *)xec_kbc0_cfg.regbase; in init_kbc0() local
400 kbc_hw->KBC_CTRL |= MCHP_KBC_CTRL_AUXH; in init_kbc0()
401 kbc_hw->KBC_CTRL |= MCHP_KBC_CTRL_OBFEN; in init_kbc0()
403 kbc_hw->KBC_PORT92_EN = MCHP_KBC_PORT92_EN; in init_kbc0()