/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/ |
H A D | oal_atomic.h | 79 #define BITS_PER_LONG 32 macro 80 #define IS_BIT_SET(nr) (1UL << ((nr) % BITS_PER_LONG)) 81 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) 82 #define BITOP_WORD(nr) ((nr) / BITS_PER_LONG) 229 #if BITS_PER_LONG == 64 in __ffs() 260 oal_bitops result = offset & ~(BITS_PER_LONG - 1); in find_next_bit() 267 offset %= BITS_PER_LONG; in find_next_bit() 271 if (size < BITS_PER_LONG) { in find_next_bit() 277 size -= BITS_PER_LONG; in find_next_bit() 278 result += BITS_PER_LONG; in find_next_bit() [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/ump/common/ |
H A D | ump_kernel_descriptor_mapping.c | 17 #define MALI_PAD_INT(x) (((x) + (BITS_PER_LONG - 1)) & ~(BITS_PER_LONG - 1)) 86 _mali_osk_memcpy(new_table->usage, old_table->usage, (sizeof(unsigned long)*map->current_nr_mappings) / BITS_PER_LONG); in ump_descriptor_mapping_allocate_mapping() 141 table = _mali_osk_calloc(1, sizeof(ump_descriptor_table) + ((sizeof(unsigned long) * count) / BITS_PER_LONG) + (sizeof(void *) * count)); in descriptor_table_alloc() 145 table->mappings = (void **)((u8 *)table + sizeof(ump_descriptor_table) + ((sizeof(unsigned long) * count) / BITS_PER_LONG)); in descriptor_table_alloc()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_defs.h | 928 unsigned long hw_issues_mask[(BASE_HW_ISSUE_END + BITS_PER_LONG - 1) / BITS_PER_LONG]; 929 unsigned long hw_features_mask[(BASE_HW_FEATURE_END + BITS_PER_LONG - 1) / BITS_PER_LONG]; 1328 * @cookies: Bitmask containing of BITS_PER_LONG bits, used mainly for 1590 DECLARE_BITMAP(cookies, BITS_PER_LONG); 1591 struct kbase_va_region *pending_regions[BITS_PER_LONG];
|
H A D | mali_kbase_mem_linux.c | 482 if (bitmap_empty(kctx->cookies, BITS_PER_LONG)) { in kbase_mem_alloc() 488 cookie_nr = find_first_bit(kctx->cookies, BITS_PER_LONG); in kbase_mem_alloc() 1939 if (bitmap_empty(kctx->cookies, BITS_PER_LONG)) { 1944 gpu_va = find_first_bit(kctx->cookies, BITS_PER_LONG); 2083 if (bitmap_empty(kctx->cookies, BITS_PER_LONG)) { 2087 *gpu_va = find_first_bit(kctx->cookies, BITS_PER_LONG);
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_defs.h | 1013 unsigned long hw_issues_mask[(BASE_HW_ISSUE_END + BITS_PER_LONG - 1) / BITS_PER_LONG]; 1014 unsigned long hw_features_mask[(BASE_HW_FEATURE_END + BITS_PER_LONG - 1) / BITS_PER_LONG]; 1504 * @cookies: Bitmask containing of BITS_PER_LONG bits, used mainly for 1767 DECLARE_BITMAP(cookies, BITS_PER_LONG); 1768 struct kbase_va_region *pending_regions[BITS_PER_LONG];
|
H A D | mali_kbase_mem_linux.c | 456 if (bitmap_empty(kctx->cookies, BITS_PER_LONG)) { in kbase_mem_alloc() 462 cookie_nr = find_first_bit(kctx->cookies, BITS_PER_LONG); in kbase_mem_alloc() 1895 if (bitmap_empty(kctx->cookies, BITS_PER_LONG)) { 1900 gpu_va = find_first_bit(kctx->cookies, BITS_PER_LONG); 2048 if (bitmap_empty(kctx->cookies, BITS_PER_LONG)) 2051 *gpu_va = find_first_bit(kctx->cookies, BITS_PER_LONG);
|
/device/board/hisilicon/hispark_aries/uboot/secureboot_release/ddr_init/include/ |
H A D | types.h | 38 #define BITS_PER_LONG 32
macro
|
/device/board/hisilicon/hispark_taurus/uboot/secureboot_release/ddr_init/include/ |
H A D | types.h | 40 #define BITS_PER_LONG 32 macro
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/context/ |
H A D | mali_kbase_context.c | 166 bitmap_copy(kctx->cookies, &cookies_mask, BITS_PER_LONG); in kbase_context_common_init() 312 bitmap_andnot(&pending_regions_to_clean, &pending_regions_to_clean, kctx->cookies, BITS_PER_LONG); in kbase_context_sticky_resource_term() 314 unsigned int cookie = find_first_bit(&pending_regions_to_clean, BITS_PER_LONG); in kbase_context_sticky_resource_term()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/context/ |
H A D | mali_kbase_context.c | 162 bitmap_copy(kctx->cookies, &cookies_mask, BITS_PER_LONG); in kbase_context_common_init() 324 kctx->cookies, BITS_PER_LONG); in kbase_context_sticky_resource_term() 327 BITS_PER_LONG); in kbase_context_sticky_resource_term()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_defs.h | 992 unsigned long hw_issues_mask[(BASE_HW_ISSUE_END + BITS_PER_LONG - 1) / BITS_PER_LONG];
994 unsigned long hw_features_mask[(BASE_HW_FEATURE_END + BITS_PER_LONG - 1) / BITS_PER_LONG];
1351 struct kbase_va_region *pending_regions[BITS_PER_LONG];
|
H A D | mali_base_kernel.h | 297 #define BASE_MEM_FIRST_FREE_ADDRESS ((BITS_PER_LONG << 12) + BASE_MEM_COOKIE_BASE)
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_defs.h | 1003 unsigned long hw_issues_mask[(BASE_HW_ISSUE_END + BITS_PER_LONG - 1) / BITS_PER_LONG]; 1005 unsigned long hw_features_mask[(BASE_HW_FEATURE_END + BITS_PER_LONG - 1) / BITS_PER_LONG]; 1369 struct kbase_va_region *pending_regions[BITS_PER_LONG];
|
H A D | mali_base_kernel.h | 304 #define BASE_MEM_FIRST_FREE_ADDRESS ((BITS_PER_LONG << 12) + \
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/backend/gpu/ |
H A D | mali_kbase_clk_rate_trace_mgr.c | 263 #if BITS_PER_LONG == 64 in kbase_clk_rate_trace_manager_notify_all() 265 #elif BITS_PER_LONG == 32 in kbase_clk_rate_trace_manager_notify_all()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/ |
H A D | mali_osk_types.h | 47 #define BITS_PER_LONG (sizeof(long)*8) macro
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/backend/gpu/ |
H A D | mali_kbase_clk_rate_trace_mgr.c | 353 #if BITS_PER_LONG == 64 in kbase_clk_rate_trace_manager_notify_all() 355 #elif BITS_PER_LONG == 32 in kbase_clk_rate_trace_manager_notify_all()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/csf/ |
H A D | mali_base_csf_kernel.h | 193 #define BASE_MEM_FIRST_FREE_ADDRESS ((BITS_PER_LONG << 12) + BASE_MEM_COOKIE_BASE)
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/thirdparty/ |
H A D | mali_kbase_mmap.c | 263 int cpu_va_bits = BITS_PER_LONG; in kbase_context_get_unmapped_area()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/thirdparty/ |
H A D | mali_kbase_mmap.c | 247 int cpu_va_bits = BITS_PER_LONG; in kbase_context_get_unmapped_area()
|
/device/soc/rockchip/rk3588/kernel/include/uapi/gpu/arm/bifrost/csf/ |
H A D | mali_base_csf_kernel.h | 199 ((BITS_PER_LONG << LOCAL_PAGE_SHIFT) + BASE_MEM_COOKIE_BASE)
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/jm/ |
H A D | mali_base_jm_kernel.h | 201 #define BASE_MEM_FIRST_FREE_ADDRESS ((BITS_PER_LONG << 12) + BASE_MEM_COOKIE_BASE)
|
/device/soc/rockchip/rk3588/kernel/include/uapi/gpu/arm/bifrost/jm/ |
H A D | mali_base_jm_kernel.h | 203 ((BITS_PER_LONG << LOCAL_PAGE_SHIFT) + BASE_MEM_COOKIE_BASE)
|
/device/soc/rockchip/common/sdk_linux/kernel/ |
H A D | cpu.c | 2563 const unsigned long cpu_bit_bitmap[BITS_PER_LONG + 1][BITS_TO_LONGS(NR_CPUS)] = { 2566 #if BITS_PER_LONG > 32
|
/device/soc/rockchip/common/sdk_linux/ipc/ |
H A D | shm.c | 149 #if BITS_PER_LONG <= 32
in shm_init() 1872 #if BITS_PER_LONG <= 32
in sysvipc_shm_proc_show()
|