Home
last modified time | relevance | path

Searched refs:dx (Results 1 – 25 of 96) sorted by relevance

1234

/freebsd-12-stable/sys/dev/syscons/dragon/
Ddragon_saver.c75 gdraw(int dx, int dy, int val) in gdraw() argument
80 if (dx != 0) { in gdraw()
82 cur_x += dx; in gdraw()
83 if (dx < 0) { in gdraw()
84 i += dx; in gdraw()
85 dx = -dx; in gdraw()
88 for (; dx >= 0; --dx, ++i) { in gdraw()
113 static int dx, dy; in dragon_update() local
143 dx = 0; dy = mul; in dragon_update()
146 dx = mul; dy = 0; in dragon_update()
[all …]
/freebsd-12-stable/stand/i386/boot2/
Dsio.S30 movw $SIO_PRT+0x3,%dx # Data format reg
32 outb %al,(%dx) # and DLAB
35 outw %ax,(%dx) # BPS
36 movw $SIO_PRT+0x3,%dx # Data format reg
38 outb %al,(%dx) # DLAB
41 outb %al,(%dx) # DTR
58 movw $SIO_PRT+0x5,%dx # Line status reg
61 sio_putc.1: inb (%dx),%al # Transmitter
67 outb %al,(%dx) # Write character
75 inb (%dx),%al # Read character
[all …]
Dboot1.S173 main.4: xor %dx,%dx # Partition:drive
188 main.5: mov %dx,MEM_ARG # Save args
279 push %dx # Save
282 pop %dx # Restore
292 read.1: push %dx # Save
296 pop %dx # Restore
302 push %dx # Save
312 pop %dx # Restore
/freebsd-12-stable/lib/msun/src/
Ds_cbrtl.c39 double dr, dt, dx; in cbrtl() local
97 dx = x; in cbrtl()
100 dt = dt * (dx + dx + dr) / (dx + dr + dr); in cbrtl()
104 dt = dt * (dx + dx + dr) / (dx + dr + dr); in cbrtl()
/freebsd-12-stable/contrib/ncurses/ncurses/base/
Dlib_overlay.c142 int sx, sy, dx, dy; in copywin() local
183 for (dx = dmincol, sx = smincol; in copywin()
184 dx <= dmaxcol; in copywin()
185 sx++, dx++) { in copywin()
187 if (dx < 0 || sx < 0) in copywin()
193 (!CharEq(dst->_line[dy].text[dx], in copywin()
195 dst->_line[dy].text[dx] = in copywin()
197 SetAttr(dst->_line[dy].text[dx], in copywin()
203 if (!CharEq(dst->_line[dy].text[dx], in copywin()
205 dst->_line[dy].text[dx] = in copywin()
/freebsd-12-stable/lib/msun/ld128/
Ds_expl.c206 double dr, dx, fn, r2; in expm1l() local
239 dx = x; in expm1l()
250 dx * (C14 + dx * (C15 + dx * (C16 + in expm1l()
251 dx * (C17 + dx * C18)))))))))))))); in expm1l()
256 dx * (D14 + dx * (D15 + dx * (D16 + in expm1l()
257 dx * D17))))))))))))); in expm1l()
/freebsd-12-stable/lib/libvgl/
Dsimple.c225 int dx, dy, incr1, incr2, D, x, y, xend, c, pixels_left; in VGLLine() local
228 dx = SL_ABSOLUTE(x2, x1, sign_x); in VGLLine()
236 if (dy > dx) { /* chooses axis of greatest movement (make dx) */ in VGLLine()
239 SL_SWAP(dx, dy); in VGLLine()
260 xend = (dx - 1) / 4; in VGLLine()
261 pixels_left = (dx - 1) % 4; /* number of pixels left over at the in VGLLine()
268 incr2 = 4 * dy - 2 * dx; in VGLLine()
272 D = incr1 - dx; in VGLLine()
336 c = 2 * (dy - dx); in VGLLine()
338 D = incr1 + dx; in VGLLine()
[all …]
/freebsd-12-stable/sys/dev/mse/
Dmse.c218 sc->status.dx = sc->status.dy = sc->status.dz = 0; in mseopen()
426 sc->status.dx = 0; in mseioctl()
516 int dx, dy, but; in mseintr_locked() local
527 (*sc->sc_getmouse)(sc->sc_port, &dx, &dy, &but); in mseintr_locked()
529 sign = (dx < 0); in mseintr_locked()
530 dx = dx * dx / sc->mode.accelfactor; in mseintr_locked()
531 if (dx == 0) in mseintr_locked()
532 dx = 1; in mseintr_locked()
534 dx = -dx; in mseintr_locked()
542 sc->sc_deltax += dx; in mseintr_locked()
[all …]
Dmse_isa.c159 static void mse_getlogi(struct resource *port, int *dx, int *dy,
177 static void mse_getati(struct resource *port, int *dx, int *dy,
290 int dx, dy, but; in mse_enablelogi() local
293 mse_getlogi(port, &dx, &dy, &but); in mse_enablelogi()
310 mse_getlogi(struct resource *port, int *dx, int *dy, int *but) in mse_getlogi() argument
324 *dx = x; in mse_getlogi()
374 mse_getati(struct resource *port, int *dx, int *dy, int *but) in mse_getati() argument
384 *dx = byte; in mse_getati()
/freebsd-12-stable/sys/dev/usb/gadget/
Dg_mouse.c98 int8_t dx; member
200 sc->sc_data.dx = 0; in g_mouse_cursor_update_timeout_reset()
343 int dx; in g_mouse_intr_callback() local
404 dx = sc->sc_curr_x_state - sc->sc_last_x_state; in g_mouse_intr_callback()
407 if (dx < -63) in g_mouse_intr_callback()
408 dx = -63; in g_mouse_intr_callback()
409 else if (dx > 63) in g_mouse_intr_callback()
410 dx = 63; in g_mouse_intr_callback()
417 sc->sc_last_x_state += dx; in g_mouse_intr_callback()
420 sc->sc_data.dx = dx; in g_mouse_intr_callback()
/freebsd-12-stable/sys/dev/usb/input/
Dwsp.c850 int dx = 0; in wsp_intr_callback() local
1044 dx = sc->pos_x[0] - sc->pre_pos_x; in wsp_intr_callback()
1049 dx = dy = 0; in wsp_intr_callback()
1053 dx = dy = 0; in wsp_intr_callback()
1057 dx = dy = 0; in wsp_intr_callback()
1062 dx = dy = 0; in wsp_intr_callback()
1065 dx = sc->pos_x[sc->finger] - sc->pre_pos_x; in wsp_intr_callback()
1074 dx = dy = 0; in wsp_intr_callback()
1081 dx = dy = 0; in wsp_intr_callback()
1088 dx = dy = 0; in wsp_intr_callback()
[all …]
Dums.c229 int32_t dx = 0; in ums_intr_callback() local
283 dx += hid_get_data(buf, len, &info->sc_loc_x); in ums_intr_callback()
327 if (dx || dy || dz || dt || dw || in ums_intr_callback()
331 dx, dy, dz, dt, dw, buttons); in ums_intr_callback()
343 sc->sc_status.dx += dx; in ums_intr_callback()
362 (dx == 0) && (dy == 0) && (dz == 0) && (dt == 0) && in ums_intr_callback()
371 ums_put_queue(sc, dx, dy, dz, dt, buttons); in ums_intr_callback()
373 ums_evdev_push(sc, dx, dy, dz, dt, in ums_intr_callback()
819 sc->sc_status.dx = 0; in ums_reset()
882 ums_put_queue(struct ums_softc *sc, int32_t dx, int32_t dy, in ums_put_queue() argument
[all …]
/freebsd-12-stable/lib/msun/i387/
Ds_floor.S45 movw -4(%ebp),%dx
46 orw $0x0400,%dx /* round towards -oo */
47 andw $0xf7ff,%dx
48 movw %dx,-8(%ebp)
Ds_floorl.S15 movw -4(%ebp),%dx
16 orw $0x0400,%dx /* round towards -oo */
17 andw $0xf7ff,%dx
18 movw %dx,-8(%ebp)
Ds_ceilf.S17 movw -4(%ebp),%dx
18 orw $0x0800,%dx /* round towards +oo */
19 andw $0xfbff,%dx
20 movw %dx,-8(%ebp)
Ds_ceill.S15 movw -4(%ebp),%dx
16 orw $0x0800,%dx /* round towards +oo */
17 andw $0xfbff,%dx
18 movw %dx,-8(%ebp)
Ds_floorf.S17 movw -4(%ebp),%dx
18 orw $0x0400,%dx /* round towards -oo */
19 andw $0xf7ff,%dx
20 movw %dx,-8(%ebp)
Ds_ceil.S45 movw -4(%ebp),%dx
46 orw $0x0800,%dx /* round towards +oo */
47 andw $0xfbff,%dx
48 movw %dx,-8(%ebp)
Ds_truncl.S15 movw -4(%ebp),%dx
16 orw $0x0c00,%dx /* round towards -oo */
17 movw %dx,-8(%ebp)
Ds_truncf.S15 movw -4(%ebp),%dx
16 orw $0x0c00,%dx /* round towards -oo */
17 movw %dx,-8(%ebp)
Ds_trunc.S15 movw -4(%ebp),%dx
16 orw $0x0c00,%dx /* round towards -oo */
17 movw %dx,-8(%ebp)
/freebsd-12-stable/usr.sbin/moused/
Dmoused.c962 linacc(int dx, int dy, int *movex, int *movey) in linacc() argument
966 if (dx == 0 && dy == 0) { in linacc()
970 fdx = dx * rodent.accelx + rodent.remainx; in linacc()
988 expoacc(int dx, int dy, int *movex, int *movey) in expoacc() argument
993 if (dx == 0 && dy == 0) { in expoacc()
997 fdx = dx * rodent.accelx; in expoacc()
1092 action0.dx = action0.dy = action0.dz = 0; in moused()
1181 action2.button, action2.dx, action2.dy, action2.dz); in moused()
1190 if (action2.dy || action2.dx) { in moused()
1200 hscroll_movement += action2.dx; in moused()
[all …]
/freebsd-12-stable/stand/i386/boot0/
Dboot0.S248 pushw %dx # Also in the stack
262 xorw %dx,%dx # Item number
269 btw %dx,_FLAGS(%bp) # Entry enabled?
295 next_entry: incw %dx # Next item
351 movw %dx,%di # Ticks when
369 cmpw %di,%dx # Timeout?
513 putx: btsw %dx,_MNUOPT(%bp) # Enable menu option
546 pushw %dx # Save
547 xorw %dx,%dx # Use COM1
549 popw %dx # Restore
/freebsd-12-stable/contrib/bearssl/src/aead/
Deax.c373 unsigned dx, sx; in br_eax_run() local
376 dx = dbuf[u]; in br_eax_run()
377 ctx->buf[ptr + u] = dx; in br_eax_run()
378 dbuf[u] = sx ^ dx; in br_eax_run()
437 unsigned dx, sx; in br_eax_run() local
440 dx = dbuf[u]; in br_eax_run()
441 ctx->buf[u] = dx; in br_eax_run()
442 dbuf[u] = sx ^ dx; in br_eax_run()
/freebsd-12-stable/sys/net/altq/
Daltq_hfsc.c970 cl->cl_eligible.dx = 0; in init_ed()
1443 u_int64_t dx; in d2dx() local
1445 dx = ((u_int64_t)d * machclk_freq) / 1000; in d2dx()
1446 return (dx); in d2dx()
1459 dx2d(u_int64_t dx) in dx2d() argument
1463 d = dx * 1000 / machclk_freq; in dx2d()
1472 isc->dx = d2dx(sc->d); in sc2isc()
1473 isc->dy = seg_x2y(isc->dx, isc->sm1); in sc2isc()
1490 rtsc->dx = isc->dx; in rtsc_init()
1510 x = rtsc->x + rtsc->dx; in rtsc_y2x()
[all …]

1234