Home
last modified time | relevance | path

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

12345678910>>...51

/Linux-v4.19/drivers/char/
Dlp.c205 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 …]
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.c165 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 …]
Dpc8736x_gpio.c152 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 …]
/Linux-v4.19/sound/core/
Dsound.c79 static void snd_request_other(int minor) in snd_request_other() argument
83 switch (minor) { in snd_request_other()
108 void *snd_lookup_minor_data(unsigned int minor, int type) in snd_lookup_minor_data() argument
113 if (minor >= ARRAY_SIZE(snd_minors)) in snd_lookup_minor_data()
116 mreg = snd_minors[minor]; in snd_lookup_minor_data()
129 static struct snd_minor *autoload_device(unsigned int minor) in autoload_device() argument
133 dev = SNDRV_MINOR_DEVICE(minor); in autoload_device()
136 int card = SNDRV_MINOR_CARD(minor); in autoload_device()
141 snd_request_other(minor); in autoload_device()
144 return snd_minors[minor]; in autoload_device()
[all …]
Dsound_oss.c40 void *snd_lookup_oss_minor_data(unsigned int minor, int type) in snd_lookup_oss_minor_data() argument
45 if (minor >= ARRAY_SIZE(snd_oss_minors)) in snd_lookup_oss_minor_data()
48 mreg = snd_oss_minors[minor]; in snd_lookup_oss_minor_data()
62 int minor; in snd_oss_kernel_minor() local
68 minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_MIXER1 : SNDRV_MINOR_OSS_MIXER)); in snd_oss_kernel_minor()
71 minor = SNDRV_MINOR_OSS_SEQUENCER; in snd_oss_kernel_minor()
74 minor = SNDRV_MINOR_OSS_MUSIC; in snd_oss_kernel_minor()
79 minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_PCM1 : SNDRV_MINOR_OSS_PCM)); in snd_oss_kernel_minor()
84 minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_MIDI1 : SNDRV_MINOR_OSS_MIDI)); in snd_oss_kernel_minor()
87 minor = SNDRV_MINOR_OSS(card->number, SNDRV_MINOR_OSS_DMFM); in snd_oss_kernel_minor()
[all …]
/Linux-v4.19/drivers/gpu/drm/
Ddrm_drv.c111 struct drm_minor *minor; in drm_minor_alloc() local
115 minor = kzalloc(sizeof(*minor), GFP_KERNEL); in drm_minor_alloc()
116 if (!minor) in drm_minor_alloc()
119 minor->type = type; in drm_minor_alloc()
120 minor->dev = dev; in drm_minor_alloc()
135 minor->index = r; in drm_minor_alloc()
137 minor->kdev = drm_sysfs_minor_alloc(minor); in drm_minor_alloc()
138 if (IS_ERR(minor->kdev)) { in drm_minor_alloc()
139 r = PTR_ERR(minor->kdev); in drm_minor_alloc()
143 *drm_minor_get_slot(dev, type) = minor; in drm_minor_alloc()
[all …]
Ddrm_debugfs.c84 struct dentry *root, struct drm_minor *minor) in drm_debugfs_create_files() argument
86 struct drm_device *dev = minor->dev; in drm_debugfs_create_files()
113 tmp->minor = minor; in drm_debugfs_create_files()
117 mutex_lock(&minor->debugfs_lock); in drm_debugfs_create_files()
118 list_add(&tmp->list, &minor->debugfs_list); in drm_debugfs_create_files()
119 mutex_unlock(&minor->debugfs_lock); in drm_debugfs_create_files()
124 drm_debugfs_remove_files(files, count, minor); in drm_debugfs_create_files()
129 int drm_debugfs_init(struct drm_minor *minor, int minor_id, in drm_debugfs_init() argument
132 struct drm_device *dev = minor->dev; in drm_debugfs_init()
136 INIT_LIST_HEAD(&minor->debugfs_list); in drm_debugfs_init()
[all …]
Ddrm_file.c103 static int drm_open_helper(struct file *filp, struct drm_minor *minor);
116 struct drm_file *drm_file_alloc(struct drm_minor *minor) in drm_file_alloc() argument
118 struct drm_device *dev = minor->dev; in drm_file_alloc()
127 file->minor = minor; in drm_file_alloc()
176 struct drm_device *dev = file_priv->minor->dev; in drm_events_release()
218 dev = file->minor->dev; in drm_file_free()
222 (long)old_encode_dev(file->minor->kdev->devt), in drm_file_free()
301 struct drm_minor *minor; in drm_open() local
305 minor = drm_minor_acquire(iminor(inode)); in drm_open()
306 if (IS_ERR(minor)) in drm_open()
[all …]
/Linux-v4.19/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-v4.19/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-v4.19/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-v4.19/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-v4.19/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()
197 if (intf->minor < 0) in usb_register_dev()
201 snprintf(name, sizeof(name), class_driver->name, minor - minor_base); in usb_register_dev()
203 MKDEV(USB_MAJOR, minor), class_driver, in usb_register_dev()
207 usb_minors[minor] = NULL; in usb_register_dev()
[all …]
/Linux-v4.19/init/
Ddo_mounts_md.c25 int minor; member
56 int minor, level, factor, fault, partitioned = 0; in md_setup() local
65 if (get_option(&str, &minor) != 2) { /* MD Number */ in md_setup()
71 if (md_setup_args[ent].minor == minor && in md_setup()
74 "Replacing previous definition.\n", partitioned?"d":"", minor); in md_setup()
78 printk(KERN_WARNING "md: md=%s%d - too many md initialisations\n", partitioned?"d":"", minor); in md_setup()
109 minor, pername, str); in md_setup()
112 md_setup_args[ent].minor = minor; in md_setup()
119 int minor, i, ent, partitioned; in md_setup_drive() local
130 minor = md_setup_args[ent].minor; in md_setup_drive()
[all …]
/Linux-v4.19/drivers/hid/
Dhid-roccat.c43 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 …]
Dhidraw.c115 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 …]
/Linux-v4.19/include/sound/
Dminors.h27 #define SNDRV_MINOR_CARD(minor) ((minor) >> 5) argument
28 #define SNDRV_MINOR_DEVICE(minor) ((minor) & 0x001f) argument
77 #define SNDRV_MINOR_OSS_CARD(minor) ((minor) >> 4) argument
78 #define SNDRV_MINOR_OSS_DEVICE(minor) ((minor) & 0x000f) argument
/Linux-v4.19/drivers/gpu/drm/omapdrm/
Domap_debugfs.c31 struct drm_device *dev = node->minor->dev; in gem_show()
45 struct drm_device *dev = node->minor->dev; in mm_show()
57 struct drm_device *dev = node->minor->dev; in fb_show()
92 int omap_debugfs_init(struct drm_minor *minor) in omap_debugfs_init() argument
94 struct drm_device *dev = minor->dev; in omap_debugfs_init()
99 minor->debugfs_root, minor); in omap_debugfs_init()
109 minor->debugfs_root, minor); in omap_debugfs_init()
/Linux-v4.19/drivers/staging/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-v4.19/drivers/gpu/drm/msm/
Dmsm_debugfs.c166 struct drm_device *dev = node->minor->dev; in show_locked()
188 static int late_init_minor(struct drm_minor *minor) in late_init_minor() argument
192 if (!minor) in late_init_minor()
195 ret = msm_rd_debugfs_init(minor); in late_init_minor()
197 dev_err(minor->dev->dev, "could not install rd debugfs\n"); in late_init_minor()
201 ret = msm_perf_debugfs_init(minor); in late_init_minor()
203 dev_err(minor->dev->dev, "could not install perf debugfs\n"); in late_init_minor()
220 int msm_debugfs_init(struct drm_minor *minor) in msm_debugfs_init() argument
222 struct drm_device *dev = minor->dev; in msm_debugfs_init()
228 minor->debugfs_root, minor); in msm_debugfs_init()
[all …]
/Linux-v4.19/Documentation/
Dconf.py20 major, minor, patch = sphinx.version_info[:3] variable
40 if major == 1 and minor > 3:
283 if major == 1 and minor > 3:
286 if major == 1 and minor <= 4:
288 elif major == 1 and (minor > 5 or (minor == 5 and patch >= 3)):
293 if major == 1 and minor < 6:
/Linux-v4.19/security/
Ddevice_cgroup.c33 u32 major, minor; member
101 if (walk->minor != ex->minor) in dev_exception_add()
129 if (walk->minor != ex->minor) in dev_exception_rm()
290 set_majmin(min, ex->minor); in devcgroup_seq_show()
314 u32 major, u32 minor, short access) in match_exception() argument
325 if (ex->minor != ~0 && ex->minor != minor) in match_exception()
351 u32 major, u32 minor, short access) in match_exception_partial() argument
366 if (ex->minor != ~0 && minor != ~0 && ex->minor != minor) in match_exception_partial()
415 refex->minor, in verify_new_ex()
430 refex->major, refex->minor, in verify_new_ex()
[all …]
/Linux-v4.19/drivers/usb/serial/
Dbus.c44 int minor; in usb_serial_device_probe() local
62 minor = port->minor; in usb_serial_device_probe()
64 minor, dev); in usb_serial_device_probe()
74 driver->description, minor); in usb_serial_device_probe()
92 int minor; in usb_serial_device_remove() local
107 minor = port->minor; in usb_serial_device_remove()
108 tty_unregister_device(usb_serial_tty_driver, minor); in usb_serial_device_remove()
115 driver->description, minor); in usb_serial_device_remove()
/Linux-v4.19/include/drm/
Ddrm_debugfs.h72 struct drm_minor *minor; member
83 struct drm_minor *minor);
85 int count, struct drm_minor *minor);
89 struct drm_minor *minor) in drm_debugfs_create_files() argument
95 int count, struct drm_minor *minor) in drm_debugfs_remove_files() argument

12345678910>>...51