Lines Matching refs:dev
37 * dev - software handle to the device
43 oce_fm_init(struct oce_dev *dev)
47 if (dev->fm_caps == DDI_FM_NOT_CAPABLE) {
51 oce_set_dma_fma_flags(dev->fm_caps);
52 oce_set_reg_fma_flags(dev->fm_caps);
54 (void) ddi_fm_init(dev->dip, &dev->fm_caps, &ibc);
55 if (DDI_FM_EREPORT_CAP(dev->fm_caps) ||
56 DDI_FM_ERRCB_CAP(dev->fm_caps)) {
57 pci_ereport_setup(dev->dip);
59 if (DDI_FM_ERRCB_CAP(dev->fm_caps)) {
60 ddi_fm_handler_register(dev->dip, oce_fm_error_cb,
61 (void *)dev);
68 * dev - software handle to the device
73 oce_fm_fini(struct oce_dev *dev)
75 if (dev->fm_caps == DDI_FM_NOT_CAPABLE) {
78 if (DDI_FM_ERRCB_CAP(dev->fm_caps)) {
79 ddi_fm_handler_unregister(dev->dip);
81 if (DDI_FM_EREPORT_CAP(dev->fm_caps) ||
82 DDI_FM_ERRCB_CAP(dev->fm_caps)) {
83 pci_ereport_teardown(dev->dip);
85 (void) ddi_fm_fini(dev->dip);
91 * dev - software handle to the device
97 oce_fm_check_acc_handle(struct oce_dev *dev, ddi_acc_handle_t acc_handle)
102 if (!DDI_FM_ACC_ERR_CAP(dev->fm_caps)) {
114 * dev - software handle to the device
120 oce_fm_check_dma_handle(struct oce_dev *dev, ddi_dma_handle_t dma_handle)
124 if (!DDI_FM_DMA_ERR_CAP(dev->fm_caps)) {
135 * dev - software handle to the device
139 oce_fm_ereport(struct oce_dev *dev, char *detail)
144 if (!DDI_FM_EREPORT_CAP(dev->fm_caps) || detail == NULL) {
149 if (DDI_FM_EREPORT_CAP(dev->fm_caps)) {
150 ddi_fm_ereport_post(dev->dip, buf, ena, DDI_NOSLEEP,