Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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.h622 struct dql dql; member
3422 prefetchw(&dev_queue->dql.num_queued); in netdev_txq_bql_enqueue_prefetchw()
3436 prefetchw(&dev_queue->dql.limit); in netdev_txq_bql_complete_prefetchw()
3444 dql_queued(&dev_queue->dql, bytes); in netdev_tx_sent_queue()
3446 if (likely(dql_avail(&dev_queue->dql) >= 0)) in netdev_tx_sent_queue()
3459 if (unlikely(dql_avail(&dev_queue->dql) >= 0)) in netdev_tx_sent_queue()
3476 dql_queued(&dev_queue->dql, bytes); in __netdev_tx_sent_queue()
3513 dql_completed(&dev_queue->dql, bytes); in netdev_tx_completed_queue()
3522 if (unlikely(dql_avail(&dev_queue->dql) < 0)) in netdev_tx_completed_queue()
3550 dql_reset(&q->dql); in netdev_tx_reset_queue()
/kernel/linux/linux-5.10/net/core/
Dnet-sysfs.c1299 struct dql *dql = &queue->dql; in bql_show_hold_time() local
1301 return sprintf(buf, "%u\n", jiffies_to_msecs(dql->slack_hold_time)); in bql_show_hold_time()
1307 struct dql *dql = &queue->dql; in bql_set_hold_time() local
1315 dql->slack_hold_time = msecs_to_jiffies(value); in bql_set_hold_time()
1327 struct dql *dql = &queue->dql; in bql_show_inflight() local
1329 return sprintf(buf, "%u\n", dql->num_queued - dql->num_completed); in bql_show_inflight()
1339 return bql_show(buf, queue->dql.FIELD); \
1345 return bql_set(buf, len, &queue->dql.FIELD); \
Ddev.c9946 dql_init(&queue->dql, HZ); in netdev_init_one_queue()
/kernel/linux/linux-5.10/include/net/
Dsch_generic.h237 return dql_avail(&txq->dql); in qdisc_avail_bulklimit()
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dam65-cpsw-nuss.c339 dql_avail(&netif_txq->dql), in am65_cpsw_nuss_ndo_host_tx_timeout()