| /linux/lib/ |
| H A D | sys_info.c | 17 [ilog2(SYS_INFO_TASKS)] = "tasks", 18 [ilog2(SYS_INFO_MEM)] = "mem", 19 [ilog2(SYS_INFO_TIMERS)] = "timers", 20 [ilog2(SYS_INFO_LOCKS)] = "locks", 21 [ilog2(SYS_INFO_FTRACE)] = "ftrace", 22 [ilog2(SYS_INFO_PANIC_CONSOLE_REPLAY)] = "", 23 [ilog2(SYS_INFO_ALL_BT)] = "all_bt", 24 [ilog2(SYS_INFO_BLOCKED_TASKS)] = "blocked_tasks",
|
| H A D | generic-radix-tree.c | 40 if (n && ilog2(offset) < genradix_depth_shift(level)) in __genradix_ptr_alloc() 105 if (ilog2(iter->offset) >= genradix_depth_shift(level)) in __genradix_iter_peek() 159 if (ilog2(iter->offset) >= genradix_depth_shift(level)) { in __genradix_iter_peek_prev()
|
| /linux/include/linux/ |
| H A D | log2.h | 156 #define ilog2(n) \ macro 178 (1UL << (ilog2((n) - 1) + 1)) \ 194 (1UL << ilog2(n))) : \ 201 return n > 1 ? ilog2(n - 1) + 1 : 0; in __order_base_2() 221 ilog2((n) - 1) + 1) : \ 254 ? 1 : ilog2(n) + 1 \
|
| H A D | t10-pi.h | 42 unsigned int shift = ilog2(queue_logical_block_size(rq->q)); in t10_pi_ref_tag() 67 unsigned int shift = ilog2(queue_logical_block_size(rq->q)); in ext_pi_ref_tag()
|
| H A D | assoc_array_priv.h | 19 #define ASSOC_ARRAY_LEVEL_STEP (ilog2(ASSOC_ARRAY_FAN_OUT)) 22 #define ASSOC_ARRAY_KEY_CHUNK_SHIFT (ilog2(BITS_PER_LONG))
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_resources.c | 52 context->rq_size_stride = ilog2(size) << 3 | (ilog2(stride) - 4); in mlx4_en_fill_qp_context() 54 context->sq_size_stride = ilog2(size) << 3 | (ilog2(stride) - 4); in mlx4_en_fill_qp_context() 59 context->sq_size_stride = ilog2(TXBB_SIZE) - 4; in mlx4_en_fill_qp_context()
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_lmtt_ml.c | 67 #define LMTT_ML_PTE_MAX_NUM BIT(35 - ilog2(SZ_2M)) 110 return ilog2(SZ_32G); in lmtt_ml_pte_shift() 112 return ilog2(SZ_2M); in lmtt_ml_pte_shift()
|
| H A D | xe_lmtt_2l.c | 67 #define LMTT_2L_PTE_MAX_NUM BIT(LMTT_2L_HAW - ilog2(SZ_2M)) 106 return ilog2(SZ_2M); in lmtt_2l_pte_shift()
|
| /linux/tools/include/linux/ |
| H A D | log2.h | 71 #define ilog2(n) \ macro 155 (1UL << (ilog2((n) - 1) + 1)) \ 171 (1UL << ilog2(n))) : \
|
| /linux/arch/powerpc/include/asm/ |
| H A D | cpufeature.h | 24 #define PPC_MODULE_FEATURE_VEC_CRYPTO (32 + ilog2(PPC_FEATURE2_VEC_CRYPTO)) 25 #define PPC_MODULE_FEATURE_P10 (32 + ilog2(PPC_FEATURE2_ARCH_3_1))
|
| /linux/arch/arm/include/asm/ |
| H A D | cpufeature.h | 26 #define __hwcap_feature(x) ilog2(HWCAP_ ## x) 27 #define __hwcap2_feature(x) (32 + ilog2(HWCAP2_ ## x))
|
| /linux/fs/proc/ |
| H A D | task_mmu.c | 1140 [ilog2(VM_READ)] = "rd", in show_smap_vma_flags() 1141 [ilog2(VM_WRITE)] = "wr", in show_smap_vma_flags() 1142 [ilog2(VM_EXEC)] = "ex", in show_smap_vma_flags() 1143 [ilog2(VM_SHARED)] = "sh", in show_smap_vma_flags() 1144 [ilog2(VM_MAYREAD)] = "mr", in show_smap_vma_flags() 1145 [ilog2(VM_MAYWRITE)] = "mw", in show_smap_vma_flags() 1146 [ilog2(VM_MAYEXEC)] = "me", in show_smap_vma_flags() 1147 [ilog2(VM_MAYSHARE)] = "ms", in show_smap_vma_flags() 1148 [ilog2(VM_GROWSDOWN)] = "gd", in show_smap_vma_flags() 1149 [ilog2(VM_PFNMAP)] = "pf", in show_smap_vma_flags() [all …]
|
| /linux/drivers/iommu/generic_pt/ |
| H A D | pt_fmt_defaults.h | 26 (PT_TABLEMEM_LG2SZ - ilog2(PT_ITEM_WORD_SIZE)) * pts->level; in pt_table_item_lg2sz() 35 (PT_TABLEMEM_LG2SZ - ilog2(PT_ITEM_WORD_SIZE)); in pt_pgsz_lg2_to_level() 49 return ilog2(1); in pt_entry_num_contig_lg2() 57 return ilog2(1); in pt_contig_count_lg2()
|
| /linux/arch/um/kernel/skas/ |
| H A D | mmu.c | 49 stack = __get_free_pages(GFP_KERNEL | __GFP_ZERO, ilog2(STUB_DATA_PAGES)); in init_new_context() 72 free_pages(new_id->stack, ilog2(STUB_DATA_PAGES)); in init_new_context() 106 free_pages(mmu->id.stack, ilog2(STUB_DATA_PAGES)); in destroy_context()
|
| /linux/drivers/media/pci/tw5864/ |
| H A D | tw5864-h264.c | 114 bs_write_ue(s, ilog2(MAX_GOP_SIZE) - 4); /* log2_max_frame_num_minus4 */ in tw5864_h264_gen_sps_rbsp() 117 bs_write_ue(s, ilog2(MAX_GOP_SIZE) - 4); in tw5864_h264_gen_sps_rbsp() 168 bs_write(s, ilog2(MAX_GOP_SIZE), frame_gop_seqno); /* frame_num */ in tw5864_h264_gen_slice_head() 173 bs_write(s, ilog2(MAX_GOP_SIZE), frame_gop_seqno); in tw5864_h264_gen_slice_head()
|
| /linux/drivers/iommu/generic_pt/fmt/ |
| H A D | amdv1.h | 121 return ilog2(1); in amdv1pt_entry_num_contig_lg2() 152 return PT_TABLEMEM_LG2SZ - ilog2(sizeof(u64)); in amdv1pt_num_items_lg2() 226 if (num_contig_lg2 <= ilog2(32)) { in amdv1pt_install_leaf_entry() 278 if (num_contig_lg2 <= ilog2(32)) { in amdv1pt_clear_entries() 377 (PT_TABLEMEM_LG2SZ - ilog2(sizeof(u64))) * in amdv1pt_iommu_fmt_init()
|
| /linux/net/ethtool/ |
| H A D | tunnels.c | 16 static_assert(ETHTOOL_UDP_TUNNEL_TYPE_VXLAN == ilog2(UDP_TUNNEL_TYPE_VXLAN)); 17 static_assert(ETHTOOL_UDP_TUNNEL_TYPE_GENEVE == ilog2(UDP_TUNNEL_TYPE_GENEVE)); 19 ilog2(UDP_TUNNEL_TYPE_VXLAN_GPE)); 145 ilog2(UDP_TUNNEL_TYPE_VXLAN))) in ethnl_tunnel_info_fill_reply()
|
| /linux/arch/mips/mm/ |
| H A D | tlbex.c | 352 UASM_i_SLL(p, GPR_K0, GPR_K0, ilog2(sizeof(struct tlb_reg_save))); in build_get_work_registers() 593 UASM_i_ROTR(p, reg, reg, ilog2(_PAGE_GLOBAL)); in build_convert_pte_to_entrylo() 595 UASM_i_SRL(p, reg, reg, ilog2(_PAGE_NO_EXEC)); in build_convert_pte_to_entrylo() 597 ilog2(_PAGE_GLOBAL) - ilog2(_PAGE_NO_EXEC)); in build_convert_pte_to_entrylo() 601 uasm_i_dsrl_safe(p, reg, reg, ilog2(_PAGE_GLOBAL)); in build_convert_pte_to_entrylo() 603 UASM_i_SRL(p, reg, reg, ilog2(_PAGE_GLOBAL)); in build_convert_pte_to_entrylo() 683 uasm_il_bbit1(p, r, tmp, ilog2(_PAGE_HUGE), lid); in build_is_huge_pte() 1004 UASM_i_ROTR(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); in build_update_entries() 1014 UASM_i_ROTR(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); in build_update_entries() 1178 uasm_il_bbit1(p, r, scratch, ilog2(_PAGE_HUGE), label_tlb_huge_update); in build_fast_tlb_refill_handler() [all …]
|
| /linux/tools/testing/selftests/mm/ |
| H A D | thuge-gen.c | 56 int ilog2(unsigned long v) in ilog2() function 211 int arg = ilog2(ps) << MAP_HUGE_SHIFT; in main() 225 int arg = ilog2(ps) << SHM_HUGE_SHIFT; in main()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | fs_hws_pools.c | 23 log_bulk_size = ilog2(MLX5_FS_HWS_DEFAULT_BULK_LEN); in mlx5_fs_dl3tnltol2_bulk_action_create() 39 log_bulk_size = ilog2(MLX5_FS_HWS_DEFAULT_BULK_LEN); in mlx5_fs_el2tol3tnl_bulk_action_create() 55 log_bulk_size = ilog2(MLX5_FS_HWS_DEFAULT_BULK_LEN); in mlx5_fs_el2tol2tnl_bulk_action_create() 67 log_bulk_size = ilog2(MLX5_FS_HWS_DEFAULT_BULK_LEN); in mlx5_fs_insert_hdr_bulk_action_create() 247 log_bulk_size = ilog2(MLX5_FS_HWS_DEFAULT_BULK_LEN); in mlx5_fs_mh_bulk_action_create()
|
| /linux/arch/mips/bcm63xx/ |
| H A D | cs.c | 52 val |= (ilog2(size) - ilog2(8 * 1024)) << MPI_CSBASE_SIZE_SHIFT; in bcm63xx_set_cs_base()
|
| /linux/block/ |
| H A D | disk-events.c | 25 [ilog2(DISK_EVENT_MEDIA_CHANGE)] = "media_change", 26 [ilog2(DISK_EVENT_EJECT_REQUEST)] = "eject_request", 30 [ilog2(DISK_EVENT_MEDIA_CHANGE)] = "DISK_MEDIA_CHANGE=1", 31 [ilog2(DISK_EVENT_EJECT_REQUEST)] = "DISK_EJECT_REQUEST=1",
|
| /linux/include/scsi/ |
| H A D | scsi_cmnd.h | 230 unsigned int shift = ilog2(scmd->device->sector_size) - SECTOR_SHIFT; in scsi_get_lba() 237 unsigned int shift = ilog2(scmd->device->sector_size); in scsi_logical_block_count() 389 xfer_len += (xfer_len >> ilog2(prot_interval)) * 8; in scsi_transfer_length()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu_cn10k.c | 376 cfg |= FIELD_PREP(LBK_LINK_CFG_RANGE_MASK, ilog2(chans)); in __rvu_lbk_set_chans() 470 cfg |= FIELD_PREP(NIX_AF_LINKX_RANGE_MASK, ilog2(cgx_chans)); in __rvu_nix_set_channels() 480 cfg |= FIELD_PREP(NIX_AF_LINKX_RANGE_MASK, ilog2(lbk_chans)); in __rvu_nix_set_channels() 490 cfg |= FIELD_PREP(NIX_AF_LINKX_RANGE_MASK, ilog2(sdp_chans)); in __rvu_nix_set_channels() 500 cfg |= FIELD_PREP(NIX_AF_LINKX_RANGE_MASK, ilog2(cpt_chans)); in __rvu_nix_set_channels() 528 cfg |= FIELD_PREP(RPMX_CMRX_LINK_RANGE_MASK, ilog2(16)); in __rvu_rpm_set_channels()
|
| /linux/fs/smb/client/ |
| H A D | compress.c | 65 const size_t threshold = 65, max_entropy = 8 * ilog2(16); in has_low_entropy() 69 len = ilog2(pow4(slen)); in has_low_entropy() 73 p2 = ilog2(pow4(p)); in has_low_entropy()
|