Lines Matching refs:fd

62 	int fd = -1;  in Identify()  local
63 if (partition->Open(O_RDONLY, &fd) != B_OK) in Identify()
65 float result = fModule->identify_partition(fd, partition->PartitionData(), in Identify()
67 close(fd); in Identify()
78 int fd = -1; in Scan() local
79 status_t result = partition->Open(O_RDONLY, &fd); in Scan()
82 result = fModule->scan_partition(fd, partition->PartitionData(), cookie); in Scan()
83 close(fd); in Scan()
135 int fd = -1; in Resize() local
136 status_t result = partition->Open(O_RDWR, &fd); in Resize()
140 result = fModule->resize(fd, partition->ID(), size, job); in Resize()
142 close(fd); in Resize()
168 int fd = -1; in SetContentName() local
169 status_t result = partition->Open(O_RDWR, &fd); in SetContentName()
174 result = fModule->set_content_name(fd, partition->ID(), name, job); in SetContentName()
177 close(fd); in SetContentName()
194 int fd = -1; in SetContentParameters() local
195 status_t result = partition->Open(O_RDWR, &fd); in SetContentParameters()
200 result = fModule->set_content_parameters(fd, partition->ID(), parameters, in SetContentParameters()
204 close(fd); in SetContentParameters()
221 int fd = -1; in Initialize() local
222 status_t result = partition->Open(O_RDWR, &fd); in Initialize()
227 result = fModule->initialize(fd, partition->ID(), name, parameters, in Initialize()
231 close(fd); in Initialize()
246 int fd = -1; in Uninitialize() local
247 status_t result = partition->Open(O_RDWR, &fd); in Uninitialize()
252 result = fModule->uninitialize(fd, partition->ID(), partition->Size(), in Uninitialize()
256 close(fd); in Uninitialize()