Lines Matching defs:dip
185 * is referenced by 'dip'; returns NULL if not found (shouldn't happen).
188 rd_find_dip_state(dev_info_t *dip)
196 rsp->rd_dip == dip) {
581 dev_info_t *dip = rsp->rd_dip;
603 if (dip == rd_dip) {
606 ddi_remove_minor_node(dip, namebuf);
609 ddi_remove_minor_node(dip, namebuf);
611 ddi_remove_minor_node(dip, "a");
612 ddi_remove_minor_node(dip, "a,raw");
618 fulldev = makedevice(ddi_driver_major(dip), rsp->rd_minor);
619 (void) ddi_prop_remove(fulldev, dip, SIZE_PROP_NAME);
620 (void) ddi_prop_remove(fulldev, dip, NBLOCKS_PROP_NAME);
635 rd_alloc_resources(char *name, uint_t addr, size_t size, dev_info_t *dip)
651 rsp->rd_dip = dip;
679 if (dip == rd_dip) {
694 if (ddi_create_minor_node(dip, namebuf, S_IFBLK, minor,
700 if (ddi_create_minor_node(dip, namebuf, S_IFCHR, minor,
711 if (ddi_create_minor_node(dip, "a", S_IFBLK, minor,
715 if (ddi_create_minor_node(dip, "a,raw", S_IFCHR, minor,
724 fulldev = makedevice(ddi_driver_major(dip), minor);
726 if ((ddi_prop_update_int64(fulldev, dip,
731 if ((ddi_prop_update_int64(fulldev, dip,
767 rd_common_detach(dev_info_t *dip)
769 if (dip == rd_dip) {
784 if ((rsp = rd_find_dip_state(dip)) != NULL) {
788 ddi_remove_minor_node(dip, NULL);
794 rd_attach(dev_info_t *dip, ddi_attach_cmd_t cmd)
811 if (is_pseudo_device(dip)) {
812 rd_dip = dip;
824 rsp->rd_dip = dip;
826 if (ddi_create_minor_node(dip, RD_CTL_NODE,
836 RD_STRIP_PREFIX(name, ddi_node_name(dip));
848 if (ddi_prop_lookup_byte_array(DDI_DEV_T_ANY, dip,
867 dip, DDI_PROP_DONTPASS, OBP_ADDRESS_PROP_NAME,
870 size = ddi_prop_get_int(DDI_DEV_T_ANY, dip,
882 dip)) == NULL) {
892 ddi_report_dev(dip);
908 (void) rd_common_detach(dip);
918 rd_detach(dev_info_t *dip, ddi_detach_cmd_t cmd)
926 e = rd_common_detach(dip);
941 rd_getinfo(dev_info_t *dip, ddi_info_cmd_t infocmd, void *arg, void **result)