Lines Matching defs:scroll_l
53 static struct wsdisplay_scroll_data scroll_l;
66 { "scroll.fastlines", &scroll_l.fastlines, FMT_UINT, FLG_MODIFY },
67 { "scroll.slowlines", &scroll_l.slowlines, FMT_UINT, FLG_MODIFY },
177 if (field_by_value(&scroll_l.fastlines)->flags & FLG_GET ||
178 field_by_value(&scroll_l.slowlines)->flags & FLG_GET) {
179 if (ioctl(fd, WSDISPLAYIO_DGSCROLL, &scroll_l) < 0) {
180 field_disable_by_value(&scroll_l.fastlines);
181 field_disable_by_value(&scroll_l.slowlines);
289 scroll_l.which = 0;
290 if (field_by_value(&scroll_l.fastlines)->flags & FLG_SET)
291 scroll_l.which |= WSDISPLAY_SCROLL_DOFASTLINES;
292 if (field_by_value(&scroll_l.slowlines)->flags & FLG_SET)
293 scroll_l.which |= WSDISPLAY_SCROLL_DOSLOWLINES;
294 if (scroll_l.which != 0 &&
295 ioctl(fd, WSDISPLAYIO_DSSCROLL, &scroll_l) < 0)
297 if (scroll_l.which & WSDISPLAY_SCROLL_DOFASTLINES)
298 pr_field(field_by_value(&scroll_l.fastlines), " -> ");
299 if (scroll_l.which & WSDISPLAY_SCROLL_DOSLOWLINES)
300 pr_field(field_by_value(&scroll_l.slowlines), " -> ");