Lines Matching refs:contents
8 * This driver allows you to access the contents of the non-volatile memory in
18 * Checksums over the NVRAM contents are managed by this driver. In case of a
21 * ioctl(NVRAM_SETCKS) (doesn't change contents, just makes checksum valid
145 static int mach_proc_infos(unsigned char *contents, char *buffer, int *len,
245 unsigned char contents[NVRAM_BYTES];
254 for (tmp = contents; count-- > 0 && i < NVRAM_BYTES; ++i, ++tmp)
259 if (copy_to_user(buf, contents, tmp - contents))
264 return tmp - contents;
274 unsigned char contents[NVRAM_BYTES];
280 if (copy_from_user(contents, buf, len))
288 for (tmp = contents; count-- > 0 && i < NVRAM_BYTES; ++i, ++tmp)
297 return tmp - contents;
313 /* initialize NVRAM contents and checksum */
327 /* just set checksum, contents unchanged (maybe useful after
396 unsigned char contents[NVRAM_BYTES];
402 contents[i] = __nvram_read_byte(i);
405 *eof = mach_proc_infos(contents, buffer, &len, &begin, offset, size);