Lines Matching +full:pio +full:- +full:transfer
1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright by Michał Mirosław, 2008-2009
21 /* per-virtual-slot structure */
28 /* per-device structure */
50 /* slot port accessors - so the logic is more clear in the code */
55 iowrite##t(value, slot->iobase + port); \
61 return ioread##t(slot->iobase + port); \
68 (ioread##t(slot->iobase + port) & ~clear)|set, \
69 slot->iobase + port); \
91 return dev_get_drvdata(slot->pdev.dev.parent); in cb710_slot_to_chip()
96 return &slot->pdev.dev; in cb710_slot_dev()
101 return &chip->pdev->dev; in cb710_chip_dev()
128 * Copyright by Michał Mirosław, 2008-2009
137 * 32-bit PIO mapping sg iterator
139 * Hides scatterlist access issues - fragment boundaries, alignment, page
140 * mapping - for drivers using 32-bit-word-at-a-time-PIO (ie. PCI devices
143 * Best-case reading (transfer from device):
148 * Best-case writing (transfer to device):
158 * cb710_sg_dwiter_write_from_io - transfer data to mapped buffer from 32-bit IO port
160 * @port: PIO port - IO or MMIO address
161 * @count: number of 32-bit words to transfer
164 * Reads @count 32-bit words from register @port and stores it in
175 while (count-- > 0) in cb710_sg_dwiter_write_from_io()
180 * cb710_sg_dwiter_read_to_io - transfer data to 32-bit IO port from mapped buffer
182 * @port: PIO port - IO or MMIO address
183 * @count: number of 32-bit words to transfer
186 * Writes @count 32-bit words to register @port from buffer iterated
197 while (count-- > 0) in cb710_sg_dwiter_read_to_io()