Home
last modified time | relevance | path

Searched refs:major (Results 1 - 25 of 1852) sorted by relevance

12345678910>>...75

/kernel/linux/linux-5.10/arch/sparc/kernel/
H A 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 in sun4v_hvapi_register()
160 sun4v_hvapi_get(unsigned long group, unsigned long *major, unsigned long *minor) sun4v_hvapi_get() argument
184 unsigned long group, major, minor; sun4v_hvapi_init() local
[all...]
H A 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()
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()
239 find_by_major(struct vio_driver_state *vio, u16 major) find_by_major() argument
[all...]
/kernel/linux/linux-6.6/arch/sparc/kernel/
H A 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 in sun4v_hvapi_register()
160 sun4v_hvapi_get(unsigned long group, unsigned long *major, unsigned long *minor) sun4v_hvapi_get() argument
184 unsigned long group, major, minor; sun4v_hvapi_init() local
[all...]
H A 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()
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()
239 find_by_major(struct vio_driver_state *vio, u16 major) find_by_major() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/can/usb/etas_es58x/
H A Des58x_devlink.c46 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()
69 version->major = major; 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()
113 es58x_dev->hardware_revision.major = major; in es58x_parse_hw_rev()
135 .major = -1, in es58x_parse_product_info()
141 .major in es58x_parse_product_info()
[all...]
/kernel/linux/linux-5.10/fs/
H A 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
97 __register_chrdev_region(unsigned int major, unsigned int baseminor, int minorct, const char *name) __register_chrdev_region() argument
172 __unregister_chrdev_region(unsigned major, unsigned baseminor, int minorct) __unregister_chrdev_region() argument
268 __register_chrdev(unsigned int major, unsigned int baseminor, unsigned int count, const char *name, const struct file_operations *fops) __register_chrdev() argument
335 __unregister_chrdev(unsigned int major, unsigned int baseminor, unsigned int count, const char *name) __unregister_chrdev() argument
[all...]
/kernel/linux/linux-6.6/fs/
H A 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
97 __register_chrdev_region(unsigned int major, unsigned int baseminor, int minorct, const char *name) __register_chrdev_region() argument
172 __unregister_chrdev_region(unsigned major, unsigned baseminor, int minorct) __unregister_chrdev_region() argument
268 __register_chrdev(unsigned int major, unsigned int baseminor, unsigned int count, const char *name, const struct file_operations *fops) __register_chrdev() argument
335 __unregister_chrdev(unsigned int major, unsigned int baseminor, unsigned int count, const char *name) __unregister_chrdev() argument
[all...]
/kernel/linux/linux-5.10/security/
H A Ddevice_cgroup.c35 u32 major, minor; member
112 if (walk->major != ex->major) in dev_exception_add()
140 if (walk->major != ex->major) in dev_exception_rm()
302 set_majmin(maj, ex->major); in devcgroup_seq_show()
317 * @major: device file major number, ~0 to match all
327 u32 major, u32 minor, short access) in match_exception()
336 if (ex->major ! in match_exception()
326 match_exception(struct list_head *exceptions, short type, u32 major, u32 minor, short access) match_exception() argument
363 match_exception_partial(struct list_head *exceptions, short type, u32 major, u32 minor, short access) match_exception_partial() argument
832 devcgroup_legacy_check_permission(short type, u32 major, u32 minor, short access) devcgroup_legacy_check_permission() argument
860 devcgroup_check_permission(short type, u32 major, u32 minor, short access) devcgroup_check_permission() argument
[all...]
/kernel/linux/linux-6.6/security/
H A Ddevice_cgroup.c36 u32 major, minor; member
113 if (walk->major != ex->major) in dev_exception_add()
141 if (walk->major != ex->major) in dev_exception_rm()
303 set_majmin(maj, ex->major); in devcgroup_seq_show()
318 * @major: device file major number, ~0 to match all
328 u32 major, u32 minor, short access) in match_exception()
337 if (ex->major ! in match_exception()
327 match_exception(struct list_head *exceptions, short type, u32 major, u32 minor, short access) match_exception() argument
364 match_exception_partial(struct list_head *exceptions, short type, u32 major, u32 minor, short access) match_exception_partial() argument
832 devcgroup_legacy_check_permission(short type, u32 major, u32 minor, short access) devcgroup_legacy_check_permission() argument
860 devcgroup_check_permission(short type, u32 major, u32 minor, short access) devcgroup_check_permission() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/uc/
H A Dintel_uc_fw.c72 * Originally, the driver required an exact match major/minor/patch furmware
78 * For GuC, the major version number signifies a backwards breaking API change.
79 * So, new format GuC firmware files are labelled by their major version only.
190 u8 major; in INTEL_GUC_FIRMWARE_DEFS() local
197 .major = major_, \
314 uc_fw->file_wanted.ver.major = blob->major; in __uc_fw_auto_select()
360 fw_blobs[j].blob.major, fw_blobs[j].blob.minor, in validate_fw_table_type()
363 fw_blobs[i].blob.major, fw_blobs[i].blob.minor, in validate_fw_table_type()
381 /* Next major versio in validate_fw_table_type()
[all...]
/kernel/linux/linux-5.10/arch/mips/kernel/
H A 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_NAM in rtlx_module_exit()
[all...]
H A 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_NAM in rtlx_module_exit()
[all...]
H A Dvpe-cmp.c17 static int major; variable
106 major = register_chrdev(0, VPE_MODULE_NAME, &vpe_fops); in vpe_module_init()
107 if (major < 0) { in vpe_module_init()
109 return major; in vpe_module_init()
122 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()
/kernel/linux/linux-6.6/arch/mips/kernel/
H A 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_NAM in rtlx_module_exit()
[all...]
/kernel/linux/linux-5.10/Documentation/
H A Dconf.py22 major, minor, patch = sphinx.version_info[:3]
49 if major >= 3:
54 if (major > 3) or (minor > 0 or patch >= 2):
121 if (major == 1 and minor > 3) or (major > 1):
375 if major == 1 and minor > 3:
378 if major == 1 and minor <= 4:
380 elif major == 1 and (minor > 5 or (minor == 5 and patch >= 3)):
385 if major == 1 and minor < 6:
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dlibbpf_common.h21 /* Mark a symbol as deprecated when libbpf version is >= {major}.{minor} */
22 #define LIBBPF_DEPRECATED_SINCE(major, minor, msg) \
23 __LIBBPF_MARK_DEPRECATED_ ## major ## _ ## minor \
24 (LIBBPF_DEPRECATED("libbpf v" # major "." # minor "+: " msg))
26 #define __LIBBPF_CURRENT_VERSION_GEQ(major, minor) \
27 (LIBBPF_MAJOR_VERSION > (major) || \
28 (LIBBPF_MAJOR_VERSION == (major) && LIBBPF_MINOR_VERSION >= (minor)))
/kernel/linux/linux-6.6/Documentation/
H A Dconf.py32 major, minor, patch = sphinx.version_info[:3]
38 if (major < 2) or (major == 2 and minor < 4):
60 if major >= 3:
61 if (major > 3) or (minor > 0 or patch >= 2):
150 load_imgmath = (load_imgmath or (major == 1 and minor < 8)
322 if major <= 1 and minor < 8:
406 if major == 1:
/kernel/linux/linux-6.6/drivers/char/xillybus/
H A Dxillybus_class.c38 int major; member
85 dev_warn(dev, "Failed to obtain major/minors"); in xillybus_init_chrdev()
89 unit->major = MAJOR(mdev); in xillybus_init_chrdev()
102 rc = cdev_add(unit->cdev, MKDEV(unit->major, unit->lowest_minor), in xillybus_init_chrdev()
128 MKDEV(unit->major, in xillybus_init_chrdev()
157 device_destroy(&xillybus_class, MKDEV(unit->major, in xillybus_init_chrdev()
163 unregister_chrdev_region(MKDEV(unit->major, unit->lowest_minor), in xillybus_init_chrdev()
198 device_destroy(&xillybus_class, MKDEV(unit->major, minor)); in xillybus_cleanup_chrdev()
202 unregister_chrdev_region(MKDEV(unit->major, unit->lowest_minor), in xillybus_cleanup_chrdev()
219 int major in xillybus_find_inode() local
[all...]
/kernel/linux/linux-5.10/drivers/char/
H A 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()
/kernel/linux/linux-6.6/drivers/char/
H A 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()
/kernel/linux/linux-5.10/security/keys/encrypted-keys/
H A Decryptfs_format.c31 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()
/kernel/linux/linux-6.6/security/keys/encrypted-keys/
H A Decryptfs_format.c31 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()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
H A 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) \
267 (FIELD_TID_PACK(tid) | FIELD_MAJOR_PACK(major) | FIELD_MINOR_PAC
[all...]
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/
H A 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) \
267 (FIELD_TID_PACK(tid) | FIELD_MAJOR_PACK(major) | FIELD_MINOR_PAC
[all...]
/kernel/linux/linux-5.10/fs/f2fs/
H A Dtrace.c26 last_io.major, last_io.minor, in __print_last_io()
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()

Completed in 12 milliseconds

12345678910>>...75