Home
last modified time | relevance | path

Searched refs:minor (Results 1 – 25 of 958) sorted by relevance

12345678910>>...39

/drivers/char/
Dlp.c207 static int lp_reset(int minor) in lp_reset() argument
210 lp_claim_parport_or_block(&lp_table[minor]); in lp_reset()
211 w_ctr(minor, LP_PSELECP); in lp_reset()
213 w_ctr(minor, LP_PSELECP | LP_PINITP); in lp_reset()
214 retval = r_str(minor); in lp_reset()
215 lp_release_parport(&lp_table[minor]); in lp_reset()
219 static void lp_error(int minor) in lp_error() argument
224 if (LP_F(minor) & LP_ABORT) in lp_error()
227 polling = lp_table[minor].dev->port->irq == PARPORT_IRQ_NONE; in lp_error()
229 lp_release_parport(&lp_table[minor]); in lp_error()
[all …]
Dmisc.c87 seq_printf(seq, "%3i %s\n", p->minor, p->name ? p->name : ""); in misc_seq_show()
102 int minor = iminor(inode); in misc_open() local
110 if (iter->minor != minor) in misc_open()
119 request_module("char-major-%d-%d", MISC_MAJOR, minor); in misc_open()
123 if (iter->minor != minor) in misc_open()
179 bool is_dynamic = (misc->minor == MISC_DYNAMIC_MINOR); in misc_register()
192 misc->minor = DYNAMIC_MINORS - i - 1; in misc_register()
198 if (c->minor == misc->minor) { in misc_register()
205 dev = MKDEV(MISC_MAJOR, misc->minor); in misc_register()
212 int i = DYNAMIC_MINORS - misc->minor - 1; in misc_register()
[all …]
Dpc8736x_gpio.c153 static int pc8736x_gpio_get(unsigned minor) in pc8736x_gpio_get() argument
157 port = minor >> 3; in pc8736x_gpio_get()
158 bit = minor & 7; in pc8736x_gpio_get()
164 minor, pc8736x_gpio_base + port_offset[port] + PORT_IN, bit, in pc8736x_gpio_get()
170 static void pc8736x_gpio_set(unsigned minor, int val) in pc8736x_gpio_set() argument
174 minor &= 0x1f; in pc8736x_gpio_set()
175 port = minor >> 3; in pc8736x_gpio_set()
176 bit = minor & 7; in pc8736x_gpio_set()
186 " %2x -> %2x\n", minor, port, bit, curval, val); in pc8736x_gpio_set()
197 static int pc8736x_gpio_current(unsigned minor) in pc8736x_gpio_current() argument
[all …]
/drivers/gpu/drm/
Ddrm_drv.c100 struct drm_minor *minor = data; in drm_minor_alloc_release() local
103 WARN_ON(dev != minor->dev); in drm_minor_alloc_release()
105 put_device(minor->kdev); in drm_minor_alloc_release()
108 idr_remove(&drm_minors_idr, minor->index); in drm_minor_alloc_release()
114 struct drm_minor *minor; in drm_minor_alloc() local
118 minor = drmm_kzalloc(dev, sizeof(*minor), GFP_KERNEL); in drm_minor_alloc()
119 if (!minor) in drm_minor_alloc()
122 minor->type = type; in drm_minor_alloc()
123 minor->dev = dev; in drm_minor_alloc()
138 minor->index = r; in drm_minor_alloc()
[all …]
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()
76 struct drm_device *dev = node->minor->dev; in drm_clients_info()
102 priv->minor->index, in drm_clients_info()
128 struct drm_device *dev = node->minor->dev; in drm_gem_name_info()
177 struct dentry *root, struct drm_minor *minor) in drm_debugfs_create_files() argument
179 struct drm_device *dev = minor->dev; in drm_debugfs_create_files()
193 tmp->minor = minor; in drm_debugfs_create_files()
199 mutex_lock(&minor->debugfs_lock); in drm_debugfs_create_files()
200 list_add(&tmp->list, &minor->debugfs_list); in drm_debugfs_create_files()
[all …]
Ddrm_file.c149 struct drm_file *drm_file_alloc(struct drm_minor *minor) in drm_file_alloc() argument
151 struct drm_device *dev = minor->dev; in drm_file_alloc()
160 file->minor = minor; in drm_file_alloc()
207 struct drm_device *dev = file_priv->minor->dev; in drm_events_release()
246 dev = file->minor->dev; in drm_file_free()
250 (long)old_encode_dev(file->minor->kdev->devt), in drm_file_free()
297 struct drm_device *dev = file_priv->minor->dev; in drm_close_helper()
329 static int drm_open_helper(struct file *filp, struct drm_minor *minor) in drm_open_helper() argument
331 struct drm_device *dev = minor->dev; in drm_open_helper()
344 task_pid_nr(current), minor->index); in drm_open_helper()
[all …]
/drivers/staging/vme_user/
Dvme_user.c115 unsigned int minor; member
119 static ssize_t resource_to_user(int minor, char __user *buf, size_t count, in resource_to_user() argument
124 if (count > image[minor].size_buf) in resource_to_user()
125 count = image[minor].size_buf; in resource_to_user()
127 copied = vme_master_read(image[minor].resource, image[minor].kern_buf, in resource_to_user()
132 if (copy_to_user(buf, image[minor].kern_buf, (unsigned long)copied)) in resource_to_user()
138 static ssize_t resource_from_user(unsigned int minor, const char __user *buf, in resource_from_user() argument
141 if (count > image[minor].size_buf) in resource_from_user()
142 count = image[minor].size_buf; in resource_from_user()
144 if (copy_from_user(image[minor].kern_buf, buf, (unsigned long)count)) in resource_from_user()
[all …]
/drivers/usb/core/
Dfile.c161 int minor; in usb_register_dev() local
175 if (intf->minor >= 0) in usb_register_dev()
188 for (minor = minor_base; minor < MAX_USB_MINORS; ++minor) { in usb_register_dev()
189 if (usb_minors[minor]) in usb_register_dev()
192 usb_minors[minor] = class_driver->fops; in usb_register_dev()
193 intf->minor = minor; in usb_register_dev()
196 if (intf->minor < 0) { in usb_register_dev()
202 snprintf(name, sizeof(name), class_driver->name, minor - minor_base); in usb_register_dev()
204 MKDEV(USB_MAJOR, minor), class_driver, in usb_register_dev()
207 usb_minors[minor] = NULL; in usb_register_dev()
[all …]
/drivers/media/platform/chips-media/
Dtrace.h19 __field(int, minor)
25 __entry->minor = ctx->fh.vdev->minor;
31 __entry->minor, __entry->ctx, __entry->cmd)
40 __field(int, minor)
45 __entry->minor = ctx->fh.vdev->minor;
49 TP_printk("minor = %d, ctx = %d", __entry->minor, __entry->ctx)
58 __field(int, minor)
64 __entry->minor = ctx->fh.vdev->minor;
70 __entry->minor, __entry->index, __entry->ctx)
90 __field(int, minor)
[all …]
/drivers/hid/
Dhid-roccat.c40 unsigned int minor; member
150 unsigned int minor = iminor(inode); in roccat_open() local
161 device = devices[minor]; in roccat_open()
164 pr_emerg("roccat device with minor %d doesn't exist\n", minor); in roccat_open()
205 unsigned int minor = iminor(inode); in roccat_release() local
211 device = devices[minor]; in roccat_release()
214 pr_emerg("roccat device with minor %d doesn't exist\n", minor); in roccat_release()
247 int roccat_report_event(int minor, u8 const *data) in roccat_report_event() argument
254 device = devices[minor]; in roccat_report_event()
300 unsigned int minor; in roccat_connect() local
[all …]
Dhidraw.c105 unsigned int minor = iminor(file_inode(file)); in hidraw_send_report() local
112 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_send_report()
117 dev = hidraw_table[minor]->hid; in hidraw_send_report()
179 unsigned int minor = iminor(file_inode(file)); in hidraw_get_report() local
187 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_get_report()
192 dev = hidraw_table[minor]->hid; in hidraw_get_report()
264 unsigned int minor = iminor(inode); in hidraw_open() local
281 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_open()
286 dev = hidraw_table[minor]; in hidraw_open()
302 list->hidraw = hidraw_table[minor]; in hidraw_open()
[all …]
/drivers/gpu/drm/vc4/
Dvc4_debugfs.c22 vc4_debugfs_init(struct drm_minor *minor) in vc4_debugfs_init() argument
24 struct vc4_dev *vc4 = to_vc4_dev(minor->dev); in vc4_debugfs_init()
27 drm_WARN_ON(drm, vc4_hvs_debugfs_init(minor)); in vc4_debugfs_init()
30 drm_WARN_ON(drm, vc4_bo_debugfs_init(minor)); in vc4_debugfs_init()
31 drm_WARN_ON(drm, vc4_v3d_debugfs_init(minor)); in vc4_debugfs_init()
38 struct drm_device *drm = node->minor->dev; in vc4_debugfs_regset32()
53 int vc4_debugfs_add_file(struct drm_minor *minor, in vc4_debugfs_add_file() argument
58 struct drm_device *dev = minor->dev; in vc4_debugfs_add_file()
59 struct dentry *root = minor->debugfs_root; in vc4_debugfs_add_file()
70 drm_debugfs_create_files(file, 1, root, minor); in vc4_debugfs_add_file()
[all …]
/drivers/gpu/drm/msm/
Dmsm_debugfs.c214 struct drm_device *dev = node->minor->dev; in msm_gem_show()
232 struct drm_device *dev = node->minor->dev; in msm_mm_show()
243 struct drm_device *dev = node->minor->dev; in msm_fb_show()
272 static int late_init_minor(struct drm_minor *minor) in late_init_minor() argument
276 if (!minor) in late_init_minor()
279 ret = msm_rd_debugfs_init(minor); in late_init_minor()
281 DRM_DEV_ERROR(minor->dev->dev, "could not install rd debugfs\n"); in late_init_minor()
285 ret = msm_perf_debugfs_init(minor); in late_init_minor()
287 DRM_DEV_ERROR(minor->dev->dev, "could not install perf debugfs\n"); in late_init_minor()
304 void msm_debugfs_init(struct drm_minor *minor) in msm_debugfs_init() argument
[all …]
/drivers/md/
Dmd-autodetect.c31 int minor; member
62 int minor, level, factor, fault, partitioned = 0; in md_setup() local
71 if (get_option(&str, &minor) != 2) { /* MD Number */ in md_setup()
77 if (md_setup_args[ent].minor == minor && in md_setup()
80 "Replacing previous definition.\n", partitioned?"d":"", minor); in md_setup()
84 printk(KERN_WARNING "md: md=%s%d - too many md initialisations\n", partitioned?"d":"", minor); in md_setup()
115 minor, pername, str); in md_setup()
118 md_setup_args[ent].minor = minor; in md_setup()
133 mdev = MKDEV(mdp_major, args->minor << MdpMinorShift); in md_setup_drive()
134 sprintf(name, "md_d%d", args->minor); in md_setup_drive()
[all …]
/drivers/comedi/drivers/
Dcomedi_bond.c49 unsigned int minor; member
183 int minor = it->options[i]; in do_dev_config() local
189 if (minor < 0 || minor >= COMEDI_NUM_BOARD_MINORS) { in do_dev_config()
191 "Minor %d is invalid!\n", minor); in do_dev_config()
194 if (minor == dev->minor) { in do_dev_config()
199 if (test_and_set_bit(minor, devs_opened)) { in do_dev_config()
201 "Minor %d specified more than once!\n", minor); in do_dev_config()
205 snprintf(file, sizeof(file), "/dev/comedi%d", minor); in do_dev_config()
212 "Minor %u could not be opened\n", minor); in do_dev_config()
223 nchans, minor, sdev); in do_dev_config()
[all …]
/drivers/gpu/drm/omapdrm/
Domap_debugfs.c23 struct drm_device *dev = node->minor->dev; in gem_show()
37 struct drm_device *dev = node->minor->dev; in mm_show()
49 struct drm_device *dev = node->minor->dev; in fb_show()
84 void omap_debugfs_init(struct drm_minor *minor) in omap_debugfs_init() argument
88 minor->debugfs_root, minor); in omap_debugfs_init()
93 minor->debugfs_root, minor); in omap_debugfs_init()
/drivers/usb/serial/
Dbus.c38 int minor; in usb_serial_device_probe() local
52 minor = port->minor; in usb_serial_device_probe()
54 minor, dev); in usb_serial_device_probe()
64 driver->description, minor); in usb_serial_device_probe()
81 int minor; in usb_serial_device_remove() local
92 minor = port->minor; in usb_serial_device_remove()
93 tty_unregister_device(usb_serial_tty_driver, minor); in usb_serial_device_remove()
100 driver->description, minor); in usb_serial_device_remove()
/drivers/media/mc/
Dmc-devnode.c55 clear_bit(devnode->minor, media_devnode_nums); in media_devnode_release()
215 int minor; in media_devnode_register() local
220 minor = find_first_zero_bit(media_devnode_nums, MEDIA_NUM_DEVICES); in media_devnode_register()
221 if (minor == MEDIA_NUM_DEVICES) { in media_devnode_register()
228 set_bit(minor, media_devnode_nums); in media_devnode_register()
231 devnode->minor = minor; in media_devnode_register()
236 devnode->dev.devt = MKDEV(MAJOR(media_dev_t), devnode->minor); in media_devnode_register()
240 dev_set_name(&devnode->dev, "media%d", devnode->minor); in media_devnode_register()
246 kobject_set_name(&devnode->cdev.kobj, "media%d", devnode->minor); in media_devnode_register()
262 clear_bit(devnode->minor, media_devnode_nums); in media_devnode_register()
/drivers/comedi/
Dcomedi_fops.c109 dev->minor = -1; in comedi_device_init()
166 unsigned int i = dev->minor; in comedi_clear_board_dev()
179 static struct comedi_device *comedi_clear_board_minor(unsigned int minor) in comedi_clear_board_minor() argument
184 dev = comedi_board_minor_table[minor]; in comedi_clear_board_minor()
185 comedi_board_minor_table[minor] = NULL; in comedi_clear_board_minor()
196 MKDEV(COMEDI_MAJOR, dev->minor)); in comedi_free_board_dev()
203 comedi_subdevice_from_minor(const struct comedi_device *dev, unsigned int minor) in comedi_subdevice_from_minor() argument
206 unsigned int i = minor - COMEDI_NUM_BOARD_MINORS; in comedi_subdevice_from_minor()
216 static struct comedi_device *comedi_dev_get_from_board_minor(unsigned int minor) in comedi_dev_get_from_board_minor() argument
221 dev = comedi_dev_get(comedi_board_minor_table[minor]); in comedi_dev_get_from_board_minor()
[all …]
/drivers/char/xillybus/
Dxillybus_class.c176 int minor; in xillybus_cleanup_chrdev() local
193 for (minor = unit->lowest_minor; in xillybus_cleanup_chrdev()
194 minor < (unit->lowest_minor + unit->num_nodes); in xillybus_cleanup_chrdev()
195 minor++) in xillybus_cleanup_chrdev()
196 device_destroy(xillybus_class, MKDEV(unit->major, minor)); in xillybus_cleanup_chrdev()
216 int minor = iminor(inode); in xillybus_find_inode() local
224 minor >= iter->lowest_minor && in xillybus_find_inode()
225 minor < (iter->lowest_minor + iter->num_nodes)) { in xillybus_find_inode()
236 *index = minor - unit->lowest_minor; in xillybus_find_inode()
/drivers/android/
Dbinderfs.c116 int minor, ret; in binderfs_binder_device_create() local
133 minor = ida_alloc_max(&binderfs_minors, in binderfs_binder_device_create()
138 minor = -ENOSPC; in binderfs_binder_device_create()
139 if (minor < 0) { in binderfs_binder_device_create()
142 return minor; in binderfs_binder_device_create()
155 inode->i_ino = minor + INODE_OFFSET; in binderfs_binder_device_create()
158 MKDEV(MAJOR(binderfs_dev), minor)); in binderfs_binder_device_create()
175 device->miscdev.minor = minor; in binderfs_binder_device_create()
179 req->minor = minor; in binderfs_binder_device_create()
217 ida_free(&binderfs_minors, minor); in binderfs_binder_device_create()
[all …]
/drivers/gpu/drm/virtio/
Dvirtgpu_debugfs.c47 struct virtio_gpu_device *vgdev = node->minor->dev->dev_private; in virtio_gpu_features()
72 struct virtio_gpu_device *vgdev = node->minor->dev->dev_private; in virtio_gpu_debugfs_irq_info()
84 struct virtio_gpu_device *vgdev = node->minor->dev->dev_private; in virtio_gpu_debugfs_host_visible_mm()
106 virtio_gpu_debugfs_init(struct drm_minor *minor) in virtio_gpu_debugfs_init() argument
110 minor->debugfs_root, minor); in virtio_gpu_debugfs_init()
/drivers/staging/greybus/
Duart.c50 unsigned int minor; member
340 static struct gb_tty *get_gb_by_minor(unsigned int minor) in get_gb_by_minor() argument
345 gb_tty = idr_find(&tty_minors, minor); in get_gb_by_minor()
362 int minor; in alloc_minor() local
365 minor = idr_alloc(&tty_minors, gb_tty, 0, GB_NUM_MINORS, GFP_KERNEL); in alloc_minor()
367 if (minor >= 0) in alloc_minor()
368 gb_tty->minor = minor; in alloc_minor()
369 return minor; in alloc_minor()
374 int minor = gb_tty->minor; in release_minor() local
376 gb_tty->minor = 0; /* Maybe should use an invalid value instead */ in release_minor()
[all …]
/drivers/gpu/drm/qxl/
Dqxl_debugfs.c42 struct qxl_device *qdev = to_qxl(node->minor->dev); in qxl_debugfs_irq_received()
56 struct qxl_device *qdev = to_qxl(node->minor->dev); in qxl_debugfs_buffers_info()
87 qxl_debugfs_init(struct drm_minor *minor) in qxl_debugfs_init() argument
90 struct qxl_device *dev = to_qxl(minor->dev); in qxl_debugfs_init()
93 minor->debugfs_root, minor); in qxl_debugfs_init()
/drivers/gpu/drm/msm/adreno/
Da5xx_debugfs.c73 struct drm_device *dev = node->minor->dev; in show()
144 void a5xx_debugfs_init(struct msm_gpu *gpu, struct drm_minor *minor) in a5xx_debugfs_init() argument
148 if (!minor) in a5xx_debugfs_init()
151 dev = minor->dev; in a5xx_debugfs_init()
155 minor->debugfs_root, minor); in a5xx_debugfs_init()
157 debugfs_create_file_unsafe("reset", S_IWUGO, minor->debugfs_root, dev, in a5xx_debugfs_init()

12345678910>>...39