Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/amd/pds_core/
H A Dcore.c106 static void pdsc_qcq_intr_free(struct pdsc *pdsc, struct pdsc_qcq *qcq) in pdsc_qcq_intr_free() argument
108 if (!(qcq->flags & PDS_CORE_QCQ_F_INTR) || in pdsc_qcq_intr_free()
109 qcq->intx == PDS_CORE_INTR_INDEX_NOT_ASSIGNED) in pdsc_qcq_intr_free()
112 pdsc_intr_free(pdsc, qcq->intx); in pdsc_qcq_intr_free()
113 qcq->intx = PDS_CORE_INTR_INDEX_NOT_ASSIGNED; in pdsc_qcq_intr_free()
116 static int pdsc_qcq_intr_alloc(struct pdsc *pdsc, struct pdsc_qcq *qcq) in pdsc_qcq_intr_alloc() argument
121 if (!(qcq->flags & PDS_CORE_QCQ_F_INTR)) { in pdsc_qcq_intr_alloc()
122 qcq->intx = PDS_CORE_INTR_INDEX_NOT_ASSIGNED; in pdsc_qcq_intr_alloc()
127 PDS_CORE_DRV_NAME, pdsc->pdev->bus->number, qcq->q.name); in pdsc_qcq_intr_alloc()
131 qcq->intx = index; in pdsc_qcq_intr_alloc()
[all …]
H A Ddebugfs.c107 void pdsc_debugfs_add_qcq(struct pdsc *pdsc, struct pdsc_qcq *qcq) in pdsc_debugfs_add_qcq() argument
112 struct pdsc_intr_info *intr = &pdsc->intr_info[qcq->intx]; in pdsc_debugfs_add_qcq()
113 struct pdsc_queue *q = &qcq->q; in pdsc_debugfs_add_qcq()
114 struct pdsc_cq *cq = &qcq->cq; in pdsc_debugfs_add_qcq()
119 qcq->dentry = qcq_dentry; in pdsc_debugfs_add_qcq()
121 debugfs_create_x64("q_base_pa", 0400, qcq_dentry, &qcq->q_base_pa); in pdsc_debugfs_add_qcq()
122 debugfs_create_x32("q_size", 0400, qcq_dentry, &qcq->q_size); in pdsc_debugfs_add_qcq()
123 debugfs_create_x64("cq_base_pa", 0400, qcq_dentry, &qcq->cq_base_pa); in pdsc_debugfs_add_qcq()
124 debugfs_create_x32("cq_size", 0400, qcq_dentry, &qcq->cq_size); in pdsc_debugfs_add_qcq()
125 debugfs_create_x32("accum_work", 0400, qcq_dentry, &qcq->accum_work); in pdsc_debugfs_add_qcq()
[all …]
H A Dadminq.c9 struct pdsc_qcq *qcq; member
13 static int pdsc_process_notifyq(struct pdsc_qcq *qcq) in pdsc_process_notifyq() argument
16 struct pdsc *pdsc = qcq->pdsc; in pdsc_process_notifyq()
17 struct pdsc_cq *cq = &qcq->cq; in pdsc_process_notifyq()
61 qcq->accum_work += nq_work; in pdsc_process_notifyq()
75 void pdsc_process_adminq(struct pdsc_qcq *qcq) in pdsc_process_adminq() argument
78 struct pdsc_queue *q = &qcq->q; in pdsc_process_adminq()
79 struct pdsc *pdsc = qcq->pdsc; in pdsc_process_adminq()
80 struct pdsc_cq *cq = &qcq->cq; in pdsc_process_adminq()
127 qcq->accum_work += aq_work; in pdsc_process_adminq()
[all …]
H A Dcore.h272 void pdsc_debugfs_add_qcq(struct pdsc *pdsc, struct pdsc_qcq *qcq);
273 void pdsc_debugfs_del_qcq(struct pdsc_qcq *qcq);
289 void pdsc_qcq_free(struct pdsc *pdsc, struct pdsc_qcq *qcq);
293 unsigned int pid, struct pdsc_qcq *qcq);
306 void pdsc_process_adminq(struct pdsc_qcq *qcq);
/openbmc/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_debugfs.c113 void ionic_debugfs_add_qcq(struct ionic_lif *lif, struct ionic_qcq *qcq) in ionic_debugfs_add_qcq() argument
119 struct ionic_intr_info *intr = &qcq->intr; in ionic_debugfs_add_qcq()
122 struct ionic_queue *q = &qcq->q; in ionic_debugfs_add_qcq()
123 struct ionic_cq *cq = &qcq->cq; in ionic_debugfs_add_qcq()
128 qcq->dentry = qcq_dentry; in ionic_debugfs_add_qcq()
130 debugfs_create_x64("q_base_pa", 0400, qcq_dentry, &qcq->q_base_pa); in ionic_debugfs_add_qcq()
131 debugfs_create_x32("q_size", 0400, qcq_dentry, &qcq->q_size); in ionic_debugfs_add_qcq()
132 debugfs_create_x64("cq_base_pa", 0400, qcq_dentry, &qcq->cq_base_pa); in ionic_debugfs_add_qcq()
133 debugfs_create_x32("cq_size", 0400, qcq_dentry, &qcq->cq_size); in ionic_debugfs_add_qcq()
134 debugfs_create_x64("sg_base_pa", 0400, qcq_dentry, &qcq->sg_base_pa); in ionic_debugfs_add_qcq()
[all …]
H A Dionic_lif.c54 struct ionic_qcq *qcq; in ionic_dim_work() local
59 qcq = container_of(dim, struct ionic_qcq, dim); in ionic_dim_work()
60 lif = qcq->q.lif; in ionic_dim_work()
64 intr = &qcq->intr; in ionic_dim_work()
210 struct ionic_qcq *qcq = container_of(timer, struct ionic_qcq, napi_deadline); in ionic_napi_deadline() local
212 napi_schedule(&qcq->napi); in ionic_napi_deadline()
224 static int ionic_request_irq(struct ionic_lif *lif, struct ionic_qcq *qcq) in ionic_request_irq() argument
226 struct ionic_intr_info *intr = &qcq->intr; in ionic_request_irq()
228 struct ionic_queue *q = &qcq->q; in ionic_request_irq()
240 0, intr->name, &qcq->napi); in ionic_request_irq()
[all …]
H A Dionic_debugfs.h18 void ionic_debugfs_add_qcq(struct ionic_lif *lif, struct ionic_qcq *qcq);
20 void ionic_debugfs_del_qcq(struct ionic_qcq *qcq);
29 static inline void ionic_debugfs_add_qcq(struct ionic_lif *lif, struct ionic_qcq *qcq) { } in ionic_debugfs_add_qcq() argument
31 static inline void ionic_debugfs_del_qcq(struct ionic_qcq *qcq) { } in ionic_debugfs_del_qcq() argument
H A Dionic_txrx.c283 struct ionic_qcq *qcq = q_to_qcq(q); in ionic_rx_clean() local
288 comp = cq_info->cq_desc + qcq->cq.desc_size - sizeof(*comp); in ionic_rx_clean()
356 qcq->cq.desc_size - in ionic_rx_clean()
371 napi_gro_receive(&qcq->napi, skb); in ionic_rx_clean()
373 napi_gro_frags(&qcq->napi); in ionic_rx_clean()
533 static void ionic_dim_update(struct ionic_qcq *qcq, int napi_mode) in ionic_dim_update() argument
540 if (!qcq->intr.dim_coal_hw) in ionic_dim_update()
543 lif = qcq->q.lif; in ionic_dim_update()
544 qi = qcq->cq.bound_q->index; in ionic_dim_update()
561 dim_update_sample(qcq->cq.bound_intr->rearm_count, in ionic_dim_update()
[all …]
H A Dionic_dev.c597 void ionic_dev_cmd_adminq_init(struct ionic_dev *idev, struct ionic_qcq *qcq, in ionic_dev_cmd_adminq_init() argument
600 struct ionic_queue *q = &qcq->q; in ionic_dev_cmd_adminq_init()
601 struct ionic_cq *cq = &qcq->cq; in ionic_dev_cmd_adminq_init()
607 .q_init.ver = qcq->q.lif->qtype_info[q->type].version, in ionic_dev_cmd_adminq_init()
H A Dionic_dev.h353 void ionic_dev_cmd_adminq_init(struct ionic_dev *idev, struct ionic_qcq *qcq,