/linux/drivers/usb/host/ |
H A D | xhci-pci.c | 143 if (xhci->quirks & XHCI_BROKEN_MSI) in xhci_try_enable_msi() 229 * TODO: see if there are any quirks that need to be added to handle in xhci_pci_reinit() 245 /* Look for vendor-specific quirks */ in xhci_pci_quirks() 251 xhci->quirks |= XHCI_RESET_EP_QUIRK; in xhci_pci_quirks() 257 xhci->quirks |= XHCI_SLOW_SUSPEND; in xhci_pci_quirks() 264 xhci->quirks |= XHCI_BROKEN_STREAMS; in xhci_pci_quirks() 269 xhci->quirks |= XHCI_BROKEN_MSI; in xhci_pci_quirks() 278 xhci->quirks |= XHCI_BROKEN_STREAMS; in xhci_pci_quirks() 281 xhci->quirks |= XHCI_NEC_HOST; in xhci_pci_quirks() 284 xhci->quirks |= XHCI_AMD_0x96_HOST; in xhci_pci_quirks() [all …]
|
H A D | xhci-plat.c | 81 xhci->quirks |= priv->quirks; in xhci_plat_quirks() 113 .quirks = XHCI_RESET_ON_RESUME | XHCI_SUSPEND_RESUME_CLKS, 244 /* Iterate over all parent nodes for finding quirks */ in xhci_plat_probe() 248 xhci->quirks |= XHCI_HW_LPM_DISABLE; in xhci_plat_probe() 251 xhci->quirks |= XHCI_LPM_SUPPORT; in xhci_plat_probe() 254 xhci->quirks |= XHCI_BROKEN_PORT_PED; in xhci_plat_probe() 257 xhci->quirks |= XHCI_SG_TRB_CACHE_SIZE_QUIRK; in xhci_plat_probe() 260 xhci->quirks |= XHCI_WRITE_64_HI_LO; in xhci_plat_probe() 263 xhci->quirks |= XHCI_MISSING_CAS; in xhci_plat_probe() 266 xhci->quirks |= XHCI_SKIP_PHY_INIT; in xhci_plat_probe() [all …]
|
/linux/drivers/irqchip/ |
H A D | irq-gic-common.c | 17 const struct gic_quirk *quirks, void *data) in gic_enable_of_quirks() argument 19 for (; quirks->desc; quirks++) { in gic_enable_of_quirks() 20 if (!quirks->compatible && !quirks->property) in gic_enable_of_quirks() 22 if (quirks->compatible && in gic_enable_of_quirks() 23 !of_device_is_compatible(np, quirks->compatible)) in gic_enable_of_quirks() 25 if (quirks->property && in gic_enable_of_quirks() 26 !of_property_read_bool(np, quirks->property)) in gic_enable_of_quirks() 28 if (quirks->init(data)) in gic_enable_of_quirks() 30 quirks->desc); in gic_enable_of_quirks() 34 void gic_enable_quirks(u32 iidr, const struct gic_quirk *quirks, in gic_enable_quirks() argument [all …]
|
/linux/drivers/hid/ |
H A D | hid-multitouch.c | 52 /* quirks to control the device */ 121 __s32 quirks; member 150 __s32 quirks; member 253 .quirks = MT_QUIRK_ALWAYS_VALID | 256 .quirks = MT_QUIRK_NOT_SEEN_MEANS_UP }, 258 .quirks = MT_QUIRK_ALWAYS_VALID}, 260 .quirks = MT_QUIRK_VALID_IS_CONFIDENCE }, 262 .quirks = MT_QUIRK_VALID_IS_CONFIDENCE | 265 .quirks = MT_QUIRK_VALID_IS_CONFIDENCE | 268 .quirks = MT_QUIRK_VALID_IS_INRANGE | [all …]
|
H A D | hid-microsoft.c | 32 unsigned long quirks; member 63 unsigned long quirks = ms->quirks; in ms_report_fixup() local 69 if ((quirks & MS_RDESC) && *rsize == 571 && rdesc[557] == 0x19 && in ms_report_fixup() 187 unsigned long quirks = ms->quirks; in ms_input_mapping() local 189 if (quirks & MS_ERGONOMY) { in ms_input_mapping() 195 if ((quirks & MS_PRESENTER) && in ms_input_mapping() 199 if (quirks & MS_SURFACE_DIAL) { in ms_input_mapping() 214 unsigned long quirks = ms->quirks; in ms_input_mapped() local 216 if (quirks & MS_DUPLICATE_USAGES) in ms_input_mapped() 226 unsigned long quirks = ms->quirks; in ms_event() local [all …]
|
H A D | hid-cypress.c | 73 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in cp_report_fixup() local 75 if (quirks & CP_RDESC_SWAPPED_MIN_MAX) in cp_report_fixup() 77 if (quirks & VA_INVAL_LOGICAL_BOUNDARY) in cp_report_fixup() 87 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in cp_input_mapped() local 89 if (!(quirks & CP_2WHEEL_MOUSE_HACK)) in cp_input_mapped() 103 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in cp_event() local 106 !usage->type || !(quirks & CP_2WHEEL_MOUSE_HACK)) in cp_event() 111 quirks |= CP_2WHEEL_MOUSE_HACK_ON; in cp_event() 113 quirks &= ~CP_2WHEEL_MOUSE_HACK_ON; in cp_event() 114 hid_set_drvdata(hdev, (void *)quirks); in cp_event() [all …]
|
H A D | hid-sony.c | 490 unsigned long quirks; member 751 if (sc->quirks & (SINO_LITE_CONTROLLER | FUTUREMAX_DANCE_MAT)) in sony_report_fixup() 758 if ((sc->quirks & VAIO_RDESC_CONSTANT) && *rsize >= 56 && in sony_report_fixup() 770 if (sc->quirks & MOTION_CONTROLLER) in sony_report_fixup() 773 if (sc->quirks & PS3REMOTE) in sony_report_fixup() 780 if ((sc->quirks & SIXAXIS_CONTROLLER_USB) && *rsize >= 45 && in sony_report_fixup() 810 offset = (sc->quirks & MOTION_CONTROLLER) ? 12 : 30; in sixaxis_parse_report() 826 if (sc->quirks & SIXAXIS_CONTROLLER) { in sixaxis_parse_report() 927 if ((sc->quirks & SIXAXIS_CONTROLLER) && rd[0] == 0x01 && size == 49) { in sony_raw_event() 945 } else if ((sc->quirks & MOTION_CONTROLLER_BT) && rd[0] == 0x01 && size == 49) { in sony_raw_event() [all …]
|
H A D | hid-saitek.c | 32 unsigned long quirks; member 39 unsigned long quirks = id->driver_data; in saitek_probe() local 49 ssc->quirks = quirks; in saitek_probe() 74 if ((ssc->quirks & SAITEK_FIX_PS1000) && *rsize == 137 && in saitek_report_fixup() 98 if (ssc->quirks & SAITEK_RELEASE_MODE_RAT7 && size == 7) { in saitek_raw_event() 119 } else if (ssc->quirks & SAITEK_RELEASE_MODE_MMO7 && size == 8) { in saitek_raw_event() 157 (((ssc->quirks & SAITEK_RELEASE_MODE_RAT7) && in saitek_event() 159 ((ssc->quirks & SAITEK_RELEASE_MODE_MMO7) && in saitek_event()
|
H A D | hid-quirks.c | 3 * HID quirks support for Linux 977 if (hdev->quirks & HID_QUIRK_NO_IGNORE) in hid_ignore() 979 if (hdev->quirks & HID_QUIRK_IGNORE) in hid_ignore() 1061 /* Dynamic HID quirks list - specified at runtime */ 1070 /* Runtime ("dynamic") quirks manipulation functions */ 1073 * hid_exists_dquirk - find any dynamic quirks for a HID device 1107 * @quirks: the unsigned long quirks value to add/replace 1111 * quirks value with what was provided. Otherwise, add the quirk 1112 * to the dynamic quirks list. 1117 const unsigned long quirks) in hid_modify_dquirk() argument [all …]
|
H A D | hid-belkin.c | 30 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in belkin_input_mapping() local 33 !(quirks & BELKIN_WKBD)) in belkin_input_mapping() 48 unsigned long quirks = id->driver_data; in belkin_probe() local 51 hid_set_drvdata(hdev, (void *)quirks); in belkin_probe() 60 ((quirks & BELKIN_HIDDEV) ? HID_CONNECT_HIDDEV_FORCE : 0)); in belkin_probe()
|
/linux/drivers/net/can/flexcan/ |
H A D | flexcan-ethtool.c | 30 if (priv->devtype_data.quirks & FLEXCAN_QUIRK_USE_RX_MAILBOX) in flexcan_get_ringparam() 64 u32 quirks = priv->devtype_data.quirks; in flexcan_set_priv_flags() local 68 quirks |= FLEXCAN_QUIRK_USE_RX_MAILBOX; in flexcan_set_priv_flags() 70 quirks &= ~FLEXCAN_QUIRK_USE_RX_MAILBOX; in flexcan_set_priv_flags() 72 quirks |= FLEXCAN_QUIRK_USE_RX_MAILBOX; in flexcan_set_priv_flags() 75 quirks |= FLEXCAN_QUIRK_USE_RX_MAILBOX; in flexcan_set_priv_flags() 77 quirks &= ~FLEXCAN_QUIRK_USE_RX_MAILBOX; in flexcan_set_priv_flags() 80 if (quirks != priv->devtype_data.quirks && netif_running(ndev)) in flexcan_set_priv_flags() 83 priv->devtype_data.quirks = quirks; in flexcan_set_priv_flags()
|
H A D | flexcan.h | 75 u32 quirks; /* quirks needed for different IP cores */ member 124 const u32 quirks = priv->devtype_data.quirks; in flexcan_supports_rx_mailbox() local 126 return quirks & FLEXCAN_QUIRK_SUPPORT_RX_MAILBOX; in flexcan_supports_rx_mailbox() 132 const u32 quirks = priv->devtype_data.quirks; in flexcan_supports_rx_mailbox_rtr() local 134 return (quirks & (FLEXCAN_QUIRK_SUPPORT_RX_MAILBOX | in flexcan_supports_rx_mailbox_rtr() 143 const u32 quirks = priv->devtype_data.quirks; in flexcan_supports_rx_fifo() local 145 return quirks & FLEXCAN_QUIRK_SUPPORT_RX_FIFO; in flexcan_supports_rx_fifo() 151 const u32 quirks = priv->devtype_data.quirks; in flexcan_active_rx_rtr() local 153 if (quirks & FLEXCAN_QUIRK_USE_RX_MAILBOX) { in flexcan_active_rx_rtr() 154 if (quirks & FLEXCAN_QUIRK_SUPPORT_RX_MAILBOX_RTR) in flexcan_active_rx_rtr()
|
/linux/drivers/usb/core/ |
H A D | quirks.c | 11 #include <linux/usb/quirks.h> 172 device_param_cb(quirks, &quirks_param_ops, &quirks_param_string, 0644); 173 MODULE_PARM_DESC(quirks, "Add/modify USB quirks by specifying quirks=vendorID:productID:quirks"); 175 /* Lists of quirky USB devices, split in device quirks and interface quirks. 176 * Device quirks are applied at the very beginning of the enumeration process, 180 * Interface quirks are applied after reading all the configuration descriptors. 183 * Note that the DELAY_INIT and HONOR_BNUMINTERFACES quirks do not make sense as 184 * interface quirks, as they only influence the enumeration process which is run 185 * before processing the interface quirks. 672 u32 quirks = 0; in usb_detect_static_quirks() local [all …]
|
/linux/drivers/gpu/drm/panfrost/ |
H A D | panfrost_gpu.c | 117 u32 quirks = 0; in panfrost_gpu_init_quirks() local 121 quirks |= SC_LS_PAUSEBUFFER_DISABLE; in panfrost_gpu_init_quirks() 124 quirks |= SC_SDC_DISABLE_OQ_DISCARD; in panfrost_gpu_init_quirks() 127 quirks |= SC_ENABLE_TEXGRD_FLAGS; in panfrost_gpu_init_quirks() 131 quirks |= SC_LS_ATTR_CHECK_DISABLE; in panfrost_gpu_init_quirks() 133 quirks |= SC_LS_ALLOW_ATTR_TYPES; in panfrost_gpu_init_quirks() 137 quirks |= SC_VAR_ALGORITHM; in panfrost_gpu_init_quirks() 140 quirks |= SC_TLS_HASH_ENABLE; in panfrost_gpu_init_quirks() 142 if (quirks) in panfrost_gpu_init_quirks() 143 gpu_write(pfdev, GPU_SHADER_CONFIG, quirks); in panfrost_gpu_init_quirks() [all …]
|
/linux/Documentation/nvme/ |
H A D | feature-and-quirk-policy.rst | 59 Quirks chapter 63 of the standards. Linux uses identifier-based quirks to work around such 64 implementation bugs. The intent of quirks is to deal with widely available 65 hardware, usually consumer, which Linux users can't use without these quirks. 71 maintainability of the driver. In general quirks are a last resort, if no 74 Quirks will not be added to the Linux kernel for hardware that isn't available 77 should be fixed before it is shipped instead of relying on Linux quirks.
|
/linux/drivers/watchdog/ |
H A D | s3c2410_wdt.c | 128 /* These quirks require that we have a PMU register map */ 167 * @quirks: A bitfield of quirks. 179 u32 quirks; member 198 .quirks = 0 203 .quirks = QUIRK_HAS_WTCLRINT_REG, 212 .quirks = QUIRK_HAS_WTCLRINT_REG | QUIRK_HAS_PMU_MASK_RESET | \ 222 .quirks = QUIRK_HAS_WTCLRINT_REG | QUIRK_HAS_PMU_MASK_RESET | \ 232 .quirks = QUIRK_HAS_WTCLRINT_REG | QUIRK_HAS_PMU_MASK_RESET | \ 244 .quirks = QUIRK_HAS_WTCLRINT_REG | QUIRK_HAS_PMU_MASK_RESET | \ 256 .quirks = QUIRK_HAS_WTCLRINT_REG | QUIRK_HAS_PMU_MASK_RESET | \ [all …]
|
/linux/drivers/platform/x86/ |
H A D | eeepc-wmi.c | 99 static struct quirk_entry *quirks; variable 109 quirks = &quirk_asus_et2012_type1; in et2012_quirks() 111 quirks = &quirk_asus_et2012_type3; in et2012_quirks() 121 quirks = dmi->driver_data; in dmi_matched() 188 quirks = &quirk_asus_unknown; in eeepc_wmi_quirks() 189 quirks->hotplug_wireless = hotplug_wireless; in eeepc_wmi_quirks() 193 driver->quirks = quirks; in eeepc_wmi_quirks() 194 driver->quirks->wapf = -1; in eeepc_wmi_quirks()
|
/linux/drivers/gpu/drm/msm/adreno/ |
H A D | a5xx_catalog.c | 22 .quirks = ADRENO_QUIRK_TWO_PASS_USE_WFI | 39 .quirks = ADRENO_QUIRK_TWO_PASS_USE_WFI | 57 .quirks = ADRENO_QUIRK_LMLOADKILL_DISABLE, 74 .quirks = ADRENO_QUIRK_LMLOADKILL_DISABLE, 107 .quirks = ADRENO_QUIRK_LMLOADKILL_DISABLE, 128 .quirks = ADRENO_QUIRK_TWO_PASS_USE_WFI | 147 .quirks = ADRENO_QUIRK_LMLOADKILL_DISABLE,
|
/linux/arch/arm/mach-davinci/ |
H A D | pdata-quirks.c | 3 * Legacy platform_data quirks 191 static void pdata_quirks_check(struct pdata_init *quirks) in pdata_quirks_check() argument 193 while (quirks->compatible) { in pdata_quirks_check() 194 if (of_machine_is_compatible(quirks->compatible)) { in pdata_quirks_check() 195 if (quirks->fn) in pdata_quirks_check() 196 quirks->fn(); in pdata_quirks_check() 198 quirks++; in pdata_quirks_check()
|
/linux/drivers/gpu/drm/imagination/ |
H A D | pvr_device_info.c | 16 [PVR_FW_HAS_BRN_##quirk] = offsetof(struct pvr_device, quirks.has_brn##quirk) 61 drm_warn(from_pvr_device(pvr_dev), "Unsupported quirks in firmware image"); in pvr_device_info_set_common() 71 "Unsupported quirks in firmware image"); in pvr_device_info_set_common() 85 * pvr_device_info_set_quirks() - Set device quirks from device information in firmware 87 * @quirks: Pointer to quirks mask in device information. 88 * @quirks_size: Size of quirks mask, in u64s. 90 void pvr_device_info_set_quirks(struct pvr_device *pvr_dev, const u64 *quirks, u32 quirks_size) in pvr_device_info_set_quirks() argument 94 pvr_device_info_set_common(pvr_dev, quirks, quirks_size, quirks_mapping, in pvr_device_info_set_quirks()
|
/linux/drivers/mmc/host/ |
H A D | sdhci-pltfm.c | 62 host->quirks |= SDHCI_QUIRK_BROKEN_DMA; in sdhci_get_compatibility() 68 host->quirks |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL; in sdhci_get_compatibility() 79 host->quirks |= SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12; in sdhci_get_property() 84 host->quirks |= SDHCI_QUIRK_FORCE_1_BIT_DATA; in sdhci_get_property() 87 host->quirks |= SDHCI_QUIRK_INVERTED_WRITE_PROTECT; in sdhci_get_property() 90 host->quirks |= SDHCI_QUIRK_BROKEN_CARD_DETECTION; in sdhci_get_property() 139 host->quirks = pdata->quirks; in sdhci_pltfm_init()
|
/linux/drivers/bus/ |
H A D | ti-sysc.c | 176 if (ddata->cfg.quirks & SYSC_QUIRK_16BIT) { in sysc_write() 195 if (ddata->cfg.quirks & SYSC_QUIRK_16BIT) { in sysc_read() 216 return !!(ddata->cfg.quirks & SYSC_QUIRK_OPT_CLKS_NEEDED); in sysc_opt_clks_needed() 254 if (ddata->cfg.quirks & SYSS_QUIRK_RESETDONE_INVERTED) in sysc_poll_reset_sysstatus() 314 else if (ddata->cfg.quirks & SYSC_QUIRK_RESET_STATUS) in sysc_wait_softreset() 463 if ((ddata->cfg.quirks & SYSC_QUIRK_EXT_OPT_CLOCK)) { in sysc_get_clocks() 617 if (ddata->legacy_mode || (ddata->cfg.quirks & SYSC_QUIRK_CLKDM_NOAUTO)) in sysc_clkdm_deny_idle() 629 if (ddata->legacy_mode || (ddata->cfg.quirks & SYSC_QUIRK_CLKDM_NOAUTO)) in sysc_clkdm_allow_idle() 765 ddata->cfg.quirks |= SYSC_QUIRK_NO_IDLE_ON_INIT | in sysc_check_quirk_stdout() 808 ddata->cfg.quirks |= SYSC_QUIRK_16BIT | SYSC_QUIRK_USE_CLOCKACT; in sysc_check_quirk_16bit() [all …]
|
/linux/drivers/acpi/x86/ |
H A D | utils.c | 276 * 1. Devices with only the skip / don't-skip AC and battery quirks, 297 * 2. Devices which also have the skip i2c/serdev quirks and which 466 long quirks; in acpi_quirk_skip_i2c_client_enumeration() local 472 quirks = (unsigned long)dmi_id->driver_data; in acpi_quirk_skip_i2c_client_enumeration() 473 if (!(quirks & ACPI_QUIRK_SKIP_I2C_CLIENTS)) in acpi_quirk_skip_i2c_client_enumeration() 484 long quirks = 0; in acpi_dmi_skip_serdev_enumeration() local 491 quirks = (unsigned long)dmi_id->driver_data; in acpi_dmi_skip_serdev_enumeration() 515 if ((quirks & ACPI_QUIRK_PNP_UART1_SKIP) && uid == 1) in acpi_dmi_skip_serdev_enumeration() 521 if ((quirks & ACPI_QUIRK_UART1_SKIP) && uid == 1) in acpi_dmi_skip_serdev_enumeration() 524 if (quirks & ACPI_QUIRK_UART1_TTY_UART2_SKIP) { in acpi_dmi_skip_serdev_enumeration() [all …]
|
/linux/drivers/net/ethernet/via/ |
H A D | via-rhine.c | 281 * The .data field is currently only used to store quirks 467 u32 quirks; member 556 if (rp->quirks & rqStatusWBRace) in rhine_get_events() 565 if (rp->quirks & rqStatusWBRace) in rhine_ack_events() 580 if (rp->quirks & rqWOL) { in rhine_power_init() 590 if (rp->quirks & rq6patterns) in rhine_power_init() 595 if (rp->quirks & rq6patterns) in rhine_power_init() 600 if (rp->quirks & rq6patterns) in rhine_power_init() 643 if (rp->quirks & rqForceReset) in rhine_chip_reset() 655 static void enable_mmio(long pioaddr, u32 quirks) in enable_mmio() argument [all …]
|
/linux/drivers/gpu/drm/renesas/rcar-du/ |
H A D | rcar_lvds.c | 58 unsigned int quirks; member 383 if (lvds->info->quirks & RCAR_LVDS_QUIRK_LANES) in rcar_lvds_enable() 392 if (lvds->info->quirks & RCAR_LVDS_QUIRK_DUAL_LINK) { in rcar_lvds_enable() 428 !(lvds->info->quirks & RCAR_LVDS_QUIRK_EXT_PLL)) { in rcar_lvds_enable() 458 if (!(lvds->info->quirks & RCAR_LVDS_QUIRK_EXT_PLL)) { in rcar_lvds_enable() 467 if (lvds->info->quirks & RCAR_LVDS_QUIRK_PWD) { in rcar_lvds_enable() 473 if (lvds->info->quirks & RCAR_LVDS_QUIRK_GEN3_LVEN) { in rcar_lvds_enable() 479 if (!(lvds->info->quirks & RCAR_LVDS_QUIRK_PWD)) in rcar_lvds_enable() 483 if (!(lvds->info->quirks & RCAR_LVDS_QUIRK_EXT_PLL)) { in rcar_lvds_enable() 508 if (lvds->info->quirks & RCAR_LVDS_QUIRK_GEN3_LVEN) { in rcar_lvds_disable() [all …]
|