Searched defs:amt (Results 1 - 25 of 32) sorted by relevance

12

/illumos-gate/usr/src/cmd/eqn/
H A Dmove.c21 move(int dir, int amt, int p) argument
27 a = VERT(EM(amt/100.0, EFFPS(ps)));
29 a = VERT((amt+49)/50); /* nearest number of half-lines */
39 printf(".\tmove %d dir %d amt %d; h=%d b=%d\n",
/illumos-gate/usr/src/common/crypto/modes/
H A Dmodes.c89 size_t amt)
99 if ((offset + amt) <= iov->iov_len) {
102 *out_data_1_len = amt;
104 *current_offset = offset + amt;
122 if (offset + amt <= iov->iov_len) {
124 *out_data_1_len = amt;
126 *current_offset = offset + amt;
135 *current_offset = amt - *out_data_1_len;
149 if ((p + amt) <= mp->b_wptr) {
151 *out_data_1_len = amt;
87 crypto_get_ptrs(crypto_data_t *out, void **iov_or_mp, offset_t *current_offset, uint8_t **out_data_1, size_t *out_data_1_len, uint8_t **out_data_2, size_t amt) argument
[all...]
/illumos-gate/usr/src/lib/libbsdmalloc/common/
H A Dmalloc.bsd43.c102 size_t amt; local
130 amt = (1UL << EXP);
131 while (pagesz > amt) {
132 amt <<= 1;
143 amt = (1UL << EXP); /* size of first bucket */
147 amt = pagesz;
150 while (nbytes > amt + n) {
151 amt <<= 1;
152 if (amt == 0)
180 ssize_t amt; /* amoun local
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmon.c391 size_t amt; local
396 amt = ap->monBuffer->nfns * sizeof (struct cnt);
399 ok = (write(fd, p, amt) == amt);
406 amt = histp->histSize;
408 ok = (write(fd, p, amt) == amt);
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dfsys_tftp.c543 int amt = buf_read + saved_filepos - filepos; local
547 if (amt > size)
548 amt = size;
550 if (amt > 0)
553 grub_memmove (addr, buf + filepos - saved_filepos, amt);
554 size -= amt;
555 addr += amt;
556 filepos += amt;
557 ret += amt;
771 int amt local
[all...]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_ds.c606 size_t amt)
680 if (pwrk->arg && amt) {
681 (void) memcpy(pwrk->arg, iomb, amt);
605 pmcs_start_ssp_event_recovery(pmcs_hw_t *pwp, pmcwork_t *pwrk, uint32_t *iomb, size_t amt) argument
H A Dpmcs_sata.c32 SATAcopy(pmcs_cmd_t *sp, void *kbuf, uint32_t amt) argument
38 (void) memcpy(bp->b_un.b_addr, kbuf, amt);
39 CMD2PKT(sp)->pkt_resid -= amt;
67 uint32_t amt = 0; local
213 amt = 7;
225 amt = 24;
243 amt = 16;
271 amt = 68;
319 amt = 36;
321 amt
706 size_t j, amt = LE_32(ptr[3]); local
[all...]
H A Dpmcs_intr.c104 pmcs_complete_work(pmcs_hw_t *pwp, pmcwork_t *pwrk, uint32_t *iomb, size_t amt) argument
120 pmcs_complete_work_impl(pwp, pwrk, iomb, amt);
164 pmcs_process_io_completion(pmcs_hw_t *pwp, pmcs_iocomp_cb_t *ioccb, size_t amt) argument
195 if (pwrk->arg && amt) {
196 (void) memcpy(pwrk->arg, ioccb->iomb, amt);
237 pmcs_process_completion(pmcs_hw_t *pwp, void *iomb, size_t amt) argument
248 pmcs_complete_work(pwp, pwrk, iomb, amt);
290 pmcs_process_sas_hw_event(pmcs_hw_t *pwp, void *iomb, size_t amt) argument
325 pmcs_process_completion(pwp, iomb, amt);
980 pmcs_process_completion(pwp, iomb, amt);
1064 pmcs_process_echo_completion(pmcs_hw_t *pwp, void *iomb, size_t amt) argument
1082 pmcs_process_ssp_event(pmcs_hw_t *pwp, void *iomb, size_t amt) argument
1133 pmcs_process_sata_event(pmcs_hw_t *pwp, void *iomb, size_t amt) argument
1206 pmcs_process_abort_completion(pmcs_hw_t *pwp, void *iomb, size_t amt) argument
1326 size_t amt; local
1554 size_t amt; local
1651 size_t amt; local
[all...]
H A Dpmcs_nvram.c332 uint32_t len, seg, off, result, amt, msg[PMCS_MSG_SIZE], *ptr; local
339 amt = PMCS_SCRATCH_SIZE;
340 if (off + amt > len) {
341 amt = len - off;
345 __func__, seg, off, amt);
346 (void) memcpy(pwp->scratch, &chunk[off], amt);
356 msg[3] = LE_32(amt);
371 msg[14] = LE_32(amt);
439 off += amt;
H A Dpmcs_scsa.c2365 size_t amt; local
2448 amt = nblk;
2449 amt <<= 9;
2450 amt = pmcs_set_resid(pkt, amt, nblk << 9);
2451 if (amt == 0) {
2513 ptr[3] = LE_32(amt);
3105 size_t amt = sizeof (struct scsi_extended_sense); local
3109 if (amt > snslen) {
3110 amt
3146 pmcs_set_resid(struct scsi_pkt *pkt, size_t amt, uint32_t cdbamt) argument
[all...]
/illumos-gate/usr/src/common/exacct/
H A Dexacct_core.c458 incr_parent_frames(struct es_frame *base, int n, size_t amt) argument
463 base[i].esf_size += amt;
464 base[i].esf_bksize += amt;
/illumos-gate/usr/src/cmd/col/
H A Dcol.c617 * amt: assumed to be >= 1
621 incr_line(int amt) argument
623 if (line < lbuffend - amt + 1) {
624 line += amt;
/illumos-gate/usr/src/lib/libsqlite/src/
H A Dexpr.c1531 int amt = pParse->nAgg + 8; local
1532 AggExpr *aAgg = sqliteRealloc(pParse->aAgg, amt*sizeof(pParse->aAgg[0]));
H A Dbtree_rb.c1178 static int memRbtreeKey(RbtCursor* pCur, int offset, int amt, char *zBuf) argument
1181 if( !pCur->pNode->pKey || ((amt + offset) <= pCur->pNode->nKey) ){
1182 memcpy(zBuf, ((char*)pCur->pNode->pKey)+offset, amt);
1185 amt = pCur->pNode->nKey-offset;
1187 return amt;
1200 static int memRbtreeData(RbtCursor *pCur, int offset, int amt, char *zBuf) argument
1203 if( (amt + offset) <= pCur->pNode->nData ){
1204 memcpy(zBuf, ((char*)pCur->pNode->pData)+offset, amt);
1207 amt = pCur->pNode->nData-offset;
1209 return amt;
[all...]
H A Dos.c972 int sqliteOsRead(OsFile *id, void *pBuf, int amt){ argument
977 got = read(id->fd, pBuf, amt);
982 if( got==amt ){
992 if( !ReadFile(id->h, pBuf, amt, &got, 0) ){
995 if( got==(DWORD)amt ){
1006 FSReadFork(id->refNum, fsAtMark, 0, (ByteCount)amt, pBuf, (ByteCount*)&got);
1008 got = amt;
1011 if( got==amt ){
1023 int sqliteOsWrite(OsFile *id, const void *pBuf, int amt){ argument
1028 while( amt>
[all...]
H A Dprintf.c238 int amt; local
240 amt = 1;
241 while( (c=(*++fmt))!='%' && c!=0 ) amt++;
242 (*func)(arg,bufpt,amt);
243 count += amt;
H A Dvdbe.c3130 int amt, offset, end, payloadSize; local
3202 amt = end - offset;
3203 if( amt<0 || offset<0 || end>payloadSize ){
3208 /* amt and offset now hold the offset to the start of data and the
3211 pTos->n = amt;
3212 if( amt==0 ){
3218 if( amt<=NBFS ){
3222 char *z = sqliteMallocRaw( amt );
3228 sqliteBtreeKey(pCrsr, offset, amt, pTos->z);
3230 sqliteBtreeData(pCrsr, offset, amt, pTo
3289 int amt; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dserver.c521 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);
[all...]
/illumos-gate/usr/src/cmd/awk/
H A Dlib.c754 init_buf(uchar **optr, size_t *sizep, size_t amt) argument
758 if ((nptr = malloc(amt)) == NULL)
763 *sizep = amt;
771 size_t amt, size = *sizep; local
775 amt = req + 1 - size;
776 amt = (amt / LINE_INCR + 1) * LINE_INCR;
778 if ((nptr = realloc(*optr, size + amt)) == NULL)
783 *sizep += amt;
/illumos-gate/usr/src/uts/common/gssapi/
H A Dgssd_clnt_stubs.c856 gss_OID amt; local
890 actual_mech_type = &amt;
912 if (&amt == actual_mech_type) {
913 kgss_free_oid(amt);
/illumos-gate/usr/src/uts/common/io/scsi/impl/
H A Dscsi_watch.c880 int amt = 0; local
931 amt = swr->swr_sense_length -
936 "Auto Request Sense, amt=%x\n", amt);
948 amt = swr->swr_sense_length - pkt->pkt_resid;
951 "Request Sense Completed, amt=%x\n", amt);
980 "es_key=%x, adq=%x, amt=%x\n",
981 rqsensep->es_key, rqsensep->es_add_code, amt);
989 result.actual_sense_length = (uchar_t)amt;
[all...]
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dses.c1388 int amt; local
1400 amt = min(MAX_SENSE_LENGTH,
1402 rqlen = min((uchar_t)amt, scmd->uscsi_rqlen);
1419 amt = MAX_SENSE_LENGTH - arq->sts_rqpkt_resid;
1422 amt = MAX_SENSE_LENGTH - arq->sts_rqpkt_resid;
1424 amt = SENSE_LENGTH - arq->sts_rqpkt_resid;
1432 rqlen = min((uchar_t)amt, scmd->uscsi_rqlen);
1556 if (amt > 3) {
1557 p = (char *)devp->sd_sense + amt;
1558 for (j = amt;
[all...]
H A Dses_ses.c227 int err, amt, i, nobj, ntype, maxima; local
257 amt = lp->uscsi_buflen - lp->uscsi_resid;
259 if (ses_cfghdr((uchar_t *)sdata, amt, &cf)) {
264 if (amt < SES_ENCHDR_MINLEN) {
265 SES_LOG(ssc, CE_NOTE, "runt enclosure length (%d)", amt);
285 if (ses_enchdr((uchar_t *)sdata, amt, i, &hd)) {
295 if (ses_encdesc((uchar_t *)sdata, amt, i, cdp)) {
316 if (ses_getthdr((uchar_t *)sdata, amt, i, &thdr)) {
373 if (ses_getthdr((uchar_t *)sdata, amt, i, &thdr)) {
445 int err, amt, bufsi local
627 ses_enchdr(uchar_t *buffer, int amt, uchar_t SubEncId, SesEncHdr *chp) argument
645 ses_encdesc(uchar_t *buffer, int amt, uchar_t SubEncId, SesEncDesc *cdp) argument
670 ses_getthdr(uchar_t *buffer, int amt, int nth, SesThdr *thp) argument
727 ses_decode(char *b, int amt, uchar_t *ep, int elt, int elm, SesComStat *sp) argument
795 ses_encode(char *b, int amt, uchar_t *ep, int elt, int elm, SesComStat *sp) argument
[all...]
H A Dsgen.c1728 int amt; local
1742 amt = MAX_SENSE_LENGTH - arqstat->sts_rqpkt_resid;
1745 amt = MAX_SENSE_LENGTH - arqstat->sts_rqpkt_resid;
1747 amt = SENSE_LENGTH - arqstat->sts_rqpkt_resid;
1753 uchar_t rqlen = min((uchar_t)amt, ucmd->uscsi_rqlen);
1770 (amt == 0)) {
1786 if (amt < SUN_MIN_SENSE_LENGTH) {
1818 int amt; local
1822 amt = MAX_SENSE_LENGTH - rqpkt->pkt_resid;
1826 uchar_t rqlen = min((uchar_t)amt, ucm
[all...]
/illumos-gate/usr/src/uts/common/fs/hsfs/
H A Dhsfs_node.c1197 int amt; local
1223 amt = 1;
1225 amt = 2;
1227 amt = 3;
1228 if ((len+amt) > maxsize) {
1233 amt = hs_ucs2_2_utf8(c, (uint8_t *)&to[len]);
1234 if (amt == 0) {
1238 len += amt;
1288 int amt; local
1299 amt
[all...]

Completed in 183 milliseconds

12