Lines Matching defs:dmdp
5721 ddi_append_minor_node(dev_info_t *ddip, struct ddi_minor_data *dmdp)
5728 DEVI(ddip)->devi_minor = dmdp;
5732 dp->next = dmdp;
6024 struct ddi_minor_data *dmdp;
6098 if ((dmdp = kmem_zalloc(sizeof (struct ddi_minor_data),
6102 if ((dmdp->ddm_name = i_ddi_strdup(name, KM_NOSLEEP)) == NULL) {
6103 kmem_free(dmdp, sizeof (struct ddi_minor_data));
6106 dmdp->dip = dip;
6107 dmdp->ddm_dev = makedevice(major, minor_num);
6108 dmdp->ddm_spec_type = spec_type;
6109 dmdp->ddm_node_type = node_type;
6110 dmdp->type = mtype;
6112 dmdp->type = DDM_ALIAS;
6113 dmdp->ddm_dev = makedevice(ddi_driver_major(clone_dip), major);
6116 dmdp->ddm_flags |= DM_NO_FSPERM;
6119 dmdp->ddm_node_priv =
6122 dmdp->ddm_priv_mode = priv_mode;
6124 ddi_append_minor_node(dip, dmdp);
6138 dacfc_match_create_minor(name, node_type, dip, dmdp, flag);
6184 struct ddi_minor_data *dmdp, *dmdp1;
6189 dmdp = DEVI(dip)->devi_minor;
6190 while (dmdp != NULL) {
6191 dmdp1 = dmdp->next;
6192 if ((name == NULL || (dmdp->ddm_name != NULL &&
6193 strcmp(name, dmdp->ddm_name) == 0))) {
6194 if (dmdp->ddm_name != NULL) {
6195 if (dmdp->type != DDM_INTERNAL_PATH)
6197 dmdp->ddm_name);
6198 kmem_free(dmdp->ddm_name,
6199 strlen(dmdp->ddm_name) + 1);
6206 if (dmdp->ddm_node_priv)
6207 dpfree(dmdp->ddm_node_priv);
6208 dacf_store_info((dacf_infohdl_t)dmdp, NULL);
6209 kmem_free(dmdp, sizeof (struct ddi_minor_data));
6218 dmdp_prev = &dmdp->next;
6220 dmdp = dmdp1;
7000 ddi_pathname_minor(struct ddi_minor_data *dmdp, char *path)
7002 if (dmdp->dip == NULL)
7005 (void) ddi_pathname(dmdp->dip, path);
7006 if (dmdp->ddm_name) {
7008 (void) strcat(path, dmdp->ddm_name);
7823 struct ddi_minor_data *dmdp;
7836 for (dmdp = DEVI(dip)->devi_minor; dmdp; dmdp = dmdp->next) {
7837 if (((dmdp->type == DDM_MINOR) ||
7838 (dmdp->type == DDM_INTERNAL_PATH) ||
7839 (dmdp->type == DDM_DEFAULT)) &&
7840 (dmdp->ddm_dev == dev) &&
7842 (dmdp->ddm_spec_type == spec_type)))
7843 return (dmdp->ddm_name);
7859 struct ddi_minor_data *dmdp;
7892 for (dmdp = DEVI(dip)->devi_minor; dmdp; dmdp = dmdp->next) {
7893 if (((dmdp->type != DDM_MINOR) &&
7894 (dmdp->type != DDM_INTERNAL_PATH) &&
7895 (dmdp->type != DDM_DEFAULT)) ||
7896 strcmp(minor_name, dmdp->ddm_name))
7900 *devtp = dmdp->ddm_dev;
7903 *spectypep = dmdp->ddm_spec_type;