Home
last modified time | relevance | path

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

12

/optee_os/lib/libutils/isoc/arch/arm/
A Darm32_aeabi_shift.c12 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/core/drivers/clk/sam/
A Dat91_peripheral.c35 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 Dat91_programmable.c99 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/core/drivers/
A Dbcm_gpio.c60 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 Dstm32_etzpc.c106 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 Dstm32_gpio.c124 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/core/arch/arm/plat-rockchip/
A Dcommon.h23 #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/core/arch/arm/mm/
A Dtee_mm.c39 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 Dcore_mmu.c774 va += BIT64(tbl_info.shift); in dump_xlat_table()
1554 pa += BIT64(tbl_info->shift); in set_region()
1612 size_t granule = BIT(pg_info->shift); in set_pg_region()
1679 block_size = BIT64(tbl_info.shift); in core_mmu_map_region()
1751 if (tbl_info.shift == SMALL_PAGE_SHIFT) in core_mmu_map_pages()
1824 if (tbl_info.shift == SMALL_PAGE_SHIFT) in core_mmu_map_contiguous_pages()
1875 if (tbl_info.shift != SMALL_PAGE_SHIFT) in core_mmu_unmap_pages()
1935 granule = BIT(tbl_info.shift); in core_mmu_remove_mapping()
2021 granule = BIT64(tbl_info.shift); in core_mmu_add_mapping()
2199 paddr_t mask = BIT64(ti.shift) - 1; in check_pa_matches_va()
/optee_os/lib/libutils/isoc/newlib/
A Dstr-two-way.h355 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/out/arm/export-ta_arm32/host_include/
A Dutil.h122 #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/out/arm/export-ta_arm64/include/
A Dutil.h122 #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/out/arm/export-ta_arm64/host_include/
A Dutil.h122 #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
A Dconf.h98 #define CFG_FTRACE_BUF_WHEN_FULL shift
/optee_os/lib/libutils/ext/include/
A Dutil.h122 #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/out/arm/export-ta_arm32/include/
A Dutil.h122 #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/core/lib/libtomcrypt/src/encauth/ocb3/
A Docb3_init.c22 int idx, shift; in _ocb3_int_calc_offset_zero() local
55 shift = (bottom % 8); in _ocb3_int_calc_offset_zero()
57 ocb->Offset_current[x] = iStretch[idx+x] << shift; in _ocb3_int_calc_offset_zero()
58 if (shift > 0) { in _ocb3_int_calc_offset_zero()
59 ocb->Offset_current[x] |= iStretch[idx+x+1] >> (8-shift); in _ocb3_int_calc_offset_zero()
/optee_os/core/include/mm/
A Dtee_mm.h32 uint8_t shift; /* size shift */ member
74 uint8_t shift, uint32_t flags);
/optee_os/core/arch/arm/crypto/
A Daes_armv8a_ce.c59 static uint32_t ror32(uint32_t val, unsigned int shift) in ror32() argument
61 return (val >> shift) | (val << (32 - shift)); in ror32()
/optee_os/core/arch/arm/include/mm/
A Dcore_mmu.h475 unsigned shift; member
542 return (va - tbl_info->va_base) >> tbl_info->shift; in core_mmu_va2idx()
554 return (idx << tbl_info->shift) + tbl_info->va_base; in core_mmu_idx2va()
566 return pa & ((1 << tbl_info->shift) - 1); in core_mmu_get_block_offset()
/optee_os/core/arch/arm/kernel/
A Dcache_helpers_a32.S101 .macro dcsw_op shift, fw, ls
103 ubfx r3, r2, \shift, \fw
A Dcache_helpers_a64.S93 .macro dcsw_op shift, fw, ls
95 ubfx x3, x9, \shift, \fw
/optee_os/core/lib/libtomcrypt/
A Dmpi_desc.c169 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/lib/libmbedtls/mbedtls/library/
A Decp_curves.c1402 size_t adjust, size_t shift, mbedtls_mpi_uint mask ) in ecp_mod_koblitz() argument
1427 if( shift != 0 ) in ecp_mod_koblitz()
1428 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &M, shift ) ); in ecp_mod_koblitz()
1449 if( shift != 0 ) in ecp_mod_koblitz()
1450 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &M, shift ) ); in ecp_mod_koblitz()
/optee_os/out/arm/include/generated/
A Dconf.h98 #define CFG_FTRACE_BUF_WHEN_FULL shift

Completed in 41 milliseconds

12