/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 …]
|
/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 …]
|
/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()
|
/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()
|
/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))
|
/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()
|
D | qman_ccsr.c | 335 static void qm_get_version(u16 *id, u8 *major, u8 *minor) in qm_get_version() argument 339 *major = (v >> 8) & 0xff; in qm_get_version() 759 u8 major, minor; in fsl_qman_probe() local 773 qm_get_version(&id, &major, &minor); in fsl_qman_probe() 774 if (major == 1 && minor == 0) { in fsl_qman_probe() 777 } else if (major == 1 && minor == 1) in fsl_qman_probe() 779 else if (major == 1 && minor == 2) in fsl_qman_probe() 781 else if (major == 2 && minor == 0) in fsl_qman_probe() 783 else if (major == 3 && minor == 0) in fsl_qman_probe() 785 else if (major == 3 && minor == 1) in fsl_qman_probe() [all …]
|
/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()
|
/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()
|
/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 …]
|
D | security.h | 53 u32 major; member 137 u32 blk_idx, u32 major, u32 minor, u32 sub_minor); 155 int (*fn)(struct hl_device *hdev, u32 block_id, u32 major, u32 minor,
|
/drivers/net/ethernet/freescale/fman/ |
D | fman_port.c | 54 #define DFLT_PORT_RX_FIFO_THRESHOLD(major, bmi_max_fifo_size) \ argument 55 (major == 6 ? \ 852 if (port->rev_info.major >= 6) in verify_size_of_fifo() 1021 switch (port->rev_info.major) { in fill_soc_specific_params() 1041 static int get_dflt_fifo_deq_pipeline_depth(u8 major, enum fman_port_type type, in get_dflt_fifo_deq_pipeline_depth() argument 1051 if (major >= 6) in get_dflt_fifo_deq_pipeline_depth() 1063 static int get_dflt_num_of_tasks(u8 major, enum fman_port_type type, in get_dflt_num_of_tasks() argument 1073 if (major >= 6) in get_dflt_num_of_tasks() 1085 static int get_dflt_extra_num_of_tasks(u8 major, enum fman_port_type type, in get_dflt_extra_num_of_tasks() argument 1091 if (major >= 6) in get_dflt_extra_num_of_tasks() [all …]
|
D | fman.c | 241 #define DFLT_DMA_COMM_Q_LOW(major, dma_thresh_max_commq) \ argument 242 ((major == 6) ? DMA_COMM_Q_LOW_FMAN_V3 : \ 248 #define DFLT_DMA_COMM_Q_HIGH(major, dma_thresh_max_commq) \ argument 249 ((major == 6) ? DMA_COMM_Q_HIGH_FMAN_V3 : \ 254 #define DFLT_TOTAL_NUM_OF_TASKS(major, minor, bmi_max_num_of_tasks) \ argument 255 ((major == 6) ? ((minor == 1 || minor == 4) ? \ 261 #define DFLT_DMA_CAM_NUM_OF_ENTRIES(major) \ argument 262 (major == 6 ? DMA_CAM_NUM_OF_ENTRIES_FMAN_V3 : \ 579 static inline u8 hw_port_id_to_sw_port_id(u8 major, u8 hw_port_id) in hw_port_id_to_sw_port_id() argument 753 if (fman->state->rev_info.major == 2) { in dma_init() [all …]
|
/drivers/cpufreq/ |
D | sti-cpufreq.c | 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() 205 major = DEFAULT_VERSION; in sti_cpufreq_set_opp_info() 217 version[0] = BIT(major); in sti_cpufreq_set_opp_info() 228 pcode, major, minor, substrate); in sti_cpufreq_set_opp_info()
|
/drivers/greybus/ |
D | control.c | 25 request.major = GB_CONTROL_VERSION_MAJOR; in gb_control_get_version() 39 if (response.major > request.major) { in gb_control_get_version() 42 response.major, request.major); in gb_control_get_version() 46 control->protocol_major = response.major; in gb_control_get_version() 49 dev_dbg(&intf->dev, "%s - %u.%u\n", __func__, response.major, in gb_control_get_version() 76 bundle->class_major = response.major; in gb_control_get_bundle_version() 80 response.major, response.minor); in gb_control_get_bundle_version()
|
/drivers/staging/greybus/ |
D | greybus_firmware.h | 42 __u16 major; member 48 __u16 major; member 57 __u16 major; member
|
D | bootrom.c | 382 request.major = GB_BOOTROM_VERSION_MAJOR; in gb_bootrom_get_version() 396 if (response.major > request.major) { in gb_bootrom_get_version() 399 response.major, request.major); in gb_bootrom_get_version() 403 bootrom->protocol_major = response.major; in gb_bootrom_get_version() 406 dev_dbg(&bundle->dev, "%s - %u.%u\n", __func__, response.major, in gb_bootrom_get_version()
|
/drivers/block/xen-blkback/ |
D | xenbus.c | 25 unsigned major; member 439 VBD_SHOW(physical_device, "%x:%x\n", be->major, be->minor); 481 unsigned major, unsigned minor, int readonly, in xen_vbd_create() argument 492 vbd->pdevice = MKDEV(major, minor); in xen_vbd_create() 533 if (be->major || be->minor) in xen_blkbk_remove() 702 unsigned major; in backend_changed() local 714 &major, &minor); in backend_changed() 728 if (be->major | be->minor) { in backend_changed() 729 if (be->major != major || be->minor != minor) in backend_changed() 731 be->major, be->minor, major, minor); in backend_changed() [all …]
|
/drivers/platform/x86/amd/pmc/ |
D | pmc.c | 383 dev->major = (val >> 16) & GENMASK(7, 0); in amd_pmc_get_smu_version() 388 dev->smu_program, dev->major, dev->minor, dev->rev); in amd_pmc_get_smu_version() 398 if (!dev->major) { in smu_fw_version_show() 404 return sysfs_emit(buf, "%u.%u.%u\n", dev->major, dev->minor, dev->rev); in smu_fw_version_show() 412 if (!dev->major) { in smu_program_show() 524 if (!pdev->major) { in amd_pmc_idlemask_read() 529 if (pdev->major > 56 || (pdev->major >= 55 && pdev->minor >= 37)) in amd_pmc_idlemask_read() 714 if (!pdev->major) { in amd_pmc_wa_irq1() 720 if (pdev->major > 64 || (pdev->major == 64 && pdev->minor > 65)) in amd_pmc_wa_irq1() 746 if (!pdev->major) { in amd_pmc_verify_czn_rtc() [all …]
|
/drivers/staging/greybus/Documentation/firmware/ |
D | firmware.c | 55 intf_fw_info.firmware_tag, intf_fw_info.major, in update_intf_firmware() 63 intf_load.major = 0; in update_intf_firmware() 84 firmware_tag, intf_load.major, intf_load.minor, in update_intf_firmware() 116 backend_fw_info.firmware_tag, backend_fw_info.major, in update_backend_firmware()
|
/drivers/iio/chemical/ |
D | sgp30.c | 79 u8 major; member 123 .major = 1, 130 .major = 0, 416 u16 product, generation, major, minor; in sgp_check_compat() local 453 major = SGP_VERS_MAJOR(data); in sgp_check_compat() 456 if (major == supported_versions[ix].major && in sgp_check_compat() 460 dev_err(dev, "unsupported sgp version: %d.%d\n", major, minor); in sgp_check_compat()
|
/drivers/ufs/host/ |
D | ufs-qcom.h | 137 u8 *major, u16 *minor, u16 *step) in ufs_qcom_get_controller_revision() argument 141 *major = FIELD_GET(UFS_HW_VER_MAJOR_MASK, ver); in ufs_qcom_get_controller_revision() 174 u8 major; member 238 if (host->hw_ver.major <= 0x02) in ufs_qcom_get_debug_reg_offset()
|
/drivers/net/ |
D | tap.c | 110 dev_t major; member 403 static struct major_info *tap_get_major(int major) in tap_get_major() argument 408 if (tap_major->major == major) in tap_get_major() 415 int tap_get_minor(dev_t major, struct tap_dev *tap) in tap_get_minor() argument 421 tap_major = tap_get_major(MAJOR(major)); in tap_get_minor() 443 void tap_free_minor(dev_t major, struct tap_dev *tap) in tap_free_minor() argument 448 tap_major = tap_get_major(MAJOR(major)); in tap_free_minor() 465 static struct tap_dev *dev_get_by_tap_file(int major, int minor) in dev_get_by_tap_file() argument 472 tap_major = tap_get_major(major); in dev_get_by_tap_file() 1342 static int tap_list_add(dev_t major, const char *device_name) in tap_list_add() argument [all …]
|
/drivers/soc/qcom/ |
D | ice.c | 55 int major = FIELD_GET(GENMASK(31, 24), regval); in qcom_ice_check_supported() local 60 if (major != 3 && major != 4) { in qcom_ice_check_supported() 62 major, minor, step); in qcom_ice_check_supported() 67 major, minor, step); in qcom_ice_check_supported()
|