Lines Matching refs:hw_data
60 struct pcm_hw_data *hw_data = data; in pcm_hw_close() local
62 if (hw_data->fd >= 0) in pcm_hw_close()
63 close(hw_data->fd); in pcm_hw_close()
65 free(hw_data); in pcm_hw_close()
70 struct pcm_hw_data *hw_data = data; in pcm_hw_ioctl() local
78 return ioctl(hw_data->fd, cmd, arg); in pcm_hw_ioctl()
90 struct pcm_hw_data *hw_data = data; in pcm_hw_mmap() local
92 return mmap(addr, length, prot, flags, hw_data->fd, offset); in pcm_hw_mmap()
103 struct pcm_hw_data *hw_data; in pcm_hw_open() local
107 hw_data = calloc(1, sizeof(*hw_data)); in pcm_hw_open()
108 if (!hw_data) { in pcm_hw_open()
119 free(hw_data); in pcm_hw_open()
128 free(hw_data); in pcm_hw_open()
133 hw_data->card = card; in pcm_hw_open()
134 hw_data->device = device; in pcm_hw_open()
135 hw_data->fd = fd; in pcm_hw_open()
136 hw_data->node = node; in pcm_hw_open()
138 *data = hw_data; in pcm_hw_open()