Home
last modified time | relevance | path

Searched full:minor (Results 1 – 25 of 1999) sorted by relevance

12345678910>>...80

/Linux-v6.1/drivers/char/
Dlp.c207 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 …]
Dmisc.c26 * 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 (iter->minor != minor) in misc_open()
119 request_module("char-major-%d-%d", MISC_MAJOR, minor); in misc_open()
123 if (iter->minor != minor) in misc_open()
161 * Register a miscellaneous device with the kernel. If the minor
162 * number is set to %MISC_DYNAMIC_MINOR a minor number is assigned
163 * and placed in the minor field of the structure. For other cases
164 * the minor number requested is used.
[all …]
/Linux-v6.1/sound/core/
Dsound.c70 static void snd_request_other(int minor) in snd_request_other() argument
74 switch (minor) { in snd_request_other()
86 * @minor: the minor number
89 * Checks that a minor device with the specified type is registered, and returns
93 * if an associated instance with the given minor number and type is found.
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()
[all …]
Dsound_oss.c25 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-v6.1/drivers/media/platform/chips-media/
Dtrace.h19 __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-v6.1/drivers/staging/vme_user/
Dvme_user.c115 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-v6.1/drivers/usb/core/
Dfile.c138 * 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-v6.1/drivers/gpu/drm/
Ddrm_debugfs.c54 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()
102 priv->minor->index, in drm_clients_info()
128 struct drm_device *dev = node->minor->dev; in drm_gem_name_info()
166 * minor
170 * @minor: device minor number
177 struct dentry *root, struct drm_minor *minor) in drm_debugfs_create_files() argument
179 struct drm_device *dev = minor->dev; in drm_debugfs_create_files()
193 tmp->minor = minor; in drm_debugfs_create_files()
[all …]
Ddrm_drv.c81 * device. However, this doesn't mean that the minor is active. Minors are
100 struct drm_minor *minor = data; in drm_minor_alloc_release() local
103 WARN_ON(dev != minor->dev); in drm_minor_alloc_release()
105 put_device(minor->kdev); in drm_minor_alloc_release()
108 idr_remove(&drm_minors_idr, minor->index); in drm_minor_alloc_release()
114 struct drm_minor *minor; in drm_minor_alloc() local
118 minor = drmm_kzalloc(dev, sizeof(*minor), GFP_KERNEL); in drm_minor_alloc()
119 if (!minor) in drm_minor_alloc()
122 minor->type = type; in drm_minor_alloc()
123 minor->dev = dev; in drm_minor_alloc()
[all …]
Ddrm_file.c140 * @minor: minor to allocate on
144 * @minor, so it must be freed before @minor is.
149 struct drm_file *drm_file_alloc(struct drm_minor *minor) in drm_file_alloc() argument
151 struct drm_device *dev = minor->dev; in drm_file_alloc()
160 file->minor = minor; in drm_file_alloc()
207 struct drm_device *dev = file_priv->minor->dev; in drm_events_release()
246 dev = file->minor->dev; in drm_file_free()
250 (long)old_encode_dev(file->minor->kdev->devt), in drm_file_free()
297 struct drm_device *dev = file_priv->minor->dev; in drm_close_helper()
323 * \param minor acquired minor-object.
[all …]
/Linux-v6.1/arch/sparc/kernel/
Dhvapi.c16 * 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-v6.1/drivers/hid/
Dhid-roccat.c40 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 …]
Dhidraw.c105 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-v6.1/include/linux/
Dkdev_t.h11 #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 …]
Dlp.h22 #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)
Ddrbd_genl_api.h7 * @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-v6.1/drivers/gpu/drm/vc4/
Dvc4_debugfs.c22 vc4_debugfs_init(struct drm_minor *minor) in vc4_debugfs_init() argument
24 struct vc4_dev *vc4 = to_vc4_dev(minor->dev); in vc4_debugfs_init()
27 drm_WARN_ON(drm, vc4_hvs_debugfs_init(minor)); in vc4_debugfs_init()
30 drm_WARN_ON(drm, vc4_bo_debugfs_init(minor)); in vc4_debugfs_init()
31 drm_WARN_ON(drm, vc4_v3d_debugfs_init(minor)); in vc4_debugfs_init()
38 struct drm_device *drm = node->minor->dev; in vc4_debugfs_regset32()
53 int vc4_debugfs_add_file(struct drm_minor *minor, in vc4_debugfs_add_file() argument
58 struct drm_device *dev = minor->dev; in vc4_debugfs_add_file()
59 struct dentry *root = minor->debugfs_root; in vc4_debugfs_add_file()
70 drm_debugfs_create_files(file, 1, root, minor); in vc4_debugfs_add_file()
[all …]
/Linux-v6.1/include/sound/
Dminors.h6 * 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-v6.1/drivers/gpu/drm/msm/
Dmsm_debugfs.c214 struct drm_device *dev = node->minor->dev; in msm_gem_show()
232 struct drm_device *dev = node->minor->dev; in msm_mm_show()
243 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-v6.1/drivers/comedi/drivers/
Dcomedi_bond.c37 * 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-v6.1/include/trace/events/
Dv4l2.h101 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-v6.1/security/
Ddevice_cgroup.c36 u32 major, minor; member
104 if (walk->minor != ex->minor) in dev_exception_add()
132 if (walk->minor != ex->minor) in dev_exception_rm()
293 set_majmin(min, ex->minor); in devcgroup_seq_show()
308 * @minor: device file minor number, ~0 to match all
317 u32 major, u32 minor, short access) in match_exception() argument
328 if (ex->minor != ~0 && ex->minor != minor) in match_exception()
343 * @minor: device file minor number, ~0 to match all
354 u32 major, u32 minor, short access) in match_exception_partial() argument
370 if (ex->minor != ~0 && minor != ~0 && ex->minor != minor) in match_exception_partial()
[all …]
/Linux-v6.1/drivers/md/
Dmd-autodetect.c31 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-v6.1/Documentation/ABI/obsolete/
Dsysfs-driver-hid-roccat-ryos1 …config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/ryos/roccatryos<minor>/control
9 …config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/ryos/roccatryos<minor>/profile
21 …g num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/ryos/roccatryos<minor>/keys_primary
31 … num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/ryos/roccatryos<minor>/keys_function
41 …fig num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/ryos/roccatryos<minor>/keys_macro
51 …num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/ryos/roccatryos<minor>/keys_thumbster
61 …fig num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/ryos/roccatryos<minor>/keys_extra
71 … num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/ryos/roccatryos<minor>/keys_easyzone
81 …onfig num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/ryos/roccatryos<minor>/key_mask
92 …:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/ryos/roccatryos<minor>/light
[all …]
/Linux-v6.1/drivers/media/mc/
Dmc-devnode.c55 clear_bit(devnode->minor, media_devnode_nums); in media_devnode_release()
215 int minor; in media_devnode_register() local
218 /* Part 1: Find a free minor number */ in media_devnode_register()
220 minor = find_first_zero_bit(media_devnode_nums, MEDIA_NUM_DEVICES); in media_devnode_register()
221 if (minor == MEDIA_NUM_DEVICES) { in media_devnode_register()
223 pr_err("could not get a free minor\n"); in media_devnode_register()
228 set_bit(minor, media_devnode_nums); in media_devnode_register()
231 devnode->minor = minor; in media_devnode_register()
236 devnode->dev.devt = MKDEV(MAJOR(media_dev_t), devnode->minor); in media_devnode_register()
240 dev_set_name(&devnode->dev, "media%d", devnode->minor); in media_devnode_register()
[all …]

12345678910>>...80