Home
last modified time | relevance | path

Searched refs:dql (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/lib/
Ddynamic_queue_limits.c18 void dql_completed(struct dql *dql, unsigned int count) in dql_completed() argument
24 num_queued = READ_ONCE(dql->num_queued); in dql_completed()
27 BUG_ON(count > num_queued - dql->num_completed); in dql_completed()
29 completed = dql->num_completed + count; in dql_completed()
30 limit = dql->limit; in dql_completed()
31 ovlimit = POSDIFF(num_queued - dql->num_completed, limit); in dql_completed()
33 prev_inprogress = dql->prev_num_queued - dql->num_completed; in dql_completed()
34 all_prev_completed = AFTER_EQ(completed, dql->prev_num_queued); in dql_completed()
37 (dql->prev_ovlimit && all_prev_completed)) { in dql_completed()
53 limit += POSDIFF(completed, dql->prev_num_queued) + in dql_completed()
[all …]
/linux-6.6.21/include/linux/
Ddynamic_queue_limits.h43 struct dql { struct
75 static inline void dql_queued(struct dql *dql, unsigned int count) in dql_queued() argument
79 dql->last_obj_cnt = count; in dql_queued()
88 dql->num_queued += count; in dql_queued()
92 static inline int dql_avail(const struct dql *dql) in dql_avail() argument
94 return READ_ONCE(dql->adj_limit) - READ_ONCE(dql->num_queued); in dql_avail()
98 void dql_completed(struct dql *dql, unsigned int count);
101 void dql_reset(struct dql *dql);
104 void dql_init(struct dql *dql, unsigned int hold_time);
Dnetdevice.h659 struct dql dql; member
3431 dev_queue->dql.min_limit = min_limit; in netdev_queue_set_dql_min_limit()
3445 prefetchw(&dev_queue->dql.num_queued); in netdev_txq_bql_enqueue_prefetchw()
3459 prefetchw(&dev_queue->dql.limit); in netdev_txq_bql_complete_prefetchw()
3477 dql_queued(&dev_queue->dql, bytes); in netdev_tx_sent_queue()
3479 if (likely(dql_avail(&dev_queue->dql) >= 0)) in netdev_tx_sent_queue()
3492 if (unlikely(dql_avail(&dev_queue->dql) >= 0)) in netdev_tx_sent_queue()
3509 dql_queued(&dev_queue->dql, bytes); in __netdev_tx_sent_queue()
3556 dql_completed(&dev_queue->dql, bytes); in netdev_tx_completed_queue()
3565 if (unlikely(dql_avail(&dev_queue->dql) < 0)) in netdev_tx_completed_queue()
[all …]
/linux-6.6.21/net/core/
Dnet-sysfs.c1376 struct dql *dql = &queue->dql; in bql_show_hold_time() local
1378 return sysfs_emit(buf, "%u\n", jiffies_to_msecs(dql->slack_hold_time)); in bql_show_hold_time()
1384 struct dql *dql = &queue->dql; in bql_set_hold_time() local
1392 dql->slack_hold_time = msecs_to_jiffies(value); in bql_set_hold_time()
1404 struct dql *dql = &queue->dql; in bql_show_inflight() local
1406 return sysfs_emit(buf, "%u\n", dql->num_queued - dql->num_completed); in bql_show_inflight()
1416 return bql_show(buf, queue->dql.FIELD); \
1422 return bql_set(buf, len, &queue->dql.FIELD); \
Ddev.c10014 dql_init(&queue->dql, HZ); in netdev_init_one_queue()
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c2784 struct dql *dql = &q->dql; in hns3_get_timeout_queue() local
2787 dql->last_obj_cnt, dql->num_queued, in hns3_get_timeout_queue()
2788 dql->adj_limit, dql->num_completed); in hns3_get_timeout_queue()
/linux-6.6.21/include/net/
Dsch_generic.h242 return dql_avail(&txq->dql); in qdisc_avail_bulklimit()
/linux-6.6.21/drivers/net/ethernet/ti/
Dam65-cpsw-nuss.c295 dql_avail(&netif_txq->dql), in am65_cpsw_nuss_ndo_host_tx_timeout()