Lines Matching defs:mydata
31 struct ahci_vsic *mydata = vsic->data;
34 errval_t err = mydata->ata_rw28_rpc.rpc_tx_vtbl.
35 write_dma(&mydata->ata_rw28_rpc, buffer, STORAGE_VSIC_ROUND(vsic, size),
53 struct ahci_vsic *mydata = vsic->data;
57 errval_t err = mydata->ata_rw28_rpc.rpc_tx_vtbl.
58 read_dma(&mydata->ata_rw28_rpc, toread, offset, buf, &bytes_read);
74 struct ahci_vsic *mydata = vsic->data;
77 errval_t err = mydata->ata_rw28_rpc.rpc_tx_vtbl.
78 flush_cache(&mydata->ata_rw28_rpc, &outerr);
100 struct ahci_vsic *mydata = st;
101 mydata->ahci_binding = _binding;
110 struct ahci_vsic *mydata = malloc(sizeof(struct ahci_vsic));
111 assert(mydata != NULL);
112 memset(mydata, 0, sizeof(struct ahci_vsic));
115 err = ahci_init(port, ahci_bind_cb, mydata, get_default_waitset());
118 while(!mydata->ahci_binding) {
123 err = ahci_ata_rw28_init(&mydata->ahci_ata_rw28_binding,
124 get_default_waitset(), mydata->ahci_binding);
128 mydata->ata_rw28_binding =
129 (struct ata_rw28_binding*)&mydata->ahci_ata_rw28_binding;
132 ata_rw28_rpc_client_init(mydata->ata_rw28_binding);
136 vsic->data = mydata;