Lines Matching defs:did

43 	void		*rdid;	/* real did if replicated set */
44 void *did; /* did stored in lb */
251 * size of a valid devid which can be 'did' or 'rdid'
262 o_devid_sz = devid_sizeof((ddi_devid_t)(nonrep_did_listp->did));
264 (void) memcpy(midp->mid_o_devid, nonrep_did_listp->did,
268 devid_sz = devid_sizeof(nonrep_did_listp->did);
274 (void) memcpy(midp->mid_devid, nonrep_did_listp->did, devid_sz);
541 char *did_driver = "did";
766 * Take a minor name from a SunCluster did device, and return a
769 * is a did style minor name and for freeing the returned memory.
917 ddi_devid_t did, /* Replica devid (CTD-based) */
920 char **devname, /* New /dev/did/... pathname */
945 ret = devid_deviceid_to_nmlist(search_path, did, NULL, &retlist);
1017 char *did_search_path = "/dev/did/dsk";
1018 char *did_driver = "did";
1035 struct did_shr_name *did;
1089 for (did = &did_shr_rec->device_id[0]; did->did_key != 0;
1091 did = (struct did_shr_name *)
1092 ((char *)did + DID_SHR_NAMSIZ(did))) {
1097 if (min->min_devid_key == did->did_key)
1101 if (did->did_key == 0) {
1103 assert(did->did_key != 0);
1106 mdi_debug("Non-replica: found did->did_key: %d\n",
1107 did->did_key);
1109 (ddi_devid_t)did->did_devid);
1118 * In this case, did->did_devid will
1121 temp = replicated_list_lookup(did->did_size,
1122 did->did_devid);
1125 new_devid_len = did->did_size;
1127 (void) memcpy(r_did, did->did_devid,
1141 devid_sizeof((ddi_devid_t)did->did_devid);
1142 nonrep_did_listp->did = Zalloc(old_devid_len);
1143 (void) memcpy((void *)nonrep_did_listp->did,
1144 (void *)did->did_devid, old_devid_len);
1148 valid_did = did->did_devid;
1150 devid_sizeof((ddi_devid_t)did->did_devid);
1151 nonrep_did_listp->did = Zalloc(new_devid_len);
1152 (void) memcpy((void *)nonrep_did_listp->did,
1153 (void *)did->did_devid, new_devid_len);
1158 * is from the did driver, convert it to a normal
1161 * where the min_name refers to an old /dev/did/dsk/d<X> path
1165 * version of the original did name).
2190 if (temp->did)
2191 Free(temp->did);
2324 char *did_search_path = "/dev/did/dsk";
2334 void *did = NULL;
2363 new->did = Zalloc(did_info->info_length);
2395 (void) memcpy(new->did, temp, did_info->info_length);
2409 * from 'lb' will be the 'other' did and we need to lookup
2414 new->did);
2419 (ddi_devid_t)new->did);
2421 (void) memcpy(new->rdid, new->did,
2423 did = new->rdid;
2429 did = new->rdid;
2432 did = new->did;
2435 if (devid_valid((ddi_devid_t)(did)) == 0) {
2454 devidstr = devid_str_encode(did, minor_name);
2504 devidstr = devid_str_encode(did, this_minor);
2529 ret = devid_deviceid_to_nmlist(searchp, did,
2559 * in the /dev/did/dsk/... namespace.
2567 minor_name = meta_stdmin_to_didmin(did,
2575 new_devid_len = devid_sizeof(did);
2577 (void) memcpy(new->rdid, did,
2582 did, did);
2596 new->driver_name = Strdup("did");
2624 minor_name = meta_stdmin_to_didmin(did,
2631 minor_name = meta_stdmin_to_didmin(did, searchp,
2643 * minor-name entry did,<ctd-minor>
2649 * CTD -> CTD => verify did,minor exists
2658 devidstr = devid_str_encode(did, minor_name);
2669 (ddi_devid_t)did, minor_name, &nm) != 0) {
2774 * they are ctd names convert them to did names, freeing the memory
2793 /* skip and names already in did format */
2794 if ((didp = strstr(cnames->min_names[i], "did")) != NULL)
2808 * Checks the disks listed in the shared did namespace to see if they
2828 ddi_devid_t did;
2842 did = (ddi_devid_t)(((struct did_shr_name *)
2844 if (devid_valid(did) == 0) {
2869 * is from the did driver, convert it to a normal
2886 did, minor_name, &nm)) != 0) {