Lines Matching refs:cp
63 controller_t *cp;
71 cp = dp->p.controller;
73 if (nvlist_add_string(attrs, DM_CTYPE, cp->ctype) != 0) {
79 if (cp->multiplex) {
87 if (cp->scsi_options != -1) {
88 if (cp->scsi_options & SCSI_OPTIONS_FAST) {
95 if (cp->scsi_options & SCSI_OPTIONS_WIDE) {
102 if (cp->scsi_options & SCSI_OPTIONS_FAST20) {
109 if (cp->scsi_options & SCSI_OPTIONS_FAST40) {
116 if (cp->scsi_options & SCSI_OPTIONS_FAST80) {
125 if (cp->freq != 0) {
126 if (nvlist_add_uint32(attrs, DM_CLOCK, cp->freq) != 0) {
192 controller_t *cp;
194 cp = cache_get_controllerlist();
195 while (cp != NULL) {
196 cache_load_desc(DM_CONTROLLER, cp, NULL, NULL, &error);
200 cp = cp->next;
209 controller_t *cp;
213 cp = desc->p.controller;
222 if (cp->bus != NULL) {
223 buses[pos++] = cache_get_desc(DM_BUS, cp->bus, NULL, NULL, errp);
238 controller_t *cp;
243 cp = desc->p.controller;
246 for (cnt = 0; cp->disks[cnt]; cnt++);
255 for (i = 0; cp->disks[i]; i++) {
256 drives[i] = cache_get_desc(DM_DRIVE, cp->disks[i], NULL, NULL,