Lines Matching refs:shm
52 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_action() local
55 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_action()
56 err = write(shm->socket, buf, 1); in snd_ctl_shm_action()
59 err = read(shm->socket, buf, 1); in snd_ctl_shm_action()
71 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_action_fd() local
74 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_action_fd()
75 err = write(shm->socket, buf, 1); in snd_ctl_shm_action_fd()
78 err = snd_receive_fd(shm->socket, buf, 1, fd); in snd_ctl_shm_action_fd()
90 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_close() local
91 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_close()
96 close(shm->socket); in snd_ctl_shm_close()
97 free(shm); in snd_ctl_shm_close()
108 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_async() local
109 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_async()
120 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_poll_descriptor() local
121 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_poll_descriptor()
132 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_subscribe_events() local
133 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_subscribe_events()
141 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_card_info() local
142 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_card_info()
155 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_elem_list() local
156 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_elem_list()
177 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_elem_info() local
178 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_elem_info()
191 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_elem_read() local
192 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_elem_read()
205 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_elem_write() local
206 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_elem_write()
219 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_elem_lock() local
220 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_elem_lock()
233 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_elem_unlock() local
234 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_elem_unlock()
247 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_hwdep_next_device() local
248 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_hwdep_next_device()
261 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_hwdep_info() local
262 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_hwdep_info()
275 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_pcm_next_device() local
276 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_pcm_next_device()
289 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_pcm_info() local
290 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_pcm_info()
303 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_pcm_prefer_subdevice() local
304 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_pcm_prefer_subdevice()
312 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_rawmidi_next_device() local
313 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_rawmidi_next_device()
326 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_rawmidi_info() local
327 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_rawmidi_info()
340 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_rawmidi_prefer_subdevice() local
341 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_rawmidi_prefer_subdevice()
349 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_set_power_state() local
350 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_set_power_state()
358 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_get_power_state() local
359 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_get_power_state()
371 snd_ctl_shm_t *shm; in snd_ctl_shm_read() local
377 shm = ctl->private_data; in snd_ctl_shm_read()
378 ctrl = shm->ctrl; in snd_ctl_shm_read()
437 snd_ctl_shm_t *shm = NULL; in snd_ctl_shm_open() local
496 shm = calloc(1, sizeof(snd_ctl_shm_t)); in snd_ctl_shm_open()
497 if (!shm) { in snd_ctl_shm_open()
502 shm->socket = sock; in snd_ctl_shm_open()
503 shm->ctrl = ctrl; in snd_ctl_shm_open()
511 ctl->private_data = shm; in snd_ctl_shm_open()
525 free(shm); in snd_ctl_shm_open()