Home
last modified time | relevance | path

Searched refs:pci_write_config (Results 1 – 25 of 149) sorted by relevance

123456

/freebsd-14.2/sys/dev/agp/
H A Dagp_intel.c163 pci_write_config(dev, AGP_INTEL_I820_RDCR, in agp_intel_commit_gatt()
173 pci_write_config(dev, AGP_INTEL_I845_AGPM, in agp_intel_commit_gatt()
182 pci_write_config(dev, AGP_INTEL_MCHCFG, in agp_intel_commit_gatt()
187 pci_write_config(dev, AGP_INTEL_NBXCFG, in agp_intel_commit_gatt()
211 pci_write_config(dev, AGP_INTEL_ERRSTS + 1, 7, 1); in agp_intel_commit_gatt()
234 pci_write_config(dev, AGP_INTEL_APSIZE, value, 1); in agp_intel_attach()
293 pci_write_config(dev, AGP_INTEL_MCHCFG, reg, 2); in agp_intel_detach()
298 pci_write_config(dev, AGP_INTEL_NBXCFG, reg, 4); in agp_intel_detach()
300 pci_write_config(dev, AGP_INTEL_ATTBASE, 0, 4); in agp_intel_detach()
360 pci_write_config(dev, AGP_INTEL_APSIZE, apsize, 1); in agp_intel_set_aperture()
[all …]
H A Dagp_via.c205 pci_write_config(dev, sc->regs[REG_GARTCTRL], 0x0f, 4); in agp_via_attach()
210 pci_write_config(dev, sc->regs[REG_ATTBASE], gatt->ag_physical, 4); in agp_via_attach()
214 pci_write_config(dev, sc->regs[REG_GARTCTRL], gartctrl | (3 << 7), 4); in agp_via_attach()
230 pci_write_config(dev, sc->regs[REG_GARTCTRL], 0, 4); in agp_via_detach()
231 pci_write_config(dev, sc->regs[REG_ATTBASE], 0, 4); in agp_via_detach()
305 pci_write_config(dev, sc->regs[REG_APSIZE], apsize, 1); in agp_via_set_aperture()
344 pci_write_config(dev, sc->regs[REG_APSIZE], in agp_via_set_aperture()
381 pci_write_config(dev, sc->regs[REG_GARTCTRL], 0x8f, 4); in agp_via_flush_tlb()
382 pci_write_config(dev, sc->regs[REG_GARTCTRL], 0x0f, 4); in agp_via_flush_tlb()
385 pci_write_config(dev, sc->regs[REG_GARTCTRL], gartctrl & in agp_via_flush_tlb()
[all …]
H A Dagp_apple.c132 pci_write_config(dev, UNIN_AGP_BASE_ADDR, 0, 4); in agp_apple_attach()
171 pci_write_config(dev, UNIN_AGP_GART_CONTROL, UNIN_AGP_GART_INVAL, 4); in agp_apple_detach()
172 pci_write_config(dev, UNIN_AGP_GART_CONTROL, 0, 4); in agp_apple_detach()
175 pci_write_config(dev, UNIN_AGP_GART_CONTROL, in agp_apple_detach()
177 pci_write_config(dev, UNIN_AGP_GART_CONTROL, 0, 4); in agp_apple_detach()
212 pci_write_config(dev, UNIN_AGP_GART_BASE, in agp_apple_set_aperture()
251 pci_write_config(dev, UNIN_AGP_GART_CONTROL, in agp_apple_flush_tlb()
253 pci_write_config(dev, UNIN_AGP_GART_CONTROL, cntrl, 4); in agp_apple_flush_tlb()
256 pci_write_config(dev, UNIN_AGP_GART_CONTROL, in agp_apple_flush_tlb()
258 pci_write_config(dev, UNIN_AGP_GART_CONTROL, cntrl, 4); in agp_apple_flush_tlb()
H A Dagp_sis.c155 pci_write_config(dev, AGP_SIS_ATTBASE, gatt->ag_physical, 4); in agp_sis_attach()
158 pci_write_config(dev, AGP_SIS_WINCTRL, in agp_sis_attach()
165 pci_write_config(dev, AGP_SIS_TLBCTRL, 0x05, 1); in agp_sis_attach()
178 pci_write_config(dev, AGP_SIS_WINCTRL, in agp_sis_detach()
182 pci_write_config(dev, AGP_SIS_TLBCTRL, 0, 1); in agp_sis_detach()
220 pci_write_config(dev, AGP_SIS_WINCTRL, in agp_sis_set_aperture()
254 pci_write_config(dev, AGP_SIS_TLBFLUSH, 0x02, 1); in agp_sis_flush_tlb()
H A Dagp_ali.c129 pci_write_config(dev, AGP_ALI_ATTBASE, gatt->ag_physical | in agp_ali_attach()
133 pci_write_config(dev, AGP_ALI_TLBCTRL, 0x10, 1); in agp_ali_attach()
147 pci_write_config(dev, AGP_ALI_TLBCTRL, 0x90, 1); in agp_ali_detach()
152 pci_write_config(dev, AGP_ALI_ATTBASE, attbase & 0xfff, 4); in agp_ali_detach()
202 pci_write_config(dev, AGP_ALI_ATTBASE, (attbase & ~0xf) | i, 4); in agp_ali_set_aperture()
233 pci_write_config(dev, AGP_ALI_TLBCTRL, 0x90, 1); in agp_ali_flush_tlb()
234 pci_write_config(dev, AGP_ALI_TLBCTRL, 0x10, 1); in agp_ali_flush_tlb()
H A Dagp_nvidia.c193 pci_write_config(sc->mc2_dev, AGP_NVIDIA_2_APBASE, apbase, 4); in agp_nvidia_attach()
194 pci_write_config(sc->mc2_dev, AGP_NVIDIA_2_APLIMIT, aplimit, 4); in agp_nvidia_attach()
195 pci_write_config(sc->bdev, AGP_NVIDIA_3_APBASE, apbase, 4); in agp_nvidia_attach()
196 pci_write_config(sc->bdev, AGP_NVIDIA_3_APLIMIT, aplimit, 4); in agp_nvidia_attach()
218 pci_write_config(sc->mc2_dev, AGP_NVIDIA_2_ATTBASE(i), in agp_nvidia_attach()
225 pci_write_config(sc->mc2_dev, AGP_NVIDIA_2_GARTCTRL, temp | 0x11, 4); in agp_nvidia_attach()
229 pci_write_config(sc->dev, AGP_NVIDIA_0_APSIZE, temp | 0x100, 4); in agp_nvidia_attach()
247 pci_write_config(sc->dev, AGP_NVIDIA_0_APSIZE, temp & ~(0x100), 4); in agp_nvidia_detach()
251 pci_write_config(sc->mc2_dev, AGP_NVIDIA_2_GARTCTRL, temp & ~(0x11), 4); in agp_nvidia_detach()
300 pci_write_config(dev, AGP_NVIDIA_0_APSIZE, ((val & ~0x0f) | key), 1); in agp_nvidia_set_aperture()
[all …]
/freebsd-14.2/sys/dev/ata/chipsets/
H A Data-ite.c102 pci_write_config(dev, 0x54, 0x31, 1); in ata_ite_chipinit()
103 pci_write_config(dev, 0x56, 0x31, 1); in ata_ite_chipinit()
149 pci_write_config(parent, 0x50, in ata_ite_821x_setmode()
153 pci_write_config(parent, in ata_ite_821x_setmode()
159 pci_write_config(parent, 0x50, in ata_ite_821x_setmode()
166 pci_write_config(parent, 0x54 + (ch->unit << 2), in ata_ite_821x_setmode()
198 pci_write_config(parent, 0x48, reg48 | (0x0001 << target), 2); in ata_ite_8213_setmode()
199 pci_write_config(parent, 0x4a, in ata_ite_8213_setmode()
214 pci_write_config(parent, 0x54, reg54, 2); in ata_ite_8213_setmode()
230 pci_write_config(parent, 0x40, (reg40 & ~mask40) | new40, 4); in ata_ite_8213_setmode()
[all …]
H A Data-highpoint.c117 pci_write_config(dev, 0x51, (pci_read_config(dev, 0x51, 1) & ~0x80), 1); in ata_highpoint_chipinit()
121 pci_write_config(dev, 0x51, (pci_read_config(dev, 0x51, 1) & ~0x03), 1); in ata_highpoint_chipinit()
122 pci_write_config(dev, 0x55, (pci_read_config(dev, 0x55, 1) & ~0x03), 1); in ata_highpoint_chipinit()
125 pci_write_config(dev, 0x5a, (pci_read_config(dev, 0x5a, 1) & ~0x10), 1); in ata_highpoint_chipinit()
129 pci_write_config(dev, 0x5b, 0x22, 1); in ata_highpoint_chipinit()
131 pci_write_config(dev, 0x5b, in ata_highpoint_chipinit()
190 pci_write_config(parent, 0x40 + (devno << 2), in ata_highpoint_setmode()
206 pci_write_config(parent, reg, val | 0x80, 1); in ata_highpoint_check_80pin()
211 pci_write_config(parent, reg, val & 0xfe, 1); in ata_highpoint_check_80pin()
214 pci_write_config(parent, reg, val, 1); in ata_highpoint_check_80pin()
H A Data-sis.c119 pci_write_config(dev, 0x57, (reg57 & 0x7f), 1); in ata_sis_probe()
128 pci_write_config(dev, 0x57, reg57, 1); in ata_sis_probe()
133 pci_write_config(dev, 0x4a, (reg4a | 0x10), 1); in ata_sis_probe()
146 pci_write_config(dev, 0x4a, reg4a, 1); in ata_sis_probe()
172 pci_write_config(dev, 0x52, pci_read_config(dev, 0x52, 1) & ~0x04, 1); in ata_sis_chipinit()
176 pci_write_config(dev, 0x49, pci_read_config(dev, 0x49, 1) & ~0x01, 1); in ata_sis_chipinit()
179 pci_write_config(dev, 0x50, pci_read_config(dev, 0x50, 2) | 0x0008, 2); in ata_sis_chipinit()
270 pci_write_config(parent, reg, timings[ata_mode2idx(mode)], 4); in ata_sis_setmode()
280 pci_write_config(parent, reg, timings[ata_mode2idx(mode)], 2); in ata_sis_setmode()
289 pci_write_config(parent, reg, timings[ata_mode2idx(mode)], 2); in ata_sis_setmode()
[all …]
H A Data-siliconimage.c124 pci_write_config(dev, 0x8a, in ata_sii_chipinit()
138 pci_write_config(dev, 0x48, in ata_sii_chipinit()
165 pci_write_config(dev, 0x71, 0x01, 1); in ata_sii_chipinit()
201 pci_write_config(device_get_parent(dev), 0x71, in ata_cmd_status()
230 pci_write_config(parent, ureg, umode, 1); in ata_cmd_setmode()
233 pci_write_config(parent, ureg, in ata_cmd_setmode()
238 pci_write_config(parent, treg, piotimings[ata_mode2idx(piomode)], 1); in ata_cmd_setmode()
374 pci_write_config(parent, mreg, in ata_sii_setmode()
376 pci_write_config(parent, ureg, in ata_sii_setmode()
381 pci_write_config(parent, mreg, in ata_sii_setmode()
[all …]
H A Data-ati.c220 pci_write_config(parent, 0x56, in ata_ati_setmode()
224 pci_write_config(parent, 0x54, in ata_ati_setmode()
227 pci_write_config(parent, 0x44, in ata_ati_setmode()
234 pci_write_config(parent, 0x54, in ata_ati_setmode()
237 pci_write_config(parent, 0x44, in ata_ati_setmode()
245 pci_write_config(parent, 0x54, in ata_ati_setmode()
251 pci_write_config(parent, 0x4a, in ata_ati_setmode()
255 pci_write_config(parent, 0x40, in ata_ati_setmode()
H A Data-via.c182 pci_write_config(dev, 0x50, 0x030b030b, 4); in ata_via_chipinit()
189 pci_write_config(dev, 0x43, in ata_via_chipinit()
196 pci_write_config(dev, 0x46, in ata_via_chipinit()
200 pci_write_config(dev, 0x60, DEV_BSIZE, 2); in ata_via_chipinit()
201 pci_write_config(dev, 0x68, DEV_BSIZE, 2); in ata_via_chipinit()
331 pci_write_config(parent, 0xb3, in ata_via_new_setmode()
362 pci_write_config(parent, reg, in ata_via_old_setmode()
366 pci_write_config(parent, reg, 0x8b, 1); in ata_via_old_setmode()
393 pci_write_config(children[i], 0x75, 0x80, 1); in ata_via_southbridge_fixup()
537 pci_write_config(parent, 0xa8 + port * 4, value, 4); in ata_via_sata_scr_write()
[all …]
H A Data-acard.c165 pci_write_config(parent, 0x54, reg54, 1); in ata_acard_850_setmode()
166 pci_write_config(parent, 0x4a, 0xa6, 1); in ata_acard_850_setmode()
167 pci_write_config(parent, 0x40 + (devno << 1), 0x0301, 2); in ata_acard_850_setmode()
189 pci_write_config(parent, 0x44, reg44, 2); in ata_acard_86X_setmode()
190 pci_write_config(parent, 0x4a, 0xa6, 1); in ata_acard_86X_setmode()
191 pci_write_config(parent, 0x40 + devno, 0x31, 1); in ata_acard_86X_setmode()
H A Data-amd.c98 pci_write_config(dev, 0x41, pci_read_config(dev, 0x41, 1) & 0x0f, 1); in ata_amd_chipinit()
100 pci_write_config(dev, 0x41, pci_read_config(dev, 0x41, 1) | 0xf0, 1); in ata_amd_chipinit()
131 pci_write_config(parent, reg, modes[mode & ATA_MODE_MASK], 1); in ata_amd_setmode()
134 pci_write_config(parent, reg, 0x8b, 1); in ata_amd_setmode()
138 pci_write_config(parent, reg - 0x08, timings[ata_mode2idx(piomode)], 1); in ata_amd_setmode()
H A Data-national.c116 pci_write_config(parent, 0x44 + (devno << 3), in ata_national_setmode()
120 pci_write_config(parent, 0x44 + (devno << 3), in ata_national_setmode()
124 pci_write_config(parent, 0x44 + (devno << 3), in ata_national_setmode()
129 pci_write_config(parent, 0x40 + (devno << 3), in ata_national_setmode()
H A Data-serverworks.c154 pci_write_config(children[i], 0x64, in ata_serverworks_chipinit()
164 pci_write_config(dev, 0x5a, (pci_read_config(dev, 0x5a, 1) & ~0x40) | in ata_serverworks_chipinit()
327 pci_write_config(parent, 0x56, in ata_serverworks_setmode()
331 pci_write_config(parent, 0x54, in ata_serverworks_setmode()
334 pci_write_config(parent, 0x44, in ata_serverworks_setmode()
341 pci_write_config(parent, 0x54, in ata_serverworks_setmode()
344 pci_write_config(parent, 0x44, in ata_serverworks_setmode()
352 pci_write_config(parent, 0x54, in ata_serverworks_setmode()
359 pci_write_config(parent, 0x4a, in ata_serverworks_setmode()
364 pci_write_config(parent, 0x40, in ata_serverworks_setmode()
H A Data-acerlabs.c140 pci_write_config(dev, 0x4a, pci_read_config(dev, 0x4a, 1) | 0x20, 1); in ata_ali_chipinit()
144 pci_write_config(dev, 0x4b, pci_read_config(dev, 0x4b, 1) | in ata_ali_chipinit()
148 pci_write_config(dev, 0x53, pci_read_config(dev, 0x53, 1) | in ata_ali_chipinit()
164 pci_write_config(dev, 0x53, pci_read_config(dev, 0x53, 1) | 0x03, 1); in ata_ali_chipinit()
277 pci_write_config(children[i], 0x58, in ata_ali_reset()
280 pci_write_config(children[i], 0x58, in ata_ali_reset()
337 pci_write_config(parent, 0x54, word54, 4); in ata_ali_setmode()
339 pci_write_config(parent, 0x58 + (ch->unit << 2), in ata_ali_setmode()
/freebsd-14.2/sys/dev/pccbb/
H A Dpccbb_pci.c116 pci_write_config(DEV, REG, ( \
548 pci_write_config(sc->dev, CBBR_MMCTRL, 0, 4); in cbb_chipinit()
616 pci_write_config(sc->dev, TOPIC_SLOTCTRL, in cbb_chipinit()
688 pci_write_config(brdev, CBBR_MEMBASE0, 0, 4); in cbb_pci_shutdown()
689 pci_write_config(brdev, CBBR_MEMLIMIT0, 0, 4); in cbb_pci_shutdown()
690 pci_write_config(brdev, CBBR_MEMBASE1, 0, 4); in cbb_pci_shutdown()
691 pci_write_config(brdev, CBBR_MEMLIMIT1, 0, 4); in cbb_pci_shutdown()
692 pci_write_config(brdev, CBBR_IOBASE0, 0, 4); in cbb_pci_shutdown()
693 pci_write_config(brdev, CBBR_IOLIMIT0, 0, 4); in cbb_pci_shutdown()
694 pci_write_config(brdev, CBBR_IOBASE1, 0, 4); in cbb_pci_shutdown()
[all …]
/freebsd-14.2/sys/dev/sdhci/
H A Dsdhci_pci.c265 pci_write_config(dev, SDHC_PCI_MODE_KEY, 0xfc, 1); in sdhci_lower_frequency()
268 pci_write_config(dev, SDHC_PCI_MODE_KEY, 0x00, 1); in sdhci_lower_frequency()
274 pci_write_config(dev, SDHC_PCI_BASE_FREQ_KEY, 0x01, 1); in sdhci_lower_frequency()
276 pci_write_config(dev, SDHC_PCI_BASE_FREQ, 50, 1); in sdhci_lower_frequency()
277 pci_write_config(dev, SDHC_PCI_BASE_FREQ_KEY, 0x00, 1); in sdhci_lower_frequency()
286 pci_write_config(dev, SDHC_PCI_MODE_KEY, 0xfc, 1); in sdhci_restore_frequency()
287 pci_write_config(dev, SDHC_PCI_MODE, sc->cfg_mode, 1); in sdhci_restore_frequency()
288 pci_write_config(dev, SDHC_PCI_MODE_KEY, 0x00, 1); in sdhci_restore_frequency()
291 pci_write_config(dev, SDHC_PCI_BASE_FREQ_KEY, 0x01, 1); in sdhci_restore_frequency()
292 pci_write_config(dev, SDHC_PCI_BASE_FREQ, sc->cfg_freq, 1); in sdhci_restore_frequency()
[all …]
/freebsd-14.2/sys/dev/e1000/
H A De1000_osdep.c56 pci_write_config(((struct e1000_osdep *)hw->back)->dev, reg, *value, 2); in e1000_write_pci_cfg()
68 pci_write_config(((struct e1000_osdep *)hw->back)->dev, PCIR_COMMAND, in e1000_pci_set_mwi()
75 pci_write_config(((struct e1000_osdep *)hw->back)->dev, PCIR_COMMAND, in e1000_pci_clear_mwi()
103 pci_write_config(dev, offset + reg, *value, 2); in e1000_write_pcie_cap_reg()
/freebsd-14.2/sys/dev/mlx5/mlx5_core/
H A Dmlx5_vsc.c61 pci_write_config(dev, vsc_addr + MLX5_VSC_SEMA_OFFSET, counter, 4); in mlx5_vsc_lock()
83 pci_write_config(dev, vsc_addr + MLX5_VSC_SEMA_OFFSET, 0, 4); in mlx5_vsc_unlock()
121 pci_write_config(dev, vsc_addr + MLX5_VSC_SPACE_OFFSET, vsc_space, 4); in mlx5_vsc_set_space()
146 pci_write_config(dev, vsc_addr + MLX5_VSC_DATA_OFFSET, *data, 4); in mlx5_vsc_write()
147 pci_write_config(dev, vsc_addr + MLX5_VSC_ADDR_OFFSET, in, 4); in mlx5_vsc_write()
169 pci_write_config(dev, vsc_addr + MLX5_VSC_ADDR_OFFSET, in, 4); in mlx5_vsc_read()
/freebsd-14.2/sys/dev/mpt/
H A Dmpt_pci.c385 pci_write_config(dev, PCIR_COMMAND, val, 2); in mpt_pci_attach()
392 pci_write_config(dev, PCIR_BIOS, val, 4); in mpt_pci_attach()
772 pci_write_config(mpt->dev, PCIR_COMMAND, mpt->pci_cfg.Command, 2);
773 pci_write_config(mpt->dev, PCIR_CACHELNSZ,
775 pci_write_config(mpt->dev, PCIR_BAR(0), mpt->pci_cfg.IO_BAR, 4);
776 pci_write_config(mpt->dev, PCIR_BAR(1), mpt->pci_cfg.Mem0_BAR[0], 4);
777 pci_write_config(mpt->dev, PCIR_BAR(2), mpt->pci_cfg.Mem0_BAR[1], 4);
778 pci_write_config(mpt->dev, PCIR_BAR(3), mpt->pci_cfg.Mem1_BAR[0], 4);
780 pci_write_config(mpt->dev, PCIR_BIOS, mpt->pci_cfg.ROM_BAR, 4);
781 pci_write_config(mpt->dev, PCIR_INTLINE, mpt->pci_cfg.IntLine, 1);
[all …]
/freebsd-14.2/sys/dev/pci/
H A Dfixup_pci.c95 pci_write_config(dev, 0x50, pmccfg, 2); in fixwsc_natoma()
101 pci_write_config(dev, 0x50, pmccfg, 2); in fixwsc_natoma()
136 pci_write_config(dev, 0x6c, val, 4); in fixc1_nforce2()
H A Dpci.c1689 pci_write_config(child, in pci_enable_msix_method()
3061 pci_write_config(dev, reg, map, 4); in pci_read_bar()
3080 pci_write_config(dev, PCIR_COMMAND, in pci_read_bar()
3108 pci_write_config(dev, reg, map, 4); in pci_read_bar()
4027 pci_write_config(dev, rid, 0, 4); in pci_add_resources_ea()
5518 pci_write_config(child, PCIR_COMMAND, in pci_reserve_map()
6096 pci_write_config(dev, PCIR_SECLAT_1, in pci_cfg_restore()
6098 pci_write_config(dev, PCIR_SUBBUS_1, in pci_cfg_restore()
6100 pci_write_config(dev, PCIR_SECBUS_1, in pci_cfg_restore()
6102 pci_write_config(dev, PCIR_PRIBUS_1, in pci_cfg_restore()
[all …]
/freebsd-14.2/sys/dev/cardbus/
H A Dcardbus.c163 pci_write_config(dev, PCIR_BAR(i), 0, 4); in cardbus_device_setup_regs()
167 pci_write_config(dev, PCIR_INTLINE, cfg->intline, 1); in cardbus_device_setup_regs()
168 pci_write_config(dev, PCIR_CACHELNSZ, 0x08, 1); in cardbus_device_setup_regs()
169 pci_write_config(dev, PCIR_LATTIMER, 0xa8, 1); in cardbus_device_setup_regs()
170 pci_write_config(dev, PCIR_MINGNT, 0x14, 1); in cardbus_device_setup_regs()
171 pci_write_config(dev, PCIR_MAXLAT, 0x14, 1); in cardbus_device_setup_regs()

123456