/drivers/char/ |
D | lp.c | 204 static int lp_reset(int minor) in lp_reset() argument 207 lp_claim_parport_or_block (&lp_table[minor]); in lp_reset() 208 w_ctr(minor, LP_PSELECP); in lp_reset() 210 w_ctr(minor, LP_PSELECP | LP_PINITP); in lp_reset() 211 retval = r_str(minor); in lp_reset() 212 lp_release_parport (&lp_table[minor]); in lp_reset() 216 static void lp_error (int minor) in lp_error() argument 221 if (LP_F(minor) & LP_ABORT) in lp_error() 224 polling = lp_table[minor].dev->port->irq == PARPORT_IRQ_NONE; in lp_error() 225 if (polling) lp_release_parport (&lp_table[minor]); in lp_error() [all …]
|
D | misc.c | 89 seq_printf(seq, "%3i %s\n", p->minor, p->name ? p->name : ""); in misc_seq_show() 117 int minor = iminor(inode); in misc_open() local 126 if (c->minor == minor) { in misc_open() 134 request_module("char-major-%d-%d", MISC_MAJOR, minor); in misc_open() 138 if (c->minor == minor) { in misc_open() 198 if (c->minor == misc->minor) { in misc_register() 204 if (misc->minor == MISC_DYNAMIC_MINOR) { in misc_register() 213 misc->minor = i; in misc_register() 216 if (misc->minor < DYNAMIC_MINORS) in misc_register() 217 misc_minors[misc->minor >> 3] |= 1 << (misc->minor & 7); in misc_register() [all …]
|
D | tty_audit.c | 20 int major, minor; /* The TTY which the data is from */ member 26 static struct tty_audit_buf *tty_audit_buf_alloc(int major, int minor, in tty_audit_buf_alloc() argument 43 buf->minor = minor; in tty_audit_buf_alloc() 72 int minor, unsigned char *data, size_t size) in tty_audit_log() argument 84 major, minor); in tty_audit_log() 107 tty_audit_log("tty", tsk, loginuid, sessionid, buf->major, buf->minor, in tty_audit_buf_push() 168 int major, minor, should_audit; in tty_audit_tiocsti() local 178 minor = tty->driver->minor_start + tty->index; in tty_audit_tiocsti() 181 if (buf->major == major && buf->minor == minor) in tty_audit_tiocsti() 194 minor, &ch, 1); in tty_audit_tiocsti() [all …]
|
D | tb0219.c | 165 unsigned int minor; in tanbac_tb0219_read() local 168 minor = iminor(file->f_path.dentry->d_inode); in tanbac_tb0219_read() 169 switch (minor) { in tanbac_tb0219_read() 174 value = get_gpio_input_pin(minor - 16); in tanbac_tb0219_read() 177 value = get_gpio_output_pin(minor - 32); in tanbac_tb0219_read() 180 value = get_dip_switch(minor - 48); in tanbac_tb0219_read() 198 unsigned int minor; in tanbac_tb0219_write() local 204 minor = iminor(file->f_path.dentry->d_inode); in tanbac_tb0219_write() 205 switch (minor) { in tanbac_tb0219_write() 225 retval = set_gpio_output_pin(minor - 32, c); in tanbac_tb0219_write() [all …]
|
D | pc8736x_gpio.c | 153 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 …]
|
D | ppdev.c | 108 unsigned int minor = iminor(file->f_path.dentry->d_inode); in pp_read() local 118 minor); in pp_read() 191 unsigned int minor = iminor(file->f_path.dentry->d_inode); in pp_write() local 202 minor); in pp_write() 284 static int register_device (int minor, struct pp_struct *pp) in register_device() argument 295 sprintf (name, CHRDEV "%x", minor); in register_device() 297 port = parport_find_number (minor); in register_device() 333 unsigned int minor = iminor(file->f_path.dentry->d_inode); in pp_do_ioctl() local 347 "%x: you've already got it!\n", minor); in pp_do_ioctl() 353 int err = register_device (minor, pp); in pp_do_ioctl() [all …]
|
/drivers/staging/comedi/ |
D | comedilib.h | 126 int comedi_open(unsigned int minor); 127 void comedi_close(unsigned int minor); 132 int comedi_lock(unsigned int minor, unsigned int subdev); 133 int comedi_unlock(unsigned int minor, unsigned int subdev); 138 int comedi_cancel(unsigned int minor, unsigned int subdev); 139 int comedi_register_callback(unsigned int minor, unsigned int subdev, 142 int comedi_command(unsigned int minor, comedi_cmd *cmd); 143 int comedi_command_test(unsigned int minor, comedi_cmd *cmd); 144 int comedi_trigger(unsigned int minor, unsigned int subdev, comedi_trig *it); 145 int __comedi_trigger(unsigned int minor, unsigned int subdev, comedi_trig *it); [all …]
|
D | comedi_fops.c | 98 const unsigned minor = iminor(file->f_dentry->d_inode); in comedi_unlocked_ioctl() local 100 comedi_get_device_file_info(minor); in comedi_unlocked_ioctl() 114 DPRINTK("no driver configured on /dev/comedi%i\n", dev->minor); in comedi_unlocked_ioctl() 326 dev->minor, bc.subdevice, async->prealloc_bufsz); in do_bufconfig_ioctl() 357 const unsigned minor = iminor(file->f_dentry->d_inode); in do_devinfo_ioctl() local 359 comedi_get_device_file_info(minor); in do_devinfo_ioctl() 519 x = (dev->minor << 28) | (it.subdev << 24) | (i << 16) | in do_chaninfo_ioctl() 1394 const unsigned minor = iminor(file->f_dentry->d_inode); in comedi_mmap() local 1396 comedi_get_device_file_info(minor); in comedi_mmap() 1408 DPRINTK("no driver configured on comedi%i\n", dev->minor); in comedi_mmap() [all …]
|
/drivers/gpu/drm/ |
D | drm_proc.c | 100 int drm_proc_init(struct drm_minor *minor, int minor_id, in drm_proc_init() argument 103 struct drm_device *dev = minor->dev; in drm_proc_init() 109 minor->dev_root = proc_mkdir(name, root); in drm_proc_init() 110 if (!minor->dev_root) { in drm_proc_init() 123 S_IFREG | S_IRUGO, minor->dev_root); in drm_proc_init() 131 ent->data = minor; in drm_proc_init() 135 ret = dev->driver->proc_init(minor); in drm_proc_init() 148 minor->dev_root); in drm_proc_init() 150 minor->dev_root = NULL; in drm_proc_init() 164 int drm_proc_cleanup(struct drm_minor *minor, struct proc_dir_entry *root) in drm_proc_cleanup() argument [all …]
|
D | drm_stub.c | 90 struct drm_master *drm_master_create(struct drm_minor *minor) in drm_master_create() argument 103 master->minor = minor; in drm_master_create() 105 list_add_tail(&master->head, &minor->master_list); in drm_master_create() 120 struct drm_device *dev = master->minor->dev; in drm_master_destroy() 161 if (file_priv->minor->master && file_priv->minor->master != file_priv->master) in drm_setmaster_ioctl() 167 if (!file_priv->minor->master && in drm_setmaster_ioctl() 168 file_priv->minor->master != file_priv->master) { in drm_setmaster_ioctl() 170 file_priv->minor->master = drm_master_get(file_priv->master); in drm_setmaster_ioctl() 183 drm_master_put(&file_priv->minor->master); in drm_dropmaster_ioctl() 283 static int drm_get_minor(struct drm_device *dev, struct drm_minor **minor, int type) in drm_get_minor() argument [all …]
|
D | drm_fops.c | 121 struct drm_minor *minor; in drm_open() local 124 minor = idr_find(&drm_minors_idr, minor_id); in drm_open() 125 if (!minor) in drm_open() 128 if (!(dev = minor->dev)) in drm_open() 144 if (minor->type == DRM_MINOR_LEGACY) { in drm_open() 168 struct drm_minor *minor; in drm_stub_open() local 177 minor = idr_find(&drm_minors_idr, minor_id); in drm_stub_open() 178 if (!minor) in drm_stub_open() 181 if (!(dev = minor->dev)) in drm_stub_open() 252 priv->minor = idr_find(&drm_minors_idr, minor_id); in drm_open_helper() [all …]
|
D | drm_sysfs.c | 474 int drm_sysfs_device_add(struct drm_minor *minor) in drm_sysfs_device_add() argument 480 minor->kdev.parent = &minor->dev->pdev->dev; in drm_sysfs_device_add() 481 minor->kdev.class = drm_class; in drm_sysfs_device_add() 482 minor->kdev.release = drm_sysfs_device_release; in drm_sysfs_device_add() 483 minor->kdev.devt = minor->device; in drm_sysfs_device_add() 484 if (minor->type == DRM_MINOR_CONTROL) in drm_sysfs_device_add() 486 else if (minor->type == DRM_MINOR_RENDER) in drm_sysfs_device_add() 491 dev_set_name(&minor->kdev, minor_str, minor->index); in drm_sysfs_device_add() 493 err = device_register(&minor->kdev); in drm_sysfs_device_add() 500 err = device_create_file(&minor->kdev, &device_attrs[i]); in drm_sysfs_device_add() [all …]
|
/drivers/usb/core/ |
D | file.c | 32 int minor = iminor(inode); in usb_open() local 39 c = usb_minors[minor]; in usb_open() 153 int minor = 0; in usb_register_dev() local 165 intf->minor = -1; in usb_register_dev() 173 for (minor = minor_base; minor < MAX_USB_MINORS; ++minor) { in usb_register_dev() 174 if (usb_minors[minor]) in usb_register_dev() 177 usb_minors[minor] = class_driver->fops; in usb_register_dev() 191 intf->minor = minor; in usb_register_dev() 194 snprintf(name, sizeof(name), class_driver->name, minor - minor_base); in usb_register_dev() 201 MKDEV(USB_MAJOR, minor), NULL, in usb_register_dev() [all …]
|
/drivers/hid/ |
D | hidraw.c | 107 unsigned int minor = iminor(file->f_path.dentry->d_inode); in hidraw_write() local 109 struct hid_device *dev = hidraw_table[minor]->hid; in hidraw_write() 157 unsigned int minor = iminor(inode); in hidraw_open() local 169 if (!hidraw_table[minor]) { in hidraw_open() 171 minor); in hidraw_open() 177 list->hidraw = hidraw_table[minor]; in hidraw_open() 179 list_add_tail(&list->node, &hidraw_table[minor]->list); in hidraw_open() 182 dev = hidraw_table[minor]; in hidraw_open() 199 unsigned int minor = iminor(inode); in hidraw_release() local 203 if (!hidraw_table[minor]) { in hidraw_release() [all …]
|
/drivers/gpu/drm/i915/ |
D | i915_gem_proc.c | 37 struct drm_minor *minor = (struct drm_minor *) data; in i915_gem_active_info() local 38 struct drm_device *dev = minor->dev; in i915_gem_active_info() 76 struct drm_minor *minor = (struct drm_minor *) data; in i915_gem_flushing_info() local 77 struct drm_device *dev = minor->dev; in i915_gem_flushing_info() 114 struct drm_minor *minor = (struct drm_minor *) data; in i915_gem_inactive_info() local 115 struct drm_device *dev = minor->dev; in i915_gem_inactive_info() 152 struct drm_minor *minor = (struct drm_minor *) data; in i915_gem_request_info() local 153 struct drm_device *dev = minor->dev; in i915_gem_request_info() 182 struct drm_minor *minor = (struct drm_minor *) data; in i915_gem_seqno_info() local 183 struct drm_device *dev = minor->dev; in i915_gem_seqno_info() [all …]
|
/drivers/staging/comedi/drivers/ |
D | comedi_bond.c | 146 unsigned minor; member 231 LOG_MSG("comedi%d\n", dev->minor); in bonding_attach() 286 LOG_MSG("comedi%d: remove\n", dev->minor); in bonding_detach() 408 int minor = it->options[i]; in doDevConfig() local 413 if (minor < 0 || minor > COMEDI_NUM_BOARD_MINORS) { in doDevConfig() 414 ERROR("Minor %d is invalid!\n", minor); in doDevConfig() 417 if (minor == dev->minor) { in doDevConfig() 421 if (devs_opened[minor]) { in doDevConfig() 422 ERROR("Minor %d specified more than once!\n", minor); in doDevConfig() 426 snprintf(file, sizeof(file), "/dev/comedi%u", minor); in doDevConfig() [all …]
|
D | me4000.c | 288 printk("comedi%d: me4000: me4000_attach(): Unable to allocate irq\n", dev->minor); in me4000_attach() 299 dev->minor); in me4000_attach() 419 dev->minor, it->options[0], it->options[1]); in me4000_probe() 426 dev->minor, me4000_boards[i].name, pci_device->bus->number, in me4000_probe() 437 dev->minor); in me4000_probe() 446 dev->minor); in me4000_probe() 454 dev->minor); in me4000_probe() 463 dev->minor); in me4000_probe() 472 dev->minor); in me4000_probe() 481 dev->minor); in me4000_probe() [all …]
|
D | usbduxfast.c | 199 this_usbduxfastsub->comedidev->minor); in send_dux_commands() 211 … transmit dux_commands to the usb-device, err=%d\n", this_usbduxfastsub->comedidev->minor, result); in send_dux_commands() 363 … urb status received in ai intr context: %d\n", this_usbduxfastsub->comedidev->minor, urb->status); in usbduxfastsub_ai_Irq() 409 this_usbduxfastsub->comedidev->minor, err); in usbduxfastsub_ai_Irq() 489 usbduxfastsub->comedidev->minor, len); in usbduxfastsub_upload() 565 usbduxfastsub->comedidev->minor, in usbduxfastsub_submit_InURBs() 589 printk("comedi%d: usbduxfast_ai_cmdtest\n", dev->minor); in usbduxfast_ai_cmdtest() 591 dev->minor, cmd->convert_arg, cmd->scan_begin_arg); in usbduxfast_ai_cmdtest() 728 printk("comedi%d: usbduxfast_ai_inttrig\n", dev->minor); in usbduxfast_ai_inttrig() 733 dev->minor); in usbduxfast_ai_inttrig() [all …]
|
/drivers/staging/go7007/ |
D | s2250-loader.c | 28 int minor; member 43 s2250_dev_table[s->minor] = NULL; in s2250loader_delete() 51 int minor, ret; in s2250loader_probe() local 71 for (minor = 0; minor < MAX_DEVICES; minor++) { in s2250loader_probe() 72 if (s2250_dev_table[minor] == NULL) in s2250loader_probe() 76 if (minor < 0 || minor >= MAX_DEVICES) { in s2250loader_probe() 77 printk(KERN_ERR "Invalid minor: %d\n", minor); in s2250loader_probe() 87 s2250_dev_table[minor] = s; in s2250loader_probe() 90 usbdev->devnum, usbdev->bus->busnum, minor); in s2250loader_probe()
|
/drivers/telephony/ |
D | phonedev.c | 49 unsigned int minor = iminor(inode); in phone_open() local 54 if (minor >= PHONE_NUM_DEVICES) in phone_open() 58 p = phone_device[minor]; in phone_open() 63 request_module("char-major-%d-%d", PHONE_MAJOR, minor); in phone_open() 65 p = phone_device[minor]; in phone_open() 108 p->minor = i; in phone_register_device() 124 if (likely(phone_device[pfd->minor] == pfd)) in phone_unregister_device() 125 phone_device[pfd->minor] = NULL; in phone_unregister_device()
|
/drivers/usb/serial/ |
D | bus.c | 45 return sprintf(buf, "%d\n", port->number - port->serial->minor); in show_port_number() 55 int minor; in usb_serial_device_probe() local 80 minor = port->number; in usb_serial_device_probe() 81 tty_register_device(usb_serial_tty_driver, minor, dev); in usb_serial_device_probe() 84 driver->description, minor); in usb_serial_device_probe() 95 int minor; in usb_serial_device_remove() local 114 minor = port->number; in usb_serial_device_remove() 115 tty_unregister_device(usb_serial_tty_driver, minor); in usb_serial_device_remove() 117 driver->description, minor); in usb_serial_device_remove()
|
/drivers/media/dvb/dvb-core/ |
D | dvbdev.c | 196 int minor; in dvb_register_device() local 238 for (minor = 0; minor < MAX_DVB_MINORS; minor++) in dvb_register_device() 239 if (dvb_minors[minor] == NULL) in dvb_register_device() 242 if (minor == MAX_DVB_MINORS) { in dvb_register_device() 249 minor = nums2minor(adap->num, type, id); in dvb_register_device() 252 dvbdev->minor = minor; in dvb_register_device() 253 dvb_minors[minor] = dvbdev; in dvb_register_device() 259 MKDEV(DVB_MAJOR, minor), in dvb_register_device() 268 adap->num, dnames[type], id, minor, minor); in dvb_register_device() 281 dvb_minors[dvbdev->minor] = NULL; in dvb_unregister_device() [all …]
|
/drivers/isdn/i4l/ |
D | isdn_common.c | 985 isdn_minor2drv(int minor) in isdn_minor2drv() argument 987 return (dev->drvmap[minor]); in isdn_minor2drv() 991 isdn_minor2chan(int minor) in isdn_minor2chan() argument 993 return (dev->chanmap[minor]); in isdn_minor2chan() 1065 uint minor = iminor(file->f_path.dentry->d_inode); in isdn_read() local 1073 if (minor == ISDN_MINOR_STATUS) { in isdn_read() 1099 if (minor <= ISDN_MINOR_BMAX) { in isdn_read() 1100 printk(KERN_WARNING "isdn_read minor %d obsolete!\n", minor); in isdn_read() 1101 drvidx = isdn_minor2drv(minor); in isdn_read() 1110 chidx = isdn_minor2chan(minor); in isdn_read() [all …]
|
/drivers/s390/char/ |
D | raw3270.c | 39 int minor; member 784 int minor; in raw3270_setup_device() local 811 minor = RAW3270_FIRSTMINOR; in raw3270_setup_device() 812 rp->minor = -1; in raw3270_setup_device() 815 if (tmp->minor > minor) { in raw3270_setup_device() 816 rp->minor = minor; in raw3270_setup_device() 820 minor++; in raw3270_setup_device() 822 if (rp->minor == -1 && minor < RAW3270_MAXDEVS + RAW3270_FIRSTMINOR) { in raw3270_setup_device() 823 rp->minor = minor; in raw3270_setup_device() 828 if (rp->minor == -1) in raw3270_setup_device() [all …]
|
/drivers/input/ |
D | mousedev.c | 62 int minor; member 430 if (mousedev->minor == MOUSEDEV_MIX) in mousedev_open_device() 448 if (mousedev->minor == MOUSEDEV_MIX) in mousedev_close_device() 795 mousedev_table[mousedev->minor] = mousedev; in mousedev_install_chrdev() 802 mousedev_table[mousedev->minor] = NULL; in mousedev_remove_chrdev() 849 int minor) in mousedev_create() argument 865 minor == MOUSEDEV_MIX ? MOUSEDEV_MIX : 0); in mousedev_create() 868 if (minor == MOUSEDEV_MIX) in mousedev_create() 872 "mouse%d", minor); in mousedev_create() 874 mousedev->minor = minor; in mousedev_create() [all …]
|