Home
last modified time | relevance | path

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

/linux-6.3-rc2/lib/
A Ddynamic_queue_limits.c18 void dql_completed(struct dql *dql, unsigned int count) in dql_completed() argument
30 limit = dql->limit; in dql_completed()
33 prev_inprogress = dql->prev_num_queued - dql->num_completed; in dql_completed()
85 POSDIFF(dql->prev_last_obj_cnt, dql->prev_ovlimit) : 0; in dql_completed()
93 dql->slack_start_time + dql->slack_hold_time)) { in dql_completed()
101 limit = clamp(limit, dql->min_limit, dql->max_limit); in dql_completed()
110 dql->prev_last_obj_cnt = dql->last_obj_cnt; in dql_completed()
116 void dql_reset(struct dql *dql) in dql_reset() argument
119 dql->limit = 0; in dql_reset()
131 void dql_init(struct dql *dql, unsigned int hold_time) in dql_init() argument
[all …]
/linux-6.3-rc2/include/linux/
A 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);
A Dnetdevice.h645 struct dql dql; member
3371 dev_queue->dql.min_limit = min_limit; in netdev_queue_set_dql_min_limit()
3385 prefetchw(&dev_queue->dql.num_queued); in netdev_txq_bql_enqueue_prefetchw()
3399 prefetchw(&dev_queue->dql.limit); in netdev_txq_bql_complete_prefetchw()
3417 dql_queued(&dev_queue->dql, bytes); in netdev_tx_sent_queue()
3419 if (likely(dql_avail(&dev_queue->dql) >= 0)) in netdev_tx_sent_queue()
3432 if (unlikely(dql_avail(&dev_queue->dql) >= 0)) in netdev_tx_sent_queue()
3449 dql_queued(&dev_queue->dql, bytes); in __netdev_tx_sent_queue()
3496 dql_completed(&dev_queue->dql, bytes); in netdev_tx_completed_queue()
3505 if (unlikely(dql_avail(&dev_queue->dql) < 0)) in netdev_tx_completed_queue()
[all …]
/linux-6.3-rc2/net/core/
A Dnet-sysfs.c1375 struct dql *dql = &queue->dql; in bql_show_hold_time() local
1377 return sysfs_emit(buf, "%u\n", jiffies_to_msecs(dql->slack_hold_time)); in bql_show_hold_time()
1383 struct dql *dql = &queue->dql; in bql_set_hold_time() local
1391 dql->slack_hold_time = msecs_to_jiffies(value); in bql_set_hold_time()
1403 struct dql *dql = &queue->dql; in bql_show_inflight() local
1405 return sysfs_emit(buf, "%u\n", dql->num_queued - dql->num_completed); in bql_show_inflight()
1415 return bql_show(buf, queue->dql.FIELD); \
1421 return bql_set(buf, len, &queue->dql.FIELD); \
A Ddev.c9891 dql_init(&queue->dql, HZ); in netdev_init_one_queue()
/linux-6.3-rc2/drivers/net/ethernet/hisilicon/hns3/
A Dhns3_enet.c2776 struct dql *dql = &q->dql; in hns3_get_timeout_queue() local
2779 dql->last_obj_cnt, dql->num_queued, in hns3_get_timeout_queue()
2780 dql->adj_limit, dql->num_completed); in hns3_get_timeout_queue()
/linux-6.3-rc2/include/net/
A Dsch_generic.h235 return dql_avail(&txq->dql); in qdisc_avail_bulklimit()
/linux-6.3-rc2/drivers/net/ethernet/ti/
A Dam65-cpsw-nuss.c292 dql_avail(&netif_txq->dql), in am65_cpsw_nuss_ndo_host_tx_timeout()

Completed in 63 milliseconds