/openbmc/linux/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_msgq.c | 330 rspq->producer_index = 0; in rspq_sm_stopped_entry() 332 rspq->flags = 0; in rspq_sm_stopped_entry() 451 if (!bfa_nw_ioc_mbox_queue(rspq->msgq->ioc, &rspq->dbell_mb, in bfa_msgq_rspq_dbell() 468 while (rspq->consumer_index != rspq->producer_index) { in bfa_msgq_rspq_pi_update() 479 (rspq->rsphdlr[mc].cbfn)(rspq->rsphdlr[mc].cbarg, msghdr); in bfa_msgq_rspq_pi_update() 482 rspq->depth); in bfa_msgq_rspq_pi_update() 492 rspq->msgq = msgq; in bfa_msgq_rspq_attach() 517 bfa_dma_be_addr_set(msgq_cfg->rspq.addr, msgq->rspq.addr.pa); in bfa_msgq_init() 518 msgq_cfg->rspq.q_depth = htons(msgq->rspq.depth); in bfa_msgq_init() 597 msgq->rspq.addr.pa = pa; in bfa_msgq_memclaim() [all …]
|
H A D | bfa_msgq.h | 109 struct bfa_msgq_rspq rspq; member
|
H A D | bfa_cs.h | 46 BFA_SM_TABLE(rspq, bfa_msgq_rspq, rspq_event, bfa_fsm_msgq_rspq_t)
|
H A D | bfi.h | 421 struct bfi_msgq rspq; member
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | sge.c | 1733 rspq->cur_desc = (void *)rspq->cur_desc + rspq->iqe_len; in rspq_next() 1734 if (unlikely(++rspq->cidx == rspq->size)) { in rspq_next() 1737 rspq->cur_desc = rspq->desc; in rspq_next() 1835 ret = rspq->handler(rspq, rspq->cur_desc, &gl); in process_responses() 1841 ret = rspq->handler(rspq, rspq->cur_desc, NULL); in process_responses() 2232 rspq->size = roundup(rspq->size, 16); in t4vf_sge_alloc_rxq() 2233 rspq->desc = alloc_ring(adapter->pdev_dev, rspq->size, rspq->iqe_len, in t4vf_sge_alloc_rxq() 2340 rspq->cur_desc = rspq->desc; in t4vf_sge_alloc_rxq() 2343 rspq->next_intr_params = rspq->intr_params; in t4vf_sge_alloc_rxq() 2388 rspq->desc, rspq->phys_addr); in t4vf_sge_alloc_rxq() [all …]
|
H A D | cxgb4vf_main.c | 427 &s->ethrxq[rxq].rspq); in free_msix_queue_irqs() 435 napi_enable(&rspq->napi); in qenable() 649 rxq->rspq.idx = qs; in setup_sge_queues() 658 s->ingr_base = s->ethrxq[0].rspq.abs_id - s->ethrxq[0].rspq.cntxt_id; in setup_sge_queues() 668 IQ_MAP(s, rxq->rspq.abs_id) = &rxq->rspq; in setup_sge_queues() 737 rxq[0].rspq.abs_id; in setup_rss() 1098 if (rspq->desc && rspq->pktcnt_idx != pktcnt_idx) { in set_rxq_intr_params() 1660 const struct sge_rspq *rspq = &adapter->sge.ethrxq[pi->first_qset].rspq; in cxgb4vf_get_coalesce() local 2068 (rxq[qs].rspq.netdev in sge_qinfo_show() 2208 (rxq[qs].rspq.netdev in sge_qstats_show() [all …]
|
H A D | adapter.h | 213 struct sge_rspq rspq; /* Response Queue */ member
|
H A D | t4vf_hw.c | 1248 int start, int n, const u16 *rspq, int nrspq) in t4vf_config_rss_range() argument 1250 const u16 *rsp = rspq; in t4vf_config_rss_range() 1251 const u16 *rsp_end = rspq+nrspq; in t4vf_config_rss_range() 1310 rsp = rspq; in t4vf_config_rss_range()
|
/openbmc/linux/drivers/scsi/bfa/ |
H A D | bfa_hw_cb.c | 46 bfa_hwcb_rspq_ack_msix(struct bfa_s *bfa, int rspq, u32 ci) in bfa_hwcb_rspq_ack_msix() argument 48 writel(__HFN_INT_RME_Q0 << RME_Q_NUM(bfa_ioc_pcifn(&bfa->ioc), rspq), in bfa_hwcb_rspq_ack_msix() 51 if (bfa_rspq_ci(bfa, rspq) == ci) in bfa_hwcb_rspq_ack_msix() 54 bfa_rspq_ci(bfa, rspq) = ci; in bfa_hwcb_rspq_ack_msix() 55 writel(ci, bfa->iocfc.bfa_regs.rme_q_ci[rspq]); in bfa_hwcb_rspq_ack_msix() 59 bfa_hwcb_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci) in bfa_hwcb_rspq_ack() argument 61 if (bfa_rspq_ci(bfa, rspq) == ci) in bfa_hwcb_rspq_ack() 64 bfa_rspq_ci(bfa, rspq) = ci; in bfa_hwcb_rspq_ack() 65 writel(ci, bfa->iocfc.bfa_regs.rme_q_ci[rspq]); in bfa_hwcb_rspq_ack()
|
H A D | bfa_hw_ct.c | 67 bfa_hwct_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci) in bfa_hwct_rspq_ack() argument 71 r32 = readl(bfa->iocfc.bfa_regs.rme_q_ctrl[rspq]); in bfa_hwct_rspq_ack() 72 writel(r32, bfa->iocfc.bfa_regs.rme_q_ctrl[rspq]); in bfa_hwct_rspq_ack() 74 bfa_rspq_ci(bfa, rspq) = ci; in bfa_hwct_rspq_ack() 75 writel(ci, bfa->iocfc.bfa_regs.rme_q_ci[rspq]); in bfa_hwct_rspq_ack() 84 bfa_hwct2_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci) in bfa_hwct2_rspq_ack() argument 86 bfa_rspq_ci(bfa, rspq) = ci; in bfa_hwct2_rspq_ack() 87 writel(ci, bfa->iocfc.bfa_regs.rme_q_ci[rspq]); in bfa_hwct2_rspq_ack()
|
H A D | bfa.h | 178 void (*hw_rspq_ack)(struct bfa_s *bfa, int rspq, u32 ci); 312 void bfa_hwcb_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci); 324 void bfa_hwct_reqq_ack(struct bfa_s *bfa, int rspq); 325 void bfa_hwct_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci); 326 void bfa_hwct2_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci);
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_debugfs.c | 2693 rx[i].rspq.netdev ? rx[i].rspq.netdev->name : "N/A"); in sge_qinfo_show() 2712 R("RspQ Gen:", rspq.gen); in sge_qinfo_show() 2766 rx[i].rspq.netdev ? rx[i].rspq.netdev->name : "N/A"); in sge_qinfo_show() 2771 R("RspQ Gen:", rspq.gen); in sge_qinfo_show() 2816 rx[i].rspq.netdev ? rx[i].rspq.netdev->name : "N/A"); in sge_qinfo_show() 2826 R("RspQ Gen:", rspq.gen); in sge_qinfo_show() 2944 rx[i].rspq.netdev ? rx[i].rspq.netdev->name : "N/A"); in sge_qinfo_show() 2949 R("RspQ Gen:", rspq.gen); in sge_qinfo_show() 2974 rx[i].rspq.netdev ? rx[i].rspq.netdev->name : "N/A"); in sge_qinfo_show() 2979 R("RspQ Gen:", rspq.gen); in sge_qinfo_show() [all …]
|
H A D | cxgb4_uld.c | 146 err = t4_sge_alloc_rxq(adap, &q->rspq, false, in alloc_uld_rxqs() 158 ids[i] = q->rspq.abs_id; in alloc_uld_rxqs() 164 if (q->rspq.desc) in alloc_uld_rxqs() 165 free_rspq_fl(adap, &q->rspq, in alloc_uld_rxqs() 191 cmplqid = rxq_info->uldrxq[i].rspq.cntxt_id; in setup_sge_queues_uld() 206 if (q->rspq.desc) in t4_free_uld_rxqs() 207 free_rspq_fl(adap, &q->rspq, in t4_free_uld_rxqs() 290 r->rspq.uld = uld_type; in cfg_queues_uld() 303 init_rspq(adap, &r->rspq, 5, 1, ciq_size, 64); in cfg_queues_uld() 304 r->rspq.uld = uld_type; in cfg_queues_uld() [all …]
|
H A D | cxgb4_tc_mqprio.c | 200 init_rspq(adap, &eorxq->rspq, in cxgb4_mqprio_alloc_hw_resources() 218 eorxq->rspq.cntxt_id); in cxgb4_mqprio_alloc_hw_resources() 225 eorxq->msix->desc, &eorxq->rspq); in cxgb4_mqprio_alloc_hw_resources() 234 cxgb4_enable_rx(adap, &eorxq->rspq); in cxgb4_mqprio_alloc_hw_resources() 244 cxgb4_quiesce_rx(&eorxq->rspq); in cxgb4_mqprio_alloc_hw_resources() 249 free_irq(eorxq->msix->vec, &eorxq->rspq); in cxgb4_mqprio_alloc_hw_resources() 258 if (eorxq->rspq.desc) in cxgb4_mqprio_alloc_hw_resources() 259 free_rspq_fl(adap, &eorxq->rspq, &eorxq->fl); in cxgb4_mqprio_alloc_hw_resources() 297 cxgb4_quiesce_rx(&eorxq->rspq); in cxgb4_mqprio_free_hw_resources() 302 free_irq(eorxq->msix->vec, &eorxq->rspq); in cxgb4_mqprio_free_hw_resources() [all …]
|
H A D | sge.c | 3452 skb = napi_get_frags(&rxq->rspq.napi); in do_gro() 3466 skb_record_rx_queue(skb, rxq->rspq.idx); in do_gro() 3479 ret = napi_gro_frags(&rxq->rspq.napi); in do_gro() 3596 struct adapter *adapter = rspq->adap; in t4_tx_completion_handler() 4264 if (napi_reschedule(&rxq->rspq.napi)) in sge_rx_timer_cb() 4902 if (q->rspq.desc) in t4_free_ofld_rxqs() 4903 free_rspq_fl(adap, &q->rspq, in t4_free_ofld_rxqs() 4933 if (eq->rspq.desc) in t4_free_sge_resources() 4936 eq->rspq.cntxt_id, in t4_free_sge_resources() 4944 if (eq->rspq.desc) in t4_free_sge_resources() [all …]
|
H A D | cxgb4_main.c | 738 &s->ethrxq[ethqidx].rspq); in request_msix_queue_irqs() 767 free_irq(minfo->vec, &s->ethrxq[i].rspq); in free_msix_queue_irqs() 873 rss[i] = rxq[*queues].rspq.abs_id; in cxgb4_write_rss() 1086 q->rspq.idx = j; in setup_sge_queues() 1094 q->rspq.cntxt_id, in setup_sge_queues() 1106 cmplqid = rxq_info->uldrxq[i].rspq.cntxt_id; in setup_sge_queues() 1305 cxgb4_quiesce_rx(&mirror_rxq->rspq); in cxgb4_port_mirror_free_rxq() 1359 init_rspq(adap, &mirror_rxq->rspq, in cxgb4_port_mirror_alloc_queues() 1378 &mirror_rxq->rspq); in cxgb4_port_mirror_alloc_queues() 1387 cxgb4_enable_rx(adap, &mirror_rxq->rspq); in cxgb4_port_mirror_alloc_queues() [all …]
|
H A D | cxgb4_ethtool.c | 906 e->rx_mini_pending = s->ethrxq[pi->first_qset].rspq.size; in get_sge_param() 933 s->ethrxq[pi->first_qset + i].rspq.size = e->rx_mini_pending; in set_sge_param() 955 err = cxgb4_set_rspq_intr_params(&q->rspq, us, cnt); in set_rx_intr_params() 970 q->rspq.adaptive_rx = adaptive_rx; in set_adaptive_rx_setting() 981 return q->rspq.adaptive_rx; in get_adaptive_rx_setting() 1178 const struct sge_rspq *rq = &adap->sge.ethrxq[pi->first_qset].rspq; in get_coalesce()
|
H A D | cxgb4_ptp.c | 187 c.u.init.absid = cpu_to_be16(receive_q->rspq.abs_id); in cxgb4_ptp_redirect_rx_packet()
|
H A D | cxgb4.h | 812 struct sge_rspq rspq; member 826 struct sge_rspq rspq; member 1896 int start, int n, const u16 *rspq, unsigned int nrspq);
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | sge.c | 652 memset(&q->rspq, 0, sizeof(q->rspq)); in t3_reset_qset() 707 if (q->rspq.desc) { in t3_free_qset() 713 q->rspq.desc, q->rspq.phys_addr); in t3_free_qset() 728 qs->rspq.cntxt_id = id; in init_qset_cntxt() 2969 &qs->rspq.lock : &adap->sge.qs[0].rspq.lock; in sge_timer_rx() 2981 qs->rspq.starved++; in sge_timer_rx() 2983 qs->rspq.credits--; in sge_timer_rx() 3063 if (!q->rspq.desc) in t3_sge_alloc_qset() 3093 q->rspq.gen = 1; in t3_sge_alloc_qset() 3125 q->rspq.phys_addr, q->rspq.size, in t3_sge_alloc_qset() [all …]
|
H A D | adapter.h | 202 struct sge_rspq rspq; member
|
H A D | common.h | 697 const u8 * cpus, const u16 *rspq); 746 unsigned int size, int rspq, int ovfl_mode,
|
H A D | cxgb3_main.c | 411 rspq.polling), 0, in request_msix_data_irqs() 447 while (adap->sge.qs[0].rspq.offload_pkts < init_cnt + n) { in await_mgmt_replies() 460 unsigned long cnt = adap->sge.qs[0].rspq.offload_pkts; in init_tp_parity() 1171 struct sge_rspq *q = &adap->sge.qs[i].rspq; in t3_synchronize_rx() 1277 t3_intr_handler(adap, adap->sge.qs[0].rspq.polling), in cxgb_up() 2629 t3_intr_handler(adapter, qs->rspq.polling) (0, source); in cxgb_netpoll()
|
H A D | t3_hw.c | 2299 unsigned int size, int rspq, int ovfl_mode, in t3_sge_init_cqcntxt() argument 2312 V_CQ_BASE_HI((u32) base_addr) | V_CQ_RSPQ(rspq) | in t3_sge_init_cqcntxt() 2471 const u8 * cpus, const u16 *rspq) in t3_config_rss() argument 2487 if (rspq) in t3_config_rss() 2490 (i << 16) | rspq[q_idx++]); in t3_config_rss() 2491 if (rspq[q_idx] == 0xffff) in t3_config_rss()
|
H A D | t3_cpl.h | 1441 __u8 rspq:3; member 1445 __u8 rspq:3; member
|