Searched refs:ilog2 (Results 1 – 23 of 23) sorted by relevance
156 #define ilog2(n) \ macro178 (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 \
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()
14 #define NR_BG_LOCKS (4 << ilog2(NR_CPUS < 32 ? NR_CPUS : 32))
19 #define ASSOC_ARRAY_LEVEL_STEP (ilog2(ASSOC_ARRAY_FAN_OUT))22 #define ASSOC_ARRAY_KEY_CHUNK_SHIFT (ilog2(BITS_PER_LONG))
57 unsigned long weight_rcp = ilog2(_weight_rcp); \
44 ilog2(sizeof(arm_lpae_iopte)))52 (ARM_LPAE_GRANULE(d) >> ilog2(sizeof(arm_lpae_iopte)))
53 #define GENRADIX_ARY_SHIFT ilog2(GENRADIX_ARY)192 if (unlikely(ilog2(offset) >= genradix_depth_shift(level))) in __genradix_ptr_inlined()
40 #define WB_STAT_BATCH (8*(1+ilog2(nr_cpu_ids)))
28 #define HASH_BITS(name) ilog2(HASH_SIZE(name))
312 return (ilog2(num_online_cpus()) / 2) + 1; in clocksource_get_max_watchdog_retry()
360 int shift = ilog2(BITS_PER_LONG); in sbitmap_calculate_shift()
490 #define KMALLOC_SHIFT_LOW ilog2(KMALLOC_MIN_SIZE)624 ilog2(RANDOM_KMALLOC_CACHES_NR + 1)); in kmalloc_type()
64 #define NR_KERNFS_LOCK_BITS (2 * (ilog2(NR_CPUS < 32 ? NR_CPUS : 32)))
138 unsigned long stats[ilog2(MAX_PTRS_PER_PTE) + 1][__MTHP_STAT_COUNT];
753 unsigned int shift = ilog2(size); in fgf_set_order()
786 return sector >> ilog2(zone_sectors); in disk_zone_no()
1420 return max(ilog2(bytes), 20) - 20; in pci_rebar_bytes_to_size()
1847 pid_bit = hash_32(current->pid, ilog2(BITS_PER_LONG)); in vma_set_access_pid_bit()
80 ___p = 1 << ilog2(___b); \137 ___p >>= ilog2(___bits); \138 ___m >>= ilog2(___bits); \226 (n) >>= ilog2(__base); \
38 return ilog2((size) - 1) - PAGE_SHIFT + 1; in get_order()
236 unsigned int shift = ilog2(scmd->device->sector_size) - SECTOR_SHIFT; in scsi_get_lba()243 unsigned int shift = ilog2(scmd->device->sector_size); in scsi_logical_block_count()395 xfer_len += (xfer_len >> ilog2(prot_interval)) * 8; in scsi_transfer_length()
56 #define USB_MS_TO_HS_INTERVAL(x) (ilog2((x * 1000 / 125)) + 1)
1464 u8 backoff = min_t(u8, ilog2(TCP_RTO_MAX / TCP_RTO_MIN) + 1, in tcp_probe0_when()