| /freebsd-9-stable/contrib/groff/src/devices/xditview/ |
| D | draw.c | 21 #define DeviceToX(dw, n) ((int)((n) * (dw)->dvi.scale_factor + .5)) argument 22 #define XPos(dw) (DeviceToX((dw), (dw)->dvi.state->x - \ argument 23 (dw)->dvi.text_device_width) + (dw)->dvi.text_x_width) 24 #define YPos(dw) (DeviceToX((dw), (dw)->dvi.state->y)) argument 32 HorizontalMove(DviWidget dw, int delta) in HorizontalMove() argument 34 dw->dvi.state->x += delta; in HorizontalMove() 38 HorizontalGoto(DviWidget dw, int NewPosition) in HorizontalGoto() argument 40 dw->dvi.state->x = NewPosition; in HorizontalGoto() 44 VerticalMove(DviWidget dw, int delta) in VerticalMove() argument 46 dw->dvi.state->y += delta; in VerticalMove() [all …]
|
| D | parse.c | 51 #define HorizontalMove(dw, delta) ((dw)->dvi.state->x += (delta)) argument 55 ParseInput(register DviWidget dw) in ParseInput() argument 69 if (!dw->dvi.state) in ParseInput() 70 push_env (dw); in ParseInput() 72 switch (DviGetC(dw, &c)) { in ParseInput() 79 push_env(dw); in ParseInput() 82 pop_env(dw); in ParseInput() 89 HorizontalMove(dw, (c-'0')*10 + in ParseInput() 90 DviGetC(dw,&otherc)-'0'); in ParseInput() 93 DviGetC(dw,&c); in ParseInput() [all …]
|
| D | Dvi.c | 60 #define MY_WIDTH(dw) ((int)(dw->dvi.paperwidth * dw->dvi.scale_factor + .5)) argument 61 #define MY_HEIGHT(dw) ((int)(dw->dvi.paperlength * dw->dvi.scale_factor + .5)) argument 200 DviWidget dw = (DviWidget) new_wd; in Initialize() local 202 dw->dvi.current_page = 0; in Initialize() 203 dw->dvi.font_map = 0; in Initialize() 204 dw->dvi.cache.index = 0; in Initialize() 205 dw->dvi.text_x_width = 0; in Initialize() 206 dw->dvi.text_device_width = 0; in Initialize() 207 dw->dvi.word_flag = 0; in Initialize() 208 dw->dvi.file = 0; in Initialize() [all …]
|
| D | font.c | 33 LookupFontByPosition (DviWidget dw, int position) in LookupFontByPosition() argument 37 for (f = dw->dvi.fonts; f; f = f->next) in LookupFontByPosition() 44 MaxFontPosition (DviWidget dw) in MaxFontPosition() argument 49 for (f = dw->dvi.fonts; f; f = f->next) in MaxFontPosition() 56 LookupFontSizeBySize (DviWidget dw, DviFontList *f, int size) in LookupFontSizeBySize() argument 66 decipointsize = (10*size)/dw->dvi.sizescale; in LookupFontSizeBySize() 79 fontName.ResolutionX = dw->dvi.display_resolution; in LookupFontSizeBySize() 80 fontName.ResolutionY = dw->dvi.display_resolution; in LookupFontSizeBySize() 89 if (dw->dvi.sizescale*fs->size <= 10*size in LookupFontSizeBySize() 139 InstallFontSizes (DviWidget dw, const char *x_name, Boolean *scalablep) in InstallFontSizes() argument [all …]
|
| D | page.c | 19 MapPageNumberToFileMap (DviWidget dw, int number) in MapPageNumberToFileMap() argument 23 for (m = dw->dvi.file_map; m; m=m->next) in MapPageNumberToFileMap() 41 ForgetPagePositions (DviWidget dw) in ForgetPagePositions() argument 43 DestroyFileMap (dw->dvi.file_map); in ForgetPagePositions() 44 dw->dvi.file_map = 0; in ForgetPagePositions() 48 RememberPagePosition(DviWidget dw, int number) in RememberPagePosition() argument 52 if (!(m = MapPageNumberToFileMap (dw, number))) { in RememberPagePosition() 55 m->next = dw->dvi.file_map; in RememberPagePosition() 56 dw->dvi.file_map = m; in RememberPagePosition() 58 if (dw->dvi.tmpFile) in RememberPagePosition() [all …]
|
| D | lex.c | 8 DviGetAndPut(DviWidget dw, int *cp) in DviGetAndPut() argument 10 if (dw->dvi.ungot) { in DviGetAndPut() 11 dw->dvi.ungot = 0; in DviGetAndPut() 12 *cp = getc (dw->dvi.file); in DviGetAndPut() 15 *cp = getc (dw->dvi.file); in DviGetAndPut() 17 putc (*cp, dw->dvi.tmpFile); in DviGetAndPut() 23 GetLine(DviWidget dw, char *Buffer, int Length) in GetLine() argument 29 while (DviGetC (dw, &c) != EOF) { in GetLine() 33 DviUngetC(dw, c); in GetLine() 43 GetWord(DviWidget dw, char *Buffer, int Length) in GetWord() argument [all …]
|
| D | DviP.h | 186 #define DviGetIn(dw,cp)\ argument 187 (dw->dvi.tmpFile ? (\ 188 DviGetAndPut (dw, cp) \ 190 (*cp = getc (dw->dvi.file))\ 193 #define DviGetC(dw, cp)\ argument 194 (dw->dvi.readingTmp ? (\ 195 ((*cp = getc (dw->dvi.tmpFile)) == EOF) ? (\ 196 fseek (dw->dvi.tmpFile, 0l, 2),\ 197 (dw->dvi.readingTmp = 0),\ 198 DviGetIn (dw,cp)\ [all …]
|
| /freebsd-9-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| D | dwarf.c | 147 mfgtid_next(dwarf_t *dw) in mfgtid_next() argument 149 return (++dw->dw_mfgtid_last); in mfgtid_next() 153 tdesc_add(dwarf_t *dw, tdesc_t *tdp) in tdesc_add() argument 155 hash_add(dw->dw_tidhash, tdp); in tdesc_add() 159 tdesc_lookup(dwarf_t *dw, int tid) in tdesc_lookup() argument 166 if (hash_find(dw->dw_tidhash, &tmpl, &tdp)) in tdesc_lookup() 266 die_off(dwarf_t *dw, Dwarf_Die die) in die_off() argument 270 if (dwarf_dieoffset(die, &off, &dw->dw_err) == DW_DLV_OK) in die_off() 274 dwarf_errmsg(&dw->dw_err)); in die_off() 280 die_sibling(dwarf_t *dw, Dwarf_Die die) in die_sibling() argument [all …]
|
| /freebsd-9-stable/crypto/openssl/crypto/camellia/ |
| D | camellia.c | 478 u32 kw4l, kw4r, dw, tl, tr; in camellia_setup128() local 617 dw = subl(1) & subl(9), subr(1) ^= CAMELLIA_RL1(dw); /* modified for in camellia_setup128() 629 dw = subl(1) & subl(17), subr(1) ^= CAMELLIA_RL1(dw); /* modified for in camellia_setup128() 657 dw = kw4l & subl(16), kw4r ^= CAMELLIA_RL1(dw); /* modified for FL(kl3) */ in camellia_setup128() 668 dw = kw4l & subl(8), kw4r ^= CAMELLIA_RL1(dw); /* modified for FL(kl1) */ in camellia_setup128() 696 dw = tl & subl(8), /* FL(kl1) */ in camellia_setup128() 697 tr = subr(10) ^ CAMELLIA_RL1(dw); in camellia_setup128() 705 dw = tl & subl(9), /* FLinv(kl2) */ in camellia_setup128() 706 tr = subr(7) ^ CAMELLIA_RL1(dw); in camellia_setup128() 718 dw = tl & subl(16), /* FL(kl3) */ in camellia_setup128() [all …]
|
| /freebsd-9-stable/sys/crypto/camellia/ |
| D | camellia.c | 444 uint32_t kw4l, kw4r, dw, tl, tr; in camellia_setup128() local 520 dw = subl(1) & subl(9), subr(1) ^= CAMELLIA_RL1(dw); in camellia_setup128() 525 dw = subl(1) & subl(17), subr(1) ^= CAMELLIA_RL1(dw); in camellia_setup128() 537 dw = kw4l & subl(16), kw4r ^= CAMELLIA_RL1(dw); in camellia_setup128() 542 dw = kw4l & subl(8), kw4r ^= CAMELLIA_RL1(dw); in camellia_setup128() 562 dw = tl & subl(8), tr = subr(10) ^ CAMELLIA_RL1(dw); in camellia_setup128() 570 dw = tl & subl(9), tr = subr(7) ^ CAMELLIA_RL1(dw); in camellia_setup128() 582 dw = tl & subl(16), tr = subr(18) ^ CAMELLIA_RL1(dw); in camellia_setup128() 590 dw = tl & subl(17), tr = subr(15) ^ CAMELLIA_RL1(dw); in camellia_setup128() 607 dw = SUBL(2) ^ SUBR(2), dw = CAMELLIA_RL8(dw); in camellia_setup128() [all …]
|
| /freebsd-9-stable/sys/dev/mge/ |
| D | if_mge.c | 134 struct mge_desc_wrapper *dw); 405 struct mge_desc_wrapper *dw; in mge_alloc_desc_dma() local 411 dw = &(tab[i]); in mge_alloc_desc_dma() 413 (void**)&(dw->mge_desc), in mge_alloc_desc_dma() 415 &(dw->desc_dmap)); in mge_alloc_desc_dma() 419 dw->mge_desc = NULL; in mge_alloc_desc_dma() 423 error = bus_dmamap_load(sc->mge_desc_dtag, dw->desc_dmap, in mge_alloc_desc_dma() 424 dw->mge_desc, sizeof(struct mge_desc), mge_get_dma_addr, in mge_alloc_desc_dma() 425 &(dw->mge_desc_paddr), BUS_DMA_NOWAIT); in mge_alloc_desc_dma() 429 bus_dmamem_free(sc->mge_desc_dtag, dw->mge_desc, in mge_alloc_desc_dma() [all …]
|
| /freebsd-9-stable/usr.sbin/makefs/cd9660/ |
| D | cd9660_conversion.c | 99 cd9660_bothendian_dword(uint32_t dw, unsigned char *eightchar) in cd9660_bothendian_dword() argument 103 le = dw; in cd9660_bothendian_dword() 104 be = bswap32(dw); in cd9660_bothendian_dword() 107 be = dw; in cd9660_bothendian_dword() 108 le = bswap32(dw); in cd9660_bothendian_dword() 121 cd9660_bothendian_word(uint16_t dw, unsigned char *fourchar) in cd9660_bothendian_word() argument 125 le = dw; in cd9660_bothendian_word() 126 be = bswap16(dw); in cd9660_bothendian_word() 129 be = dw; in cd9660_bothendian_word() 130 le = bswap16(dw); in cd9660_bothendian_word()
|
| /freebsd-9-stable/contrib/dialog/ |
| D | util.c | 78 #define UseShadow(dw) ((dw) != 0 && (dw)->normal != 0 && (dw)->shadow != 0) argument 1366 window_at_cell(DIALOG_WINDOWS * dw, int y, int x) in window_at_cell() argument 1370 int y_want = y + getbegy(dw->shadow); in window_at_cell() 1371 int x_want = x + getbegx(dw->shadow); in window_at_cell() 1374 if (dw->normal != p->normal in window_at_cell() 1375 && dw->shadow != p->normal in window_at_cell() 1421 last_shadow(DIALOG_WINDOWS * dw, int y, int x) in last_shadow() argument 1427 if (p->normal != dw->normal in last_shadow() 1428 && in_shadow(p->normal, dw->shadow, y, x)) { in last_shadow() 1437 repaint_cell(DIALOG_WINDOWS * dw, bool draw, int y, int x) in repaint_cell() argument [all …]
|
| /freebsd-9-stable/usr.bin/ncal/ |
| D | ncal.c | 767 int dw; /* width of numbers */ in mkmonthr() local 806 dw = 4; in mkmonthr() 809 dw = 3; in mkmonthr() 819 for (j = firstm + i, k = 0; j < last; j += 7, k += dw) { in mkmonthr() 828 ds + dt.d * dw, dw, &l); in mkmonthr() 831 ds + dt.d * dw, dw); in mkmonthr() 833 memcpy(mlines->lines[i] + k + l, " ", dw); in mkmonthr() 841 for (j = firstm, k = 0; j < last; k += dw, j += 7) in mkmonthr() 843 memset(mlines->weeks + k, ' ', dw); in mkmonthr() 846 ds + week(j, &i)*dw, dw); in mkmonthr() [all …]
|
| /freebsd-9-stable/lib/libutil/ |
| D | login_times.c | 36 const char *dw; member 83 while (dws[i].dw && strncmp(p, dws[i].dw, dws[i].cn) != 0) in parse_lt() 85 if (dws[i].dw == NULL) in parse_lt()
|
| /freebsd-9-stable/sys/contrib/ia64/libuwx/src/ |
| D | uwx_swap.c | 46 void uwx_swap8(uint64_t *dw) in uwx_swap8() argument 51 p = (unsigned char *) dw; in uwx_swap8()
|
| /freebsd-9-stable/contrib/amd/amq/ |
| D | amq.c | 91 int dw = strlen(mt->mt_directory); in show_mti() local 95 if (dw > *dwid) in show_mti() 96 *dwid = dw; in show_mti() 216 int dw = strlen(mi->mi_mountpt); in show_mi() local 220 if (dw > *dwid) in show_mi() 221 *dwid = dw; in show_mi()
|
| /freebsd-9-stable/sys/dev/oce/ |
| D | oce_hw.h | 593 uint32_t dw[59]; member 664 uint32_t dw[4]; member 721 uint32_t dw[4]; member 748 uint32_t dw[6]; member 964 uint32_t dw[4]; member 1092 uint32_t dw; member 1148 uint32_t dw[2]; member 1172 uint32_t dw[49]; member 1215 uint32_t dw[4]; member 1231 uint32_t dw; member [all …]
|
| /freebsd-9-stable/contrib/gcclibs/libdecnumber/ |
| D | decimal32.c | 80 decNumber dw; /* work */ in decimal32FromNumber() local 97 decNumberPlus (&dw, dn, &dc); /* (round and check) */ in decimal32FromNumber() 100 dn = &dw; /* use the work number */ in decimal32FromNumber()
|
| D | decimal128.c | 80 decNumber dw; /* work */ in decimal128FromNumber() local 97 decNumberPlus (&dw, dn, &dc); /* (round and check) */ in decimal128FromNumber() 100 dn = &dw; /* use the work number */ in decimal128FromNumber()
|
| D | decimal64.c | 80 decNumber dw; /* work */ in decimal64FromNumber() local 97 decNumberPlus (&dw, dn, &dc); /* (round and check) */ in decimal64FromNumber() 100 dn = &dw; /* use the work number */ in decimal64FromNumber()
|
| /freebsd-9-stable/contrib/gcc/ |
| D | sched-deps.c | 397 dw_t dw; in add_or_update_back_dep_1() local 399 dw = estimate_dep_weak (mem1, mem2); in add_or_update_back_dep_1() 400 ds = set_dep_weak (ds, BEGIN_DATA, dw); in add_or_update_back_dep_1() 2075 set_dep_weak (ds_t ds, ds_t type, dw_t dw) in set_dep_weak() argument 2077 gcc_assert (MIN_DEP_WEAK <= dw && dw <= MAX_DEP_WEAK); in set_dep_weak() 2082 case BEGIN_DATA: ds |= ((ds_t) dw) << BEGIN_DATA_BITS_OFFSET; break; in set_dep_weak() 2083 case BE_IN_DATA: ds |= ((ds_t) dw) << BE_IN_DATA_BITS_OFFSET; break; in set_dep_weak() 2084 case BEGIN_CONTROL: ds |= ((ds_t) dw) << BEGIN_CONTROL_BITS_OFFSET; break; in set_dep_weak() 2085 case BE_IN_CONTROL: ds |= ((ds_t) dw) << BE_IN_CONTROL_BITS_OFFSET; break; in set_dep_weak() 2110 ds_t dw; in ds_merge() local [all …]
|
| /freebsd-9-stable/sys/geom/bde/ |
| D | g_bde.c | 94 g_bde_access(struct g_provider *pp, int dr, int dw, int de) in g_bde_access() argument 106 if ((cp->acr + dr) == 0 && (cp->acw + dw) == 0 && (cp->ace + de) == 1) { in g_bde_access() 110 return (g_access(cp, dr, dw, de)); in g_bde_access()
|
| /freebsd-9-stable/sys/geom/ |
| D | geom_fox.c | 286 g_fox_access(struct g_provider *pp, int dr, int dw, int de) in g_fox_access() argument 297 if (dr <= 0 && dw <= 0 && de <= 0) in g_fox_access() 329 error = g_access(sc->path, dr, dw, de); in g_fox_access() 332 sc->cw += dw; in g_fox_access()
|
| D | geom_slice.c | 89 g_slice_access(struct g_provider *pp, int dr, int dw, int de) in g_slice_access() argument 103 if (dr > 0 || dw > 0 || de > 0) { in g_slice_access() 117 if ((pp->acw + dw) > 0 && pp2->ace > 0) in g_slice_access() 127 if ((cp->acr + dr) == 0 && (cp->acw + dw) == 0 && (cp->ace + de) == 1) in g_slice_access() 129 error = g_access(cp, dr, dw, de); in g_slice_access()
|