Lines Matching refs:member

151 	struct dsp_conf_member	*member;  in dsp_cmx_debug()  local
168 list_for_each_entry(member, &conf->mlist, list) { in dsp_cmx_debug()
173 member->dsp->name, member->dsp->pcm_slot_tx, in dsp_cmx_debug()
174 member->dsp->pcm_bank_tx, member->dsp->pcm_slot_rx, in dsp_cmx_debug()
175 member->dsp->pcm_bank_rx, member->dsp->hfc_conf, in dsp_cmx_debug()
176 member->dsp->tx_data, member->dsp->rx_is_off, in dsp_cmx_debug()
177 (member->dsp == dsp) ? " *this*" : ""); in dsp_cmx_debug()
211 struct dsp_conf_member *member; in dsp_cmx_add_conf_member() local
217 if (dsp->member) { in dsp_cmx_add_conf_member()
229 member = kzalloc(sizeof(struct dsp_conf_member), GFP_ATOMIC); in dsp_cmx_add_conf_member()
230 if (!member) { in dsp_cmx_add_conf_member()
234 member->dsp = dsp; in dsp_cmx_add_conf_member()
241 list_add_tail(&member->list, &conf->mlist); in dsp_cmx_add_conf_member()
244 dsp->member = member; in dsp_cmx_add_conf_member()
256 struct dsp_conf_member *member; in dsp_cmx_del_conf_member() local
277 list_for_each_entry(member, &dsp->conf->mlist, list) { in dsp_cmx_del_conf_member()
278 if (member->dsp == dsp) { in dsp_cmx_del_conf_member()
279 list_del(&member->list); in dsp_cmx_del_conf_member()
281 dsp->member = NULL; in dsp_cmx_del_conf_member()
282 kfree(member); in dsp_cmx_del_conf_member()
375 struct dsp_conf_member *member, *nextm; in dsp_cmx_hardware() local
502 member = list_entry(conf->mlist.next, struct dsp_conf_member, list); in dsp_cmx_hardware()
503 same_hfc = member->dsp->features.hfc_id; in dsp_cmx_hardware()
504 same_pcm = member->dsp->features.pcm_id; in dsp_cmx_hardware()
506 list_for_each_entry(member, &conf->mlist, list) { in dsp_cmx_hardware()
508 if (member->dsp->tx_mix) { in dsp_cmx_hardware()
513 member->dsp->name); in dsp_cmx_hardware()
515 list_for_each_entry(member, &conf->mlist, list) { in dsp_cmx_hardware()
516 dsp = member->dsp; in dsp_cmx_hardware()
558 if (member->dsp->echo.hardware || member->dsp->echo.software) { in dsp_cmx_hardware()
563 member->dsp->name); in dsp_cmx_hardware()
567 if (member->dsp->tx_mix) { in dsp_cmx_hardware()
572 __func__, member->dsp->name); in dsp_cmx_hardware()
576 if (member->dsp->tx_volume) { in dsp_cmx_hardware()
581 __func__, member->dsp->name); in dsp_cmx_hardware()
584 if (member->dsp->rx_volume) { in dsp_cmx_hardware()
589 __func__, member->dsp->name); in dsp_cmx_hardware()
593 if (member->dsp->tx_data) { in dsp_cmx_hardware()
597 __func__, member->dsp->name); in dsp_cmx_hardware()
601 if (member->dsp->pipeline.inuse) { in dsp_cmx_hardware()
606 member->dsp->name); in dsp_cmx_hardware()
610 if (member->dsp->bf_enable) { in dsp_cmx_hardware()
614 __func__, member->dsp->name); in dsp_cmx_hardware()
618 if (member->dsp->features.pcm_id < 0) { in dsp_cmx_hardware()
623 __func__, member->dsp->name); in dsp_cmx_hardware()
627 if (member->dsp->features.pcm_id != same_pcm) { in dsp_cmx_hardware()
633 __func__, member->dsp->name); in dsp_cmx_hardware()
637 if (same_hfc != member->dsp->features.hfc_id) in dsp_cmx_hardware()
640 if (current_conf < 0 && member->dsp->hfc_conf >= 0) in dsp_cmx_hardware()
641 current_conf = member->dsp->hfc_conf; in dsp_cmx_hardware()
643 if (member->dsp->hfc_conf < 0) in dsp_cmx_hardware()
661 member = list_entry(conf->mlist.next, struct dsp_conf_member, in dsp_cmx_hardware()
663 dsp = member->dsp; in dsp_cmx_hardware()
675 member = list_entry(conf->mlist.next, struct dsp_conf_member, in dsp_cmx_hardware()
677 nextm = list_entry(member->list.next, struct dsp_conf_member, in dsp_cmx_hardware()
680 if (member->dsp->hfc_conf >= 0) { in dsp_cmx_hardware()
685 __func__, member->dsp->name, in dsp_cmx_hardware()
686 member->dsp->hfc_conf); in dsp_cmx_hardware()
687 dsp_cmx_hw_message(member->dsp, in dsp_cmx_hardware()
689 member->dsp->hfc_conf = -1; in dsp_cmx_hardware()
703 if (member->dsp->features.pcm_banks > 1 && in dsp_cmx_hardware()
705 member->dsp->features.hfc_id != in dsp_cmx_hardware()
708 if (member->dsp->pcm_slot_tx >= 0 && in dsp_cmx_hardware()
709 member->dsp->pcm_slot_rx >= 0 && in dsp_cmx_hardware()
713 member->dsp->pcm_slot_rx && in dsp_cmx_hardware()
715 member->dsp->pcm_slot_tx && in dsp_cmx_hardware()
717 member->dsp->pcm_slot_tx && in dsp_cmx_hardware()
718 member->dsp->pcm_bank_tx != in dsp_cmx_hardware()
719 member->dsp->pcm_bank_rx && in dsp_cmx_hardware()
729 member->dsp->name, in dsp_cmx_hardware()
731 member->dsp->pcm_slot_tx, in dsp_cmx_hardware()
732 member->dsp->pcm_bank_tx, in dsp_cmx_hardware()
733 member->dsp->pcm_bank_rx); in dsp_cmx_hardware()
741 if (dsp != member->dsp && in dsp_cmx_hardware()
743 member->dsp->features.pcm_id == in dsp_cmx_hardware()
756 ii = member->dsp->features.pcm_slots; in dsp_cmx_hardware()
767 member->dsp->name, in dsp_cmx_hardware()
773 member->dsp->pcm_slot_tx = i; in dsp_cmx_hardware()
774 member->dsp->pcm_slot_rx = i; in dsp_cmx_hardware()
777 member->dsp->pcm_bank_rx = 0; in dsp_cmx_hardware()
778 member->dsp->pcm_bank_tx = 1; in dsp_cmx_hardware()
787 member->dsp->name, in dsp_cmx_hardware()
789 member->dsp->pcm_slot_tx); in dsp_cmx_hardware()
790 dsp_cmx_hw_message(member->dsp, MISDN_CTRL_HFC_PCM_CONN, in dsp_cmx_hardware()
791 member->dsp->pcm_slot_tx, member->dsp->pcm_bank_tx, in dsp_cmx_hardware()
792 member->dsp->pcm_slot_rx, member->dsp->pcm_bank_rx); in dsp_cmx_hardware()
802 if (member->dsp->pcm_slot_tx >= 0 && in dsp_cmx_hardware()
803 member->dsp->pcm_slot_rx >= 0 && in dsp_cmx_hardware()
807 member->dsp->pcm_slot_rx && in dsp_cmx_hardware()
809 member->dsp->pcm_slot_tx && in dsp_cmx_hardware()
810 member->dsp->pcm_slot_tx != in dsp_cmx_hardware()
811 member->dsp->pcm_slot_rx && in dsp_cmx_hardware()
812 member->dsp->pcm_bank_tx == 0 && in dsp_cmx_hardware()
813 member->dsp->pcm_bank_rx == 0 && in dsp_cmx_hardware()
822 member->dsp->name, in dsp_cmx_hardware()
824 member->dsp->pcm_slot_tx, in dsp_cmx_hardware()
825 member->dsp->pcm_slot_rx); in dsp_cmx_hardware()
833 if (dsp != member->dsp && in dsp_cmx_hardware()
835 member->dsp->features.pcm_id == in dsp_cmx_hardware()
848 ii = member->dsp->features.pcm_slots; in dsp_cmx_hardware()
859 member->dsp->name, in dsp_cmx_hardware()
876 member->dsp->name, in dsp_cmx_hardware()
882 member->dsp->pcm_slot_tx = i1; in dsp_cmx_hardware()
883 member->dsp->pcm_slot_rx = i2; in dsp_cmx_hardware()
886 member->dsp->pcm_bank_rx = 0; in dsp_cmx_hardware()
887 member->dsp->pcm_bank_tx = 0; in dsp_cmx_hardware()
896 member->dsp->name, in dsp_cmx_hardware()
898 member->dsp->pcm_slot_tx, in dsp_cmx_hardware()
899 member->dsp->pcm_slot_rx); in dsp_cmx_hardware()
900 dsp_cmx_hw_message(member->dsp, MISDN_CTRL_HFC_PCM_CONN, in dsp_cmx_hardware()
901 member->dsp->pcm_slot_tx, member->dsp->pcm_bank_tx, in dsp_cmx_hardware()
902 member->dsp->pcm_slot_rx, member->dsp->pcm_bank_rx); in dsp_cmx_hardware()
942 list_for_each_entry(member, &conf->mlist, list) { in dsp_cmx_hardware()
945 if (!member->dsp->features.hfc_conf) in dsp_cmx_hardware()
948 if (member->dsp->hdlc) in dsp_cmx_hardware()
951 if (member->dsp->hfc_conf == current_conf) in dsp_cmx_hardware()
961 dsp != member->dsp && in dsp_cmx_hardware()
963 member->dsp->features.pcm_id == in dsp_cmx_hardware()
977 ii = member->dsp->features.pcm_slots; in dsp_cmx_hardware()
996 member->dsp->name, current_conf, i); in dsp_cmx_hardware()
998 member->dsp->pcm_slot_tx = i; in dsp_cmx_hardware()
999 member->dsp->pcm_slot_rx = i; in dsp_cmx_hardware()
1000 member->dsp->pcm_bank_tx = 2; /* loop */ in dsp_cmx_hardware()
1001 member->dsp->pcm_bank_rx = 2; in dsp_cmx_hardware()
1002 member->dsp->hfc_conf = current_conf; in dsp_cmx_hardware()
1003 dsp_cmx_hw_message(member->dsp, MISDN_CTRL_HFC_PCM_CONN, in dsp_cmx_hardware()
1005 dsp_cmx_hw_message(member->dsp, in dsp_cmx_hardware()
1057 struct dsp_conf_member *member; in dsp_cmx_conf() local
1110 member = list_entry(conf->mlist.next, struct dsp_conf_member, in dsp_cmx_conf()
1112 if (dsp->hdlc && !member->dsp->hdlc) { in dsp_cmx_conf()
1118 if (!dsp->hdlc && member->dsp->hdlc) { in dsp_cmx_conf()
1301 struct dsp *member, *other; local
1356 member = dsp;
1451 if (other == member)
1620 struct dsp_conf_member *member; local
1694 member = list_entry(conf->mlist.next,
1696 if (member->dsp->hdlc)
1700 list_for_each_entry(member, &conf->mlist, list) {
1701 dsp = member->dsp;
1715 list_for_each_entry(member, &conf->mlist, list) {
1717 dsp_cmx_send_member(member->dsp, length,
1908 struct dsp_conf_member *member; local
1937 list_for_each_entry(member, &dsp->conf->mlist, list) {
1938 if (dsp->echo.software || member->dsp != dsp) {
1944 skb_queue_tail(&member->dsp->sendq, nskb);
1945 schedule_work(&member->dsp->workq);