Lines Matching refs:iobase

41 void mec_hal_espi_pc_ready_set(struct mec_espi_io_regs *iobase)  in mec_hal_espi_pc_ready_set()  argument
43 iobase->PCRDY = MEC_BIT(MEC_ESPI_IO_PCRDY_PC_READY_Pos); in mec_hal_espi_pc_ready_set()
46 int mec_hal_espi_pc_is_ready(struct mec_espi_io_regs *iobase) in mec_hal_espi_pc_is_ready() argument
48 if (iobase->PCRDY & MEC_BIT(MEC_ESPI_IO_PCRDY_PC_READY_Pos)) { in mec_hal_espi_pc_is_ready()
58 uint32_t mec_hal_espi_pc_en_status(struct mec_espi_io_regs *iobase) in mec_hal_espi_pc_en_status() argument
60 uint32_t temp = iobase->PCSTS & (MEC_ESPI_IO_PCSTS_PCEN_VAL_Msk in mec_hal_espi_pc_en_status()
70 uint32_t mec_hal_espi_pc_bm_status(struct mec_espi_io_regs *iobase) in mec_hal_espi_pc_bm_status() argument
72 uint32_t temp = iobase->PCSTS & (MEC_ESPI_IO_PCSTS_PCBM_VAL_Msk in mec_hal_espi_pc_bm_status()
78 uint32_t mec_hal_espi_pc_status(struct mec_espi_io_regs *iobase) in mec_hal_espi_pc_status() argument
81 uint32_t temp = iobase->PCSTS; in mec_hal_espi_pc_status()
102 void mec_hal_espi_pc_status_clr(struct mec_espi_io_regs *iobase, uint32_t bitmap) in mec_hal_espi_pc_status_clr() argument
107 iobase->PCSTS = regval; in mec_hal_espi_pc_status_clr()
110 void mec_hal_espi_pc_intr_en(struct mec_espi_io_regs *iobase, uint32_t bitmap) in mec_hal_espi_pc_intr_en() argument
115 iobase->PCIEN |= regval; in mec_hal_espi_pc_intr_en()
118 void mec_hal_espi_pc_intr_dis(struct mec_espi_io_regs *iobase, uint32_t bitmap) in mec_hal_espi_pc_intr_dis() argument
123 iobase->PCIEN &= ~regval; in mec_hal_espi_pc_intr_dis()
126 void mec_hal_espi_pc_status_clr_all(struct mec_espi_io_regs *iobase) in mec_hal_espi_pc_status_clr_all() argument
128 iobase->PCSTS = (MEC_ESPI_IO_PCSTS_EC_BUS_ERR_Msk in mec_hal_espi_pc_status_clr_all()
133 uint64_t mec_hal_espi_pc_error_addr(struct mec_espi_io_regs *iobase) in mec_hal_espi_pc_error_addr() argument
140 err_addr.w[0] = iobase->PCERR[0]; in mec_hal_espi_pc_error_addr()
141 err_addr.w[1] = iobase->PCERR[1]; in mec_hal_espi_pc_error_addr()
146 void mec_hal_espi_pc_last_cycle(struct mec_espi_io_regs *iobase, in mec_hal_espi_pc_last_cycle() argument
151 lc->host_pc_addr_lsw = iobase->PCLC[0]; in mec_hal_espi_pc_last_cycle()
152 lc->host_pc_addr_msw = iobase->PCLC[1]; in mec_hal_espi_pc_last_cycle()
153 temp = iobase->PCLC[2]; in mec_hal_espi_pc_last_cycle()
182 uint32_t mec_hal_espi_pc_ltr_status(struct mec_espi_io_regs *iobase) in mec_hal_espi_pc_ltr_status() argument
184 return iobase->PCLTRSTS; in mec_hal_espi_pc_ltr_status()
187 void mec_hal_espi_pc_ltr_intr_en(struct mec_espi_io_regs *iobase, uint32_t enmask) in mec_hal_espi_pc_ltr_intr_en() argument
189 iobase->PCLTREN = enmask; in mec_hal_espi_pc_ltr_intr_en()
192 void mec_hal_espi_pc_ltr_ctrl(struct mec_espi_io_regs *iobase, uint8_t tag, uint8_t start) in mec_hal_espi_pc_ltr_ctrl() argument
194 uint32_t ctrl = iobase->PCLTRCTL & (uint32_t)~(MEC_ESPI_IO_PCLTRCTL_LTR_TX_TAG_Msk); in mec_hal_espi_pc_ltr_ctrl()
199 iobase->PCLTRCTL = ctrl; in mec_hal_espi_pc_ltr_ctrl()
202 iobase->PCLTRCTL |= MEC_BIT(MEC_ESPI_IO_PCLTRCTL_START_Pos); in mec_hal_espi_pc_ltr_ctrl()
206 void mec_hal_espi_pc_ltr_msg(struct mec_espi_io_regs *iobase, uint16_t nunits, uint8_t time_unit, in mec_hal_espi_pc_ltr_msg() argument
219 iobase->PCLTRM = (iobase->PCLTRM & ~(0xffffu)) | msg; in mec_hal_espi_pc_ltr_msg()