/drivers/char/ |
D | lp.c | 205 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 …]
|
D | misc.c | 86 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() 189 bool is_dynamic = (misc->minor == MISC_DYNAMIC_MINOR); in misc_register() 201 misc->minor = DYNAMIC_MINORS - i - 1; in misc_register() 207 if (c->minor == misc->minor) { in misc_register() 214 dev = MKDEV(MISC_MAJOR, misc->minor); in misc_register() 221 int i = DYNAMIC_MINORS - misc->minor - 1; in misc_register() [all …]
|
D | tb0219.c | 165 unsigned int minor; in tanbac_tb0219_read() local 168 minor = iminor(file_inode(file)); 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_inode(file)); 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 | 152 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/staging/vme/devices/ |
D | vme_user.c | 119 unsigned int minor; member 123 static ssize_t resource_to_user(int minor, char __user *buf, size_t count, in resource_to_user() argument 128 if (count > image[minor].size_buf) in resource_to_user() 129 count = image[minor].size_buf; in resource_to_user() 131 copied = vme_master_read(image[minor].resource, image[minor].kern_buf, in resource_to_user() 136 if (__copy_to_user(buf, image[minor].kern_buf, (unsigned long)copied)) in resource_to_user() 142 static ssize_t resource_from_user(unsigned int minor, const char __user *buf, in resource_from_user() argument 145 if (count > image[minor].size_buf) in resource_from_user() 146 count = image[minor].size_buf; in resource_from_user() 148 if (__copy_from_user(image[minor].kern_buf, buf, (unsigned long)count)) in resource_from_user() [all …]
|
/drivers/gpu/drm/ |
D | drm_drv.c | 142 struct drm_minor *minor; in drm_minor_alloc() local 146 minor = kzalloc(sizeof(*minor), GFP_KERNEL); in drm_minor_alloc() 147 if (!minor) in drm_minor_alloc() 150 minor->type = type; in drm_minor_alloc() 151 minor->dev = dev; in drm_minor_alloc() 166 minor->index = r; in drm_minor_alloc() 168 minor->kdev = drm_sysfs_minor_alloc(minor); in drm_minor_alloc() 169 if (IS_ERR(minor->kdev)) { in drm_minor_alloc() 170 r = PTR_ERR(minor->kdev); in drm_minor_alloc() 174 *drm_minor_get_slot(dev, type) = minor; in drm_minor_alloc() [all …]
|
D | drm_debugfs.c | 85 struct dentry *root, struct drm_minor *minor) in drm_debugfs_create_files() argument 87 struct drm_device *dev = minor->dev; in drm_debugfs_create_files() 114 tmp->minor = minor; in drm_debugfs_create_files() 118 mutex_lock(&minor->debugfs_lock); in drm_debugfs_create_files() 119 list_add(&tmp->list, &minor->debugfs_list); in drm_debugfs_create_files() 120 mutex_unlock(&minor->debugfs_lock); in drm_debugfs_create_files() 125 drm_debugfs_remove_files(files, count, minor); in drm_debugfs_create_files() 141 int drm_debugfs_init(struct drm_minor *minor, int minor_id, in drm_debugfs_init() argument 144 struct drm_device *dev = minor->dev; in drm_debugfs_init() 148 INIT_LIST_HEAD(&minor->debugfs_list); in drm_debugfs_init() [all …]
|
D | drm_fops.c | 88 static int drm_open_helper(struct file *filp, struct drm_minor *minor); 126 struct drm_minor *minor; in drm_open() local 130 minor = drm_minor_acquire(iminor(inode)); in drm_open() 131 if (IS_ERR(minor)) in drm_open() 132 return PTR_ERR(minor); in drm_open() 134 dev = minor->dev; in drm_open() 141 retcode = drm_open_helper(filp, minor); in drm_open() 153 drm_minor_release(minor); in drm_open() 181 static int drm_open_helper(struct file *filp, struct drm_minor *minor) in drm_open_helper() argument 183 struct drm_device *dev = minor->dev; in drm_open_helper() [all …]
|
/drivers/gpu/drm/armada/ |
D | armada_debugfs.c | 20 struct drm_device *dev = node->minor->dev; in armada_debugfs_gem_linear_show() 110 static int drm_add_fake_info_node(struct drm_minor *minor, struct dentry *ent, in drm_add_fake_info_node() argument 121 node->minor = minor; in drm_add_fake_info_node() 125 mutex_lock(&minor->debugfs_lock); in drm_add_fake_info_node() 126 list_add(&node->list, &minor->debugfs_list); in drm_add_fake_info_node() 127 mutex_unlock(&minor->debugfs_lock); in drm_add_fake_info_node() 132 static int armada_debugfs_create(struct dentry *root, struct drm_minor *minor, in armada_debugfs_create() argument 137 de = debugfs_create_file(name, mode, root, minor->dev, fops); in armada_debugfs_create() 139 return drm_add_fake_info_node(minor, de, fops); in armada_debugfs_create() 142 int armada_drm_debugfs_init(struct drm_minor *minor) in armada_drm_debugfs_init() argument [all …]
|
/drivers/gpu/drm/amd/amdgpu/ |
D | vi.c | 793 .minor = 0, 800 .minor = 4, 807 .minor = 4, 814 .minor = 1, 821 .minor = 0, 828 .minor = 4, 840 .minor = 0, 847 .minor = 4, 854 .minor = 4, 861 .minor = 1, [all …]
|
D | cik.c | 1650 .minor = 0, 1657 .minor = 0, 1664 .minor = 0, 1671 .minor = 0, 1678 .minor = 2, 1685 .minor = 2, 1692 .minor = 0, 1699 .minor = 2, 1706 .minor = 0, 1718 .minor = 0, [all …]
|
/drivers/media/platform/coda/ |
D | trace.h | 18 __field(int, minor) 24 __entry->minor = ctx->fh.vdev->minor; 30 __entry->minor, __entry->ctx, __entry->cmd) 39 __field(int, minor) 44 __entry->minor = ctx->fh.vdev->minor; 48 TP_printk("minor = %d, ctx = %d", __entry->minor, __entry->ctx) 57 __field(int, minor) 63 __entry->minor = ctx->fh.vdev->minor; 69 __entry->minor, __entry->index, __entry->ctx) 89 __field(int, minor) [all …]
|
/drivers/media/rc/ |
D | lirc_dev.c | 80 ir->d.minor = NOPLUG; in lirc_irctl_init() 85 device_destroy(lirc_class, MKDEV(MAJOR(lirc_base_dev), ir->d.minor)); in lirc_irctl_cleanup() 178 retval = kobject_set_name(&cdev->kobj, "lirc%d", d->minor); in lirc_cdev_add() 182 retval = cdev_add(cdev, MKDEV(MAJOR(lirc_base_dev), d->minor), 1); in lirc_cdev_add() 238 int minor; in lirc_allocate_driver() local 251 if (d->minor >= MAX_IRCTL_DEVICES) { in lirc_allocate_driver() 281 minor = d->minor; in lirc_allocate_driver() 283 if (minor < 0) { in lirc_allocate_driver() 285 for (minor = 0; minor < MAX_IRCTL_DEVICES; minor++) in lirc_allocate_driver() 286 if (!irctls[minor]) in lirc_allocate_driver() [all …]
|
/drivers/usb/core/ |
D | file.c | 159 int minor; in usb_register_dev() local 173 if (intf->minor >= 0) in usb_register_dev() 186 for (minor = minor_base; minor < MAX_USB_MINORS; ++minor) { in usb_register_dev() 187 if (usb_minors[minor]) in usb_register_dev() 190 usb_minors[minor] = class_driver->fops; in usb_register_dev() 191 intf->minor = minor; in usb_register_dev() 195 if (intf->minor < 0) in usb_register_dev() 199 snprintf(name, sizeof(name), class_driver->name, minor - minor_base); in usb_register_dev() 201 MKDEV(USB_MAJOR, minor), class_driver, in usb_register_dev() 205 usb_minors[minor] = NULL; in usb_register_dev() [all …]
|
/drivers/hid/ |
D | hid-roccat.c | 43 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() 250 int roccat_report_event(int minor, u8 const *data) in roccat_report_event() argument 257 device = devices[minor]; in roccat_report_event() 299 unsigned int minor; in roccat_connect() local [all …]
|
D | hidraw.c | 115 unsigned int minor = iminor(file_inode(file)); in hidraw_send_report() local 120 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_send_report() 125 dev = hidraw_table[minor]->hid; in hidraw_send_report() 189 unsigned int minor = iminor(file_inode(file)); in hidraw_get_report() local 195 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_get_report() 200 dev = hidraw_table[minor]->hid; in hidraw_get_report() 271 unsigned int minor = iminor(inode); in hidraw_open() local 283 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_open() 288 dev = hidraw_table[minor]; in hidraw_open() 304 list->hidraw = hidraw_table[minor]; in hidraw_open() [all …]
|
/drivers/gpu/drm/msm/ |
D | msm_debugfs.c | 83 struct drm_device *dev = node->minor->dev; in show_locked() 106 static int late_init_minor(struct drm_minor *minor) in late_init_minor() argument 110 if (!minor) in late_init_minor() 113 ret = msm_rd_debugfs_init(minor); in late_init_minor() 115 dev_err(minor->dev->dev, "could not install rd debugfs\n"); in late_init_minor() 119 ret = msm_perf_debugfs_init(minor); in late_init_minor() 121 dev_err(minor->dev->dev, "could not install perf debugfs\n"); in late_init_minor() 141 int msm_debugfs_init(struct drm_minor *minor) in msm_debugfs_init() argument 143 struct drm_device *dev = minor->dev; in msm_debugfs_init() 148 minor->debugfs_root, minor); in msm_debugfs_init() [all …]
|
D | msm_perf.c | 207 int msm_perf_debugfs_init(struct drm_minor *minor) in msm_perf_debugfs_init() argument 209 struct msm_drm_private *priv = minor->dev->dev_private; in msm_perf_debugfs_init() 220 perf->dev = minor->dev; in msm_perf_debugfs_init() 230 minor->debugfs_root, perf, &perf_debugfs_fops); in msm_perf_debugfs_init() 233 minor->debugfs_root); in msm_perf_debugfs_init() 237 perf->node->minor = minor; in msm_perf_debugfs_init() 241 mutex_lock(&minor->debugfs_lock); in msm_perf_debugfs_init() 242 list_add(&perf->node->list, &minor->debugfs_list); in msm_perf_debugfs_init() 243 mutex_unlock(&minor->debugfs_lock); in msm_perf_debugfs_init() 248 msm_perf_debugfs_cleanup(minor); in msm_perf_debugfs_init() [all …]
|
D | msm_rd.c | 218 int msm_rd_debugfs_init(struct drm_minor *minor) in msm_rd_debugfs_init() argument 220 struct msm_drm_private *priv = minor->dev->dev_private; in msm_rd_debugfs_init() 231 rd->dev = minor->dev; in msm_rd_debugfs_init() 244 minor->debugfs_root, rd, &rd_debugfs_fops); in msm_rd_debugfs_init() 247 minor->debugfs_root); in msm_rd_debugfs_init() 251 rd->node->minor = minor; in msm_rd_debugfs_init() 255 mutex_lock(&minor->debugfs_lock); in msm_rd_debugfs_init() 256 list_add(&rd->node->list, &minor->debugfs_list); in msm_rd_debugfs_init() 257 mutex_unlock(&minor->debugfs_lock); in msm_rd_debugfs_init() 262 msm_rd_debugfs_cleanup(minor); in msm_rd_debugfs_init() [all …]
|
/drivers/gpu/drm/omapdrm/ |
D | omap_debugfs.c | 33 struct drm_device *dev = node->minor->dev; in gem_show() 52 struct drm_device *dev = node->minor->dev; in mm_show() 60 struct drm_device *dev = node->minor->dev; in fb_show() 95 int omap_debugfs_init(struct drm_minor *minor) in omap_debugfs_init() argument 97 struct drm_device *dev = minor->dev; in omap_debugfs_init() 102 minor->debugfs_root, minor); in omap_debugfs_init() 112 minor->debugfs_root, minor); in omap_debugfs_init() 122 void omap_debugfs_cleanup(struct drm_minor *minor) in omap_debugfs_cleanup() argument 125 ARRAY_SIZE(omap_debugfs_list), minor); in omap_debugfs_cleanup() 128 ARRAY_SIZE(omap_dmm_debugfs_list), minor); in omap_debugfs_cleanup()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_debugfs.c | 41 struct nouveau_drm *drm = nouveau_drm(node->minor->dev); in nouveau_debugfs_vbios_image() 53 struct nouveau_debugfs *debugfs = nouveau_debugfs(node->minor->dev); in nouveau_debugfs_pstate_get() 124 struct nouveau_debugfs *debugfs = nouveau_debugfs(node->minor->dev); in nouveau_debugfs_pstate_set() 196 nouveau_debugfs_create_file(struct drm_minor *minor, in nouveau_debugfs_create_file() argument 205 node->minor = minor; in nouveau_debugfs_create_file() 208 minor->debugfs_root, node, ndf->fops); in nouveau_debugfs_create_file() 214 mutex_lock(&minor->debugfs_lock); in nouveau_debugfs_create_file() 215 list_add(&node->list, &minor->debugfs_list); in nouveau_debugfs_create_file() 216 mutex_unlock(&minor->debugfs_lock); in nouveau_debugfs_create_file() 221 nouveau_drm_debugfs_init(struct drm_minor *minor) in nouveau_drm_debugfs_init() argument [all …]
|
/drivers/staging/comedi/drivers/ |
D | comedi_bond.c | 58 unsigned int minor; member 192 int minor = it->options[i]; in do_dev_config() local 198 if (minor < 0 || minor >= COMEDI_NUM_BOARD_MINORS) { in do_dev_config() 200 "Minor %d is invalid!\n", minor); in do_dev_config() 203 if (minor == dev->minor) { in do_dev_config() 208 if (test_and_set_bit(minor, devs_opened)) { in do_dev_config() 210 "Minor %d specified more than once!\n", minor); in do_dev_config() 214 snprintf(file, sizeof(file), "/dev/comedi%d", minor); in do_dev_config() 221 "Minor %u could not be opened\n", minor); in do_dev_config() 232 nchans, minor, sdev); in do_dev_config() [all …]
|
/drivers/usb/serial/ |
D | bus.c | 47 int minor; in usb_serial_device_probe() local 65 minor = port->minor; in usb_serial_device_probe() 66 tty_dev = tty_register_device(usb_serial_tty_driver, minor, dev); in usb_serial_device_probe() 76 driver->description, minor); in usb_serial_device_probe() 94 int minor; in usb_serial_device_remove() local 109 minor = port->minor; in usb_serial_device_remove() 110 tty_unregister_device(usb_serial_tty_driver, minor); in usb_serial_device_remove() 117 driver->description, minor); in usb_serial_device_remove()
|
/drivers/gpu/drm/sti/ |
D | sti_drv.c | 73 struct drm_device *dev = node->minor->dev; in sti_drm_fps_dbg_show() 92 struct drm_minor *minor, in sti_drm_debugfs_create() argument 96 struct drm_device *dev = minor->dev; in sti_drm_debugfs_create() 110 node->minor = minor; in sti_drm_debugfs_create() 114 mutex_lock(&minor->debugfs_lock); in sti_drm_debugfs_create() 115 list_add(&node->list, &minor->debugfs_list); in sti_drm_debugfs_create() 116 mutex_unlock(&minor->debugfs_lock); in sti_drm_debugfs_create() 121 static int sti_drm_dbg_init(struct drm_minor *minor) in sti_drm_dbg_init() argument 127 minor->debugfs_root, minor); in sti_drm_dbg_init() 131 ret = sti_drm_debugfs_create(minor->debugfs_root, minor, "fps_show", in sti_drm_dbg_init() [all …]
|
/drivers/gpu/drm/virtio/ |
D | virtgpu_debugfs.c | 35 struct virtio_gpu_device *vgdev = node->minor->dev->dev_private; in virtio_gpu_debugfs_irq_info() 50 virtio_gpu_debugfs_init(struct drm_minor *minor) in virtio_gpu_debugfs_init() argument 54 minor->debugfs_root, minor); in virtio_gpu_debugfs_init() 59 virtio_gpu_debugfs_takedown(struct drm_minor *minor) in virtio_gpu_debugfs_takedown() argument 63 minor); in virtio_gpu_debugfs_takedown()
|