Lines Matching refs:tp
289 static int adjust_tp(struct atm_trafprm *tp, unsigned char aal) in adjust_tp() argument
293 if (!tp->traffic_class) in adjust_tp()
308 if (!tp->max_sdu) in adjust_tp()
309 tp->max_sdu = max_sdu; in adjust_tp()
310 else if (tp->max_sdu > max_sdu) in adjust_tp()
312 if (!tp->max_cdv) in adjust_tp()
313 tp->max_cdv = ATM_MAX_CDV; in adjust_tp()
706 static int check_tp(const struct atm_trafprm *tp) in check_tp() argument
709 if (!tp->traffic_class || tp->traffic_class == ATM_ANYCLASS) in check_tp()
711 if (tp->traffic_class != ATM_UBR && !tp->min_pcr && !tp->pcr && in check_tp()
712 !tp->max_pcr) in check_tp()
714 if (tp->min_pcr == ATM_MAX_PCR) in check_tp()
716 if (tp->min_pcr && tp->max_pcr && tp->max_pcr != ATM_MAX_PCR && in check_tp()
717 tp->min_pcr > tp->max_pcr) in check_tp()