Lines Matching refs:ctrl
46 volatile snd_ctl_shm_ctrl_t *ctrl; member
55 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_action() local
62 if (ctrl->cmd) { in snd_ctl_shm_action()
66 return ctrl->result; in snd_ctl_shm_action()
74 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_action_fd() local
81 if (ctrl->cmd) { in snd_ctl_shm_action_fd()
85 return ctrl->result; in snd_ctl_shm_action_fd()
91 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_close() local
93 ctrl->cmd = SND_CTL_IOCTL_CLOSE; in snd_ctl_shm_close()
95 shmdt((void *)ctrl); in snd_ctl_shm_close()
109 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_async() local
110 ctrl->cmd = SND_CTL_IOCTL_ASYNC; in snd_ctl_shm_async()
111 ctrl->u.async.sig = sig; in snd_ctl_shm_async()
114 ctrl->u.async.pid = pid; in snd_ctl_shm_async()
121 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_poll_descriptor() local
123 ctrl->cmd = SND_CTL_IOCTL_POLL_DESCRIPTOR; in snd_ctl_shm_poll_descriptor()
133 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_subscribe_events() local
134 ctrl->cmd = SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS; in snd_ctl_shm_subscribe_events()
135 ctrl->u.subscribe_events = subscribe; in snd_ctl_shm_subscribe_events()
142 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_card_info() local
145 ctrl->cmd = SNDRV_CTL_IOCTL_CARD_INFO; in snd_ctl_shm_card_info()
149 *info = ctrl->u.card_info; in snd_ctl_shm_card_info()
156 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_elem_list() local
163 ctrl->u.element_list = *list; in snd_ctl_shm_elem_list()
164 ctrl->cmd = SNDRV_CTL_IOCTL_ELEM_LIST; in snd_ctl_shm_elem_list()
168 *list = ctrl->u.element_list; in snd_ctl_shm_elem_list()
171 memcpy(pids, (void *)ctrl->data, bytes); in snd_ctl_shm_elem_list()
178 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_elem_info() local
180 ctrl->u.element_info = *info; in snd_ctl_shm_elem_info()
181 ctrl->cmd = SNDRV_CTL_IOCTL_ELEM_INFO; in snd_ctl_shm_elem_info()
185 *info = ctrl->u.element_info; in snd_ctl_shm_elem_info()
192 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_elem_read() local
194 ctrl->u.element_read = *control; in snd_ctl_shm_elem_read()
195 ctrl->cmd = SNDRV_CTL_IOCTL_ELEM_READ; in snd_ctl_shm_elem_read()
199 *control = ctrl->u.element_read; in snd_ctl_shm_elem_read()
206 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_elem_write() local
208 ctrl->u.element_write = *control; in snd_ctl_shm_elem_write()
209 ctrl->cmd = SNDRV_CTL_IOCTL_ELEM_WRITE; in snd_ctl_shm_elem_write()
213 *control = ctrl->u.element_write; in snd_ctl_shm_elem_write()
220 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_elem_lock() local
222 ctrl->u.element_lock = *id; in snd_ctl_shm_elem_lock()
223 ctrl->cmd = SNDRV_CTL_IOCTL_ELEM_LOCK; in snd_ctl_shm_elem_lock()
227 *id = ctrl->u.element_lock; in snd_ctl_shm_elem_lock()
234 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_elem_unlock() local
236 ctrl->u.element_unlock = *id; in snd_ctl_shm_elem_unlock()
237 ctrl->cmd = SNDRV_CTL_IOCTL_ELEM_UNLOCK; in snd_ctl_shm_elem_unlock()
241 *id = ctrl->u.element_unlock; in snd_ctl_shm_elem_unlock()
248 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_hwdep_next_device() local
250 ctrl->u.device = *device; in snd_ctl_shm_hwdep_next_device()
251 ctrl->cmd = SNDRV_CTL_IOCTL_HWDEP_NEXT_DEVICE; in snd_ctl_shm_hwdep_next_device()
255 *device = ctrl->u.device; in snd_ctl_shm_hwdep_next_device()
262 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_hwdep_info() local
264 ctrl->u.hwdep_info = *info; in snd_ctl_shm_hwdep_info()
265 ctrl->cmd = SNDRV_CTL_IOCTL_HWDEP_INFO; in snd_ctl_shm_hwdep_info()
269 *info = ctrl->u.hwdep_info; in snd_ctl_shm_hwdep_info()
276 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_pcm_next_device() local
278 ctrl->u.device = *device; in snd_ctl_shm_pcm_next_device()
279 ctrl->cmd = SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE; in snd_ctl_shm_pcm_next_device()
283 *device = ctrl->u.device; in snd_ctl_shm_pcm_next_device()
290 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_pcm_info() local
292 ctrl->u.pcm_info = *info; in snd_ctl_shm_pcm_info()
293 ctrl->cmd = SNDRV_CTL_IOCTL_PCM_INFO; in snd_ctl_shm_pcm_info()
297 *info = ctrl->u.pcm_info; in snd_ctl_shm_pcm_info()
304 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_pcm_prefer_subdevice() local
305 ctrl->u.pcm_prefer_subdevice = subdev; in snd_ctl_shm_pcm_prefer_subdevice()
306 ctrl->cmd = SNDRV_CTL_IOCTL_PCM_PREFER_SUBDEVICE; in snd_ctl_shm_pcm_prefer_subdevice()
313 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_rawmidi_next_device() local
315 ctrl->u.device = *device; in snd_ctl_shm_rawmidi_next_device()
316 ctrl->cmd = SNDRV_CTL_IOCTL_RAWMIDI_NEXT_DEVICE; in snd_ctl_shm_rawmidi_next_device()
320 *device = ctrl->u.device; in snd_ctl_shm_rawmidi_next_device()
327 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_rawmidi_info() local
329 ctrl->u.rawmidi_info = *info; in snd_ctl_shm_rawmidi_info()
330 ctrl->cmd = SNDRV_CTL_IOCTL_RAWMIDI_INFO; in snd_ctl_shm_rawmidi_info()
334 *info = ctrl->u.rawmidi_info; in snd_ctl_shm_rawmidi_info()
341 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_rawmidi_prefer_subdevice() local
342 ctrl->u.rawmidi_prefer_subdevice = subdev; in snd_ctl_shm_rawmidi_prefer_subdevice()
343 ctrl->cmd = SNDRV_CTL_IOCTL_RAWMIDI_PREFER_SUBDEVICE; in snd_ctl_shm_rawmidi_prefer_subdevice()
350 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_set_power_state() local
351 ctrl->u.power_state = state; in snd_ctl_shm_set_power_state()
352 ctrl->cmd = SNDRV_CTL_IOCTL_POWER; in snd_ctl_shm_set_power_state()
359 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_get_power_state() local
361 ctrl->cmd = SNDRV_CTL_IOCTL_POWER_STATE; in snd_ctl_shm_get_power_state()
365 *state = ctrl->u.power_state; in snd_ctl_shm_get_power_state()
372 volatile snd_ctl_shm_ctrl_t *ctrl; in snd_ctl_shm_read() local
378 ctrl = shm->ctrl; in snd_ctl_shm_read()
379 ctrl->u.read = *event; in snd_ctl_shm_read()
380 ctrl->cmd = SND_CTL_IOCTL_READ; in snd_ctl_shm_read()
384 *event = ctrl->u.read; in snd_ctl_shm_read()
444 snd_ctl_shm_ctrl_t *ctrl = NULL; in snd_ctl_shm_open() local
490 ctrl = shmat(ans.cookie, 0, 0); in snd_ctl_shm_open()
491 if (!ctrl) { in snd_ctl_shm_open()
503 shm->ctrl = ctrl; in snd_ctl_shm_open()
523 if (ctrl) in snd_ctl_shm_open()
524 shmdt(ctrl); in snd_ctl_shm_open()