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

123456

/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
53 * device private data to struct platram_info conversion
65 * to = 0 => read-only
69 static inline void platram_setrw(struct platram_info *info, int to) argument
75 (info->pdata->set_rw)(info->dev, to); local
80 * called to remove the device from the driver's control
178 dev_err(&pdev->dev, "failed to request memory region\n");
189 dev_err(&pdev->dev, "failed to ioremap() region\n");
207 /* fallback to map_ram */
212 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 Dvmax301.c9 to the lower 8k of the device the second is paged. Writing a 16 bit page
10 value to anywhere in the first 8k will cause the second 8k to page around.
13 of flash that is smart enough to copy itself down, page in the rest of
33 /* Actually we could use two spinlocks, but we'd have to have
37 fields pointing to yet another private struct.
65 static void vmax301_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) argument
73 memcpy_fromio(to, map->map_priv_2 + from, thislen);
75 to += thislen;
89 static void vmax301_copy_to(struct map_info *map, unsigned long to, cons 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);
153 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
107 gf_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) argument
145 gf_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) argument
[all...]
H A Dixp2000.c55 * causes the lower address bits to be XORed with 0x11 on 8 bit accesses
81 * We can't use the standard memcpy due to the broken SlowPort
85 static void ixp2000_flash_copy_from(struct map_info *map, void *to, argument
90 *(__u8 *) to++ = *(__u8 *)(map->map_priv_1 + from++);
99 static void ixp2000_flash_copy_to(struct map_info *map, unsigned long to, argument
102 to = flash_bank_setup(map, to);
104 unsigned long tmp = address_fix8_write(map->map_priv_1 + to++);
175 * not attempt to do a direct access on us.
183 * map_priv_2 is used to stor
[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.c70 static void lf_copy_from(struct map_info *map, void *to, argument
85 memcpy_fromio(to, map->virt + (from & info->win_mask), n);
89 to += n;
H A Doctagon-5066.c21 The driver tries to do a detection algorithm to guess what sort of devices
45 * We use map_priv_1 to identify which device we are.
73 static void oct5066_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) argument
82 memcpy_fromio(to, iomapadr + from, thislen);
84 to += thislen;
98 static void oct5066_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) argument
102 if (len > (WINDOW_LENGTH - (to & WINDOW_MASK)))
103 thislen = WINDOW_LENGTH-(to & WINDOW_MASK);
106 oct5066_page(map, to);
[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/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/target/tcm_fc/
H A Dtfc_io.c23 * this program; if not, write to the Free Software Foundation, Inc.,
58 * Deliver read data back to initiator.
82 void *to = NULL; local
93 * Setup to use first mem list entry, unless no data.
103 /* no scatter/gather in skb for odd word length due to fc_seq_send() */
116 * , then allow 'frame_len' to be as big as 'lso_max'
125 to = fc_frame_payload_get(fp, 0);
130 * driver to indicate HW about max frame size, so that
156 memcpy(to, from, tlen);
158 to
205 void *to; local
[all...]
/drivers/media/video/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/video/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 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 485 milliseconds

123456