Lines Matching refs:slave_reg

616 	struct espi_slave_regs *const slave_reg =  in espi_it8xxx2_configure()  local
640 slave_reg->GCAPCFG1 = in espi_it8xxx2_configure()
641 (slave_reg->GCAPCFG1 & ~IT8XXX2_ESPI_MAX_FREQ_MASK) | capcfg1; in espi_it8xxx2_configure()
659 struct espi_slave_regs *const slave_reg = in espi_it8xxx2_channel_ready() local
665 sts = slave_reg->CH_PC_CAPCFG3 & IT8XXX2_ESPI_PC_READY_MASK; in espi_it8xxx2_channel_ready()
668 sts = slave_reg->CH_VW_CAPCFG3 & IT8XXX2_ESPI_VW_READY_MASK; in espi_it8xxx2_channel_ready()
671 sts = slave_reg->CH_OOB_CAPCFG3 & IT8XXX2_ESPI_OOB_READY_MASK; in espi_it8xxx2_channel_ready()
674 sts = slave_reg->CH_FLASH_CAPCFG3 & IT8XXX2_ESPI_FC_READY_MASK; in espi_it8xxx2_channel_ready()
946 struct espi_slave_regs *const slave_reg = in espi_it8xxx2_send_oob() local
953 if (!(slave_reg->CH_OOB_CAPCFG3 & IT8XXX2_ESPI_OOB_READY_MASK)) { in espi_it8xxx2_send_oob()
958 if (slave_reg->ESUCTRL0 & IT8XXX2_ESPI_UPSTREAM_BUSY) { in espi_it8xxx2_send_oob()
969 slave_reg->ESUCTRL1 = IT8XXX2_ESPI_CYCLE_TYPE_OOB; in espi_it8xxx2_send_oob()
971 slave_reg->ESUCTRL2 = ESPI_TAG_LEN_FIELD(0, pckt->len); in espi_it8xxx2_send_oob()
973 slave_reg->ESUCTRL3 = pckt->len & 0xff; in espi_it8xxx2_send_oob()
981 slave_reg->ESUCTRL0 |= IT8XXX2_ESPI_UPSTREAM_ENABLE; in espi_it8xxx2_send_oob()
983 slave_reg->ESUCTRL0 |= IT8XXX2_ESPI_UPSTREAM_GO; in espi_it8xxx2_send_oob()
992 struct espi_slave_regs *const slave_reg = in espi_it8xxx2_receive_oob() local
1000 if (!(slave_reg->CH_OOB_CAPCFG3 & IT8XXX2_ESPI_OOB_READY_MASK)) { in espi_it8xxx2_receive_oob()
1018 oob_len = (slave_reg->ESOCTRL4 & IT8XXX2_ESPI_PUT_OOB_LEN_MASK); in espi_it8xxx2_receive_oob()
1041 struct espi_slave_regs *const slave_reg = in espi_it8xxx2_oob_init() local
1051 slave_reg->ESUCTRL0 |= IT8XXX2_ESPI_UPSTREAM_INTERRUPT_ENABLE; in espi_it8xxx2_oob_init()
1054 slave_reg->ESOCTRL1 |= IT8XXX2_ESPI_PUT_OOB_INTERRUPT_ENABLE; in espi_it8xxx2_oob_init()
1080 struct espi_slave_regs *const slave_reg = in espi_it8xxx2_flash_trans() local
1085 if (!(slave_reg->CH_FLASH_CAPCFG3 & IT8XXX2_ESPI_FC_READY_MASK)) { in espi_it8xxx2_flash_trans()
1091 if (slave_reg->ESUCTRL0 & IT8XXX2_ESPI_UPSTREAM_BUSY) { in espi_it8xxx2_flash_trans()
1102 slave_reg->ESUCTRL1 = tran; in espi_it8xxx2_flash_trans()
1104 slave_reg->ESUCTRL2 = (ESPI_FLASH_TAG << 4); in espi_it8xxx2_flash_trans()
1114 slave_reg->ESUCTRL3 = pckt->len; in espi_it8xxx2_flash_trans()
1129 struct espi_slave_regs *const slave_reg = in espi_it8xxx2_flash_read() local
1140 slave_reg->ESUCTRL0 |= IT8XXX2_ESPI_UPSTREAM_ENABLE; in espi_it8xxx2_flash_read()
1142 slave_reg->ESUCTRL0 |= IT8XXX2_ESPI_UPSTREAM_GO; in espi_it8xxx2_flash_read()
1170 struct espi_slave_regs *const slave_reg = in espi_it8xxx2_flash_write() local
1188 slave_reg->ESUCTRL0 |= IT8XXX2_ESPI_UPSTREAM_ENABLE; in espi_it8xxx2_flash_write()
1190 slave_reg->ESUCTRL0 |= IT8XXX2_ESPI_UPSTREAM_GO; in espi_it8xxx2_flash_write()
1213 struct espi_slave_regs *const slave_reg = in espi_it8xxx2_flash_erase() local
1224 slave_reg->ESUCTRL0 |= IT8XXX2_ESPI_UPSTREAM_ENABLE; in espi_it8xxx2_flash_erase()
1226 slave_reg->ESUCTRL0 |= IT8XXX2_ESPI_UPSTREAM_GO; in espi_it8xxx2_flash_erase()
1248 struct espi_slave_regs *const slave_reg = in espi_it8xxx2_flash_upstream_done_isr() local
1253 data->put_flash_cycle_type = slave_reg->ESUCTRL6; in espi_it8xxx2_flash_upstream_done_isr()
1254 data->put_flash_tag = slave_reg->ESUCTRL7 & in espi_it8xxx2_flash_upstream_done_isr()
1256 data->put_flash_len = slave_reg->ESUCTRL8 & in espi_it8xxx2_flash_upstream_done_isr()
1259 if (slave_reg->ESUCTRL1 == IT8XXX2_ESPI_CYCLE_TYPE_FLASH_READ) { in espi_it8xxx2_flash_upstream_done_isr()
1278 struct espi_slave_regs *const slave_reg = in espi_it8xxx2_flash_init() local
1284 slave_reg->ESUCTRL0 |= IT8XXX2_ESPI_UPSTREAM_INTERRUPT_ENABLE; in espi_it8xxx2_flash_init()
1612 struct espi_slave_regs *const slave_reg = in espi_it8xxx2_put_pc_status_isr() local
1622 slave_reg->ESPCTRL0 = IT8XXX2_ESPI_INTERRUPT_PUT_PC; in espi_it8xxx2_put_pc_status_isr()
1629 struct espi_slave_regs *const slave_reg = in espi_it8xxx2_upstream_channel_disable_isr() local
1635 slave_reg->ESUCTRL0 |= IT8XXX2_ESPI_UPSTREAM_CHANNEL_DISABLE; in espi_it8xxx2_upstream_channel_disable_isr()
1642 struct espi_slave_regs *const slave_reg = in espi_it8xxx2_put_oob_status_isr() local
1651 slave_reg->ESOCTRL0 |= IT8XXX2_ESPI_PUT_OOB_STATUS; in espi_it8xxx2_put_oob_status_isr()
1657 evt.evt_details = (slave_reg->ESOCTRL4 & IT8XXX2_ESPI_PUT_OOB_LEN_MASK); in espi_it8xxx2_put_oob_status_isr()
1667 struct espi_slave_regs *const slave_reg = in espi_it8xxx2_upstream_done_isr() local
1672 if (slave_reg->ESUCTRL1 != IT8XXX2_ESPI_CYCLE_TYPE_OOB) { in espi_it8xxx2_upstream_done_isr()
1678 slave_reg->ESUCTRL0 |= IT8XXX2_ESPI_UPSTREAM_DONE; in espi_it8xxx2_upstream_done_isr()
1680 slave_reg->ESUCTRL0 &= ~IT8XXX2_ESPI_UPSTREAM_ENABLE; in espi_it8xxx2_upstream_done_isr()
1702 struct espi_slave_regs *const slave_reg = in espi_it8xxx2_isr() local
1705 uint8_t espi_event = slave_reg->ESGCTRL0; in espi_it8xxx2_isr()
1707 uint8_t espi_upstream = slave_reg->ESUCTRL0; in espi_it8xxx2_isr()
1711 slave_reg->ESGCTRL0 = espi_event; in espi_it8xxx2_isr()
1726 if (slave_reg->ESPCTRL0 & IT8XXX2_ESPI_INTERRUPT_PUT_PC) { in espi_it8xxx2_isr()
1740 if (slave_reg->ESOCTRL0 & IT8XXX2_ESPI_PUT_OOB_STATUS) { in espi_it8xxx2_isr()
1757 struct espi_slave_regs *const slave_reg = in espi_it8xxx2_enable_pad_ctrl() local
1762 slave_reg->ESGCTRL2 &= ~IT8XXX2_ESPI_INPUT_PAD_GATING; in espi_it8xxx2_enable_pad_ctrl()
1765 slave_reg->ESGCTRL2 |= IT8XXX2_ESPI_INPUT_PAD_GATING; in espi_it8xxx2_enable_pad_ctrl()
1853 struct espi_slave_regs *const slave_reg = in espi_it8xxx2_init() local
1907 slave_reg->ESGCTRL1 |= IT8XXX2_ESPI_INTERRUPT_ENABLE; in espi_it8xxx2_init()
1919 slave_reg->ESGCTRL2 |= IT8XXX2_ESPI_TO_WUC_ENABLE; in espi_it8xxx2_init()