Lines Matching defs:media_current
45 static int media_current;
136 media_current = ifmr.ifm_current;
140 if (IFM_TYPE(media_current) == 0)
161 media_current |= mediaopt_set;
162 media_current &= ~mediaopt_clear;
165 ifr.ifr_media = media_current;
192 type = IFM_TYPE(media_current);
193 inst = IFM_INST(media_current);
205 media_current = IFM_MAKEWORD(type, subtype, 0, inst);
230 mediaopt_set = get_media_options(media_current, val, &invalid);
233 media_error(media_current, invalid, "option");
262 mediaopt_clear = get_media_options(media_current, val, &invalid);
265 media_error(media_current, invalid, "option");
286 type = IFM_TYPE(media_current);
287 subtype = IFM_SUBTYPE(media_current);
288 options = IFM_OPTIONS(media_current);
290 media_current = IFM_MAKEWORD(type, subtype, options, inst);
308 type = IFM_TYPE(media_current);
309 subtype = IFM_SUBTYPE(media_current);
310 options = IFM_OPTIONS(media_current);
311 inst = IFM_INST(media_current);
323 media_current = IFM_MAKEWORD(type, subtype, options, inst) | mode;