Lines Matching refs:nchmaps
66 virtio_cread_le(vdev, struct virtio_snd_config, chmaps, &snd->nchmaps); in virtsnd_chmap_parse_cfg()
67 if (!snd->nchmaps) in virtsnd_chmap_parse_cfg()
70 snd->chmaps = devm_kcalloc(&vdev->dev, snd->nchmaps, in virtsnd_chmap_parse_cfg()
76 snd->nchmaps, sizeof(*snd->chmaps), in virtsnd_chmap_parse_cfg()
82 for (i = 0; i < snd->nchmaps; ++i) { in virtsnd_chmap_parse_cfg()
106 vs->nchmaps++; in virtsnd_chmap_parse_cfg()
127 for (i = 0; i < vs->nchmaps; i++) in virtsnd_chmap_add_ctls()
155 if (!vs->nchmaps) in virtsnd_chmap_build_devs()
158 vs->chmaps = devm_kcalloc(&vdev->dev, vs->nchmaps + 1, in virtsnd_chmap_build_devs()
164 vs->nchmaps = 0; in virtsnd_chmap_build_devs()
169 for (i = 0; i < snd->nchmaps; ++i) { in virtsnd_chmap_build_devs()
184 chmap = &vs->chmaps[vs->nchmaps++]; in virtsnd_chmap_build_devs()
209 if (!vs->nchmaps) in virtsnd_chmap_build_devs()