/Linux-v5.10/drivers/char/ |
D | lp.c | 207 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 …]
|
D | misc.c | 26 * Handling of mouse minor numbers for kerneld: 87 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() 159 * Register a miscellaneous device with the kernel. If the minor 160 * number is set to %MISC_DYNAMIC_MINOR a minor number is assigned 161 * and placed in the minor field of the structure. For other cases 162 * the minor number requested is used. [all …]
|
D | raw.c | 8 * We reserve minor number 0 for a control interface. ioctl()s on this 9 * device are used to bind the other minor numbers to block devices. 58 const int minor = iminor(inode); in raw_open() local 62 if (minor == 0) { /* It is the control device */ in raw_open() 78 if (!raw_devices[minor].binding) in raw_open() 80 bdev = blkdev_get_by_dev(raw_devices[minor].binding, in raw_open() 91 if (++raw_devices[minor].inuse == 1) in raw_open() 95 raw_devices[minor].bdev = bdev; in raw_open() 112 const int minor= iminor(inode); in raw_release() local 116 bdev = raw_devices[minor].bdev; in raw_release() [all …]
|
D | tb0219.c | 52 * Minor device number 152 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() [all …]
|
/Linux-v5.10/sound/core/ |
D | sound.c | 64 static void snd_request_other(int minor) in snd_request_other() argument 68 switch (minor) { in snd_request_other() 80 * @minor: the minor number 83 * Checks that a minor device with the specified type is registered, and returns 87 * if an associated instance with the given minor number and type is found. 93 void *snd_lookup_minor_data(unsigned int minor, int type) in snd_lookup_minor_data() argument 98 if (minor >= ARRAY_SIZE(snd_minors)) in snd_lookup_minor_data() 101 mreg = snd_minors[minor]; in snd_lookup_minor_data() 114 static struct snd_minor *autoload_device(unsigned int minor) in autoload_device() argument 118 dev = SNDRV_MINOR_DEVICE(minor); in autoload_device() [all …]
|
D | sound_oss.c | 25 void *snd_lookup_oss_minor_data(unsigned int minor, int type) in snd_lookup_oss_minor_data() argument 30 if (minor >= ARRAY_SIZE(snd_oss_minors)) in snd_lookup_oss_minor_data() 33 mreg = snd_oss_minors[minor]; in snd_lookup_oss_minor_data() 47 int minor; in snd_oss_kernel_minor() local 53 minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_MIXER1 : SNDRV_MINOR_OSS_MIXER)); in snd_oss_kernel_minor() 56 minor = SNDRV_MINOR_OSS_SEQUENCER; in snd_oss_kernel_minor() 59 minor = SNDRV_MINOR_OSS_MUSIC; in snd_oss_kernel_minor() 64 minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_PCM1 : SNDRV_MINOR_OSS_PCM)); in snd_oss_kernel_minor() 69 minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_MIDI1 : SNDRV_MINOR_OSS_MIDI)); in snd_oss_kernel_minor() 72 minor = SNDRV_MINOR_OSS(card->number, SNDRV_MINOR_OSS_DMFM); in snd_oss_kernel_minor() [all …]
|
/Linux-v5.10/drivers/staging/vme/devices/ |
D | vme_user.c | 115 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 …]
|
/Linux-v5.10/drivers/media/platform/coda/ |
D | trace.h | 19 __field(int, minor) 25 __entry->minor = ctx->fh.vdev->minor; 30 TP_printk("minor = %d, ctx = %d, cmd = %d", 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; 69 TP_printk("minor = %d, index = %d, ctx = %d", [all …]
|
/Linux-v5.10/drivers/usb/core/ |
D | file.c | 138 * usb_register_dev - register a USB device, and ask for a minor number 143 * If CONFIG_USB_DYNAMIC_MINORS is enabled, the minor number will be 145 * enabled, the minor number will be based on the next available free minor, 151 * the minor numbers given out by this function. 161 int minor; in usb_register_dev() local 168 * no holes in the minor range. in usb_register_dev() 175 if (intf->minor >= 0) in usb_register_dev() 185 dev_dbg(&intf->dev, "looking for a minor, starting at %d\n", minor_base); 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() [all …]
|
/Linux-v5.10/drivers/gpu/drm/ |
D | drm_debugfs.c | 54 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() 165 * minor 169 * @minor: device minor number 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() 192 tmp->minor = minor; in drm_debugfs_create_files() [all …]
|
D | drm_drv.c | 79 * device. However, this doesn't mean that the minor is active. Minors are 98 struct drm_minor *minor = data; in drm_minor_alloc_release() local 101 WARN_ON(dev != minor->dev); in drm_minor_alloc_release() 103 put_device(minor->kdev); in drm_minor_alloc_release() 106 idr_remove(&drm_minors_idr, minor->index); in drm_minor_alloc_release() 112 struct drm_minor *minor; in drm_minor_alloc() local 116 minor = drmm_kzalloc(dev, sizeof(*minor), GFP_KERNEL); in drm_minor_alloc() 117 if (!minor) in drm_minor_alloc() 120 minor->type = type; in drm_minor_alloc() 121 minor->dev = dev; in drm_minor_alloc() [all …]
|
D | drm_file.c | 146 * @minor: minor to allocate on 150 * @minor, so it must be freed before @minor is. 155 struct drm_file *drm_file_alloc(struct drm_minor *minor) in drm_file_alloc() argument 157 struct drm_device *dev = minor->dev; in drm_file_alloc() 166 file->minor = minor; in drm_file_alloc() 212 struct drm_device *dev = file_priv->minor->dev; in drm_events_release() 254 dev = file->minor->dev; in drm_file_free() 258 (long)old_encode_dev(file->minor->kdev->devt), in drm_file_free() 303 struct drm_device *dev = file_priv->minor->dev; in drm_close_helper() 329 * \param minor acquired minor-object. [all …]
|
/Linux-v5.10/arch/sparc/kernel/ |
D | hvapi.c | 16 * PRE_API flag set are major 1 minor 0. 21 unsigned long minor; member 81 p->major = p->minor = 0; in __put_ref() 86 * API group and desired major+minor. 93 * API group/major/minor with the hypervisor, and errors returned 97 unsigned long *minor) in sun4v_hvapi_register() argument 110 *minor = p->minor; in sun4v_hvapi_register() 117 hv_ret = sun4v_set_version(group, major, *minor, in sun4v_hvapi_register() 121 *minor = actual_minor; in sun4v_hvapi_register() 123 p->minor = actual_minor; in sun4v_hvapi_register() [all …]
|
/Linux-v5.10/drivers/hid/ |
D | hid-roccat.c | 40 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() 240 * @minor: minor device number returned by roccat_connect() 247 int roccat_report_event(int minor, u8 const *data) in roccat_report_event() argument 254 device = devices[minor]; in roccat_report_event() [all …]
|
D | hidraw.c | 105 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 …]
|
/Linux-v5.10/include/linux/ |
D | kdev_t.h | 11 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK)) macro 15 sprintf((buffer), "%u:%u\n", MAJOR(dev), MINOR(dev)) 19 sprintf(buffer, "%u:%u", MAJOR(dev), MINOR(dev)); \ 26 return MAJOR(dev) < 256 && MINOR(dev) < 256; in old_valid_dev() 31 return (MAJOR(dev) << 8) | MINOR(dev); in old_encode_dev() 42 unsigned minor = MINOR(dev); in new_encode_dev() local 43 return (minor & 0xff) | (major << 8) | ((minor & ~0xff) << 12); in new_encode_dev() 49 unsigned minor = (dev & 0xff) | ((dev >> 12) & 0xfff00); in new_decode_dev() local 50 return MKDEV(major, minor); in new_decode_dev() 65 return MAJOR(dev) < (1<<14) && MINOR(dev) < (1<<18); in sysv_valid_dev() [all …]
|
D | lp.h | 22 #define LP_F(minor) lp_table[(minor)].flags /* flags for busy, etc. */ argument 23 #define LP_CHAR(minor) lp_table[(minor)].chars /* busy timeout */ argument 24 #define LP_TIME(minor) lp_table[(minor)].time /* wait time */ argument 25 #define LP_WAIT(minor) lp_table[(minor)].wait /* strobe wait */ argument 26 #define LP_IRQ(minor) lp_table[(minor)].dev->port->irq /* interrupt # */ argument 29 #define LP_STAT(minor) lp_table[(minor)].stats /* statistics area */ argument 80 * accessed with LP_C(minor)
|
D | drbd_genl_api.h | 7 * @minor: 8 * For admin requests (user -> kernel): which minor device to operate on. 10 * (kernel -> user): which minor device the information is about. 12 * the minor value shall be (~0), and the attribute DRBD_NLA_CFG_CONTEXT 17 * When creating a new minor (adding it to a resource), the resource needs 20 * whereas the minor number on the remote side may be different 25 __u32 minor; member
|
/Linux-v5.10/include/sound/ |
D | minors.h | 6 * MINOR numbers 12 #define SNDRV_MINOR_CARD(minor) ((minor) >> 5) argument 13 #define SNDRV_MINOR_DEVICE(minor) ((minor) & 0x001f) argument 29 /* same as first respective minor number to make minor allocation easier */ 62 #define SNDRV_MINOR_OSS_CARD(minor) ((minor) >> 4) argument 63 #define SNDRV_MINOR_OSS_DEVICE(minor) ((minor) & 0x000f) argument 76 #define SNDRV_MINOR_OSS_DMMIDI 9 /* /dev/dmmidi0 - this device can have another minor # with OSS */ 77 #define SNDRV_MINOR_OSS_DMFM 10 /* /dev/dmfm0 - this device can have another minor # with OSS */
|
/Linux-v5.10/drivers/staging/comedi/drivers/ |
D | comedi_bond.c | 37 * within each minor will be concatenated together in the order given here. 49 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() [all …]
|
/Linux-v5.10/drivers/gpu/drm/msm/ |
D | msm_debugfs.c | 163 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 void msm_debugfs_init(struct drm_minor *minor) in msm_debugfs_init() argument 219 struct drm_device *dev = minor->dev; in msm_debugfs_init() 224 minor->debugfs_root, minor); in msm_debugfs_init() [all …]
|
/Linux-v5.10/include/trace/events/ |
D | v4l2.h | 101 TP_PROTO(int minor, struct v4l2_buffer *buf), 103 TP_ARGS(minor, buf), 106 __field(int, minor) 127 __entry->minor = minor; 147 TP_printk("minor = %d, index = %u, type = %s, bytesused = %u, " 151 "userbits = { %u %u %u %u } }, sequence = %u", __entry->minor, 172 TP_PROTO(int minor, struct v4l2_buffer *buf), 173 TP_ARGS(minor, buf) 177 TP_PROTO(int minor, struct v4l2_buffer *buf), 178 TP_ARGS(minor, buf) [all …]
|
/Linux-v5.10/drivers/md/ |
D | md-autodetect.c | 31 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() 134 mdev = MKDEV(mdp_major, args->minor << MdpMinorShift); in md_setup_drive() 135 sprintf(name, "md_d%d", args->minor); in md_setup_drive() [all …]
|
/Linux-v5.10/security/ |
D | device_cgroup.c | 35 u32 major, minor; member 103 if (walk->minor != ex->minor) in dev_exception_add() 131 if (walk->minor != ex->minor) in dev_exception_rm() 292 set_majmin(min, ex->minor); in devcgroup_seq_show() 307 * @minor: device file minor number, ~0 to match all 316 u32 major, u32 minor, short access) in match_exception() argument 327 if (ex->minor != ~0 && ex->minor != minor) in match_exception() 342 * @minor: device file minor number, ~0 to match all 353 u32 major, u32 minor, short access) in match_exception_partial() argument 369 if (ex->minor != ~0 && minor != ~0 && ex->minor != minor) in match_exception_partial() [all …]
|
/Linux-v5.10/drivers/gpu/drm/omapdrm/ |
D | omap_debugfs.c | 22 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 void omap_debugfs_init(struct drm_minor *minor) in omap_debugfs_init() argument 87 minor->debugfs_root, minor); in omap_debugfs_init() 92 minor->debugfs_root, minor); in omap_debugfs_init()
|