Lines Matching defs:dip
130 static int pcf8574_attach(dev_info_t *dip, ddi_attach_cmd_t cmd);
131 static int pcf8574_detach(dev_info_t *dip, ddi_detach_cmd_t cmd);
352 pcf8574_do_resume(dev_info_t *dip)
354 int instance = ddi_get_instance(dip);
368 pcf8574_do_detach(dev_info_t *dip)
374 instance = ddi_get_instance(dip);
411 ddi_remove_minor_node(dip, NULL);
419 (void) ddi_prop_remove(DDI_DEV_T_NONE, dip,
447 pcf8574_do_attach(dev_info_t *dip)
456 instance = ddi_get_instance(dip);
474 unitp->dip = dip;
491 "%s%d", ddi_driver_name(dip), instance);
495 if (ddi_create_minor_node(dip, name, S_IFCHR, instance,
497 ddi_remove_minor_node(dip, NULL);
498 (void) pcf8574_do_detach(dip);
506 if (ddi_create_minor_node(dip, name, S_IFCHR, instance,
508 ddi_remove_minor_node(dip, NULL);
509 (void) pcf8574_do_detach(dip);
517 if (ddi_create_minor_node(dip, name, S_IFCHR, instance,
519 ddi_remove_minor_node(dip, NULL);
520 (void) pcf8574_do_detach(dip);
559 if (i2c_client_register(dip, &unitp->pcf8574_hdl)
561 (void) pcf8574_do_detach(dip);
572 (void) pcf8574_do_detach(dip);
615 (void) pcf8574_do_detach(dip);
643 (void) pcf8574_do_detach(dip);
648 ddi_report_dev(dip);
654 pcf8574_attach(dev_info_t *dip, ddi_attach_cmd_t cmd)
658 return (pcf8574_do_attach(dip));
660 return (pcf8574_do_resume(dip));
667 pcf8574_do_suspend(dev_info_t *dip)
669 int instance = ddi_get_instance(dip);
687 pcf8574_detach(dev_info_t *dip, ddi_detach_cmd_t cmd)
691 return (pcf8574_do_detach(dip));
693 return (pcf8574_do_suspend(dip));
1599 dev_info_t *dip = unitp->dip;
1611 if (ddi_prop_lookup_string(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS,
1644 retval = ddi_getlongprop(DDI_DEV_T_ANY, dip,
1673 retval = ddi_prop_get_int(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS,
1678 if (ddi_getproplen(DDI_DEV_T_ANY, dip,
1681 retval = ddi_prop_create(DDI_DEV_T_NONE, dip,
1698 if (ddi_getproplen(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS,
1701 dip, DDI_PROP_DONTPASS,