Home
last modified time | relevance | path

Searched refs:ptn (Results 1 – 15 of 15) sorted by relevance

/netbsd/src/sys/sys/
Dptree.h97 #define PTN__TYPELESS(ptn) (((uintptr_t)ptn) & ~PT_TYPE_MASK) argument
98 #define PTN_LEAF(ptn) (PTN__TYPELESS(ptn) | PT_TYPE_LEAF) argument
99 #define PTN_BRANCH(ptn) (PTN__TYPELESS(ptn) | PT_TYPE_BRANCH) argument
102 #define PTN_MARK_MASK(ptn) ((ptn)->ptn_nodedata |= PTN_MASK_FLAG) argument
103 #define PTN_ISMASK_P(ptn) (((ptn)->ptn_nodedata & PTN_MASK_FLAG) != 0) argument
105 #define PTN_MARK_XBRANCH(ptn) ((ptn)->ptn_branchdata |= PTN_XBRANCH_FLAG) argument
106 #define PTN_ISXBRANCH_P(ptn) (((ptn)->ptn_branchdata & PTN_XBRANCH_FLAG) != 0) argument
107 #define PTN_ISROOT_P(pt, ptn) ((ptn) == &(pt)->pt_rootnode) argument
109 #define PTN_BRANCH_SLOT(ptn,slot) ((ptn)->ptn_slots[slot]) argument
110 #define PTN_BRANCH_ROOT_SLOT(ptn) ((ptn)->ptn_slots[PT_SLOT_ROOT]) argument
[all …]
/netbsd/src/common/lib/libc/gen/
Dptree.c107 #define NODETOITEM(pt, ptn) \ argument
108 ((void *)((uintptr_t)(ptn) - (pt)->pt_node_offset))
109 #define NODETOKEY(pt, ptn) \ argument
110 ((void *)((uintptr_t)(ptn) - (pt)->pt_node_offset + pt->pt_key_offset))
111 #define ITEMTONODE(pt, ptn) \ argument
112 ((pt_node_t *)((uintptr_t)(ptn) + (pt)->pt_node_offset))
122 const pt_node_t *ptn, pt_bitoff_t max_bitoff, in ptree_matchnode() argument
126 (ptn != NULL ? NODETOKEY(pt, ptn) : NULL), in ptree_matchnode()
132 const pt_node_t *ptn) in ptree_testnode() argument
134 const pt_bitlen_t bitlen = PTN_BRANCH_BITLEN(ptn); in ptree_testnode()
[all …]
/netbsd/src/sbin/fdisk/
Dfdisk.c118 struct mbr_sector *ptn; /* array of pbrs */ member
684 offset += le32toh(ext.ptn[part - 1].mbr_parts[1].mbrp_start); in ext_offset()
711 print_part(&ext.ptn[part], 0, ext_offset(part)); in print_s0()
714 print_mbr_partition(&ext.ptn[part], 1, in print_s0()
756 print_part(&ext.ptn[which], 0, ext_offset(which)); in print_s0()
777 part = boot - ext.ptn; in print_part()
1148 if (reallocarr(&ext.ptn, in get_extended_ptn()
1149 ext.num_ptn + 1, sizeof(*ext.ptn)) != 0) in get_extended_ptn()
1151 boot = ext.ptn + ext.num_ptn; in get_extended_ptn()
1356 if (ext.ptn[p].mbr_parts[0].mbrp_type == 0) in get_default_boot()
[all …]
/netbsd/src/sbin/fsck/
Dpartutil.c107 int ptn, error; in getdiskinfo() local
163 ptn = DISKPART(sb.st_rdev); in getdiskinfo()
164 if (ptn < 0 || ptn >= lp->d_npartitions) in getdiskinfo()
167 pp = &lp->d_partitions[ptn]; in getdiskinfo()
168 if (ptn != getrawpartition()) { in getdiskinfo()
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/scripts/
Dmake_exports.pl57 my $ptn = $1;
59 $ptn =~ s/\*/.*/g;
61 $ptn =~ s/\?/./g;
62 push @$glob,$ptn;
/netbsd/src/sys/arch/evbarm/ixm1200/
Dnappi_nr.c107 static const int ptn[] = { 1, 2, 4, 8, 4, 2 }; in nappinr_callout() local
111 v = ptn[sc->sc_pos++ % 6]; in nappinr_callout()
112 v |= ptn[sc->sc_pos++ % 6] << 4; in nappinr_callout()
/netbsd/src/sys/kern/
Dtty_pty.c222 pty_check(int ptn) in pty_check() argument
226 if (ptn >= npty) { in pty_check()
232 if (ptn >= maxptys) { in pty_check()
239 for (newnpty = npty; newnpty <= ptn;) in pty_check()
255 if (ptn >= maxptys) { in pty_check()
289 if (!pt_softc[ptn]) { in pty_check()
302 if (pt_softc[ptn]) { in pty_check()
311 pt_softc[ptn] = pti; in pty_check()
375 int ptn = minor(dev); in ptsopen() local
377 if ((error = pty_check(ptn)) != 0) in ptsopen()
[all …]
/netbsd/src/external/gpl3/gcc/dist/contrib/
Dmake_sunver.pl261 my $ptn = $2;
264 ($pattern = $ptn) =~ s/\*/\.\*/g;
274 print "$ws##$ptn ($glob)\n";
/netbsd/src/external/bsd/libarchive/dist/libarchive/
Darchive_read_support_format_lha.c2711 int i, maxbits = 0, ptn, tbl_size, w; in lzh_make_huffman_table() local
2717 ptn = 0; in lzh_make_huffman_table()
2719 bitptn[i] = ptn; in lzh_make_huffman_table()
2722 ptn += hf->freq[i] * w; in lzh_make_huffman_table()
2726 if (ptn != 0x10000 || maxbits > hf->tbl_bits) in lzh_make_huffman_table()
2780 ptn = bitptn[len]; in lzh_make_huffman_table()
2784 if ((bitptn[len] = ptn + cnt) > tbl_size) in lzh_make_huffman_table()
2787 p = &(tbl[ptn]); in lzh_make_huffman_table()
2829 bitptn[len] = ptn + cnt; in lzh_make_huffman_table()
2833 p = &(tbl[ptn >> diffbits]); in lzh_make_huffman_table()
[all …]
Darchive_read_support_format_cab.c3156 int i, maxbits = 0, ptn, tbl_size, w; in lzx_make_huffman_table() local
3162 ptn = 0; in lzx_make_huffman_table()
3164 bitptn[i] = ptn; in lzx_make_huffman_table()
3167 ptn += hf->freq[i] * w; in lzx_make_huffman_table()
3171 if ((ptn & 0xffff) != 0 || maxbits > hf->tbl_bits) in lzx_make_huffman_table()
3207 ptn = bitptn[len]; in lzx_make_huffman_table()
3210 if ((bitptn[len] = ptn + cnt) > tbl_size) in lzx_make_huffman_table()
3213 p = &(tbl[ptn]); in lzx_make_huffman_table()
/netbsd/src/sys/arch/powerpc/ibm4xx/
Dpmap.c232 int seg = STIDX(va), ptn = PTIDX(va); in pte_enter() local
248 oldpte = pm->pm_ptbl[seg][ptn]; in pte_enter()
249 pm->pm_ptbl[seg][ptn] = pte; in pte_enter()
268 int seg = STIDX(va), ptn = PTIDX(va); in pte_find() local
271 return &pm->pm_ptbl[seg][ptn]; in pte_find()
1010 int seg = STIDX(va), ptn = PTIDX(va); in pmap_extract() local
1016 if (pm->pm_ptbl[seg] && (pa = pm->pm_ptbl[seg][ptn]) && pap) in pmap_extract()
/netbsd/src/external/gpl3/gcc/dist/gcc/
Dgdbinit.in28 pgs [tree], pge [tree], pdn [tree], ptn [tree],
183 define ptn
189 document ptn
DChangeLog-202037759 (pp, pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, ptc, pdn, ptn, pdd, prc,
/netbsd/src/sbin/resize_ffs/
Dresize_ffs.c2121 size_t ptn; in get_dev_size() local
2127 ptn = strchr(dev_name, '\0')[-1] - 'a'; in get_dev_size()
2128 if (ptn >= lp.d_npartitions) in get_dev_size()
2130 pp = &lp.d_partitions[ptn]; in get_dev_size()
/netbsd/src/usr.bin/xlint/lint1/
Dtree.c3573 tspec_t ot, const tnode_t *ptn) in should_warn_about_prototype_conversion() argument
3601 if (ptn->tn_op == CON && is_integer(nt) && in should_warn_about_prototype_conversion()
3603 !msb(ptn->u.value.u.integer, ot)) in should_warn_about_prototype_conversion()
3634 tnode_t *ptn = promote(NOOP, true, tn); in check_prototype_conversion() local
3635 ot = ptn->tn_type->t_tspec; in check_prototype_conversion()
3637 if (should_warn_about_prototype_conversion(nt, ot, ptn)) { in check_prototype_conversion()