Lines Matching refs:qdp
65 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()
102 __sync_add_and_fetch(&(qdp->lasttime), delta_send); in _hbm_out_cg()
103 bpf_spin_unlock(&qdp->lock); in _hbm_out_cg()
110 if (qsp != NULL && (qsp->rate * 128) != qdp->rate) in _hbm_out_cg()
111 qdp->rate = qsp->rate * 128; in _hbm_out_cg()
160 __sync_add_and_fetch(&(qdp->lasttime), -delta_send); in _hbm_out_cg()