Lines Matching refs:dev_size
115 /* Flash size is 2^dev_size bytes. */
116 unsigned char dev_size;
160 unsigned width, dev_size, status;
189 memset (cfi->data, 0xff, cfi->dev_size);
369 offset = addr & (cfi->dev_size - 1);
453 offset = addr & (cfi->dev_size - 1);
515 munmap (cfi->mmap, cfi->dev_size);
628 cfi->dev_size = hw_find_integer_property (me, "size");
630 cfi->dev_size = attach_size;
631 cfi->query.dev_size = log2 (cfi->dev_size);
736 posix_fallocate (fd, 0, cfi->dev_size);
738 cfi->mmap = mmap (NULL, cfi->dev_size,
755 cfi->data = HW_NALLOC (me, unsigned char, cfi->dev_size);
763 read_len = fread (cfi->data, 1, cfi->dev_size, fp);
772 memset (cfi->data, 0xff, cfi->dev_size - read_len);