Lines Matching refs:to
64 * to zero, and ensure we'll never miss the end of an comparison (bjd) */
111 /* always use indirect access for 256-bit to preserve kernel stack */
176 to a chip probe routine -- either JEDEC or CFI probe or both -- via
184 The mtd->priv field will point to the struct map_info, and any further
186 mtd->priv->fldrv_priv field. This allows the map driver to get at
203 in bytes, before you are talking to the first chip again.
214 want to enable XIP for non-linear mappings. Not yet though. */
216 /* It's possible for the map driver to use cached memory in its
219 it will signal it to the map driver through this routine to let
221 If there is no cache to care about this can be set to NULL. */
227 * global resource applying to all mapped flash chips on the system.
430 static inline void inline_map_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len)
433 memcpy(to, (char *)map->cached + from, len);
435 memcpy_fromio(to, map->virt + from, len);
438 static inline void inline_map_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len)
440 memcpy_toio(map->virt + to, from, len);
445 #define map_copy_from(map, to, from, len) (map)->copy_from(map, to, from, len)
447 #define map_copy_to(map, to, from, len) (map)->copy_to(map, to, from, len)
454 #define map_copy_from(map, to, from, len) inline_map_copy_from(map, to, from, len)
456 #define map_copy_to(map, to, from, len) inline_map_copy_to(map, to, from, len)