/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.index.d.out | 4 if (index("foobarbaz", "barbaz") != 3) { 6 index("foobarbaz", "barbaz")); 18 if (index("foofoofoo", "foo") != 0) { 20 index("foofoofoo", "foo")); 32 if (index("boofoofoo", "foo") != 3) { 34 index("boofoofoo", "foo")); 46 if (index("foobarbaz", "barbazzy") != -1) { 48 index("foobarbaz", "barbazzy")); 60 if (index("foobar", "foobar") != 0) { 62 index("foobar", "foobar")); [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); 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() 126 key.index[4] = (ha >> 24) & 0xff; in mib_sroute_process() [all …]
|
H A D | mibII_nettomedia.c | 53 if (at->index.subs[0] == ifp->index && in mib_find_arp() 54 (at->index.subs[1] == ((a >> 24) & 0xff)) && in mib_find_arp() 55 (at->index.subs[2] == ((a >> 16) & 0xff)) && in mib_find_arp() 56 (at->index.subs[3] == ((a >> 8) & 0xff)) && in mib_find_arp() 57 (at->index.subs[4] == ((a >> 0) & 0xff))) in mib_find_arp() 73 at->index.len = 5; in mib_arp_create() 74 at->index.subs[0] = ifp->index; in mib_arp_create() 75 at->index.subs[1] = (a >> 24) & 0xff; in mib_arp_create() 76 at->index.subs[2] = (a >> 16) & 0xff; in mib_arp_create() 77 at->index.subs[3] = (a >> 8) & 0xff; in mib_arp_create() [all …]
|
/freebsd/contrib/ofed/librdmacm/ |
H A D | indexer.c | 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() 97 idx->free_list = entry[idx_entry_index(index)].next; in idx_insert() 98 entry[idx_entry_index(index)].item = item; in idx_insert() 99 return index; in idx_insert() 102 void *idx_remove(struct indexer *idx, int index) in idx_remove() argument 107 entry = idx->array[idx_array_index(index)]; in idx_remove() [all …]
|
H A D | indexer.h | 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() 88 int idm_set(struct index_map *idm, int index, void *item); 89 void *idm_clear(struct index_map *idm, int index); 91 static inline void *idm_at(struct index_map *idm, int index) in idm_at() argument 94 entry = idm->array[idx_array_index(index)]; in idm_at() [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/sys/kern/ |
H A D | subr_pctrie.c | 92 pctrie_slot(struct pctrie_node *node, uint64_t index) in pctrie_slot() argument 94 return ((index >> node->pn_clev) & (PCTRIE_COUNT - 1)); in pctrie_slot() 102 pctrie_keybarr(struct pctrie_node *node, uint64_t index, int *slot) in pctrie_keybarr() argument 104 index = (index - node->pn_owner) >> node->pn_clev; in pctrie_keybarr() 105 if (index >= PCTRIE_COUNT) in pctrie_keybarr() 107 *slot = index; in pctrie_keybarr() 171 pctrie_child(struct pctrie *ptree, struct pctrie_node *node, uint64_t index) in pctrie_child() argument 174 &node->pn_child[pctrie_slot(node, index)]); in pctrie_child() 235 pctrie_addnode(struct pctrie_node *node, uint64_t index, in pctrie_addnode() argument 240 slot = pctrie_slot(node, index); in pctrie_addnode() [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 | 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() 353 lutok::state::get_metatable(const int index) in get_metatable() argument 355 return lua_getmetatable(_pimpl->lua_state, index) != 0; in get_metatable() 368 lutok::state::get_table(const int index) in get_table() argument 372 lua_pushvalue(_pimpl->lua_state, index < 0 ? index - 1 : index); in get_table() 394 lutok::state::insert(const int index) in insert() argument 396 lua_insert(_pimpl->lua_state, index); in insert() 406 lutok::state::is_boolean(const int index) in is_boolean() argument 408 return lua_isboolean(_pimpl->lua_state, index); in is_boolean() [all …]
|
/freebsd/contrib/kyua/utils/sqlite/ |
H A D | statement.cpp | 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() 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() 279 sqlite::statement::column_blob(const int index) in column_blob() argument 281 PRE(column_type(index) == type_blob); in column_blob() 282 return blob(::sqlite3_column_blob(_pimpl->stmt, index), in column_blob() 283 ::sqlite3_column_bytes(_pimpl->stmt, index)); in column_blob() 293 sqlite::statement::column_double(const int index) in column_double() argument 295 PRE(column_type(index) == type_float); in column_double() [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() 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() 220 if (index == evq->index) { in sfxge_ev_rxq_flush_done() [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/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_timer.c | 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() 138 if ((index < AR_GEN_TIMER_BANK_1_LEN)) { in ar9300_start_generic_timer() [all …]
|
/freebsd/contrib/sendmail/libsm/ |
H A D | utf8_valid.c | 45 size_t index; local 48 index = 0; 54 if (index >= length) 56 byte1 = bytes[index++]; 61 if (index == length) 63 if (byte1 < 0xC2 || bytes[index++] > 0xBF) 69 if (index + 1 >= length) 71 unsigned char byte2 = bytes[index++]; 78 || bytes[index++] > 0xBF) 85 if (index + 2 >= length) [all …]
|
/freebsd/sys/fs/udf/ |
H A D | osta.c | 316 int index, newIndex = 0, needsCRC = FALSE; in UDFTransName() local 325 for (index = 0; index < udfLen; index++) { in UDFTransName() 326 current = udfName[index]; in UDFTransName() 337 while(index+1 < udfLen && (IsIllegal(udfName[index+1]) in UDFTransName() 338 || !UnicodeIsPrint(udfName[index+1]))) { in UDFTransName() 339 index++; in UDFTransName() 344 if (current == PERIOD && (udfLen - index -1) <= EXT_SIZE) { in UDFTransName() 345 if (udfLen == index + 1) { in UDFTransName() 350 extIndex = index; in UDFTransName() 385 for(index = 0; index<EXT_SIZE && in UDFTransName() [all …]
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_radix.c | 67 radix_tree_lookup(struct radix_tree_root *root, unsigned long index) in radix_tree_lookup() argument 76 if (index > radix_max(root)) in radix_tree_lookup() 79 node = node->slots[radix_pos(index, height--)]; in radix_tree_lookup() 81 item = node->slots[radix_pos(index, 0)]; in radix_tree_lookup() 92 unsigned long index = iter->index; in radix_tree_iter_find() local 100 if (height == -1 || index > radix_max(root)) in radix_tree_iter_find() 105 int pos = radix_pos(index, height); in radix_tree_iter_find() 113 index += step; in radix_tree_iter_find() 114 index &= -step; in radix_tree_iter_find() 115 if ((index & mask) == 0) in radix_tree_iter_find() [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/sys/dev/fb/ |
H A D | splash_bmp.c | 226 u_char *index; /* running pointer to the data while drawing */ member 312 if (*info->index) { in bmp_DecodeRLE4() 313 for (count = 0; count < *info->index; count++, x++) { in bmp_DecodeRLE4() 315 bmp_SetPix(info, x, y, *(info->index+1) & 0x0f); in bmp_DecodeRLE4() 317 bmp_SetPix(info, x, y, (*(info->index+1) >>4) & 0x0f); in bmp_DecodeRLE4() 320 info->index += 2; in bmp_DecodeRLE4() 326 switch (*(info->index+1)) { in bmp_DecodeRLE4() 328 info->index += 2; in bmp_DecodeRLE4() 331 info->index = NULL; in bmp_DecodeRLE4() 334 x += *(info->index + 2); /* new coords */ in bmp_DecodeRLE4() [all …]
|
/freebsd/sys/arm/ti/clk/ |
H A D | clock_common.c | 57 int index, ncells, rv; in read_clock_cells() local 76 for (index = 0; index < clk->num_clock_cells; index++) { in read_clock_cells() 85 clk->clock_cells_ncells[index] = ncells; in read_clock_cells() 86 index += ncells; in read_clock_cells() 93 int index, clock_index, err; in find_parent_clock_names() local 98 for (index = 0, clock_index = 0; index < clk->num_clock_cells; index++) { in find_parent_clock_names() 105 index, clk->clock_cells[index]); in find_parent_clock_names() 107 index += clk->clock_cells_ncells[index]; in find_parent_clock_names() 119 index += clk->clock_cells_ncells[index]; in find_parent_clock_names()
|
/freebsd/sys/dev/mthca/ |
H A D | mthca_mcg.c | 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() 113 *index = -1; in find_mgm() 126 int index, prev; in mthca_multicast_attach() local 138 err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); in mthca_multicast_attach() [all …]
|
/freebsd/sys/dev/smartpqi/ |
H A D | smartpqi_tag.c | 160 int index = 0; in pqisrc_init_taglist() local 179 for (index = 1; index < stack->max_elem ; index++) { in pqisrc_init_taglist() 180 softs->rcb[index].tag = INVALID_ELEM; in pqisrc_init_taglist() 181 pqisrc_put_tag(stack, index); in pqisrc_init_taglist() 213 pqisrc_put_tag(lockless_stack_t *stack, uint32_t index) in pqisrc_put_tag() argument 218 DBG_INFO("push tag :%u\n",index); in pqisrc_put_tag() 220 if (index >= stack->max_elem) { in pqisrc_put_tag() 226 if (stack->next_index_array[index] != 0) { in pqisrc_put_tag() 237 new_head.top.index = index; in pqisrc_put_tag() 239 stack->next_index_array[index] = cur_head.top.index; in pqisrc_put_tag() [all …]
|
/freebsd/sys/dev/vmm/ |
H A D | vmm_stat.c | 70 vst->index = vst_num_elems; in vmm_stat_register() 77 vmm_stat_copy(struct vcpu *vcpu, int index, int count, int *num_stats, in vmm_stat_copy() argument 84 if (index < 0 || count < 0) in vmm_stat_copy() 87 if (index > vst_num_elems) in vmm_stat_copy() 90 if (index == vst_num_elems) { in vmm_stat_copy() 95 tocopy = min(vst_num_elems - index, count); in vmm_stat_copy() 106 memcpy(buf, stats + index, tocopy * sizeof(stats[0])); in vmm_stat_copy() 132 vmm_stat_desc_copy(int index, char *buf, int bufsize) in vmm_stat_desc_copy() argument 139 if (index >= vst->index && index < vst->index + vst->nelems) { in vmm_stat_desc_copy() 142 vst->desc, index - vst->index); in vmm_stat_desc_copy()
|
/freebsd/sys/cam/ |
H A D | cam_queue.c | 47 static void heap_down(cam_pinfo **queue_array, int index, 127 new_entry->index = queue->entries; in camq_insert() 139 camq_remove(struct camq *queue, int index) in camq_remove() argument 143 if (index <= 0 || index > queue->entries) in camq_remove() 145 "from queue %p of size %d", __func__, index, queue, in camq_remove() 148 removed_entry = queue->queue_array[index]; in camq_remove() 149 if (queue->entries != index) { in camq_remove() 150 queue->queue_array[index] = queue->queue_array[queue->entries]; in camq_remove() 151 queue->queue_array[index]->index = index; in camq_remove() 152 heap_down(queue->queue_array, index, queue->entries - 1); in camq_remove() [all …]
|