Lines Matching defs:vsic
20 #include <storage/vsic.h>
62 static struct ramcb *get_ramcb(struct ram_vsic *vsic)
65 if(vsic->cb_list[i] == NULL) {
66 vsic->cb_list[i] = &vsic->cb[i];
67 return &vsic->cb[i];
74 static errval_t vsic_write(struct storage_vsic *vsic, struct storage_vsa *vsa,
77 assert(vsic != NULL);
80 struct ram_vsic *mydata = vsic->data;
98 static errval_t vsic_read(struct storage_vsic *vsic, struct storage_vsa *vsa,
101 assert(vsic != NULL);
104 struct ram_vsic *mydata = vsic->data;
118 static errval_t vsic_flush(struct storage_vsic *vsic, struct storage_vsa *vsa)
120 assert(vsic != NULL);
122 struct ram_vsic *mydata = vsic->data;
133 static errval_t vsic_flush2(struct storage_vsic *vsic, struct storage_vsa *vsa, void *handle)
135 assert(vsic != NULL);
137 struct ram_vsic *mydata = vsic->data;
148 static errval_t vsic_poll(struct storage_vsic *vsic, void **handle)
150 assert(vsic != NULL);
151 struct ram_vsic *mydata = vsic->data;
175 static errval_t vsic_wait(struct storage_vsic *vsic)
177 assert(vsic != NULL);
178 struct ram_vsic *mydata = vsic->data;
223 struct storage_vsic *vsic)
225 assert(vsic != NULL);
234 vsic->ops = file_ops;
235 vsic->data = mydata;
236 vsic->blocksize = 512; // XXX: Determine from drive?