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);
517 munmap (cfi->mmap, cfi->dev_size);
630 cfi->dev_size = hw_find_integer_property (me, "size");
632 cfi->dev_size = attach_size;
633 cfi->query.dev_size = log2 (cfi->dev_size);
738 posix_fallocate (fd, 0, cfi->dev_size);
740 cfi->mmap = mmap (NULL, cfi->dev_size,
757 cfi->data = HW_NALLOC (me, unsigned char, cfi->dev_size);
765 read_len = fread (cfi->data, 1, cfi->dev_size, fp);
774 memset (cfi->data, 0xff, cfi->dev_size - read_len);