Lines Matching refs:dev
40 * dev - software handle to the device
46 oce_fm_init(struct oce_dev *dev)
50 if (dev->fm_caps == DDI_FM_NOT_CAPABLE) {
54 oce_set_dma_fma_flags(dev->fm_caps);
55 oce_set_reg_fma_flags(dev->fm_caps);
56 oce_set_tx_map_dma_fma_flags(dev->fm_caps);
58 (void) ddi_fm_init(dev->dip, &dev->fm_caps, &ibc);
59 if (DDI_FM_EREPORT_CAP(dev->fm_caps) ||
60 DDI_FM_ERRCB_CAP(dev->fm_caps)) {
61 pci_ereport_setup(dev->dip);
63 if (DDI_FM_ERRCB_CAP(dev->fm_caps)) {
64 ddi_fm_handler_register(dev->dip, oce_fm_error_cb,
65 (void *)dev);
72 * dev - software handle to the device
77 oce_fm_fini(struct oce_dev *dev)
79 if (dev->fm_caps == DDI_FM_NOT_CAPABLE) {
82 if (DDI_FM_ERRCB_CAP(dev->fm_caps)) {
83 ddi_fm_handler_unregister(dev->dip);
85 if (DDI_FM_EREPORT_CAP(dev->fm_caps) ||
86 DDI_FM_ERRCB_CAP(dev->fm_caps)) {
87 pci_ereport_teardown(dev->dip);
89 (void) ddi_fm_fini(dev->dip);
95 * dev - software handle to the device
101 oce_fm_check_acc_handle(struct oce_dev *dev, ddi_acc_handle_t acc_handle)
105 if (!DDI_FM_ACC_ERR_CAP(dev->fm_caps)) {
117 * dev - software handle to the device
123 oce_fm_check_dma_handle(struct oce_dev *dev, ddi_dma_handle_t dma_handle)
127 if (!DDI_FM_DMA_ERR_CAP(dev->fm_caps)) {
138 * dev - software handle to the device
142 oce_fm_ereport(struct oce_dev *dev, char *detail)
147 if (!DDI_FM_EREPORT_CAP(dev->fm_caps) || detail == NULL) {
152 if (DDI_FM_EREPORT_CAP(dev->fm_caps)) {
153 ddi_fm_ereport_post(dev->dip, buf, ena, DDI_NOSLEEP,