Home
last modified time | relevance | path

Searched refs:ring_len (Results 1 – 10 of 10) sorted by relevance

/drivers/usb/host/
Dfhci-tds.c149 u32 ring_len) in fhci_create_ep() argument
159 if (!(ring_len > 2)) { in fhci_create_ep()
168 ep_mem_size = ring_len * sizeof(*td) + sizeof(struct fhci_ep_pram); in fhci_create_ep()
175 if (cq_new(&ep->conf_frame_Q, ring_len + 2) || in fhci_create_ep()
176 cq_new(&ep->empty_frame_Q, ring_len + 2) || in fhci_create_ep()
177 cq_new(&ep->dummy_packets_Q, ring_len + 2)) { in fhci_create_ep()
182 for (i = 0; i < (ring_len + 1); i++) { in fhci_create_ep()
203 ep->ep_pram_ptr = (void __iomem *)ep->td_base + sizeof(*td) * ring_len; in fhci_create_ep()
212 for (i = 0; i < ring_len; i++) { in fhci_create_ep()
Dfhci-hcd.c65 u32 ring_len) in endpoint_zero_init() argument
69 rc = fhci_create_ep(usb, data_mem, ring_len); in endpoint_zero_init()
Dfhci.h545 u32 ring_len);
/drivers/net/ethernet/intel/ice/
Dice_virtchnl_pf.c2085 static bool ice_vc_isvalid_ring_len(u16 ring_len) in ice_vc_isvalid_ring_len() argument
2087 return ring_len == 0 || in ice_vc_isvalid_ring_len()
2088 (ring_len >= ICE_MIN_NUM_DESC && in ice_vc_isvalid_ring_len()
2089 ring_len <= ICE_MAX_NUM_DESC && in ice_vc_isvalid_ring_len()
2090 !(ring_len % ICE_REQ_DESC_MULTIPLE)); in ice_vc_isvalid_ring_len()
2970 !ice_vc_isvalid_ring_len(qpi->txq.ring_len) || in ice_vc_cfg_qs_msg()
2971 !ice_vc_isvalid_ring_len(qpi->rxq.ring_len) || in ice_vc_cfg_qs_msg()
2977 if (qpi->txq.ring_len > 0) { in ice_vc_cfg_qs_msg()
2980 vsi->tx_rings[i]->count = qpi->txq.ring_len; in ice_vc_cfg_qs_msg()
2984 if (qpi->rxq.ring_len > 0) { in ice_vc_cfg_qs_msg()
[all …]
/drivers/net/ethernet/cavium/thunder/
Dnicvf_queues.c253 int ring_len, int buf_size) in nicvf_init_rbdr() argument
260 err = nicvf_alloc_q_desc_mem(nic, &rbdr->dmem, ring_len, in nicvf_init_rbdr()
284 rbdr->pgcnt = ring_len / (PAGE_SIZE / buf_size); in nicvf_init_rbdr()
287 rbdr->pgcnt = ring_len; in nicvf_init_rbdr()
299 for (idx = 0; idx < ring_len; idx++) { in nicvf_init_rbdr()
/drivers/net/ethernet/neterion/
Ds2io.h636 u32 ring_len; member
642 u32 ring_len; member
Ds2io.c723 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()
/drivers/net/ethernet/intel/iavf/
Diavf_virtchnl.c278 vqpi->txq.ring_len = adapter->tx_rings[i].count; in iavf_configure_queues()
282 vqpi->rxq.ring_len = adapter->rx_rings[i].count; in iavf_configure_queues()
/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.c603 tx_ctx.qlen = info->ring_len; in i40e_config_vsi_tx_queue()
668 rx_ctx.qlen = info->ring_len; in i40e_config_vsi_rx_queue()
/drivers/net/ethernet/sun/
Dniu.c4656 u64 val, ring_len; in niu_init_one_tx_channel() local
4685 ring_len = (rp->pending / 8); in niu_init_one_tx_channel()
4687 val = ((ring_len << TX_RNG_CFIG_LEN_SHIFT) | in niu_init_one_tx_channel()