/freebsd-11-stable/crypto/openssl/crypto/bio/ |
H A D | bss_log.c | 130 static void xopenlog(BIO *bp, char *name, int level); 131 static void xsyslog(BIO *bp, int priority, const char *string); 132 static void xcloselog(BIO *bp); 273 static int MS_CALLBACK slg_puts(BIO *bp, const char *str) argument 278 ret = slg_write(bp, str, n); 284 static void xopenlog(BIO *bp, char *name, int level) argument 287 bp->ptr = RegisterEventSourceA(NULL, name); 289 bp->ptr = NULL; 292 static void xsyslog(BIO *bp, int priority, const char *string) argument 298 if (bp 332 xcloselog(BIO *bp) argument 343 xopenlog(BIO *bp, char *name, int level) argument 348 xsyslog(BIO *bp, int priority, const char *string) argument 426 xcloselog(BIO *bp) argument 432 xopenlog(BIO *bp, char *name, int level) argument 441 xsyslog(BIO *bp, int priority, const char *string) argument 446 xcloselog(BIO *bp) argument [all...] |
/freebsd-11-stable/sys/geom/raid/ |
H A D | tr_raid1.c | 243 struct bio *bp; local 254 bp = &trs->trso_bio; 255 memset(bp, 0, sizeof(*bp)); 256 bp->bio_offset = sd->sd_rebuild_pos; 257 bp->bio_length = MIN(g_raid1_rebuild_slab, 259 bp->bio_data = trs->trso_buffer; 260 bp->bio_cmd = BIO_READ; 261 bp->bio_cflags = G_RAID_BIO_FLAG_SYNC; 262 bp 487 g_raid_tr_raid1_select_read_disk(struct g_raid_volume *vol, struct bio *bp, u_int mask) argument 524 g_raid_tr_iostart_raid1_read(struct g_raid_tr_object *tr, struct bio *bp) argument 543 g_raid_tr_iostart_raid1_write(struct g_raid_tr_object *tr, struct bio *bp) argument 605 g_raid_tr_iostart_raid1(struct g_raid_tr_object *tr, struct bio *bp) argument 652 g_raid_tr_iodone_raid1(struct g_raid_tr_object *tr, struct g_raid_subdisk *sd, struct bio *bp) argument 947 struct bio *bp; local [all...] |
H A D | tr_raid1e.c | 428 struct bio *bp; local 470 bp = &trs->trso_bio; 471 memset(bp, 0, sizeof(*bp)); 472 bp->bio_offset = offset + start + 474 bp->bio_length = len; 475 bp->bio_data = trs->trso_buffer; 476 bp->bio_cmd = BIO_READ; 477 bp->bio_cflags = G_RAID_BIO_FLAG_SYNC; 478 bp 685 g_raid_tr_iostart_raid1e_read(struct g_raid_tr_object *tr, struct bio *bp) argument 755 g_raid_tr_iostart_raid1e_write(struct g_raid_tr_object *tr, struct bio *bp) argument 833 g_raid_tr_iostart_raid1e(struct g_raid_tr_object *tr, struct bio *bp) argument 880 g_raid_tr_iodone_raid1e(struct g_raid_tr_object *tr, struct g_raid_subdisk *sd, struct bio *bp) argument 1197 struct bio *bp; local [all...] |
/freebsd-11-stable/libexec/bootpd/ |
H A D | bootpd.c | 187 struct bootp *bp; 223 bp = (struct bootp *) pktbuf; 565 switch (bp->bp_op) { 632 struct bootp *bp = (struct bootp *) pktbuf; 643 if (bp->bp_htype >= hwinfocnt) { 644 report(LOG_NOTICE, "bad hw addr type %u", bp->bp_htype); 647 bp->bp_file[sizeof(bp->bp_file)-1] = '\0'; 656 if (strlen(bp->bp_sname)) { 657 if (strcmp(bp 185 struct bootp *bp; local 628 struct bootp *bp = (struct bootp *) pktbuf; local 1023 struct bootp *bp = (struct bootp *) pktbuf; local [all...] |
/freebsd-11-stable/contrib/tcp_wrappers/ |
H A D | percent_x.c | 38 char *bp = result; local 77 if (bp + expansion_len >= end) { 82 memcpy(bp, expansion, expansion_len); 83 bp += expansion_len; 85 *bp = 0;
|
/freebsd-11-stable/lib/libc/net/ |
H A D | ip6opt.c | 81 inet6_option_init(void *bp, struct cmsghdr **cmsgp, int type) argument 83 struct cmsghdr *ch = (struct cmsghdr *)bp; 112 u_char *bp = (u_char *)cmsg + cmsg->cmsg_len; local 126 if (bp == (u_char *)eh) { 127 bp += 2; 132 off = bp - (u_char *)eh; 137 inet6_insert_padopt(bp, padlen); 139 bp += padlen; 146 memcpy(bp, typep, optlen); 147 bp 180 u_int8_t *bp = (u_char *)cmsg + cmsg->cmsg_len; local [all...] |
H A D | gethostbydns.c | 147 char *bp, *ep, **ap, **hap; local 176 bp = hed->hostbuf; 184 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); 185 if ((n < 0) || !(*name_ok)(bp)) { 195 n = strlen(bp) + 1; /* for the \0 */ 200 he->h_name = bp; 201 bp += n; 215 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); [all...] |
/freebsd-11-stable/usr.bin/last/ |
H A D | last.c | 291 doentry(struct utmpx *bp) argument 296 if (bp->ut_type == BOOT_TIME || bp->ut_type == SHUTDOWN_TIME) { 302 currentout = -bp->ut_tv.tv_sec; 303 crmsg = bp->ut_type != SHUTDOWN_TIME ? 315 if (!snaptime && want(bp)) 316 printentry(bp, NULL); 320 if (bp->ut_type == OLD_TIME || bp->ut_type == NEW_TIME) { 321 if (want(bp) 365 printentry(struct utmpx *bp, struct idtab *tt) argument 438 want(struct utmpx *bp) argument [all...] |
/freebsd-11-stable/usr.sbin/ppp/ |
H A D | fsm.c | 195 struct mbuf *bp; local 216 bp = m_get(plen, mtype); 217 memcpy(MBUF_CTOP(bp), &lh, sizeof(struct fsmheader)); 219 memcpy(MBUF_CTOP(bp) + sizeof(struct fsmheader), ptr, count); 220 log_DumpBp(LogDEBUG, "fsm_Output", bp); 221 link_PushPacket(fp->link, bp, fp->bundle, LINK_QUEUES(fp->link) - 1, 468 FsmRecvConfigReq(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 476 bp = m_pullup(bp); 477 plen = m_length(bp); 611 FsmRecvConfigAck(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 674 FsmRecvConfigNak(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 740 FsmRecvTermReq(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 776 FsmRecvTermAck(struct fsm *fp, struct fsmheader *lhp __unused, struct mbuf *bp) argument 804 FsmRecvConfigRej(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 872 FsmRecvCodeRej(struct fsm *fp __unused, struct fsmheader *lhp __unused, struct mbuf *bp) argument 879 FsmRecvProtoRej(struct fsm *fp, struct fsmheader *lhp __unused, struct mbuf *bp) argument 951 FsmRecvEchoReq(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 979 FsmRecvEchoRep(struct fsm *fp, struct fsmheader *lhp __unused, struct mbuf *bp) argument 988 FsmRecvDiscReq(struct fsm *fp __unused, struct fsmheader *lhp __unused, struct mbuf *bp) argument 995 FsmRecvIdent(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 1017 FsmRecvTimeRemain(struct fsm *fp __unused, struct fsmheader *lhp __unused, struct mbuf *bp) argument 1024 FsmRecvResetReq(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 1039 FsmRecvResetAck(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 1046 fsm_Input(struct fsm *fp, struct mbuf *bp) argument [all...] |
/freebsd-11-stable/sys/fs/cd9660/ |
H A D | cd9660_lookup.c | 113 struct buf *bp; /* a buffer of directory entries */ local 116 int entryoffsetinblock; /* offset of ep in bp's buffer */ 141 bp = NULL; 183 (error = cd9660_blkatoff(vdp, (off_t)i_offset, NULL, &bp))) 198 if (bp != NULL) 199 brelse(bp); 201 cd9660_blkatoff(vdp, (off_t)i_offset, NULL, &bp)) != 0) 209 ((char *)bp->b_data + entryoffsetinblock); 265 ino = dbtob(bp->b_blkno) 282 ino = dbtob(bp 443 struct buf *bp; local [all...] |
/freebsd-11-stable/sys/geom/journal/ |
H A D | g_journal.h | 60 #define GJ_LOGREQ(lvl, bp, ...) do { \ 68 g_print_bio(bp); \ 173 #define GJQ_INSERT_HEAD(head, bp) do { \ 174 (bp)->bio_next = (head); \ 175 (head) = (bp); \ 177 #define GJQ_INSERT_AFTER(head, bp, pbp) do { \ 179 GJQ_INSERT_HEAD(head, bp); \ 181 (bp)->bio_next = (pbp)->bio_next; \ 182 (pbp)->bio_next = (bp); \ 185 #define GJQ_LAST(head, bp) d [all...] |
/freebsd-11-stable/sys/geom/vinum/ |
H A D | geom_vinum_raid5.c | 53 gv_raid5_start(struct gv_plex *p, struct bio *bp, caddr_t addr, off_t boff, argument 63 wp->bio = bp; 68 if (bp->bio_pflags & GV_BIO_REBUILD) 69 err = gv_raid5_rebuild(p, wp, bp, addr, boff, bcount); 70 else if (bp->bio_pflags & GV_BIO_CHECK) 71 err = gv_raid5_check(p, wp, bp, addr, boff, bcount); 73 err = gv_raid5_request(p, wp, bp, addr, boff, bcount, &delay); 85 G_VINUM_LOGREQ(0, bp, "raid5 plex request failed."); 105 if (wp->bio != bp) 126 if (bp 147 gv_stripe_active(struct gv_plex *p, struct bio *bp) argument 176 gv_raid5_check(struct gv_plex *p, struct gv_raid5_packet *wp, struct bio *bp, caddr_t addr, off_t boff, off_t bcount) argument 254 gv_raid5_rebuild(struct gv_plex *p, struct gv_raid5_packet *wp, struct bio *bp, caddr_t addr, off_t boff, off_t bcount) argument 342 gv_raid5_request(struct gv_plex *p, struct gv_raid5_packet *wp, struct bio *bp, caddr_t addr, off_t boff, off_t bcount, int *delay) argument 643 gv_raid5_clone_bio(struct bio *bp, struct gv_sd *s, struct gv_raid5_packet *wp, caddr_t addr, int use_wp) argument [all...] |
/freebsd-11-stable/sys/riscv/htif/ |
H A D | htif_block.c | 203 struct bio *bp; local 213 bp = bioq_takefirst(&sc->bio_queue); 214 if (bp == NULL) 216 } while (bp == NULL); 219 if (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE) { 223 req.offset = (bp->bio_pblkno * sc->disk->d_sectorsize); 224 req.size = bp->bio_bcount; 225 paddr = vtophys(bp->bio_data); 233 if (bp 267 htif_blk_strategy(struct bio *bp) argument [all...] |
/freebsd-11-stable/sbin/dmesg/ |
H A D | dmesg.c | 79 char *bp, *ep, *memf, *nextp, *nlistf, *p, *q, *visbp; local 124 if ((bp = malloc(buflen + 2)) == NULL) 126 if (sysctlbyname("kern.msgbuf", bp, &buflen, NULL, 0) == -1) 128 if (buflen > 0 && bp[buflen - 1] == '\0') 148 if ((bp = malloc(cur.msg_size + 2)) == NULL) 153 if (kvm_read(kd, (long)&cur.msg_ptr[bufpos], bp, 157 &bp[cur.msg_size - bufpos], bufpos) != (ssize_t)bufpos) 167 if (buflen == 0 || bp[buflen - 1] != '\n') 168 bp[buflen++] = '\n'; 169 bp[bufle [all...] |
/freebsd-11-stable/contrib/nvi/common/ |
H A D | put.c | 49 CHAR_T *bp, *t; local 126 GET_SPACE_RETW(sp, bp, blen, tp->len + len + 1); 127 t = bp; 131 MEMCPY(bp, p, clen); 172 if (db_set(sp, lno, bp, t - bp)) 190 len = t - bp; 191 ADD_SPACE_RETW(sp, bp, blen, ltp->len + clen); 192 t = bp + len; 201 * Now: bp point [all...] |
/freebsd-11-stable/usr.bin/cap_mkdb/ |
H A D | cap_mkdb.c | 163 char *bp, *p, *t; local 167 for (reccnt = 0, bplen = 0; (st = cgetnext(&bp, ifiles)) > 0;) { 173 len = strlen(bp); 181 if ((p = strchr(bp, ':')) == NULL) { 182 warnx("no name field: %.*s", (int)MIN(len, 20), bp); 193 warnx("record not tc expanded: %.*s", (int)(p - bp), 194 bp); 199 memmove(&((u_char *)(data.data))[1], bp, len + 1); 203 key.data = bp; 204 key.size = p - bp; [all...] |
/freebsd-11-stable/sys/geom/sched/ |
H A D | gs_delay.c | 123 struct bio *bp; local 126 bp = bioq_first(&sc->sc_bioq); 127 if (bp == NULL) 131 * If the time isn't yet ripe for this bp to be let loose, 140 if (bintime_cmp(&bp->bio_t0, &bt, >)) 145 * The bp has mellowed enough, let it through and update stats. 150 bp = bioq_takefirst(&sc->sc_bioq); 151 return (bp); 163 g_delay_start(void *data, struct bio *bp) argument 170 bp 236 g_delay_done(void *data, struct bio *bp) argument [all...] |
/freebsd-11-stable/usr.bin/tset/ |
H A D | wrterm.c | 52 wrtermcap(char *bp) argument 59 if ((t = strchr(bp, ':')) == NULL) 65 while ((p = strsep(&bp, "|")) != NULL)
|
/freebsd-11-stable/lib/libc/db/hash/ |
H A D | hash_page.c | 98 u_int16_t *bp, n, off; local 100 bp = (u_int16_t *)p; 103 n = bp[0]; 105 off = OFFSET(bp) - key->size; 107 bp[++n] = off; 112 bp[++n] = off; 115 bp[0] = n; 116 bp[n + 1] = off - ((n + 3) * sizeof(u_int16_t)); 117 bp[n + 2] = off; 128 u_int16_t *bp, newof local 400 u_int16_t *bp, *sop; local 522 u_int16_t *bp; local 593 uint16_t *bp = (uint16_t *)(void *)pbuf; local 926 short *bp, oaddr; local [all...] |
/freebsd-11-stable/stand/libsa/ |
H A D | bootp.c | 131 struct bootp *bp; local 154 bp = &wbuf.wbootp; 155 bzero(bp, sizeof(*bp)); 157 bp->bp_op = BOOTREQUEST; 158 bp->bp_htype = 1; /* 10Mb Ethernet (48 bits) */ 159 bp->bp_hlen = 6; 160 bp->bp_xid = htonl(d->xid); 161 MACPY(d->myea, bp->bp_chaddr); 162 strncpy(bp 270 struct bootp *bp; local 293 struct bootp *bp; local [all...] |
/freebsd-11-stable/lib/libc/gen/ |
H A D | pw_scan.c | 87 __pw_scan(char *bp, struct passwd *pw, int flags) argument 98 if (!(pw->pw_name = strsep(&bp, ":"))) /* login */ 104 if (!(pw->pw_passwd = strsep(&bp, ":"))) /* passwd */ 109 if (!(p = strsep(&bp, ":"))) /* uid */ 144 if (!(p = strsep(&bp, ":"))) /* gid */ 175 if (!(pw->pw_class = strsep(&bp, ":"))) /* class */ 180 if (!(p = strsep(&bp, ":"))) /* change */ 186 if (!(p = strsep(&bp, ":"))) /* expire */ 192 if (!(pw->pw_gecos = strsep(&bp, ":"))) /* gecos */ 197 if (!(pw->pw_dir = strsep(&bp, " [all...] |
/freebsd-11-stable/contrib/less/ |
H A D | ch.c | 149 struct buf *bp; local 166 bp = bufnode_buf(ch_bufhead); 167 if (ch_block == bp->block && ch_offset < bp->datasize) 168 return bp->data[ch_offset]; 179 bp = bufnode_buf(bn); 180 if (bp->block == ch_block) 182 if (ch_offset >= bp->datasize) 217 bp = bufnode_buf(bn); 219 bp 417 struct buf *bp; local 455 struct buf *bp; local 542 struct buf *bp; local 760 struct buf *bp; local [all...] |
/freebsd-11-stable/sys/dev/nvd/ |
H A D | nvd.c | 184 nvd_bio_submit(struct nvd_disk *ndisk, struct bio *bp) argument 188 bp->bio_driver1 = NULL; 189 if (__predict_false(bp->bio_flags & BIO_ORDERED)) 193 err = nvme_ns_bio_process(ndisk->ns, bp, nvd_done); 195 if (__predict_false(bp->bio_flags & BIO_ORDERED)) { 204 bp->bio_error = err; 205 bp->bio_flags |= BIO_ERROR; 206 bp->bio_resid = bp->bio_bcount; 207 biodone(bp); 212 nvd_strategy(struct bio *bp) argument 244 struct bio *bp; local 298 struct bio *bp = (struct bio *)arg; local 318 struct bio *bp; local [all...] |
/freebsd-11-stable/contrib/nvi/ex/ |
H A D | ex_argv.c | 73 MEMCPY(exp->args[exp->argsoff]->bp, cmd, cmdlen); 74 exp->args[exp->argsoff]->bp[cmdlen] = '\0'; 94 CHAR_T *p, *t, *bp; local 96 GET_SPACE_RETW(sp, bp, blen, 512); 100 if (argv_fexp(sp, excp, cmd, cmdlen, bp, &len, &bp, &blen, is_bang)) { 101 FREE_SPACEW(sp, bp, blen); 107 for (p = bp, t = bp + len; p < t; ++p) 115 (void)argv_exp0(sp, excp, bp, le 133 CHAR_T *bp, *p; local 366 CHAR_T *bp; local 673 CHAR_T *bp, *p; local 821 CHAR_T *bp, *p; local 884 CHAR_T *bp, *p; local [all...] |
/freebsd-11-stable/contrib/diff/lib/ |
H A D | cmpbuf.c | 86 char *bp = buf; local 92 size_t bytes_to_read = MIN (buflim - bp, readlim); 93 ssize_t nread = read (fd, bp, bytes_to_read); 117 bp += nread; 119 while (bp < buflim); 121 return bp - buf;
|