Home
last modified time | relevance | path

Searched refs:sel (Results 1 – 9 of 9) sorted by relevance

/arm-trusted-firmware-2.8.0/drivers/rpi3/gpio/
A Drpi3_gpio.c50 uint32_t sel = mmio_read_32(reg_sel); in rpi3_gpio_get_select() local
52 ret = (sel >> shift) & 0x07; in rpi3_gpio_get_select()
75 uint32_t sel = mmio_read_32(reg_sel); in rpi3_gpio_set_select() local
78 sel = (sel & (~mask)) | ((fsel << shift) & mask); in rpi3_gpio_set_select()
79 mmio_write_32(reg_sel, sel); in rpi3_gpio_set_select()
/arm-trusted-firmware-2.8.0/drivers/st/clk/
A Dclk-stm32-core.c279 mmio_clrsetbits_32(address, mask, (sel << mux->shift) & mask); in clk_mux_set_parent()
302 uint8_t sel; in _clk_stm32_set_parent() local
321 for (sel = 0; sel < parents->num_parents; sel++) { in _clk_stm32_set_parent()
322 if (parents->id_parents[sel] == (uint16_t)clkp) { in _clk_stm32_set_parent()
330 err = clk_mux_set_parent(priv, pid, sel); in _clk_stm32_set_parent()
375 return clk_mux_set_parent(priv, pid, sel); in _clk_stm32_set_parent_by_index()
383 int sel; in _clk_stm32_get_parent() local
398 sel = clk->ops->get_parent(priv, clk_id); in _clk_stm32_get_parent()
400 sel = clk_mux_get_parent(priv, mux_id); in _clk_stm32_get_parent()
403 if ((sel >= 0) && (sel < parent->num_parents)) { in _clk_stm32_get_parent()
[all …]
A Dstm32mp1_clk.c275 .sel = (s), \
287 .sel = _UNKNOWN_SEL, \
299 .sel = (s), \
311 .sel = _UNKNOWN_SEL, \
770 sel = clk_sel_ref(s); in stm32mp1_clk_get_parent()
772 (sel->msk << sel->src)) >> sel->src; in stm32mp1_clk_get_parent()
773 if (p_sel < sel->nb_parent) { in stm32mp1_clk_get_parent()
2119 usbreg_mask = (uint32_t)sel->msk << sel->src; in stm32mp1_clk_init()
2121 usbreg_mask |= (uint32_t)sel->msk << sel->src; in stm32mp1_clk_init()
2226 p_sel = (mmio_read_32(rcc_base + sel->offset) >> sel->src) & in get_parent_id_parent()
[all …]
A Dclk-stm32-core.h171 int _clk_stm32_set_parent_by_index(struct stm32_clk_priv *priv, int clk, int sel);
211 int clk_mux_set_parent(struct stm32_clk_priv *priv, uint16_t pid, uint8_t sel);
A Dclk-stm32mp13.c1107 int sel = (data & CLK_SEL_MASK) >> CLK_SEL_SHIFT; in stm32_clk_configure_clk() local
1117 ret = _clk_stm32_set_parent_by_index(priv, clk_id, sel); in stm32_clk_configure_clk()
1134 int sel = (data & MUX_SEL_MASK) >> MUX_SEL_SHIFT; in stm32_clk_configure_mux() local
1136 return clk_mux_set_parent(priv, mux, sel); in stm32_clk_configure_mux()
/arm-trusted-firmware-2.8.0/plat/mediatek/drivers/gpio/
A Dmtgpio_common.c221 static void mt_set_gpio_pull_select_chip(uint32_t pin, int sel) in mt_set_gpio_pull_select_chip() argument
225 if (sel == MT_GPIO_PULL_NONE) { in mt_set_gpio_pull_select_chip()
227 } else if (sel == MT_GPIO_PULL_UP) { in mt_set_gpio_pull_select_chip()
229 } else if (sel == MT_GPIO_PULL_DOWN) { in mt_set_gpio_pull_select_chip()
/arm-trusted-firmware-2.8.0/include/dt-bindings/clock/
A Dstm32mp13-clksrc.h72 #define CLKSRC(mux_id, sel) ((CMD_MUX << CMD_SHIFT) |\ argument
74 (sel)))
77 #define MCO_SRC(mco_id, sel) ((CMD_CLK << CMD_SHIFT) |\ argument
79 (sel)) | CLK_ON_MASK)
85 #define CLK_SRC(clk_id, sel) ((CMD_CLK << CMD_SHIFT) |\ argument
87 (sel)) | CLK_ON_MASK)
/arm-trusted-firmware-2.8.0/plat/mediatek/mt8183/drivers/gpio/
A Dmtgpio.c287 void mt_set_gpio_pull_select_chip(uint32_t pin, int sel) in mt_set_gpio_pull_select_chip() argument
298 if (sel == GPIO_PULL_NONE) { in mt_set_gpio_pull_select_chip()
306 } else if (sel == GPIO_PULL_UP) { in mt_set_gpio_pull_select_chip()
313 } else if (sel == GPIO_PULL_DOWN) { in mt_set_gpio_pull_select_chip()
/arm-trusted-firmware-2.8.0/drivers/ufs/
A Dufs.c389 uint8_t index, uint8_t sel, in ufs_prepare_query() argument
408 query_upiu->ts.desc.selector = sel; in ufs_prepare_query()
589 static void ufs_query(uint8_t op, uint8_t idn, uint8_t index, uint8_t sel, in ufs_query() argument
609 ufs_prepare_query(&utrd, op, idn, index, sel, buf, size); in ufs_query()

Completed in 30 milliseconds