Lines Matching refs:te1
136 const te1_settings *te1)
159 switch (te1->clock_type) {
172 config.line_clock_rate = te1->clock_rate;
177 static int qmc_hdlc_framer_get_iface(struct qmc_hdlc *qmc_hdlc, int *if_iface, te1_settings *te1)
200 if (!te1)
205 te1->clock_type = CLOCK_EXT;
208 te1->clock_type = CLOCK_INT;
213 te1->clock_rate = config.line_clock_rate;
474 static int qmc_hdlc_set_iface(struct qmc_hdlc *qmc_hdlc, int if_iface, const te1_settings *te1)
484 ret = qmc_hdlc_xlate_slot_map(qmc_hdlc, te1->slot_map, &ts_info);
494 qmc_hdlc->slot_map = te1->slot_map;
496 ret = qmc_hdlc_framer_set_iface(qmc_hdlc, if_iface, te1);
508 te1_settings te1;
513 if (ifs->size < sizeof(te1)) {
522 ifs->size = sizeof(te1); /* data size wanted */
526 memset(&te1, 0, sizeof(te1));
529 ret = qmc_hdlc_framer_get_iface(qmc_hdlc, &ifs->type, &te1);
534 te1.slot_map = qmc_hdlc->slot_map;
536 if (copy_to_user(ifs->ifs_ifsu.te1, &te1, sizeof(te1)))
548 if (copy_from_user(&te1, ifs->ifs_ifsu.te1, sizeof(te1)))
551 return qmc_hdlc_set_iface(qmc_hdlc, ifs->type, &te1);