/titanic_44/usr/src/lib/libbsdmalloc/common/ |
H A D | malloc.bsd43.c | 102 size_t amt; in malloc() local 130 amt = (1UL << EXP); in malloc() 131 while (pagesz > amt) { in malloc() 132 amt <<= 1; in malloc() 143 amt = (1UL << EXP); /* size of first bucket */ in malloc() 147 amt = pagesz; in malloc() 150 while (nbytes > amt + n) { in malloc() 151 amt <<= 1; in malloc() 152 if (amt == 0) in malloc() 180 ssize_t amt; /* amount to allocate */ in morecore() local [all …]
|
/titanic_44/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_sata.c | 32 SATAcopy(pmcs_cmd_t *sp, void *kbuf, uint32_t amt) in SATAcopy() argument 38 (void) memcpy(bp->b_un.b_addr, kbuf, amt); in SATAcopy() 39 CMD2PKT(sp)->pkt_resid -= amt; in SATAcopy() 67 uint32_t amt = 0; in pmcs_sata_special_work() local 213 amt = 7; in pmcs_sata_special_work() 225 amt = 24; in pmcs_sata_special_work() 243 amt = 16; in pmcs_sata_special_work() 271 amt = 68; in pmcs_sata_special_work() 319 amt = 36; in pmcs_sata_special_work() 321 amt = pmcs_set_resid(pkt, amt, pkt->pkt_cdbp[4]); in pmcs_sata_special_work() [all …]
|
H A D | pmcs_intr.c | 104 pmcs_complete_work(pmcs_hw_t *pwp, pmcwork_t *pwrk, uint32_t *iomb, size_t amt) in pmcs_complete_work() argument 120 pmcs_complete_work_impl(pwp, pwrk, iomb, amt); in pmcs_complete_work() 164 pmcs_process_io_completion(pmcs_hw_t *pwp, pmcs_iocomp_cb_t *ioccb, size_t amt) in pmcs_process_io_completion() argument 195 if (pwrk->arg && amt) { in pmcs_process_io_completion() 196 (void) memcpy(pwrk->arg, ioccb->iomb, amt); in pmcs_process_io_completion() 237 pmcs_process_completion(pmcs_hw_t *pwp, void *iomb, size_t amt) in pmcs_process_completion() argument 248 pmcs_complete_work(pwp, pwrk, iomb, amt); in pmcs_process_completion() 290 pmcs_process_sas_hw_event(pmcs_hw_t *pwp, void *iomb, size_t amt) in pmcs_process_sas_hw_event() argument 325 pmcs_process_completion(pwp, iomb, amt); in pmcs_process_sas_hw_event() 980 pmcs_process_completion(pwp, iomb, amt); in pmcs_process_sas_hw_event() [all …]
|
H A D | pmcs_nvram.c | 332 uint32_t len, seg, off, result, amt, msg[PMCS_MSG_SIZE], *ptr; in pmcs_flash_chunk() local 339 amt = PMCS_SCRATCH_SIZE; in pmcs_flash_chunk() 340 if (off + amt > len) { in pmcs_flash_chunk() 341 amt = len - off; in pmcs_flash_chunk() 345 __func__, seg, off, amt); in pmcs_flash_chunk() 346 (void) memcpy(pwp->scratch, &chunk[off], amt); in pmcs_flash_chunk() 356 msg[3] = LE_32(amt); in pmcs_flash_chunk() 371 msg[14] = LE_32(amt); in pmcs_flash_chunk() 439 off += amt; in pmcs_flash_chunk()
|
/titanic_44/usr/src/common/crypto/modes/ |
H A D | modes.c | 89 size_t amt) in crypto_get_ptrs() argument 99 if ((offset + amt) <= iov->iov_len) { in crypto_get_ptrs() 102 *out_data_1_len = amt; in crypto_get_ptrs() 104 *current_offset = offset + amt; in crypto_get_ptrs() 122 if (offset + amt <= iov->iov_len) { in crypto_get_ptrs() 124 *out_data_1_len = amt; in crypto_get_ptrs() 126 *current_offset = offset + amt; in crypto_get_ptrs() 135 *current_offset = amt - *out_data_1_len; in crypto_get_ptrs() 149 if ((p + amt) <= mp->b_wptr) { in crypto_get_ptrs() 151 *out_data_1_len = amt; in crypto_get_ptrs() [all …]
|
/titanic_44/usr/src/uts/common/io/scsi/targets/ |
H A D | ses_ses.c | 227 int err, amt, i, nobj, ntype, maxima; in ses_getconfig() local 257 amt = lp->uscsi_buflen - lp->uscsi_resid; in ses_getconfig() 259 if (ses_cfghdr((uchar_t *)sdata, amt, &cf)) { in ses_getconfig() 264 if (amt < SES_ENCHDR_MINLEN) { in ses_getconfig() 265 SES_LOG(ssc, CE_NOTE, "runt enclosure length (%d)", amt); in ses_getconfig() 285 if (ses_enchdr((uchar_t *)sdata, amt, i, &hd)) { in ses_getconfig() 295 if (ses_encdesc((uchar_t *)sdata, amt, i, cdp)) { in ses_getconfig() 316 if (ses_getthdr((uchar_t *)sdata, amt, i, &thdr)) { in ses_getconfig() 373 if (ses_getthdr((uchar_t *)sdata, amt, i, &thdr)) { in ses_getconfig() 445 int err, amt, bufsiz, tidx, oidx; in ses_getputstat() local [all …]
|
H A D | ses.c | 1388 int amt; in ses_decode_sense() local 1400 amt = min(MAX_SENSE_LENGTH, in ses_decode_sense() 1402 rqlen = min((uchar_t)amt, scmd->uscsi_rqlen); in ses_decode_sense() 1419 amt = MAX_SENSE_LENGTH - arq->sts_rqpkt_resid; in ses_decode_sense() 1422 amt = MAX_SENSE_LENGTH - arq->sts_rqpkt_resid; in ses_decode_sense() 1424 amt = SENSE_LENGTH - arq->sts_rqpkt_resid; in ses_decode_sense() 1432 rqlen = min((uchar_t)amt, scmd->uscsi_rqlen); in ses_decode_sense() 1556 if (amt > 3) { in ses_decode_sense() 1557 p = (char *)devp->sd_sense + amt; in ses_decode_sense() 1558 for (j = amt; j > 3; j--) { in ses_decode_sense() [all …]
|
H A D | sgen.c | 1728 int amt; in sgen_handle_autosense() local 1742 amt = MAX_SENSE_LENGTH - arqstat->sts_rqpkt_resid; in sgen_handle_autosense() 1745 amt = MAX_SENSE_LENGTH - arqstat->sts_rqpkt_resid; in sgen_handle_autosense() 1747 amt = SENSE_LENGTH - arqstat->sts_rqpkt_resid; in sgen_handle_autosense() 1753 uchar_t rqlen = min((uchar_t)amt, ucmd->uscsi_rqlen); in sgen_handle_autosense() 1770 (amt == 0)) { in sgen_handle_autosense() 1786 if (amt < SUN_MIN_SENSE_LENGTH) { in sgen_handle_autosense() 1818 int amt; in sgen_handle_sense() local 1822 amt = MAX_SENSE_LENGTH - rqpkt->pkt_resid; in sgen_handle_sense() 1826 uchar_t rqlen = min((uchar_t)amt, ucmd->uscsi_rqlen); in sgen_handle_sense() [all …]
|
/titanic_44/usr/src/grub/grub-0.97/netboot/ |
H A D | fsys_tftp.c | 543 int amt = buf_read + saved_filepos - filepos; in tftp_read() local 547 if (amt > size) in tftp_read() 548 amt = size; in tftp_read() 550 if (amt > 0) in tftp_read() 553 grub_memmove (addr, buf + filepos - saved_filepos, amt); in tftp_read() 554 size -= amt; in tftp_read() 555 addr += amt; in tftp_read() 556 filepos += amt; in tftp_read() 557 ret += amt; in tftp_read() 771 int amt = buf_read + saved_filepos - filepos; in tftp_read_undi() local [all …]
|
/titanic_44/usr/src/cmd/eqn/ |
H A D | move.c | 21 move(int dir, int amt, int p) in move() argument 27 a = VERT(EM(amt/100.0, EFFPS(ps))); in move() 29 a = VERT((amt+49)/50); /* nearest number of half-lines */ in move()
|
/titanic_44/usr/src/lib/libc/port/gen/ |
H A D | mon.c | 391 size_t amt; in writeBlocks() local 396 amt = ap->monBuffer->nfns * sizeof (struct cnt); in writeBlocks() 399 ok = (write(fd, p, amt) == amt); in writeBlocks() 406 amt = histp->histSize; in writeBlocks() 408 ok = (write(fd, p, amt) == amt); in writeBlocks()
|
/titanic_44/usr/src/lib/libsqlite/src/ |
H A D | btree.h | 83 int (*Key)(BtCursor*, int offset, int amt, char *zBuf); 87 int (*Data)(BtCursor*, int offset, int amt, char *zBuf); 134 #define sqliteBtreeKey(pCur, offset, amt, zBuf)\ argument 135 (btCOps(pCur)->Key(pCur, offset, amt, zBuf)) 139 #define sqliteBtreeData(pCur, offset, amt, zBuf)\ argument 140 (btCOps(pCur)->Data(pCur, offset, amt, zBuf))
|
H A D | os.c | 972 int sqliteOsRead(OsFile *id, void *pBuf, int amt){ in sqliteOsRead() argument 977 got = read(id->fd, pBuf, amt); in sqliteOsRead() 982 if( got==amt ){ in sqliteOsRead() 992 if( !ReadFile(id->h, pBuf, amt, &got, 0) ){ in sqliteOsRead() 995 if( got==(DWORD)amt ){ in sqliteOsRead() 1006 FSReadFork(id->refNum, fsAtMark, 0, (ByteCount)amt, pBuf, (ByteCount*)&got); in sqliteOsRead() 1008 got = amt; in sqliteOsRead() 1011 if( got==amt ){ in sqliteOsRead() 1023 int sqliteOsWrite(OsFile *id, const void *pBuf, int amt){ in sqliteOsWrite() argument 1028 while( amt>0 && (wrote = write(id->fd, pBuf, amt))>0 ){ in sqliteOsWrite() [all …]
|
H A D | os.h | 176 int sqliteOsRead(OsFile*, void*, int amt); 177 int sqliteOsWrite(OsFile*, const void*, int amt);
|
H A D | btree_rb.c | 1178 static int memRbtreeKey(RbtCursor* pCur, int offset, int amt, char *zBuf) in memRbtreeKey() argument 1181 if( !pCur->pNode->pKey || ((amt + offset) <= pCur->pNode->nKey) ){ in memRbtreeKey() 1182 memcpy(zBuf, ((char*)pCur->pNode->pKey)+offset, amt); in memRbtreeKey() 1185 amt = pCur->pNode->nKey-offset; in memRbtreeKey() 1187 return amt; in memRbtreeKey() 1200 static int memRbtreeData(RbtCursor *pCur, int offset, int amt, char *zBuf) in memRbtreeData() argument 1203 if( (amt + offset) <= pCur->pNode->nData ){ in memRbtreeData() 1204 memcpy(zBuf, ((char*)pCur->pNode->pData)+offset, amt); in memRbtreeData() 1207 amt = pCur->pNode->nData-offset; in memRbtreeData() 1209 return amt; in memRbtreeData()
|
H A D | printf.c | 238 int amt; in vxprintf() local 240 amt = 1; in vxprintf() 241 while( (c=(*++fmt))!='%' && c!=0 ) amt++; in vxprintf() 242 (*func)(arg,bufpt,amt); in vxprintf() 243 count += amt; in vxprintf()
|
/titanic_44/usr/src/cmd/ssh/scp/ |
H A D | scp.c | 589 off_t i, amt, result; local 669 amt = bp->cnt; 670 if (i + amt > stb.st_size) 671 amt = stb.st_size - i; 673 result = atomicio(read, fd, bp->buf, amt); 674 if (result != amt) 678 (void) atomicio(write, remout, bp->buf, amt); 680 result = atomicio(write, remout, bp->buf, amt); 681 if (result != amt) 768 int amt, count, exists, first, mask, mode, ofd, omode; local [all …]
|
/titanic_44/usr/src/cmd/amt/ |
H A D | Makefile.com | 27 PROG= amt 28 OBJS= amt.o
|
H A D | Makefile | 31 PROG= amt
|
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | server.c | 521 int amt = RDIST_BUFSIZ; local 522 if (i + amt > stb.st_size) 523 amt = stb.st_size - i; 524 if (sizerr == 0 && read(f, buf, amt) != amt) 526 (void) deswrite(rem, buf, amt, 0); 955 int amt = RDIST_BUFSIZ; local 958 if (i + amt > size) 959 amt = size - i; 961 int j = read(rem, cp, amt); 967 amt -= j; [all …]
|
/titanic_44/usr/src/cmd/awk/ |
H A D | lib.c | 754 init_buf(uchar **optr, size_t *sizep, size_t amt) in init_buf() argument 758 if ((nptr = malloc(amt)) == NULL) in init_buf() 763 *sizep = amt; in init_buf() 771 size_t amt, size = *sizep; in r_expand_buf() local 775 amt = req + 1 - size; in r_expand_buf() 776 amt = (amt / LINE_INCR + 1) * LINE_INCR; in r_expand_buf() 778 if ((nptr = realloc(*optr, size + amt)) == NULL) in r_expand_buf() 783 *sizep += amt; in r_expand_buf()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | rcp.c | 1147 int x, readerr, f, amt; in source() local 1242 amt = bp->cnt; in source() 1243 if (i + amt > stb.st_size) in source() 1244 amt = stb.st_size - i; in source() 1246 read(f, bp->buf, amt) != amt) in source() 1248 (void) desrcpwrite(rem, bp->buf, amt); in source() 1260 amt = MIN(size, SENDFILE_SIZE); in source() 1261 cnt = sendfile(rem, f, &off, amt); in source() 1418 int amt, count, exists, first, mask, mode; in sink() local 1638 amt = RCP_BUFSIZE; in sink() [all …]
|
/titanic_44/usr/src/uts/common/fs/hsfs/ |
H A D | hsfs_node.c | 1197 int amt; in hs_jnamecopy() local 1223 amt = 1; in hs_jnamecopy() 1225 amt = 2; in hs_jnamecopy() 1227 amt = 3; in hs_jnamecopy() 1228 if ((len+amt) > maxsize) { in hs_jnamecopy() 1233 amt = hs_ucs2_2_utf8(c, (uint8_t *)&to[len]); in hs_jnamecopy() 1234 if (amt == 0) { in hs_jnamecopy() 1238 len += amt; in hs_jnamecopy() 1288 int amt; in hs_joliet_cp() local 1299 amt = hs_ucs2_2_utf8(c, (uint8_t *)to); in hs_joliet_cp() [all …]
|
/titanic_44/usr/src/uts/common/io/scsi/impl/ |
H A D | scsi_watch.c | 880 int amt = 0; in scsi_watch_request_intr() local 931 amt = swr->swr_sense_length - in scsi_watch_request_intr() 936 "Auto Request Sense, amt=%x\n", amt); in scsi_watch_request_intr() 948 amt = swr->swr_sense_length - pkt->pkt_resid; in scsi_watch_request_intr() 951 "Request Sense Completed, amt=%x\n", amt); in scsi_watch_request_intr() 981 rqsensep->es_key, rqsensep->es_add_code, amt); in scsi_watch_request_intr() 989 result.actual_sense_length = (uchar_t)amt; in scsi_watch_request_intr()
|
/titanic_44/usr/src/cmd/fs.d/cachefs/fsck/ |
H A D | res.c | 101 unsigned int amt; in res_create() local 135 amt = sizeof (buf); in res_create() 136 if (amt > cnt) in res_create() 137 amt = cnt; in res_create() 138 result = write(fd, buf, amt); in res_create()
|