/linux/include/linux/ |
H A 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() 65 return MAJOR(dev) < (1<<14) && MINOR(dev) < (1<<18); in sysv_valid_dev() 70 return MINOR(dev) | (MAJOR(dev) << 18); in sysv_encode_dev()
|
/linux/include/trace/events/ |
H A D | ext4.h | 160 MAJOR(__entry->dev), MINOR(__entry->dev), 190 MAJOR(__entry->dev), MINOR(__entry->dev), 213 MAJOR(__entry->dev), MINOR(__entry->dev), 237 MAJOR(__entry->dev), MINOR(__entry->dev), 260 MAJOR(__entry->dev), MINOR(__entry->dev), 282 MAJOR(__entry->dev), MINOR(__entry->dev), 302 MAJOR(__entry->dev), MINOR(__entry->dev), 324 MAJOR(__entry->dev), MINOR(__entry->dev), 346 MAJOR(__entry->dev), MINOR(__entry->dev), 372 MAJOR(__entry->dev), MINOR(__entry->dev), [all …]
|
H A 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 …]
|
H A D | block.h | 43 MAJOR(__entry->dev), MINOR(__entry->dev), 109 MAJOR(__entry->dev), MINOR(__entry->dev), 146 MAJOR(__entry->dev), MINOR(__entry->dev), 220 MAJOR(__entry->dev), MINOR(__entry->dev), 330 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs, 358 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs, 515 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs, 555 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs, 558 MAJOR(__entry->old_dev), MINOR(__entry->old_dev), 599 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs, [all …]
|
H A D | filemap.h | 42 MAJOR(__entry->s_dev), MINOR(__entry->s_dev), 89 MAJOR(__entry->s_dev), 137 MAJOR(__entry->s_dev), 164 MAJOR(__entry->s_dev), MINOR(__entry->s_dev), 195 __entry->file, MAJOR(__entry->s_dev),
|
H A D | fs_dax.h | 40 MAJOR(__entry->dev), 86 MAJOR(__entry->dev), 131 MAJOR(__entry->dev), 175 MAJOR(__entry->dev), 217 MAJOR(__entry->dev), 243 MAJOR(__entry->dev), 275 MAJOR(__entry->dev),
|
H A D | kyber.h | 43 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->domain, 67 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->domain, 87 TP_printk("%d,%d %s", MAJOR(__entry->dev), MINOR(__entry->dev),
|
H A D | bcache.h | 35 MAJOR(__entry->dev), MINOR(__entry->dev), 109 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs, 146 MAJOR(__entry->dev), MINOR(__entry->dev), 245 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs, 445 __entry->sectors, MAJOR(__entry->dev), 463 TP_printk("allocated %d,%d sector=%llu", MAJOR(__entry->dev), 486 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->free,
|
H A D | filelock.h | 58 MAJOR(__entry->s_dev), MINOR(__entry->s_dev), 96 __entry->fl, MAJOR(__entry->s_dev), MINOR(__entry->s_dev), 149 __entry->fl, MAJOR(__entry->s_dev), MINOR(__entry->s_dev), 199 MAJOR(__entry->s_dev), MINOR(__entry->s_dev),
|
/linux/drivers/base/ |
H A D | map.c | 36 unsigned int n = MAJOR(dev + range - 1) - MAJOR(dev) + 1; in kobj_map() 37 unsigned int index = MAJOR(dev); in kobj_map() 70 unsigned int n = MAJOR(dev + range - 1) - MAJOR(dev) + 1; in kobj_unmap() 71 unsigned int index = MAJOR(dev); in kobj_unmap() 103 for (p = domain->probes[MAJOR(dev) % 255]; p; p = p->next) { in kobj_lookup()
|
/linux/fs/xfs/scrub/ |
H A D | trace.h | 162 MAJOR(__entry->dev), MINOR(__entry->dev), 199 MAJOR(__entry->dev), MINOR(__entry->dev), 236 MAJOR(__entry->dev), MINOR(__entry->dev), 271 MAJOR(__entry->dev), MINOR(__entry->dev), 308 MAJOR(__entry->dev), MINOR(__entry->dev), 339 MAJOR(__entry->dev), MINOR(__entry->dev), 366 MAJOR(__entry->dev), MINOR(__entry->dev), 399 MAJOR(__entry->dev), MINOR(__entry->dev), 436 MAJOR(__entry->dev), MINOR(__entry->dev), 481 MAJOR(__entry->dev), MINOR(__entry->dev), [all …]
|
/linux/fs/nfs/ |
H A D | nfstrace.h | 71 MAJOR(__entry->dev), MINOR(__entry->dev), 116 MAJOR(__entry->dev), MINOR(__entry->dev), 209 MAJOR(__entry->dev), MINOR(__entry->dev), 254 MAJOR(__entry->dev), MINOR(__entry->dev), 306 MAJOR(__entry->dev), MINOR(__entry->dev), 368 MAJOR(__entry->dev), MINOR(__entry->dev), 419 MAJOR(__entry->dev), MINOR(__entry->dev), 468 MAJOR(__entry->dev), MINOR(__entry->dev), 523 MAJOR(__entry->dev), MINOR(__entry->dev), 564 MAJOR(__entry->dev), MINOR(__entry->dev), [all …]
|
H A D | nfs4trace.h | 594 MAJOR(__entry->dev), MINOR(__entry->dev), 597 MAJOR(__entry->dev), MINOR(__entry->dev), 649 MAJOR(__entry->dev), MINOR(__entry->dev), 697 MAJOR(__entry->dev), MINOR(__entry->dev), 754 MAJOR(__entry->dev), MINOR(__entry->dev), 830 MAJOR(__entry->dev), MINOR(__entry->dev), 912 MAJOR(__entry->dev), MINOR(__entry->dev), 945 MAJOR(__entry->dev), MINOR(__entry->dev), 992 MAJOR(__entry->dev), MINOR(__entry->dev), 1035 MAJOR(__entry->dev), MINOR(__entry->dev), [all …]
|
/linux/fs/xfs/ |
H A D | xfs_trace.h | 133 MAJOR(__entry->dev), MINOR(__entry->dev), 178 MAJOR(__entry->dev), MINOR(__entry->dev), 201 MAJOR(__entry->dev), MINOR(__entry->dev), 234 MAJOR(__entry->dev), MINOR(__entry->dev), 258 MAJOR(__entry->dev), MINOR(__entry->dev), 296 MAJOR(__entry->dev), MINOR(__entry->dev), 313 MAJOR(__entry->dev), MINOR(__entry->dev), 362 MAJOR(__entry->dev), MINOR(__entry->dev), 413 MAJOR(__entry->dev), MINOR(__entry->dev), 464 MAJOR(__entry->dev), MINOR(__entry->dev), [all …]
|
/linux/fs/proc/ |
H A D | proc_tty.c | 32 seq_printf(m, "%3d %d-%d ", MAJOR(from), MINOR(from), in show_tty_range() 35 seq_printf(m, "%3d %7d ", MAJOR(from), MINOR(from)); in show_tty_range() 93 while (MAJOR(from) < MAJOR(to)) { in show_tty_driver() 94 dev_t next = MKDEV(MAJOR(from)+1, 0); in show_tty_driver()
|
/linux/fs/iomap/ |
H A D | trace.h | 41 MAJOR(__entry->dev), MINOR(__entry->dev), 71 MAJOR(__entry->dev), MINOR(__entry->dev), 141 MAJOR(__entry->dev), MINOR(__entry->dev), 143 MAJOR(__entry->bdev), MINOR(__entry->bdev), 188 MAJOR(__entry->dev), MINOR(__entry->dev), 190 MAJOR(__entry->bdev), MINOR(__entry->bdev), 225 MAJOR(__entry->dev), MINOR(__entry->dev), 263 MAJOR(__entry->dev), MINOR(__entry->dev), 298 MAJOR(__entry->dev), MINOR(__entry->dev),
|
/linux/fs/gfs2/ |
H A D | trace_gfs2.h | 119 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->gltype, 152 MAJOR(__entry->dev), MINOR(__entry->dev), 188 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->gltype, 219 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->gltype, 248 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->gltype, 296 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->gltype, 342 MAJOR(__entry->dev), MINOR(__entry->dev), 371 MAJOR(__entry->dev), MINOR(__entry->dev), 396 TP_printk("%u,%u log reserve %d %d", MAJOR(__entry->dev), 421 TP_printk("%u,%u ail flush %s %s %ld", MAJOR(__entry->dev), [all …]
|
/linux/fs/ |
H A D | char_dev.c | 207 next = MKDEV(MAJOR(n)+1, 0); in register_chrdev_region() 210 cd = __register_chrdev_region(MAJOR(n), MINOR(n), in register_chrdev_region() 219 next = MKDEV(MAJOR(n)+1, 0); in register_chrdev_region() 220 kfree(__unregister_chrdev_region(MAJOR(n), MINOR(n), next - n)); in register_chrdev_region() 317 next = MKDEV(MAJOR(n)+1, 0); in unregister_chrdev_region() 320 kfree(__unregister_chrdev_region(MAJOR(n), MINOR(n), next - n)); in unregister_chrdev_region() 668 if (request_module("char-major-%d-%d", MAJOR(dev), MINOR(dev)) > 0) in base_probe() 670 request_module("char-major-%d", MAJOR(dev)); in base_probe()
|
/linux/include/sound/sof/ |
H A D | ext_manifest.h | 28 #define SOF_EXT_MAN_BUILD_VERSION(MAJOR, MINOR, PATH) ((uint32_t)( \ argument 29 ((MAJOR) << 24) | \
|
H A D | info.h | 40 #define SOF_FW_VER(MAJOR, MINOR, PATCH) ((uint32_t)( \ argument 41 ((MAJOR) << 24) | ((MINOR) << 12) | (PATCH)))
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_task_vmas.c | 17 #define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS)) macro 55 BPF_SEQ_PRINTF(seq, "%02x:%02x %u", MAJOR(dev), MINOR(dev), in proc_maps()
|
/linux/fs/bcachefs/ |
H A D | trace.h | 48 TP_printk("%d,%d\n%s", MAJOR(__entry->dev), MINOR(__entry->dev), __get_str(str)) 70 MAJOR(__entry->dev), MINOR(__entry->dev), 91 MAJOR(__entry->dev), MINOR(__entry->dev), 114 MAJOR(__entry->dev), MINOR(__entry->dev), 141 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->trans_fn, 159 TP_printk("%d,%d", MAJOR(__entry->dev), MINOR(__entry->dev)) 176 TP_printk("%d,%d %s", MAJOR(__entry->dev), MINOR(__entry->dev), __entry->trans_fn) 198 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs, 220 MAJOR(__entry->dev), MINOR(__entry->dev), 247 MAJOR(__entry->dev), MINOR(__entry->dev), [all …]
|
/linux/fs/ext2/ |
H A D | trace.h | 35 MAJOR(__entry->dev), MINOR(__entry->dev), 79 MAJOR(__entry->dev), MINOR(__entry->dev),
|
/linux/arch/powerpc/platforms/book3s/ |
H A D | vas-api.c | 581 MAJOR(coproc_device.devt), MINOR(coproc_device.devt)); in vas_register_coproc_api() 596 devno = MKDEV(MAJOR(coproc_device.devt), 0); in vas_register_coproc_api() 611 pr_devel("Added dev [%d,%d]\n", MAJOR(devno), MINOR(devno)); in vas_register_coproc_api() 629 devno = MKDEV(MAJOR(coproc_device.devt), 0); in vas_unregister_coproc_api()
|
/linux/include/uapi/linux/ |
H A D | kdev_t.h | 10 #define MAJOR(dev) ((dev)>>8) macro
|