Lines Matching defs:dip
131 static int pcf8591_info(dev_info_t *dip, ddi_info_cmd_t infocmd, void *arg,
133 static int pcf8591_attach(dev_info_t *dip, ddi_attach_cmd_t cmd);
134 static int pcf8591_detach(dev_info_t *dip, ddi_detach_cmd_t cmd);
660 pcf8591_do_detach(dev_info_t *dip)
666 instance = ddi_get_instance(dip);
695 ddi_remove_minor_node(dip, NULL);
720 pcf8591_do_suspend(dev_info_t *dip)
722 int instance = ddi_get_instance(dip);
750 pcf8591_do_resume(dev_info_t *dip)
752 int instance = ddi_get_instance(dip);
768 pcf8591_do_attach(dev_info_t *dip)
775 instance = ddi_get_instance(dip);
787 unitp->dip = dip;
792 (void) pcf8591_do_detach(dip);
804 "%s%d", ddi_driver_name(dip), instance);
816 if (ddi_create_minor_node(dip, name, S_IFCHR, minor,
818 ddi_remove_minor_node(dip, NULL);
819 (void) pcf8591_do_detach(dip);
826 if (i2c_client_register(dip, &unitp->pcf8591_hdl)
828 (void) pcf8591_do_detach(dip);
840 (void) pcf8591_do_detach(dip);
878 (void) pcf8591_do_detach(dip);
884 ddi_report_dev(dip);
891 pcf8591_info(dev_info_t *dip, ddi_info_cmd_t infocmd, void *arg, void **result)
906 pcf8591_attach(dev_info_t *dip, ddi_attach_cmd_t cmd)
910 return (pcf8591_do_attach(dip));
912 return (pcf8591_do_resume(dip));
919 pcf8591_detach(dev_info_t *dip, ddi_detach_cmd_t cmd)
923 return (pcf8591_do_detach(dip));
925 return (pcf8591_do_suspend(dip));
1076 dev_info_t *dip = unitp->dip;
1078 int instance = ddi_get_instance(dip);
1092 if (ddi_prop_lookup_string(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS,
1108 retval = ddi_prop_lookup_string(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS,
1121 retval = ddi_getlongprop(DDI_DEV_T_ANY, dip,
1147 (void) ddi_getproplen(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS,
1150 dip, DDI_PROP_DONTPASS,
1170 retval = ddi_prop_lookup_string_array(DDI_DEV_T_ANY, dip,
1197 retval = ddi_prop_lookup_byte_array(DDI_DEV_T_ANY, dip,
1203 ddi_get_name(dip), instance);
1226 warning_temp = (int)ddi_getprop(DDI_DEV_T_ANY, dip,
1229 shutdown_temp = (int)ddi_getprop(DDI_DEV_T_ANY, dip,