Home
last modified time | relevance | path

Searched refs:minor (Results 1 – 25 of 1352) sorted by relevance

12345678910>>...55

/Linux-v5.15/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.c87 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()
177 bool is_dynamic = (misc->minor == MISC_DYNAMIC_MINOR); in misc_register()
190 misc->minor = DYNAMIC_MINORS - i - 1; in misc_register()
196 if (c->minor == misc->minor) { in misc_register()
203 dev = MKDEV(MISC_MAJOR, misc->minor); in misc_register()
210 int i = DYNAMIC_MINORS - misc->minor - 1; in misc_register()
[all …]
Dtb0219.c152 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()
212 retval = set_gpio_output_pin(minor - 32, c); in tanbac_tb0219_write()
[all …]
Dpc8736x_gpio.c153 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-v5.15/sound/core/
Dsound.c70 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 …]
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-v5.15/drivers/gpu/drm/
Ddrm_drv.c99 struct drm_minor *minor = data; in drm_minor_alloc_release() local
102 WARN_ON(dev != minor->dev); in drm_minor_alloc_release()
104 put_device(minor->kdev); in drm_minor_alloc_release()
107 idr_remove(&drm_minors_idr, minor->index); in drm_minor_alloc_release()
113 struct drm_minor *minor; in drm_minor_alloc() local
117 minor = drmm_kzalloc(dev, sizeof(*minor), GFP_KERNEL); in drm_minor_alloc()
118 if (!minor) in drm_minor_alloc()
121 minor->type = type; in drm_minor_alloc()
122 minor->dev = dev; in drm_minor_alloc()
137 minor->index = r; in drm_minor_alloc()
[all …]
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()
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()
199 mutex_lock(&minor->debugfs_lock); in drm_debugfs_create_files()
200 list_add(&tmp->list, &minor->debugfs_list); in drm_debugfs_create_files()
[all …]
Ddrm_file.c154 struct drm_file *drm_file_alloc(struct drm_minor *minor) in drm_file_alloc() argument
156 struct drm_device *dev = minor->dev; in drm_file_alloc()
165 file->minor = minor; in drm_file_alloc()
212 struct drm_device *dev = file_priv->minor->dev; in drm_events_release()
251 dev = file->minor->dev; in drm_file_free()
255 (long)old_encode_dev(file->minor->kdev->devt), in drm_file_free()
302 struct drm_device *dev = file_priv->minor->dev; in drm_close_helper()
334 static int drm_open_helper(struct file *filp, struct drm_minor *minor) in drm_open_helper() argument
336 struct drm_device *dev = minor->dev; in drm_open_helper()
349 task_pid_nr(current), minor->index); in drm_open_helper()
[all …]
/Linux-v5.15/drivers/staging/vme/devices/
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-v5.15/include/linux/
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
/Linux-v5.15/arch/sparc/kernel/
Dhvapi.c21 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-v5.15/drivers/usb/core/
Dfile.c161 int minor; in usb_register_dev() local
175 if (intf->minor >= 0) 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()
192 usb_minors[minor] = class_driver->fops; in usb_register_dev()
193 intf->minor = minor; in usb_register_dev()
196 if (intf->minor < 0) { in usb_register_dev()
202 snprintf(name, sizeof(name), class_driver->name, minor - minor_base); in usb_register_dev()
204 MKDEV(USB_MAJOR, minor), class_driver, in usb_register_dev()
207 usb_minors[minor] = NULL; in usb_register_dev()
[all …]
/Linux-v5.15/drivers/media/platform/coda/
Dtrace.h19 __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-v5.15/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()
247 int roccat_report_event(int minor, u8 const *data) in roccat_report_event() argument
254 device = devices[minor]; in roccat_report_event()
296 unsigned int minor; in roccat_connect() local
[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-v5.15/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()
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.15/include/sound/
Dminors.h12 #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-v5.15/drivers/comedi/drivers/
Dcomedi_bond.c49 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-v5.15/drivers/gpu/drm/msm/
Dmsm_debugfs.c188 struct drm_device *dev = node->minor->dev; in show_locked()
210 static int late_init_minor(struct drm_minor *minor) in late_init_minor() argument
214 if (!minor) in late_init_minor()
217 ret = msm_rd_debugfs_init(minor); in late_init_minor()
219 DRM_DEV_ERROR(minor->dev->dev, "could not install rd debugfs\n"); in late_init_minor()
223 ret = msm_perf_debugfs_init(minor); in late_init_minor()
225 DRM_DEV_ERROR(minor->dev->dev, "could not install perf debugfs\n"); in late_init_minor()
242 void msm_debugfs_init(struct drm_minor *minor) in msm_debugfs_init() argument
244 struct drm_device *dev = minor->dev; in msm_debugfs_init()
249 minor->debugfs_root, minor); in msm_debugfs_init()
[all …]
/Linux-v5.15/drivers/gpu/drm/omapdrm/
Domap_debugfs.c22 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()
/Linux-v5.15/security/
Ddevice_cgroup.c35 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()
316 u32 major, u32 minor, short access) in match_exception() argument
327 if (ex->minor != ~0 && ex->minor != minor) in match_exception()
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()
418 refex->minor, in verify_new_ex()
433 refex->major, refex->minor, in verify_new_ex()
[all …]
/Linux-v5.15/drivers/usb/serial/
Dbus.c38 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()
/Linux-v5.15/include/drm/
Ddrm_debugfs.h74 struct drm_minor *minor; member
85 struct drm_minor *minor);
87 int count, struct drm_minor *minor);
91 struct drm_minor *minor) in drm_debugfs_create_files() argument
95 int count, struct drm_minor *minor) in drm_debugfs_remove_files() argument
/Linux-v5.15/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;
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)
186 __field(int, minor)
[all …]

12345678910>>...55