Home
last modified time | relevance | path

Searched full:pio (Results 1 – 25 of 912) sorted by relevance

12345678910>>...37

/Linux-v5.10/drivers/pinctrl/
Dpinctrl-at91.c38 int pioc_hwirq; /* PIO bank interrupt identifier on AIC */
39 int pioc_virq; /* PIO bank Linux virtual interrupt */
40 int pioc_idx; /* PIO bank index */
41 void __iomem *regbase; /* PIO bank virtual address */
171 enum at91_mux (*get_periph)(void __iomem *pio, unsigned mask);
172 void (*mux_A_periph)(void __iomem *pio, unsigned mask);
173 void (*mux_B_periph)(void __iomem *pio, unsigned mask);
174 void (*mux_C_periph)(void __iomem *pio, unsigned mask);
175 void (*mux_D_periph)(void __iomem *pio, unsigned mask);
176 bool (*get_deglitch)(void __iomem *pio, unsigned pin);
[all …]
Dpinctrl-u300.c248 PINCTRL_PIN(59, "PIO RF DATA1"),
249 PINCTRL_PIN(60, "PIO RF DATA0"),
257 PINCTRL_PIN(68, "PIO RF CTRL DATA"),
287 PINCTRL_PIN(98, "PIO DC ON"),
288 PINCTRL_PIN(99, "PIO ACC APP I2C DATA"),
289 PINCTRL_PIN(100, "PIO ACC APP I2C CLK"),
295 PINCTRL_PIN(105, "PIO APP I2C1 DATA"),
296 PINCTRL_PIN(106, "PIO APP I2C1 CLK"),
312 PINCTRL_PIN(122, "PIO APP PCM I2S1 DATA B"),
313 PINCTRL_PIN(123, "PIO APP PCM I2S1 DATA A"),
[all …]
/Linux-v5.10/drivers/pinctrl/sunxi/
DKconfig15 bool "Support for the Allwinner A10, A20 and R40 PIO"
20 bool "Support for the Allwinner A10s, A13, R8 and NextThing GR8 PIO"
25 bool "Support for the Allwinner A31 PIO"
30 bool "Support for the Allwinner A31 R-PIO"
36 bool "Support for the Allwinner A23 PIO"
41 bool "Support for the Allwinner A33 PIO"
46 bool "Support for the Allwinner A83T PIO"
51 bool "Support for the Allwinner A83T R-PIO"
56 bool "Support for the Allwinner A23 and A33 R-PIO"
62 bool "Support for the Allwinner H3 PIO"
[all …]
/Linux-v5.10/drivers/net/wireless/broadcom/b43legacy/
Dpio.c6 PIO Transmission
14 #include "pio.h"
109 /* We use the upper 4 bits for the PIO in generate_cookie()
140 struct b43legacy_pio *pio = &dev->pio; in parse_cookie() local
146 queue = pio->queue0; in parse_cookie()
149 queue = pio->queue1; in parse_cookie()
152 queue = pio->queue2; in parse_cookie()
155 queue = pio->queue3; in parse_cookie()
226 b43legacywarn(queue->dev->wl, "PIO queue too small. " in pio_tx_packet()
343 b43legacyerr(dev->wl, "This card does not support PIO " in b43legacy_setup_pioqueue()
[all …]
DKconfig75 bool "DMA + PIO"
79 Include both, Direct Memory Access (DMA) and Programmed I/O (PIO)
81 the module parameter "pio". With pio=0 as a module parameter, the
82 default DMA is used, otherwise PIO is used.
91 This reduces the size of the driver module, by omitting the PIO code.
94 bool "PIO (Programmed I/O) only"
97 Only include Programmed I/O (PIO).
99 Please note that PIO transfers are slow (compared to DMA).
101 Also note that not all devices of the b43legacy series support PIO.
103 You should use PIO only if DMA does not work for you.
/Linux-v5.10/drivers/net/wireless/broadcom/b43/
Dpio.c6 PIO data transfer
14 #include "pio.h"
30 * PIO controller ID and store the packet index number in generate_cookie()
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()
172 /* Enable Direct FIFO RX (PIO) on the engine. */ in b43_setup_pioqueue_rx()
[all …]
/Linux-v5.10/drivers/ata/
Dpata_artop.c86 * artop6210_load_piomode - Load a set of PATA PIO timings
89 * @pio: PIO mode
91 * Set PIO mode for device, in host controller PCI config space. This
92 * is used both to set PIO timings in PIO mode and also to set the
93 * matching PIO clocking for UDMA, as well as the MWDMA timings.
99 static void artop6210_load_piomode(struct ata_port *ap, struct ata_device *adev, unsigned int pio) in artop6210_load_piomode() argument
108 /* Load the PIO timing active/recovery bits */ in artop6210_load_piomode()
109 pci_write_config_word(pdev, 0x40 + 2 * dn, timing[clock][pio]); in artop6210_load_piomode()
113 * artop6210_set_piomode - Initialize host controller PATA PIO timings
117 * Set PIO mode for device, in host controller PCI config space. For
[all …]
Dpata_efar.c74 * efar_set_piomode - Initialize host controller PATA PIO timings
78 * Set PIO mode for device, in host controller PCI config space.
86 unsigned int pio = adev->pio_mode - XFER_PIO_0; in efar_set_piomode() local
106 if (pio > 1) in efar_set_piomode()
108 if (ata_pio_need_iordy(adev)) /* PIO 3/4 require IORDY */ 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()
193 * MWDMA is driven by the PIO timings. We must also enable in efar_set_dmamode()
195 * been set when the PIO timing was set. in efar_set_dmamode()
[all …]
Dpata_it8213.c65 * it8213_set_piomode - Initialize host controller PATA PIO timings
69 * Set PIO mode for device, in host controller PCI config space.
77 unsigned int pio = adev->pio_mode - XFER_PIO_0; in it8213_set_piomode() local
95 if (pio > 1) in it8213_set_piomode()
97 if (ata_pio_need_iordy(adev)) /* PIO 3/4 require IORDY */ 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()
188 * MWDMA is driven by the PIO timings. We must also enable in it8213_set_dmamode()
190 * been set when the PIO timing was set. in it8213_set_dmamode()
[all …]
Dpata_cs5520.c8 * PIO mode and smarter silicon.
11 * drive for the right PIO mode. We must also ignore all the blacklists
13 * further we can do DMA on PIO only drives.
52 * cs5520_set_timings - program PIO timings
56 * Program the PIO mode timings for the controller according to the pio
60 static void cs5520_set_timings(struct ata_port *ap, struct ata_device *adev, int pio) in cs5520_set_timings() argument
65 pio -= XFER_PIO_0; in cs5520_set_timings()
69 (cs5520_pio_clocks[pio].recovery << 4) | in cs5520_set_timings()
70 (cs5520_pio_clocks[pio].assert)); in cs5520_set_timings()
74 (cs5520_pio_clocks[pio].recovery << 4) | in cs5520_set_timings()
[all …]
Dpata_rdc.c78 * rdc_set_piomode - Initialize host controller PATA PIO timings
82 * Set PIO mode for device, in host controller PCI config space.
90 unsigned int pio = adev->pio_mode - XFER_PIO_0; in rdc_set_piomode() local
108 if (pio >= 2) in rdc_set_piomode()
118 /* PIO configuration clears DTE unconditionally. It will be 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()
160 * rdc_set_dmamode - Initialize host controller PATA PIO timings
228 * MWDMA is driven by the PIO timings. We must also enable in rdc_set_dmamode()
[all …]
Dpata_oldpiix.c54 * oldpiix_set_piomode - Initialize host controller PATA PIO timings
58 * Set PIO mode for device, in host controller PCI config space.
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()
140 * MWDMA is driven by the PIO timings. We must also enable in oldpiix_set_dmamode()
142 * been set when the PIO timing was set. in oldpiix_set_dmamode()
150 int pio = needed_pio[mwdma] - XFER_PIO_0; in oldpiix_set_dmamode() local
159 /* If the drive MWDMA is faster than it can do PIO then in oldpiix_set_dmamode()
[all …]
Dpata_radisys.c30 * radisys_set_piomode - Initialize host controller PATA PIO timings
34 * Set PIO mode for device, in host controller PCI config space.
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()
105 * MWDMA is driven by the PIO timings. We must also enable in radisys_set_dmamode()
117 int pio = needed_pio[mwdma] - XFER_PIO_0; in radisys_set_dmamode() local
120 /* If the drive MWDMA is faster than it can do PIO then in radisys_set_dmamode()
121 we must force PIO0 for PIO cycles. */ in radisys_set_dmamode()
[all …]
/Linux-v5.10/arch/arm/boot/dts/
Dsun4i-a10-inet9f-rev03.dts71 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 */
135 gpios = <&pio 7 23 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PH23 */
143 gpios = <&pio 7 24 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PH24 */
[all …]
Dsun7i-a20-cubietruck.dts80 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 …]
/Linux-v5.10/arch/mips/sgi-ip27/
Dip27-hubio.c6 * Support functions for the HUB ASIC - mostly PIO mapping related.
22 * hub_pio_map - establish a HUB PIO mapping
24 * @hub: hub to perform PIO mapping on
25 * @widget: widget ID to perform PIO mapping for
27 * @size: size of the PIO mapping
40 printk(KERN_WARNING "PIO mapping at hub %d widget %d addr 0x%lx" in hub_pio_map()
52 * The code below does a PIO write to setup an ITTE entry. in hub_pio_map()
57 * attempt a PIO prematurely. in hub_pio_map()
60 * received by the hub and can be used by future PIO reads/ in hub_pio_map()
63 * For these two reasons, we PIO read back the ITTE entry in hub_pio_map()
[all …]
/Linux-v5.10/lib/
Dlogic_pio.c9 #define pr_fmt(fmt) "LOGIC PIO: " fmt
27 * logic_pio_register_range - register logical PIO range for a host
104 * logic_pio_unregister_range - unregister a logical PIO range for a host
118 * find_io_range_by_fwnode - find logical PIO range for given FW node
119 * @fwnode: FW node handle associated with logical PIO range
141 /* Return a registered range given an input PIO token */
142 static struct logic_pio_hwaddr *find_io_range(unsigned long pio) in find_io_range() argument
148 if (in_range(pio, range->io_start, range->size)) { in find_io_range()
156 pr_err("PIO entry token 0x%lx invalid\n", pio); in find_io_range()
162 * logic_pio_to_hwaddr - translate logical PIO to HW address
[all …]
/Linux-v5.10/drivers/ide/
Dide-xfer-mode.c42 s = "PIO SLOW"; in ide_xfer_verbose()
51 * ide_get_best_pio_mode - get PIO mode from drive
56 * This routine returns the recommended PIO settings for a given drive,
59 * Drive PIO mode is auto-selected if 255 is passed as mode_wanted.
75 printk(KERN_INFO "%s: is on PIO blacklist\n", drive->name); in ide_get_best_pio_mode()
111 int ide_pio_need_iordy(ide_drive_t *drive, const u8 pio) in ide_pio_need_iordy() argument
117 if (pio == 0 && (drive->hwif->port_flags & IDE_PFLAG_PROBING)) in ide_pio_need_iordy()
119 return ata_id_pio_need_iordy(drive->id, pio); in ide_pio_need_iordy()
187 u8 host_pio, pio; in ide_set_pio() local
197 pio = ide_get_best_pio_mode(drive, req_pio, host_pio); in ide_set_pio()
[all …]
Dit821x.c34 * controller but only work PIO with no IRQ.
48 * flaw that it has a single set of PIO/MWDMA timings per channel so
81 u16 pio[2]; /* Cached PIO values */ member
104 * it821x_program - program the PIO/MWDMA registers
108 * Program the PIO/MWDMA timing for this channel according to the
120 /* Program PIO/MWDMA timing bits */ in it821x_program()
213 * Reprogram the UDMA/PIO of the pair drive for the switch in it821x_clock_strategy()
218 it821x_program(pair, itdev->pio[1-unit]); in it821x_clock_strategy()
221 * Reprogram the UDMA/PIO of our drive for the switch. in it821x_clock_strategy()
226 it821x_program(drive, itdev->pio[unit]); in it821x_clock_strategy()
[all …]
Dit8213.c20 * it8213_set_pio_mode - set host controller for PIO mode
24 * Set the interface PIO mode.
38 const u8 pio = drive->pio_mode - XFER_PIO_0; in it8213_set_pio_mode() local
50 if (pio > 1) in it8213_set_pio_mode()
54 if (ide_pio_need_iordy(drive, pio)) in it8213_set_pio_mode()
59 if (pio > 1) in it8213_set_pio_mode()
63 slave_data = slave_data | (timings[pio][0] << 2) | timings[pio][1]; in it8213_set_pio_mode()
66 if (pio > 1) in it8213_set_pio_mode()
68 master_data = master_data | (timings[pio][0] << 12) | (timings[pio][1] << 8); in it8213_set_pio_mode()
/Linux-v5.10/arch/powerpc/include/asm/
Dio-defs.h23 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)
28 DEF_PCI_AC_NORET(outl, (u32 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)
[all …]
/Linux-v5.10/virt/kvm/
Dcoalesced_mmio.c89 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()
178 if (zone->pio != 1 && zone->pio != 0) in kvm_vm_ioctl_unregister_coalesced_mmio()
184 if (zone->pio == dev->zone.pio && in kvm_vm_ioctl_unregister_coalesced_mmio()
187 zone->pio ? KVM_PIO_BUS : KVM_MMIO_BUS, &dev->dev); in kvm_vm_ioctl_unregister_coalesced_mmio()
/Linux-v5.10/arch/mips/include/asm/sgi/
Dhpc3.h77 #define HPC3_SCTRL_AMASK 0x20 /* DMA active inhibits PIO */
95 volatile u32 pconfig; /* PIO configuration register */
100 #define HPC3_SPCFG_HW 0x1000 /* Enable 16-bit halfword PIO accesses to scsi */
101 #define HPC3_SPCFG_SWAP 0x2000 /* Byte swap all PIO accesses */
102 #define HPC3_SPCFG_EPAR 0x4000 /* Enable parity checking for PIO */
103 #define HPC3_SPCFG_FUJI 0x8000 /* Fujitsu scsi controller mode for faster dma/pio */
125 #define HPC3_ERXCTRL_AMASK 0x00000400 /* Tells if ACTIVE inhibits PIO's to hpc3 */
137 #define HPC3_EDCFG_D1 0x0000f /* Cycles to spend in D1 state for PIO */
138 #define HPC3_EDCFG_D2 0x000f0 /* Cycles to spend in D2 state for PIO */
139 #define HPC3_EDCFG_D3 0x00f00 /* Cycles to spend in D3 state for PIO */
[all …]
/Linux-v5.10/Documentation/w1/slaves/
Dw1_ds28e04.rst7 * Maxim DS28E04-100 4096-Bit Addressable 1-Wire EEPROM with PIO
20 Support is provided through the sysfs files "eeprom" and "pio". CRC checking
35 PIO Access
37 The 2 PIOs of the DS28E04-100 are accessible via the "pio" sysfs file.
39 The current status of the PIO's is returned as an 8 bit value. Bit 0/1
40 represent the state of PIO_0/PIO_1. Bits 2..7 do not care. The PIO's are
/Linux-v5.10/drivers/soc/fsl/qe/
Dqe_io.c142 struct device_node *pio; in par_io_of_config() local
151 pio = of_parse_phandle(np, "pio-handle", 0); in par_io_of_config()
152 if (pio == NULL) { in par_io_of_config()
153 printk(KERN_ERR "pio-handle not available\n"); in par_io_of_config()
157 pio_map = of_get_property(pio, "pio-map", &pio_map_len); in par_io_of_config()
159 printk(KERN_ERR "pio-map is not set!\n"); in par_io_of_config()
164 printk(KERN_ERR "pio-map format wrong!\n"); in par_io_of_config()
181 of_node_put(pio); in par_io_of_config()

12345678910>>...37