Lines Matching defs:offset

264 static __u8 read8 (__u32 offset)
266 volatile __u8 *data = (__u8 *) (FLASH_OFFSET + offset);
268 printk (KERN_DEBUG "%s(): 0x%.8x -> 0x%.2x\n", __func__, offset, *data);
273 static __u32 read32 (__u32 offset)
275 volatile __u32 *data = (__u32 *) (FLASH_OFFSET + offset);
277 printk (KERN_DEBUG "%s(): 0x%.8x -> 0x%.8x\n", __func__, offset, *data);
282 static void write32 (__u32 x,__u32 offset)
284 volatile __u32 *data = (__u32 *) (FLASH_OFFSET + offset);
287 printk (KERN_DEBUG "%s(): 0x%.8x <- 0x%.8x\n", __func__, offset, *data);
320 * Erase one block of flash memory at offset ``offset'' which is any
325 static inline int erase_block (__u32 offset)
330 printk (KERN_DEBUG "%s(): 0x%.8x\n", __func__, offset);
334 write32 (DATA_TO_FLASH (ERASE_SETUP),offset);
335 write32 (DATA_TO_FLASH (ERASE_CONFIRM),offset);
340 write32 (DATA_TO_FLASH (STATUS_READ),offset);
341 status = FLASH_TO_DATA (read32 (offset));
346 write32 (DATA_TO_FLASH (READ_ARRAY),offset);
351 printk (KERN_WARNING "%s: erase error at address 0x%.8x.\n",module_name,offset);
376 for (i = 0; i < mtd->numeraseregions && instr->addr >= mtd->eraseregions[i].offset; i++) ;
398 for (; i < mtd->numeraseregions && instr->addr + instr->len >= mtd->eraseregions[i].offset; i++) ;
419 if (addr == mtd->eraseregions[i].offset + (mtd->eraseregions[i].erasesize * mtd->eraseregions[i].numblocks)) i++;
463 * Write one dword ``x'' to flash memory at offset ``offset''. ``offset''
468 static inline int write_dword (__u32 offset,__u32 x)
473 printk (KERN_DEBUG "%s(): 0x%.8x <- 0x%.8x\n", __func__, offset, x);
477 write32 (DATA_TO_FLASH (PGM_SETUP),offset);
480 write32 (x,offset);
485 write32 (DATA_TO_FLASH (STATUS_READ),offset);
486 status = FLASH_TO_DATA (read32 (offset));
491 write32 (DATA_TO_FLASH (READ_ARRAY),offset);
494 if ((status & STATUS_PGM_ERR) || read32 (offset) != x)
496 printk (KERN_WARNING "%s: write error at address 0x%.8x.\n",module_name,offset);
571 .offset = 0x00000000,
577 .offset = FLASH_BLOCKSIZE_PARAM * FLASH_NUMBLOCKS_16m_PARAM,
587 .offset = PART_BLOB_START,
593 .offset = PART_KERNEL_START, /* MTDPART_OFS_APPEND */
599 .offset = PART_INITRD_START, /* MTDPART_OFS_APPEND */
646 "mtd.eraseregions[%d].offset = 0x%.8x\n"
649 result,mtd.eraseregions[result].offset,
659 "lart_partitions[%d].offset = 0x%.8x\n"
662 result,lart_partitions[result].offset,