Lines Matching refs:err

42 static void ahci_init_cb(void *st, errval_t err, struct ahci_binding *binding)
46 if (err_is_fail(err)) {
47 printf("ahci_init_cb returned '%s'\n", err_getstring(err));
48 h->wait_status = err;
61 errval_t err;
67 err = ahci_init(h->port_num, ahci_init_cb, h, get_default_waitset());
68 if (err_is_fail(err)) {
69 printf("ahci_init failed: '%s'\n", err_getstring(err));
71 return err;
93 errval_t err = ahci_close(h->binding, MKCLOSURE(ahci_close_cb, h));
94 if (err_is_fail(err)) {
95 printf("ahci_init failed: '%s'\n", err_getstring(err));
97 return err;
115 errval_t err = SYS_ERR_OK;
134 err = ahci_issue_command(h->binding, NOP_CONT, 0,
136 if (err_is_fail(err)) {
137 printf("bdfs_ahci: read load_fis failed: 0x%" PRIxPTR "\n", err);
150 return err;
165 errval_t err;
173 err = ahci_dma_region_alloc(aligned_bytes, &bufregion);
174 if (err_is_fail(err)) {
175 printf("bdfs_ahci: read alloc_region failed: 0x%" PRIxPTR "\n", err);
176 return err;
197 err = ahci_issue_command(h->binding, NOP_CONT, 0,
199 if (err_is_fail(err)) {
200 printf("bdfs_ahci: read load_fis failed: 0x%" PRIxPTR "\n", err);
212 err = h->wait_status;
215 if (err_is_ok(err)) {
227 return err;
242 errval_t err;
249 err = ahci_dma_region_alloc(aligned_bytes, &bufregion);
250 if (err_is_fail(err)) {
251 return err;
270 err = ahci_issue_command(h->binding, NOP_CONT, 0,
272 if (err_is_fail(err)) {
275 return err;
292 static void ahci_mgmt_bind_cb(void *st, errval_t err, struct ahci_mgmt_binding *b)
294 if (err_is_fail(err)) {
295 USER_PANIC_ERR(err, "ahci_mgmt bind failed in callback");
304 err = ahci_mgmt_binding->rpc_tx_vtbl.list(ahci_mgmt_binding, reply.port_ids, &reply.len);
305 assert(err_is_ok(err));
309 err = ahci_mgmt_binding->rpc_tx_vtbl.identify(ahci_mgmt_binding,
312 assert(err_is_ok(err));
353 errval_t err;
356 err = nameservice_blocking_lookup("ahcid", &iref);
357 if (err_is_fail(err)) {
358 DEBUG_ERR(err, "nameservice_blocking_lookup for ahcid");
359 return err; // FIXME
362 err = ahci_mgmt_bind(iref, ahci_mgmt_bind_cb, NULL, get_default_waitset(),
368 if (err_is_fail(err)) {
369 DEBUG_ERR(err, "ahci_mgmt bind failed");
370 return err; // FIXME