/linux-4.4.14/drivers/hsi/clients/ |
H A D | hsi_char.c | 355 static int hsc_rx_set(struct hsi_client *cl, struct hsc_rx_config *rxc) hsc_rx_set() argument 360 if ((rxc->mode != HSI_MODE_STREAM) && (rxc->mode != HSI_MODE_FRAME)) hsc_rx_set() 362 if ((rxc->channels == 0) || (rxc->channels > HSC_DEVS)) hsc_rx_set() 364 if (rxc->channels & (rxc->channels - 1)) hsc_rx_set() 366 if ((rxc->flow != HSI_FLOW_SYNC) && (rxc->flow != HSI_FLOW_PIPE)) hsc_rx_set() 369 cl->rx_cfg.mode = rxc->mode; hsc_rx_set() 370 cl->rx_cfg.num_hw_channels = rxc->channels; hsc_rx_set() 371 cl->rx_cfg.flow = rxc->flow; hsc_rx_set() 377 if (rxc->mode == HSI_MODE_FRAME) hsc_rx_set() 383 static inline void hsc_rx_get(struct hsi_client *cl, struct hsc_rx_config *rxc) hsc_rx_get() argument 385 rxc->mode = cl->rx_cfg.mode; hsc_rx_get() 386 rxc->channels = cl->rx_cfg.num_hw_channels; hsc_rx_get() 387 rxc->flow = cl->rx_cfg.flow; hsc_rx_get() 542 struct hsc_rx_config rxc; hsc_ioctl() local 568 if (copy_from_user(&rxc, (void __user *)arg, sizeof(rxc))) hsc_ioctl() 570 return hsc_rx_set(channel->cl, &rxc); hsc_ioctl() 572 hsc_rx_get(channel->cl, &rxc); hsc_ioctl() 573 if (copy_to_user((void __user *)arg, &rxc, sizeof(rxc))) hsc_ioctl()
|
/linux-4.4.14/drivers/mfd/ |
H A D | dln2.c | 196 struct dln2_rx_context *rxc; dln2_transfer_complete() local 202 rxc = &rxs->slots[rx_slot]; dln2_transfer_complete() 210 if (rxc->in_use && !rxc->urb) { dln2_transfer_complete() 211 rxc->urb = urb; dln2_transfer_complete() 212 complete(&rxc->done); dln2_transfer_complete() 368 struct dln2_rx_context *rxc = &rxs->slots[*slot]; find_free_slot() local 371 rxc->in_use = true; find_free_slot() 401 struct dln2_rx_context *rxc; free_rx_slot() local 409 rxc = &rxs->slots[slot]; free_rx_slot() 410 rxc->in_use = false; free_rx_slot() 411 urb = rxc->urb; free_rx_slot() 412 rxc->urb = NULL; free_rx_slot() 413 reinit_completion(&rxc->done); free_rx_slot() 436 struct dln2_rx_context *rxc; _dln2_transfer() local 464 rxc = &rxs->slots[rx_slot]; _dln2_transfer() 466 ret = wait_for_completion_interruptible_timeout(&rxc->done, timeout); _dln2_transfer() 481 rsp = rxc->urb->transfer_buffer; _dln2_transfer() 702 struct dln2_rx_context *rxc = &rxs->slots[j]; dln2_stop() local 704 if (rxc->in_use) dln2_stop() 705 complete(&rxc->done); dln2_stop()
|
/linux-4.4.14/drivers/spi/ |
H A D | spi-oc-tiny.c | 53 unsigned int txc, rxc; member in struct:tiny_spi 136 hw->rxc = 0; tiny_spi_txrx_bufs() 179 if (hw->rxc + 1 == hw->len) { tiny_spi_irq() 182 hw->rxc++; tiny_spi_irq() 187 hw->rxc++; tiny_spi_irq()
|
/linux-4.4.14/arch/powerpc/sysdev/ |
H A D | tsi108_dev.c | 136 * "txc-rxc-delay-disable" property enables this tsi108_eth_of_init() 141 if (of_get_property(phy, "txc-rxc-delay-disable", NULL)) tsi108_eth_of_init()
|
/linux-4.4.14/drivers/net/ethernet/micrel/ |
H A D | ks8851.c | 662 struct ks8851_rxctrl *rxc = &ks->rxctrl; ks8851_irq() local 665 ks8851_wrreg16(ks, KS_MAHTR0, rxc->mchash[0]); ks8851_irq() 666 ks8851_wrreg16(ks, KS_MAHTR1, rxc->mchash[1]); ks8851_irq() 667 ks8851_wrreg16(ks, KS_MAHTR2, rxc->mchash[2]); ks8851_irq() 668 ks8851_wrreg16(ks, KS_MAHTR3, rxc->mchash[3]); ks8851_irq() 670 ks8851_wrreg16(ks, KS_RXCR2, rxc->rxcr2); ks8851_irq() 671 ks8851_wrreg16(ks, KS_RXCR1, rxc->rxcr1); ks8851_irq()
|
/linux-4.4.14/drivers/tty/serial/ |
H A D | men_z135_uart.c | 227 u16 rxc; get_rx_fifo_content() local 235 rxc = rxc_lo | (rxc_hi << 8); get_rx_fifo_content() 237 return rxc; get_rx_fifo_content()
|
/linux-4.4.14/drivers/net/ethernet/sun/ |
H A D | cassini.c | 1360 static inline void cas_rxc_init(struct cas_rx_comp *rxc) cas_rxc_init() argument 1362 memset(rxc, 0, sizeof(*rxc)); cas_rxc_init() 1363 rxc->word4 = cpu_to_le64(RX_COMP4_ZERO); cas_rxc_init() 1442 struct cas_rx_comp *rxc = cp->init_rxcs[i]; cas_clean_rxcs() local 1444 cas_rxc_init(rxc + j); cas_clean_rxcs() 1952 static int cas_rx_process_pkt(struct cas *cp, struct cas_rx_comp *rxc, cas_rx_process_pkt() argument 2304 struct cas_rx_comp *rxc = rxcs + entry; cas_rx_ringN() local 2310 words[0] = le64_to_cpu(rxc->word1); cas_rx_ringN() 2311 words[1] = le64_to_cpu(rxc->word2); cas_rx_ringN() 2312 words[2] = le64_to_cpu(rxc->word3); cas_rx_ringN() 2313 words[3] = le64_to_cpu(rxc->word4); cas_rx_ringN() 2343 len = cas_rx_process_pkt(cp, rxc, entry, words, &skb); cas_rx_ringN() 2409 struct cas_rx_comp *rxc = cp->init_rxcs[ring]; cas_post_rxcs_ringN() local 2415 "rxc[%d] interrupt, done: %d/%d\n", cas_post_rxcs_ringN() 2420 cas_rxc_init(rxc + last); cas_post_rxcs_ringN() 2596 * rxc rings cas_poll()
|
/linux-4.4.14/drivers/net/phy/ |
H A D | micrel.c | 359 "rxdv-skew-ps", "rxc-skew-ps"); ksz9021_config_init() 463 static const char *clk_skews[2] = {"rxc-skew-ps", "txc-skew-ps"}; ksz9031_config_init()
|
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/phy/ |
H A D | phy_cmn.c | 1830 u16 rxc; wlc_phy_runbist_config() local 1831 rxc = 0; wlc_phy_runbist_config() 1849 bcma_write16(pi->d11core, D11REGOFFS(phyregdata), rxc); wlc_phy_runbist_config()
|