Home
last modified time | relevance | path

Searched refs:minor (Results 1 - 25 of 107) sorted by relevance

12345

/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/himedia/
H A Dhimedia.c47 int minor = iminor(inode); in himedia_open() local
56 if (c->minor == (unsigned int)minor) { in himedia_open()
64 request_module("char-major-%d-%d", HIMEDIA_DEVICE_MAJOR, minor); in himedia_open()
68 if (c->minor == (unsigned int)minor) { in himedia_open()
108 * Register a himedia device with the kernel. If the minor
109 * number is set to %HIMEDIA_DYNAMIC_MINOR a minor number is assigned
110 * and placed in the minor field of the structure. For other cases
111 * the minor numbe
[all...]
H A Dhimedia.h77 unsigned int minor; member
98 #define MODULE_ALIAS_HIMEDIA(minor) \
99 MODULE_ALIAS("himedia-char-major-" __stringify(HIMEDIA_DEVICE_MAJOR) "-" __stringify(minor))
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/
H A Ddrm_debugfs.c54 struct drm_minor *minor = node->minor; in drm_name_info() local
55 struct drm_device *dev = minor->dev; in drm_name_info()
79 struct drm_device *dev = node->minor->dev; in drm_clients_info()
97 priv->minor->index, drm_is_current_master(priv) ? 'y' : 'n', priv->authenticated ? 'y' : 'n', in drm_clients_info()
117 struct drm_device *dev = node->minor->dev; in drm_gem_name_info()
152 * minor
156 * @minor: device minor number
163 struct drm_minor *minor) in drm_debugfs_create_files()
162 drm_debugfs_create_files(const struct drm_info_list *files, int count, struct dentry *root, struct drm_minor *minor) drm_debugfs_create_files() argument
192 drm_debugfs_init(struct drm_minor *minor, int minor_id, struct dentry *root) drm_debugfs_init() argument
222 drm_debugfs_remove_files(const struct drm_info_list *files, int count, struct drm_minor *minor) drm_debugfs_remove_files() argument
245 drm_debugfs_remove_all_files(struct drm_minor *minor) drm_debugfs_remove_all_files() argument
259 drm_debugfs_cleanup(struct drm_minor *minor) drm_debugfs_cleanup() argument
405 struct drm_minor *minor = connector->dev->primary; drm_debugfs_connector_add() local
438 struct drm_minor *minor = crtc->dev->primary; drm_debugfs_crtc_add() local
[all...]
H A Ddrm_file.c149 * @minor: minor to allocate on
153 * @minor, so it must be freed before @minor is.
158 struct drm_file *drm_file_alloc(struct drm_minor *minor) in drm_file_alloc() argument
160 struct drm_device *dev = minor->dev; in drm_file_alloc()
170 file->minor = minor; in drm_file_alloc()
221 struct drm_device *dev = file_priv->minor->dev; in drm_events_release()
265 dev = file->minor in drm_file_free()
350 drm_open_helper(struct file *filp, struct drm_minor *minor) drm_open_helper() argument
429 struct drm_minor *minor; drm_open() local
511 struct drm_minor *minor = file_priv->minor; drm_release() local
554 struct drm_minor *minor = file_priv->minor; drm_release_noglobal() local
931 mock_drm_getfile(struct drm_minor *minor, unsigned int flags) mock_drm_getfile() argument
[all...]
H A Ddrm_internal.h49 struct drm_file *drm_file_alloc(struct drm_minor *minor);
94 void drm_minor_release(struct drm_minor *minor);
165 struct device *drm_sysfs_minor_alloc(struct drm_minor *minor);
195 int drm_debugfs_init(struct drm_minor *minor, int minor_id,
197 void drm_debugfs_cleanup(struct drm_minor *minor);
204 static inline int drm_debugfs_init(struct drm_minor *minor, int minor_id, in drm_debugfs_init() argument
210 static inline void drm_debugfs_cleanup(struct drm_minor *minor) in drm_debugfs_cleanup() argument
267 void drm_framebuffer_debugfs_init(struct drm_minor *minor);
H A Ddrm_ioctl.c420 if (sv->drm_dd_major != dev->driver->major || sv->drm_dd_minor < 0 || sv->drm_dd_minor > dev->driver->minor) { in drm_setversion()
430 sv->drm_dd_minor = dev->driver->minor; in drm_setversion()
519 version->version_minor = dev->driver->minor; in drm_version()
767 struct drm_device *dev = file_priv->minor->dev; in drm_ioctl_kernel()
817 dev = file_priv->minor->dev; in drm_ioctl()
858 (long)old_encode_dev(file_priv->minor->kdev->devt), file_priv->authenticated, ioctl->name); in drm_ioctl()
896 task_pid_nr(current), (long)old_encode_dev(file_priv->minor->kdev->devt), file_priv->authenticated, in drm_ioctl()
H A Ddrm_auth.c302 struct drm_device *dev = file_priv->minor->dev; in drm_master_open()
320 struct drm_device *dev = file_priv->minor->dev; in drm_master_release()
365 return fpriv->is_master && drm_lease_owner(fpriv->master) == fpriv->minor->dev->master; in drm_is_current_master()
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/himedia/
H A Dhimedia.c79 seq_printf(seq, "%3i %s\n", p->minor, (char *)p->name ? (char *)p->name : ""); in himedia_seq_show()
116 int minor = iminor(inode); in himedia_open() local
126 if (c->minor == minor) { in himedia_open()
164 * Register a himedia device with the kernel. If the minor
165 * number is set to %HIMEDIA_DYNAMIC_MINOR a minor number is assigned
166 * and placed in the minor field of the structure. For other cases
167 * the minor number requested is used.
181 if (c->minor == himedia->minor) { in pm_register_get_media_minor()
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/gpu/drm/
H A Ddrm_internal.h49 struct drm_file *drm_file_alloc(struct drm_minor *minor);
94 void drm_minor_release(struct drm_minor *minor);
165 struct device *drm_sysfs_minor_alloc(struct drm_minor *minor);
195 int drm_debugfs_init(struct drm_minor *minor, int minor_id,
197 void drm_debugfs_cleanup(struct drm_minor *minor);
204 static inline int drm_debugfs_init(struct drm_minor *minor, int minor_id, in drm_debugfs_init() argument
210 static inline void drm_debugfs_cleanup(struct drm_minor *minor) in drm_debugfs_cleanup() argument
267 void drm_framebuffer_debugfs_init(struct drm_minor *minor);
/device/soc/rockchip/common/sdk_linux/include/drm/
H A Ddrm_file.h62 * struct drm_minor - DRM device minor structure
64 * This structure represents a DRM minor number for device nodes in /dev.
252 /** @minor: &struct drm_minor for this file. */
253 struct drm_minor *minor; member
360 * &drm_file.minor of @file_priv is a primary minor.
367 return file_priv->minor->type == DRM_MINOR_PRIMARY; in drm_is_primary_client()
375 * &drm_file.minor of @file_priv is a render minor.
381 return file_priv->minor in drm_is_render_client()
[all...]
H A Ddrm_drv.h312 * Called whenever the minor master is set. Only used by vmwgfx.
318 * Called whenever the minor master is dropped. Only used by vmwgfx.
327 void (*debugfs_init)(struct drm_minor *minor);
529 /** @minor: driver minor number */
530 int minor; member
/device/soc/rockchip/common/sdk_linux/init/
H A Dinitramfs.c56 int ino, minor, major; member
62 static inline int hash(int major, int minor, int ino) in hash() argument
64 unsigned long tmp = ino + minor + (major << 0x3); in hash()
69 static char __init *find_link(int major, int minor, int ino, umode_t mode, char *name) in find_link() argument
72 for (p = head + hash(major, minor, ino); *p; p = &(*p)->next) { in find_link()
76 if ((*p)->minor != minor) { in find_link()
92 q->minor = minor; in find_link()
159 static __initdata unsigned long ino, major, minor, nlin variable
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/dma-buf/
H A Ddma-heap.c126 pr_err("dma_heap: minor %d unknown.\n", iminor(inode)); in dma_heap_open()
250 int minor = MINOR(heap->heap_devt); in dma_heap_release() local
257 xa_erase(&dma_heap_minors, minor); in dma_heap_release()
303 unsigned int minor; in dma_heap_add() local
334 /* Find unused minor number */ in dma_heap_add()
335 ret = xa_alloc(&dma_heap_minors, &minor, heap, XA_LIMIT(0, NUM_HEAP_MINORS - 1), GFP_KERNEL); in dma_heap_add()
337 pr_err("dma_heap: Unable to get minor number for heap\n"); in dma_heap_add()
343 heap->heap_devt = MKDEV(MAJOR(dma_heap_devt), minor); in dma_heap_add()
373 xa_erase(&dma_heap_minors, minor); in dma_heap_add()
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/include/
H A Dhimedia.h77 HI_S32 minor; member
84 HI_U32 minor; member
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/
H A Dmali_kbase_gpu_id.h74 revision (major, minor, status) of a product */
116 minor, status */
117 #define GPU_ID_MAKE(id, major, minor, status) \
120 ((minor) << GPU_ID_VERSION_MINOR_SHIFT) | \
H A Dmali_uk.h121 * This structure carries a 16-bit major and minor number and is sent along with an internal UK call
129 u16 minor; member
130 /**< This field carries the user-side minor version on input and the kernel-side minor version on output. */
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/
H A Dmali_kbase_gpu_id.h67 revision (major, minor, status) of a product */
105 minor, status */
106 #define GPU_ID_MAKE(id, major, minor, status) \
108 ((minor) << GPU_ID_VERSION_MINOR_SHIFT) | ((status) << GPU_ID_VERSION_STATUS_SHIFT))
H A Dmali_uk.h117 * This structure carries a 16-bit major and minor number and is sent along with an internal UK call
125 u16 minor; member
126 /**< This field carries the user-side minor version on input and the kernel-side minor version on output. */
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/gpu/
H A Dmali_kbase_gpu_id.h60 revision (major, minor, status) of a product */
103 minor, status */
104 #define GPU_ID_MAKE(id, major, minor, status) \
106 (((u32)(minor)) << GPU_ID_VERSION_MINOR_SHIFT) | (((u32)(status)) << GPU_ID_VERSION_STATUS_SHIFT))
/device/soc/rockchip/rk3588/kernel/include/uapi/gpu/arm/bifrost/gpu/
H A Dmali_kbase_gpu_id.h80 * revision (major, minor, status) of a product
130 * minor, status
132 #define GPU_ID_MAKE(id, major, minor, status) \
135 (((__u32)minor) << GPU_ID_VERSION_MINOR_SHIFT) | \
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/musl/include/sys/
H A Dsysmacros.h6 #define minor(x) \ macro
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/jm/
H A Dmali_kbase_jm_ioctl.h126 * @minor: Minor version number
130 __u16 minor; member
/device/soc/rockchip/rk3588/kernel/include/uapi/gpu/arm/bifrost/jm/
H A Dmali_kbase_jm_ioctl.h135 * @minor: Minor version number
139 __u16 minor; member
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/osal/
H A Dosal_device.c528 if (dev->minor != 0) { in osal_dev_register()
529 media->minor = dev->minor; in osal_dev_register()
531 media->minor = HIMEDIA_DYNAMIC_MINOR; in osal_dev_register()
/device/soc/rockchip/common/sdk_linux/drivers/spi/
H A Dspidev.c37 * SPI has a character major number assigned. We allocate minor numbers
40 * nodes, since there is no fixed association of minor numbers with any
562 pr_debug("spidev: nothing for minor %d\n", iminor(inode)); in spidev_open()
725 unsigned long minor; in spidev_probe() local
750 /* If we can allocate a minor number, hook up this device. in spidev_probe()
754 minor = find_first_zero_bit(minors, N_SPI_MINORS); in spidev_probe()
755 if (minor < N_SPI_MINORS) { in spidev_probe()
758 spidev->devt = MKDEV(SPIDEV_MAJOR, minor); in spidev_probe()
763 dev_dbg(&spi->dev, "no minor number available!\n"); in spidev_probe()
767 set_bit(minor, minor in spidev_probe()
[all...]

Completed in 13 milliseconds

12345