Home
last modified time | relevance | path

Searched refs:container (Results 1 – 25 of 119) sorted by relevance

12345

/Linux-v6.6/drivers/vfio/
Dcontainer.c80 static bool vfio_iommu_driver_allowed(struct vfio_container *container, in vfio_iommu_driver_allowed() argument
85 return container->noiommu == (driver->ops == &vfio_noiommu_ops); in vfio_iommu_driver_allowed()
148 struct vfio_container *container; in vfio_container_release() local
149 container = container_of(kref, struct vfio_container, kref); in vfio_container_release()
151 kfree(container); in vfio_container_release()
154 static void vfio_container_get(struct vfio_container *container) in vfio_container_get() argument
156 kref_get(&container->kref); in vfio_container_get()
159 static void vfio_container_put(struct vfio_container *container) in vfio_container_put() argument
161 kref_put(&container->kref, vfio_container_release); in vfio_container_put()
167 device->group->container->iommu_driver; in vfio_device_container_register()
[all …]
Dvfio_iommu_spapr_tce.c75 static long tce_iommu_mm_set(struct tce_container *container) in tce_iommu_mm_set() argument
77 if (container->mm) { in tce_iommu_mm_set()
78 if (container->mm == current->mm) in tce_iommu_mm_set()
83 container->mm = current->mm; in tce_iommu_mm_set()
84 mmgrab(container->mm); in tce_iommu_mm_set()
89 static long tce_iommu_prereg_free(struct tce_container *container, in tce_iommu_prereg_free() argument
94 ret = mm_iommu_put(container->mm, tcemem->mem); in tce_iommu_prereg_free()
104 static long tce_iommu_unregister_pages(struct tce_container *container, in tce_iommu_unregister_pages() argument
115 mem = mm_iommu_get(container->mm, vaddr, size >> PAGE_SHIFT); in tce_iommu_unregister_pages()
119 list_for_each_entry(tcemem, &container->prereg_list, next) { in tce_iommu_unregister_pages()
[all …]
Dgroup.c65 WARN_ON(!group->container != !group->container_users); in vfio_group_has_iommu()
67 return group->container || group->iommufd; in vfio_group_has_iommu()
85 if (group->container) { in vfio_group_ioctl_unset_container()
105 struct vfio_container *container; in vfio_group_ioctl_set_container() local
128 container = vfio_container_from_file(f.file); in vfio_group_ioctl_set_container()
129 if (container) { in vfio_group_ioctl_set_container()
130 ret = vfio_container_attach_group(container, group); in vfio_group_ioctl_set_container()
486 if (group->container) in vfio_group_fops_release()
756 if (group->container) in vfio_device_remove_group()
788 if (WARN_ON(!group->container)) in vfio_device_group_use_iommu()
[all …]
Dvfio.h82 struct vfio_container *container; member
242 int vfio_container_attach_group(struct vfio_container *container,
274 static inline int vfio_container_attach_group(struct vfio_container *container, in vfio_container_attach_group() argument
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/basics/
Dvector.c35 vector->container = NULL; in dal_vector_construct()
43 vector->container = kcalloc(capacity, struct_size, GFP_KERNEL); in dal_vector_construct()
44 if (vector->container == NULL) in dal_vector_construct()
61 vector->container = NULL; in dal_vector_presized_costruct()
69 vector->container = kcalloc(count, struct_size, GFP_KERNEL); in dal_vector_presized_costruct()
71 if (vector->container == NULL) in dal_vector_presized_costruct()
80 vector->container + i * struct_size, in dal_vector_presized_costruct()
132 kfree(vector->container); in dal_vector_destruct()
157 if (vector->container == NULL || index >= vector->count) in dal_vector_at_index()
159 return vector->container + (index * vector->struct_size); in dal_vector_at_index()
[all …]
/Linux-v6.6/drivers/scsi/aacraid/
Dcommsup.c1070 u32 channel, id, lun, container; in aac_handle_aif() local
1083 container = channel = id = lun = (u32)-1; in aac_handle_aif()
1095 container = le32_to_cpu(((__le32 *)aifcmd->data)[1]); in aac_handle_aif()
1096 if ((container >> 28)) { in aac_handle_aif()
1097 container = (u32)-1; in aac_handle_aif()
1100 channel = (container >> 24) & 0xF; in aac_handle_aif()
1102 container = (u32)-1; in aac_handle_aif()
1105 id = container & 0xFFFF; in aac_handle_aif()
1107 container = (u32)-1; in aac_handle_aif()
1110 lun = (container >> 16) & 0xFF; in aac_handle_aif()
[all …]
/Linux-v6.6/Documentation/security/tpm/
Dtpm_vtpm_proxy.rst15 container. This allows programs to interact with a TPM in a container
17 container gets its own unique, emulated, software TPM.
22 To make an emulated software TPM available to each container, the container
25 descriptor. The former is moved into the container by creating a character
27 is passed to the TPM emulator. Software inside the container can then send
/Linux-v6.6/drivers/usb/gadget/udc/aspeed-vhub/
Dhub.c327 ast_vhub_str_of_container(struct usb_gadget_string_container *container) in ast_vhub_str_of_container() argument
329 return (struct usb_gadget_strings *)container->stash; in ast_vhub_str_of_container()
337 struct usb_gadget_string_container *container; in ast_vhub_collect_languages() local
343 list_for_each_entry(container, &vhub->vhub_str_desc, list) { in ast_vhub_collect_languages()
347 lang_str = ast_vhub_str_of_container(container); in ast_vhub_collect_languages()
362 struct usb_gadget_string_container *container; in ast_vhub_lookup_string() local
364 list_for_each_entry(container, &vhub->vhub_str_desc, list) { in ast_vhub_lookup_string()
365 lang_str = ast_vhub_str_of_container(container); in ast_vhub_lookup_string()
936 struct usb_gadget_string_container *container; in ast_vhub_str_container_alloc() local
938 size = sizeof(*container); in ast_vhub_str_container_alloc()
[all …]
/Linux-v6.6/Documentation/driver-api/
Dvfio.rst80 a container class, which may hold one or more groups. A container
83 On its own, the container provides little functionality, with all
85 The user needs to add a group into the container for the next level
99 Once the group is ready, it may be added to the container by opening
102 previously opened container file. If desired and if the IOMMU driver
104 be set to the same container. If a group fails to set to a container
105 with existing groups, a new empty container will need to be used
108 With a group (or groups) attached to a container, the remaining
169 int container, group, device, i;
176 /* Create a new container */
[all …]
/Linux-v6.6/drivers/gpu/drm/tests/
Ddrm_kunit_helpers.c132 void *container; in __drm_kunit_helper_alloc_drm_device_with_driver() local
135 container = __devm_drm_dev_alloc(dev, driver, size, offset); in __drm_kunit_helper_alloc_drm_device_with_driver()
136 if (IS_ERR(container)) in __drm_kunit_helper_alloc_drm_device_with_driver()
137 return ERR_CAST(container); in __drm_kunit_helper_alloc_drm_device_with_driver()
139 drm = container + offset; in __drm_kunit_helper_alloc_drm_device_with_driver()
/Linux-v6.6/kernel/trace/
Dtrace_export.c46 #define __field_desc(type, container, item) type item; argument
49 #define __field_packed(type, container, item) type item; argument
58 #define __array_desc(type, container, item, size) type item[size]; argument
150 #define __field_desc(type, container, item) argument
153 #define __field_packed(type, container, item) argument
162 #define __array_desc(type, container, item, len) argument
/Linux-v6.6/drivers/gpu/drm/
Ddrm_managed.c129 void drmm_add_final_kfree(struct drm_device *dev, void *container) in drmm_add_final_kfree() argument
132 WARN_ON(dev < (struct drm_device *) container); in drmm_add_final_kfree()
133 WARN_ON(dev + 1 > (struct drm_device *) (container + ksize(container))); in drmm_add_final_kfree()
134 dev->managed.final_kfree = container; in drmm_add_final_kfree()
Ddrm_encoder.c244 void *container; in __drmm_encoder_alloc() local
249 container = drmm_kzalloc(dev, size, GFP_KERNEL); in __drmm_encoder_alloc()
250 if (!container) in __drmm_encoder_alloc()
253 encoder = container + offset; in __drmm_encoder_alloc()
261 return container; in __drmm_encoder_alloc()
Ddrm_drv.c731 void *container; in __devm_drm_dev_alloc() local
735 container = kzalloc(size, GFP_KERNEL); in __devm_drm_dev_alloc()
736 if (!container) in __devm_drm_dev_alloc()
739 drm = container + offset; in __devm_drm_dev_alloc()
742 kfree(container); in __devm_drm_dev_alloc()
745 drmm_add_final_kfree(drm, container); in __devm_drm_dev_alloc()
747 return container; in __devm_drm_dev_alloc()
Ddrm_plane.c425 void *container; in __drmm_universal_plane_alloc() local
433 container = drmm_kzalloc(dev, size, GFP_KERNEL); in __drmm_universal_plane_alloc()
434 if (!container) in __drmm_universal_plane_alloc()
437 plane = container + offset; in __drmm_universal_plane_alloc()
452 return container; in __drmm_universal_plane_alloc()
464 void *container; in __drm_universal_plane_alloc() local
472 container = kzalloc(size, GFP_KERNEL); in __drm_universal_plane_alloc()
473 if (!container) in __drm_universal_plane_alloc()
476 plane = container + offset; in __drm_universal_plane_alloc()
486 return container; in __drm_universal_plane_alloc()
[all …]
/Linux-v6.6/drivers/base/
Dtransport_class.c94 atc->container.class = &atc->tclass.class; in anon_transport_class_register()
95 attribute_container_set_no_classdevs(&atc->container); in anon_transport_class_register()
96 error = attribute_container_register(&atc->container); in anon_transport_class_register()
115 if (unlikely(attribute_container_unregister(&atc->container))) in anon_transport_class_unregister()
/Linux-v6.6/tools/testing/selftests/net/
Dsrv6_end_next_csid_l3vpn_test.sh663 local container
674 container="${LCBLOCK_ADDR}"
680 container="${container}${lcnfunc}"
686 container="${container}${dt}"
688 policy="$(build_ipv6_addr "${container}")"
691 container="${LCBLOCK_ADDR}${dt}"
692 decapsid="$(build_ipv6_addr "${container}")"
697 policy="$(build_ipv6_addr "${container}"),${decapsid}"
Dsrv6_end_x_next_csid_l3vpn_test.sh723 local container
734 container="${LCBLOCK_ADDR}"
740 container="${container}${lcnfunc}"
746 container="${container}${dt}"
748 policy="$(build_ipv6_addr "${container}")"
751 container="${LCBLOCK_ADDR}${dt}"
752 decapsid="$(build_ipv6_addr "${container}")"
757 policy="$(build_ipv6_addr "${container}"),${decapsid}"
/Linux-v6.6/drivers/iommu/iommufd/
DKconfig16 bool "IOMMUFD provides the VFIO container /dev/vfio/vfio"
25 IOMMUFD VFIO container emulation is known to lack certain features
26 of the native VFIO container, such as peer-to-peer
/Linux-v6.6/Documentation/devicetree/bindings/mfd/
Dsky81452.txt8 - backlight : container node for backlight following the binding
10 - regulator : container node for regulators following the binding
/Linux-v6.6/include/linux/
Dtransport_class.h40 struct attribute_container container; member
48 . container = { \
/Linux-v6.6/sound/soc/qcom/qdsp6/
Daudioreach.c335 struct audioreach_container *container, in apm_populate_module_list_obj() argument
342 obj->container_id = container->container_id; in apm_populate_module_list_obj()
343 obj->num_modules = container->num_modules; in apm_populate_module_list_obj()
345 list_for_each_entry(module, &container->modules_list, node) { in apm_populate_module_list_obj()
364 struct audioreach_container *container; in audioreach_populate_graph() local
389 list_for_each_entry(container, &sg->container_list, node) { in audioreach_populate_graph()
392 apm_populate_container_config(cobj, container); in audioreach_populate_graph()
393 apm_populate_module_list_obj(mlobj, container, sg->sub_graph_id); in audioreach_populate_graph()
395 list_for_each_entry(module, &container->modules_list, node) { in audioreach_populate_graph()
419 container->num_modules); in audioreach_populate_graph()
[all …]
/Linux-v6.6/drivers/net/wireless/ath/ath6kl/
Dhtc_pipe.c81 struct list_head container; in send_packet_completion() local
84 INIT_LIST_HEAD(&container); in send_packet_completion()
85 list_add_tail(&packet->list, &container); in send_packet_completion()
88 do_send_completion(ep, &container); in send_packet_completion()
934 struct list_head container; in recv_packet_completion() local
935 INIT_LIST_HEAD(&container); in recv_packet_completion()
936 list_add_tail(&packet->list, &container); in recv_packet_completion()
939 do_recv_completion(ep, &container); in recv_packet_completion()
1098 struct list_head container; in htc_flush_rx_queue() local
1120 INIT_LIST_HEAD(&container); in htc_flush_rx_queue()
[all …]
/Linux-v6.6/drivers/gpu/drm/ci/
Dbuild.sh9 . .gitlab-ci/container/container_pre_build.sh
125 . .gitlab-ci/container/container_post_build.sh
/Linux-v6.6/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/
Doverview.rst83 A DPRC is a container object that holds all the other
86 in the container.
124 All objects in a container share the same hardware "isolation context".
126 is at the DPRC (container) level, not at the individual object
269 same container/DPRC share the same 'device-id'.
280 As described previously, a DPRC is a container that holds the other
350 and handles interrupts for container events such as hot plug by

12345