/linux-6.12.1/drivers/gpu/drm/xe/tests/ |
D | xe_gt_sriov_pf_service_test.c | 36 KUNIT_ASSERT_NE(test, 0, gt->sriov.pf.service.version.base.major); in pf_service_test_init() 37 KUNIT_ASSERT_NE(test, 0, gt->sriov.pf.service.version.latest.major); in pf_service_test_init() 38 KUNIT_ASSERT_LE(test, gt->sriov.pf.service.version.base.major, in pf_service_test_init() 39 gt->sriov.pf.service.version.latest.major); in pf_service_test_init() 40 if (gt->sriov.pf.service.version.base.major == gt->sriov.pf.service.version.latest.major) in pf_service_test_init() 51 u32 major, minor; in pf_negotiate_any() local 56 &major, &minor)); in pf_negotiate_any() 57 KUNIT_ASSERT_EQ(test, major, gt->sriov.pf.service.version.latest.major); in pf_negotiate_any() 64 u32 major, minor; in pf_negotiate_base_match() local 68 gt->sriov.pf.service.version.base.major, in pf_negotiate_base_match() [all …]
|
/linux-6.12.1/fs/ |
D | char_dev.c | 14 #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. 92 * If major > 0 this function will attempt to reserve the range of minors [all …]
|
/linux-6.12.1/arch/sparc/kernel/ |
D | hvapi.c | 16 * 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 = major; in sun4v_hvapi_register() 128 if (major == 1) { in sun4v_hvapi_register() [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.12.1/drivers/gpu/drm/xe/ |
D | xe_gt_sriov_pf_service.c | 29 gt->sriov.pf.service.version.base.major = GUC_RELAY_VERSION_BASE_MAJOR; in pf_init_versions() 33 gt->sriov.pf.service.version.latest.major = GUC_RELAY_VERSION_LATEST_MAJOR; in pf_init_versions() 40 u32 *major, u32 *minor) in pf_negotiate_version() argument 45 xe_gt_assert(gt, base.major); in pf_negotiate_version() 46 xe_gt_assert(gt, base.major <= latest.major); in pf_negotiate_version() 47 xe_gt_assert(gt, (base.major < latest.major) || (base.minor <= latest.minor)); in pf_negotiate_version() 52 *major = latest.major; in pf_negotiate_version() 58 if (wanted_major > latest.major) { in pf_negotiate_version() 59 *major = latest.major; in pf_negotiate_version() 65 if (wanted_major < base.major || in pf_negotiate_version() [all …]
|
D | xe_gt_sriov_vf.c | 62 u32 *branch, u32 *major, u32 *minor, u32 *patch) in guc_action_match_version() argument 86 *major = FIELD_GET(VF2GUC_MATCH_VERSION_RESPONSE_MSG_1_MAJOR, response[1]); in guc_action_match_version() 93 static void vf_minimum_guc_version(struct xe_gt *gt, u32 *branch, u32 *major, u32 *minor) in vf_minimum_guc_version() argument 101 *major = 1; in vf_minimum_guc_version() 107 *major = 1; in vf_minimum_guc_version() 113 static void vf_wanted_guc_version(struct xe_gt *gt, u32 *branch, u32 *major, u32 *minor) in vf_wanted_guc_version() argument 116 return vf_minimum_guc_version(gt, branch, major, minor); in vf_wanted_guc_version() 124 u32 branch, major, minor, patch; in vf_handshake_with_guc() local 130 if (guc_version->major || guc_version->minor) { in vf_handshake_with_guc() 132 wanted_major = guc_version->major; in vf_handshake_with_guc() [all …]
|
D | xe_uc_fw.c | 35 * "mpp version", i.e. major.minor.patch. mmp_ver() should only be used for 39 * ever contains the major version (GuC) or no version at all (HuC). 42 * The major version needs to match a major version supported by the driver (if 53 * - i915/tgl_guc_<major>.bin 56 * <major> number for GuC is checked that it matches the version inside 64 * - xe/wipplat_guc_<major>.<minor>.<patch>.bin 65 * - xe/wipplat_huc_<major>.<minor>.<patch>.bin 67 * <major> and <minor> are checked that they match the version inside 76 * - xe/plat_guc_<major>.bin 79 * <major> number for GuC is checked that it matches the version inside [all …]
|
D | xe_gt_sriov_vf_types.h | 17 /** @major: major version. */ 18 u8 major; member 29 /** @major: major version. */ 30 u16 major; member
|
/linux-6.12.1/include/linux/ |
D | kdev_t.h | 10 #define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS)) macro 15 sprintf((buffer), "%u:%u\n", MAJOR(dev), MINOR(dev)) 19 sprintf(buffer, "%u:%u", MAJOR(dev), MINOR(dev)); \ 26 return MAJOR(dev) < 256 && MINOR(dev) < 256; in old_valid_dev() 31 return (MAJOR(dev) << 8) | MINOR(dev); in old_encode_dev() 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() 65 return MAJOR(dev) < (1<<14) && MINOR(dev) < (1<<18); in sysv_valid_dev() [all …]
|
/linux-6.12.1/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.12.1/block/ |
D | genhd.c | 21 #include <linux/major.h> 55 /* for extended dynamic devt allocation, currently only one major is used */ 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() 191 * @major: the requested major device number [1..BLKDEV_MAJOR_MAX-1]. If 192 * @major = 0, try to allocate any unused major number. 201 * The return value depends on the @major input parameter: [all …]
|
/linux-6.12.1/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"); 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 | 32 static int major; /* default to dynamic major */ variable 33 module_param(major, int, 0); 34 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()
|
/linux-6.12.1/drivers/gpu/drm/i915/gt/uc/ |
D | intel_uc_fw.c | 72 * 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. 138 * Same as with the GuC, a major version bump indicate a 205 u8 major; member 212 .major = major_, \ 330 uc_fw->file_wanted.ver.major = blob->major; in __uc_fw_auto_select() 376 fw_blobs[j].blob.major, fw_blobs[j].blob.minor, in validate_fw_table_type() 379 fw_blobs[i].blob.major, fw_blobs[i].blob.minor, in validate_fw_table_type() 397 /* Next major version is good: */ in validate_fw_table_type() [all …]
|
/linux-6.12.1/drivers/staging/media/atomisp/pci/ |
D | css_trace.h | 26 /* 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) \ 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)) [all …]
|
/linux-6.12.1/drivers/char/xillybus/ |
D | xillybus_class.c | 38 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 = imajor(inode); in xillybus_find_inode() local [all …]
|
/linux-6.12.1/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.12.1/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() 318 * @major: device file major number, ~0 to match all 328 u32 major, u32 minor, short access) in match_exception() argument 337 if (ex->major != ~0 && ex->major != major) in match_exception() 353 * @major: device file major number, ~0 to match all 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() [all …]
|
/linux-6.12.1/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.12.1/drivers/accel/habanalabs/common/ |
D | security.h | 29 * @major: number of major blocks of particular type. 32 * @major_offset: address gap between 2 consecutive major blocks of particular type, 40 * NIC<major>_UMR<minor>_<sub_minor> where major=12, minor=2, sub_minor=15. 41 * In other words, for each of 12 major numbers (i.e 0 to 11) there are 52 u32 major; member 136 u32 blk_idx, u32 major, u32 minor, u32 sub_minor); 149 * @major: major block index within block_id 150 * @minor: minor block index within the major block 154 int (*fn)(struct hl_device *hdev, u32 block_id, u32 major, u32 minor,
|
/linux-6.12.1/include/trace/events/ |
D | ext4.h | 160 MAJOR(__entry->dev), MINOR(__entry->dev), 190 MAJOR(__entry->dev), MINOR(__entry->dev), 213 MAJOR(__entry->dev), MINOR(__entry->dev), 237 MAJOR(__entry->dev), MINOR(__entry->dev), 260 MAJOR(__entry->dev), MINOR(__entry->dev), 282 MAJOR(__entry->dev), MINOR(__entry->dev), 302 MAJOR(__entry->dev), MINOR(__entry->dev), 324 MAJOR(__entry->dev), MINOR(__entry->dev), 346 MAJOR(__entry->dev), MINOR(__entry->dev), 372 MAJOR(__entry->dev), MINOR(__entry->dev), [all …]
|
D | jbd2.h | 31 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->result) 53 MAJOR(__entry->dev), MINOR(__entry->dev), 112 MAJOR(__entry->dev), MINOR(__entry->dev), 132 MAJOR(__entry->dev), MINOR(__entry->dev), 160 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid, 205 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid, 242 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid, 285 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid, 322 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid, 351 MAJOR(__entry->dev), MINOR(__entry->dev), [all …]
|
/linux-6.12.1/Documentation/admin-guide/cgroup-v1/ |
D | blkio-controller.rst | 36 for policy is "<major>:<minor> <bytes_per_second>":: 41 on device having major/minor number 8:16. 140 two fields specify the major and minor number of the device and 146 two fields specify the major and minor number of the device and 153 or async. First two fields specify the major and minor number of the 160 or async. First two fields specify the major and minor number of the 174 specify the major and minor number of the device, third field 189 read or write, sync or async. First two fields specify the major and 241 from service tree of the device. First two fields specify the major 257 echo "<major>:<minor> <rate_bytes_per_second>" > /cgrp/blkio.throttle.read_bps_device [all …]
|
/linux-6.12.1/drivers/cpufreq/ |
D | sti-cpufreq.c | 65 dev_err(dev, "No major number offset provided in %pOF [%d]\n", in sti_cpufreq_fetch_major() 72 dev_err(dev, "Failed to read major number from syscon [%d]\n", in sti_cpufreq_fetch_major() 158 int pcode, substrate, major, minor; in sti_cpufreq_set_opp_info() local 201 major = sti_cpufreq_fetch_major(); in sti_cpufreq_set_opp_info() 202 if (major < 0) { in sti_cpufreq_set_opp_info() 203 dev_err(dev, "Failed to obtain major version\n"); in sti_cpufreq_set_opp_info() 204 /* Use default major number */ in sti_cpufreq_set_opp_info() 205 major = DEFAULT_VERSION; in sti_cpufreq_set_opp_info() 217 version[0] = BIT(major); in sti_cpufreq_set_opp_info() 227 dev_dbg(dev, "pcode: %d major: %d minor: %d substrate: %d\n", in sti_cpufreq_set_opp_info() [all …]
|
/linux-6.12.1/tools/lib/bpf/ |
D | libbpf_common.h | 21 /* Mark a symbol as deprecated when libbpf version is >= {major}.{minor} */ 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)))
|