Lines Matching refs:te1
137 const te1_settings *te1) in qmc_hdlc_framer_set_iface() argument
160 switch (te1->clock_type) { in qmc_hdlc_framer_set_iface()
173 config.line_clock_rate = te1->clock_rate; in qmc_hdlc_framer_set_iface()
178 static int qmc_hdlc_framer_get_iface(struct qmc_hdlc *qmc_hdlc, int *if_iface, te1_settings *te1) in qmc_hdlc_framer_get_iface() argument
201 if (!te1) in qmc_hdlc_framer_get_iface()
206 te1->clock_type = CLOCK_EXT; in qmc_hdlc_framer_get_iface()
209 te1->clock_type = CLOCK_INT; in qmc_hdlc_framer_get_iface()
214 te1->clock_rate = config.line_clock_rate; in qmc_hdlc_framer_get_iface()
487 static int qmc_hdlc_set_iface(struct qmc_hdlc *qmc_hdlc, int if_iface, const te1_settings *te1) in qmc_hdlc_set_iface() argument
497 ret = qmc_hdlc_xlate_slot_map(qmc_hdlc, te1->slot_map, &ts_info); in qmc_hdlc_set_iface()
507 qmc_hdlc->slot_map = te1->slot_map; in qmc_hdlc_set_iface()
509 ret = qmc_hdlc_framer_set_iface(qmc_hdlc, if_iface, te1); in qmc_hdlc_set_iface()
521 te1_settings te1; in qmc_hdlc_ioctl() local
526 if (ifs->size < sizeof(te1)) { in qmc_hdlc_ioctl()
535 ifs->size = sizeof(te1); /* data size wanted */ in qmc_hdlc_ioctl()
539 memset(&te1, 0, sizeof(te1)); in qmc_hdlc_ioctl()
542 ret = qmc_hdlc_framer_get_iface(qmc_hdlc, &ifs->type, &te1); in qmc_hdlc_ioctl()
547 te1.slot_map = qmc_hdlc->slot_map; in qmc_hdlc_ioctl()
549 if (copy_to_user(ifs->ifs_ifsu.te1, &te1, sizeof(te1))) in qmc_hdlc_ioctl()
561 if (copy_from_user(&te1, ifs->ifs_ifsu.te1, sizeof(te1))) in qmc_hdlc_ioctl()
564 return qmc_hdlc_set_iface(qmc_hdlc, ifs->type, &te1); in qmc_hdlc_ioctl()