Lines Matching +full:per +full:- +full:port +full:- +full:set
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 */
53 unsigned port, u##t value) \
55 iowrite##t(value, slot->iobase + port); \
59 unsigned port) \
61 return ioread##t(slot->iobase + port); \
65 unsigned port, u##t set, u##t clear) \
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
170 * IRQ disabled if the SG_MITER_ATOMIC is set. Don't care otherwise.
173 void __iomem *port, size_t count) in cb710_sg_dwiter_write_from_io() argument
175 while (count-- > 0) in cb710_sg_dwiter_write_from_io()
176 cb710_sg_dwiter_write_next_block(miter, ioread32(port)); 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
192 * IRQ disabled if the SG_MITER_ATOMIC is set. Don't care otherwise.
195 void __iomem *port, size_t count) in cb710_sg_dwiter_read_to_io() argument
197 while (count-- > 0) in cb710_sg_dwiter_read_to_io()
198 iowrite32(cb710_sg_dwiter_read_next_block(miter), port); in cb710_sg_dwiter_read_to_io()