/drivers/hsi/ |
D | hsi_core.c | 63 kfree(cl->rx_cfg.channels); in hsi_client_release() 86 cl->rx_cfg = info->rx_cfg; in hsi_new_client() 87 if (cl->rx_cfg.channels) { in hsi_new_client() 88 size = cl->rx_cfg.num_channels * sizeof(*cl->rx_cfg.channels); in hsi_new_client() 89 cl->rx_cfg.channels = kmemdup(info->rx_cfg.channels, size, in hsi_new_client() 91 if (!cl->rx_cfg.channels) in hsi_new_client() 217 &cl->rx_cfg.mode); in hsi_add_client_from_dt() 226 cl->rx_cfg.mode = mode; in hsi_add_client_from_dt() 234 cl->rx_cfg.speed = cl->tx_cfg.speed; in hsi_add_client_from_dt() 237 &cl->rx_cfg.flow); in hsi_add_client_from_dt() [all …]
|
/drivers/staging/pi433/ |
D | pi433_if.c | 92 struct pi433_rx_cfg rx_cfg; member 164 rf69_set_rx_cfg(struct pi433_device *dev, struct pi433_rx_cfg *rx_cfg) in rf69_set_rx_cfg() argument 170 ret = rf69_set_frequency(dev->spi, rx_cfg->frequency); in rf69_set_rx_cfg() 173 ret = rf69_set_modulation(dev->spi, rx_cfg->modulation); in rf69_set_rx_cfg() 176 ret = rf69_set_bit_rate(dev->spi, rx_cfg->bit_rate); in rf69_set_rx_cfg() 179 ret = rf69_set_antenna_impedance(dev->spi, rx_cfg->antenna_impedance); in rf69_set_rx_cfg() 182 ret = rf69_set_rssi_threshold(dev->spi, rx_cfg->rssi_threshold); in rf69_set_rx_cfg() 185 ret = rf69_set_ook_threshold_dec(dev->spi, rx_cfg->threshold_decrement); in rf69_set_rx_cfg() 188 ret = rf69_set_bandwidth(dev->spi, rx_cfg->bw_mantisse, in rf69_set_rx_cfg() 189 rx_cfg->bw_exponent); in rf69_set_rx_cfg() [all …]
|
/drivers/net/ethernet/apple/ |
D | bmac.c | 896 unsigned short rx_cfg; in bmac_rx_off() local 898 rx_cfg = bmread(dev, RXCFG); in bmac_rx_off() 899 rx_cfg &= ~RxMACEnable; in bmac_rx_off() 900 bmwrite(dev, RXCFG, rx_cfg); in bmac_rx_off() 902 rx_cfg = bmread(dev, RXCFG); in bmac_rx_off() 903 } while (rx_cfg & RxMACEnable); in bmac_rx_off() 909 unsigned short rx_cfg; in bmac_rx_on() local 911 rx_cfg = bmread(dev, RXCFG); in bmac_rx_on() 912 rx_cfg |= RxMACEnable; in bmac_rx_on() 913 if (hash_enable) rx_cfg |= RxHashFilterEnable; in bmac_rx_on() [all …]
|
/drivers/net/ethernet/google/gve/ |
D | gve_main.c | 51 for (ring = 0; ring < priv->rx_cfg.num_queues; ring++) { in gve_get_stats() 140 priv->rx_cfg.num_queues; in gve_alloc_stats_report() 301 priv->rx_cfg.max_queues = min_t(int, priv->rx_cfg.max_queues, in gve_alloc_notify_blocks() 306 priv->rx_cfg.max_queues); in gve_alloc_notify_blocks() 309 if (priv->rx_cfg.num_queues > priv->rx_cfg.max_queues) in gve_alloc_notify_blocks() 310 priv->rx_cfg.num_queues = priv->rx_cfg.max_queues; in gve_alloc_notify_blocks() 583 err = gve_adminq_create_rx_queues(priv, priv->rx_cfg.num_queues); in gve_create_rings() 586 priv->rx_cfg.num_queues); in gve_create_rings() 593 priv->rx_cfg.num_queues); in gve_create_rings() 602 for (i = 0; i < priv->rx_cfg.num_queues; i++) in gve_create_rings() [all …]
|
D | gve_ethtool.c | 91 for (i = 0; i < priv->rx_cfg.num_queues; i++) { in gve_get_strings() 130 (priv->rx_cfg.num_queues * NUM_GVE_RX_CNTS) + in gve_get_sset_count() 162 rx_qid_to_stats_idx = kmalloc_array(priv->rx_cfg.num_queues, in gve_get_ethtool_stats() 174 ring < priv->rx_cfg.num_queues; ring++) { in gve_get_ethtool_stats() 235 GVE_RX_STATS_REPORT_NUM * priv->rx_cfg.num_queues; in gve_get_ethtool_stats() 236 max_stats_idx = NIC_RX_STATS_REPORT_NUM * priv->rx_cfg.num_queues + in gve_get_ethtool_stats() 254 for (ring = 0; ring < priv->rx_cfg.num_queues; ring++) { in gve_get_ethtool_stats() 294 i += priv->rx_cfg.num_queues * NUM_GVE_RX_CNTS; in gve_get_ethtool_stats() 384 cmd->max_rx = priv->rx_cfg.max_queues; in gve_get_channels() 388 cmd->rx_count = priv->rx_cfg.num_queues; in gve_get_channels() [all …]
|
D | gve.h | 521 struct gve_queue_config rx_cfg; member 785 return priv->rx_cfg.num_queues; in gve_num_rx_qpls()
|
D | gve_rx_dqo.c | 305 for (i = 0; i < priv->rx_cfg.num_queues; i++) { in gve_rx_alloc_rings_dqo() 328 for (i = 0; i < priv->rx_cfg.num_queues; i++) in gve_rx_free_rings_dqo()
|
D | gve_rx.c | 252 for (i = 0; i < priv->rx_cfg.num_queues; i++) { in gve_rx_alloc_rings() 275 for (i = 0; i < priv->rx_cfg.num_queues; i++) in gve_rx_free_rings_gqi()
|
/drivers/net/wireless/intel/iwlwifi/pcie/ |
D | ctxt-info.c | 168 struct iwl_context_info_rbd_cfg *rx_cfg; in iwl_pcie_ctxt_info_init() local 214 rx_cfg = &ctxt_info->rbd_cfg; in iwl_pcie_ctxt_info_init() 215 rx_cfg->free_rbd_addr = cpu_to_le64(trans_pcie->rxq->bd_dma); in iwl_pcie_ctxt_info_init() 216 rx_cfg->used_rbd_addr = cpu_to_le64(trans_pcie->rxq->used_bd_dma); in iwl_pcie_ctxt_info_init() 217 rx_cfg->status_wr_ptr = cpu_to_le64(trans_pcie->rxq->rb_stts_dma); in iwl_pcie_ctxt_info_init()
|
/drivers/hsi/clients/ |
D | hsi_char.c | 355 tmp = cl->rx_cfg; 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() 361 cl->rx_cfg = tmp; in hsc_rx_set() 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() 425 if (channel->ch >= channel->cl->rx_cfg.num_hw_channels) in hsc_read()
|
D | nokia-modem.c | 177 ssip.rx_cfg = cl->rx_cfg; in nokia_modem_probe() 200 cmtspeech.rx_cfg = cl->rx_cfg; in nokia_modem_probe()
|
/drivers/net/ethernet/brocade/bna/ |
D | bna_tx_rx.c | 1625 cfg_req->rx_cfg.frame_size = bna_enet_mtu_get(&rx->bna->enet); in bna_bfi_rx_enet_start() 1651 cfg_req->rx_cfg.multi_buffer = in bna_bfi_rx_enet_start() 1690 cfg_req->rx_cfg.rxq_type = BFI_ENET_RXQ_LARGE_SMALL; in bna_bfi_rx_enet_start() 1694 cfg_req->rx_cfg.rxq_type = BFI_ENET_RXQ_HDS; in bna_bfi_rx_enet_start() 1695 cfg_req->rx_cfg.hds.type = rx->hds_cfg.hdr_type; in bna_bfi_rx_enet_start() 1696 cfg_req->rx_cfg.hds.force_offset = rx->hds_cfg.forced_offset; in bna_bfi_rx_enet_start() 1697 cfg_req->rx_cfg.hds.max_header_size = rx->hds_cfg.forced_offset; in bna_bfi_rx_enet_start() 1701 cfg_req->rx_cfg.rxq_type = BFI_ENET_RXQ_SINGLE; in bna_bfi_rx_enet_start() 1707 cfg_req->rx_cfg.strip_vlan = rx->rxf.vlan_strip_status; in bna_bfi_rx_enet_start() 1741 bna_rx_res_check(struct bna_rx_mod *rx_mod, struct bna_rx_config *rx_cfg) in bna_rx_res_check() argument [all …]
|
D | bna.h | 346 struct bna_rx_config *rx_cfg,
|
D | bfi_enet.h | 501 struct bfi_enet_rx_cfg rx_cfg; member
|
/drivers/net/ethernet/micrel/ |
D | ksz884x.c | 1207 u32 rx_cfg; member 3131 u32 rx_cfg; in set_flow_ctrl() local 3134 rx_cfg = hw->rx_cfg; in set_flow_ctrl() 3137 hw->rx_cfg |= DMA_RX_FLOW_ENABLE; in set_flow_ctrl() 3139 hw->rx_cfg &= ~DMA_RX_FLOW_ENABLE; in set_flow_ctrl() 3145 if (rx_cfg != hw->rx_cfg) in set_flow_ctrl() 3146 writel(hw->rx_cfg, hw->io + KS_DMA_RX_CTRL); in set_flow_ctrl() 3703 hw->rx_cfg = (DMA_RX_BROADCAST | DMA_RX_UNICAST | in hw_setup() 3705 hw->rx_cfg |= KS884X_DMA_RX_MULTICAST; in hw_setup() 3708 hw->rx_cfg |= (DMA_RX_CSUM_TCP | DMA_RX_CSUM_IP); in hw_setup() [all …]
|
/drivers/net/ethernet/neterion/ |
D | s2io.c | 698 struct rx_ring_config *rx_cfg = &config->rx_cfg[i]; in init_shared_mem() local 701 if (rx_cfg->num_rxd % (rxd_count[nic->rxd_mode] + 1)) { in init_shared_mem() 707 size += rx_cfg->num_rxd; in init_shared_mem() 708 ring->block_count = rx_cfg->num_rxd / in init_shared_mem() 710 ring->pkt_cnt = rx_cfg->num_rxd - ring->block_count; in init_shared_mem() 718 struct rx_ring_config *rx_cfg = &config->rx_cfg[i]; in init_shared_mem() local 723 ring->rx_curr_get_info.ring_len = rx_cfg->num_rxd - 1; in init_shared_mem() 726 ring->rx_curr_put_info.ring_len = rx_cfg->num_rxd - 1; in init_shared_mem() 730 blk_cnt = rx_cfg->num_rxd / (rxd_count[nic->rxd_mode] + 1); in init_shared_mem() 790 struct rx_ring_config *rx_cfg = &config->rx_cfg[i]; in init_shared_mem() local [all …]
|
D | s2io.h | 450 struct rx_ring_config rx_cfg[MAX_RX_RINGS]; /*Per-Rx Ring config */ member
|
/drivers/hsi/controllers/ |
D | omap_ssi_port.c | 490 writel_relaxed(cl->rx_cfg.num_hw_channels, ssr + SSI_SSR_CHANNELS_REG); in ssi_setup() 494 (cl->rx_cfg.mode != SSI_MODE_FRAME)) in ssi_setup() 496 writel_relaxed(cl->rx_cfg.mode, ssr + SSI_SSR_MODE_REG); in ssi_setup() 497 omap_port->channels = max(cl->rx_cfg.num_hw_channels, in ssi_setup() 509 omap_port->ssr.channels = cl->rx_cfg.num_hw_channels; in ssi_setup() 510 omap_port->ssr.mode = cl->rx_cfg.mode; in ssi_setup()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | t3_hw.c | 1133 static void t3_gate_rx_traffic(struct cmac *mac, u32 *rx_cfg, in t3_gate_rx_traffic() argument 1140 *rx_cfg = t3_read_reg(mac->adapter, A_XGM_RX_CFG); in t3_gate_rx_traffic() 1155 static void t3_open_rx_traffic(struct cmac *mac, u32 rx_cfg, in t3_open_rx_traffic() argument 1161 rx_cfg); in t3_open_rx_traffic() 1186 u32 rx_cfg, rx_hash_high, rx_hash_low; in t3_link_changed() local 1190 t3_gate_rx_traffic(mac, &rx_cfg, &rx_hash_high, &rx_hash_low); in t3_link_changed() 1199 t3_open_rx_traffic(mac, rx_cfg, rx_hash_high, rx_hash_low); in t3_link_changed() 1239 u32 rx_cfg, rx_hash_high, rx_hash_low; in t3_link_fault() local 1241 t3_gate_rx_traffic(mac, &rx_cfg, &rx_hash_high, &rx_hash_low); in t3_link_fault() 1249 t3_open_rx_traffic(mac, rx_cfg, rx_hash_high, rx_hash_low); in t3_link_fault()
|
/drivers/net/ethernet/ti/ |
D | am65-cpsw-nuss.c | 1653 struct k3_udma_glue_rx_channel_cfg rx_cfg = { 0 }; in am65_cpsw_nuss_init_rx_chns() local 1663 rx_cfg.swdata_size = AM65_CPSW_NAV_SW_DATA_SIZE; in am65_cpsw_nuss_init_rx_chns() 1664 rx_cfg.flow_id_num = AM65_CPSW_MAX_RX_FLOWS; in am65_cpsw_nuss_init_rx_chns() 1665 rx_cfg.flow_id_base = common->rx_flow_id_base; in am65_cpsw_nuss_init_rx_chns() 1671 rx_chn->rx_chn = k3_udma_glue_request_rx_chn(dev, "rx", &rx_cfg); in am65_cpsw_nuss_init_rx_chns() 1693 for (i = 0; i < rx_cfg.flow_id_num; i++) { in am65_cpsw_nuss_init_rx_chns() 1704 .rx_cfg = rxring_cfg, in am65_cpsw_nuss_init_rx_chns() 1712 rx_flow_cfg.rx_cfg.size = max_desc_num; in am65_cpsw_nuss_init_rx_chns()
|
/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_debugfs.c | 2077 u8 rx_cfg; in hclge_get_vlan_rx_offload_cfg() local 2095 rx_cfg = req->vport_vlan_cfg; in hclge_get_vlan_rx_offload_cfg() 2096 vlan_cfg->strip_tag1 = hnae3_get_bit(rx_cfg, HCLGE_REM_TAG1_EN_B); in hclge_get_vlan_rx_offload_cfg() 2097 vlan_cfg->strip_tag2 = hnae3_get_bit(rx_cfg, HCLGE_REM_TAG2_EN_B); in hclge_get_vlan_rx_offload_cfg() 2098 vlan_cfg->drop_tag1 = hnae3_get_bit(rx_cfg, HCLGE_DISCARD_TAG1_EN_B); in hclge_get_vlan_rx_offload_cfg() 2099 vlan_cfg->drop_tag2 = hnae3_get_bit(rx_cfg, HCLGE_DISCARD_TAG2_EN_B); in hclge_get_vlan_rx_offload_cfg() 2100 vlan_cfg->pri_only1 = hnae3_get_bit(rx_cfg, HCLGE_SHOW_TAG1_EN_B); in hclge_get_vlan_rx_offload_cfg() 2101 vlan_cfg->pri_only2 = hnae3_get_bit(rx_cfg, HCLGE_SHOW_TAG2_EN_B); in hclge_get_vlan_rx_offload_cfg()
|
/drivers/dma/ti/ |
D | k3-udma-glue.c | 702 flow_cfg->rx_cfg.dma_dev = k3_udma_glue_rx_get_dma_device(rx_chn); in k3_udma_glue_cfg_rx_flow() 703 flow_cfg->rxfdq_cfg.dma_dev = flow_cfg->rx_cfg.dma_dev; in k3_udma_glue_cfg_rx_flow() 707 flow_cfg->rx_cfg.asel = rx_chn->common.atype_asel; in k3_udma_glue_cfg_rx_flow() 711 ret = k3_ringacc_ring_cfg(flow->ringrx, &flow_cfg->rx_cfg); in k3_udma_glue_cfg_rx_flow()
|
/drivers/usb/gadget/udc/ |
D | bcm63xx_udc.c | 467 const struct iudma_ch_cfg *rx_cfg = &iudma_defaults[i]; in bcm63xx_fifo_setup() local 473 ((rx_fifo_slot + rx_cfg->n_fifo_slots - 1) << in bcm63xx_fifo_setup() 475 rx_fifo_slot += rx_cfg->n_fifo_slots; in bcm63xx_fifo_setup() 478 is_hs ? rx_cfg->max_pkt_hs : rx_cfg->max_pkt_fs, in bcm63xx_fifo_setup()
|
/drivers/soc/qcom/ |
D | qcom-geni-se.c | 440 bool msb_to_lsb, bool tx_cfg, bool rx_cfg) in geni_se_config_packing() argument 477 if (rx_cfg) { in geni_se_config_packing()
|
/drivers/net/ethernet/sun/ |
D | niu.c | 412 u32 tx_cfg, rx_cfg; in serdes_init_niu_10g_fiber() local 416 rx_cfg = (PLL_RX_CFG_ENRX | PLL_RX_CFG_TERM_0P8VDDT | in serdes_init_niu_10g_fiber() 427 rx_cfg |= PLL_RX_CFG_ENTEST; in serdes_init_niu_10g_fiber() 438 int err = esr2_set_rx_cfg(np, i, rx_cfg); in serdes_init_niu_10g_fiber() 452 u32 tx_cfg, rx_cfg; in serdes_init_niu_1g_serdes() local 458 rx_cfg = (PLL_RX_CFG_ENRX | PLL_RX_CFG_TERM_0P8VDDT | in serdes_init_niu_1g_serdes() 463 rx_cfg |= PLL_RX_CFG_EQ_LP_ADAPTIVE; in serdes_init_niu_1g_serdes() 472 rx_cfg |= PLL_RX_CFG_ENTEST; in serdes_init_niu_1g_serdes() 506 err = esr2_set_rx_cfg(np, i, rx_cfg); in serdes_init_niu_1g_serdes() 546 u32 tx_cfg, rx_cfg, pll_cfg, pll_sts; in serdes_init_niu_10g_serdes() local [all …]
|