Lines Matching full:si
526 * @param si Pointer to oss_sysinfo struct where information about the
540 sound_oss_sysinfo(oss_sysinfo *si) in sound_oss_sysinfo() argument
553 strlcpy(si->product, si_product, sizeof(si->product)); in sound_oss_sysinfo()
554 strlcpy(si->version, si_version, sizeof(si->version)); in sound_oss_sysinfo()
555 si->versionnum = SOUND_VERSION; in sound_oss_sysinfo()
556 strlcpy(si->license, si_license, sizeof(si->license)); in sound_oss_sysinfo()
562 si->numaudioengines = 0; in sound_oss_sysinfo()
563 bzero((void *)&si->openedaudio, sizeof(si->openedaudio)); in sound_oss_sysinfo()
580 si->numaudioengines += PCM_CHANCOUNT(d); in sound_oss_sysinfo()
586 si->openedaudio[j / intnbits] |= in sound_oss_sysinfo()
596 si->numsynths = 0; /* OSSv4 docs: this field is obsolete */ in sound_oss_sysinfo()
608 si->nummidis = 0; in sound_oss_sysinfo()
609 si->numtimers = 0; in sound_oss_sysinfo()
616 si->nummixers = devclass_get_maxunit(pcm_devclass); in sound_oss_sysinfo()
617 si->numcards = devclass_get_maxunit(pcm_devclass); in sound_oss_sysinfo()
618 si->numaudios = devclass_get_maxunit(pcm_devclass); in sound_oss_sysinfo()
627 * si->openedmidi = " MIDI devices in sound_oss_sysinfo()
629 bzero((void *)&si->openedmidi, sizeof(si->openedmidi)); in sound_oss_sysinfo()
632 * Si->filler is a reserved array, but according to docs each in sound_oss_sysinfo()
635 for (i = 0; i < nitems(si->filler); i++) in sound_oss_sysinfo()
636 si->filler[i] = -1; in sound_oss_sysinfo()
640 sound_oss_card_info(oss_card_info *si) in sound_oss_card_info() argument
649 if (i != si->card) in sound_oss_card_info()
653 snprintf(si->shortname, sizeof(si->shortname), in sound_oss_card_info()
655 strlcpy(si->longname, "Device unavailable", in sound_oss_card_info()
656 sizeof(si->longname)); in sound_oss_card_info()
657 si->hw_info[0] = '\0'; in sound_oss_card_info()
658 si->intr_count = si->ack_count = 0; in sound_oss_card_info()
663 strlcpy(si->shortname, device_get_nameunit(d->dev), in sound_oss_card_info()
664 sizeof(si->shortname)); in sound_oss_card_info()
665 strlcpy(si->longname, device_get_desc(d->dev), in sound_oss_card_info()
666 sizeof(si->longname)); in sound_oss_card_info()
667 strlcpy(si->hw_info, d->status, sizeof(si->hw_info)); in sound_oss_card_info()
668 si->intr_count = si->ack_count = 0; in sound_oss_card_info()