Lines Matching refs:txc
377 static int hsc_tx_set(struct hsi_client *cl, struct hsc_tx_config *txc)
382 if ((txc->mode != HSI_MODE_STREAM) && (txc->mode != HSI_MODE_FRAME))
384 if ((txc->channels == 0) || (txc->channels > HSC_DEVS))
386 if (txc->channels & (txc->channels - 1))
388 if ((txc->arb_mode != HSI_ARB_RR) && (txc->arb_mode != HSI_ARB_PRIO))
391 cl->tx_cfg.mode = txc->mode;
392 cl->tx_cfg.num_hw_channels = txc->channels;
393 cl->tx_cfg.speed = txc->speed;
394 cl->tx_cfg.arb_mode = txc->arb_mode;
404 static inline void hsc_tx_get(struct hsi_client *cl, struct hsc_tx_config *txc)
406 txc->mode = cl->tx_cfg.mode;
407 txc->channels = cl->tx_cfg.num_hw_channels;
408 txc->speed = cl->tx_cfg.speed;
409 txc->arb_mode = cl->tx_cfg.arb_mode;
530 struct hsc_tx_config txc;
564 if (copy_from_user(&txc, (void __user *)arg, sizeof(txc)))
566 return hsc_tx_set(channel->cl, &txc);
568 hsc_tx_get(channel->cl, &txc);
569 if (copy_to_user((void __user *)arg, &txc, sizeof(txc)))