Lines Matching defs:conf

161 	struct dsp_conf	*conf;
170 if (odsp->conf)
171 printk(" (Conf %d)", odsp->conf->id);
177 list_for_each_entry(conf, &conf_ilist, list) {
178 printk(KERN_DEBUG "* Conf %d (%p)\n", conf->id, conf);
179 list_for_each_entry(member, &conf->mlist, list) {
200 struct dsp_conf *conf;
208 list_for_each_entry(conf, &conf_ilist, list)
209 if (conf->id == id)
210 return conf;
220 dsp_cmx_add_conf_member(struct dsp *dsp, struct dsp_conf *conf)
224 if (!conf || !dsp) {
225 printk(KERN_WARNING "%s: conf or dsp is 0.\n", __func__);
229 printk(KERN_WARNING "%s: dsp is already member in a conf.\n",
234 if (dsp->conf) {
235 printk(KERN_WARNING "%s: dsp is already in a conf.\n",
252 list_add_tail(&member->list, &conf->mlist);
254 dsp->conf = conf;
275 if (!dsp->conf) {
276 printk(KERN_WARNING "%s: dsp is not in a conf.\n",
281 if (list_empty(&dsp->conf->mlist)) {
282 printk(KERN_WARNING "%s: dsp has linked an empty conf.\n",
287 /* find us in conf */
288 list_for_each_entry(member, &dsp->conf->mlist, list) {
291 dsp->conf = NULL;
311 struct dsp_conf *conf;
319 conf = kzalloc(sizeof(struct dsp_conf), GFP_ATOMIC);
320 if (!conf) {
324 INIT_LIST_HEAD(&conf->mlist);
325 conf->id = id;
327 list_add_tail(&conf->list, &conf_ilist);
329 return conf;
337 dsp_cmx_del_conf(struct dsp_conf *conf)
339 if (!conf) {
340 printk(KERN_WARNING "%s: conf is null.\n",
345 if (!list_empty(&conf->mlist)) {
346 printk(KERN_WARNING "%s: conf not empty.\n",
350 list_del(&conf->list);
351 kfree(conf);
379 * if only dsp instance is given, the instance is not associated with a conf
384 dsp_cmx_hardware(struct dsp_conf *conf, struct dsp *dsp)
394 /* dsp gets updated (no conf) */
395 if (!conf) {
406 "%s removing %s from HFC conf %d "
503 /* conf gets updated (all members) */
506 __func__, conf->id);
508 if (list_empty(&conf->mlist)) {
513 member = list_entry(conf->mlist.next, struct dsp_conf_member, list);
517 list_for_each_entry(member, &conf->mlist, list) {
522 "%s dsp %s cannot form a conf, because "
526 list_for_each_entry(member, &conf->mlist, list) {
533 "conf %d because not "
564 conf->hardware = 0;
565 conf->software = 1;
572 "%s dsp %s cannot form a conf, because "
581 "%s dsp %s cannot form a conf, because "
590 "%s dsp %s cannot form a conf, because "
598 "%s dsp %s cannot form a conf, because "
615 "%s dsp %s cannot form a conf, because "
624 "conf, because encryption is enabled\n",
632 "%s dsp %s cannot form a conf, because "
641 "%s dsp %s cannot form a conf, because "
668 "%s conf %d cannot form a HW conference, "
669 "because dsp is alone\n", __func__, conf->id);
670 conf->hardware = 0;
671 conf->software = 0;
672 member = list_entry(conf->mlist.next, struct dsp_conf_member,
686 member = list_entry(conf->mlist.next, struct dsp_conf_member,
694 "%s removing %s from HFC conf %d because "
705 "%s removing %s from HFC conf %d because "
745 conf->hardware = 1;
746 conf->software = tx_data;
807 conf->hardware = 1;
808 conf->software = tx_data;
837 conf->hardware = 1;
838 conf->software = tx_data;
917 conf->hardware = 1;
918 conf->software = tx_data;
935 __func__, conf->id);
943 conf->hardware = 1;
944 conf->software = tx_data;
953 list_for_each_entry(member, &conf->mlist, list) {
1000 __func__, conf->id);
1008 /* assign free slot & set PCM & join conf */
1019 conf->hardware = 1;
1020 conf->software = tx_data;
1050 __func__, conf->id);
1067 struct dsp_conf *conf;
1074 /* first remove us from current conf */
1078 dsp->conf->id);
1079 /* remove us from conf */
1080 conf = dsp->conf;
1089 /* conf now empty? */
1090 if (list_empty(&conf->mlist)) {
1094 err = dsp_cmx_del_conf(conf);
1098 /* update members left on conf */
1099 dsp_cmx_hardware(conf, NULL);
1107 /* now add us to conf */
1111 conf = dsp_cmx_search_conf(conf_id);
1112 if (!conf) {
1117 conf = dsp_cmx_new_conf(conf_id);
1118 if (!conf)
1120 } else if (!list_empty(&conf->mlist)) {
1121 member = list_entry(conf->mlist.next, struct dsp_conf_member,
1137 err = dsp_cmx_add_conf_member(dsp, conf);
1143 if (list_empty(&conf->mlist)) {
1152 /* update members on conf */
1153 dsp_cmx_hardware(conf, NULL);
1311 struct dsp_conf *conf = dsp->conf;
1326 if (((dsp->conf && dsp->conf->hardware) || /* hardware conf */
1334 if (dsp->conf && dsp->conf->software && dsp->conf->hardware)
1342 "SEND members=%d dsp=%s, conf=%p, rx_R=%05x rx_W=%05x\n",
1343 members, dsp->name, conf, dsp->rx_R, dsp->rx_W);
1418 /* PROCESS DATA (one member / no conf) */
1419 if (!conf || members <= 1) {
1460 other = (list_entry(conf->mlist.next,
1463 other = (list_entry(conf->mlist.prev,
1518 * -> subtract rx-data from conf-data,
1529 /* conf-rx+tx */
1540 /* conf-rx */
1546 * -> encode conf-data, if tx-data
1556 /* conf(echo)+tx */
1567 /* conf(echo) */
1630 struct dsp_conf *conf;
1671 conf = dsp->conf;
1674 if (conf) {
1675 members = count_list_member(&conf->mlist);
1677 if (conf->software && members > 1)
1679 if (conf->software && members > 2)
1696 list_for_each_entry(conf, &conf_ilist, list) {
1698 members = count_list_member(&conf->mlist);
1700 if (conf->software && members > 1) {
1702 if (conf->software && members > 2) {
1704 /* check for hdlc conf */
1705 member = list_entry(conf->mlist.next,
1711 list_for_each_entry(member, &conf->mlist, list) {
1726 list_for_each_entry(member, &conf->mlist, list) {
1930 /* no conf */
1931 if (!dsp->conf) {
1946 if (dsp->conf->hardware)
1948 list_for_each_entry(member, &dsp->conf->mlist, list) {