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