Lines Matching refs:chp
27 #include "chp.h"
497 struct channel_path *chp;
503 chp = chpid_to_chp(chpid);
505 util_str = kmalloc(sizeof(chp->desc_fmt3.util_str), GFP_KERNEL);
509 mutex_lock(&chp->lock);
510 memcpy(util_str, chp->desc_fmt3.util_str, sizeof(chp->desc_fmt3.util_str));
511 mutex_unlock(&chp->lock);
643 struct channel_path *chp;
658 chp = chpid_to_chp(chpid);
659 if (!chp)
662 mutex_lock(&chp->lock);
663 if (!chp->desc_fmt1.f) {
664 mutex_unlock(&chp->lock);
667 if (!chp->desc_fmt1.r)
669 mdc = mdc ? min_t(int, mdc, chp->desc_fmt1.mdc) :
670 chp->desc_fmt1.mdc;
671 mutex_unlock(&chp->lock);
799 struct channel_path *chp;
806 chp = chpid_to_chp(cssid_chpid);
807 if (!chp)
810 mutex_lock(&chp->lock);
811 if (chp->desc_fmt1.flags & 0x10)
812 *chid = chp->desc_fmt1.chid;
815 mutex_unlock(&chp->lock);