/linux-6.3-rc2/drivers/char/ |
A D | lp.c | 214 retval = r_str(minor); in lp_reset() 273 lp_error(minor); in lp_check_status() 312 if (time_after(jiffies, lp_table[minor].lastcall + LP_TIME(minor))) in lp_write() 463 lp_error(minor); in lp_read() 502 if (minor >= LP_NO) { in lp_open() 522 status = r_str(minor); in lp_open() 589 if (minor >= LP_NO) in lp_do_ioctl() 600 LP_CHAR(minor) = arg; in lp_do_ioctl() 642 lp_reset(minor); in lp_do_ioctl() 725 unsigned int minor; in lp_ioctl() local [all …]
|
A 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() 84 else if (minor > MISC_DYNAMIC_MINOR) in misc_minor_free() 85 ida_free(&misc_minors_ida, minor); in misc_minor_free() 124 int minor = iminor(inode); in misc_open() local 132 if (iter->minor != minor) in misc_open() 145 if (iter->minor != minor) in misc_open() 214 misc->minor = i; in misc_register() 219 if (c->minor == misc->minor) { in misc_register() 233 misc_minor_free(misc->minor); in misc_register() [all …]
|
A 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() 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 200 minor &= 0x1f; in pc8736x_gpio_current() 201 port = minor >> 3; in pc8736x_gpio_current() [all …]
|
/linux-6.3-rc2/sound/core/ |
A D | sound.c | 183 int minor; in snd_find_free_minor() local 191 for (minor = 0; minor < ARRAY_SIZE(snd_minors); ++minor) { in snd_find_free_minor() 206 int minor; in snd_find_free_minor() local 230 if (snd_BUG_ON(minor < 0 || minor >= SNDRV_OS_MINORS)) in snd_find_free_minor() 234 return minor; in snd_find_free_minor() 256 int minor; in snd_register_device() local 275 err = minor; in snd_register_device() 305 int minor; in snd_unregister_device() local 309 for (minor = 0; minor < ARRAY_SIZE(snd_minors); ++minor) { in snd_unregister_device() 355 int minor; in snd_minor_info_read() local [all …]
|
A D | sound_oss.c | 33 mreg = snd_oss_minors[minor]; in snd_lookup_oss_minor_data() 47 int minor; in snd_oss_kernel_minor() local 80 if (minor < 0 || minor >= SNDRV_OSS_MINORS) in snd_oss_kernel_minor() 82 return minor; in snd_oss_kernel_minor() 98 if (minor < 0) in snd_register_oss_device() 99 return minor; in snd_register_oss_device() 124 if (register1 != minor) in snd_register_oss_device() 157 if (minor < 0) in snd_unregister_oss_device() 158 return minor; in snd_unregister_oss_device() 220 int minor; in snd_minor_info_oss_read() local [all …]
|
/linux-6.3-rc2/drivers/accel/ |
A D | drm_accel.c | 57 struct drm_minor *minor = node->minor; in accel_name_info() local 101 minor->debugfs_root, minor); in accel_debugfs_init() 192 struct drm_minor *minor; in accel_minor_acquire() local 197 if (minor) in accel_minor_acquire() 201 if (!minor) { in accel_minor_acquire() 208 return minor; in accel_minor_acquire() 234 if (IS_ERR(minor)) in accel_open() 235 return PTR_ERR(minor); in accel_open() 237 dev = minor->dev; in accel_open() 264 if (IS_ERR(minor)) in accel_stub_open() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/ |
A D | drm_drv.c | 125 minor = drmm_kzalloc(dev, sizeof(*minor), GFP_KERNEL); in drm_minor_alloc() 126 if (!minor) in drm_minor_alloc() 155 minor->kdev = drm_sysfs_minor_alloc(minor); in drm_minor_alloc() 172 if (!minor) in drm_minor_register() 176 accel_debugfs_init(minor, minor->index); in drm_minor_register() 191 accel_minor_replace(minor, minor->index); in drm_minor_register() 194 idr_replace(&drm_minors_idr, minor, minor->index); in drm_minor_register() 212 if (!minor || !device_is_registered(minor->kdev)) in drm_minor_unregister() 245 if (minor) in drm_minor_acquire() 838 if (!minor) in create_compat_control_link() [all …]
|
A D | drm_debugfs.c | 102 priv->minor->index, in drm_clients_info() 208 tmp->minor = minor; in drm_debugfs_create_files() 229 mutex_init(&minor->debugfs_lock); in drm_debugfs_init() 236 drm_atomic_debugfs_init(minor); in drm_debugfs_init() 242 drm_client_debugfs_init(minor); in drm_debugfs_init() 262 if (!minor) in drm_debugfs_late_register() 273 struct drm_minor *minor) in drm_debugfs_remove_files() argument 279 mutex_lock(&minor->debugfs_lock); in drm_debugfs_remove_files() 310 if (!minor->debugfs_root) in drm_debugfs_cleanup() 316 minor->debugfs_root = NULL; in drm_debugfs_cleanup() [all …]
|
A D | drm_file.c | 160 file->minor = minor; in drm_file_alloc() 246 dev = file->minor->dev; in drm_file_free() 408 struct drm_minor *minor; in drm_open() local 413 if (IS_ERR(minor)) in drm_open() 414 return PTR_ERR(minor); in drm_open() 416 dev = minor->dev; in drm_open() 446 drm_minor_release(minor); in drm_open() 482 struct drm_minor *minor = file_priv->minor; in drm_release() local 498 drm_minor_release(minor); in drm_release() 522 struct drm_minor *minor = file_priv->minor; in drm_release_noglobal() local [all …]
|
/linux-6.3-rc2/drivers/staging/vme_user/ |
A D | vme_user.c | 115 unsigned int minor; member 127 copied = vme_master_read(image[minor].resource, image[minor].kern_buf, in resource_to_user() 147 return vme_master_write(image[minor].resource, image[minor].kern_buf, in resource_from_user() 182 if (minor == CONTROL_MINOR) in vme_user_read() 200 switch (type[minor]) { in vme_user_read() 225 if (minor == CONTROL_MINOR) in vme_user_write() 242 switch (type[minor]) { in vme_user_write() 267 switch (type[minor]) { in vme_user_llseek() 302 switch (type[minor]) { in vme_user_ioctl() 434 unsigned int minor = vma_priv->minor; in vme_user_vm_close() local [all …]
|
/linux-6.3-rc2/include/linux/ |
A 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.3-rc2/arch/sparc/kernel/ |
A 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() 121 *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 173 *minor = p->minor; in sun4v_hvapi_get() 188 minor = 0; in sun4v_hvapi_init() [all …]
|
/linux-6.3-rc2/drivers/usb/core/ |
A D | file.c | 161 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() 193 intf->minor = minor; in usb_register_dev() 196 if (intf->minor < 0) { in usb_register_dev() 207 usb_minors[minor] = NULL; in usb_register_dev() 208 intf->minor = -1; in usb_register_dev() 233 if (intf->minor == -1) in usb_deregister_dev() 240 usb_minors[intf->minor] = NULL; in usb_deregister_dev() [all …]
|
/linux-6.3-rc2/drivers/media/platform/chips-media/ |
A 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; 58 __field(int, minor) 64 __entry->minor = ctx->fh.vdev->minor; 90 __field(int, minor) 98 __entry->minor = ctx->fh.vdev->minor; 122 __field(int, minor) [all …]
|
/linux-6.3-rc2/drivers/hid/ |
A D | hid-roccat.c | 40 unsigned int minor; member 161 device = devices[minor]; in roccat_open() 211 device = devices[minor]; in roccat_release() 254 device = devices[minor]; in roccat_report_event() 300 unsigned int minor; in roccat_connect() local 310 for (minor = 0; minor < ROCCAT_MAX_DEVICES; ++minor) { in roccat_connect() 311 if (devices[minor]) in roccat_connect() 329 devices[minor] = NULL; in roccat_connect() 342 device->minor = minor; in roccat_connect() 348 return minor; in roccat_connect() [all …]
|
A D | hidraw.c | 112 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_send_report() 187 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_get_report() 276 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_open() 281 dev = hidraw_table[minor]; in hidraw_open() 375 dev = hidraw_table[minor]; in hidraw_ioctl() 540 int minor, result; in hidraw_connect() local 553 for (minor = 0; minor < HIDRAW_MAX_DEVICES; minor++) { in hidraw_connect() 554 if (hidraw_table[minor]) in hidraw_connect() 556 hidraw_table[minor] = dev; in hidraw_connect() 571 hidraw_table[minor] = NULL; in hidraw_connect() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/msm/ |
A D | msm_debugfs.c | 214 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() 285 ret = msm_perf_debugfs_init(minor); in late_init_minor() 304 void msm_debugfs_init(struct drm_minor *minor) in msm_debugfs_init() argument 306 struct drm_device *dev = minor->dev; in msm_debugfs_init() 312 minor->debugfs_root, minor); in msm_debugfs_init() [all …]
|
/linux-6.3-rc2/drivers/net/can/usb/etas_es58x/ |
A 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() 162 return sw_ver->major || sw_ver->minor || sw_ver->revision; in es58x_sw_version_is_set() 202 fw_ver->major, fw_ver->minor, fw_ver->revision); in es58x_devlink_info_get() 212 bl_ver->major, bl_ver->minor, bl_ver->revision); in es58x_devlink_info_get() 222 hw_rev->letter, hw_rev->major, hw_rev->minor); in es58x_devlink_info_get()
|
/linux-6.3-rc2/drivers/md/ |
A 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() 115 minor, pername, str); in md_setup() 118 md_setup_args[ent].minor = minor; in md_setup() 134 sprintf(name, "md_d%d", args->minor); in md_setup_drive() 136 mdev = MKDEV(MD_MAJOR, args->minor); in md_setup_drive() 137 sprintf(name, "md%d", args->minor); in md_setup_drive() 192 ainfo.md_minor = args->minor; in md_setup_drive() [all …]
|
/linux-6.3-rc2/include/sound/ |
A 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.3-rc2/drivers/comedi/drivers/ |
A 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() 212 "Minor %u could not be opened\n", minor); in do_dev_config() 223 nchans, minor, sdev); in do_dev_config() 231 bdev->minor = minor; in do_dev_config() [all …]
|
/linux-6.3-rc2/security/ |
A 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() 339 if (ex->minor != ~0 && ex->minor != minor) in match_exception() 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() 705 ex.minor = ~0; in devcgroup_update_access() 715 rc = kstrtou32(temp, 10, &ex.minor); in devcgroup_update_access() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/omapdrm/ |
A 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.3-rc2/drivers/usb/serial/ |
A 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()
|
/linux-6.3-rc2/include/trace/events/ |
A D | v4l2.h | 101 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 …]
|