Lines Matching refs:fd
286 int fd; in do_open() local
290 fd = open(name, O_RDONLY); in do_open()
291 if (fd >= 0) in do_open()
292 return fd; in do_open()
307 int fd; in __open_dso() local
323 fd = do_open(name); in __open_dso()
325 return fd; in __open_dso()
339 int fd = __open_dso(dso, machine); in open_dso() local
341 if (fd >= 0) { in open_dso()
350 return fd; in open_dso()
355 if (dso->data.fd >= 0) { in close_data_fd()
356 close(dso->data.fd); in close_data_fd()
357 dso->data.fd = -1; in close_data_fd()
459 if (dso->data.fd >= 0) in dso__data_fd()
463 dso->data.fd = open_dso(dso, machine); in dso__data_fd()
470 dso->data.fd = open_dso(dso, machine); in dso__data_fd()
471 if (dso->data.fd >= 0) in dso__data_fd()
476 if (dso->data.fd >= 0) in dso__data_fd()
481 return dso->data.fd; in dso__data_fd()
587 ret = pread(dso->data.fd, cache->data, DSO__DATA_CACHE_SIZE, cache_offset); in dso_cache__read()
656 if (fstat(dso->data.fd, &st)) { in data_file_size()
676 int fd; in dso__data_size() local
678 fd = dso__data_fd(dso, machine); in dso__data_size()
679 if (fd < 0) in dso__data_size()
680 return fd; in dso__data_size()
922 dso->data.fd = -1; in dso__new()
1132 int fd; in dso__type() local
1134 fd = dso__data_fd(dso, machine); in dso__type()
1135 if (fd < 0) in dso__type()
1138 return dso__type_fd(fd); in dso__type()