Lines Matching refs:hw_data
57 struct mixer_hw_data *hw_data = data; in mixer_hw_close() local
59 if (!hw_data) in mixer_hw_close()
62 if (hw_data->fd >= 0) in mixer_hw_close()
63 close(hw_data->fd); in mixer_hw_close()
65 hw_data->fd = -1; in mixer_hw_close()
66 free(hw_data); in mixer_hw_close()
67 hw_data = NULL; in mixer_hw_close()
72 struct mixer_hw_data *hw_data = data; in mixer_hw_ioctl() local
80 return ioctl(hw_data->fd, cmd, arg); in mixer_hw_ioctl()
86 struct mixer_hw_data *hw_data = data; in mixer_hw_read_event() local
88 return read(hw_data->fd, ev, size); in mixer_hw_read_event()
101 struct mixer_hw_data *hw_data; in mixer_hw_open() local
110 hw_data = calloc(1, sizeof(*hw_data)); in mixer_hw_open()
111 if (!hw_data) { in mixer_hw_open()
116 hw_data->card = card; in mixer_hw_open()
117 hw_data->fd = fd; in mixer_hw_open()
118 *data = hw_data; in mixer_hw_open()