Lines Matching defs:mydata
80 struct ram_vsic *mydata = vsic->data;
81 struct ramcb *cb = get_ramcb(mydata);
85 memcpy(mydata->vsa_area + offset, buffer, size);
104 struct ram_vsic *mydata = vsic->data;
105 struct ramcb *cb = get_ramcb(mydata);
122 struct ram_vsic *mydata = vsic->data;
123 struct ramcb *cb = get_ramcb(mydata);
137 struct ram_vsic *mydata = vsic->data;
138 struct ramcb *cb = get_ramcb(mydata);
151 struct ram_vsic *mydata = vsic->data;
154 if(mydata->cb_list[i] != NULL) {
155 const struct ramcb *cb = mydata->cb_list[i];
160 memcpy(cb->buf, mydata->vsa_area + cb->offset, cb->size);
165 mydata->cb_list[i] = NULL;
178 struct ram_vsic *mydata = vsic->data;
184 if(mydata->cb_list[i] != NULL) {
185 const struct ramcb *cb = mydata->cb_list[i];
193 memcpy(cb->buf, mydata->vsa_area + cb->offset, cb->size);
198 mydata->cb_list[i] = NULL;
226 struct ram_vsic *mydata = malloc(sizeof(struct ram_vsic));
227 assert(mydata != NULL);
228 memset(mydata, 0, sizeof(struct ram_vsic));
230 mydata->vsa_area = malloc(10 * 1024 * 1024);
231 assert(mydata->vsa_area != NULL);
235 vsic->data = mydata;