Home
last modified time | relevance | path

Searched refs:major (Results 1 – 25 of 628) sorted by relevance

12345678910>>...26

/drivers/char/xillybus/
Dxillybus_class.c36 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()
196 device_destroy(xillybus_class, MKDEV(unit->major, minor)); in xillybus_cleanup_chrdev()
200 unregister_chrdev_region(MKDEV(unit->major, unit->lowest_minor), in xillybus_cleanup_chrdev()
217 int major = imajor(inode); in xillybus_find_inode() local
223 if (iter->major == major && in xillybus_find_inode()
/drivers/char/
Dscx200_gpio.c33 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()
Dpc8736x_gpio.c32 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/
Dcss_trace.h28 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/
Dbman_ccsr.c89 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()
Dqman_ccsr.c335 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/
Dintel_scu_ipcutil.c23 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/
Dlogicvc_drm.c54 .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/net/ethernet/freescale/fman/
Dfman_port.c53 #define DFLT_PORT_RX_FIFO_THRESHOLD(major, bmi_max_fifo_size) \ argument
54 (major == 6 ? \
851 if (port->rev_info.major >= 6) in verify_size_of_fifo()
1020 switch (port->rev_info.major) { in fill_soc_specific_params()
1040 static int get_dflt_fifo_deq_pipeline_depth(u8 major, enum fman_port_type type, in get_dflt_fifo_deq_pipeline_depth() argument
1050 if (major >= 6) in get_dflt_fifo_deq_pipeline_depth()
1062 static int get_dflt_num_of_tasks(u8 major, enum fman_port_type type, in get_dflt_num_of_tasks() argument
1072 if (major >= 6) in get_dflt_num_of_tasks()
1084 static int get_dflt_extra_num_of_tasks(u8 major, enum fman_port_type type, in get_dflt_extra_num_of_tasks() argument
1090 if (major >= 6) in get_dflt_extra_num_of_tasks()
[all …]
Dfman.c240 #define DFLT_DMA_COMM_Q_LOW(major, dma_thresh_max_commq) \ argument
241 ((major == 6) ? DMA_COMM_Q_LOW_FMAN_V3 : \
247 #define DFLT_DMA_COMM_Q_HIGH(major, dma_thresh_max_commq) \ argument
248 ((major == 6) ? DMA_COMM_Q_HIGH_FMAN_V3 : \
253 #define DFLT_TOTAL_NUM_OF_TASKS(major, minor, bmi_max_num_of_tasks) \ argument
254 ((major == 6) ? ((minor == 1 || minor == 4) ? \
260 #define DFLT_DMA_CAM_NUM_OF_ENTRIES(major) \ argument
261 (major == 6 ? DMA_CAM_NUM_OF_ENTRIES_FMAN_V3 : \
578 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
752 if (fman->state->rev_info.major == 2) { in dma_init()
[all …]
/drivers/cpufreq/
Dsti-cpufreq.c158 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/platform/x86/amd/
Dpmc.c148 u8 major; member
354 dev->major = (val >> 16) & GENMASK(7, 0); in amd_pmc_get_smu_version()
359 dev->smu_program, dev->major, dev->minor, dev->rev); in amd_pmc_get_smu_version()
369 if (!dev->major) { in smu_fw_version_show()
375 return sysfs_emit(buf, "%u.%u.%u\n", dev->major, dev->minor, dev->rev); in smu_fw_version_show()
383 if (!dev->major) { in smu_program_show()
495 if (!pdev->major) { in amd_pmc_idlemask_read()
500 if (pdev->major > 56 || (pdev->major >= 55 && pdev->minor >= 37)) in amd_pmc_idlemask_read()
673 if (!pdev->major) { in amd_pmc_czn_wa_irq1()
679 if (pdev->major > 64 || (pdev->major == 64 && pdev->minor > 65)) in amd_pmc_czn_wa_irq1()
[all …]
/drivers/greybus/
Dcontrol.c25 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/block/paride/
Dpg.c141 static int major = PG_MAJOR; variable
172 module_param(major, int, 0);
483 printk("%s: %s version %s, major %d\n", name, name, PG_VERSION, major); in pg_detect()
682 err = register_chrdev(major, name, &pg_fops); in pg_init()
684 printk("pg_init: unable to get major number %d\n", major); in pg_init()
692 major = err; /* In case the user specified `major=0' (dynamic) */ in pg_init()
701 device_create(pg_class, NULL, MKDEV(major, unit), NULL, in pg_init()
708 unregister_chrdev(major, "pg"); in pg_init()
720 device_destroy(pg_class, MKDEV(major, unit)); in pg_exit()
723 unregister_chrdev(major, name); in pg_exit()
Dpt.c121 static int major = PT_MAJOR; variable
156 module_param(major, int, 0);
607 printk("%s: %s version %s, major %d\n", name, name, PT_VERSION, major); in pt_detect()
977 err = register_chrdev(major, name, &pt_fops); in pt_init()
979 printk("pt_init: unable to get major number %d\n", major); in pt_init()
985 major = err; in pt_init()
994 device_create(pt_class, NULL, MKDEV(major, unit), NULL, in pt_init()
996 device_create(pt_class, NULL, MKDEV(major, unit + 128), in pt_init()
1002 unregister_chrdev(major, "pt"); in pt_init()
1012 device_destroy(pt_class, MKDEV(major, unit)); in pt_exit()
[all …]
/drivers/iio/chemical/
Dsgp30.c79 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/staging/greybus/
Dgreybus_firmware.h42 __u16 major; member
48 __u16 major; member
57 __u16 major; member
Dbootrom.c382 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/
Dxenbus.c25 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()
704 unsigned major; in backend_changed() local
716 &major, &minor); in backend_changed()
730 if (be->major | be->minor) { in backend_changed()
731 if (be->major != major || be->minor != minor) in backend_changed()
733 be->major, be->minor, major, minor); in backend_changed()
[all …]
/drivers/staging/greybus/Documentation/firmware/
Dfirmware.c55 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/net/
Dtap.c108 dev_t major; member
401 static struct major_info *tap_get_major(int major) in tap_get_major() argument
406 if (tap_major->major == major) in tap_get_major()
413 int tap_get_minor(dev_t major, struct tap_dev *tap) in tap_get_minor() argument
419 tap_major = tap_get_major(MAJOR(major)); in tap_get_minor()
441 void tap_free_minor(dev_t major, struct tap_dev *tap) in tap_free_minor() argument
446 tap_major = tap_get_major(MAJOR(major)); in tap_free_minor()
463 static struct tap_dev *dev_get_by_tap_file(int major, int minor) in dev_get_by_tap_file() argument
470 tap_major = tap_get_major(major); in dev_get_by_tap_file()
1316 static int tap_list_add(dev_t major, const char *device_name) in tap_list_add() argument
[all …]
/drivers/ufs/host/
Dufs-qcom.h132 u8 *major, u16 *minor, u16 *step) in ufs_qcom_get_controller_revision() argument
136 *major = FIELD_GET(UFS_HW_VER_MAJOR_MASK, ver); in ufs_qcom_get_controller_revision()
169 u8 major; member
228 if (host->hw_ver.major <= 0x02) in ufs_qcom_get_debug_reg_offset()
Dufs-qcom-ice.c70 int major = regval >> 24; in qcom_ice_supported() local
75 if (major != 3) { in qcom_ice_supported()
77 major, minor, step); in qcom_ice_supported()
82 major, minor, step); in qcom_ice_supported()
/drivers/mfd/
Dtimberdale.c45 u32 major; member
631 return sprintf(buf, "%d.%d.%d\n", priv->fw.major, priv->fw.minor, in fw_ver_show()
678 priv->fw.major = ioread32(priv->ctl_membase + TIMB_REV_MAJOR); in timb_probe()
682 if (priv->fw.major > TIMB_SUPPORTED_MAJOR) { in timb_probe()
685 "support %d.%d\n", priv->fw.major, priv->fw.minor); in timb_probe()
688 if (priv->fw.major < TIMB_SUPPORTED_MAJOR || in timb_probe()
692 priv->fw.major, priv->fw.minor, in timb_probe()
768 priv->fw.major, priv->fw.minor, ip_setup); in timb_probe()
802 priv->fw.major, priv->fw.minor, priv->fw.config); in timb_probe()
/drivers/char/pcmcia/
Dcm4040_cs.c64 static int major; variable
595 device_create(cmx_class, NULL, MKDEV(major, i), NULL, "cmx%d", i); in reader_probe()
618 device_destroy(cmx_class, MKDEV(major, devno)); in reader_detach()
657 major = register_chrdev(0, DEVICE_NAME, &reader_fops); in cm4040_init()
658 if (major < 0) { in cm4040_init()
662 return major; in cm4040_init()
667 unregister_chrdev(major, DEVICE_NAME); in cm4040_init()
678 unregister_chrdev(major, DEVICE_NAME); in cm4040_exit()

12345678910>>...26