/Linux-v4.19/arch/sparc/kernel/ |
D | hvapi.c | 20 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 …]
|
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-v4.19/fs/ |
D | char_dev.c | 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() 100 __register_chrdev_region(unsigned int major, unsigned int baseminor, in __register_chrdev_region() argument 113 if (major == 0) { in __register_chrdev_region() 120 major = ret; in __register_chrdev_region() 123 if (major >= CHRDEV_MAJOR_MAX) { in __register_chrdev_region() [all …]
|
/Linux-v4.19/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 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()
|
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-v4.19/security/ |
D | device_cgroup.c | 33 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() 314 u32 major, u32 minor, short access) in match_exception() argument 323 if (ex->major != ~0 && ex->major != major) in match_exception() 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() 414 refex->major, in verify_new_ex() 430 refex->major, refex->minor, in verify_new_ex() [all …]
|
/Linux-v4.19/drivers/char/ |
D | scx200_gpio.c | 32 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()
|
D | pc8736x_gpio.c | 31 static int major; /* default to dynamic major */ variable 32 module_param(major, int, 0); 33 MODULE_PARM_DESC(major, "Major device number"); 305 if (major) { in pc8736x_gpio_init() 306 devid = MKDEV(major, 0); in pc8736x_gpio_init() 310 major = MAJOR(devid); in pc8736x_gpio_init() 317 if (!major) { in pc8736x_gpio_init() 318 major = rc; in pc8736x_gpio_init() 319 dev_dbg(&pdev->dev, "got dynamic major %d\n", major); in pc8736x_gpio_init() 345 unregister_chrdev_region(MKDEV(major,0), PC8736X_GPIO_CT); in pc8736x_gpio_cleanup()
|
D | tb0219.c | 35 static int major; /* default is dynamic major device number */ variable 36 module_param(major, int, 0); 37 MODULE_PARM_DESC(major, "Major device number"); 301 retval = register_chrdev(major, "TB0219", &tb0219_fops); in tb0219_probe() 314 if (major == 0) { in tb0219_probe() 315 major = retval; in tb0219_probe() 316 printk(KERN_INFO "TB0219: major number %d\n", major); in tb0219_probe()
|
/Linux-v4.19/Documentation/ |
D | conf.py | 20 major, minor, patch = sphinx.version_info[:3] variable 40 if major == 1 and minor > 3: 283 if major == 1 and minor > 3: 286 if major == 1 and minor <= 4: 288 elif major == 1 and (minor > 5 or (minor == 5 and patch >= 3)): 293 if major == 1 and minor < 6:
|
/Linux-v4.19/security/keys/encrypted-keys/ |
D | ecryptfs_format.c | 33 void ecryptfs_get_versions(int *major, int *minor, int *file_version) in ecryptfs_get_versions() argument 35 *major = ECRYPTFS_VERSION_MAJOR; in ecryptfs_get_versions() 53 int major, minor; in ecryptfs_fill_auth_tok() local 55 ecryptfs_get_versions(&major, &minor, NULL); in ecryptfs_fill_auth_tok() 56 auth_tok->version = (((uint16_t)(major << 8) & 0xFF00) in ecryptfs_fill_auth_tok()
|
/Linux-v4.19/drivers/platform/x86/ |
D | intel_scu_ipcutil.c | 27 static int major; variable 104 major = register_chrdev(0, "intel_mid_scu", &scu_ipc_fops); in ipc_module_init() 105 if (major < 0) in ipc_module_init() 106 return major; in ipc_module_init() 113 unregister_chrdev(major, "intel_mid_scu"); in ipc_module_exit()
|
/Linux-v4.19/include/linux/ |
D | device_cgroup.h | 15 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()
|
D | kdev_t.h | 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()
|
/Linux-v4.19/fs/f2fs/ |
D | trace.c | 29 last_io.major, last_io.minor, in __print_last_io() 88 int major, minor; in f2fs_trace_ios() local 98 major = MAJOR(inode->i_sb->s_dev); in f2fs_trace_ios() 101 if (last_io.major == major && last_io.minor == minor && in f2fs_trace_ios() 114 last_io.major = major; in f2fs_trace_ios()
|
/Linux-v4.19/drivers/soc/fsl/qbman/ |
D | bman_ccsr.c | 89 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() 183 u8 major, minor; in fsl_bman_probe() local 197 bm_get_version(&id, &major, &minor); in fsl_bman_probe() 198 if (major == 1 && minor == 0) { in fsl_bman_probe() 201 } else if (major == 2 && minor == 0) { in fsl_bman_probe() 204 } else if (major == 2 && minor == 1) { in fsl_bman_probe() 209 id, major, minor); in fsl_bman_probe()
|
/Linux-v4.19/sound/core/ |
D | sound.c | 35 static int major = CONFIG_SND_MAJOR; variable 44 module_param(major, int, 0444); 45 MODULE_PARM_DESC(major, "Major # for sound driver."); 286 device->devt = MKDEV(major, minor); in snd_register_device() 400 snd_major = major; in alsa_sound_init() 402 if (register_chrdev(major, "alsa", &snd_fops)) { in alsa_sound_init() 403 pr_err("ALSA core: unable to register native major device number %d\n", major); in alsa_sound_init() 407 unregister_chrdev(major, "alsa"); in alsa_sound_init() 419 unregister_chrdev(major, "alsa"); in alsa_sound_exit()
|
/Linux-v4.19/Documentation/aoe/ |
D | autoload.sh | 12 grep major-152 $f >/dev/null 14 echo alias block-major-152 aoe >> $f 15 echo alias char-major-152 aoe >> $f
|
/Linux-v4.19/drivers/mfd/ |
D | qcom-spmi-pmic.c | 69 unsigned int rev2, minor, major, type, subtype; in pmic_spmi_show_revid() local 100 ret = regmap_read(map, PMIC_REV4, &major); in pmic_spmi_show_revid() 111 major < 0x02) in pmic_spmi_show_revid() 112 major++; in pmic_spmi_show_revid() 117 dev_dbg(dev, "%x: %s v%d.%d\n", subtype, name, major, minor); in pmic_spmi_show_revid()
|
/Linux-v4.19/arch/sparc/include/asm/ |
D | vio.h | 49 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 …]
|
/Linux-v4.19/drivers/cpufreq/ |
D | sti-cpufreq.c | 160 int pcode, substrate, major, minor; in sti_cpufreq_set_opp_info() local 199 major = sti_cpufreq_fetch_major(); in sti_cpufreq_set_opp_info() 200 if (major < 0) { in sti_cpufreq_set_opp_info() 203 major = DEFAULT_VERSION; in sti_cpufreq_set_opp_info() 221 version[0] = BIT(major); in sti_cpufreq_set_opp_info() 232 pcode, major, minor, substrate); in sti_cpufreq_set_opp_info()
|
/Linux-v4.19/Documentation/ABI/stable/ |
D | sysfs-hypervisor-xen | 34 is in the format: <class>-<major>.<minor>-<arch> 38 <major>: major guest interface version 100 The Xen version is in the format <major>.<minor><extra> 105 What: /sys/hypervisor/version/major 110 The Xen version is in the format <major>.<minor><extra> 111 This is the <major> part of it. 118 The Xen version is in the format <major>.<minor><extra>
|
/Linux-v4.19/Documentation/devicetree/bindings/arm/firmware/ |
D | tlm,trusted-foundations.txt | 10 - tlm,version-major: major version number of Trusted Foundations firmware 17 tlm,version-major = <2>;
|
/Linux-v4.19/drivers/block/rsxx/ |
D | dev.c | 259 card->major = register_blkdev(0, DRIVER_NAME); in rsxx_setup_dev() 260 if (card->major < 0) { in rsxx_setup_dev() 268 unregister_blkdev(card->major, DRIVER_NAME); in rsxx_setup_dev() 276 unregister_blkdev(card->major, DRIVER_NAME); in rsxx_setup_dev() 304 card->gendisk->major = card->major; in rsxx_setup_dev() 323 unregister_blkdev(card->major, DRIVER_NAME); in rsxx_destroy_dev()
|