Home
last modified time | relevance | path

Searched refs:quirk (Results 1 – 25 of 204) sorted by relevance

123456789

/openbmc/qemu/hw/vfio/
H A Dpci-quirks.c281 VFIOQuirk *quirk = g_new0(VFIOQuirk, 1); in vfio_quirk_alloc() local
282 QLIST_INIT(&quirk->ioeventfds); in vfio_quirk_alloc()
283 quirk->mem = g_new0(MemoryRegion, nr_mem); in vfio_quirk_alloc()
284 quirk->nr_mem = nr_mem; in vfio_quirk_alloc()
286 return quirk; in vfio_quirk_alloc()
323 static void vfio_drop_dynamic_eventfds(VFIOPCIDevice *vdev, VFIOQuirk *quirk) in vfio_drop_dynamic_eventfds() argument
327 QLIST_FOREACH_SAFE(ioeventfd, &quirk->ioeventfds, next, tmp) { in vfio_drop_dynamic_eventfds()
411 VFIOQuirk *quirk; in vfio_vga_probe_ati_3c3_quirk() local
422 quirk = vfio_quirk_alloc(1); in vfio_vga_probe_ati_3c3_quirk()
424 memory_region_init_io(quirk->mem, OBJECT(vdev), &vfio_ati_3c3_quirk, vdev, in vfio_vga_probe_ati_3c3_quirk()
[all …]
H A Digd.c448 VFIOQuirk *quirk; in vfio_probe_igd_bar0_quirk() local
472 quirk = vfio_quirk_alloc(1); in vfio_probe_igd_bar0_quirk()
473 quirk->data = vdev; in vfio_probe_igd_bar0_quirk()
475 memory_region_init_io(&quirk->mem[0], OBJECT(vdev), &vfio_igd_bdsm_quirk, in vfio_probe_igd_bar0_quirk()
478 IGD_BDSM_MMIO_OFFSET, &quirk->mem[0], in vfio_probe_igd_bar0_quirk()
481 QLIST_INSERT_HEAD(&vdev->bars[nr].quirks, quirk, next); in vfio_probe_igd_bar0_quirk()
514 VFIOQuirk *quirk; in vfio_probe_igd_bar4_quirk() local
654 quirk = vfio_quirk_alloc(2); in vfio_probe_igd_bar4_quirk()
655 igd = quirk->data = g_malloc0(sizeof(*igd)); in vfio_probe_igd_bar4_quirk()
667 memory_region_init_io(&quirk->mem[0], OBJECT(vdev), &vfio_igd_index_quirk, in vfio_probe_igd_bar4_quirk()
[all …]
/openbmc/linux/drivers/xen/xen-pciback/
H A Dconf_space_quirks.c46 static inline void register_quirk(struct xen_pcibk_config_quirk *quirk) in register_quirk() argument
48 list_add_tail(&quirk->quirks_list, &xen_pcibk_quirks); in register_quirk()
97 struct xen_pcibk_config_quirk *quirk; in xen_pcibk_config_quirks_init() local
100 quirk = kzalloc(sizeof(*quirk), GFP_KERNEL); in xen_pcibk_config_quirks_init()
101 if (!quirk) { in xen_pcibk_config_quirks_init()
106 quirk->devid.vendor = dev->vendor; in xen_pcibk_config_quirks_init()
107 quirk->devid.device = dev->device; in xen_pcibk_config_quirks_init()
108 quirk->devid.subvendor = dev->subsystem_vendor; in xen_pcibk_config_quirks_init()
109 quirk->devid.subdevice = dev->subsystem_device; in xen_pcibk_config_quirks_init()
110 quirk->devid.class = 0; in xen_pcibk_config_quirks_init()
[all …]
/openbmc/linux/sound/soc/intel/boards/
H A Dsof_es8336.c27 #define SOF_ES8336_SSP_CODEC(quirk) ((quirk) & GENMASK(3, 0)) argument
36 #define SOF_NO_OF_HDMI_CAPTURE_SSP(quirk) \ argument
37 (((quirk) << SOF_NO_OF_HDMI_CAPTURE_SSP_SHIFT) & SOF_NO_OF_HDMI_CAPTURE_SSP_MASK)
41 #define SOF_HDMI_CAPTURE_1_SSP(quirk) \ argument
42 (((quirk) << SOF_HDMI_CAPTURE_1_SSP_SHIFT) & SOF_HDMI_CAPTURE_1_SSP_MASK)
46 #define SOF_HDMI_CAPTURE_2_SSP(quirk) \ argument
47 (((quirk) << SOF_HDMI_CAPTURE_2_SSP_SHIFT) & SOF_HDMI_CAPTURE_2_SSP_MASK)
54 static unsigned long quirk; variable
57 module_param_named(quirk, quirk_override, int, 0444);
58 MODULE_PARM_DESC(quirk, "Board-specific quirk override");
[all …]
H A Dbytcht_es8316.c49 #define BYT_CHT_ES8316_MAP(quirk) ((quirk) & GENMASK(3, 0)) argument
54 static unsigned long quirk; variable
57 module_param_named(quirk, quirk_override, int, 0444);
58 MODULE_PARM_DESC(quirk, "Board-specific quirk override");
62 if (BYT_CHT_ES8316_MAP(quirk) == BYT_CHT_ES8316_INTMIC_IN1_MAP) in log_quirks()
64 if (BYT_CHT_ES8316_MAP(quirk) == BYT_CHT_ES8316_INTMIC_IN2_MAP) in log_quirks()
66 if (quirk & BYT_CHT_ES8316_SSP0) in log_quirks()
68 if (quirk & BYT_CHT_ES8316_MONO_SPEAKER) in log_quirks()
70 if (quirk & BYT_CHT_ES8316_JD_INVERTED) in log_quirks()
169 switch (BYT_CHT_ES8316_MAP(quirk)) { in byt_cht_es8316_init()
[all …]
H A Dsof_ssp_amp.c28 #define SOF_AMPLIFIER_SSP(quirk) ((quirk) & GENMASK(3, 0)) argument
35 #define SOF_NO_OF_HDMI_CAPTURE_SSP(quirk) \ argument
36 (((quirk) << SOF_NO_OF_HDMI_CAPTURE_SSP_SHIFT) & SOF_NO_OF_HDMI_CAPTURE_SSP_MASK)
40 #define SOF_HDMI_CAPTURE_1_SSP(quirk) \ argument
41 (((quirk) << SOF_HDMI_CAPTURE_1_SSP_SHIFT) & SOF_HDMI_CAPTURE_1_SSP_MASK)
45 #define SOF_HDMI_CAPTURE_2_SSP(quirk) \ argument
46 (((quirk) << SOF_HDMI_CAPTURE_2_SSP_SHIFT) & SOF_HDMI_CAPTURE_2_SSP_MASK)
52 #define SOF_NO_OF_HDMI_PLAYBACK(quirk) \ argument
53 (((quirk) << SOF_NO_OF_HDMI_PLAYBACK_SHIFT) & SOF_NO_OF_HDMI_PLAYBACK_MASK)
59 #define SOF_BT_OFFLOAD_SSP(quirk) \ argument
[all …]
H A Dsof_sdw_common.h44 #define SOF_JACK_JDSRC(quirk) ((quirk) & GENMASK(3, 0)) argument
49 #define SOF_SSP_GET_PORT(quirk) (((quirk) >> 7) & GENMASK(5, 0)) argument
55 #define SOF_BT_OFFLOAD_SSP(quirk) \ argument
56 (((quirk) << SOF_BT_OFFLOAD_SSP_SHIFT) & SOF_BT_OFFLOAD_SSP_MASK)
H A Dbytcr_rt5651.c61 #define BYT_RT5651_MAP(quirk) ((quirk) & GENMASK(3, 0)) argument
62 #define BYT_RT5651_JDSRC(quirk) (((quirk) & GENMASK(7, 4)) >> 4) argument
63 #define BYT_RT5651_OVCD_TH(quirk) (((quirk) & GENMASK(12, 8)) >> 8) argument
64 #define BYT_RT5651_OVCD_SF(quirk) (((quirk) & GENMASK(14, 13)) >> 13) argument
98 module_param_named(quirk, quirk_override, int, 0444);
99 MODULE_PARM_DESC(quirk, "Board-specific quirk override");
/openbmc/linux/arch/arm/mach-shmobile/
H A Dregulator-quirk-rcar-gen2.c143 struct regulator_quirk *quirk, *pos, *tmp; in rcar_gen2_regulator_quirk() local
167 quirk = kzalloc(sizeof(*quirk), GFP_KERNEL); in rcar_gen2_regulator_quirk()
168 if (!quirk) { in rcar_gen2_regulator_quirk()
174 argsa = &quirk->irq_args; in rcar_gen2_regulator_quirk()
175 memcpy(&quirk->i2c_msg, id->data, sizeof(quirk->i2c_msg)); in rcar_gen2_regulator_quirk()
177 quirk->id = id; in rcar_gen2_regulator_quirk()
178 quirk->np = of_node_get(np); in rcar_gen2_regulator_quirk()
179 quirk->i2c_msg.addr = addr; in rcar_gen2_regulator_quirk()
184 kfree(quirk); in rcar_gen2_regulator_quirk()
199 quirk->shared = true; in rcar_gen2_regulator_quirk()
[all …]
H A DMakefile25 obj-$(CONFIG_ARCH_R8A7790) += regulator-quirk-rcar-gen2.o
26 obj-$(CONFIG_ARCH_R8A7791) += regulator-quirk-rcar-gen2.o
27 obj-$(CONFIG_ARCH_R8A7793) += regulator-quirk-rcar-gen2.o
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pci/
H A Dagp.c106 const struct nvkm_device_agp_quirk *quirk = nvkm_device_agp_quirks; in nvkm_agp_ctor() local
139 while (quirk->hostbridge_vendor) { in nvkm_agp_ctor()
140 if (info.device->vendor == quirk->hostbridge_vendor && in nvkm_agp_ctor()
141 info.device->device == quirk->hostbridge_device && in nvkm_agp_ctor()
142 (quirk->chip_vendor == (u16)PCI_ANY_ID || in nvkm_agp_ctor()
143 pci->pdev->vendor == quirk->chip_vendor) && in nvkm_agp_ctor()
144 (quirk->chip_device == (u16)PCI_ANY_ID || in nvkm_agp_ctor()
145 pci->pdev->device == quirk->chip_device)) { in nvkm_agp_ctor()
148 quirk->mode); in nvkm_agp_ctor()
149 mode = quirk->mode; in nvkm_agp_ctor()
[all …]
/openbmc/linux/drivers/tty/serial/8250/
H A Dserial_cs.c90 const struct serial_quirk *quirk; member
300 if (info->quirk && info->quirk->wakeup) in serial_resume()
301 info->quirk->wakeup(link); in serial_resume()
367 if (info->quirk && info->quirk->setup) in setup_serial()
368 info->quirk->setup(handle, &uart); in setup_serial()
481 if (info->quirk && info->quirk->config) in simple_config()
482 info->quirk->config(link); in simple_config()
558 if (info->quirk && info->quirk->config) in multi_config()
559 info->quirk->config(link); in multi_config()
585 if (info->quirk && info->quirk->wakeup) in multi_config()
[all …]
/openbmc/linux/drivers/media/i2c/ccs/
H A Dccs-quirk.h66 ((sensor)->minfo.quirk && \
67 (sensor)->minfo.quirk->_quirk ? \
68 (sensor)->minfo.quirk->_quirk(sensor, ##__VA_ARGS__) : 0)
71 ((sensor)->minfo.quirk ? \
72 (sensor)->minfo.quirk->flags & _quirk : 0)
H A Dccs.h98 const struct ccs_quirk *quirk; member
122 const struct ccs_quirk *quirk; member
131 .quirk = _quirk, }
139 .quirk = _quirk, }
154 .quirk = _quirk, }
/openbmc/linux/sound/usb/hiface/
H A Dchip.c48 const struct hiface_vendor_quirk *quirk, in hiface_chip_create() argument
68 if (quirk && quirk->device_name) in hiface_chip_create()
69 strscpy(card->shortname, quirk->device_name, sizeof(card->shortname)); in hiface_chip_create()
90 const struct hiface_vendor_quirk *quirk = (struct hiface_vendor_quirk *)usb_id->driver_info; in hiface_chip_probe() local
116 ret = hiface_chip_create(intf, device, i, quirk, &chip); in hiface_chip_probe()
120 ret = hiface_pcm_init(chip, quirk ? quirk->extra_freq : 0); in hiface_chip_probe()
/openbmc/linux/sound/usb/
H A Dcard.c503 const struct snd_usb_audio_quirk *quirk) in usb_audio_make_shortname() argument
512 else if (quirk && quirk->product_name) in usb_audio_make_shortname()
513 s = quirk->product_name; in usb_audio_make_shortname()
534 const struct snd_usb_audio_quirk *quirk) in usb_audio_make_longname() argument
553 else if (quirk && quirk->vendor_name) in usb_audio_make_longname()
554 s = quirk->vendor_name; in usb_audio_make_longname()
604 const struct snd_usb_audio_quirk *quirk, in snd_usb_audio_create() argument
669 usb_audio_make_shortname(dev, chip, quirk); in snd_usb_audio_create()
670 usb_audio_make_longname(dev, chip, quirk); in snd_usb_audio_create()
778 const struct snd_usb_audio_quirk *quirk = in usb_audio_probe() local
[all …]
H A Dmidi2.h10 const struct snd_usb_audio_quirk *quirk,
20 const struct snd_usb_audio_quirk *quirk, in snd_usb_midi_v2_create() argument
24 quirk, usb_id, &chip->num_rawmidis); in snd_usb_midi_v2_create()
H A Dquirks.c39 const struct snd_usb_audio_quirk *quirk; in create_composite_quirk() local
42 for (quirk = quirk_comp->data; quirk->ifnum >= 0; ++quirk) { in create_composite_quirk()
43 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk()
46 if (quirk->ifnum != probed_ifnum && in create_composite_quirk()
49 err = snd_usb_create_quirk(chip, iface, driver, quirk); in create_composite_quirk()
54 for (quirk = quirk_comp->data; quirk->ifnum >= 0; ++quirk) { in create_composite_quirk()
55 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk()
58 if (quirk->ifnum != probed_ifnum && in create_composite_quirk()
73 const struct snd_usb_audio_quirk *quirk) in ignore_interface_quirk() argument
82 const struct snd_usb_audio_quirk *quirk) in create_any_midi_quirk() argument
[all …]
H A Dmidi.h48 const struct snd_usb_audio_quirk *quirk,
55 const struct snd_usb_audio_quirk *quirk) in snd_usbmidi_create() argument
57 return __snd_usbmidi_create(card, iface, midi_list, quirk, 0, NULL); in snd_usbmidi_create()
H A Dquirks.h12 const struct snd_usb_audio_quirk *quirk);
20 const struct snd_usb_audio_quirk *quirk,
25 const struct snd_usb_audio_quirk *quirk,
/openbmc/linux/drivers/acpi/
H A Dpci_irq.c112 const struct prt_quirk *quirk; in do_prt_fixups() local
115 quirk = &prt_quirks[i]; in do_prt_fixups()
118 if (dmi_check_system(quirk->system) && in do_prt_fixups()
119 entry->id.segment == quirk->segment && in do_prt_fixups()
120 entry->id.bus == quirk->bus && in do_prt_fixups()
121 entry->id.device == quirk->device && in do_prt_fixups()
122 entry->pin == quirk->pin && in do_prt_fixups()
123 !strcmp(prt->source, quirk->source) && in do_prt_fixups()
124 strlen(prt->source) >= strlen(quirk->actual_source)) { in do_prt_fixups()
130 prt->source, quirk->actual_source); in do_prt_fixups()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_quirks.c12 static void intel_set_quirk(struct drm_i915_private *i915, enum intel_quirk_id quirk) in intel_set_quirk() argument
14 i915->display.quirks.mask |= BIT(quirk); in intel_set_quirk()
227 bool intel_has_quirk(struct drm_i915_private *i915, enum intel_quirk_id quirk) in intel_has_quirk() argument
229 return i915->display.quirks.mask & BIT(quirk); in intel_has_quirk()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/device/
H A Dpci.c37 const struct nvkm_device_quirk quirk; member
1632 const struct nvkm_device_quirk *quirk = NULL; in nvkm_device_pci_new() local
1655 quirk = &pciv->quirk; in nvkm_device_pci_new()
1675 ret = nvkm_device_ctor(&nvkm_device_pci_func, quirk, &pci_dev->dev, in nvkm_device_pci_new()
/openbmc/u-boot/drivers/i2c/
H A Dmxc_i2c.c172 bool quirk = i2c_bus->driver_data & I2C_QUIRK_FLAG ? true : false; in bus_i2c_set_bus_speed() local
175 int reg_shift = quirk ? VF610_I2C_REGSHIFT : IMX_I2C_REGSHIFT; in bus_i2c_set_bus_speed()
197 bool quirk = i2c_bus->driver_data & I2C_QUIRK_FLAG ? true : false; in wait_for_sr_state() local
198 int reg_shift = quirk ? VF610_I2C_REGSHIFT : IMX_I2C_REGSHIFT; in wait_for_sr_state()
204 if (quirk) in wait_for_sr_state()
281 bool quirk = i2c_bus->driver_data & I2C_QUIRK_FLAG ? true : false; in i2c_init_transfer_() local
283 int reg_shift = quirk ? VF610_I2C_REGSHIFT : IMX_I2C_REGSHIFT; in i2c_init_transfer_()
289 if (quirk) in i2c_init_transfer_()
700 bool quirk = mxc_i2c_buses[I2C_EARLY_INIT_INDEX].driver_data in i2c_early_init_f() local
702 int reg_shift = quirk ? VF610_I2C_REGSHIFT : IMX_I2C_REGSHIFT; in i2c_early_init_f()
/openbmc/linux/drivers/firmware/
H A Dqcom_scm-smc.c40 struct arm_smccc_quirk quirk = { .id = ARM_SMCCC_QUIRK_QCOM_A6 }; in __scm_smc_do_quirk() local
42 quirk.state.a6 = 0; in __scm_smc_do_quirk()
47 quirk.state.a6, smc->args[7], res, &quirk); in __scm_smc_do_quirk()

123456789