Home
last modified time | relevance | path

Searched refs:qdp (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/samples/bpf/
H A 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 in _hbm_out_cg()
[all...]
H A 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 in _hbm_out_cg()
[all...]
H A Dhbm_kern.h137 static __always_inline void hbm_init_vqueue(struct hbm_vqueue *qdp, int rate) in hbm_init_vqueue() argument
140 qdp->lasttime = bpf_ktime_get_ns(); in hbm_init_vqueue()
141 qdp->credit = INIT_CREDIT; in hbm_init_vqueue()
142 qdp->rate = rate * 128; in hbm_init_vqueue()
145 static __always_inline void hbm_init_edt_vqueue(struct hbm_vqueue *qdp, in hbm_init_edt_vqueue() argument
152 qdp->lasttime = curtime - BURST_SIZE_NS; // support initial burst in hbm_init_edt_vqueue()
153 qdp->credit = 0; // not used in hbm_init_edt_vqueue()
154 qdp->rate = rate * 128; in hbm_init_edt_vqueue()
/kernel/linux/linux-6.6/samples/bpf/
H A 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 in _hbm_out_cg()
[all...]
H A 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 in _hbm_out_cg()
[all...]
H A 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()
/kernel/linux/linux-5.10/fs/gfs2/
H A Dquota.c263 struct gfs2_quota_data **qdp) in qd_get()
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()
455 static int qd_fish(struct gfs2_sbd *sdp, struct gfs2_quota_data **qdp) in qd_fish() argument
461 *qdp = NULL; in qd_fish()
490 *qdp = qd; in qd_fish()
506 struct gfs2_quota_data **qdp) in qdsb_get()
510 error = qd_get(sdp, qid, qdp); in qdsb_get()
514 error = slot_get(*qdp); in qdsb_get()
262 qd_get(struct gfs2_sbd *sdp, struct kqid qid, struct gfs2_quota_data **qdp) qd_get() argument
505 qdsb_get(struct gfs2_sbd *sdp, struct kqid qid, struct gfs2_quota_data **qdp) qdsb_get() argument
[all...]
/kernel/linux/linux-6.6/fs/gfs2/
H A Dquota.c271 struct gfs2_quota_data **qdp) in qd_get()
277 *qdp = qd = gfs2_qd_search_bucket(hash, sdp, qid); in qd_get()
289 *qdp = qd = gfs2_qd_search_bucket(hash, sdp, qid); in qd_get()
292 *qdp = new_qd; in qd_get()
495 static int qd_fish(struct gfs2_sbd *sdp, struct gfs2_quota_data **qdp) in qd_fish() argument
500 *qdp = NULL; in qd_fish()
520 *qdp = qd; in qd_fish()
541 struct gfs2_quota_data **qdp) in qdsb_get()
545 error = qd_get(sdp, qid, qdp); in qdsb_get()
549 error = slot_get(*qdp); in qdsb_get()
270 qd_get(struct gfs2_sbd *sdp, struct kqid qid, struct gfs2_quota_data **qdp) qd_get() argument
540 qdsb_get(struct gfs2_sbd *sdp, struct kqid qid, struct gfs2_quota_data **qdp) qdsb_get() argument
[all...]

Completed in 6 milliseconds