Searched refs:index (Results 1 - 25 of 1653) sorted by relevance

1234567891011>>

/freebsd-13-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/
H A Dtst.index.d.out4 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(\"boofoofo
[all...]
H A Dtst.substr.d33 int index;
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
[all...]
/freebsd-13-stable/contrib/ofed/librdmacm/
H A Dindexer.c43 * 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
89 int index; local
91 if ((index = idx->free_list) == 0) {
92 if ((index = idx_grow(idx)) <= 0)
93 return index;
96 entry = idx->array[idx_array_index(index)];
102 idx_remove(struct indexer *idx, int index) argument
114 idx_replace(struct indexer *idx, int index, void *item) argument
123 idm_grow(struct index_map *idm, int index) argument
136 idm_set(struct index_map *idm, int index, void *item) argument
155 idm_clear(struct index_map *idm, int index) argument
[all...]
H A Dindexer.h42 * Indexer - to find a structure given an index. Synchronization
65 #define idx_array_index(index) (index >> IDX_ENTRY_BITS)
66 #define idx_entry_index(index) (index & (IDX_ENTRY_SIZE - 1))
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) argument
74 return (idx->array[idx_array_index(index)] + idx_entry_index(index))
91 idm_at(struct index_map *idm, int index) argument
98 idm_lookup(struct index_map *idm, int index) argument
[all...]
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/zfs_list/
H A Dzfs_list.kshlib46 typeset -i index=1
57 EXPECTED=$(echo $list | awk "{print \$$index}")
65 ((index = index + 1))
70 if [ $index -ne $(echo $list | awk '{print split($0,arr)+1}') ]
87 # set our index to the be number of elements in the list
88 typeset -i index=$(echo $list | awk '{print split($0,arr)}')
99 EXPECTED=$(echo $list | awk "{print \$$index}")
108 ((index = index
[all...]
/freebsd-13-stable/sys/contrib/device-tree/scripts/
H A Dindex-filter.sh6 ${SCRIPTS}/rewrite-index.pl | GIT_INDEX_FILE=$GIT_INDEX_FILE.new git update-index --index-info
/freebsd-13-stable/contrib/bsnmp/snmp_mibII/
H A DmibII_route.c46 uint8_t index[13]; member in struct:sroute
65 return (memcmp(s1->index, s2->index, 13));
75 oid->subs[sub + i] = s->index[i];
85 printf("%u.", r->index[i]);
86 printf("%u proto=%u type=%u", r->index[i], r->proto, r->type);
118 /* build the index */
120 key.index[0] = (ha >> 24) & 0xff;
121 key.index[1] = (ha >> 16) & 0xff;
122 key.index[
[all...]
H A DmibII_ifstack.c43 stack->index.len = 2;
44 stack->index.subs[0] = upper ? upper->index : 0;
45 stack->index.subs[1] = lower ? lower->index : 0;
60 if (stack->index.subs[0] == (upper ? upper->index : 0) &&
61 stack->index.subs[1] == (lower ? lower->index : 0)) {
80 index_append(&value->var, sub, &stack->index);
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Headers/
H A Davx512pfintrin.h20 #define _mm512_mask_prefetch_i32gather_pd(index, mask, addr, scale, hint) \
21 __builtin_ia32_gatherpfdpd((__mmask8)(mask), (__v8si)(__m256i)(index), \
25 #define _mm512_prefetch_i32gather_pd(index, addr, scale, hint) \
26 __builtin_ia32_gatherpfdpd((__mmask8) -1, (__v8si)(__m256i)(index), \
30 #define _mm512_mask_prefetch_i32gather_ps(index, mask, addr, scale, hint) \
32 (__v16si)(__m512i)(index), (void const *)(addr), \
35 #define _mm512_prefetch_i32gather_ps(index, addr, scale, hint) \
37 (__v16si)(__m512i)(index), (void const *)(addr), \
40 #define _mm512_mask_prefetch_i64gather_pd(index, mask, addr, scale, hint) \
41 __builtin_ia32_gatherpfqpd((__mmask8)(mask), (__v8di)(__m512i)(index), \
[all...]
/freebsd-13-stable/contrib/subversion/subversion/svn/
H A Dfilesize.c49 /* Get the index of the order of magnitude of the given SIZE.
50 The returned index will be within [0 .. order_size - 1]. */
58 apr_size_t index = order_size;
59 while (index > 0)
61 --index;
62 if (abs_size > order[index].mask)
65 return index;
74 apr_size_t index,
85 const char *const suffix = (long_units ? order[index].suffix
86 : order[index]
56 apr_size_t index = order_size; local
69 format_size(double human_readable_size, svn_boolean_t long_units, const filesize_order_t *order, apr_size_t index, apr_pool_t *result_pool) argument
131 apr_size_t index = get_order_index(abs_size, order, order_size); local
178 apr_size_t index = get_order_index(abs_size, order, order_size); local
[all...]
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/online_offline/
H A Dsetup.ksh37 index=`expr $RANDOM % 2`
38 case $index in
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/
H A Dsetup.ksh37 index=`expr $RANDOM % 2`
38 case $index in
/freebsd-13-stable/usr.bin/mail/
H A Dstrings.c65 int s, index; local
71 index = 0;
73 if (sp->s_topFree == NULL && (STRINGSIZE << index) >= s)
77 index++;
82 index = sp - &stringdope[0];
83 if ((sp->s_topFree = malloc(STRINGSIZE << index)) == NULL)
84 err(1, "No room for space %d", index);
86 sp->s_nleft = STRINGSIZE << index;
103 int index; local
107 index
[all...]
/freebsd-13-stable/contrib/processor-trace/libipt/src/
H A Dpt_tnt_cache.c40 cache->index = 0ull;
48 return cache->index == 0;
58 if (!cache->index)
61 taken = (cache->tnt & cache->index) != 0;
62 cache->index >>= 1;
78 if (cache->index)
86 cache->index = 1ull << (bit_size - 1);
H A Dpt_block_cache.c62 int pt_bcache_add(struct pt_block_cache *bcache, uint64_t index, argument
68 if (bcache->nentries <= index)
75 bcache->entry[(uint32_t) index] = bce;
81 const struct pt_block_cache *bcache, uint64_t index)
86 if (bcache->nentries <= index)
93 *bce = bcache->entry[(uint32_t) index];
80 pt_bcache_lookup(struct pt_bcache_entry *bce, const struct pt_block_cache *bcache, uint64_t index) argument
/freebsd-13-stable/tests/sys/cddl/zfs/tests/cli_user/zfs_list/
H A Dzfs_list.kshlib47 typeset -i index=1
58 EXPECTED=$($ECHO $list | $AWK "{print \$$index}")
66 ((index = index + 1))
71 if [ $index -ne $($ECHO $list | $AWK '{print split($0,arr)+1}') ]
88 # set our index to the be number of elements in the list
89 typeset -i index=$($ECHO $list | $AWK '{print split($0,arr)}')
100 EXPECTED=$($ECHO $list | $AWK "{print \$$index}")
109 ((index = index
[all...]
/freebsd-13-stable/sys/contrib/octeon-sdk/
H A Dcvmx-helper-sgmii.c98 * @param index Index of prot on the interface
102 static int __cvmx_helper_sgmii_hardware_init_one_time(int interface, int index) argument
110 gmxx_prtx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface));
112 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmxx_prtx_cfg.u64);
117 pcsx_miscx_ctl_reg.u64 = cvmx_read_csr(CVMX_PCSX_MISCX_CTL_REG(index, interface));
118 pcsx_linkx_timer_count_reg.u64 = cvmx_read_csr(CVMX_PCSX_LINKX_TIMER_COUNT_REG(index, interface));
135 cvmx_write_csr(CVMX_PCSX_LINKX_TIMER_COUNT_REG(index, interface), pcsx_linkx_timer_count_reg.u64);
147 pcsx_anx_adv_reg.u64 = cvmx_read_csr(CVMX_PCSX_ANX_ADV_REG(index, interface));
152 cvmx_write_csr(CVMX_PCSX_ANX_ADV_REG(index, interface), pcsx_anx_adv_reg.u64);
161 cvmx_dprintf("SGMII%d%d: Forcing PHY mode as PHY address is not set\n", interface, index);
206 __cvmx_helper_sgmii_hardware_init_link(int interface, int index) argument
274 __cvmx_helper_sgmii_hardware_init_link_speed(int interface, int index, cvmx_helper_link_info_t link_info) argument
376 int index; local
486 int index; local
569 int index = cvmx_helper_get_interface_index_num(ipd_port); local
618 int index = cvmx_helper_get_interface_index_num(ipd_port); local
724 int index = cvmx_helper_get_interface_index_num(ipd_port); local
762 int index = cvmx_helper_get_interface_index_num(ipd_port); local
[all...]
H A Dcvmx-pow.c141 int index; local
174 for (index=0; index<num_pow_entries; index++)
181 load_addr.smemload.index = index;
186 dump->smemload[index][bits].u64 = cvmx_read_csr(load_addr.u64);
191 for (index=0; index<16; index
221 int index; local
404 int index; local
575 int index; local
[all...]
/freebsd-13-stable/sys/dev/xen/blkfront/
H A Dblock.h209 xbd_added_qentry(struct xbd_softc *sc, xbd_q_index_t index) argument
213 cmq = &sc->xbd_cm_q[index];
220 xbd_removed_qentry(struct xbd_softc *sc, xbd_q_index_t index) argument
222 sc->xbd_cm_q[index].q_length--;
226 xbd_queue_length(struct xbd_softc *sc, xbd_q_index_t index) argument
228 return (sc->xbd_cm_q[index].q_length);
232 xbd_initq_cm(struct xbd_softc *sc, xbd_q_index_t index) argument
236 cmq = &sc->xbd_cm_q[index];
243 xbd_enqueue_cm(struct xbd_command *cm, xbd_q_index_t index) argument
245 KASSERT(index !
257 xbd_requeue_cm(struct xbd_command *cm, xbd_q_index_t index) argument
271 xbd_dequeue_cm(struct xbd_softc *sc, xbd_q_index_t index) argument
297 xbd_q_index_t index; local
349 u_int index; local
[all...]
/freebsd-13-stable/contrib/ntp/lib/isc/
H A Dheap.c42 * not 0-based. The parent is index/2, and the left-child is index*2.
43 * The right child is index*2+1.
72 isc_heapindex_t index; member in struct:isc_heap
77 isc_heapindex_t index, unsigned int size_increment,
99 heap->index = index;
153 if (heap->index != NULL)
154 (heap->index)(heap->array[i], i);
157 if (heap->index !
76 isc_heap_create(isc_mem_t *mctx, isc_heapcompare_t compare, isc_heapindex_t index, unsigned int size_increment, isc_heap_t **heapp) argument
206 isc_heap_delete(isc_heap_t *heap, unsigned int index) argument
231 isc_heap_increased(isc_heap_t *heap, unsigned int index) argument
239 isc_heap_decreased(isc_heap_t *heap, unsigned int index) argument
247 isc_heap_element(isc_heap_t *heap, unsigned int index) argument
[all...]
/freebsd-13-stable/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_timer.c75 /* Find the first availabe timer index */
104 ar9300_free_generic_timer(struct ath_hal *ah, int index) argument
108 ar9300_stop_generic_timer(ah, index);
109 ahp->ah_avail_gen_timers |= AR_GENTMR_BIT(index);
115 int index,
119 if ((index < AR_FIRST_NDP_TIMER) || (index >= AR_NUM_GEN_TIMERS)) {
126 OS_REG_WRITE(ah, gen_timer_configuration[index].next_addr, timer_next);
127 OS_REG_WRITE(ah, gen_timer_configuration[index].period_addr, timer_period);
129 gen_timer_configuration[index]
113 ar9300_start_generic_timer( struct ath_hal *ah, int index, u_int32_t timer_next, u_int32_t timer_period) argument
153 ar9300_stop_generic_timer(struct ath_hal *ah, int index) argument
[all...]
/freebsd-13-stable/sys/mips/mediatek/
H A Dmtk_clock.c86 mtk_clock_set(device_t dev, int index, int value) argument
91 if (index < 0 || index > 31)
94 mask = (1u << index);
105 mtk_clock_enable(device_t dev, int index) argument
108 return mtk_clock_set(dev, index, CLOCK_ENABLE);
112 mtk_clock_disable(device_t dev, int index) argument
115 return mtk_clock_set(dev, index, CLOCK_DISABLE);
119 mtk_clock_get_info(device_t dev, int index, struct fdt_clock_info *info) argument
123 if (index <
[all...]
/freebsd-13-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/version/
H A Dtst.1.0.d41 int index;
/freebsd-13-stable/contrib/kyua/utils/sqlite/
H A Dstatement.cpp91 UNREACHABLE_MSG("Invalid index for bind argument");
218 /// \param index The column to request the name of.
222 sqlite::statement::column_name(const int index) argument
224 const char* name = ::sqlite3_column_name(_pimpl->stmt, index);
233 /// \param index The column to request the type of.
237 sqlite::statement::column_type(const int index) argument
239 return c_type_to_cxx(::sqlite3_column_type(_pimpl->stmt, index));
273 /// \param index The column to retrieve.
279 sqlite::statement::column_blob(const int index) argument
281 PRE(column_type(index)
293 column_double(const int index) argument
308 column_int(const int index) argument
321 column_int64(const int index) argument
337 column_text(const int index) argument
355 column_bytes(const int index) argument
493 bind(const int index, const blob& b) argument
508 bind(const int index, const double value) argument
522 bind(const int index, const int value) argument
536 bind(const int index, const int64_t value) argument
549 bind(const int index, const null& ) argument
567 bind(const int index, const std::string& text) argument
593 const int index = ::sqlite3_bind_parameter_index(_pimpl->stmt, local
606 bind_parameter_name(const int index) argument
[all...]
/freebsd-13-stable/contrib/ntp/lib/isc/include/isc/
H A Dheap.h37 * The index function allows the client of the heap to receive a callback
38 * when an item's index number changes. This allows it to maintain
40 * from the heap require the index be provided.
56 isc_heapindex_t index, unsigned int size_increment,
68 *\li "index" is a function which takes a void *, and an unsigned int
70 * index value changes, so it may continue to delete itself from the
102 isc_heap_delete(isc_heap_t *heap, unsigned int index);
104 * \brief Deletes an element from a heap, by element index.
108 *\li "index" is a valid element index, a
[all...]

Completed in 327 milliseconds

1234567891011>>