Home
last modified time | relevance | path

Searched refs:domain (Results 1 - 25 of 72) sorted by relevance

123

/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/common/
H A Dmali_pm_domain.c41 struct mali_pm_domain *domain = NULL; in mali_pm_domain_create() local
44 domain = mali_pm_domain_get_from_mask(pmu_mask); in mali_pm_domain_create()
45 if (domain != NULL) { in mali_pm_domain_create()
46 return domain; in mali_pm_domain_create()
50 ("Mali PM domain: Creating Mali PM domain (mask=0x%08X)\n", pmu_mask)); in mali_pm_domain_create()
52 domain = (struct mali_pm_domain *)mali_osk_malloc(sizeof(struct mali_pm_domain)); in mali_pm_domain_create()
53 if (domain != NULL) { in mali_pm_domain_create()
54 domain->power_is_on = MALI_FALSE; in mali_pm_domain_create()
55 domain in mali_pm_domain_create()
75 mali_pm_domain_delete(struct mali_pm_domain *domain) mali_pm_domain_delete() argument
87 mali_pm_domain_add_group(struct mali_pm_domain *domain, struct mali_group *group) mali_pm_domain_add_group() argument
100 mali_pm_domain_add_l2_cache(struct mali_pm_domain *domain, struct mali_l2_cache_core *l2_cache) mali_pm_domain_add_l2_cache() argument
131 mali_pm_domain_ref_get(struct mali_pm_domain *domain) mali_pm_domain_ref_get() argument
146 mali_pm_domain_ref_put(struct mali_pm_domain *domain) mali_pm_domain_ref_put() argument
166 mali_pm_domain_get_id(struct mali_pm_domain *domain) mali_pm_domain_get_id() argument
[all...]
H A Dmali_pm_domain.h28 /* Zero or more groups can belong to this domain */
31 /* Zero or more L2 caches can belong to this domain */
39 void mali_pm_domain_delete(struct mali_pm_domain *domain);
41 void mali_pm_domain_add_l2_cache(struct mali_pm_domain *domain, struct mali_l2_cache_core *l2_cache);
42 void mali_pm_domain_add_group(struct mali_pm_domain *domain, struct mali_group *group);
48 u32 mali_pm_domain_ref_get(struct mali_pm_domain *domain);
49 u32 mali_pm_domain_ref_put(struct mali_pm_domain *domain);
51 MALI_STATIC_INLINE _mali_osk_list_t *mali_pm_domain_get_group_list(struct mali_pm_domain *domain) in mali_pm_domain_get_group_list() argument
53 MALI_DEBUG_ASSERT_POINTER(domain); in mali_pm_domain_get_group_list()
54 return &domain in mali_pm_domain_get_group_list()
57 mali_pm_domain_get_l2_cache_list(struct mali_pm_domain *domain) mali_pm_domain_get_l2_cache_list() argument
63 mali_pm_domain_power_is_on(struct mali_pm_domain *domain) mali_pm_domain_power_is_on() argument
69 mali_pm_domain_set_power_on(struct mali_pm_domain *domain, mali_bool power_is_on) mali_pm_domain_set_power_on() argument
75 mali_pm_domain_get_use_count(struct mali_pm_domain *domain) mali_pm_domain_get_use_count() argument
84 mali_pm_domain_get_mask(struct mali_pm_domain *domain) mali_pm_domain_get_mask() argument
[all...]
H A Dmali_pm.c36 /* the wanted domain mask (protected by pm_lock_state) */
119 * We have a Mali PMU, set the correct domain in mali_pm_initialize()
133 /* Create all power domains needed (at least one dummy domain) */ in mali_pm_initialize()
165 struct mali_pm_domain *domain; in mali_pm_register_l2_cache() local
167 domain = mali_pm_domain_get_from_mask(domain_config[domain_index]); in mali_pm_register_l2_cache()
168 if (domain == NULL) { in mali_pm_register_l2_cache()
170 domain = mali_pm_domain_get_from_index(MALI_DOMAIN_INDEX_DUMMY); in mali_pm_register_l2_cache()
176 MALI_DEBUG_ASSERT(domain != NULL); in mali_pm_register_l2_cache()
178 mali_pm_domain_add_l2_cache(domain, l2_cache); in mali_pm_register_l2_cache()
180 return domain; /* retur in mali_pm_register_l2_cache()
185 struct mali_pm_domain *domain; mali_pm_register_group() local
458 mali_pm_dump_state_domain(struct mali_pm_domain *domain, char *buf, u32 size) mali_pm_dump_state_domain() argument
524 struct mali_pm_domain *domain = mali_pm_domain_get_from_index(domain_id); mali_pm_domain_power_up() local
587 struct mali_pm_domain *domain = mali_pm_domain_get_from_index(domain_id); mali_pm_domain_power_down() local
[all...]
H A Dmali_executor.c2290 struct mali_pm_domain *domain; in mali_executor_core_scale() local
2291 domain = mali_pm_domain_get_from_index(i); in mali_executor_core_scale()
2293 if ((domain != NULL) && !(_mali_osk_list_empty(&domain->group_list))) { in mali_executor_core_scale()
2297 MALI_OSK_LIST_FOREACHENTRY(group, temp, &domain->group_list, struct mali_group, pm_domain_list) in mali_executor_core_scale()
2317 * this domain whose domain index is i. in mali_executor_core_scale()
2320 struct mali_pm_domain *domain; in mali_executor_core_scale() local
2326 domain = mali_pm_domain_get_from_index(i); in mali_executor_core_scale()
2328 if ((domain ! in mali_executor_core_scale()
2397 struct mali_pm_domain *domain; mali_executor_core_scale_in_group_complete() local
2543 struct mali_pm_domain *domain; mali_executor_running_status_print() local
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/
H A Dmali_pm_domain.c39 struct mali_pm_domain *domain = NULL; in mali_pm_domain_create() local
42 domain = mali_pm_domain_get_from_mask(pmu_mask); in mali_pm_domain_create()
43 if (NULL != domain) return domain; in mali_pm_domain_create()
46 ("Mali PM domain: Creating Mali PM domain (mask=0x%08X)\n", in mali_pm_domain_create()
49 domain = (struct mali_pm_domain *)_mali_osk_malloc( in mali_pm_domain_create()
51 if (NULL != domain) { in mali_pm_domain_create()
52 domain->power_is_on = MALI_FALSE; in mali_pm_domain_create()
53 domain in mali_pm_domain_create()
73 mali_pm_domain_delete(struct mali_pm_domain *domain) mali_pm_domain_delete() argument
85 mali_pm_domain_add_group(struct mali_pm_domain *domain, struct mali_group *group) mali_pm_domain_add_group() argument
99 mali_pm_domain_add_l2_cache(struct mali_pm_domain *domain, struct mali_l2_cache_core *l2_cache) mali_pm_domain_add_l2_cache() argument
131 mali_pm_domain_ref_get(struct mali_pm_domain *domain) mali_pm_domain_ref_get() argument
146 mali_pm_domain_ref_put(struct mali_pm_domain *domain) mali_pm_domain_ref_put() argument
166 mali_pm_domain_get_id(struct mali_pm_domain *domain) mali_pm_domain_get_id() argument
[all...]
H A Dmali_pm_domain.h27 /* Zero or more groups can belong to this domain */
30 /* Zero or more L2 caches can belong to this domain */
39 void mali_pm_domain_delete(struct mali_pm_domain *domain);
42 struct mali_pm_domain *domain,
44 void mali_pm_domain_add_group(struct mali_pm_domain *domain,
51 u32 mali_pm_domain_ref_get(struct mali_pm_domain *domain);
52 u32 mali_pm_domain_ref_put(struct mali_pm_domain *domain);
55 struct mali_pm_domain *domain) in mali_pm_domain_get_group_list()
57 MALI_DEBUG_ASSERT_POINTER(domain); in mali_pm_domain_get_group_list()
58 return &domain in mali_pm_domain_get_group_list()
54 mali_pm_domain_get_group_list( struct mali_pm_domain *domain) mali_pm_domain_get_group_list() argument
61 mali_pm_domain_get_l2_cache_list( struct mali_pm_domain *domain) mali_pm_domain_get_l2_cache_list() argument
68 mali_pm_domain_power_is_on( struct mali_pm_domain *domain) mali_pm_domain_power_is_on() argument
75 mali_pm_domain_set_power_on( struct mali_pm_domain *domain, mali_bool power_is_on) mali_pm_domain_set_power_on() argument
83 mali_pm_domain_get_use_count( struct mali_pm_domain *domain) mali_pm_domain_get_use_count() argument
93 mali_pm_domain_get_mask(struct mali_pm_domain *domain) mali_pm_domain_get_mask() argument
[all...]
H A Dmali_pm.c35 /* the wanted domain mask (protected by pm_lock_state) */
122 * We have a Mali PMU, set the correct domain in mali_pm_initialize()
136 /* Create all power domains needed (at least one dummy domain) */ in mali_pm_initialize()
169 struct mali_pm_domain *domain; in mali_pm_register_l2_cache() local
171 domain = mali_pm_domain_get_from_mask(domain_config[domain_index]); in mali_pm_register_l2_cache()
172 if (NULL == domain) { in mali_pm_register_l2_cache()
174 domain = mali_pm_domain_get_from_index( in mali_pm_register_l2_cache()
181 MALI_DEBUG_ASSERT(NULL != domain); in mali_pm_register_l2_cache()
183 mali_pm_domain_add_l2_cache(domain, l2_cache); in mali_pm_register_l2_cache()
185 return domain; /* retur in mali_pm_register_l2_cache()
191 struct mali_pm_domain *domain; mali_pm_register_group() local
469 mali_pm_dump_state_domain(struct mali_pm_domain *domain, char *buf, u32 size) mali_pm_dump_state_domain() argument
549 struct mali_pm_domain *domain = mali_pm_domain_power_up() local
565 _MALI_OSK_LIST_FOREACHENTRY(l2_cache, l2_cache_tmp, mali_pm_domain_get_l2_cache_list( domain), struct mali_l2_cache_core, pm_domain_list) mali_pm_domain_power_up() argument
623 struct mali_pm_domain *domain = mali_pm_domain_power_down() local
[all...]
H A Dmali_executor.c2420 struct mali_pm_domain *domain; in mali_executor_core_scale() local
2422 domain = mali_pm_domain_get_from_index(i); in mali_executor_core_scale()
2425 if ((NULL != domain) && !(_mali_osk_list_empty(&domain->group_list))) { in mali_executor_core_scale()
2429 _MALI_OSK_LIST_FOREACHENTRY(group, temp, &domain->group_list, struct mali_group, pm_domain_list) { in mali_executor_core_scale()
2448 * this domain whose domain index is i. in mali_executor_core_scale()
2451 struct mali_pm_domain *domain; in mali_executor_core_scale() local
2457 domain = mali_pm_domain_get_from_index(i); in mali_executor_core_scale()
2460 if ((NULL != domain) in mali_executor_core_scale()
2527 struct mali_pm_domain *domain; mali_executor_core_scale_in_group_complete() local
2678 struct mali_pm_domain *domain; mali_executor_running_status_print() local
[all...]
/device/soc/rockchip/common/sdk_linux/include/linux/
H A Diommu.h85 * This are the possible domain-types
179 IOMMU_DEV_FEAT_AUX, /* Aux-domain feature */
207 * @domain_alloc: allocate iommu domain
208 * @domain_free: free iommu domain
209 * @attach_dev: attach device to an iommu domain
210 * @detach_dev: detach device from an iommu domain
211 * @map: map a physically contiguous memory region to an iommu domain
213 * an iommu domain.
215 * an iommu domain.
216 * @unmap: unmap a physically contiguous memory region from an iommu domain
502 iommu_flush_iotlb_all(struct iommu_domain *domain) iommu_flush_iotlb_all() argument
509 iommu_iotlb_sync(struct iommu_domain *domain, struct iommu_iotlb_gather *iotlb_gather) iommu_iotlb_sync() argument
518 iommu_iotlb_gather_add_page(struct iommu_domain *domain, struct iommu_iotlb_gather *gather, unsigned long iova, size_t size) iommu_iotlb_gather_add_page() argument
664 iommu_domain_free(struct iommu_domain *domain) iommu_domain_free() argument
668 iommu_attach_device(struct iommu_domain *domain, struct device *dev) iommu_attach_device() argument
673 iommu_detach_device(struct iommu_domain *domain, struct device *dev) iommu_detach_device() argument
682 iommu_map(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, size_t size, int prot) iommu_map() argument
687 iommu_map_atomic(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, size_t size, int prot) iommu_map_atomic() argument
693 iommu_unmap(struct iommu_domain *domain, unsigned long iova, size_t size) iommu_unmap() argument
698 iommu_unmap_fast(struct iommu_domain *domain, unsigned long iova, int gfp_order, struct iommu_iotlb_gather *iotlb_gather) iommu_unmap_fast() argument
704 iommu_map_sg(struct iommu_domain *domain, unsigned long iova, struct scatterlist *sg, unsigned int nents, int prot) iommu_map_sg() argument
710 iommu_map_sg_atomic(struct iommu_domain *domain, unsigned long iova, struct scatterlist *sg, unsigned int nents, int prot) iommu_map_sg_atomic() argument
716 iommu_flush_iotlb_all(struct iommu_domain *domain) iommu_flush_iotlb_all() argument
720 iommu_iotlb_sync(struct iommu_domain *domain, struct iommu_iotlb_gather *iotlb_gather) iommu_iotlb_sync() argument
724 iommu_domain_window_enable(struct iommu_domain *domain, u32 wnd_nr, phys_addr_t paddr, u64 size, int prot) iommu_domain_window_enable() argument
730 iommu_domain_window_disable(struct iommu_domain *domain, u32 wnd_nr) iommu_domain_window_disable() argument
734 iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova) iommu_iova_to_phys() argument
739 iommu_set_fault_handler(struct iommu_domain *domain, iommu_fault_handler_t handler, void *token) iommu_set_fault_handler() argument
769 iommu_attach_group(struct iommu_domain *domain, struct iommu_group *group) iommu_attach_group() argument
774 iommu_detach_group(struct iommu_domain *domain, struct iommu_group *group) iommu_detach_group() argument
856 iommu_domain_get_attr(struct iommu_domain *domain, enum iommu_attr attr, void *data) iommu_domain_get_attr() argument
861 iommu_domain_set_attr(struct iommu_domain *domain, enum iommu_attr attr, void *data) iommu_domain_set_attr() argument
888 iommu_iotlb_gather_add_page(struct iommu_domain *domain, struct iommu_iotlb_gather *gather, unsigned long iova, size_t size) iommu_iotlb_gather_add_page() argument
955 iommu_aux_attach_device(struct iommu_domain *domain, struct device *dev) iommu_aux_attach_device() argument
960 iommu_aux_detach_device(struct iommu_domain *domain, struct device *dev) iommu_aux_detach_device() argument
964 iommu_aux_get_pasid(struct iommu_domain *domain, struct device *dev) iommu_aux_get_pasid() argument
983 iommu_uapi_cache_invalidate(struct iommu_domain *domain, struct device *dev, struct iommu_cache_invalidate_info *inv_info) iommu_uapi_cache_invalidate() argument
989 iommu_uapi_sva_bind_gpasid(struct iommu_domain *domain, struct device *dev, void __user *udata) iommu_uapi_sva_bind_gpasid() argument
994 iommu_uapi_sva_unbind_gpasid(struct iommu_domain *domain, struct device *dev, void __user *udata) iommu_uapi_sva_unbind_gpasid() argument
999 iommu_sva_unbind_gpasid(struct iommu_domain *domain, struct device *dev, ioasid_t pasid) iommu_sva_unbind_gpasid() argument
1028 iommu_map_sgtable(struct iommu_domain *domain, unsigned long iova, struct sg_table *sgt, int prot) iommu_map_sgtable() argument
[all...]
H A Ddma-iommu.h17 int iommu_get_dma_cookie(struct iommu_domain *domain);
18 int iommu_get_msi_cookie(struct iommu_domain *domain, dma_addr_t base);
19 void iommu_put_dma_cookie(struct iommu_domain *domain);
54 static inline int iommu_get_dma_cookie(struct iommu_domain *domain) in iommu_get_dma_cookie() argument
59 static inline int iommu_get_msi_cookie(struct iommu_domain *domain, dma_addr_t base) in iommu_get_msi_cookie() argument
64 static inline void iommu_put_dma_cookie(struct iommu_domain *domain) in iommu_put_dma_cookie() argument
/device/soc/rockchip/common/sdk_linux/drivers/iommu/
H A Diommu.c47 struct iommu_domain *domain; member
83 static int iommu_attach_device_ext(struct iommu_domain *domain, struct device *dev);
84 static int iommu_attach_group_ext(struct iommu_domain *domain, struct iommu_group *group);
85 static void iommu_detach_group_ext(struct iommu_domain *domain, struct iommu_group *group);
99 * Use a function instead of an array here because the domain-type is a
135 pr_info("Default domain type: %s %s\n", iommu_domain_type_str(iommu_def_domain_type), in iommu_subsys_init()
261 * Try to allocate a default domain - needs support from the in iommu_probe_device()
725 struct iommu_domain *domain = group->default_domain; in iommu_create_device_direct_mappings() local
731 if (!domain || domain in iommu_create_device_direct_mappings()
781 iommu_is_attach_deferred(struct iommu_domain *domain, struct device *dev) iommu_is_attach_deferred() argument
1207 struct iommu_domain *domain = iommu_get_domain_for_dev(dev); iommu_page_response() local
1730 struct iommu_domain *domain = data; iommu_group_do_dma_attach() local
1747 struct iommu_domain *domain = data; iommu_group_do_probe_finalize() local
1923 iommu_set_fault_handler(struct iommu_domain *domain, iommu_fault_handler_t handler, void *token) iommu_set_fault_handler() argument
1934 struct iommu_domain *domain; iommu_domain_alloc_ext() local
1959 iommu_domain_free(struct iommu_domain *domain) iommu_domain_free() argument
1965 iommu_attach_device_ext(struct iommu_domain *domain, struct device *dev) iommu_attach_device_ext() argument
1980 iommu_attach_device(struct iommu_domain *domain, struct device *dev) iommu_attach_device() argument
2071 iommu_uapi_cache_invalidate(struct iommu_domain *domain, struct device *dev, void __user *uinfo) iommu_uapi_cache_invalidate() argument
2192 iommu_uapi_sva_bind_gpasid(struct iommu_domain *domain, struct device *dev, void __user *udata) iommu_uapi_sva_bind_gpasid() argument
2210 iommu_sva_unbind_gpasid(struct iommu_domain *domain, struct device *dev, ioasid_t pasid) iommu_sva_unbind_gpasid() argument
2220 iommu_uapi_sva_unbind_gpasid(struct iommu_domain *domain, struct device *dev, void __user *udata) iommu_uapi_sva_unbind_gpasid() argument
2238 __iommu_detach_device(struct iommu_domain *domain, struct device *dev) __iommu_detach_device() argument
2252 iommu_detach_device(struct iommu_domain *domain, struct device *dev) iommu_detach_device() argument
2278 struct iommu_domain *domain; iommu_get_domain_for_dev() local
2315 struct iommu_domain *domain = data; iommu_group_do_attach_device() local
2320 iommu_attach_group_ext(struct iommu_domain *domain, struct iommu_group *group) iommu_attach_group_ext() argument
2336 iommu_attach_group(struct iommu_domain *domain, struct iommu_group *group) iommu_attach_group() argument
2350 struct iommu_domain *domain = data; iommu_group_do_detach_device() local
2357 iommu_detach_group_ext(struct iommu_domain *domain, struct iommu_group *group) iommu_detach_group_ext() argument
2380 iommu_detach_group(struct iommu_domain *domain, struct iommu_group *group) iommu_detach_group() argument
2388 iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova) iommu_iova_to_phys() argument
2398 iommu_pgsize(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, size_t size, size_t *count) iommu_pgsize() argument
2448 iommu_map_pages_ext(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, size_t size, int prot, gfp_t gfp, size_t *mapped) iommu_map_pages_ext() argument
2469 iommu_map_ext(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, size_t size, int prot, gfp_t gfp) iommu_map_ext() argument
2529 _iommu_map(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, size_t size, int prot, gfp_t gfp) _iommu_map() argument
2543 iommu_map(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, size_t size, int prot) iommu_map() argument
2550 iommu_map_atomic(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, size_t size, int prot) iommu_map_atomic() argument
2556 iommu_unmap_pages_ext(struct iommu_domain *domain, unsigned long iova, size_t size, struct iommu_iotlb_gather *iotlb_gather) iommu_unmap_pages_ext() argument
2567 iommu_unmap_ext(struct iommu_domain *domain, unsigned long iova, size_t size, struct iommu_iotlb_gather *iotlb_gather) iommu_unmap_ext() argument
2616 iommu_unmap(struct iommu_domain *domain, unsigned long iova, size_t size) iommu_unmap() argument
2629 iommu_unmap_fast(struct iommu_domain *domain, unsigned long iova, size_t size, struct iommu_iotlb_gather *iotlb_gather) iommu_unmap_fast() argument
2636 iommu_map_sg_ext(struct iommu_domain *domain, unsigned long iova, struct scatterlist *sg, unsigned int nents, int prot, gfp_t gfp) iommu_map_sg_ext() argument
2702 iommu_map_sg(struct iommu_domain *domain, unsigned long iova, struct scatterlist *sg, unsigned int nents, int prot) iommu_map_sg() argument
2710 iommu_map_sg_atomic(struct iommu_domain *domain, unsigned long iova, struct scatterlist *sg, unsigned int nents, int prot) iommu_map_sg_atomic() argument
2717 iommu_domain_window_enable(struct iommu_domain *domain, u32 wnd_nr, phys_addr_t paddr, u64 size, int prot) iommu_domain_window_enable() argument
2727 iommu_domain_window_disable(struct iommu_domain *domain, u32 wnd_nr) iommu_domain_window_disable() argument
2761 report_iommu_fault(struct iommu_domain *domain, struct device *dev, unsigned long iova, int flags) report_iommu_fault() argument
2789 iommu_domain_get_attr(struct iommu_domain *domain, enum iommu_attr attr, void *data) iommu_domain_get_attr() argument
2817 iommu_domain_set_attr(struct iommu_domain *domain, enum iommu_attr attr, void *data) iommu_domain_set_attr() argument
3063 iommu_aux_attach_device(struct iommu_domain *domain, struct device *dev) iommu_aux_attach_device() argument
3079 iommu_aux_detach_device(struct iommu_domain *domain, struct device *dev) iommu_aux_detach_device() argument
3088 iommu_aux_get_pasid(struct iommu_domain *domain, struct device *dev) iommu_aux_get_pasid() argument
[all...]
H A Ddma-iommu.c75 * iommu_get_dma_cookie - Acquire DMA-API resources for a domain
76 * @domain: IOMMU domain to prepare for DMA-API usage
79 * callback when domain->type == IOMMU_DOMAIN_DMA.
81 int iommu_get_dma_cookie(struct iommu_domain *domain) in iommu_get_dma_cookie() argument
83 if (domain->iova_cookie) { in iommu_get_dma_cookie()
87 domain->iova_cookie = cookie_alloc(IOMMU_DMA_IOVA_COOKIE); in iommu_get_dma_cookie()
88 if (!domain->iova_cookie) { in iommu_get_dma_cookie()
98 * @domain: IOMMU domain t
108 iommu_get_msi_cookie(struct iommu_domain *domain, dma_addr_t base) iommu_get_msi_cookie() argument
138 iommu_put_dma_cookie(struct iommu_domain *domain) iommu_put_dma_cookie() argument
248 iova_reserve_iommu_regions(struct device *dev, struct iommu_domain *domain) iova_reserve_iommu_regions() argument
292 struct iommu_domain *domain; iommu_dma_flush_iotlb_all() local
315 iommu_dma_init_domain(struct iommu_domain *domain, dma_addr_t base, u64 size, struct device *dev) iommu_dma_init_domain() argument
369 iommu_dma_deferred_attach(struct device *dev, struct iommu_domain *domain) iommu_dma_deferred_attach() argument
389 struct iommu_domain *domain; iommu_dma_reserve_iova() local
418 struct iommu_domain *domain; iommu_dma_enable_best_fit_algo() local
467 iommu_dma_alloc_iova(struct iommu_domain *domain, size_t size, u64 dma_limit, struct device *dev) iommu_dma_alloc_iova() argument
524 struct iommu_domain *domain = iommu_get_dma_domain(dev); iommu_dma_unmap_ext() local
546 struct iommu_domain *domain = iommu_get_dma_domain(dev); iommu_dma_map_ext() local
656 struct iommu_domain *domain = iommu_get_dma_domain(dev); iommu_dma_alloc_remap() local
910 struct iommu_domain *domain = iommu_get_dma_domain(dev); iommu_dma_map_sg() local
1225 struct iommu_domain *domain = iommu_get_dma_domain(dev); iommu_dma_get_merge_boundary() local
1258 struct iommu_domain *domain = iommu_get_domain_for_dev(dev); iommu_setup_dma_ops() local
1280 iommu_dma_get_msi_page(struct device *dev, phys_addr_t msi_addr, struct iommu_domain *domain) iommu_dma_get_msi_page() argument
1322 struct iommu_domain *domain = iommu_get_domain_for_dev(dev); iommu_dma_prepare_msi() local
1351 const struct iommu_domain *domain = iommu_get_domain_for_dev(dev); iommu_dma_compose_msi_msg() local
[all...]
H A Drockchip-iommu.c127 struct iommu_domain domain; member
147 struct iommu_domain *domain; /* domain to which iommu is attached */ member
170 return container_of(dom, struct rk_iommu_domain, domain); in to_rk_domain()
768 if (iommu->domain) { in rk_iommu_irq()
769 report_iommu_fault(iommu->domain, iommu->dev, iova, status); in rk_iommu_irq()
771 dev_err(iommu->dev, "Page fault while iommu not attached to domain?\n"); in rk_iommu_irq()
805 static phys_addr_t rk_iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova) in rk_iommu_iova_to_phys() argument
807 struct rk_iommu_domain *rk_domain = to_rk_domain(domain); in rk_iommu_iova_to_phys()
834 static phys_addr_t rk_iommu_iova_to_phys_v2(struct iommu_domain *domain, dma_addr_ argument
1089 rk_iommu_map(struct iommu_domain *domain, unsigned long _iova, phys_addr_t paddr, size_t size, int prot, gfp_t gfp) rk_iommu_map() argument
1125 rk_iommu_map_v2(struct iommu_domain *domain, unsigned long _iova, phys_addr_t paddr, size_t size, int prot, gfp_t gfp) rk_iommu_map_v2() argument
1161 rk_iommu_unmap(struct iommu_domain *domain, unsigned long _iova, size_t size, struct iommu_iotlb_gather *gather) rk_iommu_unmap() argument
1201 rk_iommu_unmap_v2(struct iommu_domain *domain, unsigned long _iova, size_t size, struct iommu_iotlb_gather *gather) rk_iommu_unmap_v2() argument
1244 rk_iommu_flush_tlb_all(struct iommu_domain *domain) rk_iommu_flush_tlb_all() argument
1317 struct iommu_domain *domain = iommu->domain; rk_iommu_enable() local
1376 rk_iommu_detach_device(struct iommu_domain *domain, struct device *dev) rk_iommu_detach_device() argument
1409 rk_iommu_attach_device(struct iommu_domain *domain, struct device *dev) rk_iommu_attach_device() argument
1519 rk_iommu_domain_free(struct iommu_domain *domain) rk_iommu_domain_free() argument
1545 rk_iommu_domain_free_v2(struct iommu_domain *domain) rk_iommu_domain_free_v2() argument
1618 rk_iommu_is_attach_deferred(struct iommu_domain *domain, struct device *dev) rk_iommu_is_attach_deferred() argument
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/higv/include/
H A Dhi_gv_log.h77 * brief Set the verbose level of a domain.
84 * param[in] pDomain domain name.
90 HI_S32 HI_GV_Log_SetLevel(const HI_CHAR *domain, HIGV_LOG_LEVEL_E level);
93 * brief Get the verbose level of a domain.
94 * param[in] Get the verbose level from a domain name.
99 HIGV_LOG_LEVEL_E HI_GV_Log_GetLevel(const HI_CHAR *domain);
102 * brief Output the verbose text info of a domain.
109 HI_S32 HI_GV_Log_Output(const HI_CHAR *domain, HIGV_LOG_LEVEL_E level, HI_S32 error, const HI_CHAR *fileName,
113 #define HIGV_DEBUG(domain, format...) \
114 HI_GV_Log_Output(domain, HIGV_LOG_DEBU
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/irqchip/
H A Dirq-gic-v4.c71 * contain an irq domain where each interrupt maps to a VPE. In
72 * turn, this domain sits on top of the normal LPI allocator, and a
150 vm->domain = irq_domain_create_hierarchy(gic_domain, 0, vm->nr_vpes, vm->fwnode, vpe_domain_ops, vm); in its_alloc_vcpu_irqs()
151 if (!vm->domain) { in its_alloc_vcpu_irqs()
160 vpe_base_irq = __irq_domain_alloc_irqs(vm->domain, -1, vm->nr_vpes, NUMA_NO_NODE, vm, false, NULL); in its_alloc_vcpu_irqs()
177 if (vm->domain) { in its_alloc_vcpu_irqs()
178 irq_domain_remove(vm->domain); in its_alloc_vcpu_irqs()
211 irq_domain_remove(vm->domain); in its_free_vcpu_irqs()
366 int its_init_v4(struct irq_domain *domain, const struct irq_domain_ops *vpe_ops, const struct irq_domain_ops *sgi_ops) in its_init_v4() argument
368 if (domain) { in its_init_v4()
[all...]
/device/soc/rockchip/common/sdk_linux/include/soc/rockchip/
H A Dscpi.h31 int scpi_dvfs_get_idx(u8 domain);
32 int scpi_dvfs_set_idx(u8 domain, u8 idx);
33 struct scpi_opp *scpi_dvfs_get_opps(u8 domain);
60 static inline int scpi_dvfs_get_idx(u8 domain) in scpi_dvfs_get_idx() argument
65 static inline int scpi_dvfs_set_idx(u8 domain, u8 idx) in scpi_dvfs_set_idx() argument
70 static inline struct scpi_opp *scpi_dvfs_get_opps(u8 domain) in scpi_dvfs_get_opps() argument
/device/soc/rockchip/rk3588/kernel/include/soc/rockchip/
H A Dscpi.h31 int scpi_dvfs_get_idx(u8 domain);
32 int scpi_dvfs_set_idx(u8 domain, u8 idx);
33 struct scpi_opp *scpi_dvfs_get_opps(u8 domain);
61 static inline int scpi_dvfs_get_idx(u8 domain) in scpi_dvfs_get_idx() argument
66 static inline int scpi_dvfs_set_idx(u8 domain, u8 idx) in scpi_dvfs_set_idx() argument
71 static inline struct scpi_opp *scpi_dvfs_get_opps(u8 domain) in scpi_dvfs_get_opps() argument
/device/soc/rockchip/common/vendor/drivers/video/rockchip/mpp/
H A Dmpp_iommu.c363 iommu_detach_group(info->domain, info->group); in mpp_iommu_detach()
373 return iommu_attach_group(info->domain, info->group); in mpp_iommu_attach()
382 struct iommu_domain *domain = NULL; in mpp_iommu_probe() local
408 * domain store in mapping created by arm32-arch. in mpp_iommu_probe()
409 * we re-attach domain here in mpp_iommu_probe()
415 domain = mapping->domain; in mpp_iommu_probe()
418 if (!domain) { in mpp_iommu_probe()
419 domain = iommu_get_domain_for_dev(dev); in mpp_iommu_probe()
420 if (!domain) { in mpp_iommu_probe()
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/mpp/
H A Dmpp_iommu.c369 iommu_detach_group(info->domain, info->group); in mpp_iommu_detach()
378 return iommu_attach_group(info->domain, info->group); in mpp_iommu_attach()
388 struct iommu_domain *domain = NULL; in mpp_iommu_probe() local
414 * domain store in mapping created by arm32-arch. in mpp_iommu_probe()
415 * we re-attach domain here in mpp_iommu_probe()
421 domain = mapping->domain; in mpp_iommu_probe()
424 if (!domain) { in mpp_iommu_probe()
425 domain = iommu_get_domain_for_dev(dev); in mpp_iommu_probe()
426 if (!domain) { in mpp_iommu_probe()
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/lwip/
H A Dsockets.h793 #define LWIP_IS_VALID_DOMAIN(domain) (((domain) == AF_INET) || ((domain) == AF_INET6) || ((domain) == PF_PACKET))
795 #define LWIP_IS_VALID_DOMAIN(domain) ((domain) == AF_INET) || ((domain) == AF_INET6)
800 #define LWIP_IS_VALID_DOMAIN(domain) (((domain) == AF_INET) || ((domain)
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/rga3/
H A Drga_dma_buf.c363 static dma_addr_t rga_iommu_dma_alloc_iova(struct iommu_domain *domain, in rga_iommu_dma_alloc_iova() argument
367 struct rga_iommu_dma_cookie *cookie = domain->iova_cookie; in rga_iommu_dma_alloc_iova()
384 if (domain->geometry.force_aperture) in rga_iommu_dma_alloc_iova()
385 dma_limit = min(dma_limit, (u64)domain->geometry.aperture_end); in rga_iommu_dma_alloc_iova()
412 iommu_unmap(buffer->domain, buffer->iova, buffer->size); in rga_viraddr_put_channel_info()
427 iommu_unmap(virt_dma_buf->domain, virt_dma_buf->iova, virt_dma_buf->size); in rga_iommu_unmap_virt_addr()
440 struct iommu_domain *domain = NULL; in rga_iommu_map_virt_addr() local
449 domain = iommu_get_dma_domain(rga_dev); in rga_iommu_map_virt_addr()
450 cookie = domain->iova_cookie; in rga_iommu_map_virt_addr()
462 iova = rga_iommu_dma_alloc_iova(domain, siz in rga_iommu_map_virt_addr()
509 struct iommu_domain *domain = NULL; rga_viraddr_get_channel_info() local
[all...]
/device/soc/rockchip/common/sdk_linux/include/linux/irqchip/
H A Darm-gic-v4.h21 struct irq_domain *domain; member
144 int its_init_v4(struct irq_domain *domain, const struct irq_domain_ops *vpe_ops, const struct irq_domain_ops *sgi_ops);
/device/soc/rockchip/common/vendor/drivers/gpio/
H A Dgpio-rockchip.c292 if (!bank->domain) { in rockchip_gpio_to_irq()
296 virq = irq_create_mapping(bank->domain, offset); in rockchip_gpio_to_irq()
332 virq = irq_find_mapping(bank->domain, irq); in rockchip_irq_demux()
479 bank->domain = irq_domain_add_linear(bank->of_node, 0x20, &irq_generic_chip_ops, NULL); in rockchip_interrupts_register()
480 if (!bank->domain) { in rockchip_interrupts_register()
481 dev_warn(bank->dev, "could not initialize irq domain for bank %s\n", bank->name); in rockchip_interrupts_register()
485 ret = irq_alloc_domain_generic_chips(bank->domain, 0x20, 1, bank->name, handle_level_irq, clr, 0, 0); in rockchip_interrupts_register()
488 irq_domain_remove(bank->domain); in rockchip_interrupts_register()
492 gc = irq_get_domain_generic_chip(bank->domain, 0); in rockchip_interrupts_register()
/device/soc/rockchip/common/sdk_linux/drivers/gpio/
H A Dgpio-rockchip.c295 if (!bank->domain) { in rockchip_gpio_to_irq()
299 virq = irq_create_mapping(bank->domain, offset); in rockchip_gpio_to_irq()
335 virq = irq_find_mapping(bank->domain, irq); in rockchip_irq_demux()
482 bank->domain = irq_domain_add_linear(bank->of_node, 0x20, &irq_generic_chip_ops, NULL); in rockchip_interrupts_register()
483 if (!bank->domain) { in rockchip_interrupts_register()
484 dev_warn(bank->dev, "could not initialize irq domain for bank %s\n", bank->name); in rockchip_interrupts_register()
488 ret = irq_alloc_domain_generic_chips(bank->domain, 0x20, 1, bank->name, handle_level_irq, clr, 0, 0); in rockchip_interrupts_register()
491 irq_domain_remove(bank->domain); in rockchip_interrupts_register()
495 gc = irq_get_domain_generic_chip(bank->domain, 0); in rockchip_interrupts_register()
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/rockchip/
H A Drockchip_drm_gem.c53 ret = iommu_map_sgtable(private->domain, rk_obj->dma_addr, rk_obj->sgt, prot); in rockchip_gem_iommu_map()
60 iommu_flush_iotlb_all(private->domain); in rockchip_gem_iommu_map()
79 iommu_unmap(private->domain, rk_obj->dma_addr, rk_obj->size); in rockchip_gem_iommu_unmap()
409 if (!private->domain) { in rockchip_gem_alloc_buf()
447 if (private->domain) { in rockchip_gem_alloc_buf()
460 if (private->domain) { in rockchip_gem_alloc_buf()
490 if (private->domain) { in rockchip_gem_free_buf()
682 if (private->domain) { in rockchip_gem_free_object()
836 if (private->domain) { in rockchip_gem_prime_import_sg_table()

Completed in 52 milliseconds

123