Lines Matching refs:node
71 struct device_node *node, in axg_card_parse_dai() argument
78 if (!dai_name || !dai_of_node || !node) in axg_card_parse_dai()
81 ret = of_parse_phandle_with_args(node, "sound-dai", in axg_card_parse_dai()
95 struct device_node *node, in axg_card_set_link_name() argument
99 prefix, node->full_name); in axg_card_set_link_name()
137 struct device_node *node = card->dev->of_node; in axg_card_add_aux_devices() local
141 num = of_count_phandle_with_args(node, "audio-aux-devs", NULL); in axg_card_add_aux_devices()
163 of_parse_phandle(node, "audio-aux-devs", i); in axg_card_add_aux_devices()
307 static unsigned int axg_card_parse_daifmt(struct device_node *node, in axg_card_parse_daifmt() argument
314 daifmt = snd_soc_of_parse_daifmt(node, PREFIX, in axg_card_parse_daifmt()
335 struct device_node *node, in axg_card_parse_cpu_tdm_slots() argument
351 snd_soc_of_get_slot_mask(node, propname, &be->tx_mask[i]); in axg_card_parse_cpu_tdm_slots()
361 snd_soc_of_get_slot_mask(node, propname, &be->rx_mask[i]); in axg_card_parse_cpu_tdm_slots()
375 of_property_read_u32(node, "dai-tdm-slot-num", &be->slots); in axg_card_parse_cpu_tdm_slots()
391 of_property_read_u32(node, "dai-tdm-slot-width", &be->slot_width); in axg_card_parse_cpu_tdm_slots()
398 struct device_node *node, in axg_card_parse_codecs_masks() argument
411 for_each_child_of_node(node, np) { in axg_card_parse_codecs_masks()
424 struct device_node *node, in axg_card_parse_tdm() argument
441 link->dai_fmt = axg_card_parse_daifmt(node, link->cpus->of_node); in axg_card_parse_tdm()
443 of_property_read_u32(node, "mclk-fs", &be->mclk_fs); in axg_card_parse_tdm()
445 ret = axg_card_parse_cpu_tdm_slots(card, link, node, be); in axg_card_parse_tdm()
451 ret = axg_card_parse_codecs_masks(card, link, node, be); in axg_card_parse_tdm()
467 struct device_node *node) in axg_card_set_be_link() argument
477 num_codecs = of_get_child_count(node); in axg_card_set_be_link()
480 node->full_name); in axg_card_set_be_link()
491 for_each_child_of_node(node, np) { in axg_card_set_be_link()
502 ret = axg_card_set_link_name(card, link, node, "be"); in axg_card_set_be_link()
511 struct device_node *node, in axg_card_set_fe_link() argument
535 return axg_card_set_link_name(card, link, node, "fe"); in axg_card_set_fe_link()
598 struct device_node *node = card->dev->of_node; in axg_card_add_links() local
602 num = of_get_child_count(node); in axg_card_add_links()
613 for_each_child_of_node(node, np) { in axg_card_add_links()