/linux/arch/sparc/kernel/ |
A D | hvapi.c | 20 unsigned long major; member 81 p->major = p->minor = 0; in __put_ref() 109 if (p->major == major) { 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() 187 major = 1; in sun4v_hvapi_init() 193 major = 1; in sun4v_hvapi_init() [all …]
|
A D | viohs.c | 56 pkt.major = major; 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() 276 pkt->major = 0; in process_ver_info() 280 } else if (vap->major != pkt->major) { in process_ver_info() 282 pkt->major = vap->major; in process_ver_info() 285 pkt->major, pkt->minor); in process_ver_info() 289 .major = pkt->major, in process_ver_info() 318 if (vio->ver.major != pkt->major || in process_ver_ack() [all …]
|
/linux/fs/ |
A D | char_dev.c | 36 unsigned int major; member 57 if (cd->major == offset) in chrdev_show() 78 if (cd->major == i) in find_dynamic_major() 122 if (major == 0) { in __register_chrdev_region() 129 major = ret; in __register_chrdev_region() 133 i = major_to_index(major); in __register_chrdev_region() 135 if (curr->major < major) in __register_chrdev_region() 138 if (curr->major > major) in __register_chrdev_region() 150 cd->major = major; in __register_chrdev_region() 179 if ((*cp)->major == major && in __unregister_chrdev_region() [all …]
|
/linux/arch/mips/kernel/ |
A 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()
|
A D | rtlx-mt.c | 21 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()
|
A 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/security/ |
A D | device_cgroup.c | 35 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() 325 if (ex->major != ~0 && ex->major != major) in match_exception() 367 if (ex->major != ~0 && major != ~0 && ex->major != major) in match_exception_partial() 417 refex->major, in verify_new_ex() 433 refex->major, refex->minor, in verify_new_ex() 488 ex->major, ex->minor, ex->access); in parent_allows_removal() 657 ex.major = ~0; in devcgroup_update_access() [all …]
|
/linux/drivers/char/xillybus/ |
A D | xillybus_class.c | 36 int major; member 87 unit->major = MAJOR(mdev); in xillybus_init_chrdev() 100 rc = cdev_add(unit->cdev, MKDEV(unit->major, unit->lowest_minor), in xillybus_init_chrdev() 126 MKDEV(unit->major, in xillybus_init_chrdev() 155 device_destroy(xillybus_class, MKDEV(unit->major, in xillybus_init_chrdev() 161 unregister_chrdev_region(MKDEV(unit->major, unit->lowest_minor), in xillybus_init_chrdev() 197 device_destroy(xillybus_class, MKDEV(unit->major, minor)); in xillybus_cleanup_chrdev() 201 unregister_chrdev_region(MKDEV(unit->major, unit->lowest_minor), in xillybus_cleanup_chrdev() 218 int major = imajor(inode); in xillybus_find_inode() local 225 if (unit->major == major && in xillybus_find_inode()
|
/linux/tools/lib/bpf/ |
A D | libbpf_common.h | 22 #define LIBBPF_DEPRECATED_SINCE(major, minor, msg) \ argument 23 __LIBBPF_MARK_DEPRECATED_ ## major ## _ ## minor \ 24 (LIBBPF_DEPRECATED("libbpf v" # major "." # minor "+: " msg)) 26 #define __LIBBPF_CURRENT_VERSION_GEQ(major, minor) \ argument 27 (LIBBPF_MAJOR_VERSION > (major) || \ 28 (LIBBPF_MAJOR_VERSION == (major) && LIBBPF_MINOR_VERSION >= (minor)))
|
/linux/drivers/char/ |
A D | scx200_gpio.c | 33 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()
|
A D | pc8736x_gpio.c | 32 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()
|
A D | tb0219.c | 22 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()
|
/linux/security/keys/encrypted-keys/ |
A D | ecryptfs_format.c | 31 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()
|
/linux/block/ |
A D | genhd.c | 184 int major; member 204 if (dp->major == offset) in blkdev_show() 245 if (major == 0) { in __register_blkdev() 257 major = index; in __register_blkdev() 258 ret = major; in __register_blkdev() 275 p->major = major; in __register_blkdev() 283 if ((*n)->major == major) in __register_blkdev() 294 major, name); in __register_blkdev() 312 if ((*n)->major == major) in unregister_blkdev() 419 if (disk->major) { in device_add_disk() [all …]
|
/linux/drivers/staging/media/atomisp/pci/ |
A D | css_trace.h | 28 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))
|
/linux/drivers/soc/fsl/qbman/ |
A 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() 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()
|
/linux/sound/core/ |
A D | sound.c | 21 static int major = CONFIG_SND_MAJOR; variable 30 module_param(major, int, 0444); 31 MODULE_PARM_DESC(major, "Major # for sound driver."); 280 device->devt = MKDEV(major, minor); in snd_register_device() 397 snd_major = major; in alsa_sound_init() 399 if (register_chrdev(major, "alsa", &snd_fops)) { in alsa_sound_init() 400 pr_err("ALSA core: unable to register native major device number %d\n", major); in alsa_sound_init() 404 unregister_chrdev(major, "alsa"); in alsa_sound_init() 423 unregister_chrdev(major, "alsa"); in alsa_sound_exit()
|
/linux/Documentation/ |
A D | conf.py | 20 major, minor, patch = sphinx.version_info[:3] variable 42 if major >= 3: 43 if (major > 3) or (minor > 0 or patch >= 2): 256 if major <= 1 and minor < 8: 480 if major == 1:
|
/linux/arch/sparc/include/asm/ |
A 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/drivers/platform/x86/ |
A D | intel_scu_ipcutil.c | 23 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()
|
/linux/Documentation/ABI/stable/ |
A D | sysfs-hypervisor-xen | 34 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>
|
/linux/Documentation/devicetree/bindings/arm/firmware/ |
A D | tlm,trusted-foundations.yaml | 23 tlm,version-major: 25 description: major version number of Trusted Foundations firmware 33 - tlm,version-major 43 tlm,version-major = <2>;
|
/linux/Documentation/admin-guide/aoe/ |
A 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/include/linux/ |
A 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/drivers/cpufreq/ |
A D | sti-cpufreq.c | 158 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() 231 pcode, major, minor, substrate); in sti_cpufreq_set_opp_info()
|