Searched refs:level_shift (Results 1 – 8 of 8) sorted by relevance
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | pci-ioda-tce.c | 295 unsigned long offset = 0, level_shift, total_allocated = 0; in pnv_pci_ioda2_table_alloc_pages() local 311 level_shift = entries_shift + 3; in pnv_pci_ioda2_table_alloc_pages() 312 level_shift = max_t(unsigned int, level_shift, PAGE_SHIFT); in pnv_pci_ioda2_table_alloc_pages() 314 if ((level_shift - 3) * levels + page_shift >= 55) in pnv_pci_ioda2_table_alloc_pages() 318 addr = pnv_pci_ioda2_table_do_alloc_pages(nid, level_shift, in pnv_pci_ioda2_table_alloc_pages() 336 uas = pnv_pci_ioda2_table_do_alloc_pages(nid, level_shift, in pnv_pci_ioda2_table_alloc_pages() 349 tbl->it_level_size = 1ULL << (level_shift - 3); in pnv_pci_ioda2_table_alloc_pages() 362 1ULL << (level_shift - 3), levels - 1); in pnv_pci_ioda2_table_alloc_pages() 365 1ULL << (level_shift - 3), levels - 1); in pnv_pci_ioda2_table_alloc_pages()
|
/openbmc/qemu/hw/arm/ |
H A D | smmu-internal.h | 86 static inline int level_shift(int level, int granule_sz) in level_shift() function 93 return ~(MAKE_64BIT_MASK(0, level_shift(level, granule_sz))); in level_page_mask() 100 return ((iova & MAKE_64BIT_MASK(0, inputsize)) >> level_shift(level, gsz)) & in iova_level_offset() 128 int shift = level_shift(start_level - 1, granule_sz); in pgd_concat_idx()
|
H A D | smmu-common.c | 81 uint64_t subpage_size = 1ULL << level_shift(level, tt->granule_sz); in smmu_iotlb_lookup_all_levels() 360 int n = level_shift(level, granule_sz); in get_block_pte_address() 460 uint64_t subpage_size = 1ULL << level_shift(level, granule_sz); in smmu_ptw_64_s1() 596 uint64_t subpage_size = 1ULL << level_shift(level, granule_sz); in smmu_ptw_64_s2()
|
/openbmc/qemu/target/i386/hvf/ |
H A D | x86_mmu.c | 67 int level_shift = pae ? 9 : 10; in gpt_entry() local 68 return (addr >> (level_shift * (level - 1) + 12)) & ((1 << level_shift) - 1); in gpt_entry()
|
/openbmc/linux/drivers/gpu/drm/msm/hdmi/ |
H A D | hdmi_audio.c | 219 uint32_t level_shift, bool down_mix) in msm_hdmi_audio_info_setup() argument 234 audio->infoframe.level_shift_value = level_shift; in msm_hdmi_audio_info_setup()
|
H A D | hdmi.h | 219 uint32_t level_shift, bool down_mix);
|
H A D | hdmi.c | 275 unsigned int level_shift = 0; /* 0dB */ in msm_hdmi_audio_hw_params() local 336 level_shift, down_mix); in msm_hdmi_audio_hw_params()
|
/openbmc/linux/security/keys/ |
H A D | keyring.c | 165 const unsigned level_shift = ASSOC_ARRAY_LEVEL_STEP; in hash_key_type_and_desc() local 204 hash |= (hash >> (ASSOC_ARRAY_KEY_CHUNK_SIZE - level_shift)) | 1; in hash_key_type_and_desc() 206 hash = (hash + (hash << level_shift)) & ~fan_mask; in hash_key_type_and_desc()
|