Home
last modified time | relevance | path

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

12345678910>>...36

/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 (c->minor == minor) { in misc_open()
118 request_module("char-major-%d-%d", MISC_MAJOR, minor); in misc_open()
122 if (c->minor == minor) { in misc_open()
177 bool is_dynamic = (misc->minor == MISC_DYNAMIC_MINOR); in misc_register()
190 misc->minor = DYNAMIC_MINORS - i - 1; in misc_register()
196 if (c->minor == misc->minor) { in misc_register()
203 dev = MKDEV(MISC_MAJOR, misc->minor); in misc_register()
210 int i = DYNAMIC_MINORS - misc->minor - 1; in misc_register()
[all …]
Dtb0219.c152 unsigned int minor; in tanbac_tb0219_read() local
155 minor = iminor(file_inode(file)); in tanbac_tb0219_read()
156 switch (minor) { in tanbac_tb0219_read()
161 value = get_gpio_input_pin(minor - 16); in tanbac_tb0219_read()
164 value = get_gpio_output_pin(minor - 32); in tanbac_tb0219_read()
167 value = get_dip_switch(minor - 48); in tanbac_tb0219_read()
185 unsigned int minor; in tanbac_tb0219_write() local
191 minor = iminor(file_inode(file)); in tanbac_tb0219_write()
192 switch (minor) { in tanbac_tb0219_write()
212 retval = set_gpio_output_pin(minor - 32, c); in tanbac_tb0219_write()
[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 …]
Draw.c57 const int minor = iminor(inode); in raw_open() local
61 if (minor == 0) { /* It is the control device */ in raw_open()
71 bdev = raw_devices[minor].binding; in raw_open()
84 if (++raw_devices[minor].inuse == 1) in raw_open()
104 const int minor= iminor(inode); in raw_release() local
108 bdev = raw_devices[minor].binding; in raw_release()
109 if (--raw_devices[minor].inuse == 0) in raw_release()
128 static int bind_set(int number, u64 major, u64 minor) in bind_set() argument
130 dev_t dev = MKDEV(major, minor); in bind_set()
137 if (MAJOR(dev) != major || MINOR(dev) != minor) in bind_set()
/drivers/gpu/drm/
Ddrm_drv.c114 struct drm_minor *minor; in drm_minor_alloc() local
118 minor = kzalloc(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()
140 minor->kdev = drm_sysfs_minor_alloc(minor); in drm_minor_alloc()
141 if (IS_ERR(minor->kdev)) { in drm_minor_alloc()
142 r = PTR_ERR(minor->kdev); in drm_minor_alloc()
146 *drm_minor_get_slot(dev, type) = minor; 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()
101 priv->minor->index, in drm_clients_info()
127 struct drm_device *dev = node->minor->dev; in drm_gem_name_info()
176 struct dentry *root, struct drm_minor *minor) in drm_debugfs_create_files() argument
178 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.c119 struct drm_file *drm_file_alloc(struct drm_minor *minor) in drm_file_alloc() argument
121 struct drm_device *dev = minor->dev; in drm_file_alloc()
130 file->minor = minor; in drm_file_alloc()
176 struct drm_device *dev = file_priv->minor->dev; in drm_events_release()
218 dev = file->minor->dev; in drm_file_free()
222 (long)old_encode_dev(file->minor->kdev->devt), in drm_file_free()
267 struct drm_device *dev = file_priv->minor->dev; in drm_close_helper()
299 static int drm_open_helper(struct file *filp, struct drm_minor *minor) in drm_open_helper() argument
301 struct drm_device *dev = minor->dev; in drm_open_helper()
312 DRM_DEBUG("pid = %d, minor = %d\n", task_pid_nr(current), minor->index); in drm_open_helper()
[all …]
/drivers/staging/vme/devices/
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/coda/
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()
296 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
276 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_open()
281 dev = hidraw_table[minor]; in hidraw_open()
297 list->hidraw = hidraw_table[minor]; in hidraw_open()
[all …]
/drivers/staging/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.c22 struct drm_device *dev = node->minor->dev; in gem_show()
36 struct drm_device *dev = node->minor->dev; in mm_show()
48 struct drm_device *dev = node->minor->dev; in fb_show()
83 int omap_debugfs_init(struct drm_minor *minor) in omap_debugfs_init() argument
85 struct drm_device *dev = minor->dev; in omap_debugfs_init()
90 minor->debugfs_root, minor); in omap_debugfs_init()
100 minor->debugfs_root, minor); in omap_debugfs_init()
/drivers/gpu/drm/msm/
Dmsm_debugfs.c163 struct drm_device *dev = node->minor->dev; in show_locked()
185 static int late_init_minor(struct drm_minor *minor) in late_init_minor() argument
189 if (!minor) in late_init_minor()
192 ret = msm_rd_debugfs_init(minor); in late_init_minor()
194 DRM_DEV_ERROR(minor->dev->dev, "could not install rd debugfs\n"); in late_init_minor()
198 ret = msm_perf_debugfs_init(minor); in late_init_minor()
200 DRM_DEV_ERROR(minor->dev->dev, "could not install perf debugfs\n"); in late_init_minor()
217 int msm_debugfs_init(struct drm_minor *minor) in msm_debugfs_init() argument
219 struct drm_device *dev = minor->dev; in msm_debugfs_init()
225 minor->debugfs_root, minor); in msm_debugfs_init()
[all …]
/drivers/usb/serial/
Dbus.c44 int minor; in usb_serial_device_probe() local
62 minor = port->minor; in usb_serial_device_probe()
64 minor, dev); in usb_serial_device_probe()
74 driver->description, minor); in usb_serial_device_probe()
92 int minor; in usb_serial_device_remove() local
107 minor = port->minor; in usb_serial_device_remove()
108 tty_unregister_device(usb_serial_tty_driver, minor); in usb_serial_device_remove()
115 driver->description, minor); in usb_serial_device_remove()
/drivers/staging/comedi/
Dcomedi_fops.c107 dev->minor = -1; in comedi_device_init()
164 unsigned int i = dev->minor; in comedi_clear_board_dev()
177 static struct comedi_device *comedi_clear_board_minor(unsigned int minor) in comedi_clear_board_minor() argument
182 dev = comedi_board_minor_table[minor]; in comedi_clear_board_minor()
183 comedi_board_minor_table[minor] = NULL; in comedi_clear_board_minor()
194 MKDEV(COMEDI_MAJOR, dev->minor)); in comedi_free_board_dev()
201 comedi_subdevice_from_minor(const struct comedi_device *dev, unsigned int minor) in comedi_subdevice_from_minor() argument
204 unsigned int i = minor - COMEDI_NUM_BOARD_MINORS; in comedi_subdevice_from_minor()
214 static struct comedi_device *comedi_dev_get_from_board_minor(unsigned int minor) in comedi_dev_get_from_board_minor() argument
219 dev = comedi_dev_get(comedi_board_minor_table[minor]); in comedi_dev_get_from_board_minor()
[all …]
/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_next_zero_bit(media_devnode_nums, MEDIA_NUM_DEVICES, 0); 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/android/
Dbinderfs.c103 int minor, ret; in binderfs_binder_device_create() local
120 minor = ida_alloc_max(&binderfs_minors, in binderfs_binder_device_create()
125 minor = -ENOSPC; in binderfs_binder_device_create()
126 if (minor < 0) { in binderfs_binder_device_create()
129 return minor; in binderfs_binder_device_create()
142 inode->i_ino = minor + INODE_OFFSET; in binderfs_binder_device_create()
145 MKDEV(MAJOR(binderfs_dev), minor)); in binderfs_binder_device_create()
161 device->miscdev.minor = minor; in binderfs_binder_device_create()
165 req->minor = minor; in binderfs_binder_device_create()
203 ida_free(&binderfs_minors, minor); in binderfs_binder_device_create()
[all …]
/drivers/gpu/drm/virtio/
Dvirtgpu_debugfs.c46 struct virtio_gpu_device *vgdev = node->minor->dev->dev_private; in virtio_gpu_features()
59 struct virtio_gpu_device *vgdev = node->minor->dev->dev_private; in virtio_gpu_debugfs_irq_info()
75 virtio_gpu_debugfs_init(struct drm_minor *minor) in virtio_gpu_debugfs_init() argument
79 minor->debugfs_root, minor); in virtio_gpu_debugfs_init()
/drivers/gpu/drm/qxl/
Dqxl_debugfs.c42 struct qxl_device *qdev = node->minor->dev->dev_private; in qxl_debugfs_irq_received()
56 struct qxl_device *qdev = node->minor->dev->dev_private; in qxl_debugfs_buffers_info()
83 qxl_debugfs_init(struct drm_minor *minor) in qxl_debugfs_init() argument
88 (struct qxl_device *) minor->dev->dev_private; in qxl_debugfs_init()
91 minor->debugfs_root, minor); in qxl_debugfs_init()
/drivers/gpu/drm/nouveau/
Dnouveau_debugfs.c41 struct nouveau_drm *drm = nouveau_drm(node->minor->dev); in nouveau_debugfs_vbios_image()
53 struct nouveau_drm *drm = nouveau_drm(node->minor->dev); in nouveau_debugfs_strap_peek()
221 nouveau_drm_debugfs_init(struct drm_minor *minor) in nouveau_drm_debugfs_init() argument
223 struct nouveau_drm *drm = nouveau_drm(minor->dev); in nouveau_drm_debugfs_init()
230 minor->debugfs_root, minor->dev, in nouveau_drm_debugfs_init()
238 minor->debugfs_root, minor); in nouveau_drm_debugfs_init()
245 dentry = debugfs_lookup("vbios.rom", minor->debugfs_root); in nouveau_drm_debugfs_init()
/drivers/gpu/drm/vc4/
Dvc4_debugfs.c24 vc4_debugfs_init(struct drm_minor *minor) in vc4_debugfs_init() argument
26 struct vc4_dev *vc4 = to_vc4_dev(minor->dev); in vc4_debugfs_init()
30 minor->debugfs_root, &vc4->load_tracker_enabled); in vc4_debugfs_init()
34 minor->debugfs_root, minor); in vc4_debugfs_init()
/drivers/gpu/drm/msm/adreno/
Da5xx_debugfs.c81 struct drm_device *dev = node->minor->dev; in show()
151 int a5xx_debugfs_init(struct msm_gpu *gpu, struct drm_minor *minor) in a5xx_debugfs_init() argument
156 if (!minor) in a5xx_debugfs_init()
159 dev = minor->dev; in a5xx_debugfs_init()
163 minor->debugfs_root, minor); in a5xx_debugfs_init()
170 debugfs_create_file("reset", S_IWUGO, minor->debugfs_root, dev, in a5xx_debugfs_init()

12345678910>>...36