Lines Matching refs:rxc
342 static int hsc_rx_set(struct hsi_client *cl, struct hsc_rx_config *rxc) in hsc_rx_set() argument
347 if ((rxc->mode != HSI_MODE_STREAM) && (rxc->mode != HSI_MODE_FRAME)) in hsc_rx_set()
349 if ((rxc->channels == 0) || (rxc->channels > HSC_DEVS)) in hsc_rx_set()
351 if (rxc->channels & (rxc->channels - 1)) in hsc_rx_set()
353 if ((rxc->flow != HSI_FLOW_SYNC) && (rxc->flow != HSI_FLOW_PIPE)) in hsc_rx_set()
356 cl->rx_cfg.mode = rxc->mode; in hsc_rx_set()
357 cl->rx_cfg.num_hw_channels = rxc->channels; in hsc_rx_set()
358 cl->rx_cfg.flow = rxc->flow; in hsc_rx_set()
364 if (rxc->mode == HSI_MODE_FRAME) in hsc_rx_set()
370 static inline void hsc_rx_get(struct hsi_client *cl, struct hsc_rx_config *rxc) in hsc_rx_get() argument
372 rxc->mode = cl->rx_cfg.mode; in hsc_rx_get()
373 rxc->channels = cl->rx_cfg.num_hw_channels; in hsc_rx_get()
374 rxc->flow = cl->rx_cfg.flow; in hsc_rx_get()
529 struct hsc_rx_config rxc; in hsc_ioctl() local
555 if (copy_from_user(&rxc, (void __user *)arg, sizeof(rxc))) in hsc_ioctl()
557 return hsc_rx_set(channel->cl, &rxc); in hsc_ioctl()
559 hsc_rx_get(channel->cl, &rxc); in hsc_ioctl()
560 if (copy_to_user((void __user *)arg, &rxc, sizeof(rxc))) in hsc_ioctl()