Lines Matching refs:sector
77 uint64_t sector; member
330 static int ramdisk_read(struct ramdisk* ramdisk, uint64_t sector, in ramdisk_read() argument
338 key = sector + i; in ramdisk_read()
351 static int ramdisk_write_hash(struct hashtable* h, uint64_t sector, char* buf, in ramdisk_write_hash() argument
357 if ((v = hashtable_search(h, §or))) { in ramdisk_write_hash()
372 *key = sector; in ramdisk_write_hash()
374 DPRINTF("ramdisk_write_hash failed on sector %" PRIu64 "\n", sector); in ramdisk_write_hash()
383 static inline int ramdisk_write(struct ramdisk* ramdisk, uint64_t sector, in ramdisk_write() argument
389 rc = ramdisk_write_hash(ramdisk->h, sector + i, in ramdisk_write()
445 char* sector; in merge_requests() local
456 if (!(sector = hashtable_search(ramdisk->prev, &start))) { in merge_requests()
488 memcpy(buf + i * ramdisk->sector_size, sector, ramdisk->sector_size); in merge_requests()
850 uint64_t *sector = (uint64_t *)(header + sizeof(uint32_t)); in primary_queue_write() local
861 *sector = treq.sec; in primary_queue_write()
1206 uint64_t *sector = (uint64_t *) &header[sizeof(uint32_t)]; in server_do_wreq() local
1227 if (ramdisk_write(&s->ramdisk, *sector, *sectors, buf) < 0) in server_do_wreq()