Home
last modified time | relevance | path

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

12345678910>>...26

/drivers/staging/comedi/drivers/addi-data/
Dhwdrv_apci3200.c461 if (s_BoardInfos[dev->minor].i_ConnectionType == 1) { in i_APCI3200_GetChannelCalibrationValue()
495 s_BoardInfos[dev->minor].s_Module[i_Module].ul_CurrentSourceCJC; in i_APCI3200_GetChannelCalibrationValue()
501 s_BoardInfos[dev->minor].s_Module[i_Module]. in i_APCI3200_GetChannelCalibrationValue()
511 s_BoardInfos[dev->minor].s_Module[i_Module]. in i_APCI3200_GetChannelCalibrationValue()
512 ul_GainFactor[s_BoardInfos[dev->minor].i_ADDIDATAGain]; in i_APCI3200_GetChannelCalibrationValue()
888 if (s_BoardInfos[dev->minor].b_StructInitialized != 1) { in i_APCI3200_ConfigAnalogInput()
889 s_BoardInfos[dev->minor].i_CJCAvailable = 1; in i_APCI3200_ConfigAnalogInput()
890 s_BoardInfos[dev->minor].i_CJCPolarity = 0; in i_APCI3200_ConfigAnalogInput()
891 s_BoardInfos[dev->minor].i_CJCGain = 2; /* changed from 0 to 2 */ in i_APCI3200_ConfigAnalogInput()
892 s_BoardInfos[dev->minor].i_InterruptFlag = 0; in i_APCI3200_ConfigAnalogInput()
[all …]
/drivers/char/
Dlp.c205 static int lp_reset(int minor) in lp_reset() argument
208 lp_claim_parport_or_block (&lp_table[minor]); in lp_reset()
209 w_ctr(minor, LP_PSELECP); in lp_reset()
211 w_ctr(minor, LP_PSELECP | LP_PINITP); in lp_reset()
212 retval = r_str(minor); in lp_reset()
213 lp_release_parport (&lp_table[minor]); in lp_reset()
217 static void lp_error (int minor) in lp_error() argument
222 if (LP_F(minor) & LP_ABORT) in lp_error()
225 polling = lp_table[minor].dev->port->irq == PARPORT_IRQ_NONE; in lp_error()
226 if (polling) lp_release_parport (&lp_table[minor]); in lp_error()
[all …]
Dmisc.c86 seq_printf(seq, "%3i %s\n", p->minor, p->name ? p->name : ""); in misc_seq_show()
114 int minor = iminor(inode); in misc_open() local
122 if (c->minor == minor) { in misc_open()
130 request_module("char-major-%d-%d", MISC_MAJOR, minor); in misc_open()
134 if (c->minor == minor) { in misc_open()
194 if (c->minor == misc->minor) { in misc_register()
200 if (misc->minor == MISC_DYNAMIC_MINOR) { in misc_register()
206 misc->minor = DYNAMIC_MINORS - i - 1; in misc_register()
210 dev = MKDEV(MISC_MAJOR, misc->minor); in misc_register()
215 int i = DYNAMIC_MINORS - misc->minor - 1; in misc_register()
[all …]
Dtb0219.c164 unsigned int minor; in tanbac_tb0219_read() local
167 minor = iminor(file->f_path.dentry->d_inode); in tanbac_tb0219_read()
168 switch (minor) { in tanbac_tb0219_read()
173 value = get_gpio_input_pin(minor - 16); in tanbac_tb0219_read()
176 value = get_gpio_output_pin(minor - 32); in tanbac_tb0219_read()
179 value = get_dip_switch(minor - 48); in tanbac_tb0219_read()
197 unsigned int minor; in tanbac_tb0219_write() local
203 minor = iminor(file->f_path.dentry->d_inode); in tanbac_tb0219_write()
204 switch (minor) { in tanbac_tb0219_write()
224 retval = set_gpio_output_pin(minor - 32, c); in tanbac_tb0219_write()
[all …]
Dpc8736x_gpio.c152 static int pc8736x_gpio_get(unsigned minor) in pc8736x_gpio_get() argument
156 port = minor >> 3; in pc8736x_gpio_get()
157 bit = minor & 7; in pc8736x_gpio_get()
163 minor, pc8736x_gpio_base + port_offset[port] + PORT_IN, bit, in pc8736x_gpio_get()
169 static void pc8736x_gpio_set(unsigned minor, int val) in pc8736x_gpio_set() argument
173 minor &= 0x1f; in pc8736x_gpio_set()
174 port = minor >> 3; in pc8736x_gpio_set()
175 bit = minor & 7; in pc8736x_gpio_set()
185 " %2x -> %2x\n", minor, port, bit, curval, val); in pc8736x_gpio_set()
196 static int pc8736x_gpio_current(unsigned minor) in pc8736x_gpio_current() argument
[all …]
/drivers/gpu/drm/
Ddrm_debugfs.c89 struct dentry *root, struct drm_minor *minor) in drm_debugfs_create_files() argument
91 struct drm_device *dev = minor->dev; in drm_debugfs_create_files()
118 tmp->minor = minor; in drm_debugfs_create_files()
122 mutex_lock(&minor->debugfs_lock); in drm_debugfs_create_files()
123 list_add(&tmp->list, &minor->debugfs_list); in drm_debugfs_create_files()
124 mutex_unlock(&minor->debugfs_lock); in drm_debugfs_create_files()
129 drm_debugfs_remove_files(files, count, minor); in drm_debugfs_create_files()
145 int drm_debugfs_init(struct drm_minor *minor, int minor_id, in drm_debugfs_init() argument
148 struct drm_device *dev = minor->dev; in drm_debugfs_init()
152 INIT_LIST_HEAD(&minor->debugfs_list); in drm_debugfs_init()
[all …]
Ddrm_proc.c94 struct proc_dir_entry *root, struct drm_minor *minor) in drm_proc_create_files() argument
96 struct drm_device *dev = minor->dev; in drm_proc_create_files()
113 tmp->minor = minor; in drm_proc_create_files()
115 list_add(&tmp->list, &minor->proc_nodes.list); in drm_proc_create_files()
133 remove_proc_entry(drm_proc_list[i].name, minor->proc_root); in drm_proc_create_files()
150 int drm_proc_init(struct drm_minor *minor, int minor_id, in drm_proc_init() argument
156 INIT_LIST_HEAD(&minor->proc_nodes.list); in drm_proc_init()
158 minor->proc_root = proc_mkdir(name, root); in drm_proc_init()
159 if (!minor->proc_root) { in drm_proc_init()
165 minor->proc_root, minor); in drm_proc_init()
[all …]
Ddrm_stub.c138 struct drm_master *drm_master_create(struct drm_minor *minor) in drm_master_create() argument
151 master->minor = minor; in drm_master_create()
153 list_add_tail(&master->head, &minor->master_list); in drm_master_create()
169 struct drm_device *dev = master->minor->dev; in drm_master_destroy()
219 if (file_priv->minor->master && file_priv->minor->master != file_priv->master) in drm_setmaster_ioctl()
225 if (!file_priv->minor->master && in drm_setmaster_ioctl()
226 file_priv->minor->master != file_priv->master) { in drm_setmaster_ioctl()
228 file_priv->minor->master = drm_master_get(file_priv->master); in drm_setmaster_ioctl()
234 drm_master_put(&file_priv->minor->master); in drm_setmaster_ioctl()
249 if (!file_priv->minor->master) in drm_dropmaster_ioctl()
[all …]
Ddrm_fops.c126 struct drm_minor *minor; in drm_open() local
129 minor = idr_find(&drm_minors_idr, minor_id); in drm_open()
130 if (!minor) in drm_open()
133 if (!(dev = minor->dev)) in drm_open()
150 if (minor->type == DRM_MINOR_LEGACY) { in drm_open()
175 struct drm_minor *minor; in drm_stub_open() local
183 minor = idr_find(&drm_minors_idr, minor_id); in drm_stub_open()
184 if (!minor) in drm_stub_open()
187 if (!(dev = minor->dev)) in drm_stub_open()
262 priv->minor = idr_find(&drm_minors_idr, minor_id); in drm_open_helper()
[all …]
Ddrm_sysfs.c498 int drm_sysfs_device_add(struct drm_minor *minor) in drm_sysfs_device_add() argument
503 minor->kdev.parent = minor->dev->dev; in drm_sysfs_device_add()
505 minor->kdev.class = drm_class; in drm_sysfs_device_add()
506 minor->kdev.release = drm_sysfs_device_release; in drm_sysfs_device_add()
507 minor->kdev.devt = minor->device; in drm_sysfs_device_add()
508 minor->kdev.type = &drm_sysfs_device_minor; in drm_sysfs_device_add()
509 if (minor->type == DRM_MINOR_CONTROL) in drm_sysfs_device_add()
511 else if (minor->type == DRM_MINOR_RENDER) in drm_sysfs_device_add()
516 dev_set_name(&minor->kdev, minor_str, minor->index); in drm_sysfs_device_add()
518 err = device_register(&minor->kdev); in drm_sysfs_device_add()
[all …]
/drivers/staging/vme/devices/
Dvme_user.c169 unsigned int minor = MINOR(inode->i_rdev); in vme_user_open() local
171 down(&image[minor].sem); in vme_user_open()
173 if (minor < CONTROL_MINOR && image[minor].resource == NULL) { in vme_user_open()
180 image[minor].users++; in vme_user_open()
182 up(&image[minor].sem); in vme_user_open()
187 up(&image[minor].sem); in vme_user_open()
194 unsigned int minor = MINOR(inode->i_rdev); in vme_user_release() local
196 down(&image[minor].sem); in vme_user_release()
199 image[minor].users--; in vme_user_release()
201 up(&image[minor].sem); in vme_user_release()
[all …]
/drivers/usb/core/
Dfile.c32 int minor = iminor(inode); in usb_open() local
38 c = usb_minors[minor]; in usb_open()
164 int minor; in usb_register_dev() local
179 if (intf->minor >= 0) in usb_register_dev()
189 for (minor = minor_base; minor < MAX_USB_MINORS; ++minor) { in usb_register_dev()
190 if (usb_minors[minor]) in usb_register_dev()
193 usb_minors[minor] = class_driver->fops; in usb_register_dev()
194 intf->minor = minor; in usb_register_dev()
198 if (intf->minor < 0) in usb_register_dev()
202 snprintf(name, sizeof(name), class_driver->name, minor - minor_base); in usb_register_dev()
[all …]
/drivers/media/rc/
Dlirc_dev.c77 ir->d.minor = NOPLUG; in lirc_irctl_init()
82 dev_dbg(ir->d.dev, LOGHEAD "cleaning up\n", ir->d.name, ir->d.minor); in lirc_irctl_cleanup()
84 device_destroy(lirc_class, MKDEV(MAJOR(lirc_base_dev), ir->d.minor)); in lirc_irctl_cleanup()
130 ir->d.name, ir->d.minor); in lirc_thread()
149 ir->d.name, ir->d.minor); in lirc_thread()
186 retval = kobject_set_name(&cdev->kobj, "lirc%d", d->minor); in lirc_cdev_add()
190 retval = cdev_add(cdev, MKDEV(MAJOR(lirc_base_dev), d->minor), 1); in lirc_cdev_add()
208 int minor; in lirc_register_driver() local
227 if (MAX_IRCTL_DEVICES <= d->minor) { in lirc_register_driver()
230 MAX_IRCTL_DEVICES - 1, d->minor); in lirc_register_driver()
[all …]
/drivers/hid/
Dhid-roccat.c43 unsigned int minor; member
153 unsigned int minor = iminor(inode); in roccat_open() local
164 device = devices[minor]; in roccat_open()
167 pr_emerg("roccat device with minor %d doesn't exist\n", minor); in roccat_open()
208 unsigned int minor = iminor(inode); in roccat_release() local
214 device = devices[minor]; in roccat_release()
217 pr_emerg("roccat device with minor %d doesn't exist\n", minor); in roccat_release()
251 int roccat_report_event(int minor, u8 const *data) in roccat_report_event() argument
258 device = devices[minor]; in roccat_report_event()
299 unsigned int minor; in roccat_connect() local
[all …]
Dhidraw.c108 unsigned int minor = iminor(file->f_path.dentry->d_inode); in hidraw_send_report() local
113 if (!hidraw_table[minor]) { in hidraw_send_report()
118 dev = hidraw_table[minor]->hid; in hidraw_send_report()
176 unsigned int minor = iminor(file->f_path.dentry->d_inode); in hidraw_get_report() local
182 dev = hidraw_table[minor]->hid; in hidraw_get_report()
250 unsigned int minor = iminor(inode); in hidraw_open() local
261 if (!hidraw_table[minor]) { in hidraw_open()
266 list->hidraw = hidraw_table[minor]; in hidraw_open()
268 list_add_tail(&list->node, &hidraw_table[minor]->list); in hidraw_open()
271 dev = hidraw_table[minor]; in hidraw_open()
[all …]
/drivers/tty/
Dtty_audit.c19 int major, minor; /* The TTY which the data is from */ member
25 static struct tty_audit_buf *tty_audit_buf_alloc(int major, int minor, in tty_audit_buf_alloc() argument
39 buf->minor = minor; in tty_audit_buf_alloc()
65 int minor, unsigned char *data, size_t size) in tty_audit_log() argument
77 major, minor); in tty_audit_log()
102 tty_audit_log("tty", tsk, loginuid, sessionid, buf->major, buf->minor, in tty_audit_buf_push()
162 int major, minor, should_audit; in tty_audit_tiocsti() local
172 minor = tty->driver->minor_start + tty->index; in tty_audit_tiocsti()
175 if (buf->major == major && buf->minor == minor) in tty_audit_tiocsti()
188 minor, &ch, 1); in tty_audit_tiocsti()
[all …]
/drivers/staging/comedi/drivers/
Dunioxx5.c99 int subdev_iobase, int minor);
101 unsigned int *data, int channel, int minor);
103 unsigned int *data, int channel, int minor);
106 unsigned int *data, int channel, int minor);
108 unsigned int *data, int channel, int minor);
170 dev->minor) < 0) in unioxx5_attach()
190 if (!__unioxx5_digital_read(usp, data, channel, dev->minor)) in unioxx5_subdev_read()
193 if (!__unioxx5_analog_read(usp, data, channel, dev->minor)) in unioxx5_subdev_read()
212 if (!__unioxx5_digital_write(usp, data, channel, dev->minor)) in unioxx5_subdev_write()
215 if (!__unioxx5_analog_write(usp, data, channel, dev->minor)) in unioxx5_subdev_write()
[all …]
Dcomedi_bond.c109 unsigned minor; member
199 LOG_MSG("comedi%d\n", dev->minor); in bonding_attach()
254 LOG_MSG("comedi%d: remove\n", dev->minor); in bonding_detach()
378 int minor = it->options[i]; in doDevConfig() local
383 if (minor < 0 || minor >= COMEDI_NUM_BOARD_MINORS) { in doDevConfig()
384 ERROR("Minor %d is invalid!\n", minor); in doDevConfig()
387 if (minor == dev->minor) { in doDevConfig()
391 if (devs_opened[minor]) { in doDevConfig()
392 ERROR("Minor %d specified more than once!\n", minor); in doDevConfig()
396 snprintf(file, sizeof(file), "/dev/comedi%u", minor); in doDevConfig()
[all …]
Dme4000.c305 "Unable to allocate irq\n", dev->minor); in me4000_attach()
316 "No interrupt available\n", dev->minor); in me4000_attach()
441 dev->minor, it->options[0], it->options[1]); in me4000_probe()
449 dev->minor, me4000_boards[i].name, pci_device->bus->number, in me4000_probe()
460 "device and request I/O regions\n", dev->minor); in me4000_probe()
469 "Cannot get registers\n", dev->minor); in me4000_probe()
477 "Cannot init baord info\n", dev->minor); in me4000_probe()
486 "Cannot init ao context\n", dev->minor); in me4000_probe()
495 "Cannot init ai context\n", dev->minor); in me4000_probe()
504 "Cannot init dio context\n", dev->minor); in me4000_probe()
[all …]
Damplc_pc263.c147 static int pc263_request_region(unsigned minor, unsigned long from,
209 dev->minor, thisboard->name, bus, slot); in pc263_find_pci()
212 dev->minor, thisboard->name); in pc263_find_pci()
234 printk(KERN_DEBUG "comedi%d: %s: attach\n", dev->minor, in pc263_attach()
244 dev->minor); in pc263_attach()
267 dev->minor, PC263_DRIVER_NAME); in pc263_attach()
285 dev->minor); in pc263_attach()
292 ret = pc263_request_region(dev->minor, iobase, PC263_IO_SIZE); in pc263_attach()
305 dev->minor); in pc263_attach()
324 printk(KERN_INFO "comedi%d: %s ", dev->minor, dev->board_name); in pc263_attach()
[all …]
/drivers/staging/omapdrm/
Domap_debugfs.c31 struct drm_device *dev = node->minor->dev; in gem_show()
50 struct drm_device *dev = node->minor->dev; in mm_show()
57 struct drm_device *dev = node->minor->dev; in fb_show()
101 int omap_debugfs_init(struct drm_minor *minor) in omap_debugfs_init() argument
103 struct drm_device *dev = minor->dev; in omap_debugfs_init()
108 minor->debugfs_root, minor); in omap_debugfs_init()
118 minor->debugfs_root, minor); in omap_debugfs_init()
128 void omap_debugfs_cleanup(struct drm_minor *minor) in omap_debugfs_cleanup() argument
131 ARRAY_SIZE(omap_debugfs_list), minor); in omap_debugfs_cleanup()
134 ARRAY_SIZE(omap_dmm_debugfs_list), minor); in omap_debugfs_cleanup()
/drivers/gpu/drm/nouveau/
Dnouveau_debugfs.c79 struct drm_minor *minor = chan->dev->primary; in nouveau_debugfs_channel_init() local
84 debugfs_create_dir("channel", minor->debugfs_root); in nouveau_debugfs_channel_init()
124 struct drm_minor *minor = node->minor; in nouveau_debugfs_chipset_info() local
125 struct drm_device *dev = minor->dev; in nouveau_debugfs_chipset_info()
141 struct drm_minor *minor = node->minor; in nouveau_debugfs_memory_info() local
142 struct drm_nouveau_private *dev_priv = minor->dev->dev_private; in nouveau_debugfs_memory_info()
152 struct drm_nouveau_private *dev_priv = node->minor->dev->dev_private; in nouveau_debugfs_vbios_image()
164 struct drm_nouveau_private *dev_priv = node->minor->dev->dev_private; in nouveau_debugfs_evict_vram()
186 nouveau_debugfs_init(struct drm_minor *minor) in nouveau_debugfs_init() argument
189 minor->debugfs_root, minor); in nouveau_debugfs_init()
[all …]
/drivers/staging/media/go7007/
Ds2250-loader.c29 int minor; member
44 s2250_dev_table[s->minor] = NULL; in s2250loader_delete()
52 int minor, ret; in s2250loader_probe() local
72 for (minor = 0; minor < MAX_DEVICES; minor++) { in s2250loader_probe()
73 if (s2250_dev_table[minor] == NULL) in s2250loader_probe()
77 if (minor < 0 || minor >= MAX_DEVICES) { in s2250loader_probe()
78 printk(KERN_ERR "Invalid minor: %d\n", minor); in s2250loader_probe()
88 s2250_dev_table[minor] = s; in s2250loader_probe()
91 usbdev->devnum, usbdev->bus->busnum, minor); in s2250loader_probe()
/drivers/staging/telephony/
Dphonedev.c47 unsigned int minor = iminor(inode); in phone_open() local
52 if (minor >= PHONE_NUM_DEVICES) in phone_open()
56 p = phone_device[minor]; in phone_open()
61 request_module("char-major-%d-%d", PHONE_MAJOR, minor); in phone_open()
63 p = phone_device[minor]; in phone_open()
106 p->minor = i; in phone_register_device()
122 if (likely(phone_device[pfd->minor] == pfd)) in phone_unregister_device()
123 phone_device[pfd->minor] = NULL; in phone_unregister_device()
/drivers/media/
Dmedia-devnode.c68 clear_bit(mdev->minor, media_devnode_nums); in media_devnode_release()
210 int minor; in media_devnode_register() local
215 minor = find_next_zero_bit(media_devnode_nums, MEDIA_NUM_DEVICES, 0); in media_devnode_register()
216 if (minor == MEDIA_NUM_DEVICES) { in media_devnode_register()
222 set_bit(minor, media_devnode_nums); in media_devnode_register()
225 mdev->minor = minor; in media_devnode_register()
231 ret = cdev_add(&mdev->cdev, MKDEV(MAJOR(media_dev_t), mdev->minor), 1); in media_devnode_register()
239 mdev->dev.devt = MKDEV(MAJOR(media_dev_t), mdev->minor); in media_devnode_register()
243 dev_set_name(&mdev->dev, "media%d", mdev->minor); in media_devnode_register()
257 clear_bit(mdev->minor, media_devnode_nums); in media_devnode_register()

12345678910>>...26