/optee_os-3.20.0/lib/libutils/isoc/arch/arm/ |
A D | arm32_aeabi_shift.c | 12 long long __aeabi_llsl(long long a, int shift) in __aeabi_llsl() argument 18 if (shift >= 32) { in __aeabi_llsl() 19 hi = lo << (shift - 32); in __aeabi_llsl() 21 } else if (shift > 0) { in __aeabi_llsl() 22 hi = (hi << shift) | (lo >> (32 - shift)); in __aeabi_llsl() 23 lo = lo << shift; in __aeabi_llsl() 38 if (shift >= 32) { in __aeabi_llsr() 39 lo = hi >> (shift - 32); in __aeabi_llsr() 41 } else if (shift > 0) { in __aeabi_llsr() 42 lo = (lo >> shift) | (hi << (32 - shift)); in __aeabi_llsr() [all …]
|
/optee_os-3.20.0/core/arch/arm/plat-rockchip/ |
A D | common.h | 23 #define BITS_WMSK(msk, shift) SHIFT_U32(msk, (shift) + REG_MSK_SHIFT) argument 24 #define BITS_WITH_WMASK(bits, msk, shift) \ argument 25 (SHIFT_U32(bits, shift) | BITS_WMSK(msk, shift))
|
/optee_os-3.20.0/core/drivers/clk/sam/ |
A D | at91_peripheral.c | 35 int shift = 0; in clk_sam9x5_peripheral_autodiv() local 46 for (shift = 0; shift < PERIPHERAL_MAX_SHIFT; shift++) { in clk_sam9x5_peripheral_autodiv() 47 if (parent_rate >> shift <= periph->range.max) in clk_sam9x5_peripheral_autodiv() 53 periph->div = shift; in clk_sam9x5_peripheral_autodiv() 117 unsigned int shift = 0; in clk_sam9x5_peripheral_set_rate() local 130 for (shift = 0; shift <= PERIPHERAL_MAX_SHIFT; shift++) { in clk_sam9x5_peripheral_set_rate() 131 if (parent_rate >> shift == rate) { in clk_sam9x5_peripheral_set_rate() 133 periph->div = shift; in clk_sam9x5_peripheral_set_rate()
|
A D | at91_programmable.c | 99 int shift = 0; in clk_programmable_set_rate() local 105 shift = div - 1; in clk_programmable_set_rate() 107 if (shift > layout->pres_mask) in clk_programmable_set_rate() 110 shift = flsi(div) - 1; in clk_programmable_set_rate() 112 if (div != (1ULL << shift)) in clk_programmable_set_rate() 115 if (shift >= layout->pres_mask) in clk_programmable_set_rate() 121 shift << layout->pres_shift); in clk_programmable_set_rate()
|
/optee_os-3.20.0/core/drivers/ |
A D | bcm_gpio.c | 60 unsigned int shift = IPROC_GPIO_SHIFT(gpio); in iproc_set_bit() local 64 io_setbits32(gc->base + offset, BIT(shift)); in iproc_set_bit() 70 unsigned int shift = IPROC_GPIO_SHIFT(gpio); in iproc_clr_bit() local 74 io_clrbits32(gc->base + offset, BIT(shift)); in iproc_clr_bit() 90 unsigned int shift = IPROC_GPIO_SHIFT(gpio); in iproc_gpio_get() local 95 if (io_read32(gc->base + offset) & BIT(shift)) in iproc_gpio_get() 114 unsigned int shift = IPROC_GPIO_SHIFT(gpio); in iproc_gpio_get_dir() local 119 if (io_read32(gc->base + offset) & BIT(shift)) in iproc_gpio_get_dir() 129 unsigned int shift = IPROC_GPIO_SHIFT(gpio); in iproc_gpio_get_itr() local 134 if (io_read32(gc->base + offset) & BIT(shift)) in iproc_gpio_get_itr() [all …]
|
A D | stm32_etzpc.c | 106 uint32_t shift = (decprot_id % IDS_PER_DECPROT_REGS) << DECPROT_SHIFT; in etzpc_configure_decprot() local 113 ETZPC_DECPROT0_MASK << shift, in etzpc_configure_decprot() 114 masked_decprot << shift); in etzpc_configure_decprot() 127 uint32_t shift = (decprot_id % IDS_PER_DECPROT_REGS) << DECPROT_SHIFT; in etzpc_get_decprot() local 133 value = (io_read32(base + ETZPC_DECPROT0 + offset) >> shift) & in etzpc_get_decprot()
|
A D | stm32_gpio.c | 124 size_t shift = (pin - GPIO_ALT_LOWER_LIMIT) << 2; in set_gpio_cfg() local 127 GPIO_ALTERNATE_MASK << shift, in set_gpio_cfg() 128 cfg->af << shift); in set_gpio_cfg()
|
/optee_os-3.20.0/core/mm/ |
A D | tee_mm.c | 39 uint8_t shift, uint32_t flags) in tee_mm_init() argument 47 lo = ROUNDUP(lo, 1 << shift); in tee_mm_init() 49 size = ROUNDDOWN(size - rounded, 1 << shift); in tee_mm_init() 55 pool->shift = shift; in tee_mm_init() 104 return sz << pool->shift; in tee_mm_stats_allocated() 163 psize = ((size - 1) >> pool->shift) + 1; in tee_mm_alloc() 189 if ((entry->offset << pool->shift) < size) { in tee_mm_alloc() 199 pool->shift); in tee_mm_alloc() 240 (offshi << pool->shift) > pool->size) in fit_in_gap() 271 offslo = (base - pool->lo) >> pool->shift; in tee_mm_alloc2() [all …]
|
A D | core_mmu.c | 853 va += BIT64(tbl_info.shift); in dump_xlat_table() 1562 pa += BIT64(tbl_info->shift); in set_region() 1614 size_t granule = BIT(pg_info->shift); in set_pg_region() 1680 block_size = BIT64(tbl_info.shift); in core_mmu_map_region() 1755 if (tbl_info.shift == SMALL_PAGE_SHIFT) in core_mmu_map_pages() 1828 if (tbl_info.shift == SMALL_PAGE_SHIFT) in core_mmu_map_contiguous_pages() 1879 if (tbl_info.shift != SMALL_PAGE_SHIFT) in core_mmu_unmap_pages() 1942 granule = BIT(tbl_info.shift); in core_mmu_remove_mapping() 2028 granule = BIT64(tbl_info.shift); in core_mmu_add_mapping() 2140 paddr_t mask = BIT64(ti.shift) - 1; in check_pa_matches_va()
|
/optee_os-3.20.0/lib/libutils/isoc/newlib/ |
A D | str-two-way.h | 355 size_t shift; in two_way_long_needle() local 361 shift = shift_table[CANON_ELEMENT (haystack[j + needle_len - 1])]; in two_way_long_needle() 362 if (0 < shift) in two_way_long_needle() 364 if (memory && shift < period) in two_way_long_needle() 369 shift = needle_len - period; in two_way_long_needle() 372 j += shift; in two_way_long_needle() 406 size_t shift; in two_way_long_needle() local 413 shift = shift_table[CANON_ELEMENT (haystack[j + needle_len - 1])]; in two_way_long_needle() 414 if (0 < shift) in two_way_long_needle() 416 j += shift; in two_way_long_needle()
|
/optee_os-3.20.0/lib/libutils/ext/include/ |
A D | util.h | 122 #define SHIFT_U32(v, shift) ((v) << (shift)) argument 123 #define SHIFT_U64(v, shift) ((v) << (shift)) argument 127 #define SHIFT_U32(v, shift) ((uint32_t)(v) << (shift)) argument 128 #define SHIFT_U64(v, shift) ((uint64_t)(v) << (shift)) argument
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb3/ |
A D | ocb3_init.c | 15 int idx, shift; in s_ocb3_int_calc_offset_zero() local 48 shift = (bottom % 8); in s_ocb3_int_calc_offset_zero() 50 ocb->Offset_current[x] = iStretch[idx+x] << shift; in s_ocb3_int_calc_offset_zero() 51 if (shift > 0) { in s_ocb3_int_calc_offset_zero() 52 ocb->Offset_current[x] |= iStretch[idx+x+1] >> (8-shift); in s_ocb3_int_calc_offset_zero()
|
/optee_os-3.20.0/core/include/mm/ |
A D | tee_mm.h | 32 uint8_t shift; /* size shift */ member 74 uint8_t shift, uint32_t flags);
|
A D | core_mmu.h | 375 unsigned shift; member 442 return (va - tbl_info->va_base) >> tbl_info->shift; in core_mmu_va2idx() 454 return (idx << tbl_info->shift) + tbl_info->va_base; in core_mmu_idx2va() 466 return pa & ((1 << tbl_info->shift) - 1); in core_mmu_get_block_offset()
|
/optee_os-3.20.0/core/arch/arm/crypto/ |
A D | aes_armv8a_ce.c | 59 static uint32_t ror32(uint32_t val, unsigned int shift) in ror32() argument 61 return (val >> shift) | (val << (32 - shift)); in ror32()
|
/optee_os-3.20.0/core/drivers/clk/ |
A D | clk-stm32-core.c | 44 uint32_t mask = MASK_WIDTH_SHIFT(mux->width, mux->shift); in stm32_mux_get_parent() 46 return (io_read32(priv->base + mux->offset) & mask) >> mux->shift; in stm32_mux_get_parent() 53 uint32_t mask = MASK_WIDTH_SHIFT(mux->width, mux->shift); in stm32_mux_set_parent() 56 io_clrsetbits32(address, mask, (sel << mux->shift) & mask); in stm32_mux_set_parent() 258 val = io_read32(priv->base + divider->offset) >> divider->shift; in stm32_div_get_value() 277 mask = MASK_WIDTH_SHIFT(divider->width, divider->shift); in stm32_div_set_value() 278 io_clrsetbits32(address, mask, (value << divider->shift) & mask); in stm32_div_set_value()
|
A D | clk-stm32-core.h | 13 uint8_t shift; member 31 uint8_t shift; member
|
/optee_os-3.20.0/core/arch/arm/kernel/ |
A D | cache_helpers_a32.S | 101 .macro dcsw_op shift, fw, ls 103 ubfx r3, r2, \shift, \fw
|
A D | cache_helpers_a64.S | 93 .macro dcsw_op shift, fw, ls 95 ubfx x3, x9, \shift, \fw
|
/optee_os-3.20.0/core/lib/libtomcrypt/ |
A D | mpi_desc.c | 169 unsigned int shift = 31; in compare_d() local 170 uint32_t mask = BIT(shift) - 1; in compare_d() 176 v >>= shift; in compare_d() 179 mbedtls_mpi_shift_l(&bn, shift); in compare_d()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | ecp_curves.c | 1404 size_t adjust, size_t shift, mbedtls_mpi_uint mask ) in ecp_mod_koblitz() argument 1429 if( shift != 0 ) in ecp_mod_koblitz() 1430 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &M, shift ) ); in ecp_mod_koblitz() 1451 if( shift != 0 ) in ecp_mod_koblitz() 1452 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &M, shift ) ); in ecp_mod_koblitz()
|
/optee_os-3.20.0/core/arch/arm/mm/ |
A D | core_mmu_v7.c | 492 tbl_info->shift = SECTION_SHIFT; in core_mmu_set_info_table() 495 tbl_info->shift = SMALL_PAGE_SHIFT; in core_mmu_set_info_table()
|
A D | mobj_dyn_shm.c | 118 assert(r->mm->pool->shift == SMALL_PAGE_SHIFT); in reg_shm_unmap_helper()
|
A D | core_mmu_lpae.c | 953 tbl_info->shift = XLAT_ADDR_SHIFT(level); in core_mmu_set_info_table() 1031 tbl_info->shift = level_size_shift; in core_mmu_find_table()
|
/optee_os-3.20.0/core/arch/arm/dts/ |
A D | stm32mp157c-ev1.dts | 192 data-shift = <2>; /* lines 9:2 are used */
|