Home
last modified time | relevance | path

Searched refs:BITS_PER_LONG (Results 1 - 25 of 36) sorted by relevance

12

/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/
H A Doal_atomic.h79 #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 Dump_kernel_descriptor_mapping.c17 #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 Dmali_kbase_defs.h928 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 Dmali_kbase_mem_linux.c482 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 Dmali_kbase_defs.h1013 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 Dmali_kbase_mem_linux.c456 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 Dtypes.h38 #define BITS_PER_LONG 32 macro
/device/board/hisilicon/hispark_taurus/uboot/secureboot_release/ddr_init/include/
H A Dtypes.h40 #define BITS_PER_LONG 32 macro
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/context/
H A Dmali_kbase_context.c166 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 Dmali_kbase_context.c162 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 Dmali_kbase_defs.h992 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 Dmali_base_kernel.h297 #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 Dmali_kbase_defs.h1003 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 Dmali_base_kernel.h304 #define BASE_MEM_FIRST_FREE_ADDRESS ((BITS_PER_LONG << 12) + \
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/backend/gpu/
H A Dmali_kbase_clk_rate_trace_mgr.c263 #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 Dmali_osk_types.h47 #define BITS_PER_LONG (sizeof(long)*8) macro
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/backend/gpu/
H A Dmali_kbase_clk_rate_trace_mgr.c353 #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 Dmali_base_csf_kernel.h193 #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 Dmali_kbase_mmap.c263 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 Dmali_kbase_mmap.c247 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 Dmali_base_csf_kernel.h199 ((BITS_PER_LONG << LOCAL_PAGE_SHIFT) + BASE_MEM_COOKIE_BASE)
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/jm/
H A Dmali_base_jm_kernel.h201 #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 Dmali_base_jm_kernel.h203 ((BITS_PER_LONG << LOCAL_PAGE_SHIFT) + BASE_MEM_COOKIE_BASE)
/device/soc/rockchip/common/sdk_linux/kernel/
H A Dcpu.c2563 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 Dshm.c149 #if BITS_PER_LONG <= 32 in shm_init()
1872 #if BITS_PER_LONG <= 32 in sysvipc_shm_proc_show()

Completed in 41 milliseconds

12