/linux-6.6.21/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-6.6.21/drivers/net/can/usb/etas_es58x/ |
D | es58x_devlink.c | 46 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 = -1, in es58x_parse_product_info() 178 return sw_ver->major < 100 && sw_ver->minor < 100 && in es58x_sw_version_is_valid() 195 return isalnum(hw_rev->letter) && hw_rev->major < 1000 && in es58x_hw_revision_is_valid() [all …]
|
/linux-6.6.21/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() 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 …]
|
/linux-6.6.21/arch/mips/kernel/ |
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()
|
/linux-6.6.21/security/ |
D | device_cgroup.c | 36 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() 328 u32 major, u32 minor, short access) in match_exception() argument 337 if (ex->major != ~0 && ex->major != major) in match_exception() 365 u32 major, u32 minor, short access) in match_exception_partial() argument 379 if (ex->major != ~0 && major != ~0 && ex->major != major) in match_exception_partial() 429 refex->major, in verify_new_ex() 445 refex->major, refex->minor, in verify_new_ex() [all …]
|
/linux-6.6.21/drivers/gpu/drm/i915/gt/uc/ |
D | intel_uc_fw.c | 190 u8 major; member 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() 382 if (fw_blobs[i].blob.major < fw_blobs[i - 1].blob.major) in validate_fw_table_type() 391 if (!fw_blobs[i - 1].blob.major) in validate_fw_table_type() 394 if (fw_blobs[i].blob.major == fw_blobs[i - 1].blob.major) in validate_fw_table_type() 399 if (fw_blobs[i].blob.major != fw_blobs[i - 1].blob.major) in validate_fw_table_type() 419 fw_blobs[i - 1].blob.major, in validate_fw_table_type() [all …]
|
/linux-6.6.21/drivers/char/ |
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()
|
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()
|
/linux-6.6.21/drivers/char/xillybus/ |
D | xillybus_class.c | 38 int major; member 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 = imajor(inode); in xillybus_find_inode() local 225 if (iter->major == major && in xillybus_find_inode()
|
/linux-6.6.21/tools/lib/bpf/ |
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)))
|
D | libbpf_probes.c | 34 __u32 major, minor, patch; in get_ubuntu_kernel_version() local 45 ret = fscanf(f, "%*s %*s %u.%u.%u\n", &major, &minor, &patch); in get_ubuntu_kernel_version() 50 return KERNEL_VERSION(major, minor, patch); in get_ubuntu_kernel_version() 65 __u32 major, minor, patch; in get_debian_kernel_version() local 74 if (sscanf(p, "Debian %u.%u.%u", &major, &minor, &patch) != 3) in get_debian_kernel_version() 77 return KERNEL_VERSION(major, minor, patch); in get_debian_kernel_version() 82 __u32 major, minor, patch, version; in get_kernel_version() local 97 if (sscanf(info.release, "%u.%u.%u", &major, &minor, &patch) != 3) in get_kernel_version() 100 return KERNEL_VERSION(major, minor, patch); in get_kernel_version()
|
/linux-6.6.21/Documentation/ |
D | conf.py | 32 major, minor, patch = sphinx.version_info[:3] variable 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:
|
/linux-6.6.21/security/keys/encrypted-keys/ |
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-6.6.21/Documentation/driver-api/firmware/ |
D | firmware-usage-guidelines.rst | 17 versioned with at least a major/minor version. It is suggested that 19 specific name, and just the major version. The firmware version should 23 overwritten with the newest compatible major version. Newer major 25 that major number. 30 This means no major version bumps without the kernel retaining 31 backwards compatibility for the older major versions. Minor version 36 be successful, then all supported major versions in the linux-firmware 42 deprecating old major versions, then this should only be done as a
|
/linux-6.6.21/drivers/staging/media/atomisp/pci/ |
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-6.6.21/drivers/platform/x86/ |
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-6.6.21/block/ |
D | genhd.c | 160 int major; member 170 static inline int major_to_index(unsigned major) in major_to_index() argument 172 return major % BLKDEV_MAJOR_HASH_SIZE; in major_to_index() 182 if (dp->major == offset) in blkdev_show() 183 seq_printf(seqf, "%3d %s\n", dp->major, dp->name); in blkdev_show() 214 int __register_blkdev(unsigned int major, const char *name, in __register_blkdev() argument 223 if (major == 0) { in __register_blkdev() 235 major = index; in __register_blkdev() 236 ret = major; in __register_blkdev() 239 if (major >= BLKDEV_MAJOR_MAX) { in __register_blkdev() [all …]
|
/linux-6.6.21/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() 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-6.6.21/sound/core/ |
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-6.6.21/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-6.6.21/Documentation/admin-guide/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-6.6.21/drivers/gpu/drm/logicvc/ |
D | logicvc_drm.c | 54 .major = 1, 242 .major = 3, 246 .major = 4, 250 .major = 5, 260 unsigned int major, minor; in logicvc_drm_caps_match() local 267 major = FIELD_GET(LOGICVC_IP_VERSION_MAJOR_MASK, version); in logicvc_drm_caps_match() 272 if (logicvc_drm_caps[i].major && in logicvc_drm_caps_match() 273 logicvc_drm_caps[i].major != major) in logicvc_drm_caps_match() 287 drm_info(drm_dev, "LogiCVC version %d.%02d.%c\n", major, minor, level); in logicvc_drm_caps_match()
|
/linux-6.6.21/Documentation/devicetree/bindings/arm/firmware/ |
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-6.6.21/drivers/accel/habanalabs/common/ |
D | security.c | 618 u32 major, u32 minor, u32 sub_minor) in hl_automated_get_block_base_addr() argument 621 major * block_info->major_offset + in hl_automated_get_block_base_addr() 648 u32 major, u32 minor, u32 sub_minor) in hl_check_block_range_exclusion() argument 654 major, minor, sub_minor); in hl_check_block_range_exclusion() 672 u32 blk_idx, u32 major, u32 minor, u32 sub_minor, void *data) in hl_read_glbl_errors() argument 680 block_base = base + major * current_block->major_offset + in hl_read_glbl_errors() 731 u32 major, minor, sub_minor, blk_idx, num_blocks; in hl_iterate_special_blocks() local 745 for (major = 0 ; major < block_info_arr->major ; major++) { in hl_iterate_special_blocks() 752 major, minor, sub_minor)) || in hl_iterate_special_blocks() 756 blk_idx, major, minor, sub_minor))) { in hl_iterate_special_blocks() [all …]
|