Lines Matching defs:vsic
21 #include <storage/vsic.h>
31 static struct aiocb *get_aiocb(struct file_vsic *vsic)
34 if(vsic->cb_list[i] == NULL) {
35 vsic->cb_list[i] = &vsic->cb[i];
36 return &vsic->cb[i];
43 static errval_t vsic_write(struct storage_vsic *vsic, struct storage_vsa *vsa,
46 assert(vsic != NULL);
49 struct file_vsic *mydata = vsic->data;
64 static errval_t vsic_read(struct storage_vsic *vsic, struct storage_vsa *vsa,
67 assert(vsic != NULL);
70 struct file_vsic *mydata = vsic->data;
85 static errval_t vsic_flush(struct storage_vsic *vsic, struct storage_vsa *vsa)
87 assert(vsic != NULL);
89 struct file_vsic *mydata = vsic->data;
100 static errval_t vsic_wait(struct storage_vsic *vsic)
102 assert(vsic != NULL);
103 struct file_vsic *mydata = vsic->data;
150 static errval_t file_vsic_alloc(struct storage_vsic *vsic)
152 assert(vsic != NULL);
158 vsic->ops = file_ops;
159 vsic->data = mydata;
160 vsic->blocksize = 512; // XXX: Determine from drive?
166 struct storage_vsic *vsic)
168 return file_vsic_alloc(vsic);