Lines Matching refs:od
287 #define OD_AVG(od, fld, q2c) \ argument
288 (od. fld .n == 0) ? (double)0.0 : \
289 (100.0 * ((double)((od). fld . total) / q2c))
294 struct ohead_data od; in output_dip_prep_ohead() local
296 memset(&od, 0, sizeof(od)); in output_dip_prep_ohead()
297 od.ofp = ofp; in output_dip_prep_ohead()
302 dip_foreach_out(__output_dip_prep_ohead, &od); in output_dip_prep_ohead()
304 if (od.q2g.n == 0 && od.g2i.n == 0 && od.q2m.n == 0 && in output_dip_prep_ohead()
305 od.i2d.n == 0 && od.d2c.n == 0) in output_dip_prep_ohead()
308 q2c = od.q2c.total; in output_dip_prep_ohead()
311 OD_AVG(od, q2g, q2c), OD_AVG(od, g2i, q2c), in output_dip_prep_ohead()
312 OD_AVG(od, q2m, q2c), OD_AVG(od, i2d, q2c), in output_dip_prep_ohead()
313 OD_AVG(od, d2c, q2c)); in output_dip_prep_ohead()
879 struct __od od = { .ofp = ofp, .base = base }; in output_devs() local
882 dip_foreach_out(__output_dev, &od); in output_devs()
883 return od.base; in output_devs()