/Linux-v6.1/drivers/usb/host/ |
D | xhci-pci.c | 90 * TODO: see if there are any quirks that need to be added to handle in xhci_pci_reinit() 112 xhci->quirks |= driver_data->quirks; in xhci_pci_quirks() 115 /* Look for vendor-specific quirks */ in xhci_pci_quirks() 121 xhci->quirks |= XHCI_RESET_EP_QUIRK; in xhci_pci_quirks() 127 xhci->quirks |= XHCI_SLOW_SUSPEND; in xhci_pci_quirks() 134 xhci->quirks |= XHCI_BROKEN_STREAMS; in xhci_pci_quirks() 139 xhci->quirks |= XHCI_BROKEN_MSI; in xhci_pci_quirks() 144 xhci->quirks |= XHCI_TRUST_TX_LENGTH; in xhci_pci_quirks() 149 xhci->quirks |= XHCI_BROKEN_STREAMS; in xhci_pci_quirks() 153 xhci->quirks |= XHCI_TRUST_TX_LENGTH; in xhci_pci_quirks() [all …]
|
D | xhci-plat.c | 86 xhci->quirks |= XHCI_PLAT | priv->quirks; in xhci_plat_quirks() 126 .quirks = XHCI_RESET_ON_RESUME | XHCI_SUSPEND_RESUME_CLKS, 292 /* Iterate over all parent nodes for finding quirks */ in xhci_plat_probe() 296 xhci->quirks |= XHCI_HW_LPM_DISABLE; in xhci_plat_probe() 299 xhci->quirks |= XHCI_LPM_SUPPORT; in xhci_plat_probe() 302 xhci->quirks |= XHCI_BROKEN_PORT_PED; in xhci_plat_probe() 322 if (priv && (priv->quirks & XHCI_SKIP_PHY_INIT)) in xhci_plat_probe() 325 if (priv && (priv->quirks & XHCI_SG_TRB_CACHE_SIZE_QUIRK)) in xhci_plat_probe() 326 xhci->quirks |= XHCI_SG_TRB_CACHE_SIZE_QUIRK; in xhci_plat_probe() 444 if (!device_may_wakeup(dev) && (xhci->quirks & XHCI_SUSPEND_RESUME_CLKS)) { in xhci_plat_suspend() [all …]
|
/Linux-v6.1/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.1/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 (!of_device_is_compatible(np, quirks->compatible)) in gic_enable_of_quirks() 21 if (quirks->init(data)) in gic_enable_of_quirks() 23 quirks->desc); in gic_enable_of_quirks() 27 void gic_enable_quirks(u32 iidr, const struct gic_quirk *quirks, in gic_enable_quirks() argument 30 for (; quirks->desc; quirks++) { in gic_enable_quirks() 31 if (quirks->compatible) in gic_enable_quirks() 33 if (quirks->iidr != (quirks->mask & iidr)) in gic_enable_quirks() 35 if (quirks->init(data)) in gic_enable_quirks() [all …]
|
/Linux-v6.1/drivers/hid/ |
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-multitouch.c | 51 /* quirks to control the device */ 112 __s32 quirks; member 142 __s32 quirks; member 244 .quirks = MT_QUIRK_ALWAYS_VALID | 247 .quirks = MT_QUIRK_NOT_SEEN_MEANS_UP }, 249 .quirks = MT_QUIRK_ALWAYS_VALID}, 251 .quirks = MT_QUIRK_VALID_IS_CONFIDENCE }, 253 .quirks = MT_QUIRK_VALID_IS_CONFIDENCE | 256 .quirks = MT_QUIRK_VALID_IS_CONFIDENCE | 259 .quirks = MT_QUIRK_VALID_IS_INRANGE | [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-asus.c | 115 unsigned long quirks; member 333 if (drvdata->quirks & QUIRK_MEDION_E1239T) in asus_raw_event() 336 if (drvdata->quirks & QUIRK_USE_KBD_BACKLIGHT) { in asus_raw_event() 356 if (drvdata->quirks & QUIRK_ROG_NKEY_KEYBOARD) { in asus_raw_event() 368 if (drvdata->quirks & QUIRK_ROG_CLAYMORE_II_KEYBOARD) { in asus_raw_event() 553 if (drvdata->quirks & QUIRK_ROG_NKEY_KEYBOARD) { in asus_kbd_register_leds() 761 if (drvdata->quirks & QUIRK_T100CHI && in asus_input_configured() 766 if (drvdata->tp && (drvdata->quirks & QUIRK_MEDION_E1239T)) { in asus_input_configured() 830 if (drvdata->quirks & QUIRK_SKIP_INPUT_MAPPING) { in asus_input_mapping() 842 if ((drvdata->quirks & (QUIRK_T100CHI | QUIRK_T90CHI)) && in asus_input_mapping() [all …]
|
D | hid-quirks.c | 3 * HID quirks support for Linux 964 if (hdev->quirks & HID_QUIRK_NO_IGNORE) in hid_ignore() 966 if (hdev->quirks & HID_QUIRK_IGNORE) in hid_ignore() 1048 /* Dynamic HID quirks list - specified at runtime */ 1057 /* Runtime ("dynamic") quirks manipulation functions */ 1060 * hid_exists_dquirk - find any dynamic quirks for a HID device 1094 * @quirks: the unsigned long quirks value to add/replace 1098 * quirks value with what was provided. Otherwise, add the quirk 1099 * to the dynamic quirks list. 1104 const unsigned long quirks) in hid_modify_dquirk() argument [all …]
|
D | hid-sony.c | 573 unsigned long quirks; member 944 if (sc->quirks & (SINO_LITE_CONTROLLER | FUTUREMAX_DANCE_MAT)) in sony_report_fixup() 951 if ((sc->quirks & VAIO_RDESC_CONSTANT) && *rsize >= 56 && in sony_report_fixup() 963 if (sc->quirks & MOTION_CONTROLLER) in sony_report_fixup() 966 if (sc->quirks & PS3REMOTE) in sony_report_fixup() 973 if ((sc->quirks & SIXAXIS_CONTROLLER_USB) && *rsize >= 45 && in sony_report_fixup() 1003 offset = (sc->quirks & MOTION_CONTROLLER) ? 12 : 30; in sixaxis_parse_report() 1019 if (sc->quirks & SIXAXIS_CONTROLLER) { in sixaxis_parse_report() 1049 int data_offset = (sc->quirks & DUALSHOCK4_CONTROLLER_BT) ? 2 : 0; in dualshock4_parse_report() 1205 max_touch_data = (sc->quirks & DUALSHOCK4_CONTROLLER_BT) ? 4 : 3; in dualshock4_parse_report() [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()
|
/Linux-v6.1/drivers/mmc/core/ |
D | card.h | 158 card->quirks |= data; in add_quirk() 163 card->quirks &= ~data; in remove_quirk() 182 card->quirks |= MMC_QUIRK_NONSTD_SDIO; in wl1251_quirk() 196 card->quirks |= data; in add_quirk_mmc() 203 card->quirks &= ~data; in remove_quirk_mmc() 212 card->quirks |= data; in add_quirk_sd() 219 card->quirks &= ~data; in remove_quirk_sd() 224 return c->quirks & MMC_QUIRK_LENIENT_FN0; in mmc_card_lenient_fn0() 229 return c->quirks & MMC_QUIRK_BLKSZ_FOR_BYTE_MODE; in mmc_blksz_for_byte_mode() 234 return c->quirks & MMC_QUIRK_DISABLE_CD; in mmc_card_disable_cd() [all …]
|
/Linux-v6.1/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. 642 u32 quirks = 0; in usb_detect_static_quirks() local [all …]
|
/Linux-v6.1/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.1/lib/ |
D | packing.c | 70 * @startbit: The index (in logical notation, compensated for quirks) where 73 * @endbit: The index (in logical notation, compensated for quirks) where 81 * @quirks: A bit mask of QUIRK_LITTLE_ENDIAN, QUIRK_LSW32_IS_FIRST and 90 enum packing_op op, u8 quirks) in packing() argument 126 * no quirks, u8 by u8 (aligned at u8 boundaries), from high to low in packing() 166 * adjusted for quirks. The adjusted box_addr will be used for in packing() 171 if (quirks & QUIRK_LITTLE_ENDIAN) in packing() 173 if (quirks & QUIRK_LSW32_IS_FIRST) in packing() 182 if (quirks & QUIRK_MSB_ON_THE_RIGHT) in packing() 198 if (quirks & QUIRK_MSB_ON_THE_RIGHT) in packing()
|
/Linux-v6.1/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.1/drivers/net/ethernet/stmicro/stmmac/ |
D | hwif.c | 105 int (*quirks)(struct stmmac_priv *priv); member 125 .quirks = stmmac_dwmac1_quirks, 143 .quirks = stmmac_dwmac1_quirks, 161 .quirks = stmmac_dwmac4_quirks, 179 .quirks = NULL, 197 .quirks = NULL, 215 .quirks = NULL, 234 .quirks = NULL, 253 .quirks = stmmac_dwxlgmac_quirks, 334 /* Save quirks, if needed for posterior use */ in stmmac_hwif_init() [all …]
|
/Linux-v6.1/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.1/drivers/mmc/host/ |
D | sdhci-pltfm.c | 67 host->quirks |= SDHCI_QUIRK_BROKEN_DMA; in sdhci_get_compatibility() 73 host->quirks |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL; in sdhci_get_compatibility() 87 host->quirks |= SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12; in sdhci_get_property() 92 host->quirks |= SDHCI_QUIRK_FORCE_1_BIT_DATA; in sdhci_get_property() 95 host->quirks |= SDHCI_QUIRK_INVERTED_WRITE_PROTECT; in sdhci_get_property() 98 host->quirks |= SDHCI_QUIRK_BROKEN_CARD_DETECTION; in sdhci_get_property() 152 host->quirks = pdata->quirks; in sdhci_pltfm_init()
|
D | renesas_sdhi_internal_dmac.c | 230 .quirks = &sdhi_quirks_bad_taps2367, 235 .quirks = &sdhi_quirks_bad_taps1357, 240 .quirks = &sdhi_quirks_r8a77965, 245 .quirks = &sdhi_quirks_nohs400, 250 .quirks = &sdhi_quirks_r8a77990, 259 .quirks = &sdhi_quirks_nohs400, 264 .quirks = &sdhi_quirks_fixed_addr, 382 if (!(priv->quirks && priv->quirks->fixed_addr_mode)) in renesas_sdhi_internal_dmac_start_dma() 390 if (priv->quirks && priv->quirks->dma_one_rx_only && in renesas_sdhi_internal_dmac_start_dma() 546 const struct renesas_sdhi_quirks *quirks; in renesas_sdhi_internal_dmac_probe() local [all …]
|
/Linux-v6.1/drivers/platform/x86/dell/ |
D | alienware-wmi.c | 59 static struct quirk_entry *quirks; variable 113 quirks = dmi->driver_data; in dmi_matched() 267 for (zone = 0; zone < quirks->num_zones; zone++) { in match_zone() 451 kcalloc(quirks->num_zones + 1, sizeof(struct device_attribute), in alienware_zone_init() 457 kcalloc(quirks->num_zones + 2, sizeof(struct attribute *), in alienware_zone_init() 463 kcalloc(quirks->num_zones, sizeof(struct platform_zone), in alienware_zone_init() 468 for (zone = 0; zone < quirks->num_zones; zone++) { in alienware_zone_init() 482 zone_attrs[quirks->num_zones] = &dev_attr_lighting_control_state.attr; in alienware_zone_init() 497 for (zone = 0; zone < quirks->num_zones; zone++) in alienware_zone_exit() 623 if (quirks->hdmi_mux > 0) in remove_hdmi() [all …]
|
/Linux-v6.1/drivers/bus/ |
D | ti-sysc.c | 164 if (ddata->cfg.quirks & SYSC_QUIRK_16BIT) { in sysc_write() 183 if (ddata->cfg.quirks & SYSC_QUIRK_16BIT) { in sysc_read() 204 return !!(ddata->cfg.quirks & SYSC_QUIRK_OPT_CLKS_NEEDED); in sysc_opt_clks_needed() 242 if (ddata->cfg.quirks & SYSS_QUIRK_RESETDONE_INVERTED) in sysc_poll_reset_sysstatus() 302 else if (ddata->cfg.quirks & SYSC_QUIRK_RESET_STATUS) in sysc_wait_softreset() 451 if ((ddata->cfg.quirks & SYSC_QUIRK_EXT_OPT_CLOCK)) { in sysc_get_clocks() 605 if (ddata->legacy_mode || (ddata->cfg.quirks & SYSC_QUIRK_CLKDM_NOAUTO)) in sysc_clkdm_deny_idle() 617 if (ddata->legacy_mode || (ddata->cfg.quirks & SYSC_QUIRK_CLKDM_NOAUTO)) in sysc_clkdm_allow_idle() 776 ddata->cfg.quirks |= SYSC_QUIRK_NO_IDLE_ON_INIT | in sysc_check_quirk_stdout() 819 ddata->cfg.quirks |= SYSC_QUIRK_16BIT | SYSC_QUIRK_USE_CLOCKACT; in sysc_check_quirk_16bit() [all …]
|