Home
last modified time | relevance | path

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

12345678910

/netbsd/src/sys/arch/arm/xscale/
Dpxa2x0_i2s.c43 struct dmac_xfer *dx; member
183 struct dmac_xfer *dx; in pxa2x0_i2s_allocm() local
188 dx = pxa2x0_dmac_allocate_xfer(); in pxa2x0_i2s_allocm()
189 if (dx == NULL) { in pxa2x0_i2s_allocm()
192 p->dx = dx; in pxa2x0_i2s_allocm()
215 dx->dx_cookie = sc; in pxa2x0_i2s_allocm()
216 dx->dx_priority = DMAC_PRIORITY_NORMAL; in pxa2x0_i2s_allocm()
217 dx->dx_dev_width = DMAC_DEV_WIDTH_4; in pxa2x0_i2s_allocm()
218 dx->dx_burst_size = DMAC_BURST_SIZE_32; in pxa2x0_i2s_allocm()
232 pxa2x0_dmac_free_xfer(dx); in pxa2x0_i2s_allocm()
[all …]
Dpxa2x0_ac97.c754 struct dmac_xfer *dx; in acu_trigger_output() local
780 dx = ad->ad_dx; in acu_trigger_output()
781 dx->dx_done = acu_tx_loop_segment; in acu_trigger_output()
782 dx->dx_peripheral = DMAC_PERIPH_AC97AUDIOTX; in acu_trigger_output()
783 dx->dx_flow = DMAC_FLOW_CTRL_DEST; in acu_trigger_output()
784 dx->dx_loop_notify = blksize; in acu_trigger_output()
785 dx->dx_desc[DMAC_DESC_SRC].xd_addr_hold = false; in acu_trigger_output()
786 dx->dx_desc[DMAC_DESC_SRC].xd_nsegs = ad->ad_nsegs; in acu_trigger_output()
787 dx->dx_desc[DMAC_DESC_SRC].xd_dma_segs = ad->ad_segs; in acu_trigger_output()
788 dx->dx_desc[DMAC_DESC_DST].xd_addr_hold = true; in acu_trigger_output()
[all …]
/netbsd/src/sys/arch/i386/stand/mbr/
Dmbr.S154 push %dx /* save drive number */
155 push %dx /* twice - for err_msg loop */
160 mov COM_PORT_VAL, %dx
163 outb %dx
259 pop %dx /* recover drive # */
260 push %dx /* save drive */
286 mov %dx, %di /* start time to di */
289 mov COM_PORT_VAL, %dx
290 push %dx
291 add $5, %dx
[all …]
/netbsd/src/external/gpl3/gcc/dist/contrib/
Dcompare_two_ftime_report_sets250 def t_dist_degree_at_index(dx): argument
251 return t_dist_table[dx][0]
254 def t_dist_value_at_index(ax, dx): argument
255 return t_dist_table[dx][ax]
260 dx = 0
261 while dx < limit and t_dist_degree_at_index(dx+1) <= degree:
262 dx += 1
263 return dx
274 def t_dist_index_of_value(dx, value): argument
275 limit = len(t_dist_table[dx]) - 1
[all …]
/netbsd/src/games/hack/
Dhack.zap.c228 (void) bhit(u.dx, u.dy, rn1(8, 6), 0, bhitm, bhito, obj); in dozap()
300 zx = u.ux + u.dx; in dozap()
327 zx += u.dx; in dozap()
336 u.ux, u.uy, u.dx, u.dy); in dozap()
437 boomhit(int dx, int dy) in boomhit() argument
447 if (xdir[i] == dx && ydir[i] == dy) in boomhit()
455 dx = xdir[i]; in boomhit()
457 bhitpos.x += dx; in boomhit()
464 bhitpos.x -= dx; in boomhit()
487 dirlet(int dx, int dy) in dirlet() argument
[all …]
Dhack.c163 u.dx = u.dy = 0; in domove()
170 } while (!isok(u.ux + u.dx, u.uy + u.dy) || in domove()
171 IS_ROCK(levl[u.ux + u.dx][u.uy + u.dy].typ)); in domove()
173 if (!isok(u.ux + u.dx, u.uy + u.dy)) { in domove()
182 if (!u.uswallow && (trap = t_at(u.ux + u.dx, u.uy + u.dy)) && trap->tseen) in domove()
184 if (u.ustuck && !u.uswallow && (u.ux + u.dx != u.ustuck->mx || in domove()
199 if (u.uswallow || (mtmp = m_at(u.ux + u.dx, u.uy + u.dy))) { in domove()
218 if ((u.dx && u.dy) || !rn2(5)) in domove()
223 tmpr = &levl[u.ux + u.dx][u.uy + u.dy]; in domove()
225 (u.dx && u.dy && (tmpr->typ == DOOR || ust->typ == DOOR))) { in domove()
[all …]
Dhack.mklev.c232 int lx, ly, hx, hy, lowx, lowy, hix, hiy, dx, dy; in makerooms() local
262 dx = dy = 1; in makerooms()
264 dx = 2 + rn2((hx - lx - 8 > 20) ? 12 : 8); in makerooms()
266 if (dx * dy > 50) in makerooms()
267 dy = 50 / dx; in makerooms()
271 if (hx - lx < dx + dx / 2 + 2 * xlim || hy - ly < dy + dy / 3 + 2 * ylim) { in makerooms()
284 lowx = lx + xlim + rn2(hx - lx - dx - 2 * xlim + 1); in makerooms()
286 hix = lowx + dx; in makerooms()
289 if (maker(lowx, dx, lowy, dy)) { in makerooms()
575 int dx, dy, dix, diy, cct; in join() local
[all …]
/netbsd/src/games/trek/
Dmove.c85 double x, y, dx, dy; in move() local
108 dx = -cos(angle); in move()
110 bigger = fabs(dx); in move()
114 dx /= bigger; in move()
144 dx, dy, xn, n); in move()
149 ix = (x += dx); in move()
158 dx = Ship.quadx * NSECTS + Ship.sectx + dx * xn; in move()
160 if (dx < 0.0) in move()
163 ix = dx + 0.5; in move()
196 ix = x - dx; in move()
[all …]
Dhelp.c77 int dx = 0, dy = 0; in help() local
105 dx = Now.base[i].x - Ship.quadx; in help()
107 x = dx * dx + dy * dy; in help()
139 dx = Etc.starbase.x + ranf(3) - 1; in help()
140 if (dx < 0 || dx >= NSECTS) in help()
144 Sect[dx][dy] != EMPTY) in help()
151 Ship.sectx = dx; in help()
153 Sect[dx][dy] = Ship.ship; in help()
Dklmove.c72 double dx, dy; in klmove() local
96 dx = Ship.sectx - k->x + ranf(3) - 1; in klmove()
98 bigger = dx; in klmove()
103 dx = dx / bigger + 0.5; in klmove()
107 dx = -dx; in klmove()
115 lookx = nextx + dx; in klmove()
161 lookx = nextx + dx; in klmove()
Dsnova.c72 int dx, dy; in snova() local
112 dx = ix - Ship.sectx; in snova()
114 if (dx * dx + dy * dy <= 2) { in snova()
132 dx = q->klings; in snova()
134 Now.klings -= dx; in snova()
140 Game.killk += dx; in snova()
/netbsd/src/sys/arch/arm/s3c2xx0/
Ds3c2440_dma.c189 struct dmac_xfer *dx; in s3c2440_dma_intr() local
194 dx = &dxs->dxs_xfer; in s3c2440_dma_intr()
196 if (dx->dx_desc[DMAC_DESC_SRC].xd_increment) { in s3c2440_dma_intr()
204 if (dx->dx_desc[DMAC_DESC_DST].xd_increment) { in s3c2440_dma_intr()
223 DPRINTF(("dx_done: %p\n", (void*)dx->dx_done)); in s3c2440_dma_intr()
224 if (dx->dx_done != NULL) { in s3c2440_dma_intr()
225 (dx->dx_done)(dx, dx->dx_cookie); in s3c2440_dma_intr()
290 s3c2440_dmac_free_xfer(dmac_xfer_t dx) { in s3c2440_dmac_free_xfer() argument
291 kmem_free(dx, sizeof(struct dmac_xfer_state)); in s3c2440_dmac_free_xfer()
295 s3c2440_dmac_start_xfer(dmac_xfer_t dx) { in s3c2440_dmac_start_xfer() argument
[all …]
/netbsd/src/lib/libm/arch/i387/
Ds_floor.S17 movw -4(%ebp),%dx
18 orw $0x0400,%dx /* round towards -oo */
19 andw $0xf7ff,%dx
20 movw %dx,-8(%ebp)
32 movw -12(%rsp),%dx
33 orw $0x0400,%dx
34 andw $0xf7ff,%dx
35 movw %dx,-16(%rsp)
Ds_ceilf.S17 movw -4(%ebp),%dx
18 orw $0x0800,%dx /* round towards +oo */
19 andw $0xfbff,%dx
20 movw %dx,-8(%ebp)
31 movw -8(%rsp),%dx
32 orw $0x0800,%dx
33 andw $0xfbff,%dx
34 movw %dx,-12(%rsp)
Ds_ceil.S19 movw -4(%ebp),%dx
20 orw $0x0800,%dx /* round towards +oo */
21 andw $0xfbff,%dx
22 movw %dx,-8(%ebp)
33 movw -12(%rsp),%dx
34 orw $0x0800,%dx
35 andw $0xfbff,%dx
36 movw %dx,-16(%rsp)
Ds_floorf.S17 movw -4(%ebp),%dx
18 orw $0x0400,%dx /* round towards -oo */
19 andw $0xf7ff,%dx
20 movw %dx,-8(%ebp)
32 movw -8(%rsp),%dx
33 orw $0x0400,%dx
34 andw $0xf7ff,%dx
35 movw %dx,-12(%rsp)
/netbsd/src/sys/arch/hp300/dev/
Ddiofb_mono.c119 uint16_t dx, uint16_t dy, uint16_t cx, uint16_t cy, int16_t rop, in diofb_mono_windowmove() argument
155 pdstLine += (dx >> 5); in diofb_mono_windowmove()
161 dstBit = dx & 0x1f; in diofb_mono_windowmove()
169 maskbits(dx, cx, startmask, endmask, nlMiddle); in diofb_mono_windowmove()
171 nstart = 32 - (dx & 0x1f); in diofb_mono_windowmove()
175 nend = (dx + cx) & 0x1f; in diofb_mono_windowmove()
182 if (sx >= dx) { /* move left to right */ in diofb_mono_windowmove()
183 pdstLine += (dx >> 5); in diofb_mono_windowmove()
192 (dx & 0x1f), nstart, pdst, rop); in diofb_mono_windowmove()
231 pdstLine += ((dx + cx) >> 5); in diofb_mono_windowmove()
[all …]
/netbsd/src/lib/libm/src/
Ds_cbrtl.c40 double dr, dt, dx; in cbrtl() local
98 dx = x; in cbrtl()
101 dt = dt * (dx + dx + dr) / (dx + dr + dr); in cbrtl()
105 dt = dt * (dx + dx + dr) / (dx + dr + dr); in cbrtl()
/netbsd/src/games/robots/
Dauto.c218 move_towards(int dx, int dy) in move_towards() argument
229 move_judge = ABS(mvx - dx) + ABS(mvy - dy); in move_towards()
233 cur_judge = ABS(mvx - dx) + ABS(mvy - dy); in move_towards()
249 int dx, dy; in move_away() local
251 dx = sign(My_pos.x - rob->x); in move_away()
253 return move_towards(dx, dy); in move_away()
263 int dx, dy; in move_between() local
273 dx = - sign(My_pos.x - hp->x); in move_between()
283 dx = sign(My_pos.x - rob->x); in move_between()
297 dx = sign(My_pos.x - rob->x); in move_between()
[all …]
/netbsd/src/sys/dev/rcons/
Draster_op.c558 raster_op(struct raster* dst, int dx, int dy, int w, int h, int rop, in raster_op() argument
587 if ( dx < 0 ) in raster_op()
589 w += dx; in raster_op()
590 sx -= dx; in raster_op()
591 dx = 0; in raster_op()
599 if ( dx + w > dst->width ) in raster_op()
600 w = dst->width - dx; in raster_op()
607 return raster_op_noclip( dst, dx, dy, w, h, rop, src, sx, sy ); in raster_op()
615 if ( dx < 0 ) in raster_op()
617 w += dx; in raster_op()
[all …]
/netbsd/src/lib/libcurses/
Dmvwin.c52 mvderwin(WINDOW *win, int dy, int dx) in mvderwin() argument
66 if (((win->maxx + dx) > parent->maxx) || in mvderwin()
71 win->derx = dx; in mvderwin()
74 x = parent->begx + dx; in mvderwin()
103 int dy, dx; in mvwin() local
112 dx = bx - win->begx; in mvwin()
118 win->begx += dx; in mvwin()
125 if (bx < orig->begx || win->maxx + dx > orig->maxx) in mvwin()
/netbsd/src/sys/arch/i386/stand/fatboot/
Dfatboot.S115 push %dx /* save drive at -2(%bp) */
144 xchg %ax,%dx /* FAT size now in %edx */
154 push %dx
156 mov $0x20, %dx
157 mul %dx
159 add $0xffff, %dx /* Set carry if remainder non-zero */
161 pop %dx
249 push %dx
250 xor %dx, %dx
252 mov %dx, %bx /* Entry in FAT block */
[all …]
/netbsd/src/sys/arch/i386/i386/
Dbusfunc.S51 inb %dx, %al
69 inw %dx, %ax
86 inl %dx, %eax
108 outb %al, %dx
126 outw %ax, %dx
144 outl %eax, %dx
166 insb %dx, %es:(%edi)
194 insw %dx, %es:(%edi)
222 insl %dx, %es:(%edi)
254 outsb %ds:(%esi), %dx
[all …]
/netbsd/src/sys/arch/amd64/amd64/
Dbusfunc.S55 inb %dx, %al
73 inw %dx, %ax
90 inl %dx, %eax
125 outb %al, %dx
141 outw %ax, %dx
157 outl %eax, %dx
189 insb %dx, %es:(%rdi)
212 insw %dx, %es:(%rdi)
235 insl %dx, %es:(%rdi)
281 outsb %ds:(%rsi), %dx
[all …]
/netbsd/src/sys/dev/hil/
Dhilms.c222 int dx, dy, dz, button; in hilms_callback() local
262 dx = *buf++; in hilms_callback()
263 dx |= (*buf++) << 8; in hilms_callback()
265 dx = (int16_t)dx; in hilms_callback()
267 dx = *buf++; in hilms_callback()
269 dx = (int8_t)dx; in hilms_callback()
305 dx = dy = dz = flags = 0; in hilms_callback()
336 sc->sc_buttonstate, dx, dy, dz, 0, flags); in hilms_callback()

12345678910