/Linux-v5.10/arch/mips/pci/ |
D | fixup-fuloong2e.c | 68 pci_write_config_byte(pdev, 0x40, 0x08); in loongson2e_686b_func0_fixup() 71 pci_write_config_byte(pdev, 0x41, 0x01); in loongson2e_686b_func0_fixup() 74 pci_write_config_byte(pdev, 0x45, 0x00); in loongson2e_686b_func0_fixup() 77 pci_write_config_byte(pdev, 0x46, 0xe0); in loongson2e_686b_func0_fixup() 86 pci_write_config_byte(pdev, 0x47, 0xe6); in loongson2e_686b_func0_fixup() 95 pci_write_config_byte(pdev, 0x48, 0x01); in loongson2e_686b_func0_fixup() 98 pci_write_config_byte(pdev, 0x4a, 0x84); in loongson2e_686b_func0_fixup() 105 pci_write_config_byte(pdev, 0x50, 0x0e); in loongson2e_686b_func0_fixup() 112 pci_write_config_byte(pdev, 0x51, 0x76); in loongson2e_686b_func0_fixup() 115 pci_write_config_byte(pdev, 0x52, 0x34); in loongson2e_686b_func0_fixup() [all …]
|
D | fixup-malta.c | 61 pci_write_config_byte(dev, PIIX4_FUNC3_PMREGMISC, in malta_piix_func3_base_fixup() 99 pci_write_config_byte(pdev, PIIX4_FUNC0_TOM, reg_val | in malta_piix_func0_fixup() 111 pci_write_config_byte(pdev, PIIX4_FUNC0_SERIRQC, reg_val); in malta_piix_func0_fixup() 133 pci_write_config_byte(pdev, PIIX4_FUNC1_IDETIM_PRIMARY_HI, in malta_piix_func1_fixup() 137 pci_write_config_byte(pdev, PIIX4_FUNC1_IDETIM_SECONDARY_HI, in malta_piix_func1_fixup() 155 (void) pci_write_config_byte(dev, PIIX4_FUNC0_DLC, ndlc); in quirk_dlcsetup()
|
D | fixup-cobalt.c | 64 pci_write_config_byte(dev, 0x40, 0xb); in qube_raq_via_bmIDE_fixup() 69 pci_write_config_byte(dev, PCI_LATENCY_TIMER, 64); in qube_raq_via_bmIDE_fixup() 70 pci_write_config_byte(dev, PCI_CACHE_LINE_SIZE, 8); in qube_raq_via_bmIDE_fixup() 84 pci_write_config_byte(dev, PCI_LATENCY_TIMER, 64); in qube_raq_galileo_fixup() 85 pci_write_config_byte(dev, PCI_CACHE_LINE_SIZE, 8); in qube_raq_galileo_fixup()
|
D | fixup-lemote2f.c | 66 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, in pcibios_map_irq() 70 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, in pcibios_map_irq() 77 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, in pcibios_map_irq() 114 pci_write_config_byte(pdev, PCI_LATENCY_TIMER, 0xc0); in loongson_cs5536_acc_fixup()
|
/Linux-v5.10/arch/powerpc/platforms/ |
D | fsl_uli1575.c | 70 pci_write_config_byte(dev, 0x7c, 0x80); in early_uli5249() 73 pci_write_config_byte(dev, PCI_CLASS_PROG, 0x01); in early_uli5249() 77 pci_write_config_byte(dev, 0x7c, temp); in early_uli5249() 95 pci_write_config_byte(dev, 0x48 + i, val); in quirk_uli1575() 99 pci_write_config_byte(dev, 0x86, ULI_PIRQD); in quirk_uli1575() 102 pci_write_config_byte(dev, 0x87, ULI_PIRQA); in quirk_uli1575() 105 pci_write_config_byte(dev, 0x88, ULI_PIRQB); in quirk_uli1575() 108 pci_write_config_byte(dev, 0x89, ULI_PIRQF); in quirk_uli1575() 111 pci_write_config_byte(dev, 0x8a, ULI_PIRQF); in quirk_uli1575() 114 pci_write_config_byte(dev, 0x8b, ULI_PIRQF); in quirk_uli1575() [all …]
|
/Linux-v5.10/drivers/ide/ |
D | it8213.c | 72 pci_write_config_byte(dev, slave_port, slave_data); in it8213_set_pio_mode() 109 pci_write_config_byte(dev, 0x48, reg48 | u_flag); in it8213_set_dma_mode() 111 pci_write_config_byte(dev, 0x55, (u8) reg55|w_flag); in it8213_set_dma_mode() 113 pci_write_config_byte(dev, 0x55, (u8) reg55 & ~w_flag); in it8213_set_dma_mode() 119 pci_write_config_byte(dev, 0x54, reg54 | v_flag); in it8213_set_dma_mode() 121 pci_write_config_byte(dev, 0x54, reg54 & ~v_flag); in it8213_set_dma_mode() 126 pci_write_config_byte(dev, 0x48, reg48 & ~u_flag); in it8213_set_dma_mode() 130 pci_write_config_byte(dev, 0x54, reg54 & ~v_flag); in it8213_set_dma_mode() 132 pci_write_config_byte(dev, 0x55, (u8) reg55 & ~w_flag); in it8213_set_dma_mode()
|
D | alim15x3.c | 61 pci_write_config_byte(pdev, pio_fifo, fifo); in ali_fifo_control() 77 pci_write_config_byte(dev, udmat, udma); in ali_program_timings() 88 pci_write_config_byte(dev, port, t->setup); in ali_program_timings() 89 pci_write_config_byte(dev, port + 1, (t->act8b << 4) | t->rec8b); in ali_program_timings() 90 pci_write_config_byte(dev, port + unit + 2, in ali_program_timings() 197 pci_write_config_byte(dev, 0x4b, tmpbyte); in ali_set_dma_mode() 249 pci_write_config_byte(dev, 0x4b, tmpbyte & 0x7F); in init_chipset_ali15x3() 272 pci_write_config_byte(dev, 0x4b, tmpbyte | 0x08); in init_chipset_ali15x3() 294 pci_write_config_byte(isa_dev, 0x79, tmpbyte | 0x04); in init_chipset_ali15x3() 299 pci_write_config_byte(isa_dev, 0x79, tmpbyte | 0x02); in init_chipset_ali15x3() [all …]
|
D | cy82c693.c | 125 pci_write_config_byte(dev, CY82_IDE_MASTER_IOR, time_16); in cy82c693_set_pio_mode() 126 pci_write_config_byte(dev, CY82_IDE_MASTER_IOW, time_16); in cy82c693_set_pio_mode() 127 pci_write_config_byte(dev, CY82_IDE_MASTER_8BIT, time_8); in cy82c693_set_pio_mode() 141 pci_write_config_byte(dev, CY82_IDE_SLAVE_IOR, time_16); in cy82c693_set_pio_mode() 142 pci_write_config_byte(dev, CY82_IDE_SLAVE_IOW, time_16); in cy82c693_set_pio_mode() 143 pci_write_config_byte(dev, CY82_IDE_SLAVE_8BIT, time_8); in cy82c693_set_pio_mode()
|
D | piix.c | 124 pci_write_config_byte(dev, slave_port, slave_data); in piix_set_pio_mode() 164 pci_write_config_byte(dev, 0x48, reg48 | u_flag); in piix_set_dma_mode() 166 pci_write_config_byte(dev, 0x55, (u8) reg55|w_flag); in piix_set_dma_mode() 168 pci_write_config_byte(dev, 0x55, (u8) reg55 & ~w_flag); in piix_set_dma_mode() 174 pci_write_config_byte(dev, 0x54, reg54 | v_flag); in piix_set_dma_mode() 176 pci_write_config_byte(dev, 0x54, reg54 & ~v_flag); in piix_set_dma_mode() 181 pci_write_config_byte(dev, 0x48, reg48 & ~u_flag); in piix_set_dma_mode() 185 pci_write_config_byte(dev, 0x54, reg54 & ~v_flag); in piix_set_dma_mode() 187 pci_write_config_byte(dev, 0x55, (u8) reg55 & ~w_flag); in piix_set_dma_mode()
|
D | sis5513.c | 234 pci_write_config_byte(dev, drive_pci, t2); in sis_ata100_program_timings() 240 pci_write_config_byte(dev, drive_pci + 1, t1); in sis_ata100_program_timings() 290 pci_write_config_byte(dev, 0x4b, rw_prefetch); in config_drive_art_rwp() 332 pci_write_config_byte(dev, drive_pci + 1, reg); in sis_ata33_program_udma_timings() 429 pci_write_config_byte(dev, 0x4a, idecfg | 0x10); in sis_find_family() 431 pci_write_config_byte(dev, 0x4a, idecfg); in sis_find_family() 476 pci_write_config_byte(dev, PCI_LATENCY_TIMER, 0x80); in init_chipset_sis5513() 480 pci_write_config_byte(dev, 0x49, reg|0x01); in init_chipset_sis5513() 485 pci_write_config_byte(dev, PCI_LATENCY_TIMER, 0x10); in init_chipset_sis5513() 490 pci_write_config_byte(dev, 0x52, reg|0x04); in init_chipset_sis5513() [all …]
|
D | serverworks.c | 121 pci_write_config_byte(dev, drive_pci[drive->dn], pio_modes[pio]); in svwks_set_pio_mode() 163 pci_write_config_byte(dev, drive_pci2[drive->dn], dma_timing); in svwks_set_dma_mode() 164 pci_write_config_byte(dev, (0x56|hwif->channel), ultra_timing); in svwks_set_dma_mode() 165 pci_write_config_byte(dev, 0x54, ultra_enable); in svwks_set_dma_mode() 174 pci_write_config_byte(dev, PCI_LATENCY_TIMER, 0x40); in init_chipset_svwks() 223 pci_write_config_byte(findev, 0x41, reg41); in init_chipset_svwks() 255 pci_write_config_byte(dev, 0x5A, btr); in init_chipset_svwks() 262 pci_write_config_byte(dev, 0x5A, btr); in init_chipset_svwks()
|
D | cs5530.c | 178 pci_write_config_byte(cs5530_0, PCI_CACHE_LINE_SIZE, 0x04); in init_chipset_cs5530() 193 pci_write_config_byte(master_0, 0x40, 0x1e); in init_chipset_cs5530() 205 pci_write_config_byte(master_0, 0x41, 0x14); in init_chipset_cs5530() 212 pci_write_config_byte(master_0, 0x42, 0x00); in init_chipset_cs5530() 213 pci_write_config_byte(master_0, 0x43, 0xc1); in init_chipset_cs5530()
|
/Linux-v5.10/drivers/ata/ |
D | pata_cmd640.c | 104 pci_write_config_byte(pdev, arttim, reg); in cmd640_set_piomode() 107 pci_write_config_byte(pdev, arttim + 1, (t.active << 4) | t.recover); in cmd640_set_piomode() 115 pci_write_config_byte(pdev, ARTIM23, reg); in cmd640_set_piomode() 137 pci_write_config_byte(pdev, DRWTIM23, timing->reg58[adev->devno]); in cmd640_qc_issue() 195 pci_write_config_byte(pdev, 0x5B, 0x00); in cmd640_hardware_init() 197 pci_write_config_byte(pdev, CMDTIM, 0); in cmd640_hardware_init() 199 pci_write_config_byte(pdev, BRST, 0x40); in cmd640_hardware_init() 209 pci_write_config_byte(pdev, CNTRL, ctrl | 0xC0); in cmd640_hardware_init() 213 pci_write_config_byte(pdev, ARTIM23, ctrl); in cmd640_hardware_init()
|
D | pata_cypress.c | 77 pci_write_config_byte(pdev, CY82_IDE_MASTER_IOR, time_16); in cy82c693_set_piomode() 78 pci_write_config_byte(pdev, CY82_IDE_MASTER_IOW, time_16); in cy82c693_set_piomode() 79 pci_write_config_byte(pdev, CY82_IDE_MASTER_8BIT, time_8); in cy82c693_set_piomode() 87 pci_write_config_byte(pdev, CY82_IDE_SLAVE_IOR, time_16); in cy82c693_set_piomode() 88 pci_write_config_byte(pdev, CY82_IDE_SLAVE_IOW, time_16); in cy82c693_set_piomode() 89 pci_write_config_byte(pdev, CY82_IDE_SLAVE_8BIT, time_8); in cy82c693_set_piomode()
|
D | pata_hpt3x2n.c | 146 pci_write_config_byte(pdev, 0x5B, scr2 & ~0x01); in hpt3x2n_cable_detect() 153 pci_write_config_byte(pdev, 0x5B, scr2); in hpt3x2n_cable_detect() 176 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt3x2n_pre_reset() 196 pci_write_config_byte(pdev, addr2, fast); in hpt3x2n_set_mode() 256 pci_write_config_byte(pdev, mscreg, msc_stat | 0x30); in hpt3x2n_bmdma_stop() 539 pci_write_config_byte(dev, PCI_CACHE_LINE_SIZE, (L1_CACHE_BYTES / 4)); in hpt3x2n_init_one() 540 pci_write_config_byte(dev, PCI_LATENCY_TIMER, 0x78); in hpt3x2n_init_one() 541 pci_write_config_byte(dev, PCI_MIN_GNT, 0x08); in hpt3x2n_init_one() 542 pci_write_config_byte(dev, PCI_MAX_LAT, 0x08); in hpt3x2n_init_one() 546 pci_write_config_byte(dev, 0x5a, irqmask); in hpt3x2n_init_one() [all …]
|
D | pata_ali.c | 155 pci_write_config_byte(pdev, pio_fifo, fifo); in ali_fifo_control() 187 pci_write_config_byte(pdev, cas, t->setup); in ali_program_modes() 188 pci_write_config_byte(pdev, cbt, (t->act8b << 4) | t->rec8b); in ali_program_modes() 189 pci_write_config_byte(pdev, drwt, (t->active << 4) | t->recover); in ali_program_modes() 196 pci_write_config_byte(pdev, udmat, udma); in ali_program_modes() 259 pci_write_config_byte(pdev, 0x4B, reg4b); in ali_set_dmamode() 351 pci_write_config_byte(ali_isa_bridge, 0x58, r); in ali_c2_c3_postreset() 353 pci_write_config_byte(ali_isa_bridge, 0x58, r); in ali_c2_c3_postreset() 444 pci_write_config_byte(pdev, 0x53, tmp); in ali_init_chipset() 447 pci_write_config_byte(pdev, 0x4a, tmp | 0x20); in ali_init_chipset() [all …]
|
D | pata_sis.c | 180 pci_write_config_byte(pdev, 0x4B, 0); in sis_pre_reset() 211 pci_write_config_byte(pdev, 0x4B, fifoctrl); in sis_set_fifo() 248 pci_write_config_byte(pdev, port, t1); in sis_old_set_piomode() 249 pci_write_config_byte(pdev, port + 1, t2); in sis_old_set_piomode() 274 pci_write_config_byte(pdev, port, actrec[speed]); in sis_100_set_piomode() 321 pci_write_config_byte(pdev, port, t1); in sis_133_set_piomode() 434 pci_write_config_byte(pdev, drive_pci + 1, timing); in sis_100_set_dmamode() 468 pci_write_config_byte(pdev, drive_pci + 1, timing); in sis_133_early_set_dmamode() 671 pci_write_config_byte(pdev, PCI_LATENCY_TIMER, 0x80); in sis_fixup() 675 pci_write_config_byte(pdev, 0x49, reg | 0x01); in sis_fixup() [all …]
|
D | pata_artop.c | 137 pci_write_config_byte(pdev, 0x54, ultra); in artop6210_set_piomode() 163 pci_write_config_byte(pdev, 0x40 + dn, timing[clock][pio]); in artop6260_load_piomode() 190 pci_write_config_byte(pdev, 0x44 + ap->port_no, ultra); in artop6260_set_piomode() 229 pci_write_config_byte(pdev, 0x54, ultra); in artop6210_set_dmamode() 267 pci_write_config_byte(pdev, 0x44 + ap->port_no, ultra); in artop6260_set_dmamode() 320 pci_write_config_byte(pdev, 0x54, 0); in atp8xx_fixup() 329 pci_write_config_byte(pdev, 0x49, reg & ~0x30); in atp8xx_fixup() 336 pci_write_config_byte(pdev, PCI_LATENCY_TIMER, 0x90); in atp8xx_fixup() 340 pci_write_config_byte(pdev, 0x4a, (reg & ~0x01) | 0x80); in atp8xx_fixup()
|
D | pata_hpt37x.c | 338 pci_write_config_byte(pdev, 0x5B, scr2 & ~0x01); in hpt37x_cable_detect() 345 pci_write_config_byte(pdev, 0x5B, scr2); in hpt37x_cable_detect() 402 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt37x_pre_reset() 423 pci_write_config_byte(pdev, addr2, fast); in hpt370_set_mode() 486 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt370_bmdma_stop() 496 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt370_bmdma_stop() 516 pci_write_config_byte(pdev, addr2, fast); in hpt372_set_mode() 576 pci_write_config_byte(pdev, mscreg, msc_stat | 0x30); in hpt37x_bmdma_stop() 896 pci_write_config_byte(dev, 0x50, mcr1); in hpt37x_init_one() 911 pci_write_config_byte(dev, PCI_CACHE_LINE_SIZE, (L1_CACHE_BYTES / 4)); in hpt37x_init_one() [all …]
|
D | pata_serverworks.c | 206 pci_write_config_byte(pdev, 0x40 + offset, pio_mode[pio]); in serverworks_set_piomode() 241 pci_write_config_byte(pdev, 0x44 + offset, 0x20); in serverworks_set_dmamode() 247 pci_write_config_byte(pdev, 0x44 + offset, in serverworks_set_dmamode() 251 pci_write_config_byte(pdev, 0x56 + ap->port_no, ultra); in serverworks_set_dmamode() 252 pci_write_config_byte(pdev, 0x54, ultra_cfg); in serverworks_set_dmamode() 325 pci_write_config_byte(findev, 0x41, reg41); in serverworks_fixup_csb() 344 pci_write_config_byte(pdev, 0x5A, btr); in serverworks_fixup_csb() 356 pci_write_config_byte(pdev, 0x5A, btr); in serverworks_fixup_ht1000() 364 pci_write_config_byte(pdev, PCI_LATENCY_TIMER, 0x40); in serverworks_fixup()
|
D | pata_sil680.c | 144 pci_write_config_byte(pdev, addr_mask, mode); in sil680_set_piomode() 194 pci_write_config_byte(pdev, addr_mask, mode); in sil680_set_dmamode() 258 pci_write_config_byte(pdev, PCI_CACHE_LINE_SIZE, in sil680_init_chip() 261 pci_write_config_byte(pdev, 0x80, 0x00); in sil680_init_chip() 262 pci_write_config_byte(pdev, 0x84, 0x00); in sil680_init_chip() 278 pci_write_config_byte(pdev, 0x8A, tmpbyte|0x10); in sil680_init_chip() 283 pci_write_config_byte(pdev, 0x8A, tmpbyte & ~0x20); in sil680_init_chip() 297 pci_write_config_byte(pdev, 0xA1, 0x72); in sil680_init_chip() 302 pci_write_config_byte(pdev, 0xB1, 0x72); in sil680_init_chip()
|
/Linux-v5.10/arch/xtensa/lib/ |
D | pci-auto.c | 141 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); in pciauto_setup_irq() 150 pci_write_config_byte(dev, PCI_PRIMARY_BUS, current_bus); in pciauto_prescan_setup_bridge() 151 pci_write_config_byte(dev, PCI_SECONDARY_BUS, sub_bus + 1); in pciauto_prescan_setup_bridge() 152 pci_write_config_byte(dev, PCI_SUBORDINATE_BUS, 0xff); in pciauto_prescan_setup_bridge() 165 pci_write_config_byte(dev, PCI_IO_LIMIT, in pciauto_prescan_setup_bridge() 178 pci_write_config_byte(dev, PCI_SUBORDINATE_BUS, sub_bus); in pciauto_postscan_setup_bridge() 204 pci_write_config_byte(dev, PCI_IO_BASE, in pciauto_postscan_setup_bridge() 306 pci_write_config_byte(dev, PCI_LATENCY_TIMER, 0x80); in pciauto_bus_scan()
|
/Linux-v5.10/drivers/watchdog/ |
D | alim7101_wdt.c | 101 pci_write_config_byte(alim7101_pmu, in wdt_timer_ping() 103 pci_write_config_byte(alim7101_pmu, in wdt_timer_ping() 108 pci_write_config_byte(alim7101_pmu, in wdt_timer_ping() 110 pci_write_config_byte(alim7101_pmu, in wdt_timer_ping() 130 pci_write_config_byte(alim7101_pmu, in wdt_change() 135 pci_write_config_byte(alim7101_pmu, in wdt_change() 140 pci_write_config_byte(alim7101_pmu, in wdt_change() 145 pci_write_config_byte(alim7101_pmu, in wdt_change() 375 pci_write_config_byte(alim7101_pmu, ALI_7101_WDT, 0x02); in alim7101_wdt_init()
|
/Linux-v5.10/drivers/mmc/host/ |
D | sdhci-pci-o2micro.c | 242 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch_8); in sdhci_o2_dll_recovery() 295 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch_8); in sdhci_o2_dll_recovery() 520 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch); in sdhci_pci_o2_set_clock() 530 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch); in sdhci_pci_o2_set_clock() 629 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch); in sdhci_pci_o2_probe() 632 pci_write_config_byte(chip->pdev, O2_SD_MULTI_VCC3V, 0x08); in sdhci_pci_o2_probe() 640 pci_write_config_byte(chip->pdev, O2_SD_CLKREQ, scratch); in sdhci_pci_o2_probe() 649 pci_write_config_byte(chip->pdev, O2_SD_CAPS, scratch); in sdhci_pci_o2_probe() 650 pci_write_config_byte(chip->pdev, O2_SD_CAPS, 0x73); in sdhci_pci_o2_probe() 653 pci_write_config_byte(chip->pdev, O2_SD_ADMA1, 0x39); in sdhci_pci_o2_probe() [all …]
|
/Linux-v5.10/arch/arm/kernel/ |
D | bios32.c | 93 pci_write_config_byte(dev, 0x48, 0xff); in pci_fixup_83c553() 100 pci_write_config_byte(dev, 0x42, 0x01); in pci_fixup_83c553() 105 pci_write_config_byte(dev, 0x40, 0x22); in pci_fixup_83c553() 113 pci_write_config_byte(dev, 0x83, 0x02); in pci_fixup_83c553() 119 pci_write_config_byte(dev, 0x80, 0x11); in pci_fixup_83c553() 120 pci_write_config_byte(dev, 0x81, 0x00); in pci_fixup_83c553() 234 pci_write_config_byte(dev, 0x4b, 14); in pci_fixup_cy82c693() 235 pci_write_config_byte(dev, 0x4c, 15); in pci_fixup_cy82c693() 240 pci_write_config_byte(dev, 0x4d, 0x41); in pci_fixup_cy82c693() 245 pci_write_config_byte(dev, 0x44, 0x17); in pci_fixup_cy82c693() [all …]
|