Lines Matching refs:pip

605 static int fcp_is_pip_present(struct fcp_lun *plun, mdi_pathinfo_t *pip);
3718 mdi_pathinfo_t *pip = NULL;
3798 pip = mdi_pi_find(pptr->port_dip, NULL, ndi_addr);
3799 if (pip == NULL ||
3800 ((cdip = mdi_pi_get_client(pip)) == NULL)) {
3850 if (pip != NULL) {
3851 cip = CIP(pip);
3926 if (pip != NULL) {
3927 cip = CIP(pip);
4130 if (pip != NULL) {
4131 cip = CIP(pip);
12706 mdi_pathinfo_t *pip = NULL;
12743 pip = fcp_find_existing_pip(plun, pdip);
12753 if (old_pip && (pip != old_pip ||
12765 if (pip != NULL) {
12768 "Old pip=%p; New pip=%p don't match",
12769 old_pip, pip);
12773 "Old pip=%p; New pip=NULL don't match",
12797 if (pip == NULL || plun->lun_state & FCP_LUN_CHANGED) {
12816 uaddr, compatible, ncompatible, 0, &pip) != MDI_SUCCESS) {
12829 (void) mdi_prop_remove(pip, NULL);
12832 mdi_pi_set_phci_private(pip, (caddr_t)plun);
12834 if (mdi_prop_update_byte_array(pip, NODE_WWN_PROP,
12841 if (mdi_prop_update_byte_array(pip, PORT_WWN_PROP,
12850 if (mdi_prop_update_string(pip, TGT_PORT_PROP, t_pwwn)
12870 if (mdi_prop_update_int(pip, TARGET_PROP, tgt_id)
12876 if (mdi_prop_update_int(pip, LUN_PROP, (int)plun->lun_num)
12882 if (mdi_prop_update_int64(pip, SAM_LUN_PROP, sam_lun)
12891 if (pip != NULL && failure) {
12892 (void) mdi_prop_remove(pip, NULL);
12895 (void) mdi_pi_free(pip, 0);
12898 pip = NULL;
12901 return (pip);
13031 fcp_is_pip_present(struct fcp_lun *plun, mdi_pathinfo_t *pip)
13043 * Check if pip (and not plun->lun_cip) is NULL. plun->lun_cip can be
13046 * such cases, pip will be NULL.
13059 if (pip == NULL) {
13074 if (mdi_pi_find(pdip, plun->lun_old_guid, uaddr) == pip) {
13078 if (mdi_pi_find(pdip, plun->lun_guid, uaddr) == pip) {
13090 mdi_pathinfo_t *pip;
13099 pip = mdi_pi_find(pdip, plun->lun_guid, uaddr);
13101 return (pip);
13456 "lun=%p pip freed %p", plun, cip);
15646 mdi_pathinfo_t *pip = NULL;
15662 pip = PIP(plun->lun_cip);
15667 * also the client) is not deallocated. If pip is NULL, this
15670 mdi_hold_path(pip);
15674 /* Get the client. If pip is NULL, we get NULL. */
15675 dip = mdi_pi_get_client(pip);
15691 if (pip != NULL)
15692 mdi_rele_path(pip);