Lines Matching refs:uc
192 struct uc_data *uc = dev->data; in rx_thread() local
209 if (!uc_ready(uc->fd)) { in rx_thread()
216 len = read(uc->fd, frame + frame_size, sizeof(frame) - frame_size); in rx_thread()
224 close(uc->fd); in rx_thread()
225 uc->fd = -1; in rx_thread()
282 uc->recv(dev, buf); in rx_thread()
291 struct uc_data *uc = dev->data; in uc_send() local
295 if (uc->fd < 0) { in uc_send()
318 if (write(uc->fd, buf->data, buf->len) < 0) { in uc_send()
380 struct uc_data *uc = dev->data; in uc_open() local
388 uc->fd = user_chan_open(); in uc_open()
389 if (uc->fd < 0) { in uc_open()
390 return uc->fd; in uc_open()
393 uc->recv = recv; in uc_open()
395 LOG_DBG("User Channel opened as fd %d", uc->fd); in uc_open()