| /rk3399_rockchip-uboot/arch/x86/cpu/ivybridge/ |
| H A D | lpc.c | 133 u16 reg16, pmbase; in pch_power_options() local 150 dm_pci_read_config16(pch, GEN_PMCON_3, ®16); in pch_power_options() 151 reg16 &= 0xfffe; in pch_power_options() 154 reg16 |= 1; in pch_power_options() 158 reg16 &= ~1; in pch_power_options() 162 reg16 &= ~1; in pch_power_options() 169 reg16 &= ~(3 << 4); /* SLP_S4# Assertion Stretch 4s */ in pch_power_options() 170 reg16 |= (1 << 3); /* SLP_S4# Assertion Stretch Enable */ in pch_power_options() 172 reg16 &= ~(1 << 10); in pch_power_options() 173 reg16 |= (1 << 11); /* SLP_S3# Min Assertion Width 50ms */ in pch_power_options() [all …]
|
| H A D | sata.c | 22 u16 reg16; in common_sata_init() local 29 dm_pci_read_config16(dev, 0x92, ®16); in common_sata_init() 30 reg16 &= ~0x3f; in common_sata_init() 31 reg16 |= port_map; in common_sata_init() 32 dm_pci_write_config16(dev, 0x92, reg16); in common_sata_init() 46 u16 reg16; in bd82x6x_sata_init() local 105 dm_pci_read_config16(dev, PCI_COMMAND, ®16); in bd82x6x_sata_init() 106 reg16 &= ~PCI_COMMAND_MEMORY; in bd82x6x_sata_init() 107 dm_pci_write_config16(dev, PCI_COMMAND, reg16); in bd82x6x_sata_init() 130 dm_pci_read_config16(dev, PCI_COMMAND, ®16); in bd82x6x_sata_init() [all …]
|
| /rk3399_rockchip-uboot/arch/powerpc/cpu/mpc83xx/ |
| H A D | pci.c | 34 u16 reg16; in pci_init_bus() local 89 reg16 = 0xff; in pci_init_bus() 91 pci_hose_read_config_word(hose, dev, PCI_COMMAND, ®16); in pci_init_bus() 92 reg16 |= PCI_COMMAND_SERR | PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY; in pci_init_bus() 93 pci_hose_write_config_word(hose, dev, PCI_COMMAND, reg16); in pci_init_bus() 172 u16 reg16; in mpc83xx_pcislave_unlock() local 176 pci_hose_read_config_word (hose, dev, PCI_FUNCTION_CONFIG, ®16); in mpc83xx_pcislave_unlock() 177 reg16 &= ~(PCI_FUNCTION_CFG_LOCK); in mpc83xx_pcislave_unlock() 178 pci_hose_write_config_word (hose, dev, PCI_FUNCTION_CONFIG, reg16); in mpc83xx_pcislave_unlock()
|
| H A D | pcie.c | 188 u16 reg16; in mpc83xx_pcie_init_bus() local 288 reg16 = in_le16(hose_cfg_base + PCI_COMMAND); in mpc83xx_pcie_init_bus() 289 reg16 |= PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY | PCI_COMMAND_IO | in mpc83xx_pcie_init_bus() 291 out_le16(hose_cfg_base + PCI_COMMAND, reg16); in mpc83xx_pcie_init_bus() 304 reg16 = in_le16(hose_cfg_base + PCI_LTSSM); in mpc83xx_pcie_init_bus() 305 if (reg16 >= PCI_LTSSM_L0) in mpc83xx_pcie_init_bus() 310 mpc83xx_pcie_register_hose(bus, reg, reg16 >= PCI_LTSSM_L0); in mpc83xx_pcie_init_bus()
|
| /rk3399_rockchip-uboot/arch/powerpc/cpu/mpc85xx/ |
| H A D | pci.c | 39 u16 reg16; in pci_mpc85xx_init() local 64 pci_hose_read_config_word (hose, dev, PCI_COMMAND, ®16); in pci_mpc85xx_init() 65 reg16 |= PCI_COMMAND_SERR | PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY; in pci_mpc85xx_init() 66 pci_hose_write_config_word(hose, dev, PCI_COMMAND, reg16); in pci_mpc85xx_init() 78 reg16 = PCI_X_CMD_MAX_SPLIT | PCI_X_CMD_MAX_READ in pci_mpc85xx_init() 80 pci_hose_write_config_word(hose, dev, PCIX_COMMAND, reg16); in pci_mpc85xx_init() 159 pci_hose_read_config_word (hose, dev, PCI_COMMAND, ®16); in pci_mpc85xx_init() 160 reg16 |= PCI_COMMAND_SERR | PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY; in pci_mpc85xx_init() 161 pci_hose_write_config_word(hose, dev, PCI_COMMAND, reg16); in pci_mpc85xx_init()
|
| /rk3399_rockchip-uboot/arch/x86/cpu/broadwell/ |
| H A D | pch.c | 168 u16 reg16; in pch_power_options() local 171 dm_pci_read_config16(dev, GEN_PMCON_3, ®16); in pch_power_options() 172 reg16 &= 0xfffe; in pch_power_options() 175 reg16 |= 1; in pch_power_options() 179 reg16 &= ~1; in pch_power_options() 183 reg16 &= ~1; in pch_power_options() 189 dm_pci_write_config16(dev, GEN_PMCON_3, reg16); in pch_power_options() 378 u16 reg16; in pch_cg_init() local 384 dm_pci_read_config16(dev, GEN_PMCON_1, ®16); in pch_cg_init() 385 reg16 &= ~(1 << 10); /* Disable BIOS_PCI_EXP_EN for native PME */ in pch_cg_init() [all …]
|
| H A D | sata.c | 46 u16 reg16; in broadwell_sata_init() local 56 dm_pci_read_config16(dev, 0x92, ®16); in broadwell_sata_init() 57 reg16 &= ~0xf; in broadwell_sata_init() 58 reg16 |= 0x8000 | plat->port_map; in broadwell_sata_init() 59 dm_pci_write_config16(dev, 0x92, reg16); in broadwell_sata_init() 70 reg16 = 0; /* Disable alternate ID */ in broadwell_sata_init() 71 reg16 = 1 << 5; /* BWG step 12 */ in broadwell_sata_init() 72 dm_pci_write_config16(dev, 0x9c, reg16); in broadwell_sata_init()
|
| /rk3399_rockchip-uboot/drivers/video/ |
| H A D | ivybridge_igd.c | 713 u16 reg16; in sandybridge_setup_graphics() local 716 dm_pci_read_config16(video_dev, PCI_DEVICE_ID, ®16); in sandybridge_setup_graphics() 717 switch (reg16) { in sandybridge_setup_graphics() 736 dm_pci_read_config16(dev, GGC, ®16); in sandybridge_setup_graphics() 737 reg16 &= ~0x00f8; in sandybridge_setup_graphics() 738 reg16 |= 1 << 3; in sandybridge_setup_graphics() 740 reg16 &= ~0x0300; in sandybridge_setup_graphics() 741 reg16 |= 2 << 8; in sandybridge_setup_graphics() 743 reg16 &= ~0x0002; in sandybridge_setup_graphics() 744 dm_pci_write_config16(dev, GGC, reg16); in sandybridge_setup_graphics()
|
| /rk3399_rockchip-uboot/arch/mips/include/asm/ |
| H A D | processor.h | 69 unsigned long reg16; member
|
| /rk3399_rockchip-uboot/board/freescale/mpc8548cds/ |
| H A D | mpc8548cds.c | 241 reg16 = PCI_X_CMD_MAX_SPLIT | PCI_X_CMD_MAX_READ in pci_init_board() 243 pci_hose_write_config_word(hose, bus, PCIX_COMMAND, reg16); in pci_init_board()
|
| /rk3399_rockchip-uboot/drivers/bios_emulator/x86emu/ |
| H A D | ops.c | 2227 u16 *reg16; in x86emuOp_xchg_word_AX_register() local 2229 reg16 = DECODE_RM_WORD_REGISTER(op1); in x86emuOp_xchg_word_AX_register() 2233 M.x86.R_EAX = *reg16; in x86emuOp_xchg_word_AX_register() 2234 *reg16 = (u16)tmp; in x86emuOp_xchg_word_AX_register() 3056 u16 *reg16; in x86emuOp_mov_word_register_IMM() local 3057 reg16 = DECODE_RM_WORD_REGISTER(op1); in x86emuOp_mov_word_register_IMM() 3061 *reg16 = (u16)srcval; in x86emuOp_mov_word_register_IMM()
|