Home | History | Annotate | Download | only in btt

Lines Matching refs:dip

124 static inline void dip_update_q(struct d_info *dip, struct io *iop)
126 if (remapper_dev(dip->device))
127 update_lq(&dip->last_q, &dip->avgs.q2q_dm, iop->t.time);
129 update_lq(&dip->last_q, &dip->avgs.q2q, iop->t.time);
130 update_qregion(&dip->regions, iop->t.time);
163 iop->dip = dip_alloc(iop->t.device, iop);
184 avg_update(&_iop->dip->avgs. _avg , _time); \
190 avg_update_n(&_iop->dip->avgs. _avg , _time, _n); \
196 avg_unupdate(&_iop->dip->avgs. _avg , _time); \
202 if (remapper_dev(iop->dip->device))
210 if (remapper_dev(iop->dip->device))
280 avg_update(&iop->dip->avgs.blks, nblks);
285 static inline struct rb_root *__get_root(struct d_info *dip, enum iop_type type)
287 struct rb_root *roots = dip->heads;
291 static inline int dip_rb_ins(struct d_info *dip, struct io *iop)
293 return rb_insert(__get_root(dip, iop->type), iop);
298 rb_erase(&iop->rb_node, __get_root(iop->dip, iop->type));
301 static inline void dip_rb_fe(struct d_info *dip, enum iop_type type,
306 rb_foreach(__get_root(dip, type)->rb_node, iop, fnc, head);
309 static inline struct io *dip_rb_find_sec(struct d_info *dip,
312 return rb_find_sec(__get_root(dip, type), sec);