Searched defs:to (Results 1 - 25 of 177) sorted by relevance

12345678

/drivers/infiniband/hw/qib/
H A Dqib_pio_copy.c4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
36 * qib_pio_copy - copy data to MMIO space, in multiples of 32-bits
37 * @to: destination, in MMIO space (must be 64-bit aligned)
39 * @count: number of 32-bit quantities to copy
41 * Copy data from kernel space to MMIO space, in multiples of 32 bits at a
45 void qib_pio_copy(void __iomem *to, const void *from, size_t count) argument
48 u64 __iomem *dst = to;
57 u32 __iomem *dst = to;
/drivers/mtd/maps/
H A Dmap_funcs.c22 static void __xipram simple_map_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) argument
24 inline_map_copy_from(map, to, from, len);
27 static void __xipram simple_map_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) argument
29 inline_map_copy_to(map, to, from, len);
H A Dplat-ram.c20 * along with this program; if not, write to the Free Software
52 * device private data to struct platram_info conversion
64 * to = 0 => read-only
68 static inline void platram_setrw(struct platram_info *info, int to) argument
74 (info->pdata->set_rw)(info->dev, to); local
79 * called to remove the device from the driver's control
174 dev_err(&pdev->dev, "failed to request memory region\n");
185 dev_err(&pdev->dev, "failed to ioremap() region\n");
203 /* fallback to map_ram */
208 dev_err(&pdev->dev, "failed to prob
[all...]
H A Ddc21285.c28 * This is really ugly, but it seams to be the only
29 * realiable way to do it, as the cpld state machine
38 * we want to write a bit pattern XXX1 to Xilinx to enable
46 * let the ISA bus to catch on...
75 static void dc21285_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) argument
77 memcpy(to, (void*)(map->virt + from), len);
105 static void dc21285_copy_to_32(struct map_info *map, unsigned long to, const void *from, ssize_t len) argument
110 dc21285_write32(map, d, to);
117 dc21285_copy_to_16(struct map_info *map, unsigned long to, const void *from, ssize_t len) argument
129 dc21285_copy_to_8(struct map_info *map, unsigned long to, const void *from, ssize_t len) argument
[all...]
H A Dbfin-async-flash.c86 static void bfin_flash_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) argument
92 memcpy(to, map->virt + from, len);
112 static void bfin_flash_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) argument
118 memcpy(map->virt + to, from, len);
154 pr_devinit(KERN_ERR DRIVER_NAME ": Failed to request gpio %d\n", state->enet_flash_pin);
H A Dgpio-addr-flash.c6 * to a 2MiB memory range and use the GPIOs to select a particular range.
38 * @gpio_count: number of GPIOs used to address
39 * @gpio_addrs: array of GPIOs to twiddle
54 * gf_set_gpios() - set GPIO address lines to access specified flash offset
56 * @ofs: desired offset to access
60 * type). We rely on the GPIO framework to treat non-zero value as high so
61 * that we don't have to normalize the bits.
80 * @ofs: desired offset to read
98 * @to
105 gf_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) argument
151 gf_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) argument
[all...]
H A Dixp4xx.c39 * ('address coherency') so we need to undo the swizzling to ensure commands
42 * To further complicate matters, due to the way the expansion bus controller
51 * this requires CONFIG_MTD_CFI_BE_BYTE_SWAP to be enabled to 'unswap' the CFI
97 * when attached to a 16-bit wide device (such as the 28F128J3A),
100 static void ixp4xx_copy_from(struct map_info *map, void *to, argument
103 u8 *dest = (u8 *) to;
129 * probe to fail and proceed to th
[all...]
H A Dlantiq-flash.c27 * The NOR flash is connected to the same external bus unit (EBU) as PCI.
28 * To make PCI work we need to enable the endianness swapping for the address
29 * written to the EBU. This endianness swapping works for PCI correctly but
30 * fails for attached NOR devices. To workaround this we need to use a complex
33 * unlock addresses to ensure that access to the NOR device works correctly.
79 * The normal alternative of using memcpy_{to,from}io also makes use of
81 * with having to use our own loop.
84 ltq_copy_from(struct map_info *map, void *to, argument
88 unsigned char *t = (unsigned char *)to;
98 ltq_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) argument
[all...]
H A Dlatch-addr-flash.c69 static void lf_copy_from(struct map_info *map, void *to, argument
84 memcpy_fromio(to, map->virt + (from & info->win_mask), n);
88 to += n;
H A Dpci.c56 static void mtd_pci_copyfrom(struct map_info *_map, void *to, unsigned long from, ssize_t len) argument
59 memcpy_fromio(to, map->base + map->translate(map, from), len);
74 static void mtd_pci_copyto(struct map_info *_map, unsigned long to, const void *from, ssize_t len) argument
77 memcpy_toio(map->base + map->translate(map, to), from, len);
107 * We want to base the memory window at Xscale
133 * the first 80 bytes (they appear to read nonsense).
174 * We need to re-allocate PCI BAR2 address range to the
179 * Hmm, if an address was allocated to the ROM resource, but
209 * We need to und
[all...]
H A Dsbc_gxx.c17 along with this program; if not, write to the Free Software
20 The SBC-MediaGX / SBC-GXx has up to 16 MiB of
42 (to support bzImages up to 638KiB-ish)
71 /* bit 7 of 0x259 must be 1 to enable device. */
88 * single flash device into. If the size if zero we use up to the end of the
124 static void sbc_gxx_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) argument
133 memcpy_fromio(to, iomapadr + (from & WINDOW_MASK), thislen);
135 to += thislen;
149 static void sbc_gxx_copy_to(struct map_info *map, unsigned long to, cons argument
[all...]
/drivers/nfc/st21nfca/
H A Dst21nfca_dep.h28 u8 to; member in struct:st21nfca_dep_info
/drivers/hid/
H A Dhid-icade.c55 * const char *to;
111 * printf ("\tu16 to;\n");
118 * usage_for_key (trans->from), trans->to, trans->press);
129 u16 to; member in struct:icade_key
186 trans->to, trans->press);
203 hid_map_usage(hi, usage, bit, max, EV_KEY, trans->to);
204 set_bit(trans->to, hi->input->keybit);
/drivers/mtd/chips/
H A Dmap_absent.c2 * Common code to handle absent "placeholder" devices
5 * This map driver is used to allocate "placeholder" MTD
76 static int map_absent_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument
H A Dmap_rom.c2 * Common code to handle map devices which are simple ROM
59 * Allow NOMMU mmap() to directly map the device (if not NULL)
60 * - return the address to which the offset maps
61 * - return -ENOSYS to indicate refusal to do the mapping
83 /* Nothing to see here */
86 static int maprom_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument
H A Dmap_ram.c2 * Common code to handle map devices which are simple RAM
56 /* OK. It seems to be RAM. */
85 * Allow NOMMU mmap() to directly map the device (if not NULL)
86 * - return the address to which the offset maps
87 * - return -ENOSYS to indicate refusal to do the mapping
107 static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument
111 map_copy_to(map, to, buf, len);
134 /* Nothing to see here */
/drivers/hwspinlock/
H A Dhwspinlock_core.c37 * A radix tree is used to maintain the available hwspinlock instances.
39 * and provides easy-to-use API which makes the hwspinlock core code simple
40 * and easy to read.
48 * framework uses to mark unused hwspinlock instances (see the
50 * tree, looking for an unused hwspinlock instance, is now reduced to a
56 * Synchronization of access to the tree is achieved using this mutex,
64 * __hwspin_trylock() - attempt to lock a specific hwspinlock
65 * @hwlock: an hwspinlock which we want to trylock
70 * This function attempts to lock an hwspinlock, and will immediately
74 * interrupts) is disabled, so the caller must not sleep, and is advised to
177 __hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to, int mode, unsigned long *flags) argument
[all...]
/drivers/isdn/hisax/
H A Dhscx_irq.c8 * This software may be used and distributed according to the terms
19 int to = 50; local
21 while ((READHSCX(cs, hscx, HSCX_STAR) & 0x04) && to) {
23 to--;
25 if (!to)
33 int to = 50; local
35 while (((READHSCX(cs, hscx, HSCX_STAR) & 0x44) != 0x40) && to) {
37 to--;
39 if (!to)
H A Djade.c8 * This software may be used and distributed according to the terms
27 int to = 50; local
29 while (to) {
32 to--;
35 if (!to) {
48 /* Write to indirect accessible jade register set */
52 int to = 50; local
59 to = 50;
61 while (to) {
64 to
[all...]
H A Djade_irq.c8 * This software may be used and distributed according to the terms
16 int to = 50; local
18 while ((READJADE(cs, jade, jade_HDLC_STAR) & mask) && to) {
20 to--;
22 if (!to)
/drivers/media/pci/cx18/
H A Dcx18-io.h18 * along with this program; if not, write to the Free Software
33 * *write* functions are implied to retry the mmio unless suffixed with _noretry
34 * *read* functions never retry the mmio (it never helps to do so)
141 void cx18_memcpy_fromio(struct cx18 *cx, void *to, argument
144 memcpy_fromio(to, from, len);
/drivers/media/pci/ivtv/
H A Divtv-queue.c18 along with this program; if not, write to the Free Software
56 /* clear the buffer if it is going to be enqueued to the free queue */
89 struct ivtv_queue *to, int clear)
93 list_move_tail(from->list.next, &to->list);
100 to->buffers++;
101 to->length += s->buf_size;
102 to->bytesused += buf->bytesused - buf->readpos;
105 /* Move 'needed_bytes' worth of buffers from queue 'from' into queue 'to'.
106 If 'needed_bytes' == 0, then move all buffers from 'from' into 'to'
88 ivtv_queue_move_buf(struct ivtv_stream *s, struct ivtv_queue *from, struct ivtv_queue *to, int clear) argument
122 ivtv_queue_move(struct ivtv_stream *s, struct ivtv_queue *from, struct ivtv_queue *steal, struct ivtv_queue *to, int needed_bytes) argument
[all...]
/drivers/mtd/devices/
H A Dbcm47xxsflash.c58 pr_err("Timeout waiting for flash to be ready!\n");
173 /* If we don't overwrite whole page, read it to the buffer first */
207 static int bcm47xxsflash_write(struct mtd_info *mtd, loff_t to, size_t len, argument
219 written = bcm47xxsflash_write_st(mtd, to, len, buf);
222 written = bcm47xxsflash_write_at(mtd, to, len, buf);
228 pr_err("Error writing at offset 0x%llX\n", to);
231 to += (loff_t)written;
307 pr_err("Failed to register MTD device: %d\n", err);
H A Dms02-nv.c39 * at any 8MiB boundary within a 0MiB up to 112MiB range or at any 32MiB
40 * boundary within a 0MiB up to 448MiB range. We don't support a module
67 static int ms02nv_write(struct mtd_info *mtd, loff_t to, argument
72 memcpy(mp->uaddr + to, buf, len);
217 "ms02-nv: Unable to register MTD device, aborting!\n");
H A Dmtdram.c57 * Allow NOMMU mmap() to directly map the device (if not NULL)
58 * - return the address to which the offset maps
59 * - return -ENOSYS to indicate refusal to do the mapping
77 static int ram_write(struct mtd_info *mtd, loff_t to, size_t len, argument
80 memcpy((char *)mtd->priv + to, buf, len);

Completed in 502 milliseconds

12345678