Lines Matching refs:chp
486 struct channel_path *chp; in ccw_device_get_util_str() local
492 chp = chpid_to_chp(chpid); in ccw_device_get_util_str()
494 util_str = kmalloc(sizeof(chp->desc_fmt3.util_str), GFP_KERNEL); in ccw_device_get_util_str()
498 mutex_lock(&chp->lock); in ccw_device_get_util_str()
499 memcpy(util_str, chp->desc_fmt3.util_str, sizeof(chp->desc_fmt3.util_str)); in ccw_device_get_util_str()
500 mutex_unlock(&chp->lock); in ccw_device_get_util_str()
632 struct channel_path *chp; in ccw_device_get_mdc() local
647 chp = chpid_to_chp(chpid); in ccw_device_get_mdc()
648 if (!chp) in ccw_device_get_mdc()
651 mutex_lock(&chp->lock); in ccw_device_get_mdc()
652 if (!chp->desc_fmt1.f) { in ccw_device_get_mdc()
653 mutex_unlock(&chp->lock); in ccw_device_get_mdc()
656 if (!chp->desc_fmt1.r) in ccw_device_get_mdc()
658 mdc = mdc ? min_t(int, mdc, chp->desc_fmt1.mdc) : in ccw_device_get_mdc()
659 chp->desc_fmt1.mdc; in ccw_device_get_mdc()
660 mutex_unlock(&chp->lock); in ccw_device_get_mdc()