Lines Matching refs:cookie
100 pm_identify_partition(int fd, partition_data* partition, void** cookie)
103 if (fd < 0 || !partition || !cookie)
129 *cookie = map;
165 pm_scan_partition(int fd, partition_data* partition, void* cookie)
168 if (fd < 0 || !partition || !cookie)
175 PartitionMapCookie* map = (PartitionMapCookie*)cookie;
211 child->cookie = primary;
227 child->cookie = NULL;
237 pm_free_identify_partition_cookie(partition_data*/* partition*/, void* cookie)
239 if (cookie) {
240 PartitionMapCookie* map = (PartitionMapCookie*)cookie;
254 partition->cookie = NULL;
288 ep_identify_partition(int fd, partition_data* partition, void** cookie)
291 if (fd < 0 || !partition || !cookie || !partition->cookie)
317 ep_scan_partition(int fd, partition_data* partition, void* cookie)
320 if (fd < 0 || !partition || !partition->cookie)
331 PrimaryPartition* primary = (PrimaryPartition*)partition->cookie;
368 child->cookie = logical;
383 child->cookie = NULL;
392 ep_free_identify_partition_cookie(partition_data* partition, void* cookie)
402 // the logical partition's cookie belongs to the partition map partition
404 partition->cookie = NULL;
412 // the extended partition's cookie belongs to the partition map partition