Lines Matching defs:dip
102 static int heci_attach(dev_info_t *dip, ddi_attach_cmd_t cmd);
103 static int heci_initialize(dev_info_t *dip, struct iamt_heci_device *device);
104 static int heci_getinfo(dev_info_t *dip, ddi_info_cmd_t cmd,
106 static int heci_detach(dev_info_t *dip, ddi_detach_cmd_t cmd);
107 static int heci_quiesce(dev_info_t *dip);
122 static void heci_resume(dev_info_t *dip);
123 static int heci_suspend(dev_info_t *dip);
218 heci_attach(dev_info_t *dip, ddi_attach_cmd_t cmd)
227 heci_resume(dip);
236 instance = ddi_get_instance(dip); /* find out which unit */
243 device->dip = dip;
245 status = heci_initialize(dip, device);
251 status = ddi_create_minor_node(dip, "AMT", S_IFCHR,
257 ddi_remove_minor_node(dip, NULL);
270 heci_initialize(dev_info_t *dip, struct iamt_heci_device *device)
275 err = ddi_get_iblock_cookie(dip, 0, &device->sc_iblk);
282 init_heci_device(dip, device);
288 if (ddi_regs_map_setup(dip, 1, (caddr_t *)&device->mem_addr, 0, 0,
291 ddi_get_instance(dip));
295 err = ddi_add_intr(dip, 0, &device->sc_iblk, NULL,
324 ddi_remove_intr(dip, 0, device->sc_iblk);
363 heci_detach(dev_info_t *dip, ddi_detach_cmd_t cmd)
368 dev = ddi_get_soft_state(heci_soft_state_p, ddi_get_instance(dip));
373 err = heci_suspend(dip);
453 ddi_remove_intr(dip, 0, dev->sc_iblk);
471 ddi_remove_minor_node(dip, NULL);
472 ddi_soft_state_free(heci_soft_state_p, ddi_get_instance(dip));
479 heci_getinfo(dev_info_t *dip, ddi_info_cmd_t cmd, void *arg, void **result)
485 _NOTE(ARGUNUSED(dip))
494 *result = device->dip;
1415 heci_quiesce(dev_info_t *dip)
1419 dev = ddi_get_soft_state(heci_soft_state_p, ddi_get_instance(dip));
1441 heci_suspend(dev_info_t *dip)
1446 device = ddi_get_soft_state(heci_soft_state_p, ddi_get_instance(dip));
1509 heci_resume(dev_info_t *dip)
1513 device = ddi_get_soft_state(heci_soft_state_p, ddi_get_instance(dip));