| /freebsd-13-stable/contrib/subversion/subversion/svnbench/ |
| HD | notify.c | 71 add_conflicted_path(struct notify_baton *nb, const char *path) in add_conflicted_path() argument 73 apr_hash_set(nb->conflicted_paths, in add_conflicted_path() 74 apr_pstrdup(apr_hash_pool_get(nb->conflicted_paths), path), in add_conflicted_path() 83 struct notify_baton *nb = baton; in notify() local 96 path_local = svn_cl__local_style_skip_ancestor(nb->path_prefix, n->path, in notify() 103 nb->skipped_paths++; in notify() 126 nb->skipped_paths++; in notify() 133 nb->skipped_paths++; in notify() 140 nb->skipped_paths++; in notify() 147 nb->skipped_paths++; in notify() [all …]
|
| /freebsd-13-stable/contrib/subversion/subversion/svn/ |
| HD | notify.c | 95 store_path(struct notify_baton *nb, apr_hash_t *hash, const char *path) in store_path() argument 97 svn_hash_sets(hash, apr_pstrdup(nb->conflict_stats->stats_pool, path), ""); in store_path() 281 struct notify_baton *nb = baton; in svn_cl__notifier_print_conflict_stats() local 283 SVN_ERR(svn_cl__print_conflict_stats(nb->conflict_stats, scratch_pool)); in svn_cl__notifier_print_conflict_stats() 290 notify_body(struct notify_baton *nb, in notify_body() argument 307 path_local = svn_cl__local_style_skip_ancestor(nb->path_prefix, n->path, in notify_body() 314 nb->conflict_stats->skipped_paths++; in notify_body() 341 nb->conflict_stats->skipped_paths++; in notify_body() 348 nb->conflict_stats->skipped_paths++; in notify_body() 354 nb->conflict_stats->skipped_paths++; in notify_body() [all …]
|
| /freebsd-13-stable/contrib/subversion/subversion/svnrdump/ |
| HD | load_editor.c | 367 struct node_baton *nb; in new_node_record() local 372 nb = apr_pcalloc(rb->pool, sizeof(*nb)); in new_node_record() 373 nb->rb = rb; in new_node_record() 374 nb->is_added = FALSE; in new_node_record() 375 nb->copyfrom_path = NULL; in new_node_record() 376 nb->copyfrom_url = NULL; in new_node_record() 377 nb->copyfrom_rev = SVN_INVALID_REVNUM; in new_node_record() 378 nb->prop_changes = apr_hash_make(rb->pool); in new_node_record() 406 nb->path = apr_pstrdup(rb->pool, hval); in new_node_record() 408 nb->kind = strcmp(hval, "file") == 0 ? svn_node_file : svn_node_dir; in new_node_record() [all …]
|
| /freebsd-13-stable/usr.sbin/makefs/ffs/ |
| HD | ffs_balloc.c | 82 int32_t nb; in ffs_balloc_ufs1() local 111 nb = lastlbn; in ffs_balloc_ufs1() 112 osize = blksize(fs, ip, nb); in ffs_balloc_ufs1() 124 nb = ufs_rw32(ip->i_ffs1_db[lbn], needswap); in ffs_balloc_ufs1() 125 if (nb != 0 && ip->i_ffs1_size >= in ffs_balloc_ufs1() 145 if (nb != 0) { in ffs_balloc_ufs1() 220 nb = ufs_rw32(ip->i_ffs1_ib[indirs[0].in_off], needswap); in ffs_balloc_ufs1() 223 if (nb == 0) { in ffs_balloc_ufs1() 228 nb = newb; in ffs_balloc_ufs1() 229 *allocblk++ = nb; in ffs_balloc_ufs1() [all …]
|
| /freebsd-13-stable/lib/libc/locale/ |
| HD | utf8.c | 217 size_t nb; in _UTF8_mbsnrtowcs() local 240 nb = 1; in _UTF8_mbsnrtowcs() 241 else if ((nb = _UTF8_mbrtowc(&wc, s, nms, ps)) == in _UTF8_mbsnrtowcs() 245 else if (nb == 0 || nb == (size_t)-2) in _UTF8_mbsnrtowcs() 247 s += nb; in _UTF8_mbsnrtowcs() 248 nms -= nb; in _UTF8_mbsnrtowcs() 270 nb = 1; in _UTF8_mbsnrtowcs() 271 } else if ((nb = _UTF8_mbrtowc(dst, s, nms, ps)) == in _UTF8_mbsnrtowcs() 275 } else if (nb == (size_t)-2) { in _UTF8_mbsnrtowcs() 278 } else if (nb == 0) { in _UTF8_mbsnrtowcs() [all …]
|
| HD | wcsnrtombs.c | 69 size_t nb; in __wcsnrtombs_std() local 76 if ((nb = pwcrtomb(buf, *s, ps)) == (size_t)-1) in __wcsnrtombs_std() 80 return (nbytes + nb - 1); in __wcsnrtombs_std() 82 nbytes += nb; in __wcsnrtombs_std() 90 if ((nb = pwcrtomb(dst, *s, ps)) == (size_t)-1) { in __wcsnrtombs_std() 103 if ((nb = pwcrtomb(buf, *s, ps)) == (size_t)-1) { in __wcsnrtombs_std() 107 if (nb > (int)len) { in __wcsnrtombs_std() 112 memcpy(dst, buf, nb); in __wcsnrtombs_std() 116 return (nbytes + nb - 1); in __wcsnrtombs_std() 119 dst += nb; in __wcsnrtombs_std() [all …]
|
| HD | mbsnrtowcs.c | 66 size_t nb; in __mbsnrtowcs_std() local 73 if ((nb = pmbrtowc(&wc, s, nms, ps)) == (size_t)-1) in __mbsnrtowcs_std() 76 else if (nb == 0 || nb == (size_t)-2) in __mbsnrtowcs_std() 78 s += nb; in __mbsnrtowcs_std() 79 nms -= nb; in __mbsnrtowcs_std() 86 if ((nb = pmbrtowc(dst, s, nms, ps)) == (size_t)-1) { in __mbsnrtowcs_std() 89 } else if (nb == (size_t)-2) { in __mbsnrtowcs_std() 92 } else if (nb == 0) { in __mbsnrtowcs_std() 96 s += nb; in __mbsnrtowcs_std() 97 nms -= nb; in __mbsnrtowcs_std()
|
| /freebsd-13-stable/sys/compat/linuxkpi/common/src/ |
| HD | linux_acpi.c | 123 struct notifier_block *nb = arg; in linux_handle_acpi_acad_event() local 135 nb->notifier_call(nb, 0, &abe); in linux_handle_acpi_acad_event() 141 struct notifier_block *nb = arg; in linux_handle_acpi_video_event() local 148 nb->notifier_call(nb, 0, &abe); in linux_handle_acpi_video_event() 152 register_acpi_notifier(struct notifier_block *nb) in register_acpi_notifier() argument 154 nb->tags[LINUX_ACPI_ACAD] = EVENTHANDLER_REGISTER(acpi_acad_event, in register_acpi_notifier() 155 linux_handle_acpi_acad_event, nb, EVENTHANDLER_PRI_FIRST); in register_acpi_notifier() 156 nb->tags[LINUX_ACPI_VIDEO] = EVENTHANDLER_REGISTER(acpi_video_event, in register_acpi_notifier() 157 linux_handle_acpi_video_event, nb, EVENTHANDLER_PRI_FIRST); in register_acpi_notifier() 163 unregister_acpi_notifier(struct notifier_block *nb) in unregister_acpi_notifier() argument [all …]
|
| /freebsd-13-stable/contrib/subversion/subversion/libsvn_repos/ |
| HD | load-fs-vtable.c | 379 struct node_baton *nb = apr_pcalloc(pool, sizeof(*nb)); in make_node_baton() local 383 nb->rb = rb; in make_node_baton() 384 nb->pool = pool; in make_node_baton() 385 nb->kind = svn_node_unknown; in make_node_baton() 395 nb->path = svn_relpath_join(rb->pb->parent_dir, val, pool); in make_node_baton() 397 nb->path = val; in make_node_baton() 403 nb->kind = svn_node_file; in make_node_baton() 405 nb->kind = svn_node_dir; in make_node_baton() 408 nb->action = (enum svn_node_action)(-1); /* an invalid action code */ in make_node_baton() 412 nb->action = svn_node_action_change; in make_node_baton() [all …]
|
| HD | node_tree.c | 264 struct node_baton *nb = apr_pcalloc(pool, sizeof(*nb)); in add_open_helper() local 268 nb->edit_baton = eb; in add_open_helper() 269 nb->parent_baton = pb; in add_open_helper() 272 nb->node = create_child_node(pb->node, svn_relpath_basename(path, NULL), in add_open_helper() 274 nb->node->kind = kind; in add_open_helper() 275 nb->node->action = action; in add_open_helper() 276 nb->node->copyfrom_rev = copyfrom_rev; in add_open_helper() 277 nb->node->copyfrom_path = in add_open_helper() 280 *child_baton = nb; in add_open_helper() 381 struct node_baton *nb = node_baton; in change_node_prop() local [all …]
|
| /freebsd-13-stable/sys/ufs/ffs/ |
| HD | ffs_balloc.c | 99 ufs1_daddr_t nb; in ffs_balloc_ufs1() local 139 nb = lastlbn; in ffs_balloc_ufs1() 140 osize = blksize(fs, ip, nb); in ffs_balloc_ufs1() 143 error = ffs_realloccg(ip, nb, dp->di_db[nb], in ffs_balloc_ufs1() 144 ffs_blkpref_ufs1(ip, lastlbn, (int)nb, in ffs_balloc_ufs1() 150 softdep_setup_allocdirect(ip, nb, in ffs_balloc_ufs1() 151 dbtofsb(fs, bp->b_blkno), dp->di_db[nb], in ffs_balloc_ufs1() 153 ip->i_size = smalllblktosize(fs, nb + 1); in ffs_balloc_ufs1() 155 dp->di_db[nb] = dbtofsb(fs, bp->b_blkno); in ffs_balloc_ufs1() 172 nb = dp->di_db[lbn]; in ffs_balloc_ufs1() [all …]
|
| /freebsd-13-stable/contrib/subversion/subversion/svndumpfilter/ |
| HD | svndumpfilter.c | 462 struct node_baton_t *nb; in new_node_record() local 468 nb = *node_baton; in new_node_record() 469 nb->rb = rev_baton; in new_node_record() 470 nb->node_pool = pool; in new_node_record() 471 pb = nb->rb->pb; in new_node_record() 482 nb->do_skip = skip_path(node_path, pb->prefixes, in new_node_record() 487 if (nb->do_skip) in new_node_record() 493 nb->rb->had_dropped_nodes = TRUE; in new_node_record() 537 nb->has_props = FALSE; in new_node_record() 538 nb->has_text = FALSE; in new_node_record() [all …]
|
| /freebsd-13-stable/sys/compat/linuxkpi/common/include/net/ |
| HD | netevent.h | 50 struct notifier_block *nb; in _handle_arp_update_event() local 52 nb = arg; in _handle_arp_update_event() 53 nb->notifier_call(nb, NETEVENT_NEIGH_UPDATE, lle); in _handle_arp_update_event() 57 register_netevent_notifier(struct notifier_block *nb) in register_netevent_notifier() argument 59 nb->tags[NETEVENT_NEIGH_UPDATE] = EVENTHANDLER_REGISTER( in register_netevent_notifier() 60 lle_event, _handle_arp_update_event, nb, 0); in register_netevent_notifier() 65 unregister_netevent_notifier(struct notifier_block *nb) in unregister_netevent_notifier() argument 68 EVENTHANDLER_DEREGISTER(lle_event, nb->tags[NETEVENT_NEIGH_UPDATE]); in unregister_netevent_notifier()
|
| /freebsd-13-stable/sys/arm/mv/ |
| HD | mpic.c | 145 static void mpic_unmask_irq(uintptr_t nb); 146 static void mpic_mask_irq(uintptr_t nb); 147 static void mpic_mask_irq_err(uintptr_t nb); 148 static void mpic_unmask_irq_err(uintptr_t nb); 411 mpic_unmask_irq_err(uintptr_t nb) in mpic_unmask_irq_err() argument 419 bit_off = nb - ERR_IRQ; in mpic_unmask_irq_err() 426 mpic_mask_irq_err(uintptr_t nb) in mpic_mask_irq_err() argument 431 bit_off = nb - ERR_IRQ; in mpic_mask_irq_err() 438 mpic_irq_is_percpu(uintptr_t nb) in mpic_irq_is_percpu() argument 440 if (nb < MPIC_PPI) in mpic_irq_is_percpu() [all …]
|
| HD | ic.c | 200 arm_mask_irq(uintptr_t nb) in arm_mask_irq() argument 204 if (nb < 32) { in arm_mask_irq() 206 mr &= ~(1 << nb); in arm_mask_irq() 209 } else if ((nb < 64) && mv_ic_sc->ic_high_regs) { in arm_mask_irq() 211 mr &= ~(1 << (nb - 32)); in arm_mask_irq() 214 } else if ((nb < 96) && mv_ic_sc->ic_error_regs) { in arm_mask_irq() 216 mr &= ~(1 << (nb - 64)); in arm_mask_irq() 222 arm_unmask_irq(uintptr_t nb) in arm_unmask_irq() argument 226 if (nb < 32) { in arm_unmask_irq() 228 mr |= (1 << nb); in arm_unmask_irq() [all …]
|
| /freebsd-13-stable/sys/fs/ext2fs/ |
| HD | ext2_balloc.c | 108 e4fs_daddr_t nb, newb; in ext2_balloc() local 135 nb = ip->i_db[lbn]; in ext2_balloc() 140 if (nb != 0) { in ext2_balloc() 145 bp->b_blkno = fsbtodb(fs, nb); in ext2_balloc() 187 nb = ip->i_ib[indirs[0].in_off]; in ext2_balloc() 188 if (nb == 0) { in ext2_balloc() 197 nb = newb; in ext2_balloc() 206 ext2_blkfree(ip, nb, fs->e2fs_bsize); in ext2_balloc() 222 nb = le32toh(bap[indirs[i].in_off]); in ext2_balloc() 226 if (nb != 0) { in ext2_balloc() [all …]
|
| /freebsd-13-stable/sys/x86/iommu/ |
| HD | intel_quirks.c | 76 typedef void (*dmar_quirk_nb_fun)(struct dmar_unit *, device_t nb); 92 device_t nb; in dmar_match_quirks() local 101 nb = pci_find_bsf(0, 0, 0); in dmar_match_quirks() 102 if (nb != NULL) { in dmar_match_quirks() 103 dev_id = pci_get_device(nb); in dmar_match_quirks() 104 rev_no = pci_get_revid(nb); in dmar_match_quirks() 115 nb_quirk->quirk(dmar, nb); in dmar_match_quirks() 149 nb_5400_no_low_high_prot_mem(struct dmar_unit *unit, device_t nb __unused) in nb_5400_no_low_high_prot_mem() 156 nb_no_ir(struct dmar_unit *unit, device_t nb __unused) in nb_no_ir() 163 nb_5500_no_ir_rev13(struct dmar_unit *unit, device_t nb) in nb_5500_no_ir_rev13() argument [all …]
|
| /freebsd-13-stable/crypto/openssl/crypto/bn/asm/ |
| HD | co-586.pl | 29 local($a,$ai,$b,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_; 46 &mov("edx",&DWP(($nb)*4,$b,"",0)) if $pos == 0; # load next b 47 &mov("edx",&DWP(($nb)*4,$b,"",0)) if $pos == 1; # load next b 57 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_; 76 &mov("edx",&DWP(($nb)*4,$a,"",0)) if ($pos == 1) && ($na != $nb); 86 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_; 112 &mov("edx",&DWP(($nb)*4,$a,"",0)) if ($pos <= 1) && ($na != $nb); 170 $nb=($bi+1); 175 $nb=$bs+($i >= ($num-1)); 178 &mul_add_c($a,$ai,$b,$bi,$c0,$c1,$c2,$v,$i,$na,$nb); [all …]
|
| /freebsd-13-stable/lib/lib80211/ |
| HD | lib80211_regdomain.c | 421 struct netband *nb; in lib80211_regdomain_readconfig() local 482 LIST_FOREACH(nb, &dp->bands_11b, next) { in lib80211_regdomain_readconfig() 483 id = findid(rdp, nb->band, FREQBAND); in lib80211_regdomain_readconfig() 486 __DECONST(char *, nb->band)); in lib80211_regdomain_readconfig() 489 nb->band = id; in lib80211_regdomain_readconfig() 491 LIST_FOREACH(nb, &dp->bands_11g, next) { in lib80211_regdomain_readconfig() 492 id = findid(rdp, nb->band, FREQBAND); in lib80211_regdomain_readconfig() 495 __DECONST(char *, nb->band)); in lib80211_regdomain_readconfig() 498 nb->band = id; in lib80211_regdomain_readconfig() 500 LIST_FOREACH(nb, &dp->bands_11a, next) { in lib80211_regdomain_readconfig() [all …]
|
| /freebsd-13-stable/lib/libc/db/btree/ |
| HD | bt_overflow.c | 82 size_t nb, plen; in __ovfl_get() local 106 for (p = *buf;; p = (char *)p + nb, pg = h->nextpg) { in __ovfl_get() 110 nb = MIN(sz, plen); in __ovfl_get() 111 memmove(p, (char *)h + BTDATAOFF, nb); in __ovfl_get() 114 if ((sz -= nb) == 0) in __ovfl_get() 137 size_t nb, plen; in __ovfl_put() local 155 nb = MIN(sz, plen); in __ovfl_put() 156 memmove((char *)h + BTDATAOFF, p, nb); in __ovfl_put() 164 if ((sz -= nb) == 0) { in __ovfl_put()
|
| /freebsd-13-stable/sys/contrib/octeon-sdk/cvmx-malloc/ |
| HD | malloc.c | 2747 INTERNAL_SIZE_T nb; /* padded request size */ in public_rEALLOc() local 2765 checked_request2size(bytes, nb); in public_rEALLOc() 2910 INTERNAL_SIZE_T nb; /* normalized request size */ in _int_malloc() local 2939 checked_request2size(bytes, nb); in _int_malloc() 2947 if ((unsigned long)(nb) <= (unsigned long)(av->max_fast)) { in _int_malloc() 2948 fb = &(av->fastbins[(fastbin_index(nb))]); in _int_malloc() 2951 check_remalloced_chunk(av, victim, nb); in _int_malloc() 2965 if (in_smallbin_range(nb)) { in _int_malloc() 2966 idx = smallbin_index(nb); in _int_malloc() 2974 set_inuse_bit_at_offset(victim, nb); in _int_malloc() [all …]
|
| /freebsd-13-stable/usr.sbin/ppp/ |
| HD | mbuf.c | 197 int nb; in mbuf_Read() local 202 nb = bp->m_len; in mbuf_Read() 204 nb = len; in mbuf_Read() 205 if (nb) { in mbuf_Read() 206 memcpy(ptr, MBUF_CTOP(bp), nb); in mbuf_Read() 207 ptr += nb; in mbuf_Read() 208 bp->m_len -= nb; in mbuf_Read() 209 len -= nb; in mbuf_Read() 210 bp->m_offset += nb; in mbuf_Read() 225 size_t nb, l = len; in mbuf_View() local [all …]
|
| HD | ip.c | 559 const unsigned char *packet, int nb, struct filter *filter, in PacketCheck() argument 629 "%s (%d/%d)", ncpaddr_ntoa(&dstaddr), len, nb); in PacketCheck() 643 "%s (%d/%d)", ncpaddr_ntoa(&dstaddr), len, nb); in PacketCheck() 665 len, nb); in PacketCheck() 682 nb - (payload - packet) - sizeof *uh - 4, filter, in PacketCheck() 717 "%s (%d/%d)", ncpaddr_ntoa(&dstaddr), datalen, nb); in PacketCheck() 730 "%s (%d/%d)", ncpaddr_ntoa(&dstaddr), datalen, nb); in PacketCheck() 743 "%s (%d/%d)", ncpaddr_ntoa(&dstaddr), datalen, nb); in PacketCheck() 749 result = PacketCheck(bundle, AF_INET6, payload, nb - (payload - packet), in PacketCheck() 770 result = PacketCheck(bundle, AF_INET, payload, nb - (payload - packet), in PacketCheck() [all …]
|
| /freebsd-13-stable/crypto/heimdal/lib/roken/ |
| HD | readv.c | 41 ssize_t ret, nb; in readv() local 53 nb = ret = read (d, buf, tot); in readv() 55 while (nb > 0) { in readv() 56 ssize_t cnt = min(nb, iov->iov_len); in readv() 60 nb -= cnt; in readv()
|
| HD | recvmsg.c | 41 ssize_t ret, nb; in recvmsg() local 54 nb = ret = recvfrom (s, buf, tot, flags, msg->msg_name, &msg->msg_namelen); in recvmsg() 56 while (nb > 0) { in recvmsg() 57 ssize_t cnt = min(nb, iov->iov_len); in recvmsg() 61 nb -= cnt; in recvmsg()
|