/drivers/infiniband/hw/qib/ |
H A D | qib_pio_copy.c | 4 * 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 D | map_funcs.c | 22 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 D | plat-ram.c | 20 * 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 D | dc21285.c | 28 * 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 D | bfin-async-flash.c | 86 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 D | gpio-addr-flash.c | 6 * 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 D | ixp4xx.c | 39 * ('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 D | lantiq-flash.c | 27 * 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 D | latch-addr-flash.c | 69 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 D | pci.c | 56 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 D | sbc_gxx.c | 17 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 D | st21nfca_dep.h | 28 u8 to; member in struct:st21nfca_dep_info
|
/drivers/hid/ |
H A D | hid-icade.c | 55 * 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 D | map_absent.c | 2 * 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 D | map_rom.c | 2 * 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 D | map_ram.c | 2 * 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 D | hwspinlock_core.c | 37 * 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 D | hscx_irq.c | 8 * 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 D | jade.c | 8 * 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 D | jade_irq.c | 8 * 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 D | cx18-io.h | 18 * 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 D | ivtv-queue.c | 18 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 D | bcm47xxsflash.c | 58 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 D | ms02-nv.c | 39 * 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 D | mtdram.c | 57 * 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);
|