Lines Matching refs:descp

76 static void		update_desc(descriptor_t *descp, disk_t *newdisksp,
78 static void update_desc_busp(descriptor_t *descp, bus_t *busp);
79 static void update_desc_ctrlp(descriptor_t *descp,
81 static void update_desc_diskp(descriptor_t *descp,
83 static void update_desc_pathp(descriptor_t *descp,
357 descriptor_t *descp;
368 descp = desc_listp;
369 while (descp != NULL) {
370 if (descp->type == type && descp->p.generic != NULL) {
373 descp = descp->next;
384 descp = desc_listp;
385 while (descp != NULL) {
386 if (descp->type == type && descp->p.generic != NULL) {
388 descp->refcnt++;
389 descs[pos++] = descp;
391 descp = descp->next;
413 descriptor_t *descp;
418 for (descp = desc_listp; descp != NULL; descp = descp->next) {
419 if ((valid = (descp == d)) != 0)
554 descriptor_t *descp;
558 for (descp = desc_listp; descp != NULL; descp = descp->next) {
559 if (descp->p.generic == gp) {
561 descp->p.generic = NULL;
672 descriptor_t *descp;
684 descp = desc_listp;
685 while (descp != NULL) {
686 if (descp->type == type && descp->p.generic == gp &&
687 libdiskmgt_str_eq(descp->name, name)) {
690 if (libdiskmgt_str_eq(descp->secondary_name,
696 descp = descp->next;
700 return (descp);
925 descriptor_t *descp;
928 descp = desc_listp;
929 while (descp != NULL) {
930 update_desc(descp, args.disk_listp,
932 descp = descp->next;
982 update_desc(descriptor_t *descp, disk_t *newdisksp, controller_t *newctrlp,
986 if (descp->p.generic == NULL) {
995 switch (descp->type) {
997 update_desc_busp(descp, newbusp);
1000 update_desc_ctrlp(descp, newctrlp);
1003 update_desc_pathp(descp, newctrlp);
1006 update_desc_diskp(descp, newdisksp);
1012 update_desc_busp(descriptor_t *descp, bus_t *busp)
1016 if (libdiskmgt_str_eq(descp->p.bus->name, busp->name)) {
1017 descp->p.bus = busp;
1023 descp->p.bus = NULL;
1027 update_desc_ctrlp(descriptor_t *descp, controller_t *newctrlp)
1031 if (libdiskmgt_str_eq(descp->p.controller->name,
1033 descp->p.controller = newctrlp;
1039 descp->p.controller = NULL;
1043 update_desc_diskp(descriptor_t *descp, disk_t *newdisksp)
1047 if (match_disk(descp->p.disk, newdisksp)) {
1048 descp->p.disk = newdisksp;
1054 descp->p.disk = NULL;
1058 update_desc_pathp(descriptor_t *descp, controller_t *newctrlp)
1069 if (libdiskmgt_str_eq(descp->p.path->name,
1071 descp->p.path = pp[i];
1079 descp->p.path = NULL;