Lines Matching full:aer
265 uint16_t cid; /* Command ID of the submitted AER */
737 struct pci_nvme_aer *aer = NULL; in pci_nvme_aer_destroy() local
741 aer = STAILQ_FIRST(&sc->aer_list); in pci_nvme_aer_destroy()
743 free(aer); in pci_nvme_aer_destroy()
769 * Stores an AER to be returned later if the Controller needs to notify the
771 * Note that while the NVMe spec doesn't require Controllers to return AER's
777 struct pci_nvme_aer *aer = NULL; in pci_nvme_aer_add() local
779 aer = calloc(1, sizeof(struct pci_nvme_aer)); in pci_nvme_aer_add()
780 if (aer == NULL) in pci_nvme_aer_add()
784 aer->cid = cid; in pci_nvme_aer_add()
788 STAILQ_INSERT_TAIL(&sc->aer_list, aer, link); in pci_nvme_aer_add()
797 * Returns a pointer to an AER previously submitted by the host or NULL if
798 * no AER's exist. Caller is responsible for freeing the returned struct.
803 struct pci_nvme_aer *aer = NULL; in pci_nvme_aer_get() local
806 aer = STAILQ_FIRST(&sc->aer_list); in pci_nvme_aer_get()
807 if (aer != NULL) { in pci_nvme_aer_get()
813 return (aer); in pci_nvme_aer_get()
891 struct pci_nvme_aer *aer; in pci_nvme_aen_process() local
901 /* Previous iterations may have depleted the available AER's */ in pci_nvme_aen_process()
903 DPRINTF("%s: no AER", __func__); in pci_nvme_aen_process()
973 aer = pci_nvme_aer_get(sc); in pci_nvme_aen_process()
974 assert(aer != NULL); in pci_nvme_aen_process()
976 DPRINTF("%s: CID=%#x CDW0=%#x", __func__, aer->cid, (lid << 16) | (aen->event_data << 8) | atype); in pci_nvme_aen_process()
979 aer->cid, in pci_nvme_aen_process()