Home
last modified time | relevance | path

Searched refs:qdp (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/samples/bpf/
Dhbm_out_kern.c71 struct hbm_vqueue *qdp; in _hbm_out_cg() local
85 qdp = bpf_get_local_storage(&queue_state, 0); in _hbm_out_cg()
86 if (!qdp) in _hbm_out_cg()
88 else if (qdp->lasttime == 0) in _hbm_out_cg()
89 hbm_init_vqueue(qdp, 1024); in _hbm_out_cg()
94 bpf_spin_lock(&qdp->lock); in _hbm_out_cg()
95 credit = qdp->credit; in _hbm_out_cg()
96 delta = curtime - qdp->lasttime; in _hbm_out_cg()
102 qdp->lasttime = curtime; in _hbm_out_cg()
103 new_credit = credit + CREDIT_PER_NS(delta, qdp->rate); in _hbm_out_cg()
[all …]
Dhbm_edt_kern.c65 struct hbm_vqueue *qdp; in _hbm_out_cg() local
83 qdp = bpf_get_local_storage(&queue_state, 0); in _hbm_out_cg()
84 if (!qdp) in _hbm_out_cg()
86 if (qdp->lasttime == 0) in _hbm_out_cg()
87 hbm_init_edt_vqueue(qdp, 1024); in _hbm_out_cg()
92 bpf_spin_lock(&qdp->lock); in _hbm_out_cg()
93 delta = qdp->lasttime - curtime; in _hbm_out_cg()
97 qdp->lasttime = curtime - BURST_SIZE_NS; in _hbm_out_cg()
100 sendtime = qdp->lasttime; in _hbm_out_cg()
101 delta_send = BYTES_TO_NS(len, qdp->rate); in _hbm_out_cg()
[all …]
Dhbm_kern.h135 static __always_inline void hbm_init_vqueue(struct hbm_vqueue *qdp, int rate) in hbm_init_vqueue() argument
138 qdp->lasttime = bpf_ktime_get_ns(); in hbm_init_vqueue()
139 qdp->credit = INIT_CREDIT; in hbm_init_vqueue()
140 qdp->rate = rate * 128; in hbm_init_vqueue()
143 static __always_inline void hbm_init_edt_vqueue(struct hbm_vqueue *qdp, in hbm_init_edt_vqueue() argument
150 qdp->lasttime = curtime - BURST_SIZE_NS; // support initial burst in hbm_init_edt_vqueue()
151 qdp->credit = 0; // not used in hbm_init_edt_vqueue()
152 qdp->rate = rate * 128; in hbm_init_edt_vqueue()
/linux-6.1.9/fs/gfs2/
Dquota.c263 struct gfs2_quota_data **qdp) in qd_get() argument
269 *qdp = qd = gfs2_qd_search_bucket(hash, sdp, qid); in qd_get()
281 *qdp = qd = gfs2_qd_search_bucket(hash, sdp, qid); in qd_get()
283 *qdp = new_qd; in qd_get()
451 static int qd_fish(struct gfs2_sbd *sdp, struct gfs2_quota_data **qdp) in qd_fish() argument
456 *qdp = NULL; in qd_fish()
483 *qdp = qd; in qd_fish()
499 struct gfs2_quota_data **qdp) in qdsb_get() argument
503 error = qd_get(sdp, qid, qdp); in qdsb_get()
507 error = slot_get(*qdp); in qdsb_get()
[all …]