/src/libexec/ld.elf_so/ |
xmalloc.c | 181 unsigned amt; local in function:imalloc 201 amt = sizeof(union overhead); 202 while (pagesz > amt) { 203 amt <<= 1; 216 amt = sizeof(union overhead) * 2; 219 amt = sizeof(union overhead); /* size of first bucket */ 224 amt = pagesz; 227 while (nbytes > amt + n) { 228 amt <<= 1; 229 if (amt == 0 269 size_t amt; \/* amount to allocate *\/ local in function:morecore [all...] |
/src/usr.sbin/lpr/lpd/ |
recvjob.c | 216 int i, j, amt; local in function:readfile 225 amt = BUFSIZ; 227 if (i + amt > size) 228 amt = size - i; 230 j = read(STDOUT_FILENO, cp, amt); 233 amt -= j; 235 } while (amt > 0); 236 amt = BUFSIZ; 237 if (i + amt > size) 238 amt = size - i [all...] |
printjob.c | 887 int f, i, amt; local in function:sendfile 928 amt = snprintf(buf, sizeof(buf), "%c%lld %s\n", type, 931 if (write(pfd, buf, amt) != amt || 950 amt = BUFSIZ; 951 if (i + amt > stb.st_size) 952 amt = stb.st_size - i; 953 if (sizerr == 0 && read(f, buf, amt) != amt) 961 if (write(pfd, buf, amt) != amt) [all...] |
/src/lib/libbsdmalloc/ |
malloc.c | 183 unsigned amt; local in function:malloc 205 amt = 8; 206 while (pagesz > amt) { 207 amt <<= 1; 219 amt = 8; /* size of first bucket */ 222 amt = 16; /* size of first bucket */ 227 amt = (unsigned)pagesz; 230 while (nbytes > amt + n) { 231 amt <<= 1; 232 if (amt == 0 275 long amt; \/* amount to allocate *\/ local in function:morecore [all...] |
/src/games/larn/ |
action.c | 167 long amt; local in function:act_donation_pray 175 amt = readnum((long) c[GOLD]); 176 if (amt < 0 || c[GOLD] < amt) { 180 c[GOLD] -= amt; 181 if (amt < c[GOLD] / 10 || amt < rnd(50)) {
|
store.c | 583 long amt; local in function:obanksub 632 amt = readnum((long) c[GOLD]); 633 if (amt < 0) { 636 amt = 0; 637 } else if (amt > c[GOLD]) { 641 c[GOLD] -= amt; 642 c[BANKACCOUNT] += amt; 648 amt = readnum((long) c[BANKACCOUNT]); 649 if (amt < 0) { 652 amt = 0 858 long amt; local in function:olrs [all...] |
main.c | 1123 long amt; local in function:dropobj 1139 if ((amt = readnum((long) c[GOLD])) == 0) 1141 if (amt > c[GOLD]) { 1145 if (amt <= 32767) { 1147 i = amt; 1148 } else if (amt <= 327670L) { 1150 i = amt / 10; 1151 amt = 10 * i; 1152 } else if (amt <= 3276700L) { 1154 i = amt / 100 1307 unsigned long amt = 0; local in function:readnum [all...] |
scores.c | 229 long amt; local in function:paytaxes 239 amt = winr[i].taxes; 240 if (x < amt) 241 amt = x; /* don't overpay taxes 243 winr[i].taxes -= amt; 244 outstanding_taxes -= amt; 248 return (amt);
|
monster.c | 63 * hitm(x,y,amt) Function to just hit a monster at a given coordinates 64 * int x,y,amt; 1163 * hitm(x,y,amt) Function to just hit a monster at a given coordinates 1164 * int x,y,amt; 1171 hitm(int x, int y, int amt) 1176 amt2 = amt; /* save initial damage so we can return it */ 1179 amt >>= 1; /* if half damage curse adjust damage points */ 1180 if (amt <= 0) 1181 amt2 = amt = 1; 1194 amt *= 1 + (c[SLAYING] << 1) [all...] |
/src/games/adventure/ |
save.c | 236 size_t pos, amt, i; local in function:savefile_binread 241 amt = len - pos; 242 if (amt > sizeof(buf) / 2) { 243 amt = sizeof(buf) / 2; 245 if (savefile_bintextread(sf, buf, amt*2)) { 248 for (i=0; i<amt; i++) { 268 size_t pos, amt; local in function:savefile_bintextwrite 274 amt = BINTEXT_WIDTH - sf->bintextpos; 275 if (amt > len - pos) { 276 amt = len - pos 396 size_t pos, amt, i; local in function:savefile_cread 428 size_t pos, amt, i; local in function:savefile_cwrite [all...] |
/src/usr.bin/tftp/ |
tftpsubs.c | 114 size_t amt, 124 read_ahead(file, amt, convert); /* fill it */ 137 size_t amt, /* number of bytes to read */ 154 b->counter = read(fileno(file), dp->th_data, amt); 159 for (i = 0 ; i < amt; i++) {
|
/src/sys/dev/scsipi/ |
ses.c | 128 #define SES_MALLOC(amt) malloc(amt, M_DEVBUF, M_NOWAIT) 129 #define SES_FREE(ptr, amt) free(ptr, M_DEVBUF) 130 #define MEMZERO(dest, amt) memset(dest, 0, amt) 131 #define MEMCPY(dest, src, amt) memcpy(dest, src, amt) 934 int err, amt, i, nobj, ntype, maxima; local in function:ses_getconfig 949 amt = SCSZ; 950 err = ses_runcmd(ssc, cdb, 6, sdata, &amt); 1079 int err, amt, bufsiz, tidx, oidx; local in function:ses_getputstat 1580 int err, amt; local in function:safte_init_enc 1801 int err, amt; local in function:safte_getconfig 1842 int err, oid, r, i, hiwater, nitems, amt; local in function:safte_rdstat 2313 int err, amt; local in function:wrbuf16 2347 int i, amt; local in function:wrslot_stat 2389 int err, amt; local in function:perf_slotop [all...] |
/src/bin/rcp/ |
rcp.c | 337 off_t amt; local in function:source 398 amt = bp->cnt; 399 if (i + amt > stb.st_size) 400 amt = stb.st_size - i; 401 for (resid = (size_t)amt, cp = bp->buf; resid > 0; 409 for (resid = (size_t)amt, cp = bp->buf; resid > 0; 492 off_t amt; local in function:sink 676 amt = bp->cnt; 677 if (i + amt > size) 678 amt = size - i [all...] |
/src/sys/arch/mac68k/nubus/ |
nubus.c | 500 nubus_adjust_ptr(u_int8_t lanes, u_long base, long amt) 504 if (!amt) 507 if (amt < 0) { 508 amt = -amt; 512 while (amt) { 517 amt--; 525 while (amt) { 530 amt--;
|
/src/sys/dev/ic/ |
mpt.c | 626 size_t amt; local in function:mpt_read_cfg_page 636 amt = (cfgp->Header.PageLength * sizeof (u_int32_t)); 641 MPI_pSGE_SET_LENGTH(se, amt); 675 amt = sizeof (fCONFIG_PAGE_SCSI_PORT_0); 678 amt = sizeof (fCONFIG_PAGE_SCSI_PORT_1); 681 amt = sizeof (fCONFIG_PAGE_SCSI_PORT_2); 684 amt = sizeof (fCONFIG_PAGE_SCSI_DEVICE_0); 687 amt = sizeof (fCONFIG_PAGE_SCSI_DEVICE_1); 689 memcpy(hdr, (char *)req->req_vbuf + CFG_DATA_OFF, amt); 701 size_t amt; local in function:mpt_write_cfg_page [all...] |
isp.c | 1969 size_t amt = 0; local in function:isp_fibre_init_2400 1978 amt = ICB2400_VPINFO_OFF + sizeof (isp_icb_2400_vpinfo_t); 1999 amt += ICB2400_VPOPT_WRITE_SIZE; 7704 int i, amt, retval; local in function:isp_read_nvram 7716 amt = ISP2100_NVRAM_SIZE; 7719 amt = ISP1080_NVRAM_SIZE; 7722 amt = ISP_NVRAM_SIZE; 7726 for (i = 0; i < amt>>1; i++) { 7740 for (csum = 0, i = 0; i < amt; i++) {
|
isp_library.c | 342 int amt, i, j; local in function:isp_print_qentry 346 for (buf[0] = 0, amt = i = 0; i < 4; i++) { 350 ISP_SNPRINTF(buf, TBA, "%s %02x", buf, ptr[amt++] & 0xff); 357 isp_print_bytes(ispsoftc_t *isp, const char *msg, int amt, void *arg) 367 while (off < amt) { 372 if (off == amt) {
|
/src/usr.bin/rdist/ |
server.c | 529 int amt = BUFSIZ; local in function:sendf 530 if (i + amt > stb.st_size) 531 amt = stb.st_size - i; 532 if (sizerr == 0 && read(f, buf, amt) != amt) 534 if (write(rem, buf, amt) < 0) 908 int amt = BUFSIZ; local in function:recvf 911 if (i + amt > size) 912 amt = size - i; 914 int j = read(rem, cp, amt); [all...] |
/src/games/tetris/ |
scores.c | 256 size_t amt; local in function:readname 258 amt = maxto < maxfrom ? maxto : maxfrom; 259 memcpy(to, from, amt);
|
/src/lib/libform/ |
internals.c | 97 _formi_hscroll_back(FIELD *field, _FORMI_FIELD_LINES *row, unsigned int amt); 99 _formi_hscroll_fwd(FIELD *field, _FORMI_FIELD_LINES *row, unsigned int amt); 101 _formi_scroll_back(FIELD *field, unsigned int amt); 103 _formi_scroll_fwd(FIELD *field, unsigned int amt); 1309 _formi_scroll_fwd(FIELD *field, unsigned int amt) 1329 * and the end_row at the same time for amt lines, we stop when 1333 count = amt; 1345 _formi_scroll_back(FIELD *field, unsigned int amt) 1357 count = amt; 1368 _formi_hscroll_fwd(FIELD *field, _FORMI_FIELD_LINES *row, int unsigned amt) [all...] |
/src/games/hunt/huntd/ |
driver.c | 535 checkdam(PLAYER *ouch, PLAYER *gotcha, IDENT *credit, int amt, 548 amt = (amt + 1) / 2; 556 ouch->p_damage += amt;
|
/src/usr.sbin/sunlabel/ |
sunlabel.c | 213 static inline uint32_t how_many(uint32_t amt, uint32_t unit) 216 how_many(uint32_t amt, uint32_t unit) 218 return ((amt + unit - 1) / unit);
|
/src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/hisilicon/ |
hip06.dtsi | 648 hip06-sas-v2-quirk-amt;
|
/src/common/lib/libx86emu/ |
x86emu.c | 3040 uint8_t destval, amt; local in function:x86emuOp_opcC0_byte_RM_MEM 3049 destval = decode_and_fetch_byte_imm8(emu, &amt); 3050 destval = (*opcD0_byte_operation[emu->cur_rh]) (emu, destval, amt); 3086 uint8_t amt; local in function:x86emuOp_opcC1_word_RM_MEM 3097 destval = decode_and_fetch_long_imm8(emu, &amt); 3098 destval = (*opcD1_long_operation[emu->cur_rh]) (emu, destval, amt); 3103 destval = decode_and_fetch_word_imm8(emu, &amt); 3104 destval = (*opcD1_word_operation[emu->cur_rh]) (emu, destval, amt);
|
/src/sys/dev/pci/ |
pciconf.c | 866 pci_allocate_range(struct pciconf_resource * const r, const uint64_t amt, 869 vmem_size_t const size = (vmem_size_t) amt;
|