Searched refs:curval (Results 1 - 25 of 35) sorted by relevance

12

/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A D960117-1.c19 VAL curval = {0}; variable
30 curval.vals.id[0] = c;
37 curval.vals.id = id_space[idc];
38 curval.pos = (cur_line << 10) | char_pos;
/openbsd-current/sys/dev/acpi/
H A Dabl.c202 dp->curval = sc->sc_brightness;
219 DPRINTF(("abl_set_param: curval = %d\n", dp->curval));
220 if (dp->curval < ABL_BRIGHTNESS_MIN)
221 dp->curval = 0;
222 if (dp->curval > ABL_BRIGHTNESS_MAX)
223 dp->curval = ABL_BRIGHTNESS_MAX;
224 abl_set_brightness(sc, dp->curval);
225 sc->sc_brightness = dp->curval;
H A Dacpicbkbd.c126 kbl->curval = sc->sc_backlight;
138 if (kbl->curval > ACPICBKBD_MAX_BACKLIGHT)
141 sc->sc_backlight = kbl->curval;
H A Dacpitoshiba.c140 dp->curval = sc->sc_brightness;
167 if (dp->curval < HCI_LCD_BRIGHTNESS_MIN)
168 dp->curval = HCI_LCD_BRIGHTNESS_MIN;
169 if (dp->curval > HCI_LCD_BRIGHTNESS_MAX)
170 dp->curval = HCI_LCD_BRIGHTNESS_MAX;
171 sc->sc_brightness = dp->curval;
H A Dacpithinkpad.c756 kbl->curval = sc->sc_thinklight & 0x0f;
777 if (kbl->curval > maxval)
781 sc->sc_thinklight |= kbl->curval;
834 dp->curval = sc->sc_brightness & 0xff;
854 if (dp->curval < 0)
855 dp->curval = 0;
856 if (dp->curval > maxval)
857 dp->curval = maxval;
859 sc->sc_brightness |= dp->curval;
H A Dacpivout.c289 dp->curval = sc->sc_brightness;
315 nindex = acpivout_select_brightness(sc, dp->curval);
/openbsd-current/usr.bin/tmux/
H A Dcmd-join-pane.c79 u_int curval = 0; local
106 curval = dst_w->sy;
108 curval = dst_w->sx;
111 curval = dst_wp->sy;
113 curval = dst_wp->sx;
119 size = args_percentage_and_expand(args, 'l', 0, INT_MAX, curval,
125 size = curval * size / 100;
H A Dcmd-split-window.c73 u_int count = args_count(args), curval = 0; local
83 curval = w->sy;
85 curval = w->sx;
88 curval = wp->sy;
90 curval = wp->sx;
96 size = args_percentage_and_expand(args, 'l', 0, INT_MAX, curval,
102 size = curval * size / 100;
H A Darguments.c966 long long maxval, long long curval, char **cause)
980 return (args_string_percentage(value, minval, maxval, curval, cause));
986 long long curval, char **cause)
1007 ll = (curval * ll) / 100;
1034 long long maxval, long long curval, struct cmdq_item *item, char **cause)
1048 return (args_string_percentage_and_expand(value, minval, maxval, curval,
1057 long long maxval, long long curval, struct cmdq_item *item, char **cause)
1076 ll = (curval * ll) / 100;
965 args_percentage(struct args *args, u_char flag, long long minval, long long maxval, long long curval, char **cause) argument
985 args_string_percentage(const char *value, long long minval, long long maxval, long long curval, char **cause) argument
1033 args_percentage_and_expand(struct args *args, u_char flag, long long minval, long long maxval, long long curval, struct cmdq_item *item, char **cause) argument
1056 args_string_percentage_and_expand(const char *value, long long minval, long long maxval, long long curval, struct cmdq_item *item, char **cause) argument
/openbsd-current/sys/dev/fdt/
H A Dpwmleds.c164 kbl->curval = (ps.ps_enabled) ?
179 if (kbl->curval < 0 || kbl->curval > sc->sc_max_brightness)
184 ((uint64_t)kbl->curval * ps.ps_period) / sc->sc_max_brightness;
H A Dpwmbl.c214 dp->curval = level;
228 if (pwmbl_set_brightness(sc, dp->curval))
/openbsd-current/usr.bin/sndioctl/
H A Dsndioctl.c36 int curval, newval; member in struct:info
294 if (p2->curval != p1->curval)
304 if (e2->curval != 0)
312 if (e1->curval != e2->curval)
400 printf("%d", p->curval);
406 printf("%.3f", p->curval / (float)p->desc.maxval);
469 if (e->curval) {
657 printf("0..%d (%u)", i->desc.maxval, i->curval);
885 ondesc(void *arg, struct sioctl_desc *d, int curval) argument
[all...]
/openbsd-current/sys/dev/usb/
H A Duthum.c536 int done, state, ostate, curval; local
545 if (uthum_ntc_getdata(sc, &curval)) {
554 curval = *val;
558 if ((curval >= UTHUM_NTC_MIN_THRESHOLD) &&
559 (curval <= UTHUM_NTC_MAX_THRESHOLD)) {
563 if (((curval < UTHUM_NTC_MIN_THRESHOLD) &&
565 ((curval > UTHUM_NTC_MAX_THRESHOLD) &&
570 state, curval));
576 if (curval < UTHUM_NTC_MIN_THRESHOLD) {
581 } else if (curval > UTHUM_NTC_MAX_THRESHOL
[all...]
/openbsd-current/usr.bin/sndiod/
H A Ddev_sioctl.c106 c->curval = val;
199 if (!sioctl_setval(d->sioctl.hdl, c->u.hw.addr, c->curval)) {
H A Dopt.c411 c->curval = 0;
431 c->curval = 1;
H A Ddev.h173 unsigned int curval; member in struct:ctl
/openbsd-current/lib/libsndio/
H A Damsg.h161 uint16_t curval; member in struct:amsg_ctl_desc
/openbsd-current/sys/arch/macppc/pci/
H A Dvgafb.c266 dp->curval = cons_brightness;
274 dp->curval = sc->sc_backlight_on;
289 of_setbrightness(dp->curval);
296 dp->curval ? WSDISPLAYIO_VIDEO_ON :
/openbsd-current/sys/arch/macppc/macppc/
H A Dofw_machdep.c654 of_setbrightness(dp->curval);
660 of_setbacklight(dp->curval ? WSDISPLAYIO_VIDEO_ON
680 dp->curval = cons_brightness;
688 dp->curval = cons_backlight;
/openbsd-current/sbin/wsconsctl/
H A Ddisplay.c186 pc->cur = param.curval;
262 param.curval = pc->cur;
H A Dkeyboard.c150 backlight.cur = kbl.curval;
233 kbl.curval = backlight.cur;
/openbsd-current/sys/dev/wscons/
H A Dwskbd.c1499 dp.curval += updown;
1500 if (dp.max < dp.curval)
1501 dp.curval = wraparound ? dp.min : dp.max;
1503 if (dp.curval < dp.min)
1504 dp.curval = wraparound ? dp.max : dp.min;
1951 val = (cmd == KBD_BACKLIGHT_UP) ? data.curval + step :
1952 (cmd == KBD_BACKLIGHT_DOWN) ? data.curval - step :
1953 (data.curval) ? 0 : (data.max - data.min + 1) / 2;
1954 data.curval = (val > 0xff) ? 0xff : (val < 0) ? 0 : val;
H A Dwsconsio.h205 unsigned int min, max, curval; member in struct:wskbd_backlight
614 int min, max, curval; member in struct:wsdisplay_param
/openbsd-current/sys/arch/armv7/omap/
H A Domdisplay.c697 dp->curval = omdisplay_get_backlight();
701 // omdisplay_set_backlight(dp->curval);
715 dp->curval = omdisplay_get_brightness();
719 // omdisplay_set_brightness(dp->curval);
793 static int curval = 1; local
801 if (newval > curval) {
802 for (i = curval + 1; i <= newval; i++) {
811 curval = newval;
/openbsd-current/sys/dev/pci/drm/apple/
H A Dapldrm.c153 dp->curval = bd->props.brightness;
163 bd->props.brightness = dp->curval;

Completed in 406 milliseconds

12