Lines Matching refs:fatbuf
169 uint8_t *fatbuf;
217 return (fat->fatbuf + ((cl + (cl >> 1))));
274 return (fat->fatbuf + (cl << 1));
313 return (fat->fatbuf + (cl << 2));
714 fat->fatbuf = mmap(NULL, fat->fatsize,
717 if (fat->fatbuf != MAP_FAILED) {
742 fat->fatbuf = malloc(readsize);
743 if (fat->fatbuf == NULL) {
752 if ((size_t)read(fd, fat->fatbuf, readsize) != readsize) {
771 entry[i].chunk = &fat->fatbuf[entry[i].addr];
781 free(fat->fatbuf);
782 fat->fatbuf = NULL;
790 munmap(fat->fatbuf, fat->fatsize);
796 free(fat->fatbuf);
798 fat->fatbuf = NULL;
828 buffer = fat->fatbuf;
1168 (size_t)read(fd, fat->fatbuf, rwsize) != rwsize) &&
1175 (size_t)write(fd, fat->fatbuf, rwsize) != rwsize) &&
1230 (size_t)write(fd, fat->fatbuf, writesz) != writesz) &&