Lines Matching defs:err
138 int err = 0;
169 err = -ETIMEDOUT;
174 err = pdsc_err_to_errno(status);
175 if (err && err != -EAGAIN)
176 dev_err(dev, "DEVCMD %d %s failed, status=%d err %d %pe\n",
177 opcode, pdsc_devcmd_str(opcode), status, err,
178 ERR_PTR(err));
180 return err;
186 int err;
193 err = pdsc_devcmd_wait(pdsc, cmd->opcode, max_seconds);
195 if ((err == -ENXIO || err == -ETIMEDOUT) && pdsc->wq)
200 return err;
206 int err;
209 err = pdsc_devcmd_locked(pdsc, cmd, comp, max_seconds);
212 return err;
273 int err;
293 err = pdsc_devcmd_identify_locked(pdsc);
294 if (!err) {
301 if (err) {
303 ERR_PTR(err));
304 return err;
341 int err;
347 err = pdsc_devcmd_reset(pdsc);
348 if (err)
349 return err;
351 err = pdsc_identify(pdsc);
352 if (err)
353 return err;
366 err = pci_alloc_irq_vectors(pdsc->pdev, nintrs, nintrs, PCI_IRQ_MSIX);
367 if (err != nintrs) {
369 nintrs, ERR_PTR(err));
370 err = -ENOSPC;
381 return err;