Home
last modified time | relevance | path

Searched refs:major (Results 1 – 25 of 1066) sorted by relevance

12345678910>>...43

/kernel/linux/linux-5.10/arch/sparc/kernel/
Dhvapi.c20 unsigned long major; member
81 p->major = p->minor = 0; in __put_ref()
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()
129 p->major = 1; in sun4v_hvapi_register()
161 unsigned long *major, in sun4v_hvapi_get() argument
172 *major = p->major; in sun4v_hvapi_get()
[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.c36 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()
97 __register_chrdev_region(unsigned int major, unsigned int baseminor, in __register_chrdev_region() argument
104 if (major >= CHRDEV_MAJOR_MAX) { in __register_chrdev_region()
106 name, major, CHRDEV_MAJOR_MAX-1); in __register_chrdev_region()
122 if (major == 0) { in __register_chrdev_region()
[all …]
/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()
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-5.10/Documentation/
Dconf.py22 major, minor, patch = sphinx.version_info[:3] variable
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-5.10/security/
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()
327 u32 major, u32 minor, short access) in match_exception() argument
336 if (ex->major != ~0 && ex->major != major) in match_exception()
364 u32 major, u32 minor, short access) in match_exception_partial() argument
378 if (ex->major != ~0 && major != ~0 && ex->major != major) in match_exception_partial()
428 refex->major, in verify_new_ex()
444 refex->major, refex->minor, in verify_new_ex()
[all …]
/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()
Dtb0219.c22 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()
/kernel/linux/linux-5.10/security/keys/encrypted-keys/
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/fs/f2fs/
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()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
Dcss_trace.h28 u8 major; member
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))
272 #define PACK_FORMATTED_TRACEPOINT(format, major, minor, value) \ argument
273 …(FIELD_TID_PACK(FIELD_TID_SEL_FORMAT_PAT) | FIELD_FORMAT_PACK(format) | FIELD_MAJOR_PACK(major) | …
275 #define PACK_TRACE_VALUE24(major, value) \ argument
276 (FIELD_TID_PACK(FIELD_TID_SEL_FORMAT_PAT) | FIELD_MAJOR_PACK(major) | FIELD_VALUE_24_PACK(value))
/kernel/linux/linux-5.10/drivers/platform/x86/
Dintel_scu_ipcutil.c23 static int major; variable
135 major = register_chrdev(0, "intel_mid_scu", &scu_ipc_fops); in ipc_module_init()
136 if (major < 0) in ipc_module_init()
137 return major; in ipc_module_init()
144 unregister_chrdev(major, "intel_mid_scu"); in ipc_module_exit()
/kernel/linux/linux-5.10/sound/core/
Dsound.c20 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()
/kernel/linux/linux-5.10/drivers/soc/fsl/qbman/
Dbman_ccsr.c89 static void bm_get_version(u16 *id, u8 *major, u8 *minor) in bm_get_version() argument
93 *major = (v >> 8) & 0xff; in bm_get_version()
215 u8 major, minor; in fsl_bman_probe() local
229 bm_get_version(&id, &major, &minor); in fsl_bman_probe()
230 if (major == 1 && minor == 0) { in fsl_bman_probe()
233 } else if (major == 2 && minor == 0) { in fsl_bman_probe()
236 } else if (major == 2 && minor == 1) { in fsl_bman_probe()
241 id, major, minor); in fsl_bman_probe()
/kernel/linux/linux-5.10/Documentation/admin-guide/aoe/
Dautoload.sh12 grep major-152 $f >/dev/null
14 echo alias block-major-152 aoe >> $f
15 echo alias char-major-152 aoe >> $f
/kernel/linux/linux-5.10/arch/sparc/include/asm/
Dvio.h49 u16 major; member
373 u16 major; member
445 u16 major, u16 minor) in vio_version_before() argument
447 u32 have = (u32)vio->ver.major << 16 | vio->ver.minor; in vio_version_before()
448 u32 want = (u32)major << 16 | minor; in vio_version_before()
454 u16 major, u16 minor) in vio_version_after() argument
456 u32 have = (u32)vio->ver.major << 16 | vio->ver.minor; in vio_version_after()
457 u32 want = (u32)major << 16 | minor; in vio_version_after()
463 u16 major, u16 minor) in vio_version_after_eq() argument
465 u32 have = (u32)vio->ver.major << 16 | vio->ver.minor; in vio_version_after_eq()
[all …]
/kernel/linux/linux-5.10/drivers/mfd/
Dqcom-spmi-pmic.c65 unsigned int rev2, minor, major, type, subtype; in pmic_spmi_show_revid() local
96 ret = regmap_read(map, PMIC_REV4, &major); in pmic_spmi_show_revid()
107 major < 0x02) in pmic_spmi_show_revid()
108 major++; in pmic_spmi_show_revid()
113 dev_dbg(dev, "%x: %s v%d.%d\n", subtype, name, major, minor); in pmic_spmi_show_revid()
/kernel/linux/linux-5.10/include/linux/
Dkdev_t.h41 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()
/kernel/linux/linux-5.10/Documentation/ABI/stable/
Dsysfs-hypervisor-xen34 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>
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
Dtest_hmm.sh45 major=$(awk "\$2==\"HMM_DMIRROR\" {print \$1}" /proc/devices)
46 mknod /dev/hmm_dmirror0 c $major 0
47 mknod /dev/hmm_dmirror1 c $major 1
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/arm/firmware/
Dtlm,trusted-foundations.txt10 - tlm,version-major: major version number of Trusted Foundations firmware
17 tlm,version-major = <2>;
/kernel/linux/linux-5.10/drivers/cpufreq/
Dsti-cpufreq.c158 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()
201 major = DEFAULT_VERSION; in sti_cpufreq_set_opp_info()
219 version[0] = BIT(major); in sti_cpufreq_set_opp_info()
230 pcode, major, minor, substrate); in sti_cpufreq_set_opp_info()

12345678910>>...43