Lines Matching defs: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);
12720 mdi_pathinfo_t *pip = NULL;
12757 pip = fcp_find_existing_pip(plun, pdip);
12767 if (old_pip && (pip != old_pip ||
12779 if (pip != NULL) {
12782 "Old pip=%p; New pip=%p don't match",
12783 old_pip, pip);
12787 "Old pip=%p; New pip=NULL don't match",
12811 if (pip == NULL || plun->lun_state & FCP_LUN_CHANGED) {
12830 uaddr, compatible, ncompatible, 0, &pip) != MDI_SUCCESS) {
12843 (void) mdi_prop_remove(pip, NULL);
12846 mdi_pi_set_phci_private(pip, (caddr_t)plun);
12848 if (mdi_prop_update_byte_array(pip, NODE_WWN_PROP,
12855 if (mdi_prop_update_byte_array(pip, PORT_WWN_PROP,
12864 if (mdi_prop_update_string(pip, TGT_PORT_PROP, t_pwwn)
12884 if (mdi_prop_update_int(pip, TARGET_PROP, tgt_id)
12890 if (mdi_prop_update_int(pip, LUN_PROP, (int)plun->lun_num)
12896 if (mdi_prop_update_int64(pip, SAM_LUN_PROP, sam_lun)
12905 if (pip != NULL && failure) {
12906 (void) mdi_prop_remove(pip, NULL);
12909 (void) mdi_pi_free(pip, 0);
12912 pip = NULL;
12915 return (pip);
13045 fcp_is_pip_present(struct fcp_lun *plun, mdi_pathinfo_t *pip)
13057 * Check if pip (and not plun->lun_cip) is NULL. plun->lun_cip can be
13060 * such cases, pip will be NULL.
13073 if (pip == NULL) {
13088 if (mdi_pi_find(pdip, plun->lun_old_guid, uaddr) == pip) {
13092 if (mdi_pi_find(pdip, plun->lun_guid, uaddr) == pip) {
13104 mdi_pathinfo_t *pip;
13113 pip = mdi_pi_find(pdip, plun->lun_guid, uaddr);
13115 return (pip);
13470 "lun=%p pip freed %p", plun, cip);
15659 mdi_pathinfo_t *pip = NULL;
15675 pip = PIP(plun->lun_cip);
15680 * also the client) is not deallocated. If pip is NULL, this
15683 mdi_hold_path(pip);
15687 /* Get the client. If pip is NULL, we get NULL. */
15688 dip = mdi_pi_get_client(pip);
15704 if (pip != NULL)
15705 mdi_rele_path(pip);