/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.index.d.out | 4 if (index("foobarbaz", "barbaz") != 3) { 5 printf("perl => index(\"foobarbaz\", \"barbaz\") = %d\n", 6 index("foobarbaz", "barbaz")); 7 printf(" D => index(\"foobarbaz\", \"barbaz\") = 3\n"); 18 if (index("foofoofoo", "foo") != 0) { 19 printf("perl => index(\"foofoofoo\", \"foo\") = %d\n", 20 index("foofoofoo", "foo")); 21 printf(" D => index(\"foofoofoo\", \"foo\") = 0\n"); 32 if (index("boofoofoo", "foo") != 3) { 33 printf("perl => index(\"boofoofoo\", \"foo\") = %d\n", [all …]
|
H A D | tst.substr.d | 33 int index; member 48 command[i].index = 3; 52 command[i].index = 300; 56 command[i].index = -10; 60 command[i].index = 0; 64 command[i].index = 1; 68 command[i].index = strlen(str) - 1; 72 command[i].index = strlen(str); 76 command[i].index = strlen(str) + 1; 80 command[i].index = 8; [all …]
|
/freebsd/contrib/bsnmp/snmp_mibII/ |
H A D | mibII_route.c | 46 uint8_t index[13]; member 65 return (memcmp(s1->index, s2->index, 13)); in sroute_compare() 75 oid->subs[sub + i] = s->index[i]; in sroute_index_append() 85 printf("%u.", r->index[i]); 86 printf("%u proto=%u type=%u", r->index[i], r->proto, r->type); 118 /* build the index */ in mib_sroute_process() 120 key.index[0] = (ha >> 24) & 0xff; in mib_sroute_process() 121 key.index[1] = (ha >> 16) & 0xff; in mib_sroute_process() 122 key.index[2] = (ha >> 8) & 0xff; in mib_sroute_process() 123 key.index[3] = (ha >> 0) & 0xff; in mib_sroute_process() [all …]
|
/freebsd/sys/kern/ |
H A D | subr_pctrie.c | 88 * Map index to an array position for the children of node, 91 pctrie_slot(struct pctrie_node *node, uint64_t index) in pctrie_slot() argument 93 return ((index >> node->pn_clev) & (PCTRIE_COUNT - 1)); in pctrie_slot() 97 * Returns true if index does not belong to the specified node. Otherwise, 101 pctrie_keybarr(struct pctrie_node *node, uint64_t index, int *slot) in pctrie_keybarr() argument 103 index = (index - node->pn_owner) >> node->pn_clev; in pctrie_keybarr() 104 if (index >= PCTRIE_COUNT) in pctrie_keybarr() 106 *slot = index; in pctrie_keybarr() 228 pctrie_addnode(struct pctrie_node *node, uint64_t index, in pctrie_addnode() argument 233 slot = pctrie_slot(node, index); in pctrie_addnode() [all …]
|
/freebsd/contrib/ofed/librdmacm/ |
H A D | indexer.c | 43 * Indexer - to find a structure given an index 45 * We store pointers using a double lookup and return an index to the 47 * the index are itself an index into an array of memory allocations. 51 * This allows us to adjust the number of pointers stored by the index 74 /* Index 0 is reserved */ in idx_grow() 89 int index; in idx_insert() local 91 if ((index = idx->free_list) == 0) { in idx_insert() 92 if ((index = idx_grow(idx)) <= 0) in idx_insert() 93 return index; in idx_insert() 96 entry = idx->array[idx_array_index(index)]; in idx_insert() [all …]
|
H A D | indexer.h | 42 * Indexer - to find a structure given an index. Synchronization 65 #define idx_array_index(index) (index >> IDX_ENTRY_BITS) argument 66 #define idx_entry_index(index) (index & (IDX_ENTRY_SIZE - 1)) argument 69 void *idx_remove(struct indexer *idx, int index); 70 void idx_replace(struct indexer *idx, int index, void *item); 72 static inline void *idx_at(struct indexer *idx, int index) in idx_at() argument 74 return (idx->array[idx_array_index(index)] + idx_entry_index(index))->item; in idx_at() 78 * Index map - associates a structure with an index. Synchronization 80 * index map by setting it to 0. 88 int idm_set(struct index_map *idm, int index, void *item); [all …]
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | X86DisassemblerTables.cpp | 621 for (unsigned index = 0; index < 256; ++index) { in getDecisionType() local 622 if (decision.instructionIDs[index] != decision.instructionIDs[0]) in getDecisionType() 625 if (((index & 0xc0) == 0xc0) && in getDecisionType() 626 (decision.instructionIDs[index] != decision.instructionIDs[0xc0])) in getDecisionType() 629 if (((index & 0xc0) != 0xc0) && in getDecisionType() 630 (decision.instructionIDs[index] != decision.instructionIDs[0x00])) in getDecisionType() 633 if (((index & 0xc0) == 0xc0) && (decision.instructionIDs[index] != in getDecisionType() 634 decision.instructionIDs[index & 0xf8])) in getDecisionType() 637 if (((index & 0xc0) != 0xc0) && (decision.instructionIDs[index] != in getDecisionType() 638 decision.instructionIDs[index & 0x38])) in getDecisionType() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | R600RegisterInfo.td | 44 foreach Index = 0-127 in { 47 def T#Index#_#Chan : R600RegWithChan <"T"#Index#"."#Chan, Index, Chan>; 50 def Addr#Index#_#Chan : R600RegWithChan <"T("#Index#" + AR.x)."#Chan, 51 Index, Chan>; 54 def T#Index#_XYZW : R600Reg_128 <"T"#Index#"", 55 [!cast<Register>("T"#Index#"_X"), 56 !cast<Register>("T"#Index#"_Y"), 57 !cast<Register>("T"#Index#"_Z"), 58 !cast<Register>("T"#Index#"_W")], 59 Index>; [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | SlotIndexes.h | 42 /// This class represents an entry in the slot index list held in the 48 unsigned index; variable 51 IndexListEntry(MachineInstr *mi, unsigned index) : mi(mi), index(index) {} in IndexListEntry() argument 58 unsigned getIndex() const { return index; } in getIndex() 59 void setIndex(unsigned index) { in setIndex() argument 60 this->index = index; in setIndex() 95 assert(isValid() && "Attempt to compare reserved index."); in listEntry() 115 /// Construct an invalid index. 123 // Construct a new slot index from the given one, and set the slot. 125 assert(isValid() && "Attempt to construct index with 0 pointer."); in SlotIndex() [all …]
|
/freebsd/contrib/kyua/utils/sqlite/ |
H A D | statement.cpp | 91 UNREACHABLE_MSG("Invalid index for bind argument"); in handle_bind_error() 218 /// \param index The column to request the name of. 222 sqlite::statement::column_name(const int index) in column_name() argument 224 const char* name = ::sqlite3_column_name(_pimpl->stmt, index); in column_name() 233 /// \param index The column to request the type of. 237 sqlite::statement::column_type(const int index) in column_type() argument 239 return c_type_to_cxx(::sqlite3_column_type(_pimpl->stmt, index)); in column_type() 273 /// \param index The column to retrieve. 279 sqlite::statement::column_blob(const int index) in column_blob() argument 281 PRE(column_type(index) == type_blob); in column_blob() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Option/ |
H A D | Option.cpp | 112 unsigned &Index) const { in acceptInternal() 114 const size_t ArgStringSize = StringRef(Args.getArgString(Index)).size(); in acceptInternal() 119 return std::make_unique<Arg>(*this, Spelling, Index++); in acceptInternal() 122 const char *Value = Args.getArgString(Index) + SpellingSize; in acceptInternal() 123 return std::make_unique<Arg>(*this, Spelling, Index++, Value); in acceptInternal() 127 const char *Str = Args.getArgString(Index) + SpellingSize; in acceptInternal() 128 auto A = std::make_unique<Arg>(*this, Spelling, Index++); in acceptInternal() 158 Index += 2; in acceptInternal() 159 if (Index > Args.getNumInputArgStrings() || in acceptInternal() 160 Args.getArgString(Index in acceptInternal() [all...] |
/freebsd/sys/dev/sfxge/ |
H A D | sfxge_ev.c | 52 unsigned int index; in sfxge_ev_qcomplete() local 59 index = evq->index; in sfxge_ev_qcomplete() 60 rxq = sc->rxq[index]; in sfxge_ev_qcomplete() 72 KASSERT(txq->evq_index == index, in sfxge_ev_qcomplete() 73 ("txq->evq_index != index")); in sfxge_ev_qcomplete() 93 rxq = evq->sc->rxq[evq->index]; in sfxge_get_rxq_by_label() 96 KASSERT(evq->index == rxq->index, ("evq->index != rxq->index")); in sfxge_get_rxq_by_label() 177 DBGPRINT(sc->dev, "[%d] %s", evq->index, in sfxge_ev_exception() 207 unsigned int index; in sfxge_ev_rxq_flush_done() local 219 index = rxq->index; in sfxge_ev_rxq_flush_done() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
H A D | LazyRandomTypeCollection.cpp | 81 uint32_t LazyRandomTypeCollection::getOffsetOfType(TypeIndex Index) { 82 error(ensureTypeExists(Index)); in getOffsetOfType() argument 83 assert(contains(Index)); in getOffsetOfType() 85 return Records[Index.toArrayIndex()].Offset; in getOffsetOfType() 88 CVType LazyRandomTypeCollection::getType(TypeIndex Index) { 89 assert(!Index.isSimple()); in getType() argument 91 auto EC = ensureTypeExists(Index); in getType() 93 assert(contains(Index)); in getType() 95 return Records[Index.toArrayIndex()].Type; in getType() 98 std::optional<CVType> LazyRandomTypeCollection::tryGetType(TypeIndex Index) { 99 tryGetType(TypeIndex Index) tryGetType() argument 112 getTypeName(TypeIndex Index) getTypeName() argument 134 contains(TypeIndex Index) contains() argument 156 ensureCapacityFor(TypeIndex Index) ensureCapacityFor() argument 280 replaceType(TypeIndex & Index,CVType Data,bool Stabilize) replaceType() argument [all...] |
/freebsd/usr.sbin/freebsd-update/ |
H A D | freebsd-update.sh | 67 IDS -- Compare the system against an index of "known good" files 924 if ! [ -f ${BDHASH}-install/INDEX-OLD ] || 925 ! [ -f ${BDHASH}-install/INDEX-NEW ]; then 1010 if ! [ -f ${BDHASH}-rollback/INDEX-OLD ] || 1011 ! [ -f ${BDHASH}-rollback/INDEX-NEW ]; then 1019 # published index. Figure out which index we should 1389 # Fetch metadata index file 1391 echo ${NDEBUG} "Fetching metadata index... " 1400 echo "update metadata index corrupt." 1421 fetch_metadata_bogus " index" [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | CoalescingBitVector.h | 37 /// \tparam IndexT - The type of the index into the bitvector. 40 "Index must be an unsigned integer."); 92 /// Set the bit at \p Index. 97 void set(IndexT Index) { in set() argument 98 assert(!test(Index) && "Setting already-set bits not supported/efficient, " in set() 100 insert(Index, Index); in set() 115 for (IndexT Index : Indices) in set() local 116 set(Index); in set() 119 /// Check whether the bit at \p Index is set. 120 bool test(IndexT Index) const { in test() argument [all …]
|
/freebsd/sys/dev/xen/blkfront/ |
H A D | block.h | 207 xbd_added_qentry(struct xbd_softc *sc, xbd_q_index_t index) in xbd_added_qentry() argument 211 cmq = &sc->xbd_cm_q[index]; in xbd_added_qentry() 218 xbd_removed_qentry(struct xbd_softc *sc, xbd_q_index_t index) in xbd_removed_qentry() argument 220 sc->xbd_cm_q[index].q_length--; in xbd_removed_qentry() 224 xbd_queue_length(struct xbd_softc *sc, xbd_q_index_t index) in xbd_queue_length() argument 226 return (sc->xbd_cm_q[index].q_length); in xbd_queue_length() 230 xbd_initq_cm(struct xbd_softc *sc, xbd_q_index_t index) in xbd_initq_cm() argument 234 cmq = &sc->xbd_cm_q[index]; in xbd_initq_cm() 241 xbd_enqueue_cm(struct xbd_command *cm, xbd_q_index_t index) in xbd_enqueue_cm() argument 243 KASSERT(index != XBD_Q_BIO, in xbd_enqueue_cm() [all …]
|
/freebsd/contrib/lutok/ |
H A D | state.cpp | 63 /// \pre stack(-1) is the table index. 114 /// \pre stack(-2) is the table index. 333 /// \param index The second parameter to luaL_getmetafield. 341 lutok::state::get_metafield(const int index, const std::string& name) in get_metafield() argument 343 return luaL_getmetafield(_pimpl->lua_state, index, name.c_str()) != 0; in get_metafield() 349 /// \param index The second parameter to lua_getmetatable. 353 lutok::state::get_metatable(const int index) in get_metatable() argument 355 return lua_getmetatable(_pimpl->lua_state, index) != 0; in get_metatable() 361 /// \param index The second parameter to lua_gettable. 368 lutok::state::get_table(const int index) in get_table() argument [all …]
|
/freebsd/sys/arm/allwinner/ |
H A D | a31_dmac.c | 134 uint8_t index; member 184 u_int index; in a31dmac_attach() local 247 for (index = 0; index < sc->nchans; index++) { in a31dmac_attach() 248 sc->chans[index].sc = sc; in a31dmac_attach() 249 sc->chans[index].index = index; in a31dmac_attach() 250 sc->chans[index].callback = NULL; in a31dmac_attach() 251 sc->chans[index].callbackarg = NULL; in a31dmac_attach() 254 (void **)&sc->chans[index].desc, in a31dmac_attach() 256 &sc->chans[index].dmamap); in a31dmac_attach() 261 error = bus_dmamap_load(sc->dmat, sc->chans[index].dmamap, in a31dmac_attach() [all …]
|
H A D | a10_dmac.c | 112 unsigned int index; in a10dmac_attach() local 142 for (index = 0; index < NDMA_CHANNELS; index++) { in a10dmac_attach() 143 sc->sc_ndma_channels[index].ch_sc = sc; in a10dmac_attach() 144 sc->sc_ndma_channels[index].ch_index = index; in a10dmac_attach() 145 sc->sc_ndma_channels[index].ch_type = CH_NDMA; in a10dmac_attach() 146 sc->sc_ndma_channels[index].ch_callback = NULL; in a10dmac_attach() 147 sc->sc_ndma_channels[index].ch_callbackarg = NULL; in a10dmac_attach() 148 sc->sc_ndma_channels[index].ch_regoff = AWIN_NDMA_REG(index); in a10dmac_attach() 149 DMACH_WRITE(&sc->sc_ndma_channels[index], AWIN_NDMA_CTL_REG, 0); in a10dmac_attach() 151 for (index = 0; index < DDMA_CHANNELS; index++) { in a10dmac_attach() [all …]
|
/freebsd/sys/ofed/include/rdma/ |
H A D | ib_cache.h | 46 * @index: The index into the cached GID table to query. 47 * @gid: The GID value found at the specified index. 48 * @attr: The GID attribute found at the specified index (only in RoCE). 56 int index, 61 * ib_find_cached_gid - Returns the port number and GID table index where 68 * @index: The index into the cached GID table where the GID was found. This 79 u16 *index); 82 * ib_find_cached_gid_by_port - Returns the GID table index where a specified 90 * @index: The index into the cached GID table where the GID was found. This 101 u16 *index); [all …]
|
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_timer.c | 75 /* Find the first availabe timer index */ in ar9300_alloc_generic_timer() 104 ar9300_free_generic_timer(struct ath_hal *ah, int index) in ar9300_free_generic_timer() argument 108 ar9300_stop_generic_timer(ah, index); in ar9300_free_generic_timer() 109 ahp->ah_avail_gen_timers |= AR_GENTMR_BIT(index); in ar9300_free_generic_timer() 115 int index, in ar9300_start_generic_timer() argument 119 if ((index < AR_FIRST_NDP_TIMER) || (index >= AR_NUM_GEN_TIMERS)) { in ar9300_start_generic_timer() 126 OS_REG_WRITE(ah, gen_timer_configuration[index].next_addr, timer_next); in ar9300_start_generic_timer() 127 OS_REG_WRITE(ah, gen_timer_configuration[index].period_addr, timer_period); in ar9300_start_generic_timer() 129 gen_timer_configuration[index].mode_addr, in ar9300_start_generic_timer() 130 gen_timer_configuration[index].mode_mask); in ar9300_start_generic_timer() [all …]
|
/freebsd/sys/dev/mthca/ |
H A D | mthca_mcg.c | 54 * If GID is found in MGM or MGM is empty, *index = *hash, *prev = -1 57 * if GID is found in AMGM, *index = index in AMGM, *prev = index of 60 * If no AMGM exists for given gid, *index = -1, *prev = index of last 65 u16 *hash, int *prev, int *index) in find_mgm() argument 88 *index = *hash; in find_mgm() 92 err = mthca_READ_MGM(dev, *index, mgm_mailbox); in find_mgm() 99 if (*index != *hash) { in find_mgm() 109 *prev = *index; in find_mgm() 110 *index = be32_to_cpu(mgm->next_gid_index) >> 6; in find_mgm() 111 } while (*index); in find_mgm() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCRegisterInfoDMR.td | 76 foreach Index = 0-63 in { 77 def DMRROW#Index : DMRROW<Index, "dmrrow"#Index>, DwarfRegNum<[-1, -1]>; 86 foreach Index = 0-31 in { 87 def DMRROWp#Index : DMRROWp<Index, "dmrrowp"#Index, 88 [!cast<DMRROW>("DMRROW"#!mul(Index, 2)), 89 !cast<DMRROW>("DMRROW"#!add(!mul(Index, 2), 1))]>, DwarfRegNum<[-1, -1]>; 98 foreach Index = 0-7 in { 99 def WACC#Index : WACC<Index, "wacc"#Index, 100 [!cast<DMRROWp>("DMRROWp"#!mul(Index, 4)), 101 !cast<DMRROWp>("DMRROWp"#!add(!mul(Index, 4), 1))]>, DwarfRegNum<[-1, -1]>; [all …]
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_dispatch_hier.h | 155 kmp_uint64 index) { in set_next_hand_thread() 156 lb[1 - index] = nlb; in set_next_hand_thread() 157 ub[1 - index] = nub; in set_next_hand_thread() 158 st[1 - index] = nst; in set_next_hand_thread() 159 status[1 - index] = nstatus; in set_next_hand_thread() 161 void set_next(T nlb, T nub, ST nst, kmp_int32 nstatus, kmp_uint64 index) { in set_next() 162 lb[1 - index] = nlb; in set_next() 163 ub[1 - index] = nub; in set_next() 164 st[1 - index] = nst; in set_next() 165 status[1 - index] = nstatus; in set_next() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonBlockRanges.h | 45 // This is to represent an "index", which is an abstraction of a position 57 IndexType(unsigned Idx) : Index(Idx) {} in IndexType() 59 static bool isInstr(IndexType X) { return X.Index >= First; } in isInstr() 75 unsigned Index = None; member 106 // A list of index ranges. This represents liveness of a register 178 assert(Index >= First); 179 return Index; 183 return Index == x; 187 return Index == Idx.Index; 191 return Index != x; [all …]
|