Lines Matching refs:p_ctrl
277 rsmops_ctrl_t *p_ctrl;
288 if ((p_ctrl = find_rsmpi_controller(name, number)) == NULL) {
311 p_ctrl = find_rsmpi_controller(name, number);
312 if (p_ctrl == NULL) {
325 p_ctrl = find_rsmpi_controller(name, number);
326 if (p_ctrl == NULL) {
331 ASSERT(p_ctrl);
333 p_drv = p_ctrl->p_drv;
336 ASSERT(p_drv == p_ctrl->p_drv);
343 p_ctrl->refcnt++;
353 * guarantee that p_ctrl is still meaningful (and has not
355 * refcnt on it. So, it is okay to just use p_ctrl here
358 p_ctrl->refcnt--;
365 if ((p_ctrl = find_rsmpi_controller(name, number)) == NULL) {
370 p_ctrl->handle = controller->handle;
380 rsmops_ctrl_t *p_ctrl;
388 if ((p_ctrl = find_rsmpi_controller(name, number)) == NULL) {
402 p_ctrl->refcnt--;
414 rsmops_ctrl_t *p_ctrl;
433 p_ctrl = find_rsmpi_controller(name, number);
434 if (p_ctrl) {
442 p_ctrl = kmem_alloc(sizeof (rsmops_ctrl_t), KM_SLEEP);
447 p_ctrl->p_drv = p_drv; /* setup the back pointer */
448 p_ctrl->number = number;
449 p_ctrl->refcnt = 0;
450 p_ctrl->attrp = attrp;
451 p_ctrl->handle = NULL;
454 p_ctrl->next = p_drv->ctrl_head;
455 p_drv->ctrl_head = p_ctrl;
552 rsmops_ctrl_t *p_ctrl;
560 if ((p_ctrl = find_rsmpi_controller_handle(handle)) == NULL) {
565 *attrp = p_ctrl->attrp;