/Linux-v6.6/drivers/usb/host/ |
D | xhci-pci.c | 213 if (xhci->quirks & XHCI_BROKEN_MSI) in xhci_try_enable_msi() 281 * TODO: see if there are any quirks that need to be added to handle in xhci_pci_reinit() 303 xhci->quirks |= driver_data->quirks; in xhci_pci_quirks() 306 /* Look for vendor-specific quirks */ in xhci_pci_quirks() 312 xhci->quirks |= XHCI_RESET_EP_QUIRK; in xhci_pci_quirks() 318 xhci->quirks |= XHCI_SLOW_SUSPEND; in xhci_pci_quirks() 325 xhci->quirks |= XHCI_BROKEN_STREAMS; in xhci_pci_quirks() 330 xhci->quirks |= XHCI_BROKEN_MSI; in xhci_pci_quirks() 335 xhci->quirks |= XHCI_TRUST_TX_LENGTH; in xhci_pci_quirks() 340 xhci->quirks |= XHCI_BROKEN_STREAMS; in xhci_pci_quirks() [all …]
|
/Linux-v6.6/drivers/irqchip/ |
D | irq-gic-common.c | 16 const struct gic_quirk *quirks, void *data) in gic_enable_of_quirks() argument 18 for (; quirks->desc; quirks++) { in gic_enable_of_quirks() 19 if (!quirks->compatible && !quirks->property) in gic_enable_of_quirks() 21 if (quirks->compatible && in gic_enable_of_quirks() 22 !of_device_is_compatible(np, quirks->compatible)) in gic_enable_of_quirks() 24 if (quirks->property && in gic_enable_of_quirks() 25 !of_property_read_bool(np, quirks->property)) in gic_enable_of_quirks() 27 if (quirks->init(data)) in gic_enable_of_quirks() 29 quirks->desc); in gic_enable_of_quirks() 33 void gic_enable_quirks(u32 iidr, const struct gic_quirk *quirks, in gic_enable_quirks() argument [all …]
|
/Linux-v6.6/drivers/net/can/flexcan/ |
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()
|
D | flexcan.h | 73 u32 quirks; /* quirks needed for different IP cores */ member 122 const u32 quirks = priv->devtype_data.quirks; in flexcan_supports_rx_mailbox() local 124 return quirks & FLEXCAN_QUIRK_SUPPORT_RX_MAILBOX; in flexcan_supports_rx_mailbox() 130 const u32 quirks = priv->devtype_data.quirks; in flexcan_supports_rx_mailbox_rtr() local 132 return (quirks & (FLEXCAN_QUIRK_SUPPORT_RX_MAILBOX | in flexcan_supports_rx_mailbox_rtr() 141 const u32 quirks = priv->devtype_data.quirks; in flexcan_supports_rx_fifo() local 143 return quirks & FLEXCAN_QUIRK_SUPPORT_RX_FIFO; in flexcan_supports_rx_fifo() 149 const u32 quirks = priv->devtype_data.quirks; in flexcan_active_rx_rtr() local 151 if (quirks & FLEXCAN_QUIRK_USE_RX_MAILBOX) { in flexcan_active_rx_rtr() 152 if (quirks & FLEXCAN_QUIRK_SUPPORT_RX_MAILBOX_RTR) in flexcan_active_rx_rtr()
|
/Linux-v6.6/drivers/hid/ |
D | hid-multitouch.c | 51 /* quirks to control the device */ 113 __s32 quirks; member 143 __s32 quirks; member 245 .quirks = MT_QUIRK_ALWAYS_VALID | 248 .quirks = MT_QUIRK_NOT_SEEN_MEANS_UP }, 250 .quirks = MT_QUIRK_ALWAYS_VALID}, 252 .quirks = MT_QUIRK_VALID_IS_CONFIDENCE }, 254 .quirks = MT_QUIRK_VALID_IS_CONFIDENCE | 257 .quirks = MT_QUIRK_VALID_IS_CONFIDENCE | 260 .quirks = MT_QUIRK_VALID_IS_INRANGE | [all …]
|
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 …]
|
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 …]
|
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()
|
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 …]
|
D | hid-asus.c | 117 unsigned long quirks; member 335 if (drvdata->quirks & QUIRK_MEDION_E1239T) in asus_raw_event() 338 if (drvdata->quirks & QUIRK_USE_KBD_BACKLIGHT) { in asus_raw_event() 358 if (drvdata->quirks & QUIRK_ROG_NKEY_KEYBOARD) { in asus_raw_event() 370 if (drvdata->quirks & QUIRK_ROG_CLAYMORE_II_KEYBOARD) { in asus_raw_event() 576 if (drvdata->quirks & QUIRK_ROG_NKEY_KEYBOARD) { in asus_kbd_register_leds() 785 if (drvdata->quirks & QUIRK_T100CHI && in asus_input_configured() 790 if (drvdata->tp && (drvdata->quirks & QUIRK_MEDION_E1239T)) { in asus_input_configured() 854 if (drvdata->quirks & QUIRK_SKIP_INPUT_MAPPING) { in asus_input_mapping() 866 if ((drvdata->quirks & (QUIRK_T100CHI | QUIRK_T90CHI)) && in asus_input_mapping() [all …]
|
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()
|
D | hid-quirks.c | 3 * HID quirks support for Linux 973 if (hdev->quirks & HID_QUIRK_NO_IGNORE) in hid_ignore() 975 if (hdev->quirks & HID_QUIRK_IGNORE) in hid_ignore() 1057 /* Dynamic HID quirks list - specified at runtime */ 1066 /* Runtime ("dynamic") quirks manipulation functions */ 1069 * hid_exists_dquirk - find any dynamic quirks for a HID device 1103 * @quirks: the unsigned long quirks value to add/replace 1107 * quirks value with what was provided. Otherwise, add the quirk 1108 * to the dynamic quirks list. 1113 const unsigned long quirks) in hid_modify_dquirk() argument [all …]
|
/Linux-v6.6/drivers/mmc/core/ |
D | card.h | 169 card->quirks |= data; in add_quirk() 174 card->quirks &= ~data; in remove_quirk() 193 card->quirks |= MMC_QUIRK_NONSTD_SDIO; in wl1251_quirk() 207 card->quirks |= data; in add_quirk_mmc() 214 card->quirks &= ~data; in remove_quirk_mmc() 223 card->quirks |= data; in add_quirk_sd() 230 card->quirks &= ~data; in remove_quirk_sd() 235 return c->quirks & MMC_QUIRK_LENIENT_FN0; in mmc_card_lenient_fn0() 240 return c->quirks & MMC_QUIRK_BLKSZ_FOR_BYTE_MODE; in mmc_blksz_for_byte_mode() 245 return c->quirks & MMC_QUIRK_DISABLE_CD; in mmc_card_disable_cd() [all …]
|
/Linux-v6.6/drivers/usb/core/ |
D | quirks.c | 11 #include <linux/usb/quirks.h> 169 device_param_cb(quirks, &quirks_param_ops, &quirks_param_string, 0644); 170 MODULE_PARM_DESC(quirks, "Add/modify USB quirks by specifying quirks=vendorID:productID:quirks"); 172 /* Lists of quirky USB devices, split in device quirks and interface quirks. 173 * Device quirks are applied at the very beginning of the enumeration process, 177 * Interface quirks are applied after reading all the configuration descriptors. 180 * Note that the DELAY_INIT and HONOR_BNUMINTERFACES quirks do not make sense as 181 * interface quirks, as they only influence the enumeration process which is run 182 * before processing the interface quirks. 649 u32 quirks = 0; in usb_detect_static_quirks() local [all …]
|
/Linux-v6.6/drivers/gpu/drm/panfrost/ |
D | panfrost_gpu.c | 92 u32 quirks = 0; in panfrost_gpu_init_quirks() local 96 quirks |= SC_LS_PAUSEBUFFER_DISABLE; in panfrost_gpu_init_quirks() 99 quirks |= SC_SDC_DISABLE_OQ_DISCARD; in panfrost_gpu_init_quirks() 102 quirks |= SC_ENABLE_TEXGRD_FLAGS; in panfrost_gpu_init_quirks() 106 quirks |= SC_LS_ATTR_CHECK_DISABLE; in panfrost_gpu_init_quirks() 108 quirks |= SC_LS_ALLOW_ATTR_TYPES; in panfrost_gpu_init_quirks() 112 quirks |= SC_VAR_ALGORITHM; in panfrost_gpu_init_quirks() 115 quirks |= SC_TLS_HASH_ENABLE; in panfrost_gpu_init_quirks() 117 if (quirks) in panfrost_gpu_init_quirks() 118 gpu_write(pfdev, GPU_SHADER_CONFIG, quirks); in panfrost_gpu_init_quirks() [all …]
|
/Linux-v6.6/lib/ |
D | packing.c | 58 * @startbit: The index (in logical notation, compensated for quirks) where 61 * @endbit: The index (in logical notation, compensated for quirks) where 69 * @quirks: A bit mask of QUIRK_LITTLE_ENDIAN, QUIRK_LSW32_IS_FIRST and 78 enum packing_op op, u8 quirks) in packing() argument 114 * no quirks, u8 by u8 (aligned at u8 boundaries), from high to low in packing() 154 * adjusted for quirks. The adjusted box_addr will be used for in packing() 159 if (quirks & QUIRK_LITTLE_ENDIAN) in packing() 161 if (quirks & QUIRK_LSW32_IS_FIRST) in packing() 170 if (quirks & QUIRK_MSB_ON_THE_RIGHT) in packing() 186 if (quirks & QUIRK_MSB_ON_THE_RIGHT) in packing()
|
/Linux-v6.6/Documentation/nvme/ |
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-v6.6/drivers/platform/x86/ |
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()
|
D | msi-laptop.c | 112 /* MSI laptop quirks */ 138 static struct quirk_entry *quirks; variable 210 if (quirks->ec_read_only) in set_device_state() 311 if (quirks->old_ec_model) { in show_wlan() 335 if (quirks->old_ec_model) { in show_bluetooth() 360 if (quirks->old_ec_model) in show_threeg() 588 quirks = dmi->driver_data; in dmi_check_cb() 595 if (quirks->ec_delay) in msi_work_delay() 775 if (quirks->ec_read_only) in msi_rfkill_set_state() 919 if (!quirks->load_scm_model) in msi_scm_disable_hw_fn_handling() [all …]
|
/Linux-v6.6/drivers/net/ethernet/stmicro/stmmac/ |
D | hwif.c | 118 int (*quirks)(struct stmmac_priv *priv); member 138 .quirks = stmmac_dwmac1_quirks, 156 .quirks = stmmac_dwmac1_quirks, 174 .quirks = stmmac_dwmac4_quirks, 192 .quirks = NULL, 210 .quirks = NULL, 228 .quirks = NULL, 247 .quirks = NULL, 266 .quirks = stmmac_dwxlgmac_quirks, 347 /* Save quirks, if needed for posterior use */ in stmmac_hwif_init() [all …]
|
/Linux-v6.6/arch/arm/mach-davinci/ |
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-v6.6/drivers/mmc/host/ |
D | sdhci-pltfm.c | 66 host->quirks |= SDHCI_QUIRK_BROKEN_DMA; in sdhci_get_compatibility() 72 host->quirks |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL; in sdhci_get_compatibility() 83 host->quirks |= SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12; in sdhci_get_property() 88 host->quirks |= SDHCI_QUIRK_FORCE_1_BIT_DATA; in sdhci_get_property() 91 host->quirks |= SDHCI_QUIRK_INVERTED_WRITE_PROTECT; in sdhci_get_property() 94 host->quirks |= SDHCI_QUIRK_BROKEN_CARD_DETECTION; in sdhci_get_property() 148 host->quirks = pdata->quirks; in sdhci_pltfm_init()
|
D | renesas_sdhi.h | 41 #define sdhi_has_quirk(p, q) ((p)->quirks && (p)->quirks->q) 56 const struct renesas_sdhi_quirks *quirks; member 78 const struct renesas_sdhi_quirks *quirks; member 103 const struct renesas_sdhi_quirks *quirks);
|
/Linux-v6.6/drivers/acpi/x86/ |
D | utils.c | 270 * 1. Devices with only the skip / don't-skip AC and battery quirks, 291 * 2. Devices which also have the skip i2c/serdev quirks and which 418 long quirks; in acpi_quirk_skip_i2c_client_enumeration() local 424 quirks = (unsigned long)dmi_id->driver_data; in acpi_quirk_skip_i2c_client_enumeration() 425 if (!(quirks & ACPI_QUIRK_SKIP_I2C_CLIENTS)) in acpi_quirk_skip_i2c_client_enumeration() 436 long quirks = 0; in acpi_quirk_skip_serdev_enumeration() local 452 quirks = (unsigned long)dmi_id->driver_data; in acpi_quirk_skip_serdev_enumeration() 454 if ((quirks & ACPI_QUIRK_UART1_SKIP) && uid == 1) in acpi_quirk_skip_serdev_enumeration() 457 if (quirks & ACPI_QUIRK_UART1_TTY_UART2_SKIP) { in acpi_quirk_skip_serdev_enumeration() 472 long quirks; in acpi_quirk_skip_gpio_event_handlers() local [all …]
|
/Linux-v6.6/drivers/watchdog/ |
D | s3c2410_wdt.c | 110 /* These quirks require that we have a PMU register map */ 149 * @quirks: A bitfield of quirks. 161 u32 quirks; member 180 .quirks = 0 185 .quirks = QUIRK_HAS_WTCLRINT_REG, 194 .quirks = QUIRK_HAS_WTCLRINT_REG | QUIRK_HAS_PMU_MASK_RESET | \ 204 .quirks = QUIRK_HAS_WTCLRINT_REG | QUIRK_HAS_PMU_MASK_RESET | \ 214 .quirks = QUIRK_HAS_WTCLRINT_REG | QUIRK_HAS_PMU_MASK_RESET | \ 226 .quirks = QUIRK_HAS_WTCLRINT_REG | QUIRK_HAS_PMU_MASK_RESET | \ 238 .quirks = QUIRK_HAS_WTCLRINT_REG | QUIRK_HAS_PMU_MASK_RESET | \ [all …]
|