Home
last modified time | relevance | path

Searched full:container (Results 1 – 25 of 237) sorted by relevance

12345678910

/drivers/vfio/
Dvfio_iommu_spapr_tce.c50 * A container needs to remember which preregistered region it has
59 * The container descriptor supports only a single group per container.
60 * Required by the API as the container is not supplied with the IOMMU group
75 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()
[all …]
Dcontainer.c5 * VFIO container (/dev/vfio/vfio)
80 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()
141 * Container objects - containers are created when /dev/vfio/vfio is
143 * it's freed via kref. Must support container/group/device being
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()
[all …]
Dgroup.c62 * There can only be users if there is a container, and if there is a in vfio_group_has_iommu()
63 * container there must be users. in vfio_group_has_iommu()
65 WARN_ON(!group->container != !group->container_users); in vfio_group_has_iommu()
67 return group->container || group->iommufd; in vfio_group_has_iommu()
72 * if there was no container to unset. Since the ioctl is called on
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(fd_file(f)); 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()
[all …]
/drivers/gpu/drm/amd/display/dc/basics/
Dvector.c35 vector->container = NULL; in dal_vector_construct()
38 /* Container must be non-zero size*/ 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()
64 /* Container must be non-zero size*/ 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()
[all …]
/drivers/scsi/aacraid/
Dcommsup.c1066 u32 channel, id, lun, container; in aac_handle_aif() local
1075 /* Sniff for container changes */ in aac_handle_aif()
1079 container = channel = id = lun = (u32)-1; in aac_handle_aif()
1091 container = le32_to_cpu(((__le32 *)aifcmd->data)[1]); in aac_handle_aif()
1092 if ((container >> 28)) { in aac_handle_aif()
1093 container = (u32)-1; in aac_handle_aif()
1096 channel = (container >> 24) & 0xF; in aac_handle_aif()
1098 container = (u32)-1; in aac_handle_aif()
1101 id = container & 0xFFFF; in aac_handle_aif()
1103 container = (u32)-1; in aac_handle_aif()
[all …]
/drivers/base/
Dattribute_container.c3 * attribute_container.c - implementation of a simple container for classes
24 * container .. it should never be visible outside this file */
47 * attribute_container_classdev_to_container - given a classdev, return the container
51 * Returns the container associated with this classdev.
67 * attribute_container_register - register an attribute container
69 * @cont: The container to register. This must be allocated by the
88 * attribute_container_unregister - remove a container registration
90 * @cont: previously registered container to remove
123 * attribute_container_add_device - see if any container is interested in dev
160 dev_err(dev, "failed to allocate class container\n"); in attribute_container_add_device()
[all …]
Dtransport_class.c21 * transport class<-----attribute container<----class device
23 * Usually the attribute container is per-HBA, but the design doesn't
85 * container. The idea of an anonymous class is that it never
87 * saves on container storage). So it can only be used for triggering
94 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()
/drivers/gpu/drm/omapdrm/
Dtcm.h2 * TILER container manager specification and support functions for TI
57 u16 width, height; /* container dimensions */
76 BASIC TILER CONTAINER MANAGER INTERFACE
86 * width and height fits within container
87 * number of pages is more than the size of the container
95 * Deinitialize tiler container manager.
97 * @param tcm Pointer to container manager.
111 * Reserves a 2D area in the container.
113 * @param tcm Pointer to container manager.
117 * all values may be supported by the container manager,
[all …]
/drivers/bus/fsl-mc/
Ddprc.c23 * @container_id: Container ID to open
84 * dprc_reset_container - Reset child container.
88 * @child_container_id: ID of the container to reset
90 * - 0 (no bits set) - all the objects inside the container are
94 * - bit 0 set - all the objects inside the container are reset.
98 * may wish to reset its resources container before the software context is
101 * This routine informs all objects assigned to the child container that the
102 * container is being reset, so they may perform any cleanup operations that are
103 * needed. All objects handles that were owned by the child container shall be
333 * dprc_get_attributes() - Obtains container attributes
[all …]
Dfsl-mc-private.h74 * Data Path Resource Container (DPRC) API
273 /* IRQ event - Indicates that a new object added to the container */
275 /* IRQ event - Indicates that an object was removed from the container */
279 * this container is destroyed
284 * IRQ event - Indicates that on one of the container's opened object is
289 /* Irq event - Indicates that object is created at the container */
335 * struct dprc_attributes - Container attributes
336 * @container_id: Container's ID
337 * @icid: Container's ICID
338 * @portal_id: Container's portal ID
[all …]
/drivers/accel/habanalabs/common/
Dstate_dump.c60 * @size: pointer to the size container
158 * @size: pointer to the size container
159 * @offset: pointer to the offset container
302 * @size: pointer to the size container
303 * @offset: pointer to the offset container
388 * @size: pointer to the size container
389 * @offset: pointer to the offset container
505 * @size: pointer to the size container
506 * @offset: pointer to the offset container
556 * @size: pointer to the size container
[all …]
/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 …]
/drivers/gpu/drm/imagination/
Dpvr_drv.h76 * @_dest_obj: The destination container object in kernel space.
77 * @_usr_size: The size of the source container in user space.
78 * @_src_usr_ptr: __u64 raw pointer to the source container in user space.
89 * @_dest_usr_ptr: __u64 raw pointer to the destination container in user space.
90 * @_usr_size: The size of the destination container in user space.
91 * @_src_obj: The source container object in kernel space.
/drivers/hwtracing/coresight/
Dcoresight-syscfg-configfs.h14 /* container for configuration view */
22 /* container for feature view */
28 /* container for parameter view */
35 /* container for preset view */
/drivers/s390/scsi/
Dzfcp_fc.h58 * struct zfcp_fc_gid_pn_req - container for ct header plus gid_pn request
68 * struct zfcp_fc_gid_pn_rsp - container for ct header plus gid_pn response
78 * struct zfcp_fc_gpn_ft - container for ct header plus gpn_ft request
88 * struct zfcp_fc_gspn_req - container for ct header plus GSPN_ID request
98 * struct zfcp_fc_gspn_rsp - container for ct header plus GSPN_ID response
110 * struct zfcp_fc_rspn_req - container for ct header plus RSPN_ID request
122 * struct zfcp_fc_req - Container for FC ELS and CT requests sent from zfcp
/drivers/acpi/
Dcontainer.c3 * container.c - ACPI Generic Container Driver
13 #include <linux/container.h>
114 acpi_scan_add_handler_with_hotplug(&container_handler, "container"); in acpi_container_init()
/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
/drivers/gpu/drm/amd/display/include/
Dvector.h30 uint8_t *container; member
66 * reallocate container if necessary
68 * return if the container modified
69 * do not check that index belongs to container
/drivers/gpu/drm/amd/pm/
Damdgpu_pm.c3958 struct od_kobj *container = container_of(kobj, struct od_kobj, kobj); in fan_curve_show() local
3959 struct amdgpu_device *adev = (struct amdgpu_device *)container->priv; in fan_curve_show()
3969 struct od_kobj *container = container_of(kobj, struct od_kobj, kobj); in fan_curve_store() local
3970 struct amdgpu_device *adev = (struct amdgpu_device *)container->priv; in fan_curve_store()
4016 struct od_kobj *container = container_of(kobj, struct od_kobj, kobj); in acoustic_limit_threshold_show() local
4017 struct amdgpu_device *adev = (struct amdgpu_device *)container->priv; in acoustic_limit_threshold_show()
4027 struct od_kobj *container = container_of(kobj, struct od_kobj, kobj); in acoustic_limit_threshold_store() local
4028 struct amdgpu_device *adev = (struct amdgpu_device *)container->priv; in acoustic_limit_threshold_store()
4076 struct od_kobj *container = container_of(kobj, struct od_kobj, kobj); in acoustic_target_threshold_show() local
4077 struct amdgpu_device *adev = (struct amdgpu_device *)container->priv; in acoustic_target_threshold_show()
[all …]
/drivers/gpu/drm/ci/
Dgitlab-ci.yml88 - '/.gitlab-ci/container/gitlab-ci.yml'
108 - drivers/gpu/drm/ci/container.yml
117 - container
183 # When to automatically run the CI for container jobs
184 .container+build-rules:
203 .container-rules:
/drivers/gpu/drm/tests/
Ddrm_kunit_helpers.c65 void *container; in __drm_kunit_helper_alloc_drm_device_with_driver() local
68 container = __devm_drm_dev_alloc(dev, driver, size, offset); in __drm_kunit_helper_alloc_drm_device_with_driver()
69 if (IS_ERR(container)) in __drm_kunit_helper_alloc_drm_device_with_driver()
70 return ERR_CAST(container); in __drm_kunit_helper_alloc_drm_device_with_driver()
72 drm = container + offset; in __drm_kunit_helper_alloc_drm_device_with_driver()
/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.c248 void *container; in __drmm_encoder_alloc() local
253 container = drmm_kzalloc(dev, size, GFP_KERNEL); in __drmm_encoder_alloc()
254 if (!container) in __drmm_encoder_alloc()
257 encoder = container + offset; in __drmm_encoder_alloc()
265 return container; in __drmm_encoder_alloc()
/drivers/scsi/lpfc/
Dlpfc_mem.c501 * pool along a non-DMA-mapped container for it.
531 * @hbqbp: HBQ container returned by lpfc_els_hbq_alloc
533 * Description: Frees both the container and the DMA-mapped buffer returned by
553 * pool along a non-DMA-mapped container for it.
591 * @dmab: DMA Buffer container returned by lpfc_sli4_hbq_alloc
593 * Description: Frees both the container and the DMA-mapped buffers returned by
613 * pool along a non-DMA-mapped container for it.
649 * @dmab: DMA Buffer container returned by lpfc_sli4_rbq_alloc
651 * Description: Frees both the container and the DMA-mapped buffers returned by
/drivers/fpga/
Ddfl.h305 * @node: node to link feature devs to container device's port_dev_list.
309 * @dfl_cdev: ptr to container device.
503 * struct dfl_fpga_cdev - container device of DFL based FPGA
505 * @parent: parent device of this container device.
507 * @fme_dev: FME feature device under this container device.
509 * @port_dev_list: list of all port feature devices under this container device.
510 * @released_port_num: released port number under this container device.

12345678910