Searched refs:ctrl_reg (Results 1 – 6 of 6) sorted by relevance
/Zephyr-latest/drivers/pcie/host/ |
D | vc.c | 30 regs->ctrl_reg.raw = pcie_conf_read(bdf, base + in pcie_vc_cap_lookup() 47 regs->ctrl_reg.raw = in pcie_vc_load_resources_regs() 92 if (idx > 0 && res_regs[idx].ctrl_reg.vc_enable == 1) { in pcie_vc_enable() 99 res_regs[idx].ctrl_reg.vc_enable = 1; in pcie_vc_enable() 122 res_regs[idx].ctrl_reg.vc_enable = 0; in pcie_vc_disable() 162 res_regs[idx].ctrl_reg.vc_id = idx; in pcie_vc_map_tc() 166 res_regs[idx].ctrl_reg.pa_select = PCIE_VC_PA_RR; in pcie_vc_map_tc() 168 res_regs[idx].ctrl_reg.tc_vc_map = map->vc_tc[idx]; in pcie_vc_map_tc()
|
D | vc.h | 56 } ctrl_reg; member 106 } ctrl_reg; member
|
/Zephyr-latest/drivers/usb_c/ppc/ |
D | nxp_nx20p3483.c | 124 uint8_t ctrl_reg; in nx20p3483_exit_dead_battery_mode() local 127 ret = read_reg(dev, NX20P3483_REG_DEVICE_CTRL, &ctrl_reg); in nx20p3483_exit_dead_battery_mode() 132 ctrl_reg |= NX20P3483_REG_DEVICE_CTRL_DB_EXIT; in nx20p3483_exit_dead_battery_mode() 133 ret = write_reg(dev, NX20P3483_REG_DEVICE_CTRL, ctrl_reg); in nx20p3483_exit_dead_battery_mode() 182 uint8_t ctrl_reg; in nx20p3483_set_vbus_discharge() local 185 ret = read_reg(dev, NX20P3483_REG_DEVICE_CTRL, &ctrl_reg); in nx20p3483_set_vbus_discharge() 191 ctrl_reg |= NX20P3483_REG_DEVICE_CTRL_VBUSDIS_EN; in nx20p3483_set_vbus_discharge() 193 ctrl_reg &= ~NX20P3483_REG_DEVICE_CTRL_VBUSDIS_EN; in nx20p3483_set_vbus_discharge() 196 ret = write_reg(dev, NX20P3483_REG_DEVICE_CTRL, ctrl_reg); in nx20p3483_set_vbus_discharge()
|
/Zephyr-latest/drivers/reset/ |
D | reset_lpc_syscon.c | 20 const volatile uint32_t *ctrl_reg = ((uint32_t *)dev->config)+(LPC_RESET_OFFSET(id)); in reset_nxp_syscon_status() local 21 *status = (uint8_t)FIELD_GET((uint32_t)LPC_RESET_BIT(id), *ctrl_reg); in reset_nxp_syscon_status()
|
/Zephyr-latest/drivers/spi/ |
D | spi_gecko_usart.c | 122 mem_addr_t ctrl_reg = (mem_addr_t)&gecko_config->base->CTRL; in spi_config() local 151 sys_set_bit(ctrl_reg, _USART_CTRL_CSINV_SHIFT); in spi_config() 153 sys_clear_bit(ctrl_reg, _USART_CTRL_CSINV_SHIFT); in spi_config() 163 sys_clear_bit(ctrl_reg, _USART_CTRL_MSBF_SHIFT); in spi_config() 165 sys_set_bit(ctrl_reg, _USART_CTRL_MSBF_SHIFT); in spi_config()
|
/Zephyr-latest/drivers/dac/ |
D | dac_ad569x.c | 150 uint16_t ctrl_reg = AD569X_CTRL_GAIN(config->gain) | in ad569x_init() local 154 ret = ad569x_write(dev, AD569X_CMD_CONFIGURE, ctrl_reg); in ad569x_init()
|