/openbmc/u-boot/drivers/pinctrl/ |
H A D | pinctrl-at91.c | 113 writel(mask, (on ? &pio->puer : &pio->pudr)); in at91_mux_set_pullup() 119 writel(mask, (val ? &pio->sodr : &pio->codr)); in at91_mux_set_output() 120 writel(mask, (is_on ? &pio->oer : &pio->odr)); in at91_mux_set_output() 125 writel(mask, (on ? &pio->mder : &pio->mddr)); in at91_mux_set_multidrive() 146 writel(readl(&pio->mux.pio3.abcdsr1) | mask, &pio->mux.pio3.abcdsr1); in at91_mux_pio3_set_B_periph() 153 writel(readl(&pio->mux.pio3.abcdsr2) | mask, &pio->mux.pio3.abcdsr2); in at91_mux_pio3_set_C_periph() 158 writel(readl(&pio->mux.pio3.abcdsr1) | mask, &pio->mux.pio3.abcdsr1); in at91_mux_pio3_set_D_periph() 164 writel(mask, (is_on ? &pio->ifer : &pio->ifdr)); in at91_mux_set_deglitch() 193 writel(mask, (is_on ? &pio->mux.pio3.ppder : &pio->mux.pio3.ppddr)); in at91_mux_pio3_set_pulldown() 199 writel(readl(&pio->schmitt) | mask, &pio->schmitt); in at91_mux_pio3_disable_schmitt_trig() [all …]
|
/openbmc/linux/drivers/i3c/master/mipi-i3c-hci/ |
H A D | pio.c | 144 pio = kzalloc(sizeof(*pio), GFP_KERNEL); in hci_pio_init() 145 if (!pio) in hci_pio_init() 349 while (pio->curr_rx && hci_pio_do_rx(hci, pio)) in hci_pio_process_rx() 350 pio->curr_rx = pio->curr_rx->next_data; in hci_pio_process_rx() 356 while (pio->curr_tx && hci_pio_do_tx(hci, pio)) in hci_pio_process_tx() 357 pio->curr_tx = pio->curr_tx->next_data; in hci_pio_process_tx() 526 pio->curr_rx = pio->curr_rx->next_data; in hci_pio_process_resp() 529 pio->curr_tx = pio->curr_tx->next_data; in hci_pio_process_resp() 583 pio->curr_xfer = pio->curr_xfer->next_xfer; in hci_pio_process_cmd() 678 pio->curr_xfer = pio->curr_rx = pio->curr_tx = pio->curr_resp = NULL; in hci_pio_dequeue_xfer_common() [all …]
|
/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-at91.c | 474 writel_relaxed(readl_relaxed(pio + PIO_ABCDSR2) | mask, pio + PIO_ABCDSR2); in at91_mux_pio3_set_C_periph() 479 writel_relaxed(readl_relaxed(pio + PIO_ABCDSR1) | mask, pio + PIO_ABCDSR1); in at91_mux_pio3_set_D_periph() 851 void __iomem *pio; in at91_pmx_set() local 870 if (!pio) in at91_pmx_set() 985 void __iomem *pio; in at91_pinconf_get() local 994 if (!pio) in at91_pinconf_get() 1030 void __iomem *pio; in at91_pinconf_set() local 1043 if (!pio) in at91_pinconf_set() 1566 if (pio) in gpio_irq_mask() 1579 if (pio) in gpio_irq_unmask() [all …]
|
/openbmc/u-boot/board/atmel/at91rm9200ek/ |
H A D | led.c | 25 at91_pio_t *pio = (at91_pio_t *)ATMEL_BASE_PIO; in green_led_on() local 26 writel(GREEN_LED, &pio->piob.codr); in green_led_on() 31 at91_pio_t *pio = (at91_pio_t *)ATMEL_BASE_PIO; in yellow_led_on() local 32 writel(YELLOW_LED, &pio->piob.codr); in yellow_led_on() 37 at91_pio_t *pio = (at91_pio_t *)ATMEL_BASE_PIO; in red_led_on() local 38 writel(RED_LED, &pio->piob.codr); in red_led_on() 43 at91_pio_t *pio = (at91_pio_t *)ATMEL_BASE_PIO; in green_led_off() local 44 writel(GREEN_LED, &pio->piob.sodr); in green_led_off() 49 at91_pio_t *pio = (at91_pio_t *)ATMEL_BASE_PIO; in yellow_led_off() local 50 writel(YELLOW_LED, &pio->piob.sodr); in yellow_led_off() [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43legacy/ |
H A D | pio.c | 140 struct b43legacy_pio *pio = &dev->pio; in parse_cookie() local 394 pio = &dev->pio; in b43legacy_pio_free() 397 pio->queue3 = NULL; in b43legacy_pio_free() 399 pio->queue2 = NULL; in b43legacy_pio_free() 401 pio->queue1 = NULL; in b43legacy_pio_free() 403 pio->queue0 = NULL; in b43legacy_pio_free() 408 struct b43legacy_pio *pio = &dev->pio; in b43legacy_pio_init() local 442 pio->queue2 = NULL; in b43legacy_pio_init() 445 pio->queue1 = NULL; in b43legacy_pio_init() 656 pio = &dev->pio; in b43legacy_pio_freeze_txqueues() [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43/ |
H A D | pio.c | 48 struct b43_pio *pio = &dev->pio; in parse_cookie() local 54 q = pio->tx_queue_AC_BK; in parse_cookie() 57 q = pio->tx_queue_AC_BE; in parse_cookie() 60 q = pio->tx_queue_AC_VI; in parse_cookie() 63 q = pio->tx_queue_AC_VO; in parse_cookie() 66 q = pio->tx_queue_mcast; in parse_cookie() 221 struct b43_pio *pio; in b43_pio_free() local 225 pio = &dev->pio; in b43_pio_free() 237 struct b43_pio *pio = &dev->pio; in b43_pio_init() local 245 if (!pio->tx_queue_AC_BK) in b43_pio_init() [all …]
|
/openbmc/u-boot/arch/arm/mach-sunxi/ |
H A D | pinmux.c | 17 clrsetbits_le32(&pio->cfg[0] + index, 0xf << offset, val << offset); in sunxi_gpio_set_cfgbank() 23 struct sunxi_gpio *pio = BANK_TO_GPIO(bank); in sunxi_gpio_set_cfgpin() local 25 sunxi_gpio_set_cfgbank(pio, pin, val); in sunxi_gpio_set_cfgpin() 28 int sunxi_gpio_get_cfgbank(struct sunxi_gpio *pio, int bank_offset) in sunxi_gpio_get_cfgbank() argument 34 cfg = readl(&pio->cfg[0] + index); in sunxi_gpio_get_cfgbank() 43 struct sunxi_gpio *pio = BANK_TO_GPIO(bank); in sunxi_gpio_get_cfgpin() local 45 return sunxi_gpio_get_cfgbank(pio, pin); in sunxi_gpio_get_cfgpin() 53 struct sunxi_gpio *pio = BANK_TO_GPIO(bank); in sunxi_gpio_set_drv() local 55 clrsetbits_le32(&pio->drv[0] + index, 0x3 << offset, val << offset); in sunxi_gpio_set_drv() 65 struct sunxi_gpio *pio = BANK_TO_GPIO(bank); in sunxi_gpio_set_pull() local [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | io-defs.h | 23 DEF_PCI_AC_RET(inb, u8, (unsigned long port), (port), pio, port) 24 DEF_PCI_AC_RET(inw, u16, (unsigned long port), (port), pio, port) 25 DEF_PCI_AC_RET(inl, u32, (unsigned long port), (port), pio, port) 26 DEF_PCI_AC_NORET(outb, (u8 val, unsigned long port), (val, port), pio, port) 27 DEF_PCI_AC_NORET(outw, (u16 val, unsigned long port), (val, port), pio, port) 44 (p, b, c), pio, p) 46 (p, b, c), pio, p) 48 (p, b, c), pio, p) 50 (p, b, c), pio, p) 52 (p, b, c), pio, p) [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | sun4i-a10-inet9f-rev03.dts | 75 gpios = <&pio 0 6 GPIO_ACTIVE_LOW>; /* PA6 */ 83 gpios = <&pio 0 5 GPIO_ACTIVE_LOW>; /* PA5 */ 91 gpios = <&pio 0 8 GPIO_ACTIVE_LOW>; /* PA8 */ 99 gpios = <&pio 0 9 GPIO_ACTIVE_LOW>; /* PA9 */ 107 gpios = <&pio 0 1 GPIO_ACTIVE_LOW>; /* PA1 */ 115 gpios = <&pio 0 0 GPIO_ACTIVE_LOW>; /* PA0 */ 123 gpios = <&pio 0 3 GPIO_ACTIVE_LOW>; /* PA3 */ 131 gpios = <&pio 0 4 GPIO_ACTIVE_LOW>; /* PA4 */ 242 interrupt-parent = <&pio>; 253 interrupt-parent = <&pio>; [all …]
|
H A D | sun7i-a20-olimex-som204-evb.dts | 51 gpios = <&pio 8 0 GPIO_ACTIVE_HIGH>; 57 gpios = <&pio 8 10 GPIO_ACTIVE_HIGH>; 63 gpios = <&pio 8 11 GPIO_ACTIVE_HIGH>; 70 reset-gpios = <&pio 6 9 GPIO_ACTIVE_LOW>; 112 snps,reset-gpio = <&pio 0 17 GPIO_ACTIVE_HIGH>; 175 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; 205 &pio { 223 gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>; 262 gpio = <&pio 2 17 GPIO_ACTIVE_HIGH>; 327 usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ [all …]
|
/openbmc/linux/arch/arm/boot/dts/allwinner/ |
H A D | sun4i-a10-inet9f-rev03.dts | 71 gpios = <&pio 0 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA6 */ 79 gpios = <&pio 0 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA5 */ 87 gpios = <&pio 0 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA8 */ 95 gpios = <&pio 0 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA9 */ 103 gpios = <&pio 0 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA1 */ 111 gpios = <&pio 0 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA0 */ 119 gpios = <&pio 0 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA3 */ 127 gpios = <&pio 0 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA4 */ 238 interrupt-parent = <&pio>; 249 interrupt-parent = <&pio>; [all …]
|
H A D | sun7i-a20-cubietruck.dts | 80 gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; 85 gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>; 90 gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; 95 gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; 101 reset-gpios = <&pio 7 9 GPIO_ACTIVE_LOW>; /* PH9 WIFI_EN */ 202 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ 216 interrupt-parent = <&pio>; 234 &pio { 247 gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>; 287 gpio = <&pio 7 17 GPIO_ACTIVE_HIGH>; [all …]
|
H A D | sun8i-h3-nanopi-r1.dts | 28 gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */ 57 gpios = <&pio 6 11 GPIO_ACTIVE_HIGH>; /* PG11 */ 63 gpios = <&pio 0 9 GPIO_ACTIVE_HIGH>; /* PA9 */ 107 interrupt-parent = <&pio>; 154 device-wakeup-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */ 155 host-wakeup-gpios = <&pio 0 7 GPIO_ACTIVE_HIGH>; /* PA7 */ 156 shutdown-gpios = <&pio 6 13 GPIO_ACTIVE_HIGH>; /* PG13 */ 166 usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
|
H A D | sun7i-a20-olimex-som204-evb.dts | 51 gpios = <&pio 8 0 GPIO_ACTIVE_HIGH>; 57 gpios = <&pio 8 10 GPIO_ACTIVE_HIGH>; 63 gpios = <&pio 8 11 GPIO_ACTIVE_HIGH>; 70 reset-gpios = <&pio 6 9 GPIO_ACTIVE_LOW>; 159 reset-gpios = <&pio 0 17 GPIO_ACTIVE_LOW>; /* PA17 */ 169 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; 197 &pio { 215 gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>; 254 gpio = <&pio 2 17 GPIO_ACTIVE_HIGH>; 319 usb0_id_det-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ [all …]
|
/openbmc/linux/drivers/ata/ |
H A D | pata_it8213.c | 77 unsigned int pio = adev->pio_mode - XFER_PIO_0; in it8213_set_piomode() local 95 if (pio > 1) in it8213_set_piomode() 109 master_data |= (timings[pio][0] << 12) | in it8213_set_piomode() 110 (timings[pio][1] << 8); in it8213_set_piomode() 120 slave_data |= (timings[pio][0] << 2) | timings[pio][1]; in it8213_set_piomode() 198 int pio = needed_pio[mwdma] - XFER_PIO_0; in it8213_set_dmamode() local 215 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); in it8213_set_dmamode() 222 (timings[pio][0] << 12) | in it8213_set_dmamode() 223 (timings[pio][1] << 8); in it8213_set_dmamode()
|
H A D | pata_efar.c | 86 unsigned int pio = adev->pio_mode - XFER_PIO_0; in efar_set_piomode() local 106 if (pio > 1) in efar_set_piomode() 122 master_data |= (timings[pio][0] << 12) | in efar_set_piomode() 123 (timings[pio][1] << 8); in efar_set_piomode() 134 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << shift; in efar_set_piomode() 203 int pio = needed_pio[mwdma] - XFER_PIO_0; in efar_set_dmamode() local 220 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); in efar_set_dmamode() 227 (timings[pio][0] << 12) | in efar_set_dmamode() 228 (timings[pio][1] << 8); in efar_set_dmamode()
|
H A D | pata_rdc.c | 90 unsigned int pio = adev->pio_mode - XFER_PIO_0; in rdc_set_piomode() local 108 if (pio >= 2) in rdc_set_piomode() 133 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) in rdc_set_piomode() 142 (timings[pio][0] << 12) | in rdc_set_piomode() 143 (timings[pio][1] << 8); in rdc_set_piomode() 238 int pio = needed_pio[mwdma] - XFER_PIO_0; in rdc_set_dmamode() local 255 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); in rdc_set_dmamode() 262 (timings[pio][0] << 12) | in rdc_set_dmamode() 263 (timings[pio][1] << 8); in rdc_set_dmamode()
|
H A D | pata_artop.c | 99 static void artop6210_load_piomode(struct ata_port *ap, struct ata_device *adev, unsigned int pio) in artop6210_load_piomode() argument 109 pci_write_config_word(pdev, 0x40 + 2 * dn, timing[clock][pio]); in artop6210_load_piomode() 163 pci_write_config_byte(pdev, 0x40 + dn, timing[clock][pio]); in artop6260_load_piomode() 206 unsigned int pio; in artop6210_set_dmamode() local 212 pio = 1; in artop6210_set_dmamode() 214 pio = 4; in artop6210_set_dmamode() 217 artop6210_load_piomode(ap, adev, pio); in artop6210_set_dmamode() 246 unsigned int pio; in artop6260_set_dmamode() local 251 pio = 1; in artop6260_set_dmamode() 253 pio = 4; in artop6260_set_dmamode() [all …]
|
H A D | pata_radisys.c | 42 unsigned int pio = adev->pio_mode - XFER_PIO_0; in radisys_set_piomode() local 61 if (pio > 0) in radisys_set_piomode() 72 idetm_data |= (timings[pio][0] << 12) | in radisys_set_piomode() 73 (timings[pio][1] << 8); in radisys_set_piomode() 117 int pio = needed_pio[mwdma] - XFER_PIO_0; in radisys_set_dmamode() local 131 idetm_data |= (timings[pio][0] << 12) | (timings[pio][1] << 8); in radisys_set_dmamode()
|
H A D | pata_oldpiix.c | 66 unsigned int pio = adev->pio_mode - XFER_PIO_0; in oldpiix_set_piomode() local 85 if (pio > 1) in oldpiix_set_piomode() 107 idetm_data |= (timings[pio][0] << 12) | in oldpiix_set_piomode() 108 (timings[pio][1] << 8); in oldpiix_set_piomode() 150 int pio = needed_pio[mwdma] - XFER_PIO_0; in oldpiix_set_dmamode() local 175 idetm_data |= (timings[pio][0] << 12) | (timings[pio][1] << 8); in oldpiix_set_dmamode()
|
/openbmc/linux/virt/kvm/ |
H A D | coalesced_mmio.c | 89 ring->coalesced_mmio[insert].pio = dev->zone.pio; in coalesced_mmio_write() 143 if (zone->pio != 1 && zone->pio != 0) in kvm_vm_ioctl_register_coalesced_mmio() 157 zone->pio ? KVM_PIO_BUS : KVM_MMIO_BUS, in kvm_vm_ioctl_register_coalesced_mmio() 179 if (zone->pio != 1 && zone->pio != 0) in kvm_vm_ioctl_unregister_coalesced_mmio() 185 if (zone->pio == dev->zone.pio && in kvm_vm_ioctl_unregister_coalesced_mmio() 188 zone->pio ? KVM_PIO_BUS : KVM_MMIO_BUS, &dev->dev); in kvm_vm_ioctl_unregister_coalesced_mmio()
|
/openbmc/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt7986a-bananapi-bpi-r3.dts | 56 gpios = <&pio 9 GPIO_ACTIVE_LOW>; 62 gpios = <&pio 10 GPIO_ACTIVE_LOW>; 92 gpios = <&pio 69 GPIO_ACTIVE_HIGH>; 99 gpios = <&pio 86 GPIO_ACTIVE_HIGH>; 128 los-gpios = <&pio 46 GPIO_ACTIVE_HIGH>; 130 mod-def0-gpios = <&pio 49 GPIO_ACTIVE_LOW>; 132 tx-fault-gpios = <&pio 7 GPIO_ACTIVE_HIGH>; 139 los-gpios = <&pio 31 GPIO_ACTIVE_HIGH>; 208 interrupt-parent = <&pio>; 210 reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>; [all …]
|
H A D | mt8183-kukui-jacuzzi.dtsi | 20 gpio = <&pio 54 GPIO_ACTIVE_HIGH>; 32 gpio = <&pio 36 GPIO_ACTIVE_HIGH>; 46 gpio = <&pio 35 GPIO_ACTIVE_HIGH>; 58 gpio = <&pio 37 GPIO_ACTIVE_HIGH>; 71 gpios = <&pio 6 GPIO_ACTIVE_LOW>; 79 gpios = <&pio 5 GPIO_ACTIVE_LOW>; 118 reset-gpios = <&pio 156 GPIO_ACTIVE_LOW>; 135 interrupts-extended = <&pio 7 IRQ_TYPE_LEVEL_LOW>; 153 enable-gpios = <&pio 45 GPIO_ACTIVE_HIGH>; 154 reset-gpios = <&pio 73 GPIO_ACTIVE_HIGH>; [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/falcon/ |
H A D | base.c | 127 const struct nvkm_falcon_func_pio *pio = nvkm_falcon_pio(falcon, &mem_type, &mem_base); in nvkm_falcon_pio_rd() local 131 if (WARN_ON(!pio || !pio->rd)) in nvkm_falcon_pio_rd() 135 if (WARN_ON(!len || (len & (pio->min - 1)))) in nvkm_falcon_pio_rd() 138 pio->rd_init(falcon, port, mem_base); in nvkm_falcon_pio_rd() 140 xfer_len = min(len, pio->max); in nvkm_falcon_pio_rd() 141 pio->rd(falcon, port, img, xfer_len); in nvkm_falcon_pio_rd() 166 if (WARN_ON(!pio || !pio->wr)) in nvkm_falcon_pio_wr() 170 if (WARN_ON(!len || (len & (pio->min - 1)))) in nvkm_falcon_pio_wr() 173 pio->wr_init(falcon, port, sec, mem_base); in nvkm_falcon_pio_wr() 175 xfer_len = min(len, pio->max); in nvkm_falcon_pio_wr() [all …]
|
/openbmc/linux/arch/riscv/boot/dts/allwinner/ |
H A D | sun20i-d1-mangopi-mq-pro.dts | 31 gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; /* PD18 */ 61 reset-gpios = <&pio 6 17 GPIO_ACTIVE_LOW>; /* PG17 */ 79 cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */ 100 interrupt-parent = <&pio>; 110 &pio { 128 device-wake-gpios = <&pio 6 18 GPIO_ACTIVE_HIGH>; /* PG18 */ 129 enable-gpios = <&pio 6 15 GPIO_ACTIVE_HIGH>; /* PG15 */ 130 host-wake-gpios = <&pio 6 14 GPIO_ACTIVE_HIGH>; /* PG14 */
|