Lines Matching defs:sramfd
292 int sramfd = 0;
299 sramfd = open(_PATH_DEVSRAM, O_RDONLY);
300 if (sramfd < 0)
306 if (ioctl(sramfd, SIOGSRAM, &buffer) < 0)
311 close(sramfd);
366 int sramfd = 0;
387 if (sramfd == 0) {
388 sramfd = open(_PATH_DEVSRAM, O_RDWR);
389 if (sramfd < 0)
394 if (ioctl(sramfd, SIOPSRAM, &buffer) < 0)
398 sramfd = open(PATH_RAMFILE, O_WRONLY);
399 if (sramfd < 0)
401 if (write(sramfd, modified_values, 256) != 256)
405 if (sramfd != 0)
406 close(sramfd);
443 int sramfd, fd, i;
464 sramfd = open(_PATH_DEVSRAM, O_RDWR);
465 if (sramfd < 0)
472 if (ioctl(sramfd, SIOPSRAM, &buffer) < 0)
476 close(sramfd);