/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/ump/common/ |
H A D | ump_kernel_descriptor_mapping.c | 34 ump_descriptor_mapping *map = _mali_osk_calloc(1, sizeof(ump_descriptor_mapping)); in ump_descriptor_mapping_create() local 39 if (NULL != map) { in ump_descriptor_mapping_create() 40 map->table = descriptor_table_alloc(init_entries); in ump_descriptor_mapping_create() 41 if (NULL != map->table) { in ump_descriptor_mapping_create() 42 map->lock = _mali_osk_mutex_rw_init(_MALI_OSK_LOCKFLAG_UNORDERED, 0); in ump_descriptor_mapping_create() 43 if (NULL != map->lock) { in ump_descriptor_mapping_create() 44 _mali_osk_set_nonatomic_bit(0, map->table->usage); /* reserve bit 0 to prevent NULL/zero logic to kick in */ in ump_descriptor_mapping_create() 45 map->max_nr_mappings_allowed = max_entries; in ump_descriptor_mapping_create() 46 map->current_nr_mappings = init_entries; in ump_descriptor_mapping_create() 47 return map; in ump_descriptor_mapping_create() 56 ump_descriptor_mapping_destroy(ump_descriptor_mapping *map) ump_descriptor_mapping_destroy() argument 63 ump_descriptor_mapping_allocate_mapping(ump_descriptor_mapping *map, void *target) ump_descriptor_mapping_allocate_mapping() argument 102 ump_descriptor_mapping_get(ump_descriptor_mapping *map, int descriptor, void **target) ump_descriptor_mapping_get() argument 115 ump_descriptor_mapping_set(ump_descriptor_mapping *map, int descriptor, void *target) ump_descriptor_mapping_set() argument 127 ump_descriptor_mapping_free(ump_descriptor_mapping *map, int descriptor) ump_descriptor_mapping_free() argument [all...] |
H A D | ump_kernel_descriptor_mapping.h | 25 void **mappings; /**< Array of the pointers the descriptors map to */ 30 * Provides a separate namespace where we can map an integer to a pointer 50 * @param map The map to free 52 void ump_descriptor_mapping_destroy(ump_descriptor_mapping *map); 56 * Allocates a new entry in the map. 57 * @param map The map to allocate a new entry in 58 * @param target The value to map to 61 int ump_descriptor_mapping_allocate_mapping(ump_descriptor_mapping *map, voi [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/hi_irq/kernel/ |
H A D | hiirq.c | 137 static void unmap_int_reg_for_aio(hiirq_aio_reg_map *map) in unmap_int_reg_for_aio() argument 141 if (map->aio_int_status_reg != HI_NULL) { in unmap_int_reg_for_aio() 142 osal_iounmap((void *)map->aio_int_status_reg, SINGLE_REG_SIZE); in unmap_int_reg_for_aio() 143 map->aio_int_status_reg = HI_NULL; in unmap_int_reg_for_aio() 145 if (map->aio_int_raw_reg != HI_NULL) { in unmap_int_reg_for_aio() 146 osal_iounmap((void *)map->aio_int_raw_reg, SINGLE_REG_SIZE); in unmap_int_reg_for_aio() 147 map->aio_int_raw_reg = HI_NULL; in unmap_int_reg_for_aio() 151 if (map->tx_clr_reg[i] != HI_NULL) { in unmap_int_reg_for_aio() 152 osal_iounmap((void *)map->tx_clr_reg[i], SINGLE_REG_SIZE); in unmap_int_reg_for_aio() 153 map in unmap_int_reg_for_aio() 183 unmap_int_reg_for_vicap(hiirq_vicap_reg_map *map) unmap_int_reg_for_vicap() argument 216 unmap_int_reg_for_normal(hiirq_normal_reg_map *map) unmap_int_reg_for_normal() argument 266 read_int_status_for_aio(hiirq_aio_reg_map *map, hi_aio_int_state *state) read_int_status_for_aio() argument 284 read_int_status_for_vicap(hiirq_vicap_reg_map *map, hi_vicap_int_state *state) read_int_status_for_vicap() argument 301 read_int_status_for_normal(hiirq_normal_reg_map *map, hi_normal_int_state *state) read_int_status_for_normal() argument 327 clear_int_for_aio(hiirq_aio_reg_map *map, hi_aio_int_state *state) clear_int_for_aio() argument 342 clear_int_for_vicap(hiirq_vicap_reg_map *map, hi_vicap_int_state *state) clear_int_for_vicap() argument 359 clear_int_for_scd(hiirq_normal_reg_map *map) clear_int_for_scd() argument 368 clear_int_for_vdh(hiirq_normal_reg_map *map, hi_normal_int_state *state) clear_int_for_vdh() argument 377 clear_int_for_nnie(hiirq_normal_reg_map *map, hi_normal_int_state *state) clear_int_for_nnie() argument 386 clear_int_for_normal(hiirq_normal_reg_map *map, hi_normal_int_state *state) clear_int_for_normal() argument 613 hiirq_map_irq_reg_for_aio(hiirq_aio_reg_map *map, hi_aio_int_reg *reg) hiirq_map_irq_reg_for_aio() argument 650 hiirq_map_irq_reg_for_vicap(hiirq_vicap_reg_map *map, hi_vicap_int_reg *reg) hiirq_map_irq_reg_for_vicap() argument 683 hiirq_map_irq_reg_for_normal(hiirq_normal_reg_map *map, hi_normal_int_reg *reg) hiirq_map_irq_reg_for_normal() argument [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/ump/linux/ |
H A D | ump_kernel_random_mapping.c | 71 ump_random_mapping *map = _mali_osk_calloc(1, sizeof(ump_random_mapping)); in ump_random_mapping_create() local 73 if (NULL == map) in ump_random_mapping_create() 76 map->lock = _mali_osk_mutex_rw_init(_MALI_OSK_LOCKFLAG_ORDERED, in ump_random_mapping_create() 78 if (NULL != map->lock) { in ump_random_mapping_create() 79 map->root = RB_ROOT; in ump_random_mapping_create() 81 map->failed.count = 0; in ump_random_mapping_create() 82 map->failed.timestamp = jiffies; in ump_random_mapping_create() 84 return map; in ump_random_mapping_create() 89 void ump_random_mapping_destroy(ump_random_mapping *map) in ump_random_mapping_destroy() argument 91 _mali_osk_mutex_rw_term(map in ump_random_mapping_destroy() 95 ump_random_mapping_insert(ump_random_mapping *map, ump_dd_mem *mem) ump_random_mapping_insert() argument 121 ump_random_mapping_get(ump_random_mapping *map, int id) ump_random_mapping_get() argument 163 ump_random_mapping_remove_internal(ump_random_mapping *map, int id) ump_random_mapping_remove_internal() argument 213 ump_random_mapping_remove(ump_random_mapping *map, int descriptor) ump_random_mapping_remove() argument [all...] |
H A D | ump_kernel_random_mapping.h | 27 * Provides a separate namespace where we can map an integer to a pointer 49 * @param map The map to free 51 void ump_random_mapping_destroy(ump_random_mapping *map); 55 * Allocates a new entry in the map. 56 * @param map The map to allocate a new entry in 57 * @param target The value to map to 60 int ump_random_mapping_insert(ump_random_mapping *map, ump_dd_mem *mem); 67 * @param map Th [all...] |
/device/soc/rockchip/common/sdk_linux/kernel/bpf/ |
H A D | syscall.c | 35 #define IS_FD_ARRAY(map) \ 36 ((map)->map_type == BPF_MAP_TYPE_PERF_EVENT_ARRAY || (map)->map_type == BPF_MAP_TYPE_CGROUP_ARRAY || \ 37 (map)->map_type == BPF_MAP_TYPE_ARRAY_OF_MAPS) 38 #define IS_FD_PROG_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PROG_ARRAY) 39 #define IS_FD_HASH(map) ((map)->map_type == BPF_MAP_TYPE_HASH_OF_MAPS) 40 #define IS_FD_MAP(map) (IS_FD_ARRAY(map) || IS_FD_PROG_ARRA 104 struct bpf_map *map; find_and_alloc_map() local 134 bpf_map_value_size(struct bpf_map *map) bpf_map_value_size() argument 146 maybe_wait_bpf_programs(struct bpf_map *map) maybe_wait_bpf_programs() argument 157 bpf_map_update_value(struct bpf_map *map, struct fd f, void *key, void *value, __u64 flags) bpf_map_update_value() argument 203 bpf_map_copy_value(struct bpf_map *map, void *key, void *value, __u64 flags) bpf_map_copy_value() argument 327 bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr) bpf_map_init_from_attr() argument 391 bpf_map_charge_memlock(struct bpf_map *map, u32 pages) bpf_map_charge_memlock() argument 403 bpf_map_uncharge_memlock(struct bpf_map *map, u32 pages) bpf_map_uncharge_memlock() argument 409 bpf_map_alloc_id(struct bpf_map *map) bpf_map_alloc_id() argument 429 bpf_map_free_id(struct bpf_map *map, bool do_idr_lock) bpf_map_free_id() argument 461 struct bpf_map *map = container_of(work, struct bpf_map, work); bpf_map_free_deferred() local 471 bpf_map_put_uref(struct bpf_map *map) bpf_map_put_uref() argument 483 _bpf_map_put(struct bpf_map *map, bool do_idr_lock) _bpf_map_put() argument 494 bpf_map_put(struct bpf_map *map) bpf_map_put() argument 500 bpf_map_put_with_uref(struct bpf_map *map) bpf_map_put_with_uref() argument 508 struct bpf_map *map = filp->private_data; bpf_map_release() local 518 map_get_sys_perms(struct bpf_map *map, struct fd f) map_get_sys_perms() argument 534 const struct bpf_map *map = filp->private_data; bpf_map_show_fdinfo() local 583 struct bpf_map *map = vma->vm_file->private_data; bpf_map_mmap_open() local 595 struct bpf_map *map = vma->vm_file->private_data; bpf_map_mmap_close() local 611 struct bpf_map *map = filp->private_data; bpf_map_mmap() local 664 struct bpf_map *map = filp->private_data; bpf_map_poll() local 684 bpf_map_new_fd(struct bpf_map *map, int flags) bpf_map_new_fd() argument 740 map_check_no_btf(const struct bpf_map *map, const struct btf *btf, const struct btf_type *key_type, const struct btf_type *value_type) map_check_no_btf() argument 746 map_check_btf(struct bpf_map *map, const struct btf *btf, u32 btf_key_id, u32 btf_value_id) map_check_btf() argument 800 struct bpf_map *map; map_create() local 921 bpf_map_inc(struct bpf_map *map) bpf_map_inc() argument 927 bpf_map_inc_with_uref(struct bpf_map *map) bpf_map_inc_with_uref() argument 937 struct bpf_map *map; bpf_map_get() local 953 struct bpf_map *map; bpf_map_get_with_uref() local 967 _bpf_map_inc_not_zero(struct bpf_map *map, bool uref) _bpf_map_inc_not_zero() argument 982 bpf_map_inc_not_zero(struct bpf_map *map) bpf_map_inc_not_zero() argument 992 bpf_stackmap_copy(struct bpf_map *map, void *key, void *value) bpf_stackmap_copy() argument 1018 struct bpf_map *map; map_lookup_elem() local 1089 struct bpf_map *map; map_update_elem() local 1155 struct bpf_map *map; map_delete_elem() local 1210 struct bpf_map *map; map_get_next_key() local 1274 generic_map_delete_batch(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr) generic_map_delete_batch() argument 1328 generic_map_update_batch(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr) generic_map_update_batch() argument 1392 generic_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr) generic_map_lookup_batch() argument 1506 struct bpf_map *map; map_lookup_and_delete_elem() local 1571 struct bpf_map *map; map_freeze() local 3215 struct bpf_map *map; bpf_map_get_curr_or_next() local 3308 struct bpf_map *map; bpf_map_get_fd_by_id() local 3349 const struct bpf_map *map; bpf_map_from_imm() local 3376 const struct bpf_map *map; bpf_insn_prepare_dump() local 3749 bpf_map_get_info_by_fd(struct file *file, struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr) bpf_map_get_info_by_fd() argument 4055 struct bpf_map *map; bpf_map_do_batch() local 4405 struct bpf_map *map; bpf_prog_bind_map() local [all...] |
/device/soc/hisilicon/hi3751v350/sdk_linux/source/msp/drv/hiirq/kernel/ |
H A D | hiirq.c | 185 static void unmap_tx_reg_for_aio(hiirq_aio_reg_map *map) in unmap_tx_reg_for_aio() argument 189 if (map->tx_clr_reg[i] != HI_NULL) { in unmap_tx_reg_for_aio() 190 osal_iounmap_ex((void *)map->tx_clr_reg[i], SINGLE_REG_SIZE); in unmap_tx_reg_for_aio() 191 map->tx_clr_reg[i] = HI_NULL; in unmap_tx_reg_for_aio() 193 if (map->tx_raw_reg[i] != HI_NULL) { in unmap_tx_reg_for_aio() 194 osal_iounmap_ex((void *)map->tx_raw_reg[i], SINGLE_REG_SIZE); in unmap_tx_reg_for_aio() 195 map->tx_raw_reg[i] = HI_NULL; in unmap_tx_reg_for_aio() 197 if (map->tx_stat_reg[i] != HI_NULL) { in unmap_tx_reg_for_aio() 198 osal_iounmap_ex((void *)map->tx_stat_reg[i], SINGLE_REG_SIZE); in unmap_tx_reg_for_aio() 199 map in unmap_tx_reg_for_aio() 204 unmap_rx_reg_for_aio(hiirq_aio_reg_map *map) unmap_rx_reg_for_aio() argument 223 unmap_spdiftx_reg_for_aio(hiirq_aio_reg_map *map) unmap_spdiftx_reg_for_aio() argument 242 unmap_int_reg_for_aio(hiirq_aio_reg_map *map) unmap_int_reg_for_aio() argument 259 unmap_int_reg_for_vicap(hiirq_vicap_reg_map *map) unmap_int_reg_for_vicap() argument 292 unmap_int_reg_for_normal(hiirq_normal_reg_map *map) unmap_int_reg_for_normal() argument 342 read_int_status_for_aio(hiirq_aio_reg_map *map, hi_aio_int_state *state) read_int_status_for_aio() argument 364 read_int_status_for_vicap(hiirq_vicap_reg_map *map, hi_vicap_int_state *state) read_int_status_for_vicap() argument 381 read_int_status_for_normal(hiirq_normal_reg_map *map, hi_normal_int_state *state) read_int_status_for_normal() argument 407 clear_int_for_aio(hiirq_aio_reg_map *map, hi_aio_int_state *state) clear_int_for_aio() argument 426 clear_int_for_vicap(hiirq_vicap_reg_map *map, hi_vicap_int_state *state) clear_int_for_vicap() argument 443 clear_int_for_scd(hiirq_normal_reg_map *map) clear_int_for_scd() argument 452 clear_int_for_vdh(hiirq_normal_reg_map *map, hi_normal_int_state *state) clear_int_for_vdh() argument 473 clear_int_for_nnie(hiirq_normal_reg_map *map, hi_normal_int_state *state) clear_int_for_nnie() argument 482 clear_int_for_normal(hiirq_normal_reg_map *map, hi_normal_int_state *state) clear_int_for_normal() argument 798 hiirq_map_irq_reg_for_aio(hiirq_aio_reg_map *map, hi_aio_int_reg *reg) hiirq_map_irq_reg_for_aio() argument 845 hiirq_map_irq_reg_for_vicap(hiirq_vicap_reg_map *map, hi_vicap_int_reg *reg) hiirq_map_irq_reg_for_vicap() argument 878 hiirq_map_irq_reg_for_normal(hiirq_normal_reg_map *map, hi_normal_int_reg *reg) hiirq_map_irq_reg_for_normal() argument [all...] |
/device/soc/rockchip/common/sdk_linux/include/linux/ |
H A D | bpf.h | 55 /* map is generic key/value storage optionally accesible by eBPF programs */ 60 void (*map_release)(struct bpf_map *map, struct file *map_file); 61 void (*map_free)(struct bpf_map *map); 62 int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key); 63 void (*map_release_uref)(struct bpf_map *map); 64 void *(*map_lookup_elem_sys_only)(struct bpf_map *map, void *key); 65 int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr); 66 int (*map_lookup_and_delete_batch)(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr); 67 int (*map_update_batch)(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr); 68 int (*map_delete_batch)(struct bpf_map *map, cons 164 map_value_has_spin_lock(const struct bpf_map *map) map_value_has_spin_lock() argument 169 check_and_init_map_lock(struct bpf_map *map, void *dst) check_and_init_map_lock() argument 178 copy_map_value(struct bpf_map *map, void *dst, void *src) copy_map_value() argument 204 struct bpf_map map; global() member 211 map_to_offmap(struct bpf_map *map) map_to_offmap() argument 216 bpf_map_offload_neutral(const struct bpf_map *map) bpf_map_offload_neutral() argument 221 bpf_map_support_seq_show(const struct bpf_map *map) bpf_map_support_seq_show() argument 760 struct bpf_map *map; global() member 872 struct bpf_map *map; global() member 961 bpf_struct_ops_map_sys_lookup_elem(struct bpf_map *map, void *key, void *value) bpf_struct_ops_map_sys_lookup_elem() argument 968 struct bpf_map map; global() member 987 bpf_map_flags_to_cap(struct bpf_map *map) bpf_map_flags_to_cap() argument 1313 struct bpf_map *map; global() member 1528 __dev_map_lookup_elem(struct bpf_map *map, u32 key) __dev_map_lookup_elem() argument 1533 __dev_map_hash_lookup_elem(struct bpf_map *map, u32 key) __dev_map_hash_lookup_elem() argument 1537 dev_map_can_have_prog(struct bpf_map *map) dev_map_can_have_prog() argument 1566 __cpu_map_lookup_elem(struct bpf_map *map, u32 key) __cpu_map_lookup_elem() argument 1580 cpu_map_prog_allowed(struct bpf_map *map) cpu_map_prog_allowed() argument 1614 bpf_map_put(struct bpf_map *map) bpf_map_put() argument 1674 bpf_map_is_dev_bound(struct bpf_map *map) bpf_map_is_dev_bound() argument 1692 bpf_map_is_dev_bound(struct bpf_map *map) bpf_map_is_dev_bound() argument 1702 bpf_map_offload_map_free(struct bpf_map *map) bpf_map_offload_map_free() argument 1715 sock_map_prog_update(struct bpf_map *map, struct bpf_prog *prog, struct bpf_prog *old, u32 which) sock_map_prog_update() argument 1730 sock_map_update_elem_sys(struct bpf_map *map, void *key, void *value, u64 flags) sock_map_update_elem_sys() argument 1746 bpf_fd_reuseport_array_lookup_elem(struct bpf_map *map, void *key, void *value) bpf_fd_reuseport_array_lookup_elem() argument 1751 bpf_fd_reuseport_array_update_elem(struct bpf_map *map, void *key, void *value, u64 map_flags) bpf_fd_reuseport_array_update_elem() argument [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_mem_linux.c | 231 dev_warn(dev, "Failed to map memory on GPU"); in kbase_mem_alloc() 736 /* we've got pages to map now, and support SAME_VA */ in kbase_mem_from_ump() 868 /* No pages to map yet */ in kbase_mem_from_umm() 1258 dev_warn(kctx->kbdev->dev, "Failed to map memory on GPU"); 1608 struct kbase_cpu_mapping *map = vma->vm_private_data; local 1610 KBASE_DEBUG_ASSERT(map); 1611 KBASE_DEBUG_ASSERT(map->count > 0); 1613 map->count++; 1618 struct kbase_cpu_mapping *map = vma->vm_private_data; local 1620 KBASE_DEBUG_ASSERT(map); 1661 struct kbase_cpu_mapping *map = vma->vm_private_data; global() local 1715 struct kbase_cpu_mapping *map; global() local 2181 kbase_vmap_prot(struct kbase_context *kctx, u64 gpu_addr, size_t size, unsigned long prot_request, struct kbase_vmap_struct *map) global() argument 2303 kbase_vmap(struct kbase_context *kctx, u64 gpu_addr, size_t size, struct kbase_vmap_struct *map) global() argument 2315 kbase_vunmap(struct kbase_context *kctx, struct kbase_vmap_struct *map) global() argument [all...] |
H A D | mali_kbase_debug_mem_view.c | 54 struct debug_mem_mapping *map; in debug_mem_start() local 57 list_for_each_entry(map, &mem_data->mapping_list, node) { in debug_mem_start() 58 if (pos >= map->nr_pages) { in debug_mem_start() 59 pos -= map->nr_pages; in debug_mem_start() 64 data->lh = &map->node; in debug_mem_start() 83 struct debug_mem_mapping *map; in debug_mem_next() local 85 map = list_entry(data->lh, struct debug_mem_mapping, node); in debug_mem_next() 87 if (data->offset < map->nr_pages - 1) { in debug_mem_next() 109 struct debug_mem_mapping *map; in debug_mem_show() local 115 map in debug_mem_show() [all...] |
H A D | mali_kbase_replay.c | 120 struct kbase_vmap_struct map; in kbasep_replay_reset_sfbd() local 125 sizeof(*fbd_tiler), &map); in kbasep_replay_reset_sfbd() 127 dev_err(kctx->kbdev->dev, "kbasep_replay_reset_fbd: failed to map fbd\n"); in kbasep_replay_reset_sfbd() 185 kbase_vunmap(kctx, &map); in kbasep_replay_reset_sfbd() 194 struct kbase_vmap_struct map; in kbasep_replay_reset_mfbd() local 207 sizeof(*fbd_tiler), &map); in kbasep_replay_reset_mfbd() 210 "kbasep_replay_reset_fbd: failed to map fbd\n"); in kbasep_replay_reset_mfbd() 266 kbase_vunmap(kctx, &map); in kbasep_replay_reset_mfbd() 293 struct kbase_vmap_struct map; in kbasep_replay_reset_tiler_job() local 301 sizeof(*job_ext), &map); in kbasep_replay_reset_tiler_job() 381 struct kbase_vmap_struct map; kbasep_replay_reset_job() local 496 struct kbase_vmap_struct map; kbasep_replay_find_hw_job_id() local 725 struct kbase_vmap_struct map; payload_dump() local 764 struct kbase_vmap_struct map; kbasep_replay_parse_payload() local 1001 struct kbase_vmap_struct map; kbase_replay_fault_check() local [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/ump/common/ |
H A D | ump_kernel_descriptor_mapping.h | 26 void **mappings; /**< Array of the pointers the descriptors map to */ 31 * Provides a separate namespace where we can map an integer to a pointer 51 * @param map The map to free 53 void ump_descriptor_mapping_destroy(ump_descriptor_mapping *map); 57 * Allocates a new entry in the map. 58 * @param map The map to allocate a new entry in 59 * @param target The value to map to 62 int ump_descriptor_mapping_allocate_mapping(ump_descriptor_mapping *map, voi [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_mem_linux.c | 97 struct kbase_vmap_struct *map); 99 struct kbase_vmap_struct *map); 179 /* Can only map in regions that are always fully committed in kbase_phy_alloc_mapping_init() 475 dev_warn(dev, "Failed to map memory on GPU"); in kbase_mem_alloc() 1052 * Instead, only support syncing when we always map dma-bufs on import, in kbase_mem_do_sync_imported() 1151 * @reg: Pointer to region with imported dma-buf memory to map 1209 /* Update nents as we now have pages to map */ in kbase_mem_umm_map_attachment() 1269 /* For padded imported dma-buf memory, map the dummy aliasing in kbase_mem_umm_map() 1453 /* No pages to map yet */ in kbase_mem_from_umm() 1483 "Failed to map dm in kbase_mem_from_umm() 2330 struct kbase_cpu_mapping *map = vma->vm_private_data; global() local 2340 struct kbase_cpu_mapping *map = vma->vm_private_data; global() local 2413 struct kbase_cpu_mapping *map = vma->vm_private_data; global() local 2492 struct kbase_cpu_mapping *map; global() local 2926 kbase_sync_mem_regions(struct kbase_context *kctx, struct kbase_vmap_struct *map, enum kbase_sync_type dest) global() argument 2956 kbase_vmap_phy_pages(struct kbase_context *kctx, struct kbase_va_region *reg, u64 offset_bytes, size_t size, struct kbase_vmap_struct *map) global() argument 3033 kbase_vmap_prot(struct kbase_context *kctx, u64 gpu_addr, size_t size, unsigned long prot_request, struct kbase_vmap_struct *map) global() argument 3078 kbase_vmap(struct kbase_context *kctx, u64 gpu_addr, size_t size, struct kbase_vmap_struct *map) global() argument 3091 kbase_vunmap_phy_pages(struct kbase_context *kctx, struct kbase_vmap_struct *map) global() argument 3109 kbase_vunmap(struct kbase_context *kctx, struct kbase_vmap_struct *map) global() argument [all...] |
H A D | mali_kbase_debug_mem_view.c | 58 struct debug_mem_mapping *map; in debug_mem_start() local 61 list_for_each_entry(map, &mem_data->mapping_list, node) { in debug_mem_start() 62 if (pos >= map->nr_pages) { in debug_mem_start() 63 pos -= map->nr_pages; in debug_mem_start() 68 data->lh = &map->node; in debug_mem_start() 87 struct debug_mem_mapping *map; in debug_mem_next() local 89 map = list_entry(data->lh, struct debug_mem_mapping, node); in debug_mem_next() 91 if (data->offset < map->nr_pages - 1) { in debug_mem_next() 113 struct debug_mem_mapping *map; in debug_mem_show() local 119 map in debug_mem_show() [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_mem_linux.c | 99 size_t size, struct kbase_vmap_struct *map); 101 struct kbase_vmap_struct *map); 187 /* Can only map in regions that are always fully committed in kbase_phy_alloc_mapping_init() 500 dev_warn(dev, "Failed to map memory on GPU"); in kbase_mem_alloc() 1101 * Instead, only support syncing when we always map dma-bufs on import, in kbase_mem_do_sync_imported() 1202 * @reg: Pointer to region with imported dma-buf memory to map 1262 /* Update nents as we now have pages to map */ in kbase_mem_umm_map_attachment() 1318 /* For padded imported dma-buf memory, map the dummy aliasing in kbase_mem_umm_map() 1504 /* No pages to map yet */ in kbase_mem_from_umm() 1535 dev_warn(kctx->kbdev->dev, "Failed to map dm in kbase_mem_from_umm() 2360 struct kbase_cpu_mapping *map = vma->vm_private_data; global() local 2370 struct kbase_cpu_mapping *map = vma->vm_private_data; global() local 2444 struct kbase_cpu_mapping *map = vma->vm_private_data; global() local 2522 struct kbase_cpu_mapping *map; global() local 2949 kbase_sync_mem_regions(struct kbase_context *kctx, struct kbase_vmap_struct *map, enum kbase_sync_type dest) global() argument 2980 kbase_vmap_phy_pages(struct kbase_context *kctx, struct kbase_va_region *reg, u64 offset_bytes, size_t size, struct kbase_vmap_struct *map) global() argument 3066 kbase_vmap_prot(struct kbase_context *kctx, u64 gpu_addr, size_t size, unsigned long prot_request, struct kbase_vmap_struct *map) global() argument 3113 kbase_vmap(struct kbase_context *kctx, u64 gpu_addr, size_t size, struct kbase_vmap_struct *map) global() argument 3125 kbase_vunmap_phy_pages(struct kbase_context *kctx, struct kbase_vmap_struct *map) global() argument 3143 kbase_vunmap(struct kbase_context *kctx, struct kbase_vmap_struct *map) global() argument [all...] |
H A D | mali_kbase_debug_mem_view.c | 63 struct debug_mem_mapping *map; in debug_mem_start() local 66 list_for_each_entry(map, &mem_data->mapping_list, node) in debug_mem_start() 68 if (pos >= map->nr_pages) { in debug_mem_start() 69 pos -= map->nr_pages; in debug_mem_start() 75 data->lh = &map->node; in debug_mem_start() 94 struct debug_mem_mapping *map; in debug_mem_next() local 96 map = list_entry(data->lh, struct debug_mem_mapping, node); in debug_mem_next() 98 if (data->offset < map->nr_pages - 1) { in debug_mem_next() 120 struct debug_mem_mapping *map; in debug_mem_show() local 126 map in debug_mem_show() [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_debug_mem_view.c | 52 struct debug_mem_mapping *map;
in debug_mem_start() local 55 list_for_each_entry(map, &mem_data->mapping_list, node)
in debug_mem_start() 57 if (pos >= map->nr_pages) {
in debug_mem_start() 58 pos -= map->nr_pages;
in debug_mem_start() 64 data->lh = &map->node;
in debug_mem_start() 83 struct debug_mem_mapping *map;
in debug_mem_next() local 85 map = list_entry(data->lh, struct debug_mem_mapping, node);
in debug_mem_next() 87 if (data->offset < map->nr_pages - 1) {
in debug_mem_next() 109 struct debug_mem_mapping *map;
in debug_mem_show() local 115 map in debug_mem_show() [all...] |
H A D | mali_kbase_mem_linux.c | 223 dev_warn(dev, "Failed to map memory on GPU");
in kbase_mem_alloc() 740 /* we've got pages to map now, and support SAME_VA */
in kbase_mem_from_ump() 879 /* No pages to map yet */
in kbase_mem_from_umm() 1272 dev_warn(kctx->kbdev->dev, "Failed to map memory on GPU");
1612 struct kbase_cpu_mapping *map = vma->vm_private_data;
local 1614 KBASE_DEBUG_ASSERT(map);
1615 KBASE_DEBUG_ASSERT(map->count > 0);
1617 map->count++;
1622 struct kbase_cpu_mapping *map = vma->vm_private_data;
local 1624 KBASE_DEBUG_ASSERT(map);
1665 struct kbase_cpu_mapping *map = vma->vm_private_data; global() local 1720 struct kbase_cpu_mapping *map; global() local 2173 kbase_vmap_prot(struct kbase_context *kctx, u64 gpu_addr, size_t size, unsigned long prot_request, struct kbase_vmap_struct *map) global() argument 2304 kbase_vmap(struct kbase_context *kctx, u64 gpu_addr, size_t size, struct kbase_vmap_struct *map) global() argument 2315 kbase_vunmap(struct kbase_context *kctx, struct kbase_vmap_struct *map) global() argument [all...] |
H A D | mali_kbase_replay.c | 107 struct kbase_vmap_struct map;
in kbasep_replay_reset_sfbd() local 111 fbd_tiler = kbase_vmap(kctx, fbd_address + SFBD_TILER_OFFSET, sizeof(*fbd_tiler), &map);
in kbasep_replay_reset_sfbd() 113 dev_err(kctx->kbdev->dev, "kbasep_replay_reset_fbd: failed to map fbd\n");
in kbasep_replay_reset_sfbd() 167 kbase_vunmap(kctx, &map);
in kbasep_replay_reset_sfbd() 175 struct kbase_vmap_struct map;
in kbasep_replay_reset_mfbd() local 187 fbd_tiler = kbase_vmap(kctx, fbd_address + MFBD_TILER_OFFSET, sizeof(*fbd_tiler), &map);
in kbasep_replay_reset_mfbd() 189 dev_err(kctx->kbdev->dev, "kbasep_replay_reset_fbd: failed to map fbd\n");
in kbasep_replay_reset_mfbd() 241 kbase_vunmap(kctx, &map);
in kbasep_replay_reset_mfbd() 267 struct kbase_vmap_struct map;
in kbasep_replay_reset_tiler_job() local 273 job_ext = kbase_vmap(kctx, job_header + JOB_HEADER_64_FBD_OFFSET, sizeof(*job_ext), &map);
in kbasep_replay_reset_tiler_job() 341 struct kbase_vmap_struct map; kbasep_replay_reset_job() local 453 struct kbase_vmap_struct map; kbasep_replay_find_hw_job_id() local 670 struct kbase_vmap_struct map; payload_dump() local 706 struct kbase_vmap_struct map; kbasep_replay_parse_payload() local 929 struct kbase_vmap_struct map; kbase_replay_fault_check() local [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/pinctrl/ |
H A D | pinconf.h | 16 int pinconf_validate_map(const struct pinctrl_map *map, int i); 17 int pinconf_map_to_setting(const struct pinctrl_map *map, 41 static inline int pinconf_validate_map(const struct pinctrl_map *map, int i) in pinconf_validate_map() argument 46 static inline int pinconf_map_to_setting(const struct pinctrl_map *map, in pinconf_map_to_setting() argument 71 void pinconf_show_map(struct seq_file *s, const struct pinctrl_map *map); 80 const struct pinctrl_map *map) in pinconf_show_map() 79 pinconf_show_map(struct seq_file *s, const struct pinctrl_map *map) pinconf_show_map() argument
|
H A D | pinctrl-utils.h | 26 struct pinctrl_map **map, unsigned *reserved_maps, 29 struct pinctrl_map **map, unsigned *reserved_maps, 33 struct pinctrl_map **map, unsigned *reserved_maps, 41 struct pinctrl_map *map, unsigned num_maps);
|
/device/soc/rockchip/rk3588/kernel/arch/arm64/boot/ |
H A D | install.sh | 19 # $3 - kernel map file 56 # Install system map file 57 if [ -f $4/System.map-$1 ]; then 58 mv $4/System.map-$1 $4/System.map-$1.old 60 cp $3 $4/System.map-$1
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/ump/linux/ |
H A D | ump_kernel_random_mapping.h | 28 * Provides a separate namespace where we can map an integer to a pointer 50 * @param map The map to free 52 void ump_random_mapping_destroy(ump_random_mapping *map); 56 * Allocates a new entry in the map. 57 * @param map The map to allocate a new entry in 58 * @param target The value to map to 61 int ump_random_mapping_insert(ump_random_mapping *map, ump_dd_mem *mem); 68 * @param map Th [all...] |
/device/soc/rockchip/rk3568/hardware/codec/src/ |
H A D | hdi_mpp_component_manager.cpp | 17 #include <map> 25 std::map<uintptr_t, uintptr_t> g_mppComponents; 33 std::pair<std::map<uintptr_t, uintptr_t>::iterator, bool> ret = in AddToMppComponentManager() 43 std::map<uintptr_t, uintptr_t>::iterator it = g_mppComponents.find(handle); in FindInMppComponentManager()
|
/device/soc/rockchip/rk3588/hardware/codec/src/ |
H A D | hdi_mpp_component_manager.cpp | 17 #include <map> 25 std::map<uintptr_t, uintptr_t> g_mppComponents; 33 std::pair<std::map<uintptr_t, uintptr_t>::iterator, bool> ret = in AddToMppComponentManager() 43 std::map<uintptr_t, uintptr_t>::iterator it = g_mppComponents.find(handle); in FindInMppComponentManager()
|