Searched refs:abuf (Results 1 - 25 of 57) sorted by last modified time

123

/freebsd-current/contrib/ntp/libntp/
H A Drecvbuff.c112 size_t abuf; local
115 abuf = nbufs + buffer_shortfall;
128 if (abuf < nbufs || abuf > RECV_BATCH) {
129 abuf = RECV_BATCH; /* clamp on overflow */
131 abuf += (~abuf + 1) & (RECV_INC - 1); /* round up */
133 if (abuf > (limit_recvbufs - total_recvbufs)) {
134 abuf = limit_recvbufs - total_recvbufs;
136 abuf
[all...]
/freebsd-current/usr.sbin/rtadvd/
H A Dconfig.c73 static char abuf[DNAME_LABELENC_MAXLEN]; variable
827 strncpy(abuf, ap, c);
828 abuf[c] = '\0';
830 if (inet_pton(AF_INET6, abuf, &rdna->ra_dns) != 1) {
832 __func__, abuf);
879 strncpy(abuf, ap, c);
880 abuf[c] = '\0';
882 dnsa->da_len = dname_labelenc(dnsa->da_dom, abuf);
885 abuf);
/freebsd-current/sbin/ipfw/
H A Dtables.c1814 char abuf[INET6_ADDRSTRLEN + IF_NAMESIZE + 2]; local
1867 inet_ntop(AF_INET, &a4, abuf, sizeof(abuf));
1868 l = snprintf(buf, sz, "%s,", abuf);
1880 sa6.sin6_len, abuf, sizeof(abuf), NULL, 0,
1882 l = snprintf(buf, sz, "%s,", abuf);
H A Dnat64stl.c452 char abuf[INET6_ADDRSTRLEN]; local
465 inet_ntop(AF_INET6, &cfg->prefix6, abuf, sizeof(abuf));
466 printf(" prefix6 %s/%u", abuf, cfg->plen6);
H A Dnptv6.c355 char abuf[INET6_ADDRSTRLEN]; local
365 inet_ntop(AF_INET6, &cfg->internal, abuf, sizeof(abuf));
366 printf("nptv6 %s int_prefix %s ", cfg->name, abuf);
370 inet_ntop(AF_INET6, &cfg->external, abuf, sizeof(abuf));
371 printf("ext_prefix %s ", abuf);
/freebsd-current/sys/contrib/openzfs/module/zfs/
H A Dzio.c3404 arc_buf_t *abuf = NULL;
3417 arc_getbuf_func, &abuf, ZIO_PRIORITY_SYNC_READ,
3422 if (abd_cmp_buf(zio->io_orig_abd, abuf->b_data,
3425 arc_buf_destroy(abuf, &abuf);
3969 abd_t *abuf = abd_alloc_sametype(zio->io_abd, asize);
3972 abd_copy(abuf, zio->io_abd, zio->io_size);
3973 abd_zero_off(abuf, zio->io_size, asize - zio->io_size);
3975 zio_push_transform(zio, abuf, asize, asize, zio_subblock); local
3410 arc_buf_t *abuf = NULL; local
H A Ddmu_objset.c1592 dmu_objset_write_ready(zio_t *zio, arc_buf_t *abuf, void *arg) argument
1594 (void) abuf;
1623 dmu_objset_write_done(zio_t *zio, arc_buf_t *abuf, void *arg) argument
1625 (void) abuf;
H A Ddbuf.c1269 arc_buf_t *abuf;
1278 abuf = arc_loan_buf(spa, B_FALSE, blksz);
1279 memcpy(abuf->b_data, db->db.db_data, blksz);
1281 abuf = db->db_buf;
1282 arc_loan_inuse_buf(abuf, db);
1287 return (abuf);
3380 const blkptr_t *iobp, arc_buf_t *abuf, void *private)
3385 if (abuf != NULL)
3386 arc_buf_destroy(abuf, private);
3430 const blkptr_t *iobp, arc_buf_t *abuf, voi
1266 arc_buf_t *abuf; local
3375 dbuf_issue_final_prefetch_done(zio_t *zio, const zbookmark_phys_t *zb, const blkptr_t *iobp, arc_buf_t *abuf, void *private) argument
3425 dbuf_prefetch_indirect_done(zio_t *zio, const zbookmark_phys_t *zb, const blkptr_t *iobp, arc_buf_t *abuf, void *private) argument
[all...]
H A Dzil.c243 blkptr_t *nbp, char **begin, char **end, arc_buf_t **abuf)
263 abuf, ZIO_PRIORITY_SYNC_READ, zio_flags, &aflags, &zb);
280 zil_chain_t *zilc = (*abuf)->b_data;
294 char *lr = (*abuf)->b_data;
321 arc_buf_t *abuf = NULL; local
346 error = arc_read(NULL, zilog->zl_spa, bp, arc_getbuf_func, &abuf,
351 memcpy(wbuf, abuf->b_data, arc_buf_size(abuf));
352 arc_buf_destroy(abuf, &abuf);
242 zil_read_log_block(zilog_t *zilog, boolean_t decrypt, const blkptr_t *bp, blkptr_t *nbp, char **begin, char **end, arc_buf_t **abuf) argument
481 arc_buf_t *abuf = NULL; local
[all...]
H A Dzfs_vnops.c579 arc_buf_t *abuf = NULL; local
591 abuf = dmu_request_arcbuf(sa_get_db(zp->z_sa_hdl),
593 ASSERT(abuf != NULL);
594 ASSERT(arc_buf_size(abuf) == blksz);
595 if ((error = zfs_uiocopy(abuf->b_data, blksz,
597 dmu_return_arcbuf(abuf);
626 if (abuf != NULL)
627 dmu_return_arcbuf(abuf);
648 if (abuf == NULL) {
691 sa_get_db(zp->z_sa_hdl), woff, abuf, t
[all...]
H A Ddmu_send.c163 arc_buf_t *abuf; member in struct:send_range::__anon59::srd
240 if (range->sru.data.abuf != NULL) {
241 arc_buf_destroy(range->sru.data.abuf,
242 &range->sru.data.abuf);
958 arc_buf_t *abuf = NULL; local
960 bp, arc_getbuf_func, &abuf, ZIO_PRIORITY_ASYNC_READ,
965 (abuf == NULL ? NULL : abuf->b_data));
966 if (abuf != NULL)
967 arc_buf_destroy(abuf,
[all...]
H A Ddmu_recv.c2548 arc_buf_t *abuf; local
2554 abuf = arc_loan_raw_buf(dmu_objset_spa(rwa->os),
2560 abuf = arc_loan_buf(dmu_objset_spa(rwa->os),
2571 memcpy(abuf->b_data, abd_to_buf(abd), DRR_SPILL_PAYLOAD_SIZE(drrs));
2573 dbuf_assign_arcbuf((dmu_buf_impl_t *)db_spill, abuf, tx);
/freebsd-current/usr.sbin/pstat/
H A Dpstat.c415 getfiles(struct xfile **abuf, size_t *alen) argument
440 *abuf = buf;
/freebsd-current/usr.sbin/ndp/
H A Dndp.c601 char abuf[INET6_ADDRSTRLEN]; local
602 inet_ntop(AF_INET6, &sin->sin6_addr, abuf, sizeof(abuf));
605 xo_emit("{e:address/%s}{e:interface/%s}", abuf, ifname);
1123 char abuf[20], xobuf[200]; local
1125 snprintf(&abuf[j * 2], sizeof(abuf), "%02X", rbuf[j]);
1127 xo_emit(xobuf, abuf);
1195 char abuf[INET6_ADDRSTRLEN], *paddr; local
1204 inet_ntop(AF_INET6, &p->rtaddr.sin6_addr, abuf, sizeo
1362 char abuf[INET6_ADDRSTRLEN]; local
[all...]
/freebsd-current/lib/libipsec/
H A Dipsec_dump_policy.c177 char abuf[NI_MAXHOST * 2 + 2]; local
217 abuf[0] = '\0';
230 if (set_addresses(abuf, sizeof(abuf), sa1, sa2) != 0) {
255 snprintf(buf, len, "%s/%s/%s/%s", proto, mode, abuf, level);
263 snprintf(buf, len, "%s/%s/%s/%s%c%u", proto, mode, abuf, level,
/freebsd-current/sys/contrib/openzfs/cmd/
H A Dztest.c2192 arc_buf_t *abuf = NULL;
2235 abuf = dmu_request_arcbuf(db, length);
2239 if (abuf != NULL)
2240 dmu_return_arcbuf(abuf);
2288 if (abuf == NULL) {
2291 memcpy(abuf->b_data, data, length);
2292 VERIFY0(dmu_assign_arcbuf_by_dbuf(db, offset, abuf, tx));
2201 arc_buf_t *abuf = NULL; local
/freebsd-current/crypto/openssh/
H A Dssh-keygen.c2586 struct sshbuf *sigbuf = NULL, *abuf = NULL; local
2619 if ((r = sshsig_armor(sigbuf, &abuf)) != 0) {
2623 if ((asig = sshbuf_dup_string(abuf)) == NULL) {
2667 sshbuf_free(abuf);
2806 struct sshbuf *sigbuf = NULL, *abuf = NULL; local
2817 if ((r = sshbuf_load_file(signature, &abuf)) != 0) {
2822 if ((r = sshsig_dearmor(abuf, &sigbuf)) != 0) {
2884 sshbuf_free(abuf);
2896 struct sshbuf *sigbuf = NULL, *abuf = NULL; local
2904 if ((r = sshbuf_load_file(signature, &abuf)) !
[all...]
/freebsd-current/crypto/openssl/test/
H A Ddhtest.c51 unsigned char *abuf = NULL; local
210 if (!TEST_ptr(abuf = OPENSSL_malloc(alen))
211 || !TEST_true((aout = DH_compute_key(abuf, bpub_key, a)) != -1))
225 || !TEST_mem_eq(abuf, aout, bbuf, bout)
226 || !TEST_mem_eq(abuf, aout, cbuf, cout))
242 OPENSSL_free(abuf);
666 unsigned char *abuf = NULL; local
696 if (!TEST_int_gt(alen, 0) || !TEST_ptr(abuf = OPENSSL_malloc(alen))
697 || !TEST_true((aout = DH_compute_key(abuf, bpub_key, a)) != -1))
706 || !TEST_mem_eq(abuf, aou
[all...]
/freebsd-current/crypto/openssl/crypto/cms/
H A Dcms_sd.c789 unsigned char *abuf = NULL; local
819 alen = ASN1_item_i2d((ASN1_VALUE *)si->signedAttrs, &abuf,
821 if (!abuf)
823 if (EVP_DigestSignUpdate(mctx, abuf, alen) <= 0)
827 OPENSSL_free(abuf);
828 abuf = OPENSSL_malloc(siglen);
829 if (abuf == NULL)
831 if (EVP_DigestSignFinal(mctx, abuf, &siglen) <= 0)
836 ASN1_STRING_set0(si->signature, abuf, siglen);
841 OPENSSL_free(abuf);
849 unsigned char *abuf = NULL; local
[all...]
/freebsd-current/sys/net/
H A Dif_llatbl.c479 char abuf[INET6_ADDRSTRLEN]; local
488 inet_ntop(AF_INET, &lle->r_l3addr.addr4, abuf, sizeof(abuf));
490 valid, if_name(ifp), abuf);
495 inet_ntop(AF_INET6, &lle->r_l3addr.addr6, abuf, sizeof(abuf));
497 valid, if_name(ifp), abuf);
/freebsd-current/usr.sbin/services_mkdb/
H A Dservices_mkdb.c193 char keyb[BUFSIZ], datab[BUFSIZ], abuf[BUFSIZ]; local
208 sl->sl_str[0], port, proto, mkaliases(sl, abuf, sizeof(abuf))) + 1;
/freebsd-current/usr.bin/mail/
H A Dquit.c66 FILE *ibuf, *obuf, *fbuf, *rbuf, *readstat, *abuf; local
212 if ((abuf = Fopen(mbox, "r")) != NULL) {
213 while ((c = getc(abuf)) != EOF)
215 (void)Fclose(abuf);
301 abuf = Fopen(mailname, "r+");
302 if (abuf == NULL)
305 (void)putc(c, abuf);
307 trunc(abuf);
308 (void)Fclose(abuf);
/freebsd-current/tools/regression/aio/aiop/
H A Daiop.c126 char **abuf; local
191 abuf = calloc(aio_len, sizeof(char *));
193 abuf[i] = calloc(1, io_size * sizeof(char));
200 set_aio(aio + i, choose_aio(iowhat), fd, offset, io_size, abuf[i]);
210 set_aio(aio + n, choose_aio(iowhat), fd, offset, io_size, abuf[n]);
/freebsd-current/sys/geom/raid/
H A Dmd_ddf.c1039 char *abuf, *buf; local
1052 abuf = g_read_data(cp, pp->mediasize - ss, ss, &error);
1053 if (abuf == NULL) {
1058 ahdr = (struct ddf_header *)abuf;
1266 g_free(abuf);
/freebsd-current/sys/crypto/via/
H A Dpadlock_cipher.c186 u_char *buf, *abuf; local
195 abuf = PADLOCK_ALIGN(buf);
220 crp->crp_payload_length, abuf);
225 padlock_cbc(abuf, abuf, crp->crp_payload_length / AES_BLOCK_LEN, key,
231 crp->crp_payload_length, abuf);

Completed in 479 milliseconds

123