| /Linux-v6.6/drivers/net/ethernet/amd/pds_core/ |
| D | core.c | 106 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() 128 index = pdsc_intr_alloc(pdsc, name, pdsc_adminq_isr, qcq); in pdsc_qcq_intr_alloc() [all …]
|
| D | debugfs.c | 103 void pdsc_debugfs_add_qcq(struct pdsc *pdsc, struct pdsc_qcq *qcq) in pdsc_debugfs_add_qcq() argument 108 struct pdsc_intr_info *intr = &pdsc->intr_info[qcq->intx]; in pdsc_debugfs_add_qcq() 109 struct pdsc_queue *q = &qcq->q; in pdsc_debugfs_add_qcq() 110 struct pdsc_cq *cq = &qcq->cq; in pdsc_debugfs_add_qcq() 115 qcq->dentry = qcq_dentry; in pdsc_debugfs_add_qcq() 117 debugfs_create_x64("q_base_pa", 0400, qcq_dentry, &qcq->q_base_pa); in pdsc_debugfs_add_qcq() 118 debugfs_create_x32("q_size", 0400, qcq_dentry, &qcq->q_size); in pdsc_debugfs_add_qcq() 119 debugfs_create_x64("cq_base_pa", 0400, qcq_dentry, &qcq->cq_base_pa); in pdsc_debugfs_add_qcq() 120 debugfs_create_x32("cq_size", 0400, qcq_dentry, &qcq->cq_size); in pdsc_debugfs_add_qcq() 121 debugfs_create_x32("accum_work", 0400, qcq_dentry, &qcq->accum_work); in pdsc_debugfs_add_qcq() [all …]
|
| D | adminq.c | 9 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() 66 void pdsc_process_adminq(struct pdsc_qcq *qcq) in pdsc_process_adminq() argument 69 struct pdsc_queue *q = &qcq->q; in pdsc_process_adminq() 70 struct pdsc *pdsc = qcq->pdsc; in pdsc_process_adminq() 71 struct pdsc_cq *cq = &qcq->cq; in pdsc_process_adminq() 118 qcq->accum_work += aq_work; in pdsc_process_adminq() [all …]
|
| D | core.h | 271 void pdsc_debugfs_add_qcq(struct pdsc *pdsc, struct pdsc_qcq *qcq); 272 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);
|
| /Linux-v6.6/drivers/net/ethernet/pensando/ionic/ |
| D | ionic_debugfs.c | 113 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 …]
|
| D | ionic_lif.c | 53 struct ionic_qcq *qcq; in ionic_dim_work() local 57 qcq = container_of(dim, struct ionic_qcq, dim); in ionic_dim_work() 58 new_coal = ionic_coal_usec_to_hw(qcq->q.lif->ionic, cur_moder.usec); in ionic_dim_work() 61 if (qcq->intr.dim_coal_hw != new_coal) { in ionic_dim_work() 62 unsigned int qi = qcq->cq.bound_q->index; in ionic_dim_work() 63 struct ionic_lif *lif = qcq->q.lif; in ionic_dim_work() 65 qcq->intr.dim_coal_hw = new_coal; in ionic_dim_work() 69 qcq->intr.dim_coal_hw); 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() [all …]
|
| D | ionic_debugfs.h | 18 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
|
| D | ionic_txrx.c | 283 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 …]
|
| D | ionic_dev.c | 573 void ionic_dev_cmd_adminq_init(struct ionic_dev *idev, struct ionic_qcq *qcq, in ionic_dev_cmd_adminq_init() argument 576 struct ionic_queue *q = &qcq->q; in ionic_dev_cmd_adminq_init() 577 struct ionic_cq *cq = &qcq->cq; in ionic_dev_cmd_adminq_init() 583 .q_init.ver = qcq->q.lif->qtype_info[q->type].version, in ionic_dev_cmd_adminq_init()
|
| D | ionic_dev.h | 352 void ionic_dev_cmd_adminq_init(struct ionic_dev *idev, struct ionic_qcq *qcq,
|