/Linux-v5.10/fs/ |
D | char_dev.c | 14 #include <linux/major.h> 36 unsigned int major; member 44 static inline int major_to_index(unsigned major) in major_to_index() argument 46 return major % CHRDEV_MAJOR_HASH_SIZE; in major_to_index() 57 if (cd->major == offset) in chrdev_show() 58 seq_printf(f, "%3d %s\n", cd->major, cd->name); in chrdev_show() 78 if (cd->major == i) in find_dynamic_major() 89 * Register a single major with a specified minor range. 91 * If major == 0 this function will dynamically allocate an unused major. 92 * If major > 0 this function will attempt to reserve the range of minors [all …]
|
/Linux-v5.10/arch/sparc/kernel/ |
D | hvapi.c | 16 * PRE_API flag set are major 1 minor 0. 20 unsigned long major; 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 96 int sun4v_hvapi_register(unsigned long group, unsigned long major, in sun4v_hvapi_register() argument 109 if (p->major == major) { in sun4v_hvapi_register() 117 hv_ret = sun4v_set_version(group, major, *minor, in sun4v_hvapi_register() 122 p->major = major; in sun4v_hvapi_register() 128 if (major == 1) { in sun4v_hvapi_register() [all …]
|
D | viohs.c | 48 static int send_version(struct vio_driver_state *vio, u16 major, u16 minor) in send_version() argument 56 pkt.major = major; in send_version() 61 major, minor, vio->dev_class); in send_version() 75 vio->ver_table[0].major, in start_handshake() 240 u16 major) in find_by_major() argument 247 if (v->major <= major) { in find_by_major() 262 pkt->major, pkt->minor, pkt->dev_class); in process_ver_info() 270 vap = find_by_major(vio, pkt->major); in process_ver_info() 276 pkt->major = 0; in process_ver_info() 280 } else if (vap->major != pkt->major) { in process_ver_info() [all …]
|
/Linux-v5.10/include/linux/ |
D | kdev_t.h | 10 #define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS)) 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() 41 unsigned major = MAJOR(dev); in new_encode_dev() local 43 return (minor & 0xff) | (major << 8) | ((minor & ~0xff) << 12); in new_encode_dev() 48 unsigned major = (dev & 0xfff00) >> 8; 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 …]
|
/Linux-v5.10/arch/mips/kernel/ |
D | rtlx-cmp.c | 20 static int major; variable 64 major = register_chrdev(0, RTLX_MODULE_NAME, &rtlx_fops); in rtlx_module_init() 65 if (major < 0) { in rtlx_module_init() 67 return major; in rtlx_module_init() 77 dev = device_create(mt_class, NULL, MKDEV(major, i), NULL, in rtlx_module_init() 81 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_init() 105 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_init() 107 unregister_chrdev(major, RTLX_MODULE_NAME); in rtlx_module_init() 117 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_exit() 119 unregister_chrdev(major, RTLX_MODULE_NAME); in rtlx_module_exit()
|
D | rtlx-mt.c | 21 static int major; variable 85 major = register_chrdev(0, RTLX_MODULE_NAME, &rtlx_fops); in rtlx_module_init() 86 if (major < 0) { in rtlx_module_init() 88 return major; in rtlx_module_init() 98 dev = device_create(mt_class, NULL, MKDEV(major, i), NULL, in rtlx_module_init() 102 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_init() 130 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_init() 132 unregister_chrdev(major, RTLX_MODULE_NAME); in rtlx_module_init() 142 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_exit() 144 unregister_chrdev(major, RTLX_MODULE_NAME); in rtlx_module_exit()
|
D | vpe-cmp.c | 17 static int major; variable 107 major = register_chrdev(0, VPE_MODULE_NAME, &vpe_fops); in vpe_module_init() 108 if (major < 0) { in vpe_module_init() 110 return major; in vpe_module_init() 123 vpe_device.devt = MKDEV(major, VPE_MODULE_MINOR); in vpe_module_init() 163 unregister_chrdev(major, VPE_MODULE_NAME); in vpe_module_init() 174 unregister_chrdev(major, VPE_MODULE_NAME); in vpe_module_exit()
|
/Linux-v5.10/drivers/char/ |
D | scx200_gpio.c | 33 static int major = 0; /* default to dynamic major */ variable 34 module_param(major, int, 0); 35 MODULE_PARM_DESC(major, "Major device number"); 98 if (major) { in scx200_gpio_init() 99 devid = MKDEV(major, 0); in scx200_gpio_init() 103 major = MAJOR(devid); in scx200_gpio_init() 128 unregister_chrdev_region(MKDEV(major, 0), MAX_PINS); in scx200_gpio_cleanup()
|
D | pc8736x_gpio.c | 32 static int major; /* default to dynamic major */ variable 33 module_param(major, int, 0); 34 MODULE_PARM_DESC(major, "Major device number"); 306 if (major) { in pc8736x_gpio_init() 307 devid = MKDEV(major, 0); in pc8736x_gpio_init() 311 major = MAJOR(devid); in pc8736x_gpio_init() 318 if (!major) { in pc8736x_gpio_init() 319 major = rc; in pc8736x_gpio_init() 320 dev_dbg(&pdev->dev, "got dynamic major %d\n", major); in pc8736x_gpio_init() 346 unregister_chrdev_region(MKDEV(major,0), PC8736X_GPIO_CT); in pc8736x_gpio_cleanup()
|
D | tb0219.c | 22 static int major; /* default is dynamic major device number */ variable 23 module_param(major, int, 0); 24 MODULE_PARM_DESC(major, "Major device number"); 288 retval = register_chrdev(major, "TB0219", &tb0219_fops); in tb0219_probe() 301 if (major == 0) { in tb0219_probe() 302 major = retval; in tb0219_probe() 303 printk(KERN_INFO "TB0219: major number %d\n", major); in tb0219_probe()
|
/Linux-v5.10/drivers/staging/media/atomisp/pci/ |
D | css_trace.h | 26 /* one tracer item: major, minor and counter. The counter value can be used for GP data */ 28 u8 major; member 195 CMD_SET_ONE_MAJOR = 1, /* mask in one major. 2nd byte in the command is the major code */ 196 CMD_UNSET_ONE_MAJOR = 2, /* mask out one major. 2nd byte in the command is the major code */ 197 CMD_SET_ALL_MAJORS = 3, /* set the major print mask. the full mask is in the data DWORD */ 238 * the last 2 MSB bits of the major field will indicates the format 266 #define PACK_TRACEPOINT(tid, major, minor, value) \ argument 267 (FIELD_TID_PACK(tid) | FIELD_MAJOR_PACK(major) | FIELD_MINOR_PACK(minor) | FIELD_VALUE_PACK(value)) 269 #define PACK_QUICK_TRACEPOINT(major, minor) \ argument 270 (FIELD_FULL_MAJOR_PACK(major) | FIELD_MINOR_PACK(minor)) [all …]
|
/Linux-v5.10/security/ |
D | device_cgroup.c | 35 u32 major, minor; member 101 if (walk->major != ex->major) in dev_exception_add() 129 if (walk->major != ex->major) in dev_exception_rm() 291 set_majmin(maj, ex->major); in devcgroup_seq_show() 306 * @major: device file major number, ~0 to match all 316 u32 major, u32 minor, short access) in match_exception() argument 325 if (ex->major != ~0 && ex->major != major) in match_exception() 341 * @major: device file major number, ~0 to match all 353 u32 major, u32 minor, short access) in match_exception_partial() argument 367 if (ex->major != ~0 && major != ~0 && ex->major != major) in match_exception_partial() [all …]
|
/Linux-v5.10/fs/f2fs/ |
D | trace.c | 26 last_io.major, last_io.minor, in __print_last_io() 80 MAJOR(inode->i_sb->s_dev), MINOR(inode->i_sb->s_dev), in f2fs_trace_pid() 91 int major, minor; in f2fs_trace_ios() local 101 major = MAJOR(inode->i_sb->s_dev); in f2fs_trace_ios() 104 if (last_io.major == major && last_io.minor == minor && in f2fs_trace_ios() 117 last_io.major = major; in f2fs_trace_ios()
|
/Linux-v5.10/include/trace/events/ |
D | ext4.h | 134 MAJOR(__entry->dev), MINOR(__entry->dev), 164 MAJOR(__entry->dev), MINOR(__entry->dev), 187 MAJOR(__entry->dev), MINOR(__entry->dev), 211 MAJOR(__entry->dev), MINOR(__entry->dev), 234 MAJOR(__entry->dev), MINOR(__entry->dev), 256 MAJOR(__entry->dev), MINOR(__entry->dev), 276 MAJOR(__entry->dev), MINOR(__entry->dev), 298 MAJOR(__entry->dev), MINOR(__entry->dev), 320 MAJOR(__entry->dev), MINOR(__entry->dev), 349 MAJOR(__entry->dev), MINOR(__entry->dev), [all …]
|
D | jbd2.h | 31 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->result) 53 MAJOR(__entry->dev), MINOR(__entry->dev), 112 MAJOR(__entry->dev), MINOR(__entry->dev), 132 MAJOR(__entry->dev), MINOR(__entry->dev), 160 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid, 205 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid, 242 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid, 285 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid, 322 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid, 351 MAJOR(__entry->dev), MINOR(__entry->dev), [all …]
|
/Linux-v5.10/Documentation/admin-guide/cgroup-v1/ |
D | blkio-controller.rst | 35 for policy is "<major>:<minor> <bytes_per_second>":: 40 on device having major/minor number 8:16. 135 two fields specify the major and minor number of the device and 141 two fields specify the major and minor number of the device and 148 or async. First two fields specify the major and minor number of the 155 or async. First two fields specify the major and minor number of the 169 specify the major and minor number of the device, third field 184 read or write, sync or async. First two fields specify the major and 236 from service tree of the device. First two fields specify the major 252 echo "<major>:<minor> <rate_bytes_per_second>" > /cgrp/blkio.throttle.read_bps_device [all …]
|
/Linux-v5.10/drivers/cpufreq/ |
D | sti-cpufreq.c | 65 dev_err(dev, "No major number offset provided in %pOF [%d]\n", in sti_cpufreq_fetch_major() 72 dev_err(dev, "Failed to read major number from syscon [%d]\n", in sti_cpufreq_fetch_major() 158 int pcode, substrate, major, minor; in sti_cpufreq_set_opp_info() local 197 major = sti_cpufreq_fetch_major(); in sti_cpufreq_set_opp_info() 198 if (major < 0) { in sti_cpufreq_set_opp_info() 199 dev_err(dev, "Failed to obtain major version\n"); in sti_cpufreq_set_opp_info() 200 /* Use default major number */ in sti_cpufreq_set_opp_info() 201 major = DEFAULT_VERSION; in sti_cpufreq_set_opp_info() 219 version[0] = BIT(major); in sti_cpufreq_set_opp_info() 229 dev_dbg(dev, "pcode: %d major: %d minor: %d substrate: %d\n", in sti_cpufreq_set_opp_info() [all …]
|
/Linux-v5.10/Documentation/ABI/stable/ |
D | sysfs-hypervisor-xen | 34 is in the format: <class>-<major>.<minor>-<arch> 40 <major>: major guest interface version 103 The Xen version is in the format <major>.<minor><extra> 108 What: /sys/hypervisor/version/major 113 The Xen version is in the format <major>.<minor><extra> 114 This is the <major> part of it. 121 The Xen version is in the format <major>.<minor><extra>
|
/Linux-v5.10/fs/pstore/ |
D | blk.c | 79 * 7) <major>:<minor> major and minor number of the device separated by 382 MAJOR(binfo.devt) != info->major)) { in __register_pstore_blk() 383 pr_debug("invalid major %u (expect %u)\n", in __register_pstore_blk() 384 info->major, MAJOR(binfo.devt)); in __register_pstore_blk() 443 static void __unregister_pstore_blk(unsigned int major) in __unregister_pstore_blk() argument 449 if (psblk_bdev && MAJOR(psblk_bdev->bd_dev) == major) { in __unregister_pstore_blk() 460 * @major: the major device number of device 462 void unregister_pstore_blk(unsigned int major) in unregister_pstore_blk() argument 465 __unregister_pstore_blk(major); in unregister_pstore_blk() 502 __unregister_pstore_blk(MAJOR(psblk_bdev->bd_dev)); in pstore_blk_exit()
|
/Linux-v5.10/include/uapi/sound/sof/ |
D | abi.h | 11 * MAJOR.MINOR.PATCH version number. See https://semver.org/ 15 * 1) Increment MAJOR version if you make incompatible API changes. MINOR and 27 /* SOF ABI version major, minor and patch numbers */ 40 #define SOF_ABI_VER(major, minor, patch) \ argument 41 (((major) << SOF_ABI_MAJOR_SHIFT) | \
|
/Linux-v5.10/block/ |
D | genhd.c | 32 /* for extended dynamic devt allocation, currently only one major is used */ 394 int major; member 399 static inline int major_to_index(unsigned major) in major_to_index() argument 401 return major % BLKDEV_MAJOR_HASH_SIZE; in major_to_index() 411 if (dp->major == offset) in blkdev_show() 412 seq_printf(seqf, "%3d %s\n", dp->major, dp->name); in blkdev_show() 420 * @major: the requested major device number [1..BLKDEV_MAJOR_MAX-1]. If 421 * @major = 0, try to allocate any unused major number. 426 * The return value depends on the @major input parameter: 428 * - if a major device number was requested in range [1..BLKDEV_MAJOR_MAX-1] [all …]
|
/Linux-v5.10/fs/xfs/ |
D | xfs_trace.h | 76 MAJOR(__entry->dev), MINOR(__entry->dev), 123 MAJOR(__entry->dev), MINOR(__entry->dev), 156 MAJOR(__entry->dev), MINOR(__entry->dev), 205 MAJOR(__entry->dev), MINOR(__entry->dev), 256 MAJOR(__entry->dev), MINOR(__entry->dev), 308 MAJOR(__entry->dev), MINOR(__entry->dev), 376 MAJOR(__entry->dev), MINOR(__entry->dev), 421 MAJOR(__entry->dev), MINOR(__entry->dev), 464 MAJOR(__entry->dev), MINOR(__entry->dev), 522 MAJOR(__entry->dev), MINOR(__entry->dev), [all …]
|
/Linux-v5.10/sound/core/ |
D | sound.c | 20 static int major = CONFIG_SND_MAJOR; variable 29 module_param(major, int, 0444); 30 MODULE_PARM_DESC(major, "Major # for sound driver."); 274 device->devt = MKDEV(major, minor); in snd_register_device() 388 snd_major = major; in alsa_sound_init() 390 if (register_chrdev(major, "alsa", &snd_fops)) { in alsa_sound_init() 391 pr_err("ALSA core: unable to register native major device number %d\n", major); in alsa_sound_init() 395 unregister_chrdev(major, "alsa"); in alsa_sound_init() 407 unregister_chrdev(major, "alsa"); in alsa_sound_exit()
|
/Linux-v5.10/security/keys/encrypted-keys/ |
D | ecryptfs_format.c | 31 void ecryptfs_get_versions(int *major, int *minor, int *file_version) in ecryptfs_get_versions() argument 33 *major = ECRYPTFS_VERSION_MAJOR; in ecryptfs_get_versions() 51 int major, minor; in ecryptfs_fill_auth_tok() local 53 ecryptfs_get_versions(&major, &minor, NULL); in ecryptfs_fill_auth_tok() 54 auth_tok->version = (((uint16_t)(major << 8) & 0xFF00) in ecryptfs_fill_auth_tok()
|
/Linux-v5.10/Documentation/admin-guide/ |
D | devices.txt | 3 See block major 144, 145, 146 for expansion areas. 45 devices are on major 128 and above and use the PTY 113 devices are on major 136 and above. 143 Older versions of the Linux kernel used this major 145 is no longer supported. Use major numbers 2 and 3. 147 4 block Aliases for dynamically allocated major devices to be used 208 disks (see major number 3) except that the limit on 520 (see major number 3). 531 interface (see major number 3). 639 disks (see major number 3) except that the limit on [all …]
|