Lines Matching refs:hw_data
56 struct compress_hw_data *hw_data = data; in compress_hw_poll() local
58 fds->fd = hw_data->fd; in compress_hw_poll()
64 struct compress_hw_data *hw_data = data; in compress_hw_write() local
66 return write(hw_data->fd, buf, size); in compress_hw_write()
71 struct compress_hw_data *hw_data = data; in compress_hw_read() local
73 return read(hw_data->fd, buf, size); in compress_hw_read()
78 struct compress_hw_data *hw_data = data; in compress_hw_ioctl() local
86 return ioctl(hw_data->fd, cmd, arg); in compress_hw_ioctl()
91 struct compress_hw_data *hw_data = data; in compress_hw_close() local
93 if (hw_data->fd > 0) in compress_hw_close()
94 close(hw_data->fd); in compress_hw_close()
96 free(hw_data); in compress_hw_close()
102 struct compress_hw_data *hw_data; in compress_hw_open() local
106 hw_data = calloc(1, sizeof(*hw_data)); in compress_hw_open()
107 if (!hw_data) { in compress_hw_open()
122 hw_data->card = card; in compress_hw_open()
123 hw_data->device = device; in compress_hw_open()
124 hw_data->fd = fd; in compress_hw_open()
126 *data = hw_data; in compress_hw_open()