Home
last modified time | relevance | path

Searched refs:pci_write_config_dword (Results 1 – 25 of 276) sorted by relevance

12345678910>>...12

/Linux-v5.10/arch/mips/pci/
Dfixup-lemote2f.c98 pci_write_config_dword(pdev, PCI_UART1_INT_REG, 1); in loongson_cs5536_isa_fixup()
99 pci_write_config_dword(pdev, PCI_UART2_INT_REG, 1); in loongson_cs5536_isa_fixup()
105 pci_write_config_dword(pdev, PCI_IDE_CFG_REG, in loongson_cs5536_ide_fixup()
112 pci_write_config_dword(pdev, PCI_ACC_INT_REG, 1); in loongson_cs5536_acc_fixup()
121 pci_write_config_dword(pdev, PCI_OHCI_INT_REG, 1); in loongson_cs5536_ohci_fixup()
133 pci_write_config_dword(pdev, PCI_EHCI_FLADJ_REG, 0x2000); in loongson_cs5536_ehci_fixup()
142 pci_write_config_dword(pdev, 0xe0, (val & ~3) | 0x2); in loongson_nec_fixup()
Dfixup-fuloong2e.c53 pci_write_config_dword(pdev, 0xe0, (val & ~7) | 0x4); in loongson2e_nec_fixup()
56 pci_write_config_dword(pdev, 0xe4, 1 << 5); in loongson2e_nec_fixup()
189 pci_write_config_dword(pdev, 0x4, val | 1); in loongson2e_686b_func5_fixup()
Dpci-octeon.c130 pci_write_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS, in pcibios_plat_dev_init()
134 pci_write_config_dword(dev, pos + PCI_ERR_UNCOR_MASK, 0); in pcibios_plat_dev_init()
143 pci_write_config_dword(dev, pos + PCI_ERR_COR_STATUS, dconfig); in pcibios_plat_dev_init()
146 pci_write_config_dword(dev, pos + PCI_ERR_COR_MASK, 0); in pcibios_plat_dev_init()
155 pci_write_config_dword(dev, pos + PCI_ERR_CAP, dconfig); in pcibios_plat_dev_init()
158 pci_write_config_dword(dev, pos + PCI_ERR_ROOT_COMMAND, in pcibios_plat_dev_init()
164 pci_write_config_dword(dev, pos + PCI_ERR_ROOT_STATUS, dconfig); in pcibios_plat_dev_init()
/Linux-v5.10/drivers/mmc/host/
Dsdhci-pci-o2micro.c162 pci_write_config_dword(chip->pdev, in o2_pci_set_baseclk()
257 pci_write_config_dword(chip->pdev, O2_SD_FUNC_REG4, scratch_32); in sdhci_o2_dll_recovery()
366 pci_write_config_dword(chip->pdev, in o2_pci_led_enable()
375 pci_write_config_dword(chip->pdev, in o2_pci_led_enable()
388 pci_write_config_dword(chip->pdev, O2_SD_DEV_CTRL, scratch_32); in sdhci_pci_o2_fujin2_pci_init()
396 pci_write_config_dword(chip->pdev, O2_SD_MISC_REG5, scratch_32); in sdhci_pci_o2_fujin2_pci_init()
403 pci_write_config_dword(chip->pdev, O2_SD_TEST_REG, scratch_32); in sdhci_pci_o2_fujin2_pci_init()
406 pci_write_config_dword(chip->pdev, O2_SD_DELAY_CTRL, 0x00002492); in sdhci_pci_o2_fujin2_pci_init()
413 pci_write_config_dword(chip->pdev, O2_SD_LD0_CTRL, scratch_32); in sdhci_pci_o2_fujin2_pci_init()
421 pci_write_config_dword(chip->pdev, O2_SD_CAP_REG0, scratch_32); in sdhci_pci_o2_fujin2_pci_init()
[all …]
/Linux-v5.10/arch/x86/pci/
Dsta2x11-fixup.c152 pci_write_config_dword(pdev, AHB_PEXLBASE(0), 0); in sta2x11_map_ep()
153 pci_write_config_dword(pdev, AHB_PEXHBASE(0), 0); in sta2x11_map_ep()
154 pci_write_config_dword(pdev, AHB_CRW(0), STA2X11_AMBA_SIZE | in sta2x11_map_ep()
159 pci_write_config_dword(pdev, AHB_CRW(i), 0); in sta2x11_map_ep()
222 pci_write_config_dword(pdev, AHB_BASE(i), regs->base); in resume_mapping()
223 pci_write_config_dword(pdev, AHB_PEXLBASE(i), regs->pexlbase); in resume_mapping()
224 pci_write_config_dword(pdev, AHB_PEXHBASE(i), regs->pexhbase); in resume_mapping()
225 pci_write_config_dword(pdev, AHB_CRW(i), regs->crw); in resume_mapping()
/Linux-v5.10/drivers/char/agp/
Dintel-agp.c77 pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x2200); in intel_tlbflush()
78 pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x2280); in intel_tlbflush()
86 pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, temp & ~(1 << 7)); in intel_8xx_tlbflush()
88 pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, temp | (1 << 7)); in intel_8xx_tlbflush()
131 pci_write_config_dword(agp_bridge->dev, INTEL_ATTBASE, agp_bridge->gatt_bus_addr); in intel_configure()
134 pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x2280); in intel_configure()
172 pci_write_config_dword(agp_bridge->dev, INTEL_ATTBASE, addr); in intel_815_configure()
175 pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x0000); in intel_815_configure()
220 pci_write_config_dword(agp_bridge->dev, INTEL_ATTBASE, agp_bridge->gatt_bus_addr); in intel_820_configure()
223 pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x0000); in intel_820_configure()
[all …]
Duninorth-agp.c79 pci_write_config_dword(agp_bridge->dev, UNI_N_CFG_GART_CTRL, in uninorth_tlbflush()
81 pci_write_config_dword(agp_bridge->dev, UNI_N_CFG_GART_CTRL, ctrl); in uninorth_tlbflush()
84 pci_write_config_dword(agp_bridge->dev, UNI_N_CFG_GART_CTRL, in uninorth_tlbflush()
86 pci_write_config_dword(agp_bridge->dev, UNI_N_CFG_GART_CTRL, in uninorth_tlbflush()
99 pci_write_config_dword(agp_bridge->dev, UNI_N_CFG_GART_CTRL, tmp); in uninorth_cleanup()
100 pci_write_config_dword(agp_bridge->dev, UNI_N_CFG_GART_CTRL, 0); in uninorth_cleanup()
103 pci_write_config_dword(agp_bridge->dev, UNI_N_CFG_GART_CTRL, in uninorth_cleanup()
105 pci_write_config_dword(agp_bridge->dev, UNI_N_CFG_GART_CTRL, in uninorth_cleanup()
120 pci_write_config_dword(agp_bridge->dev, in uninorth_configure()
133 pci_write_config_dword(agp_bridge->dev, UNI_N_CFG_AGP_BASE, in uninorth_configure()
[all …]
Dali-agp.c50 pci_write_config_dword(agp_bridge->dev, ALI_TAGCTRL, temp); in ali_tlbflush()
62 pci_write_config_dword(agp_bridge->dev, ALI_TAGCTRL, in ali_cleanup()
66 pci_write_config_dword(agp_bridge->dev, ALI_ATTBASE, in ali_cleanup()
81 pci_write_config_dword(agp_bridge->dev, ALI_ATTBASE, temp); in ali_configure()
85 pci_write_config_dword(agp_bridge->dev, ALI_TLBCTRL, ((temp & 0xffffff00) | 0x00000010)); in ali_configure()
120 pci_write_config_dword(agp_bridge->dev, ALI_TLBCTRL, temp); in ali_configure()
137 pci_write_config_dword(agp_bridge->dev, ALI_CACHE_FLUSH_CTRL, in m1541_cache_flush()
153 pci_write_config_dword(agp_bridge->dev, ALI_CACHE_FLUSH_CTRL, in m1541_alloc_page()
181 pci_write_config_dword(agp_bridge->dev, ALI_CACHE_FLUSH_CTRL, in m1541_destroy_page()
Dnvidia-agp.c123 pci_write_config_dword(nvidia_private.dev_2, NVIDIA_2_APBASE, apbase); in nvidia_configure()
124 pci_write_config_dword(nvidia_private.dev_2, NVIDIA_2_APLIMIT, aplimit); in nvidia_configure()
125 pci_write_config_dword(nvidia_private.dev_3, NVIDIA_3_APBASE, apbase); in nvidia_configure()
126 pci_write_config_dword(nvidia_private.dev_3, NVIDIA_3_APLIMIT, aplimit); in nvidia_configure()
143 pci_write_config_dword(nvidia_private.dev_2, NVIDIA_2_ATTBASE(i), in nvidia_configure()
149 pci_write_config_dword(nvidia_private.dev_2, NVIDIA_2_GARTCTRL, temp | 0x11); in nvidia_configure()
153 pci_write_config_dword(agp_bridge->dev, NVIDIA_0_APSIZE, temp | 0x100); in nvidia_configure()
173 pci_write_config_dword(agp_bridge->dev, NVIDIA_0_APSIZE, temp & ~(0x100)); in nvidia_cleanup()
177 pci_write_config_dword(nvidia_private.dev_2, NVIDIA_2_GARTCTRL, temp & ~(0x11)); in nvidia_cleanup()
271 pci_write_config_dword(nvidia_private.dev_1, NVIDIA_1_WBC, wbc_reg); in nvidia_tlbflush()
Dvia-agp.c58 pci_write_config_dword(agp_bridge->dev, VIA_GARTCTRL, 0x0000000f); in via_configure()
61 pci_write_config_dword(agp_bridge->dev, VIA_ATTBASE, in via_configure()
86 pci_write_config_dword(agp_bridge->dev, VIA_GARTCTRL, temp); in via_tlbflush()
88 pci_write_config_dword(agp_bridge->dev, VIA_GARTCTRL, temp); in via_tlbflush()
140 pci_write_config_dword(agp_bridge->dev, VIA_AGP3_ATTBASE, in via_configure_agp3()
149 pci_write_config_dword(agp_bridge->dev, VIA_AGP3_GARTCTRL, temp | (3<<7)); in via_configure_agp3()
168 pci_write_config_dword(agp_bridge->dev, VIA_AGP3_GARTCTRL, temp & ~(1<<7)); in via_tlbflush_agp3()
169 pci_write_config_dword(agp_bridge->dev, VIA_AGP3_GARTCTRL, temp); in via_tlbflush_agp3()
Damd64-agp.c211 pci_write_config_dword(dev, AMD64_GARTAPERTURECTL, tmp); in amd64_cleanup()
321 pci_write_config_dword(nb, AMD64_GARTAPERTUREBASE, aper >> 25); in fix_northbridge()
429 pci_write_config_dword(pdev, ULI_X86_64_BASE_ADDR, baseaddr); in uli_agp_init()
432 pci_write_config_dword(dev1, ULI_X86_64_HTT_FEA_REG, httfea); in uli_agp_init()
433 pci_write_config_dword(dev1, ULI_X86_64_ENU_SCR_REG, enuscr); in uli_agp_init()
480 pci_write_config_dword(dev1, NVIDIA_X86_64_1_APSIZE, tmp); in nforce3_agp_init()
498 pci_write_config_dword(pdev, NVIDIA_X86_64_0_APBASE, apbar); in nforce3_agp_init()
501 pci_write_config_dword(dev1, NVIDIA_X86_64_1_APBASE1, apbase); in nforce3_agp_init()
502 pci_write_config_dword(dev1, NVIDIA_X86_64_1_APLIMIT1, aplimit); in nforce3_agp_init()
503 pci_write_config_dword(dev1, NVIDIA_X86_64_1_APBASE2, apbase); in nforce3_agp_init()
[all …]
/Linux-v5.10/drivers/infiniband/hw/mthca/
Dmthca_reset.c189 if (pci_write_config_dword(bridge, bridge_pcix_cap + 0x8, in mthca_reset()
196 if (pci_write_config_dword(bridge, bridge_pcix_cap + 0xc, in mthca_reset()
211 if (pci_write_config_dword(bridge, i * 4, bridge_header[i])) { in mthca_reset()
219 if (pci_write_config_dword(bridge, PCI_COMMAND, in mthca_reset()
229 if (pci_write_config_dword(mdev->pdev, hca_pcix_cap, in mthca_reset()
261 if (pci_write_config_dword(mdev->pdev, i * 4, hca_header[i])) { in mthca_reset()
269 if (pci_write_config_dword(mdev->pdev, PCI_COMMAND, in mthca_reset()
/Linux-v5.10/arch/x86/kernel/
Dquirks.c198 pci_write_config_dword(cached_dev, 0xD0, gen_cntl); in old_ich_force_hpet_resume()
237 pci_write_config_dword(dev, 0xD0, gen_cntl); in old_ich_force_enable_hpet()
291 pci_write_config_dword(cached_dev, 0x68, val); in vt8237_force_hpet_resume()
329 pci_write_config_dword(dev, 0x68, val); in vt8237_force_enable_hpet()
353 pci_write_config_dword(cached_dev, 0x14, 0xfed00000); in ati_force_hpet_resume()
368 err |= pci_write_config_dword(dev, 0x70, d); in ati_ixp4x0_rev()
396 pci_write_config_dword(dev, 0x14, 0xfed00000); in ati_force_enable_hpet()
408 pci_write_config_dword(dev, 0x64, d); in ati_force_enable_hpet()
427 pci_write_config_dword(cached_dev, 0x44, 0xfed00001); in nvidia_force_hpet_resume()
443 pci_write_config_dword(dev, 0x44, 0xfed00001); in nvidia_force_enable_hpet()
[all …]
Damd_nb.c146 err = pci_write_config_dword(root, 0x60, address); in __amd_smn_rw()
152 err = (write ? pci_write_config_dword(root, 0x64, *value) in __amd_smn_rw()
207 err = pci_write_config_dword(F4, 0x5C, ficaa); in amd_df_indirect_read()
418 pci_write_config_dword(nb->misc, 0x1b8, reg & ~0x180000); in amd_set_subcaches()
425 pci_write_config_dword(nb->link, 0x1d4, mask); in amd_set_subcaches()
432 pci_write_config_dword(nb->misc, 0x1b8, reg | ban); in amd_set_subcaches()
474 pci_write_config_dword(node_to_amd_nb(i)->misc, 0x9c, in amd_flush_garts()
/Linux-v5.10/drivers/video/fbdev/matrox/
Dmatroxfb_DAC1064.c116 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk()
131 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk()
133 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk()
158 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk()
160 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk()
697 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, hw->MXoptionReg); in MGA1064_preinit()
720 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg | 4); in g450_mclk_init()
721 pci_write_config_dword(minfo->pcidev, PCI_OPTION3_REG, minfo->values.reg.opt3 & ~0x00300C03); in g450_mclk_init()
722 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg); in g450_mclk_init()
740 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg | 4); in g450_mclk_init()
[all …]
/Linux-v5.10/drivers/pci/pcie/
Daer.c150 pci_write_config_dword(dev, aer + PCI_ERR_CAP, reg32); in enable_ecrc_checking()
171 pci_write_config_dword(dev, aer + PCI_ERR_CAP, reg32); in disable_ecrc_checking()
262 pci_write_config_dword(dev, aer + PCI_ERR_UNCOR_STATUS, status); in pci_aer_clear_nonfatal_status()
281 pci_write_config_dword(dev, aer + PCI_ERR_UNCOR_STATUS, status); in pci_aer_clear_fatal_status()
305 pci_write_config_dword(dev, aer + PCI_ERR_ROOT_STATUS, status); in pci_aer_raw_clear_status()
309 pci_write_config_dword(dev, aer + PCI_ERR_COR_STATUS, status); in pci_aer_raw_clear_status()
312 pci_write_config_dword(dev, aer + PCI_ERR_UNCOR_STATUS, status); in pci_aer_raw_clear_status()
361 pci_write_config_dword(dev, aer + PCI_ERR_UNCOR_MASK, *cap++); in pci_restore_aer_state()
362 pci_write_config_dword(dev, aer + PCI_ERR_UNCOR_SEVER, *cap++); in pci_restore_aer_state()
363 pci_write_config_dword(dev, aer + PCI_ERR_COR_MASK, *cap++); in pci_restore_aer_state()
[all …]
/Linux-v5.10/drivers/usb/host/
Dpci-quirks.c404 pci_write_config_dword(amd_chipset.nb_dev, in usb_amd_quirk_pll()
412 pci_write_config_dword(amd_chipset.nb_dev, in usb_amd_quirk_pll()
416 pci_write_config_dword(amd_chipset.nb_dev, in usb_amd_quirk_pll()
423 pci_write_config_dword(amd_chipset.nb_dev, in usb_amd_quirk_pll()
427 pci_write_config_dword(amd_chipset.nb_dev, in usb_amd_quirk_pll()
436 pci_write_config_dword(amd_chipset.nb_dev, in usb_amd_quirk_pll()
440 pci_write_config_dword(amd_chipset.nb_dev, in usb_amd_quirk_pll()
449 pci_write_config_dword(amd_chipset.nb_dev, in usb_amd_quirk_pll()
493 pci_write_config_dword(pdev, ASMT_DATA_WRITE0_REG, ASMT_WRITEREG_CMD); in usb_asmedia_modifyflowcontrol()
494 pci_write_config_dword(pdev, ASMT_DATA_WRITE1_REG, ASMT_FLOWCTL_ADDR); in usb_asmedia_modifyflowcontrol()
[all …]
/Linux-v5.10/drivers/thunderbolt/
Dnhi_ops.c59 pci_write_config_dword(nhi->pdev, VS_CAP_22, vs_cap); in icl_nhi_force_power()
84 pci_write_config_dword(nhi->pdev, VS_CAP_19, data | VS_CAP_19_VALID); in icl_nhi_lc_mailbox_cmd()
107 pci_write_config_dword(nhi->pdev, VS_CAP_19, 0); in icl_nhi_lc_mailbox_cmd_complete()
119 pci_write_config_dword(nhi->pdev, VS_CAP_15, ltr); in icl_nhi_set_ltr()
/Linux-v5.10/arch/xtensa/lib/
Dpci-auto.c73 pci_write_config_dword(dev, bar, 0xffffffff); in pciauto_setup_bars()
102 pci_write_config_dword(dev, bar, *upper_limit); in pciauto_setup_bars()
111 pci_write_config_dword(dev, (bar+=4), 0x00000000); in pciauto_setup_bars()
211 pci_write_config_dword(dev, PCI_COMMAND, in pciauto_postscan_setup_bridge()
301 pci_write_config_dword(dev, PCI_COMMAND, in pciauto_bus_scan()
/Linux-v5.10/arch/x86/include/asm/
Dgart.h72 pci_write_config_dword(dev, AMD64_GARTAPERTURECTL, ctl); in gart_set_size_and_enable()
83 pci_write_config_dword(dev, AMD64_GARTTABLEBASE, tmp); in enable_gart_translation()
89 pci_write_config_dword(dev, AMD64_GARTAPERTURECTL, ctl); in enable_gart_translation()
/Linux-v5.10/drivers/pci/
Dvc.c35 pci_write_config_dword(dev, pos + (i * 4), *buf); in pci_vc_save_restore_dwords()
81 pci_write_config_dword(dev, ctrl_pos, in pci_vc_load_port_arb_table()
152 pci_write_config_dword(link, ctrl_pos2, ctrl2); in pci_vc_enable()
157 pci_write_config_dword(link, ctrl_pos2, ctrl2); in pci_vc_enable()
160 pci_write_config_dword(dev, ctrl_pos, ctrl); in pci_vc_enable()
322 pci_write_config_dword(dev, ctrl_pos, tmp); in pci_vc_do_save_buffer()
/Linux-v5.10/drivers/ata/
Dpata_sil680.c299 pci_write_config_dword(pdev, 0xA4, 0x62DD62DD); in sil680_init_chip()
300 pci_write_config_dword(pdev, 0xA8, 0x43924392); in sil680_init_chip()
301 pci_write_config_dword(pdev, 0xAC, 0x40094009); in sil680_init_chip()
304 pci_write_config_dword(pdev, 0xB4, 0x62DD62DD); in sil680_init_chip()
305 pci_write_config_dword(pdev, 0xB8, 0x43924392); in sil680_init_chip()
306 pci_write_config_dword(pdev, 0xBC, 0x40094009); in sil680_init_chip()
/Linux-v5.10/drivers/mtd/devices/
Dpmc551.c205 pci_write_config_dword(priv->dev, PMC551_PCI_MEM_MAP0, in pmc551_point()
399 pci_write_config_dword(dev, PMC551_PCI_MEM_MAP0, dtmp); in fixup_pmc551()
411 pci_write_config_dword(dev, PCI_BASE_ADDRESS_0, ~0); in fixup_pmc551()
415 pci_write_config_dword(dev, PCI_BASE_ADDRESS_0, cfg); in fixup_pmc551()
429 pci_write_config_dword(dev, PMC551_DRAM_BLK0, dram_data); in fixup_pmc551()
435 pci_write_config_dword(dev, PMC551_DRAM_BLK1, dram_data); in fixup_pmc551()
441 pci_write_config_dword(dev, PMC551_DRAM_BLK2, dram_data); in fixup_pmc551()
447 pci_write_config_dword(dev, PMC551_DRAM_BLK3, dram_data); in fixup_pmc551()
514 pci_write_config_dword(dev, PMC551_DRAM_CFG, dcmd); in fixup_pmc551()
760 pci_write_config_dword(priv->dev, PMC551_PCI_MEM_MAP0, in init_pmc551()
/Linux-v5.10/drivers/watchdog/
Drdc321x_wdt.c69 pci_write_config_dword(rdc321x_wdt_device.sb_pdev, in rdc321x_wdt_trigger()
98 pci_write_config_dword(rdc321x_wdt_device.sb_pdev, in rdc321x_wdt_start()
102 pci_write_config_dword(rdc321x_wdt_device.sb_pdev, in rdc321x_wdt_start()
246 pci_write_config_dword(rdc321x_wdt_device.sb_pdev, in rdc321x_wdt_probe()
/Linux-v5.10/drivers/scsi/mvsas/
Dmv_64xx.c89 pci_write_config_dword(mvi->pdev, PCR_PHY_CTL, tmp); in mvs_64xx_stp_reset()
91 pci_write_config_dword(mvi->pdev, PCR_PHY_CTL, reg); in mvs_64xx_stp_reset()
93 pci_write_config_dword(mvi->pdev, PCR_PHY_CTL2, tmp); in mvs_64xx_stp_reset()
95 pci_write_config_dword(mvi->pdev, PCR_PHY_CTL2, reg); in mvs_64xx_stp_reset()
160 pci_write_config_dword(mvi->pdev, PCR_PHY_CTL, tmp); in mvs_64xx_chip_reset()
165 pci_write_config_dword(mvi->pdev, PCR_PHY_CTL2, tmp); in mvs_64xx_chip_reset()
208 pci_write_config_dword(mvi->pdev, offs, tmp); in mvs_64xx_phy_disable()
230 pci_write_config_dword(mvi->pdev, offs, tmp); in mvs_64xx_phy_enable()
271 pci_write_config_dword(mvi->pdev, PCR_DEV_CTRL, tmp); in mvs_64xx_init()
276 pci_write_config_dword(mvi->pdev, PCR_PHY_CTL, tmp); in mvs_64xx_init()
[all …]

12345678910>>...12