Home
last modified time | relevance | path

Searched refs:rx_cfg (Results 1 – 14 of 14) sorted by relevance

/drivers/hsi/
Dhsi.c76 kfree(cl->rx_cfg.channels); in hsi_client_release()
97 cl->rx_cfg = info->rx_cfg; in hsi_new_client()
98 if (cl->rx_cfg.channels) { in hsi_new_client()
99 size = cl->rx_cfg.num_channels * sizeof(*cl->rx_cfg.channels); in hsi_new_client()
100 cl->rx_cfg.channels = kzalloc(size , GFP_KERNEL); in hsi_new_client()
101 memcpy(cl->rx_cfg.channels, info->rx_cfg.channels, size); in hsi_new_client()
221 &cl->rx_cfg.mode); in hsi_add_client_from_dt()
230 cl->rx_cfg.mode = mode; in hsi_add_client_from_dt()
238 cl->rx_cfg.speed = cl->tx_cfg.speed; in hsi_add_client_from_dt()
241 &cl->rx_cfg.flow); in hsi_add_client_from_dt()
[all …]
/drivers/net/ethernet/apple/
Dbmac.c905 unsigned short rx_cfg; in bmac_rx_off() local
907 rx_cfg = bmread(dev, RXCFG); in bmac_rx_off()
908 rx_cfg &= ~RxMACEnable; in bmac_rx_off()
909 bmwrite(dev, RXCFG, rx_cfg); in bmac_rx_off()
911 rx_cfg = bmread(dev, RXCFG); in bmac_rx_off()
912 } while (rx_cfg & RxMACEnable); in bmac_rx_off()
918 unsigned short rx_cfg; in bmac_rx_on() local
920 rx_cfg = bmread(dev, RXCFG); in bmac_rx_on()
921 rx_cfg |= RxMACEnable; in bmac_rx_on()
922 if (hash_enable) rx_cfg |= RxHashFilterEnable; in bmac_rx_on()
[all …]
/drivers/hsi/clients/
Dhsi_char.c368 tmp = cl->rx_cfg; in hsc_rx_set()
369 cl->rx_cfg.mode = rxc->mode; in hsc_rx_set()
370 cl->rx_cfg.num_hw_channels = rxc->channels; in hsc_rx_set()
371 cl->rx_cfg.flow = rxc->flow; in hsc_rx_set()
374 cl->rx_cfg = tmp; in hsc_rx_set()
385 rxc->mode = cl->rx_cfg.mode; in hsc_rx_get()
386 rxc->channels = cl->rx_cfg.num_hw_channels; in hsc_rx_get()
387 rxc->flow = cl->rx_cfg.flow; in hsc_rx_get()
438 if (channel->ch >= channel->cl->rx_cfg.num_hw_channels) in hsc_read()
Dnokia-modem.c195 ssip.rx_cfg = cl->rx_cfg; in nokia_modem_probe()
/drivers/net/ethernet/brocade/bna/
Dbna_tx_rx.c1814 cfg_req->rx_cfg.frame_size = bna_enet_mtu_get(&rx->bna->enet); in bna_bfi_rx_enet_start()
1842 cfg_req->rx_cfg.multi_buffer = in bna_bfi_rx_enet_start()
1881 cfg_req->rx_cfg.rxq_type = BFI_ENET_RXQ_LARGE_SMALL; in bna_bfi_rx_enet_start()
1885 cfg_req->rx_cfg.rxq_type = BFI_ENET_RXQ_HDS; in bna_bfi_rx_enet_start()
1886 cfg_req->rx_cfg.hds.type = rx->hds_cfg.hdr_type; in bna_bfi_rx_enet_start()
1887 cfg_req->rx_cfg.hds.force_offset = rx->hds_cfg.forced_offset; in bna_bfi_rx_enet_start()
1888 cfg_req->rx_cfg.hds.max_header_size = rx->hds_cfg.forced_offset; in bna_bfi_rx_enet_start()
1892 cfg_req->rx_cfg.rxq_type = BFI_ENET_RXQ_SINGLE; in bna_bfi_rx_enet_start()
1898 cfg_req->rx_cfg.strip_vlan = rx->rxf.vlan_strip_status; in bna_bfi_rx_enet_start()
1935 bna_rx_res_check(struct bna_rx_mod *rx_mod, struct bna_rx_config *rx_cfg) in bna_rx_res_check() argument
[all …]
Dbfi_enet.h510 struct bfi_enet_rx_cfg rx_cfg; member
Dbna.h479 struct bna_rx_config *rx_cfg,
/drivers/net/ethernet/micrel/
Dksz884x.c1282 u32 rx_cfg; member
3220 u32 rx_cfg; in set_flow_ctrl() local
3223 rx_cfg = hw->rx_cfg; in set_flow_ctrl()
3226 hw->rx_cfg |= DMA_RX_FLOW_ENABLE; in set_flow_ctrl()
3228 hw->rx_cfg &= ~DMA_RX_FLOW_ENABLE; in set_flow_ctrl()
3234 if (rx_cfg != hw->rx_cfg) in set_flow_ctrl()
3235 writel(hw->rx_cfg, hw->io + KS_DMA_RX_CTRL); in set_flow_ctrl()
3793 hw->rx_cfg = (DMA_RX_BROADCAST | DMA_RX_UNICAST | in hw_setup()
3795 hw->rx_cfg |= KS884X_DMA_RX_MULTICAST; in hw_setup()
3798 hw->rx_cfg |= (DMA_RX_CSUM_TCP | DMA_RX_CSUM_IP); in hw_setup()
[all …]
/drivers/net/ethernet/neterion/
Ds2io.c705 struct rx_ring_config *rx_cfg = &config->rx_cfg[i]; in init_shared_mem() local
708 if (rx_cfg->num_rxd % (rxd_count[nic->rxd_mode] + 1)) { in init_shared_mem()
714 size += rx_cfg->num_rxd; in init_shared_mem()
715 ring->block_count = rx_cfg->num_rxd / in init_shared_mem()
717 ring->pkt_cnt = rx_cfg->num_rxd - ring->block_count; in init_shared_mem()
725 struct rx_ring_config *rx_cfg = &config->rx_cfg[i]; in init_shared_mem() local
730 ring->rx_curr_get_info.ring_len = rx_cfg->num_rxd - 1; in init_shared_mem()
733 ring->rx_curr_put_info.ring_len = rx_cfg->num_rxd - 1; in init_shared_mem()
737 blk_cnt = rx_cfg->num_rxd / (rxd_count[nic->rxd_mode] + 1); in init_shared_mem()
798 struct rx_ring_config *rx_cfg = &config->rx_cfg[i]; in init_shared_mem() local
[all …]
Ds2io.h449 struct rx_ring_config rx_cfg[MAX_RX_RINGS]; /*Per-Rx Ring config */ member
/drivers/hsi/controllers/
Domap_ssi_port.c475 writel_relaxed(cl->rx_cfg.num_hw_channels, ssr + SSI_SSR_CHANNELS_REG); in ssi_setup()
479 (cl->rx_cfg.mode != SSI_MODE_FRAME)) in ssi_setup()
481 writel_relaxed(cl->rx_cfg.mode, ssr + SSI_SSR_MODE_REG); in ssi_setup()
482 omap_port->channels = max(cl->rx_cfg.num_hw_channels, in ssi_setup()
494 omap_port->ssr.channels = cl->rx_cfg.num_hw_channels; in ssi_setup()
495 omap_port->ssr.mode = cl->rx_cfg.mode; in ssi_setup()
/drivers/net/ethernet/chelsio/cxgb3/
Dt3_hw.c1164 static void t3_gate_rx_traffic(struct cmac *mac, u32 *rx_cfg, in t3_gate_rx_traffic() argument
1171 *rx_cfg = t3_read_reg(mac->adapter, A_XGM_RX_CFG); in t3_gate_rx_traffic()
1186 static void t3_open_rx_traffic(struct cmac *mac, u32 rx_cfg, in t3_open_rx_traffic() argument
1192 rx_cfg); in t3_open_rx_traffic()
1217 u32 rx_cfg, rx_hash_high, rx_hash_low; in t3_link_changed() local
1221 t3_gate_rx_traffic(mac, &rx_cfg, &rx_hash_high, &rx_hash_low); in t3_link_changed()
1230 t3_open_rx_traffic(mac, rx_cfg, rx_hash_high, rx_hash_low); in t3_link_changed()
1270 u32 rx_cfg, rx_hash_high, rx_hash_low; in t3_link_fault() local
1272 t3_gate_rx_traffic(mac, &rx_cfg, &rx_hash_high, &rx_hash_low); in t3_link_fault()
1280 t3_open_rx_traffic(mac, rx_cfg, rx_hash_high, rx_hash_low); in t3_link_fault()
/drivers/usb/gadget/udc/
Dbcm63xx_udc.c458 const struct iudma_ch_cfg *rx_cfg = &iudma_defaults[i]; in bcm63xx_fifo_setup() local
464 ((rx_fifo_slot + rx_cfg->n_fifo_slots - 1) << in bcm63xx_fifo_setup()
466 rx_fifo_slot += rx_cfg->n_fifo_slots; in bcm63xx_fifo_setup()
469 is_hs ? rx_cfg->max_pkt_hs : rx_cfg->max_pkt_fs, in bcm63xx_fifo_setup()
/drivers/net/ethernet/sun/
Dniu.c392 u32 tx_cfg, rx_cfg; in serdes_init_niu_10g_fiber() local
396 rx_cfg = (PLL_RX_CFG_ENRX | PLL_RX_CFG_TERM_0P8VDDT | in serdes_init_niu_10g_fiber()
407 rx_cfg |= PLL_RX_CFG_ENTEST; in serdes_init_niu_10g_fiber()
418 int err = esr2_set_rx_cfg(np, i, rx_cfg); in serdes_init_niu_10g_fiber()
432 u32 tx_cfg, rx_cfg; in serdes_init_niu_1g_serdes() local
438 rx_cfg = (PLL_RX_CFG_ENRX | PLL_RX_CFG_TERM_0P8VDDT | in serdes_init_niu_1g_serdes()
443 rx_cfg |= PLL_RX_CFG_EQ_LP_ADAPTIVE; in serdes_init_niu_1g_serdes()
452 rx_cfg |= PLL_RX_CFG_ENTEST; in serdes_init_niu_1g_serdes()
486 err = esr2_set_rx_cfg(np, i, rx_cfg); in serdes_init_niu_1g_serdes()
526 u32 tx_cfg, rx_cfg, pll_cfg, pll_sts; in serdes_init_niu_10g_serdes() local
[all …]