Home
last modified time | relevance | path

Searched full:major (Results 1 – 25 of 3207) sorted by relevance

12345678910>>...129

/kernel/linux/linux-5.10/arch/sparc/kernel/
Dhvapi.c16 * 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 …]
Dviohs.c48 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 …]
/kernel/linux/linux-4.19/arch/sparc/kernel/
Dhvapi.c16 * 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 …]
Dviohs.c48 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 …]
/kernel/linux/linux-5.10/fs/
Dchar_dev.c14 #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 …]
/kernel/linux/linux-4.19/fs/
Dchar_dev.c14 #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 functions will dynamically allocate a major and return
94 * If major > 0 this function will attempt to reserve the passed range of
[all …]
/kernel/linux/linux-4.19/include/linux/
Dkdev_t.h10 #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 …]
Ddevice_cgroup.h15 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()
70 return devcgroup_check_permission(type, MAJOR(dev), MINOR(dev), in devcgroup_inode_mknod()
/kernel/linux/linux-5.10/include/linux/
Dkdev_t.h10 #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 …]
/kernel/linux/linux-4.19/arch/mips/kernel/
Drtlx-cmp.c20 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()
Drtlx-mt.c21 static int major; variable
90 major = register_chrdev(0, RTLX_MODULE_NAME, &rtlx_fops); in rtlx_module_init()
91 if (major < 0) { in rtlx_module_init()
93 return major; in rtlx_module_init()
103 dev = device_create(mt_class, NULL, MKDEV(major, i), NULL, in rtlx_module_init()
107 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_init()
136 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_init()
138 unregister_chrdev(major, RTLX_MODULE_NAME); in rtlx_module_init()
148 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_exit()
150 unregister_chrdev(major, RTLX_MODULE_NAME); in rtlx_module_exit()
/kernel/linux/linux-4.19/drivers/char/
Dscx200_gpio.c32 static int major = 0; /* default to dynamic major */ variable
33 module_param(major, int, 0);
34 MODULE_PARM_DESC(major, "Major device number");
97 if (major) { in scx200_gpio_init()
98 devid = MKDEV(major, 0); in scx200_gpio_init()
102 major = MAJOR(devid); in scx200_gpio_init()
127 unregister_chrdev_region(MKDEV(major, 0), MAX_PINS); in scx200_gpio_cleanup()
/kernel/linux/linux-5.10/drivers/char/
Dscx200_gpio.c33 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()
Dpc8736x_gpio.c32 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()
/kernel/linux/linux-5.10/arch/mips/kernel/
Drtlx-cmp.c20 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()
Drtlx-mt.c21 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()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
Dcss_trace.h26 /* 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 …]
/kernel/linux/linux-5.10/security/
Ddevice_cgroup.c35 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 …]
/kernel/linux/linux-4.19/security/
Ddevice_cgroup.c33 u32 major, minor; member
99 if (walk->major != ex->major) in dev_exception_add()
127 if (walk->major != ex->major) in dev_exception_rm()
289 set_majmin(maj, ex->major); in devcgroup_seq_show()
304 * @major: device file major number, ~0 to match all
314 u32 major, u32 minor, short access) in match_exception() argument
323 if (ex->major != ~0 && ex->major != major) in match_exception()
339 * @major: device file major number, ~0 to match all
351 u32 major, u32 minor, short access) in match_exception_partial() argument
364 if (ex->major != ~0 && major != ~0 && ex->major != major) in match_exception_partial()
[all …]
/kernel/linux/linux-5.10/fs/f2fs/
Dtrace.c26 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()
/kernel/linux/linux-4.19/fs/f2fs/
Dtrace.c29 last_io.major, last_io.minor, in __print_last_io()
83 MAJOR(inode->i_sb->s_dev), MINOR(inode->i_sb->s_dev), in f2fs_trace_pid()
94 int major, minor; in f2fs_trace_ios() local
104 major = MAJOR(inode->i_sb->s_dev); in f2fs_trace_ios()
107 if (last_io.major == major && last_io.minor == minor && in f2fs_trace_ios()
120 last_io.major = major; in f2fs_trace_ios()
/kernel/linux/linux-5.10/include/trace/events/
Dext4.h134 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 …]
/kernel/linux/linux-5.10/drivers/base/
Dmap.c36 unsigned n = MAJOR(dev + range - 1) - MAJOR(dev) + 1; in kobj_map()
37 unsigned index = MAJOR(dev); in kobj_map()
70 unsigned n = MAJOR(dev + range - 1) - MAJOR(dev) + 1; in kobj_unmap()
71 unsigned index = MAJOR(dev); in kobj_unmap()
98 unsigned n = MAJOR(dev + range - 1) - MAJOR(dev) + 1; in kobj_delete()
99 unsigned index = MAJOR(dev); in kobj_delete()
131 for (p = domain->probes[MAJOR(dev) % 255]; p; p = p->next) { in kobj_lookup()
/kernel/linux/linux-4.19/include/trace/events/
Dext4.h102 MAJOR(__entry->dev), MINOR(__entry->dev),
132 MAJOR(__entry->dev), MINOR(__entry->dev),
155 MAJOR(__entry->dev), MINOR(__entry->dev),
179 MAJOR(__entry->dev), MINOR(__entry->dev),
202 MAJOR(__entry->dev), MINOR(__entry->dev),
224 MAJOR(__entry->dev), MINOR(__entry->dev),
244 MAJOR(__entry->dev), MINOR(__entry->dev),
266 MAJOR(__entry->dev), MINOR(__entry->dev),
288 MAJOR(__entry->dev), MINOR(__entry->dev),
317 MAJOR(__entry->dev), MINOR(__entry->dev),
[all …]
/kernel/liteos_m/arch/risc-v/nuclei/gcc/nmsis/Core/Include/
Dnmsis_version.h28 * The version format is **MAJOR.MINOR.PATCH**, increment the:
29 * 1. MAJOR version when you make incompatible API changes,
53 * \brief Represent the NMSIS major version
55 * The NMSIS major version can be used to
56 * differentiate between NMSIS major releases.
79 * NMSIS Version format: **MAJOR.MINOR.PATCH**
80 * * MAJOR: \ref __NMSIS_VERSION_MAJOR, stored in `bits [31:16]` of \ref __NMSIS_VERSION

12345678910>>...129