/linux-6.6.21/drivers/char/ |
D | lp.c | 209 static int lp_reset(int minor) in lp_reset() argument 212 lp_claim_parport_or_block(&lp_table[minor]); in lp_reset() 213 w_ctr(minor, LP_PSELECP); in lp_reset() 215 w_ctr(minor, LP_PSELECP | LP_PINITP); in lp_reset() 216 retval = r_str(minor); in lp_reset() 217 lp_release_parport(&lp_table[minor]); in lp_reset() 221 static void lp_error(int minor) in lp_error() argument 226 if (LP_F(minor) & LP_ABORT) in lp_error() 229 polling = lp_table[minor].dev->port->irq == PARPORT_IRQ_NONE; in lp_error() 231 lp_release_parport(&lp_table[minor]); in lp_error() [all …]
|
D | misc.c | 80 static void misc_minor_free(int minor) in misc_minor_free() argument 82 if (minor < DYNAMIC_MINORS) in misc_minor_free() 83 ida_free(&misc_minors_ida, DYNAMIC_MINORS - minor - 1); in misc_minor_free() 84 else if (minor > MISC_DYNAMIC_MINOR) in misc_minor_free() 85 ida_free(&misc_minors_ida, minor); in misc_minor_free() 109 seq_printf(seq, "%3i %s\n", p->minor, p->name ? p->name : ""); in misc_seq_show() 124 int minor = iminor(inode); in misc_open() local 132 if (iter->minor != minor) in misc_open() 141 request_module("char-major-%d-%d", MISC_MAJOR, minor); in misc_open() 145 if (iter->minor != minor) in misc_open() [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 …]
|
/linux-6.6.21/sound/core/ |
D | sound.c | 70 static void snd_request_other(int minor) in snd_request_other() argument 74 switch (minor) { in snd_request_other() 99 void *snd_lookup_minor_data(unsigned int minor, int type) in snd_lookup_minor_data() argument 104 if (minor >= ARRAY_SIZE(snd_minors)) in snd_lookup_minor_data() 107 mreg = snd_minors[minor]; in snd_lookup_minor_data() 120 static struct snd_minor *autoload_device(unsigned int minor) in autoload_device() argument 124 dev = SNDRV_MINOR_DEVICE(minor); in autoload_device() 127 int card = SNDRV_MINOR_CARD(minor); in autoload_device() 135 snd_request_other(minor); in autoload_device() 138 return snd_minors[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-6.6.21/drivers/accel/ |
D | drm_accel.c | 57 struct drm_minor *minor = node->minor; in accel_name_info() local 58 struct drm_device *dev = minor->dev; in accel_name_info() 90 void accel_debugfs_init(struct drm_minor *minor, int minor_id) in accel_debugfs_init() argument 92 struct drm_device *dev = minor->dev; in accel_debugfs_init() 95 INIT_LIST_HEAD(&minor->debugfs_list); in accel_debugfs_init() 96 mutex_init(&minor->debugfs_lock); in accel_debugfs_init() 98 minor->debugfs_root = debugfs_create_dir(name, accel_debugfs_root); in accel_debugfs_init() 101 minor->debugfs_root, minor); in accel_debugfs_init() 104 dev->driver->debugfs_init(minor); in accel_debugfs_init() 170 void accel_minor_replace(struct drm_minor *minor, int index) in accel_minor_replace() argument [all …]
|
/linux-6.6.21/drivers/gpu/drm/ |
D | drm_drv.c | 103 struct drm_minor *minor = data; in drm_minor_alloc_release() local 106 WARN_ON(dev != minor->dev); in drm_minor_alloc_release() 108 put_device(minor->kdev); in drm_minor_alloc_release() 110 if (minor->type == DRM_MINOR_ACCEL) { in drm_minor_alloc_release() 111 accel_minor_remove(minor->index); in drm_minor_alloc_release() 114 idr_remove(&drm_minors_idr, minor->index); in drm_minor_alloc_release() 121 struct drm_minor *minor; in drm_minor_alloc() local 125 minor = drmm_kzalloc(dev, sizeof(*minor), GFP_KERNEL); in drm_minor_alloc() 126 if (!minor) in drm_minor_alloc() 129 minor->type = type; in drm_minor_alloc() [all …]
|
D | drm_debugfs.c | 106 priv->minor->index, in drm_clients_info() 235 struct dentry *root, struct drm_minor *minor) in drm_debugfs_create_files() argument 237 struct drm_device *dev = minor->dev; in drm_debugfs_create_files() 251 tmp->minor = minor; in drm_debugfs_create_files() 257 mutex_lock(&minor->debugfs_lock); in drm_debugfs_create_files() 258 list_add(&tmp->list, &minor->debugfs_list); in drm_debugfs_create_files() 259 mutex_unlock(&minor->debugfs_lock); in drm_debugfs_create_files() 264 int drm_debugfs_init(struct drm_minor *minor, int minor_id, in drm_debugfs_init() argument 267 struct drm_device *dev = minor->dev; in drm_debugfs_init() 271 INIT_LIST_HEAD(&minor->debugfs_list); in drm_debugfs_init() [all …]
|
D | drm_file.c | 150 struct drm_file *drm_file_alloc(struct drm_minor *minor) in drm_file_alloc() argument 153 struct drm_device *dev = minor->dev; in drm_file_alloc() 164 file->minor = minor; in drm_file_alloc() 211 struct drm_device *dev = file_priv->minor->dev; in drm_events_release() 250 dev = file->minor->dev; in drm_file_free() 254 (long)old_encode_dev(file->minor->kdev->devt), in drm_file_free() 301 struct drm_device *dev = file_priv->minor->dev; in drm_close_helper() 333 int drm_open_helper(struct file *filp, struct drm_minor *minor) in drm_open_helper() argument 335 struct drm_device *dev = minor->dev; in drm_open_helper() 348 current->comm, task_pid_nr(current), minor->index); in drm_open_helper() [all …]
|
/linux-6.6.21/drivers/staging/vme_user/ |
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-6.6.21/drivers/usb/core/ |
D | file.c | 115 int minor; in usb_register_dev() local 129 if (intf->minor >= 0) in usb_register_dev() 135 for (minor = minor_base; minor < MAX_USB_MINORS; ++minor) { in usb_register_dev() 136 if (usb_minors[minor]) in usb_register_dev() 139 usb_minors[minor] = class_driver->fops; in usb_register_dev() 140 intf->minor = minor; in usb_register_dev() 143 if (intf->minor < 0) { in usb_register_dev() 149 snprintf(name, sizeof(name), class_driver->name, minor - minor_base); in usb_register_dev() 151 MKDEV(USB_MAJOR, minor), class_driver, in usb_register_dev() 154 usb_minors[minor] = NULL; in usb_register_dev() [all …]
|
/linux-6.6.21/arch/sparc/kernel/ |
D | hvapi.c | 21 unsigned long minor; member 81 p->major = p->minor = 0; in __put_ref() 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() 130 p->minor = 0; in sun4v_hvapi_register() 131 *minor = 0; in sun4v_hvapi_register() 162 unsigned long *minor) in sun4v_hvapi_get() argument [all …]
|
/linux-6.6.21/include/linux/ |
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
|
/linux-6.6.21/drivers/media/platform/chips-media/ |
D | trace.h | 19 __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 …]
|
/linux-6.6.21/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() 247 int roccat_report_event(int minor, u8 const *data) in roccat_report_event() argument 254 device = devices[minor]; in roccat_report_event() 300 unsigned int minor; in roccat_connect() local [all …]
|
D | hidraw.c | 107 unsigned int minor = iminor(file_inode(file)); in hidraw_send_report() local 114 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_send_report() 119 dev = hidraw_table[minor]->hid; in hidraw_send_report() 181 unsigned int minor = iminor(file_inode(file)); in hidraw_get_report() local 189 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_get_report() 194 dev = hidraw_table[minor]->hid; in hidraw_get_report() 266 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 …]
|
/linux-6.6.21/drivers/net/can/usb/etas_es58x/ |
D | es58x_devlink.c | 46 int major, minor, revision; in es58x_parse_sw_version() local 66 if (sscanf(prod_info, "%2u.%2u.%2u", &major, &minor, &revision) != 3) in es58x_parse_sw_version() 70 version->minor = minor; in es58x_parse_sw_version() 97 int major, minor; in es58x_parse_hw_rev() local 109 if (sscanf(prod_info, "%c%3u/%3u", &letter, &major, &minor) != 3) in es58x_parse_hw_rev() 114 es58x_dev->hardware_revision.minor = minor; in es58x_parse_hw_rev() 136 .minor = -1, in es58x_parse_product_info() 142 .minor = -1, in es58x_parse_product_info() 178 return sw_ver->major < 100 && sw_ver->minor < 100 && in es58x_sw_version_is_valid() 196 hw_rev->minor < 1000; in es58x_hw_revision_is_valid() [all …]
|
/linux-6.6.21/drivers/gpu/drm/msm/ |
D | msm_debugfs.c | 215 struct drm_device *dev = node->minor->dev; in msm_gem_show() 233 struct drm_device *dev = node->minor->dev; in msm_mm_show() 244 struct drm_device *dev = node->minor->dev; in msm_fb_show() 272 static int late_init_minor(struct drm_minor *minor) in late_init_minor() argument 276 if (!minor) in late_init_minor() 279 ret = msm_rd_debugfs_init(minor); in late_init_minor() 281 DRM_DEV_ERROR(minor->dev->dev, "could not install rd debugfs\n"); in late_init_minor() 285 ret = msm_perf_debugfs_init(minor); in late_init_minor() 287 DRM_DEV_ERROR(minor->dev->dev, "could not install perf debugfs\n"); in late_init_minor() 304 void msm_debugfs_init(struct drm_minor *minor) in msm_debugfs_init() argument [all …]
|
/linux-6.6.21/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() 133 mdev = MKDEV(mdp_major, args->minor << MdpMinorShift); in md_setup_drive() 134 sprintf(name, "md_d%d", args->minor); in md_setup_drive() [all …]
|
/linux-6.6.21/include/sound/ |
D | minors.h | 12 #define SNDRV_MINOR_CARD(minor) ((minor) >> 5) argument 13 #define SNDRV_MINOR_DEVICE(minor) ((minor) & 0x001f) argument 62 #define SNDRV_MINOR_OSS_CARD(minor) ((minor) >> 4) argument 63 #define SNDRV_MINOR_OSS_DEVICE(minor) ((minor) & 0x000f) argument
|
/linux-6.6.21/drivers/accel/ivpu/ |
D | ivpu_debugfs.c | 25 ivpu_bo_list(node->minor->dev, &p); in bo_list_show() 33 struct ivpu_device *vdev = to_ivpu_device(node->minor->dev); in fw_name_show() 42 struct ivpu_device *vdev = to_ivpu_device(node->minor->dev); in fw_trace_capability_show() 61 struct ivpu_device *vdev = to_ivpu_device(node->minor->dev); in fw_trace_config_show() 82 struct ivpu_device *vdev = to_ivpu_device(node->minor->dev); in last_bootmode_show() 92 struct ivpu_device *vdev = to_ivpu_device(node->minor->dev); in reset_counter_show() 101 struct ivpu_device *vdev = to_ivpu_device(node->minor->dev); in reset_pending_show() 273 void ivpu_debugfs_init(struct drm_minor *minor) in ivpu_debugfs_init() argument 275 struct ivpu_device *vdev = to_ivpu_device(minor->dev); in ivpu_debugfs_init() 278 minor->debugfs_root, minor); in ivpu_debugfs_init() [all …]
|
/linux-6.6.21/drivers/comedi/drivers/ |
D | comedi_bond.c | 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() 223 nchans, minor, sdev); in do_dev_config() [all …]
|
/linux-6.6.21/security/ |
D | device_cgroup.c | 36 u32 major, minor; member 115 if (walk->minor != ex->minor) in dev_exception_add() 143 if (walk->minor != ex->minor) in dev_exception_rm() 304 set_majmin(min, ex->minor); in devcgroup_seq_show() 328 u32 major, u32 minor, short access) in match_exception() argument 339 if (ex->minor != ~0 && ex->minor != minor) in match_exception() 365 u32 major, u32 minor, short access) in match_exception_partial() argument 381 if (ex->minor != ~0 && minor != ~0 && ex->minor != minor) in match_exception_partial() 430 refex->minor, in verify_new_ex() 445 refex->major, refex->minor, in verify_new_ex() [all …]
|
/linux-6.6.21/drivers/gpu/drm/omapdrm/ |
D | omap_debugfs.c | 23 struct drm_device *dev = node->minor->dev; in gem_show() 37 struct drm_device *dev = node->minor->dev; in mm_show() 49 struct drm_device *dev = node->minor->dev; in fb_show() 84 void omap_debugfs_init(struct drm_minor *minor) in omap_debugfs_init() argument 88 minor->debugfs_root, minor); in omap_debugfs_init() 93 minor->debugfs_root, minor); in omap_debugfs_init()
|
/linux-6.6.21/drivers/usb/serial/ |
D | bus.c | 38 int minor; in usb_serial_device_probe() local 52 minor = port->minor; in usb_serial_device_probe() 54 minor, dev); in usb_serial_device_probe() 64 driver->description, minor); in usb_serial_device_probe() 81 int minor; in usb_serial_device_remove() local 92 minor = port->minor; in usb_serial_device_remove() 93 tty_unregister_device(usb_serial_tty_driver, minor); in usb_serial_device_remove() 100 driver->description, minor); in usb_serial_device_remove()
|