/linux-4.19.296/drivers/char/ |
D | lp.c | 205 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 …]
|
D | misc.c | 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 (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 …]
|
D | tb0219.c | 165 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 …]
|
D | pc8736x_gpio.c | 152 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 …]
|
D | raw.c | 56 const int minor = iminor(inode); in raw_open() local 60 if (minor == 0) { /* It is the control device */ in raw_open() 70 bdev = raw_devices[minor].binding; in raw_open() 83 if (++raw_devices[minor].inuse == 1) in raw_open() 103 const int minor= iminor(inode); in raw_release() local 107 bdev = raw_devices[minor].binding; in raw_release() 108 if (--raw_devices[minor].inuse == 0) in raw_release() 127 static int bind_set(int number, u64 major, u64 minor) in bind_set() argument 129 dev_t dev = MKDEV(major, minor); in bind_set() 136 if (MAJOR(dev) != major || MINOR(dev) != minor) in bind_set()
|
D | ppdev.c | 122 unsigned int minor = iminor(file_inode(file)); in pp_read() local 131 pr_debug(CHRDEV "%x: claim the port first\n", minor); in pp_read() 200 unsigned int minor = iminor(file_inode(file)); in pp_write() local 210 pr_debug(CHRDEV "%x: claim the port first\n", minor); in pp_write() 287 static int register_device(int minor, struct pp_struct *pp) in register_device() argument 295 name = kasprintf(GFP_KERNEL, CHRDEV "%x", minor); in register_device() 299 port = parport_find_number(minor); in register_device() 358 unsigned int minor = iminor(file_inode(file)); in pp_do_ioctl() local 377 int err = register_device(minor, pp); in pp_do_ioctl() 480 port = parport_find_number(minor); in pp_do_ioctl() [all …]
|
/linux-4.19.296/include/linux/ |
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
|
D | device_cgroup.h | 15 extern int __devcgroup_check_permission(short type, u32 major, u32 minor, 18 static inline int __devcgroup_check_permission(short type, u32 major, u32 minor, in __devcgroup_check_permission() argument 24 static inline int devcgroup_check_permission(short type, u32 major, u32 minor, in devcgroup_check_permission() argument 27 int rc = BPF_CGROUP_RUN_PROG_DEVICE_CGROUP(type, major, minor, access); in devcgroup_check_permission() 32 return __devcgroup_check_permission(type, major, minor, access); in devcgroup_check_permission()
|
D | kdev_t.h | 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()
|
D | miscdevice.h | 67 int minor; member 95 #define MODULE_ALIAS_MISCDEV(minor) \ argument 97 "-" __stringify(minor))
|
D | hid-roccat.h | 24 void roccat_disconnect(int minor); 25 int roccat_report_event(int minor, u8 const *data);
|
/linux-4.19.296/drivers/hid/ |
D | hid-roccat.c | 43 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() 303 unsigned int minor; in roccat_connect() local [all …]
|
D | hidraw.c | 115 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() 272 unsigned int minor = iminor(inode); in hidraw_open() local 284 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_open() 289 dev = hidraw_table[minor]; in hidraw_open() 305 list->hidraw = hidraw_table[minor]; in hidraw_open() [all …]
|
D | hid-led.c | 414 struct hidled_rgb *rgb, unsigned int minor) in hidled_init_led() argument 420 config->short_name, minor, color_name, rgb->num); in hidled_init_led() 423 config->short_name, minor, color_name); in hidled_init_led() 433 static int hidled_init_rgb(struct hidled_rgb *rgb, unsigned int minor) in hidled_init_rgb() argument 438 ret = hidled_init_led(&rgb->red, "red", rgb, minor); in hidled_init_rgb() 443 ret = hidled_init_led(&rgb->green, "green", rgb, minor); in hidled_init_rgb() 448 return hidled_init_led(&rgb->blue, "blue", rgb, minor); in hidled_init_rgb() 454 unsigned int minor; in hidled_probe() local 494 minor = ((struct hidraw *) hdev->hidraw)->minor; in hidled_probe() 499 ret = hidled_init_rgb(&ldev->rgb[i], minor); in hidled_probe()
|
/linux-4.19.296/include/sound/ |
D | minors.h | 27 #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-4.19.296/include/drm/ |
D | drm_debugfs.h | 72 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
|
/linux-4.19.296/include/trace/events/ |
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 …]
|
/linux-4.19.296/drivers/media/ |
D | media-devnode.c | 63 clear_bit(devnode->minor, media_devnode_nums); in media_devnode_release() 223 int minor; in media_devnode_register() local 228 minor = find_next_zero_bit(media_devnode_nums, MEDIA_NUM_DEVICES, 0); in media_devnode_register() 229 if (minor == MEDIA_NUM_DEVICES) { in media_devnode_register() 236 set_bit(minor, media_devnode_nums); in media_devnode_register() 239 devnode->minor = minor; in media_devnode_register() 244 devnode->dev.devt = MKDEV(MAJOR(media_dev_t), devnode->minor); in media_devnode_register() 248 dev_set_name(&devnode->dev, "media%d", devnode->minor); in media_devnode_register() 269 clear_bit(devnode->minor, media_devnode_nums); in media_devnode_register()
|
/linux-4.19.296/fs/f2fs/ |
D | trace.c | 29 last_io.major, last_io.minor, in __print_last_io() 94 int major, minor; in f2fs_trace_ios() local 105 minor = MINOR(inode->i_sb->s_dev); in f2fs_trace_ios() 107 if (last_io.major == major && last_io.minor == minor && in f2fs_trace_ios() 121 last_io.minor = minor; in f2fs_trace_ios()
|
/linux-4.19.296/drivers/isdn/i4l/ |
D | isdn_common.c | 982 isdn_minor2drv(int minor) in isdn_minor2drv() argument 984 return (dev->drvmap[minor]); in isdn_minor2drv() 988 isdn_minor2chan(int minor) in isdn_minor2chan() argument 990 return (dev->chanmap[minor]); in isdn_minor2chan() 1062 uint minor = iminor(file_inode(file)); in isdn_read() local 1070 if (minor == ISDN_MINOR_STATUS) { in isdn_read() 1097 if (minor <= ISDN_MINOR_BMAX) { in isdn_read() 1098 printk(KERN_WARNING "isdn_read minor %d obsolete!\n", minor); in isdn_read() 1099 drvidx = isdn_minor2drv(minor); in isdn_read() 1108 chidx = isdn_minor2chan(minor); in isdn_read() [all …]
|
/linux-4.19.296/drivers/s390/char/ |
D | fs3270.c | 434 int minor, rc = 0; in fs3270_open() local 438 minor = iminor(file_inode(filp)); in fs3270_open() 440 if (minor == 0) { in fs3270_open() 446 minor = tty->index; in fs3270_open() 451 fp = (struct fs3270 *) raw3270_find_view(&fs3270_fn, minor); in fs3270_open() 466 rc = raw3270_add_view(&fp->view, &fs3270_fn, minor, in fs3270_open() 528 static void fs3270_create_cb(int minor) in fs3270_create_cb() argument 530 __register_chrdev(IBM_FS3270_MAJOR, minor, 1, "tub", &fs3270_fops); in fs3270_create_cb() 531 device_create(class3270, NULL, MKDEV(IBM_FS3270_MAJOR, minor), in fs3270_create_cb() 532 NULL, "3270/tub%d", minor); in fs3270_create_cb() [all …]
|
D | raw3270.c | 38 int minor; member 697 int minor; in raw3270_setup_device() local 728 minor = RAW3270_FIRSTMINOR; in raw3270_setup_device() 729 rp->minor = -1; in raw3270_setup_device() 732 if (tmp->minor > minor) { in raw3270_setup_device() 733 rp->minor = minor; in raw3270_setup_device() 737 minor++; in raw3270_setup_device() 739 if (rp->minor == -1 && minor < RAW3270_MAXDEVS + RAW3270_FIRSTMINOR) { in raw3270_setup_device() 740 rp->minor = minor; in raw3270_setup_device() 745 if (rp->minor == -1) in raw3270_setup_device() [all …]
|
/linux-4.19.296/drivers/cpufreq/ |
D | sti-cpufreq.c | 161 int pcode, substrate, major, minor; in sti_cpufreq_set_opp_info() local 207 minor = sti_cpufreq_fetch_minor(); in sti_cpufreq_set_opp_info() 208 if (minor < 0) { in sti_cpufreq_set_opp_info() 211 minor = DEFAULT_VERSION; in sti_cpufreq_set_opp_info() 223 version[1] = BIT(minor); in sti_cpufreq_set_opp_info() 233 pcode, major, minor, substrate); in sti_cpufreq_set_opp_info()
|
/linux-4.19.296/drivers/media/dvb-core/ |
D | dvbdev.c | 397 int type, int minor, in dvb_register_media_device() argument 434 DVB_MAJOR, minor); in dvb_register_media_device() 467 int minor; in dvb_register_device() local 510 for (minor = 0; minor < MAX_DVB_MINORS; minor++) in dvb_register_device() 511 if (dvb_minors[minor] == NULL) in dvb_register_device() 514 if (minor == MAX_DVB_MINORS) { in dvb_register_device() 522 minor = nums2minor(adap->num, type, id); in dvb_register_device() 525 dvbdev->minor = minor; in dvb_register_device() 526 dvb_minors[minor] = dvb_device_get(dvbdev); in dvb_register_device() 529 ret = dvb_register_media_device(dvbdev, type, minor, demux_sink_pads); in dvb_register_device() [all …]
|
/linux-4.19.296/drivers/misc/ |
D | phantom.c | 342 unsigned int minor; in phantom_probe() local 351 minor = phantom_get_free(); in phantom_probe() 352 if (minor == PHANTOM_MAX_MINORS) { in phantom_probe() 358 phantom_devices[minor] = 1; in phantom_probe() 404 retval = cdev_add(&pht->cdev, MKDEV(phantom_major, minor), 1); in phantom_probe() 411 MKDEV(phantom_major, minor), NULL, in phantom_probe() 412 "phantom%u", minor))) in phantom_probe() 431 phantom_devices[minor] = 0; in phantom_probe() 441 unsigned int minor = MINOR(pht->cdev.dev); in phantom_remove() local 443 device_destroy(phantom_class, MKDEV(phantom_major, minor)); in phantom_remove() [all …]
|