Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 25 of 29) sorted by relevance

12

/trusted-firmware-a-3.4.0/drivers/rpi3/gpio/
Drpi3_gpio.c47 int shift = 3 * (gpio % 10); in rpi3_gpio_get_select() local
51 ret = (sel >> shift) & 0x07; in rpi3_gpio_get_select()
72 int shift = 3 * (gpio % 10); in rpi3_gpio_set_select() local
75 uint32_t mask = U(0x07) << shift; in rpi3_gpio_set_select()
77 sel = (sel & (~mask)) | ((fsel << shift) & mask); in rpi3_gpio_set_select()
108 int shift = gpio % 32; in rpi3_gpio_get_value() local
112 if ((value >> shift) & 0x01) in rpi3_gpio_get_value()
120 int shift = gpio % 32; in rpi3_gpio_set_value() local
126 mmio_write_32(reg_clr, U(1) << shift); in rpi3_gpio_set_value()
129 mmio_write_32(reg_set, U(1) << shift); in rpi3_gpio_set_value()
[all …]
/trusted-firmware-a-3.4.0/plat/xilinx/zynqmp/pm_service/
Dpm_api_ioctl.c184 uint32_t val, mask, shift; in pm_ioctl_set_sgmii_mode() local
193 shift = 0; in pm_ioctl_set_sgmii_mode()
196 shift = 1; in pm_ioctl_set_sgmii_mode()
199 shift = 2; in pm_ioctl_set_sgmii_mode()
202 shift = 3; in pm_ioctl_set_sgmii_mode()
209 mask = GEM_SGMII_MASK << GEM_CLK_CTRL_OFFSET * shift; in pm_ioctl_set_sgmii_mode()
213 mask = SGMII_SD_MASK << SGMII_SD_OFFSET * shift; in pm_ioctl_set_sgmii_mode()
214 val = SGMII_PCS_SD_1 << SGMII_SD_OFFSET * shift; in pm_ioctl_set_sgmii_mode()
221 mask = GEM_CLK_CTRL_MASK << GEM_CLK_CTRL_OFFSET * shift; in pm_ioctl_set_sgmii_mode()
223 val <<= GEM_CLK_CTRL_OFFSET * shift; in pm_ioctl_set_sgmii_mode()
[all …]
/trusted-firmware-a-3.4.0/plat/rockchip/rk3288/drivers/soc/
Dsoc.h96 #define regs_update_bit_set(addr, shift) \ argument
97 regs_update_bits((addr), 0x1, 0x1, (shift))
98 #define regs_update_bit_clr(addr, shift) \ argument
99 regs_update_bits((addr), 0x0, 0x1, (shift))
102 uint32_t mask, uint32_t shift);
Dsoc.c91 uint32_t mask, uint32_t shift) in regs_update_bits() argument
97 tmp = orig & ~(mask << shift); in regs_update_bits()
98 tmp |= (val & mask) << shift; in regs_update_bits()
/trusted-firmware-a-3.4.0/drivers/st/etzpc/
Detzpc.c97 uint32_t shift = (decprot_id % IDS_PER_DECPROT_REGS) << DECPROT_SHIFT; in etzpc_configure_decprot() local
103 (uint32_t)ETZPC_DECPROT0_MASK << shift, in etzpc_configure_decprot()
104 masked_decprot << shift); in etzpc_configure_decprot()
115 uint32_t shift = (decprot_id % IDS_PER_DECPROT_REGS) << DECPROT_SHIFT; in etzpc_get_decprot() local
121 value = (mmio_read_32(base_decprot + ETZPC_DECPROT0) >> shift) & in etzpc_get_decprot()
134 uint32_t shift = BIT(decprot_id % IDS_PER_DECPROT_LOCK_REGS); in etzpc_lock_decprot() local
139 mmio_write_32(base_decprot + ETZPC_DECPROT_LOCK0, shift); in etzpc_lock_decprot()
/trusted-firmware-a-3.4.0/plat/rockchip/rk3368/drivers/soc/
Dsoc.h131 #define regs_updata_bit_set(addr, shift) \ argument
132 regs_updata_bits((addr), 0x1, 0x1, (shift))
133 #define regs_updata_bit_clr(addr, shift) \ argument
134 regs_updata_bits((addr), 0x0, 0x1, (shift))
137 uint32_t mask, uint32_t shift);
Dsoc.c111 uint32_t mask, uint32_t shift) in regs_updata_bits() argument
117 tmp = orig & ~(mask << shift); in regs_updata_bits()
118 tmp |= (val & mask) << shift; in regs_updata_bits()
/trusted-firmware-a-3.4.0/plat/rockchip/common/include/
Dplat_private.h52 #define BITS_SHIFT(bits, shift) (bits << (shift)) argument
56 #define BITS_WITH_WMASK(bits, msk, shift)\ argument
57 (BITS_SHIFT(bits, shift) | BITS_SHIFT(msk, (shift + REG_MSK_SHIFT)))
/trusted-firmware-a-3.4.0/drivers/renesas/common/ddr/
Ddram_sub_func.c41 uint32_t shift; in rcar_dram_get_boot_status() local
46 shift = GPIO_BKUP_TRG_SHIFT_CONDOR; in rcar_dram_get_boot_status()
49 shift = GPIO_BKUP_TRG_SHIFT_EBISU; in rcar_dram_get_boot_status()
52 shift = GPIO_BKUP_TRG_SHIFT_SALVATOR; in rcar_dram_get_boot_status()
57 if (reg_data & BIT(shift)) in rcar_dram_get_boot_status()
/trusted-firmware-a-3.4.0/plat/socionext/uniphier/
Duniphier_soc_info.c16 unsigned int shift) in uniphier_get_revision_field() argument
25 return (mmio_read_32(reg) >> shift) & mask; in uniphier_get_revision_field()
/trusted-firmware-a-3.4.0/plat/mediatek/mt8173/drivers/spm/
Dspm_mcdi.c410 unsigned int pwr_status, shift, i, flag = 0; in spm_mcdi_set_cputop_pwrctrl_for_cluster_off() local
419 shift = i + PCM_MCDI_CA72_PWRSTA_SHIFT; in spm_mcdi_set_cputop_pwrctrl_for_cluster_off()
420 flag |= (pwr_status & (1 << shift)) >> shift; in spm_mcdi_set_cputop_pwrctrl_for_cluster_off()
429 shift = i + PCM_MCDI_CA53_PWRSTA_SHIFT; in spm_mcdi_set_cputop_pwrctrl_for_cluster_off()
430 flag |= (pwr_status & (1 << shift)) >> shift; in spm_mcdi_set_cputop_pwrctrl_for_cluster_off()
/trusted-firmware-a-3.4.0/plat/mediatek/common/drivers/rtc/
Drtc_mt6359p.c13 uint16_t mask, uint16_t shift) in RTC_Config_Interface() argument
19 pmic_reg &= ~(mask << shift); in RTC_Config_Interface()
20 pmic_reg |= (data << shift); in RTC_Config_Interface()
/trusted-firmware-a-3.4.0/drivers/brcm/
Diproc_gpio.c58 unsigned int shift = IPROC_GPIO_SHIFT(gpio); in gpio_set_bit() local
63 val |= BIT(shift); in gpio_set_bit()
65 val &= ~BIT(shift); in gpio_set_bit()
73 unsigned int shift = IPROC_GPIO_SHIFT(gpio); in gpio_get_bit() local
75 return !!(mmio_read_32(base + offset) & BIT(shift)); in gpio_get_bit()
/trusted-firmware-a-3.4.0/plat/rockchip/px30/drivers/soc/
Dsoc.h13 #define BITS_WMSK(msk, shift) ((msk) << (shift + REG_MSK_SHIFT)) argument
/trusted-firmware-a-3.4.0/plat/rockchip/rk3328/drivers/soc/
Dsoc.h21 #define BITS_WMSK(msk, shift) ((msk) << (shift + REG_MSK_SHIFT)) argument
/trusted-firmware-a-3.4.0/drivers/nxp/ddr/nxp-ddr/
Dddrc.c63 uint32_t map, shift, highest; in bist() local
83 shift = (3U - i % 4U) * 8U + 2U; in bist()
84 map = (temp32 >> shift) & U(0x3F); in bist()
93 shift = (3U - pos % 4U) * 8U + 2U; in bist()
95 pos >> 2U, shift, map_save); in bist()
96 temp32 = map_save & ~(U(0x3F) << shift); in bist()
97 temp32 |= 8U << shift; in bist()
/trusted-firmware-a-3.4.0/drivers/st/gpio/
Dstm32_gpio.c257 size_t shift = (pin - GPIO_ALT_LOWER_LIMIT) << 2; in set_gpio() local
260 (uint32_t)GPIO_ALTERNATE_MASK << shift, in set_gpio()
261 alternate << shift); in set_gpio()
/trusted-firmware-a-3.4.0/lib/aarch32/
Dcache_helpers.S84 .macro dcsw_op shift, fw, ls
86 ubfx r3, r2, \shift, \fw
/trusted-firmware-a-3.4.0/plat/marvell/armada/a8k/common/
Dplat_pm.c504 unsigned int shift; in plat_marvell_power_off_gpio() local
549 shift = pm_cfg->cfg.gpio.info[gpio].gpio_index % 32; in plat_marvell_power_off_gpio()
551 reg &= ~(1 << shift); in plat_marvell_power_off_gpio()
553 reg |= (1 << shift); in plat_marvell_power_off_gpio()
/trusted-firmware-a-3.4.0/lib/aarch64/
Dcache_helpers.S112 .macro dcsw_op shift, fw, ls
114 ubfx x3, x9, \shift, \fw
/trusted-firmware-a-3.4.0/drivers/st/clk/
Dclk-stm32-core.c295 mask = MASK_WIDTH_SHIFT(mux->width, mux->shift); in clk_mux_set_parent()
297 mmio_clrsetbits_32(address, mask, (sel << mux->shift) & mask); in clk_mux_set_parent()
378 mask = MASK_WIDTH_SHIFT(mux->width, mux->shift); in clk_mux_get_parent()
380 return (mmio_read_32(priv->base + mux->offset) & mask) >> mux->shift; in clk_mux_get_parent()
750 val = mmio_read_32(priv->base + divider->offset) >> divider->shift; in clk_stm32_div_get_value()
799 mask = MASK_WIDTH_SHIFT(divider->width, divider->shift); in clk_stm32_set_div()
800 mmio_clrsetbits_32(address, mask, (value << divider->shift) & mask); in clk_stm32_set_div()
Dclk-stm32-core.h12 uint8_t shift; member
30 uint8_t shift; member
/trusted-firmware-a-3.4.0/include/arch/aarch64/
Darch_helpers.h599 unsigned int shift = ID_AA64PFR0_EL1_SHIFT * el; in el_implemented() local
601 return (read_id_aa64pfr0_el1() >> shift) & ID_AA64PFR0_ELX_MASK; in el_implemented()
/trusted-firmware-a-3.4.0/drivers/nxp/ddr/phy-gen2/
Dphy.c2290 int shift = read ? 4 : 0; in parse_odt() local
2298 odt[i] |= (1 << i) << shift; in parse_odt()
2308 odt[j] |= (1 << i) << shift; in parse_odt()
2320 odt[j] |= (1 << i) << shift; in parse_odt()
2329 odt[j] |= (1 << i) << shift; in parse_odt()
2338 odt[j] |= (1 << i) << shift; in parse_odt()
2351 odt[j] |= (1 << i) << shift; in parse_odt()
/trusted-firmware-a-3.4.0/docs/components/
Dromlib-design.rst122 This will have for effect to shift down all the BL images by 1 page.

12