Home
last modified time | relevance | path

Searched refs:GET_FIELD (Results 1 – 7 of 7) sorted by relevance

/Zephyr-latest/drivers/espi/
Despi_taf_npcx.c65 GET_FIELD(inst->FLASHBASE, NPCX_FLASHBASE_FLBASE_ADDR) \
69 GET_FIELD(inst->FLASH_PRTR_BADDR[i], NPCX_FLASH_PRTR_BADDR) \
73 GET_FIELD(inst->FLASH_PRTR_HADDR[i], NPCX_FLASH_PRTR_HADDR) \
113 override_rd = GET_FIELD(inst->FLASH_RGN_TAG_OVR[i], NPCX_FLASH_TAG_OVR_RPR); in espi_taf_check_read_protect()
143 override_wr = GET_FIELD(inst->FLASH_RGN_TAG_OVR[i], NPCX_FLASH_TAG_OVR_WPR); in espi_taf_check_write_protect()
230 GET_FIELD(inst->FLASHCFG, NPCX_FLASHCFG_FLCAPA) & NPCX_FLASH_SHARING_CAP_SUPP_TAF; in espi_taf_npcx_channel_ready()
333 uint8_t flash_req_size = GET_FIELD(inst->FLASHCFG, NPCX_FLASHCFG_FLASHREQSIZE); in espi_taf_npcx_flash_read()
334 uint8_t target_max_size = GET_FIELD(inst->FLASHCFG, NPCX_FLASHCFG_FLREQSUP); in espi_taf_npcx_flash_read()
Despi_npcx.c298 uint8_t chg_mask = GET_FIELD(inst->ESPICFG, NPCX_ESPICFG_HCHANS_FIELD) in espi_bus_cfg_update_isr()
299 ^ GET_FIELD(inst->ESPICFG, NPCX_ESPICFG_CHANS_FIELD); in espi_bus_cfg_update_isr()
332 LOG_DBG("ESPI CFG EC Updated! 0x%02X", GET_FIELD(inst->ESPICFG, in espi_bus_cfg_update_isr()
517 uint8_t valid = GET_FIELD(inst->VWEVSM[idx], NPCX_VWEVSM_VALID); in espi_vw_config_output()
538 uint8_t valid = GET_FIELD(inst->VWGPSM[idx], NPCX_VWEVSM_VALID); in espi_vw_gpio_config_output()
539 uint8_t val = GET_FIELD(inst->VWGPSM[idx], NPCX_VWEVSM_WIRE); in espi_vw_gpio_config_output()
741 cur_io_mode = GET_FIELD(inst->ESPICFG, NPCX_ESPICFG_IOMODE_FIELD); in espi_npcx_configure()
837 val = GET_FIELD(inst->VWGPSM[reg_idx], NPCX_VWEVSM_WIRE); in espi_npcx_send_vwire()
839 val = GET_FIELD(inst->VWEVSM[reg_idx], NPCX_VWEVSM_WIRE); in espi_npcx_send_vwire()
873 val = GET_FIELD(inst->VWEVMS[reg_idx], in espi_npcx_receive_vwire()
[all …]
/Zephyr-latest/soc/nuvoton/npcx/common/reg/
Dreg_access.h20 #define GET_FIELD(reg, field) \ macro
/Zephyr-latest/drivers/i3c/
Di3c_npcx.c334 return GET_FIELD(inst->MSTATUS, NPCX_I3C_MSTATUS_STATE); in npcx_i3c_state_get()
807 if (GET_FIELD(inst->MDATACTRL, NPCX_I3C_MDATACTRL_RXCOUNT) == 0) { in npcx_i3c_xfer_read_fifo()
1356 rx_count = GET_FIELD(inst->MDATACTRL, NPCX_I3C_MDATACTRL_RXCOUNT); in npcx_i3c_do_daa()
1649 ibitype = GET_FIELD(inst->MSTATUS, NPCX_I3C_MSTATUS_IBITYPE); in npcx_i3c_ibi_work()
1650 ibiaddr = GET_FIELD(inst->MSTATUS, NPCX_I3C_MSTATUS_IBIADDR); in npcx_i3c_ibi_work()
1988 if (GET_FIELD(inst->MCONFIG, NPCX_I3C_MCONFIG_CTRENA) != MCONFIG_CTRENA_CAPABLE) { in npcx_i3c_target_ibi_raise()
2188 if (WAIT_FOR((GET_FIELD(inst->DATACTRL, NPCX_I3C_DATACTRL_RXCOUNT) == 0), in npcx_i3c_target_xfer_end_handle()
2191 GET_FIELD(inst->DATACTRL, NPCX_I3C_DATACTRL_RXCOUNT)); in npcx_i3c_target_xfer_end_handle()
2416 LOG_DBG("ppbaud: %d", GET_FIELD(inst->MCONFIG, NPCX_I3C_MCONFIG_PPBAUD)); in npcx_i3c_freq_init()
2417 LOG_DBG("odbaud: %d", GET_FIELD(inst->MCONFIG, NPCX_I3C_MCONFIG_ODBAUD)); in npcx_i3c_freq_init()
[all …]
/Zephyr-latest/drivers/ps2/
Dps2_npcx_controller.c254 active_ch = GET_FIELD(inst->PSTAT, NPCX_PSTAT_ACH); in ps2_npcx_ctrl_isr()
/Zephyr-latest/drivers/adc/
Dadc_npcx.c208 result = GET_FIELD(CHNDAT(config->base, channel), in adc_npcx_isr()
/Zephyr-latest/drivers/serial/
Duart_npcx.c204 return !(GET_FIELD(inst->UFTSTS, NPCX_UFTSTS_TEMPTY_LVL) == 0); in uart_npcx_tx_fifo_ready()