Home | History | Annotate | Download | only in hdaudio

Lines Matching refs:fg

246 	struct hdaudio_function_group *fg;
261 fg = &co->co_fg[i];
262 if (fg->fg_device && fg->fg_unsol)
263 fg->fg_unsol(fg->fg_device, entry->resp);
675 hdaudio_attach_fg(struct hdaudio_function_group *fg, prop_array_t config)
677 struct hdaudio_codec *co = fg->fg_codec;
680 uint64_t fgptr = (vaddr_t)fg;
683 prop_dictionary_set_uint8(args, "function-group-type", fg->fg_type);
685 prop_dictionary_set_uint8(args, "node-id", fg->fg_nid);
686 prop_dictionary_set_uint16(args, "vendor-id", fg->fg_vendor);
687 prop_dictionary_set_uint16(args, "product-id", fg->fg_product);
691 locs[0] = fg->fg_nid;
693 fg->fg_device = config_found(sc->sc_dev, args, hdaudio_config_print,
704 struct hdaudio_function_group *fg;
744 fg = &co->co_fg[nid - starting_node];
745 fg->fg_codec = co;
746 fg->fg_nid = nid;
747 fg->fg_vendor = vid >> 16;
748 fg->fg_product = vid & 0xffff;
754 fg->fg_type = HDAUDIO_GROUP_TYPE_AFG;
757 fg->fg_type = HDAUDIO_GROUP_TYPE_VSM_FG;
761 fg->fg_type = HDAUDIO_GROUP_TYPE_UNKNOWN;
764 hdaudio_attach_fg(fg, NULL);
948 struct hdaudio_function_group *fg;
953 fg = co->co_fg;
954 if (!co->co_valid || fg == NULL)
956 if (fg->fg_device)
958 hdaudio_attach_fg(fg, NULL);
968 struct hdaudio_function_group *fg;
973 fg = co->co_fg;
974 if (!co->co_valid || fg == NULL)
976 if (fg->fg_device == child)
977 fg->fg_device = NULL;
1326 struct hdaudio_function_group *fg = NULL;
1337 fg = &co->co_fg[i];
1341 return fg;
1349 struct hdaudio_function_group *fg;
1363 fg = &co->co_fg[fgid];
1368 "type", hdaudioioctl_fgrp_to_cstr(fg->fg_type));
1369 prop_dictionary_set_int16(dict, "nid", fg->fg_nid);
1372 fg->fg_vendor);
1374 fg->fg_product);
1377 if (fg->fg_device)
1379 device_xname(fg->fg_device));
1395 struct hdaudio_function_group *fg;
1406 fg = hdaudioioctl_fgrp_lookup(sc, codecid, nid);
1407 if (fg == NULL)
1414 nodecnt = hdaudio_command(fg->fg_codec, fg->fg_nid,
1420 wcap = hdaudio_command(fg->fg_codec, i,
1424 config = hdaudio_command(fg->fg_codec, i,
1443 struct hdaudio_function_group *fg;
1452 fg = hdaudioioctl_fgrp_lookup(sc, codecid, nid);
1453 if (fg == NULL)
1456 if (fg->fg_device) {
1457 err = config_detach(fg->fg_device, 0);
1460 fg->fg_device = NULL;
1469 hdaudio_attach_fg(fg, config);
1480 struct hdaudio_function_group *fg;
1493 fg = hdaudioioctl_fgrp_lookup(sc, codecid, nid);
1494 if (fg == NULL)
1496 if (fg->fg_device == NULL)
1498 fgrp_sc = device_private(fg->fg_device);
1499 fgrp_dict = device_properties(fg->fg_device);
1501 switch (fg->fg_type) {