Lines Matching defs:q

110 static int qcow_l2_cache_write(struct qcow *q, struct qcow_l2_table *c)  in qcow_l2_cache_write()
129 static int cache_table(struct qcow *q, struct qcow_l2_table *c) in cache_table()
164 static struct qcow_l2_table *l2_table_search(struct qcow *q, u64 offset) in l2_table_search()
180 static struct qcow_l2_table *new_cache_table(struct qcow *q, u64 offset) in new_cache_table()
200 static inline u64 get_l1_index(struct qcow *q, u64 offset) in get_l1_index()
207 static inline u64 get_l2_index(struct qcow *q, u64 offset) in get_l2_index()
214 static inline u64 get_cluster_offset(struct qcow *q, u64 offset) in get_cluster_offset()
221 static struct qcow_l2_table *qcow_read_l2_table(struct qcow *q, u64 offset) in qcow_read_l2_table()
286 static ssize_t qcow1_read_cluster(struct qcow *q, u64 offset, in qcow1_read_cluster()
371 static ssize_t qcow2_read_cluster(struct qcow *q, u64 offset, in qcow2_read_cluster()
470 struct qcow *q = disk->priv; in qcow_read_sector_single() local
570 static int write_refcount_block(struct qcow *q, struct qcow_refcount_block *rfb) in write_refcount_block()
584 static int cache_refcount_block(struct qcow *q, struct qcow_refcount_block *c) in cache_refcount_block()
611 static struct qcow_refcount_block *new_refcount_block(struct qcow *q, u64 rfb_offset) in new_refcount_block()
649 static struct qcow_refcount_block *refcount_block_search(struct qcow *q, u64 offset) in refcount_block_search()
664 static struct qcow_refcount_block *qcow_grow_refcount_block(struct qcow *q, in qcow_grow_refcount_block()
716 static struct qcow_refcount_block *qcow_read_refcount_block(struct qcow *q, u64 clust_idx) in qcow_read_refcount_block()
754 static u16 qcow_get_refcount(struct qcow *q, u64 clust_idx) in qcow_get_refcount()
779 static int update_cluster_refcount(struct qcow *q, u64 clust_idx, u16 append) in update_cluster_refcount()
822 static void qcow_free_clusters(struct qcow *q, u64 clust_start, u64 size) in qcow_free_clusters()
838 static u64 qcow_alloc_clusters(struct qcow *q, u64 size, int update_ref) in qcow_alloc_clusters()
868 static int qcow_write_l1_table(struct qcow *q) in qcow_write_l1_table()
886 static int get_cluster_table(struct qcow *q, u64 offset, in get_cluster_table()
973 static ssize_t qcow_write_cluster(struct qcow *q, u64 offset, in qcow_write_cluster()
1075 struct qcow *q = disk->priv; in qcow_write_sector_single() local
1124 struct qcow *q = disk->priv; in qcow_disk_flush() local
1162 struct qcow *q; in qcow_disk_close() local
1194 static int qcow_read_refcount_table(struct qcow *q) in qcow_read_refcount_table()
1212 static int qcow_write_refcount_table(struct qcow *q) in qcow_write_refcount_table()
1221 static int qcow_read_l1_table(struct qcow *q) in qcow_read_l1_table()
1281 struct qcow *q; in qcow2_probe() local
1426 struct qcow *q; in qcow1_probe() local