Lines Matching defs:dfbell
48 static struct wskbd_bell_data dfbell;
69 { "bell.pitch.default", &dfbell.pitch, FMT_UINT, FLG_MODIFY },
70 { "bell.period.default", &dfbell.period, FMT_UINT, FLG_MODIFY },
71 { "bell.volume.default", &dfbell.volume, FMT_UINT, FLG_MODIFY },
134 dfbell.which = 0;
135 if (field_by_value(&dfbell.pitch)->flags & FLG_GET)
136 dfbell.which |= WSKBD_BELL_DOPITCH;
137 if (field_by_value(&dfbell.period)->flags & FLG_GET)
138 dfbell.which |= WSKBD_BELL_DOPERIOD;
139 if (field_by_value(&dfbell.volume)->flags & FLG_GET)
140 dfbell.which |= WSKBD_BELL_DOVOLUME;
141 if (dfbell.which != 0 &&
142 ioctl(fd, WSKBDIO_GETDEFAULTBELL, &dfbell) < 0)
224 dfbell.which = 0;
225 if (field_by_value(&dfbell.pitch)->flags & FLG_SET)
226 dfbell.which |= WSKBD_BELL_DOPITCH;
227 if (field_by_value(&dfbell.period)->flags & FLG_SET)
228 dfbell.which |= WSKBD_BELL_DOPERIOD;
229 if (field_by_value(&dfbell.volume)->flags & FLG_SET)
230 dfbell.which |= WSKBD_BELL_DOVOLUME;
231 if (dfbell.which != 0 &&
232 ioctl(fd, WSKBDIO_SETDEFAULTBELL, &dfbell) < 0)
234 if (dfbell.which & WSKBD_BELL_DOPITCH)
235 pr_field(field_by_value(&dfbell.pitch), " -> ");
236 if (dfbell.which & WSKBD_BELL_DOPERIOD)
237 pr_field(field_by_value(&dfbell.period), " -> ");
238 if (dfbell.which & WSKBD_BELL_DOVOLUME)
239 pr_field(field_by_value(&dfbell.volume), " -> ");