/drivers/usb/host/ |
D | xhci-pci.c | 112 xhci->quirks |= driver_data->quirks; in xhci_pci_quirks() 121 xhci->quirks |= XHCI_RESET_EP_QUIRK; in xhci_pci_quirks() 128 xhci->quirks |= XHCI_SLOW_SUSPEND; in xhci_pci_quirks() 135 xhci->quirks |= XHCI_BROKEN_STREAMS; in xhci_pci_quirks() 140 xhci->quirks |= XHCI_BROKEN_MSI; in xhci_pci_quirks() 145 xhci->quirks |= XHCI_TRUST_TX_LENGTH; in xhci_pci_quirks() 150 xhci->quirks |= XHCI_BROKEN_STREAMS; in xhci_pci_quirks() 154 xhci->quirks |= XHCI_TRUST_TX_LENGTH; in xhci_pci_quirks() 157 xhci->quirks |= XHCI_NEC_HOST; in xhci_pci_quirks() 160 xhci->quirks |= XHCI_AMD_0x96_HOST; in xhci_pci_quirks() [all …]
|
D | xhci-plat.c | 96 xhci->quirks |= XHCI_PLAT | priv->quirks; in xhci_plat_quirks() 137 .quirks = XHCI_RESET_ON_RESUME | XHCI_SUSPEND_RESUME_CLKS, 353 xhci->quirks |= XHCI_HW_LPM_DISABLE; in xhci_plat_probe() 356 xhci->quirks |= XHCI_LPM_SUPPORT; in xhci_plat_probe() 359 xhci->quirks |= XHCI_BROKEN_PORT_PED; in xhci_plat_probe() 362 xhci->quirks |= XHCI_SG_TRB_CACHE_SIZE_QUIRK; in xhci_plat_probe() 393 if ((xhci->quirks & XHCI_SKIP_PHY_INIT) || (priv && (priv->quirks & XHCI_SKIP_PHY_INIT))) in xhci_plat_probe() 396 if (priv && (priv->quirks & XHCI_SG_TRB_CACHE_SIZE_QUIRK)) in xhci_plat_probe() 397 xhci->quirks |= XHCI_SG_TRB_CACHE_SIZE_QUIRK; in xhci_plat_probe() 498 if (!device_may_wakeup(dev) && (xhci->quirks & XHCI_SUSPEND_RESUME_CLKS)) { in xhci_plat_suspend() [all …]
|
/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 …]
|
/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 | 111 __s32 quirks; member 141 __s32 quirks; member 240 .quirks = MT_QUIRK_ALWAYS_VALID | 243 .quirks = MT_QUIRK_NOT_SEEN_MEANS_UP }, 245 .quirks = MT_QUIRK_ALWAYS_VALID}, 247 .quirks = MT_QUIRK_VALID_IS_CONFIDENCE }, 249 .quirks = MT_QUIRK_VALID_IS_CONFIDENCE | 252 .quirks = MT_QUIRK_VALID_IS_CONFIDENCE | 255 .quirks = MT_QUIRK_VALID_IS_INRANGE | 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-sony.c | 545 unsigned long quirks; member 845 if (sc->quirks & (SINO_LITE_CONTROLLER | FUTUREMAX_DANCE_MAT)) in sony_report_fixup() 852 if ((sc->quirks & VAIO_RDESC_CONSTANT) && *rsize >= 56 && in sony_report_fixup() 864 if (sc->quirks & MOTION_CONTROLLER) in sony_report_fixup() 867 if (sc->quirks & PS3REMOTE) in sony_report_fixup() 874 if ((sc->quirks & SIXAXIS_CONTROLLER_USB) && *rsize >= 45 && in sony_report_fixup() 903 offset = (sc->quirks & MOTION_CONTROLLER) ? 12 : 30; in sixaxis_parse_report() 922 if (sc->quirks & SIXAXIS_CONTROLLER) { in sixaxis_parse_report() 951 int data_offset = (sc->quirks & DUALSHOCK4_CONTROLLER_BT) ? 2 : 0; in dualshock4_parse_report() 1084 max_touch_data = (sc->quirks & DUALSHOCK4_CONTROLLER_BT) ? 4 : 3; in dualshock4_parse_report() [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-lg.c | 435 if ((drv_data->quirks & LG_RDESC) && *rsize >= 91 && rdesc[83] == 0x26 && in lg_report_fixup() 442 if ((drv_data->quirks & LG_RDESC_REL_ABS) && *rsize >= 51 && in lg_report_fixup() 675 if ((drv_data->quirks & LG_WIRELESS) && lg_wireless_mapping(hi, usage, bit, max)) in lg_input_mapping() 685 if ((drv_data->quirks & LG_IGNORE_DOUBLED_WHEEL) && in lg_input_mapping() 689 if ((drv_data->quirks & LG_EXPANDED_KEYMAP) && in lg_input_mapping() 707 if ((drv_data->quirks & LG_BAD_RELATIVE_KEYS) && usage->type == EV_KEY && in lg_input_mapped() 711 if ((drv_data->quirks & LG_DUPLICATE_USAGES) && (usage->type == EV_KEY || in lg_input_mapped() 747 if ((drv_data->quirks & LG_INVERT_HWHEEL) && usage->code == REL_HWHEEL) { in lg_event() 752 if (drv_data->quirks & LG_FF4) { in lg_event() 764 if (drv_data->quirks & LG_FF4) in lg_raw_event() [all …]
|
D | hid-asus.c | 113 unsigned long quirks; member 333 if (drvdata->quirks & QUIRK_MEDION_E1239T) in asus_raw_event() 685 if (drvdata->quirks & QUIRK_T100CHI && in asus_input_configured() 690 if (drvdata->tp && (drvdata->quirks & QUIRK_MEDION_E1239T)) { in asus_input_configured() 754 if (drvdata->quirks & QUIRK_SKIP_INPUT_MAPPING) { in asus_input_mapping() 766 if ((drvdata->quirks & (QUIRK_T100CHI | QUIRK_T90CHI)) && in asus_input_mapping() 815 if (drvdata->quirks & QUIRK_USE_KBD_BACKLIGHT) in asus_input_mapping() 849 if (drvdata->quirks & QUIRK_NO_CONSUMER_USAGES && in asus_input_mapping() 868 if ((drvdata->quirks & QUIRK_MEDION_E1239T) && in asus_input_mapping() 945 drvdata->quirks = id->driver_data; in asus_probe() [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-a4tech.c | 29 unsigned long quirks; member 40 if (a4->quirks & A4_2WHEEL_MOUSE_HACK_B8 && in a4_input_mapping() 67 if ((a4->quirks & A4_2WHEEL_MOUSE_HACK_7) && usage->hid == 0x00090007) in a4_input_mapped() 84 if (a4->quirks & A4_2WHEEL_MOUSE_HACK_B8) { in a4_event() 99 if ((a4->quirks & A4_2WHEEL_MOUSE_HACK_7) && usage->hid == 0x00090007) { in a4_event() 124 a4->quirks = id->driver_data; in a4_probe()
|
/drivers/mmc/core/ |
D | card.h | 140 card->quirks |= data; in add_quirk() 145 card->quirks &= ~data; in remove_quirk() 160 card->quirks |= data; in add_quirk_mmc() 167 card->quirks &= ~data; in remove_quirk_mmc() 176 card->quirks |= data; in add_quirk_sd() 183 card->quirks &= ~data; in remove_quirk_sd() 188 return c->quirks & MMC_QUIRK_LENIENT_FN0; in mmc_card_lenient_fn0() 193 return c->quirks & MMC_QUIRK_BLKSZ_FOR_BYTE_MODE; in mmc_blksz_for_byte_mode() 198 return c->quirks & MMC_QUIRK_DISABLE_CD; in mmc_card_disable_cd() 203 return c->quirks & MMC_QUIRK_NONSTD_FUNC_IF; in mmc_card_nonstd_func_interface() [all …]
|
/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_TLS_HASH_ENABLE; in panfrost_gpu_init_quirks() 114 if (quirks) in panfrost_gpu_init_quirks() 115 gpu_write(pfdev, GPU_SHADER_CONFIG, quirks); in panfrost_gpu_init_quirks() 118 quirks = gpu_read(pfdev, GPU_TILER_CONFIG); in panfrost_gpu_init_quirks() [all …]
|
/drivers/platform/x86/ |
D | eeepc-wmi.c | 104 static struct quirk_entry *quirks; variable 114 quirks = &quirk_asus_et2012_type1; in et2012_quirks() 116 quirks = &quirk_asus_et2012_type3; in et2012_quirks() 126 quirks = dmi->driver_data; in dmi_matched() 211 quirks = &quirk_asus_unknown; in eeepc_wmi_quirks() 212 quirks->hotplug_wireless = hotplug_wireless; in eeepc_wmi_quirks() 216 driver->quirks = quirks; in eeepc_wmi_quirks() 217 driver->quirks->wapf = -1; in eeepc_wmi_quirks()
|
D | msi-laptop.c | 140 static struct quirk_entry *quirks; variable 212 if (quirks->ec_read_only) in set_device_state() 313 if (quirks->old_ec_model) { in show_wlan() 337 if (quirks->old_ec_model) { in show_bluetooth() 362 if (quirks->old_ec_model) in show_threeg() 590 quirks = dmi->driver_data; in dmi_check_cb() 768 if (quirks->ec_read_only) in msi_rfkill_set_state() 820 if (quirks->ec_delay) { in msi_laptop_i8042_filter() 829 if (quirks->ec_delay) { in msi_laptop_i8042_filter() 900 if (quirks->ec_delay) { in rfkill_init() [all …]
|
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 …]
|
/drivers/usb/core/ |
D | quirks.c | 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"); 650 u32 quirks = 0; in usb_detect_static_quirks() local 660 quirks |= (u32)(id->driver_info); in usb_detect_static_quirks() 663 return quirks; in usb_detect_static_quirks() 691 udev->quirks = usb_detect_static_quirks(udev, usb_quirk_list); in usb_detect_quirks() 698 udev->quirks |= usb_detect_static_quirks(udev, in usb_detect_quirks() 701 udev->quirks ^= usb_detect_dynamic_quirks(udev); in usb_detect_quirks() 703 if (udev->quirks) in usb_detect_quirks() 705 udev->quirks); in usb_detect_quirks() [all …]
|
/drivers/net/ethernet/via/ |
D | via-rhine.c | 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 659 if (quirks & rqNeedEnMMIO) { in enable_mmio() [all …]
|
/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_core.c | 369 u32 bad_taps = priv->quirks ? priv->quirks->hs400_bad_taps : 0; in renesas_sdhi_hs400_complete() 370 bool use_4tap = priv->quirks && priv->quirks->hs400_4taps; in renesas_sdhi_hs400_complete() 540 if (priv->quirks && (priv->quirks->hs400_calib_table || priv->quirks->hs400_bad_taps)) in renesas_sdhi_reset_hs400_mode() 701 u32 bad_taps = priv->quirks ? priv->quirks->hs400_bad_taps : 0; in renesas_sdhi_manual_correction() 762 bool use_4tap = priv->quirks && priv->quirks->hs400_4taps; in renesas_sdhi_check_scc_error() 918 const struct renesas_sdhi_quirks *quirks = NULL; in renesas_sdhi_probe() local 933 quirks = attr->data; in renesas_sdhi_probe() 944 priv->quirks = quirks; in renesas_sdhi_probe() 1001 if (quirks && quirks->hs400_disabled) in renesas_sdhi_probe() 1066 if (ver == SDHI_VER_GEN3_SDMMC && quirks && quirks->hs400_calib_table) { in renesas_sdhi_probe() [all …]
|
/drivers/bus/ |
D | ti-sysc.c | 163 if (ddata->cfg.quirks & SYSC_QUIRK_16BIT) { in sysc_write() 182 if (ddata->cfg.quirks & SYSC_QUIRK_16BIT) { in sysc_read() 203 return !!(ddata->cfg.quirks & SYSC_QUIRK_OPT_CLKS_NEEDED); in sysc_opt_clks_needed() 241 if (ddata->cfg.quirks & SYSS_QUIRK_RESETDONE_INVERTED) in sysc_poll_reset_sysstatus() 301 else if (ddata->cfg.quirks & SYSC_QUIRK_RESET_STATUS) in sysc_wait_softreset() 450 if ((ddata->cfg.quirks & SYSC_QUIRK_EXT_OPT_CLOCK)) { in sysc_get_clocks() 604 if (ddata->legacy_mode || (ddata->cfg.quirks & SYSC_QUIRK_CLKDM_NOAUTO)) in sysc_clkdm_deny_idle() 616 if (ddata->legacy_mode || (ddata->cfg.quirks & SYSC_QUIRK_CLKDM_NOAUTO)) in sysc_clkdm_allow_idle() 775 ddata->cfg.quirks |= SYSC_QUIRK_NO_IDLE_ON_INIT | in sysc_check_quirk_stdout() 818 ddata->cfg.quirks |= SYSC_QUIRK_16BIT | SYSC_QUIRK_USE_CLOCKACT; in sysc_check_quirk_16bit() [all …]
|
/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, 335 priv->hwif_quirks = entry->quirks; in stmmac_hwif_init()
|
/drivers/gpu/drm/rcar-du/ |
D | rcar_lvds.c | 55 unsigned int quirks; member 376 if (WARN_ON(!(lvds->info->quirks & RCAR_LVDS_QUIRK_EXT_PLL))) in rcar_lvds_clk_enable() 395 if (WARN_ON(!(lvds->info->quirks & RCAR_LVDS_QUIRK_EXT_PLL))) in rcar_lvds_clk_disable() 482 if (lvds->info->quirks & RCAR_LVDS_QUIRK_LANES) in __rcar_lvds_atomic_enable() 491 if (lvds->info->quirks & RCAR_LVDS_QUIRK_DUAL_LINK) { in __rcar_lvds_atomic_enable() 553 if (!(lvds->info->quirks & RCAR_LVDS_QUIRK_EXT_PLL)) { in __rcar_lvds_atomic_enable() 562 if (lvds->info->quirks & RCAR_LVDS_QUIRK_PWD) { in __rcar_lvds_atomic_enable() 568 if (lvds->info->quirks & RCAR_LVDS_QUIRK_GEN3_LVEN) { in __rcar_lvds_atomic_enable() 574 if (!(lvds->info->quirks & RCAR_LVDS_QUIRK_PWD)) in __rcar_lvds_atomic_enable() 578 if (!(lvds->info->quirks & RCAR_LVDS_QUIRK_EXT_PLL)) { in __rcar_lvds_atomic_enable() [all …]
|
/drivers/gpu/drm/sun4i/ |
D | sun4i_tcon.c | 90 WARN_ON(!tcon->quirks->has_channel_0); in sun4i_tcon_channel_set_status() 97 WARN_ON(!tcon->quirks->has_channel_1); in sun4i_tcon_channel_set_status() 180 if (tcon->quirks->setup_lvds_phy) in sun4i_tcon_lvds_set_status() 181 tcon->quirks->setup_lvds_phy(tcon, encoder); in sun4i_tcon_lvds_set_status() 268 if (tcon->quirks->set_mux) in sun4i_tcon_set_mux() 269 ret = tcon->quirks->set_mux(tcon, encoder); in sun4i_tcon_set_mux() 436 WARN_ON(!tcon->quirks->has_channel_0); in sun4i_tcon0_mode_set_lvds() 513 WARN_ON(!tcon->quirks->has_channel_0); in sun4i_tcon0_mode_set_rgb() 515 tcon->dclk_min_div = tcon->quirks->dclk_min_div; in sun4i_tcon0_mode_set_rgb() 598 WARN_ON(!tcon->quirks->has_channel_1); in sun4i_tcon1_mode_set() [all …]
|