Home
last modified time | relevance | path

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

12345678910>>...98

/openbmc/linux/drivers/char/
H A Dlp.c209 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 …]
H A Dmisc.c26 * Handling of mouse minor numbers for kerneld:
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()
[all …]
/openbmc/linux/sound/core/
H A 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 …]
H A 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 …]
/openbmc/linux/drivers/accel/
H A Ddrm_accel.c56 struct drm_minor *minor = node->minor; in accel_name_info() local
57 struct drm_device *dev = minor->dev; in accel_name_info()
81 * accel_debugfs_init() - Initialize debugfs for accel minor
82 * @minor: Pointer to the drm_minor instance.
83 * @minor_id: The minor's id
85 * This function initializes the drm minor's debugfs members and creates
86 * a root directory for the minor in debugfs. It also creates common files
89 void accel_debugfs_init(struct drm_minor *minor, int minor_id) in accel_debugfs_init() argument
91 struct drm_device *dev = minor->dev; in accel_debugfs_init()
94 INIT_LIST_HEAD(&minor->debugfs_list); in accel_debugfs_init()
[all …]
/openbmc/linux/drivers/usb/core/
H A Dfile.c92 * usb_register_dev - register a USB device, and ask for a minor number
97 * If CONFIG_USB_DYNAMIC_MINORS is enabled, the minor number will be
99 * enabled, the minor number will be based on the next available free minor,
105 * the minor numbers given out by this function.
115 int minor; in usb_register_dev() local
122 * no holes in the minor range. in usb_register_dev()
129 if (intf->minor >= 0) in usb_register_dev()
132 dev_dbg(&intf->dev, "looking for a minor, starting at %d\n", minor_base); 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()
[all …]
/openbmc/linux/drivers/media/platform/chips-media/
H A 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 …]
/openbmc/linux/drivers/staging/vme_user/
H A 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 …]
/openbmc/linux/arch/sparc/kernel/
H A 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 …]
/openbmc/qemu/include/hw/
H A Dboards.h481 * #define DEFINE_VIRT_MACHINE_LATEST(major, minor) \
482 * DEFINE_VIRT_MACHINE_IMPL(true, major, minor)
485 * #define DEFINE_VIRT_MACHINE(major, minor) \
486 * DEFINE_VIRT_MACHINE_IMPL(false, major, minor)
489 * #define DEFINE_VIRT_MACHINE_BUGFIX(major, minor, micro) \
490 * DEFINE_VIRT_MACHINE_IMPL(false, major, minor, micro)
493 * #define DEFINE_VIRT_MACHINE_TAGGED(major, minor, tag) \
494 * DEFINE_VIRT_MACHINE_IMPL(false, major, minor, _, tag)
497 * #define DEFINE_VIRT_MACHINE_TAGGED(major, minor, micro, tag) \
498 * DEFINE_VIRT_MACHINE_IMPL(false, major, minor, micro, _, tag)
[all …]
/openbmc/linux/drivers/hid/
H A 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 …]
H A Dhidraw.c107 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 …]
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_drv.c82 * device. However, this doesn't mean that the minor is active. Minors are
115 struct drm_minor *minor = data; in drm_minor_alloc_release() local
117 WARN_ON(dev != minor->dev); in drm_minor_alloc_release()
119 put_device(minor->kdev); in drm_minor_alloc_release()
121 xa_erase(drm_minor_get_xa(minor->type), minor->index); in drm_minor_alloc_release()
126 * minor allocation scheme where minors 0-63 are primary nodes, 64-127 are control nodes,
140 struct drm_minor *minor; in drm_minor_alloc() local
143 minor = drmm_kzalloc(dev, sizeof(*minor), GFP_KERNEL); in drm_minor_alloc()
144 if (!minor) in drm_minor_alloc()
147 minor->type = type; in drm_minor_alloc()
[all …]
H A Ddrm_debugfs.c106 priv->minor->index, in drm_clients_info()
224 * minor
228 * @minor: device minor number
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
[all …]
/openbmc/linux/include/linux/
H A 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 …]
H A 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)
/openbmc/linux/drivers/gpu/drm/msm/
H A Dmsm_debugfs.c215 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 …]
/openbmc/linux/include/sound/
H A 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 */
/openbmc/linux/drivers/comedi/drivers/
H A 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 …]
/openbmc/linux/drivers/accel/ivpu/
H A Divpu_debugfs.c25 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 …]
/openbmc/linux/drivers/accel/habanalabs/common/
H A Dsecurity.h31 * @minor: number of minor blocks of particular type.
32 * @sub_minor: number of sub minor blocks of particular type.
35 * @minor_offset: address gap between 2 consecutive minor blocks of particular type,
41 * NIC<major>_UMR<minor>_<sub_minor> where major=12, minor=2, sub_minor=15.
43 * 2 blocks with different minor numbers (i.e. 0 to 1). Again, for each minor
54 u32 minor; member
137 u32 blk_idx, u32 major, u32 minor, u32 sub_minor);
151 * @minor: minor block index within the major block
152 * @sub_minor: sub_minor block index within the minor block
155 int (*fn)(struct hl_device *hdev, u32 block_id, u32 major, u32 minor,
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/lockdev/lockdev/
H A D0001-lockdev-Define-MAJOR-MINOR-for-non-glibc-case.patch4 Subject: [PATCH] lockdev: Define MAJOR/MINOR for non-glibc case
7 major/minor macros on musl too, so use them to define MINOR/MAJOR here
23 -# define MINOR(dev) gnu_dev_minor (dev)
25 +# define MINOR(dev) minor (dev)
27 # error "put here a define for MAJOR and MINOR"
/openbmc/linux/include/trace/events/
H A 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 …]
/openbmc/linux/drivers/md/
H A 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 …]
/openbmc/linux/security/
H A Ddevice_cgroup.c36 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()
319 * @minor: device file minor number, ~0 to match all
328 u32 major, u32 minor, short access) in match_exception() argument
339 if (ex->minor != ~0 && ex->minor != minor) in match_exception()
354 * @minor: device file minor number, ~0 to match all
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()
[all …]

12345678910>>...98