Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 1478) sorted by relevance

12345678910>>...60

/illumos-gate/usr/src/cmd/dtrace/test/tst/common/funcs/
H A Dtst.index.d.out4 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 Dtst.substr.d31 int index; member
46 command[i].index = 3;
50 command[i].index = 300;
54 command[i].index = -10;
58 command[i].index = 0;
62 command[i].index = 1;
66 command[i].index = strlen(str) - 1;
70 command[i].index = strlen(str);
74 command[i].index = strlen(str) + 1;
78 command[i].index = 8;
[all …]
/illumos-gate/usr/src/lib/libsqlite/test/
H A Dindex.test15 # $Id: index.test,v 1.24.2.1 2004/07/20 00:50:30 drh Exp $
20 # Create a basic index and verify it is added to sqlite_master
22 do_test index-1.1 {
27 do_test index-1.1b {
30 } {index1 {CREATE INDEX index1 ON test1(f1)} test1 index}
31 do_test index-1.1c {
36 } {index1 {CREATE INDEX index1 ON test1(f1)} test1 index}
37 do_test index-1.1d {
43 # Verify that the index dies with the table
45 do_test index-1.2 {
[all …]
/illumos-gate/usr/src/lib/mpapi/libmpapi/common/
H A Dmpapi.c475 MP_UINT32 index; in MP_GetPluginProperties() local
488 index = pluginOid.ownerId - 1; in MP_GetPluginProperties()
489 if (plugintable[index].hdlPlugin != NULL) { in MP_GetPluginProperties()
491 dlsym(plugintable[index].hdlPlugin, "MP_GetPluginPropertiesPlugin"); in MP_GetPluginProperties()
652 MP_UINT32 index; in MP_GetDeviceProductOidList() local
665 index = oid.ownerId - 1; in MP_GetDeviceProductOidList()
666 if (plugintable[index].hdlPlugin != NULL) { in MP_GetDeviceProductOidList()
668 dlsym(plugintable[index].hdlPlugin, in MP_GetDeviceProductOidList()
726 MP_UINT32 index; in MP_GetDeviceProductProperties() local
739 index = oid.ownerId - 1; in MP_GetDeviceProductProperties()
[all …]
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/
H A DmetaMechManager.c219 unsigned long index, num_found = 0; in meta_mechManager_get_slots() local
230 found = find_mech_index(mech_support_info->mech, &index); in meta_mechManager_get_slots()
237 if (!mechlist[index].slots[i].initialized || in meta_mechManager_get_slots()
238 !mechlist[index].slots[i].supported) in meta_mechManager_get_slots()
242 info = mechlist[index].slots[i].mechanism_info; in meta_mechManager_get_slots()
250 = &mechlist[index].slots[i]; in meta_mechManager_get_slots()
284 unsigned long index = 0; in meta_mechManager_update_mech() local
288 rv = meta_mechManager_allocmechs(&mech, 1, &index); in meta_mechManager_update_mech()
298 found = find_mech_index(mech, &index); in meta_mechManager_update_mech()
307 if (force_refresh || !mechlist[index].slots[slot].initialized) { in meta_mechManager_update_mech()
[all …]
/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_intr.c75 unsigned int index; in sfxge_intr_line() local
106 for (index = 0; index < EFX_INTR_NEVQS; index++) { in sfxge_intr_line()
107 if (qmask & (1 << index)) in sfxge_intr_line()
108 (void) sfxge_ev_qpoll(sp, index); in sfxge_intr_line()
124 for (index = 0; index < EFX_INTR_NEVQS; index++) { in sfxge_intr_line()
125 if (sp->s_sep[index] != NULL) in sfxge_intr_line()
126 (void) sfxge_ev_qpoll(sp, index); in sfxge_intr_line()
131 for (index = 0; index < EFX_INTR_NEVQS; index++) { in sfxge_intr_line()
132 if (sp->s_sep[index] != NULL) in sfxge_intr_line()
133 (void) sfxge_ev_qprime(sp, index); in sfxge_intr_line()
[all …]
H A Dsfxge_ev.c207 unsigned int index = sep->se_index; in sfxge_ev_qcomplete() local
208 sfxge_rxq_t *srp = sp->s_srp[index]; in sfxge_ev_qcomplete()
221 ASSERT3U(stp->st_evq, ==, index); in sfxge_ev_qcomplete()
354 unsigned int index; in sfxge_ev_rxq_flush_done() local
366 index = srp->sr_index; in sfxge_ev_rxq_flush_done()
367 if (index == sep->se_index) { in sfxge_ev_rxq_flush_done()
373 sep_targetq = sp->s_sep[index]; in sfxge_ev_rxq_flush_done()
394 unsigned int index; in sfxge_ev_rxq_flush_failed() local
406 index = srp->sr_index; in sfxge_ev_rxq_flush_failed()
407 if (index == sep->se_index) { in sfxge_ev_rxq_flush_failed()
[all …]
/illumos-gate/usr/src/uts/i86pc/dboot/
H A Ddboot_multiboot2.c111 int index = 0; in dboot_multiboot2_iterate() local
116 if (callback(index, tagp, ctx) == B_TRUE) { in dboot_multiboot2_iterate()
117 return (index + 1); in dboot_multiboot2_iterate()
122 index++; in dboot_multiboot2_iterate()
124 return (index); in dboot_multiboot2_iterate()
145 dboot_multiboot2_iterate_callback(int index, multiboot_tag_t *tagp, in dboot_multiboot2_iterate_callback() argument
148 if (index == ctx->dboot_iter_index) { in dboot_multiboot2_iterate_callback()
169 dboot_multiboot2_modstart(multiboot2_info_header_t *mbi, int index) in dboot_multiboot2_modstart() argument
174 .dboot_iter_index = index, in dboot_multiboot2_modstart()
189 dboot_multiboot2_modend(multiboot2_info_header_t *mbi, int index) in dboot_multiboot2_modend() argument
[all …]
/illumos-gate/usr/src/stand/lib/inet/
H A Dudp.c100 udp_input(int index) in udp_input() argument
108 printf("udp_input(%d) ###############################\n", index); in udp_input()
110 while ((igp = sockets[index].inq) != NULL) { in udp_input()
114 index, igp->igm_level); in udp_input()
116 del_gram(&sockets[index].inq, igp, TRUE); in udp_input()
122 header_len = (sockets[index].headerlen[TRANSPORT_LVL])(NULL); in udp_input()
129 &igp->igm_target, sockets[index].proto) != 0) { in udp_input()
131 "from %s.\n", index, in udp_input()
133 del_gram(&sockets[index].inq, igp, TRUE); in udp_input()
139 if (sockets[index].bind.sin_port != udphp->uh_dport) { in udp_input()
[all …]
H A Dipv4.c173 frag_free(int index) in frag_free() argument
175 if (fragment[index].mp != NULL) { in frag_free()
176 freeb(fragment[index].mp); in frag_free()
179 bzero((caddr_t)&fragment[index], sizeof (struct ip_frag)); in frag_free()
344 int index; in ipv4_route() local
354 for (index = 0; index < IPV4_ROUTE_TABLE_SIZE; index++) in ipv4_route()
355 table[index].flag = RT_UNUSED; in ipv4_route()
362 if ((index = find_route(&tmp_flag, NULL, NULL)) == -1) { in ipv4_route()
367 table[index].flag = flag; in ipv4_route()
369 table[index].dest.s_addr = destp->s_addr; in ipv4_route()
[all …]
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dslk.c190 int index; in __m_slk_clear() local
199 for (index = 0; index < 8; ++index) { in __m_slk_clear()
200 i = format[__m_slk_format][index]; in __m_slk_clear()
207 for (index = 0; index < 8; ++index) { in __m_slk_clear()
209 p = __m_screen->_slk._saved[index]; in __m_slk_clear()
214 __m_screen->_slk._saved[index] = p; in __m_slk_clear()
290 int index; in __m_slk_doupdate() local
291 for (index = 0; index < 8; index++) { in __m_slk_doupdate()
292 char *s = __m_screen->_slk._saved[index]; in __m_slk_doupdate()
294 (void) TPUTS(tparm(plab_norm, (long) index+1, in __m_slk_doupdate()
[all …]
/illumos-gate/usr/src/uts/common/io/xge/drv/
H A Dxge.c272 int index) in xge_ring_config() argument
276 (void) xge_os_snprintf(msg, MSG_SIZE, "ring%d_configured", index); in xge_ring_config()
277 device_config->ring.queue[index].configured = in xge_ring_config()
279 msg, index < XGELL_RX_RING_NUM_MAX ? 1 : 0); in xge_ring_config()
282 if (!device_config->ring.queue[index].configured) in xge_ring_config()
286 device_config->ring.queue[index].no_snoop_bits = 1; in xge_ring_config()
289 (void) xge_os_snprintf(msg, MSG_SIZE, "ring%d_max", index); in xge_ring_config()
290 device_config->ring.queue[index].max = in xge_ring_config()
295 (void) xge_os_snprintf(msg, MSG_SIZE, "ring%d_initial", index); in xge_ring_config()
296 device_config->ring.queue[index].initial = in xge_ring_config()
[all …]
/illumos-gate/usr/src/uts/sun4u/io/px/
H A Dpx_csr.h40 #define CSRA_XR(base, off, index) \ argument
41 (*(volatile uint64_t *)((base) + ((off) + ((index) * 8))))
46 #define CSRA_XS(base, off, index, val) \ argument
47 ((*(volatile uint64_t *)((base) + ((off) + ((index) * 8)))) = (val))
54 #define CSRA_FR(base, off, index, bit) \ argument
55 (((*(volatile uint64_t *) ((base) + ((off) + ((index) * 8)))) >> \
64 #define CSRA_FS(base, off, index, bit, val) \ argument
65 ((*(volatile uint64_t *) ((base) + ((off) + ((index) * 8)))) = \
66 (((*(volatile uint64_t *) ((base) + ((off) + ((index) * 8)))) & \
75 #define CSRA_FC(base, off, index, bit) \ argument
[all …]
/illumos-gate/usr/src/cmd/dtrace/demo/
H A Dchapters3 index: 0
8 index: 10
13 index: 9
18 index: 34
23 index: 11
28 index: 17
33 index: 20
38 index: 1
43 index: 27
48 index: 18
[all …]
/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dch_mac.c75 u32 index; member
96 mac_intr |= static_aPorts[mac->instance->index]; in mac_intr_enable()
122 mac_intr &= ~(static_aPorts[mac->instance->index]); in mac_intr_disable()
147 mac_intr |= (static_aPorts[mac->instance->index]); in mac_intr_clear()
160 MAC_REG_IDLO(mac->instance->index)); in mac_get_address()
162 MAC_REG_IDHI(mac->instance->index)); in mac_get_address()
177 int idx = mac->instance->index; in mac_reset()
205 MAC_REG_CSR(mac->instance->index)); in mac_set_rx_mode()
210 MAC_REG_CSR(mac->instance->index), val); in mac_set_rx_mode()
221 MAC_REG_CSR(mac->instance->index)); in mac_set_speed_duplex_fc()
[all …]
/illumos-gate/usr/src/uts/common/io/usb/clients/hidparser/
H A DREADME338 hidparser: scanner: index = 0x0 ch = 0x5 [ = 0x00000101 = tag[0],
351 hidparser: scanner: parsed_text[0] = 0x1,index = 0x1
369 hidparser: hidparser_GlobalItem:index = 0x0 token = 0x4
377 hidparser: scanner: index = 0x2 ch = 0x9 [ = 0x00001001 = tag[0],
380 hidparser: scanner: parsed_text[0] = 0x8,index = 0x3
383 hidparser: hidparser_LocalItem:index = 0x2 token = 0x8
389 hidparser: scanner: index = 0x4 ch = 0xa1 [= 0x10100001 = tag[a],
392 hidparser: scanner: parsed_text[0] = 0x1,index = 0x5
408 hidparser: hidparser_MainItem:index = 0x4 token = 0xa0
409 hidparser: scanner: index = 0x6 ch = 0xa1
[all …]
/illumos-gate/usr/src/lib/mpapi/libmpscsi_vhci/common/
H A Dmp_utils.c209 int index = -1; in notifyClient() local
236 index = MP_OBJECT_TYPE_PLUGIN; in notifyClient()
241 index = MP_OBJECT_TYPE_MULTIPATH_LU; in notifyClient()
246 index = MP_OBJECT_TYPE_PATH_LU; in notifyClient()
251 index = MP_OBJECT_TYPE_INITIATOR_PORT; in notifyClient()
256 index = MP_OBJECT_TYPE_TARGET_PORT_GROUP; in notifyClient()
261 index = MP_OBJECT_TYPE_TARGET_PORT; in notifyClient()
266 index = MP_OBJECT_TYPE_DEVICE_PRODUCT; in notifyClient()
282 index = MP_OBJECT_TYPE_MULTIPATH_LU; in notifyClient()
287 index = MP_OBJECT_TYPE_PATH_LU; in notifyClient()
[all …]
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DSLPTokenizer.java49 private int index; field in SLPTokenizer
56 index = 0; in initialize()
130 if (index >= str.length()) { in hasMoreElements()
137 for (int i = index; i < str.length(); i++) { in hasMoreElements()
176 if (index >= str.length()) throw new NoSuchElementException(); in nextToken()
179 char c = str.charAt(index); in nextToken()
187 sb.append(str.charAt(index)); in nextToken()
188 index++; in nextToken()
193 while (index < str.length()) { in nextToken()
195 c = str.charAt(index); in nextToken()
[all …]
/illumos-gate/usr/src/uts/common/kiconv/kiconv_tc/
H A Dkiconv_tc.c653 size_t index; in big5_to_utf8_common() local
657 index = kiconv_binsearch(big5_val, table, nitems); in big5_to_utf8_common()
658 u8 = table[index].u8; in big5_to_utf8_common()
666 if (index == 0) in big5_to_utf8_common()
669 for (index = 0; index < sz; index++) in big5_to_utf8_common()
670 *ob++ = u8[index]; in big5_to_utf8_common()
724 size_t index; in euctw_to_utf8() local
731 index = kiconv_binsearch(euctw_val, kiconv_cns1_utf8, in euctw_to_utf8()
733 u8 = kiconv_cns1_utf8[index].u8; in euctw_to_utf8()
736 index = kiconv_binsearch(euctw_val, kiconv_cns2_utf8, in euctw_to_utf8()
[all …]
/illumos-gate/usr/src/uts/sun4u/sunfire/io/
H A Dfhc_bd.c87 int index; in fhc_bd_disabled() local
90 index = FHC_B_SEARCH(boards, board); in fhc_bd_disabled()
91 ASSERT(index != -1); in fhc_bd_disabled()
92 return (boards.boards[index]->flags & BDF_DISABLED); in fhc_bd_disabled()
204 int index; in fhc_bd_busy() local
207 index = FHC_B_SEARCH(boards, board); in fhc_bd_busy()
208 ASSERT(index != -1); in fhc_bd_busy()
209 return (boards.boards[index]->sc.in_transition); in fhc_bd_busy()
215 int index; in fhc_bd_is_jtag_master() local
218 index = FHC_B_SEARCH(boards, board); in fhc_bd_is_jtag_master()
[all …]
/illumos-gate/usr/src/uts/intel/io/vmm/
H A Dvmm_stat.c73 vst->index = vst_num_elems; in vmm_stat_register()
80 vmm_stat_copy(struct vm *vm, int vcpu, int index, int count, int *num_stats, in vmm_stat_copy() argument
90 if (index < 0 || count < 0) in vmm_stat_copy()
93 if (index > vst_num_elems) in vmm_stat_copy()
96 if (index == vst_num_elems) { in vmm_stat_copy()
101 tocopy = min(vst_num_elems - index, count); in vmm_stat_copy()
112 memcpy(buf, stats + index, tocopy * sizeof (stats[0])); in vmm_stat_copy()
136 vmm_stat_desc_copy(int index, char *buf, int bufsize) in vmm_stat_desc_copy() argument
143 if (index >= vst->index && index < vst->index + vst->nelems) { in vmm_stat_desc_copy()
146 vst->desc, index - vst->index); in vmm_stat_desc_copy()
/illumos-gate/usr/src/lib/sun_fc/common/
H A DHBAList.cc105 int index = -1; in openHBA() local
110 index = atoi(indexString.c_str()); in openHBA()
116 if (index < 0 || index > hbas.size()) { in openHBA()
120 HBA *tmp = hbas[index]; in openHBA()
144 int index = -1; in openTgtHBA() local
149 index = atoi(indexString.c_str()); in openTgtHBA()
155 if (index < 0 || index > tgthbas.size()) { in openTgtHBA()
159 HBA *tmp = tgthbas[index]; in openTgtHBA()
175 string HBAList::getHBAName(int index) { in getHBAName() argument
178 if (index < 0 || index > hbas.size()) { in getHBAName()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_tab.c130 const char *index; in tab_count_args() local
133 index = input; in tab_count_args()
135 while (*index != '\0') { in tab_count_args()
136 while (*index != '\0' && isspace(*index)) { in tab_count_args()
137 index++; in tab_count_args()
141 if (*index != '\0' && !isspace(*index)) { in tab_count_args()
144 while (*index != '\0' && !isspace (*index)) { in tab_count_args()
145 index++; in tab_count_args()
170 char *index; in tab_copy_args() local
172 index = input; in tab_copy_args()
[all …]
/illumos-gate/usr/src/test/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}') ]
88 typeset -i index=$(echo $list | awk '{print split($0,arr)}')
99 EXPECTED=$(echo $list | awk "{print \$$index}")
108 ((index = index - 1))
113 if [ $index -ne 0 ]
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dpci_fdvma.c49 pci_fdvma_load(ddi_dma_handle_t h, caddr_t a, uint_t len, uint_t index, in pci_fdvma_load() argument
71 DEBUG3(DBG_FAST_DVMA, dip, "load index=%x: %p+%x ", index, a, len); in pci_fdvma_load()
72 if (index + npages > mp->dmai_ndvmapages) { in pci_fdvma_load()
76 index, npages); in pci_fdvma_load()
81 ASSERT(fdvma_p->kvbase[index] == NULL); in pci_fdvma_load()
82 ASSERT(fdvma_p->pagecnt[index] == 0); in pci_fdvma_load()
84 dvma_addr = mp->dmai_mapping + IOMMU_PTOB(index); in pci_fdvma_load()
99 &fdvma_p->cbcookie[index + i]); in pci_fdvma_load()
117 fdvma_p->kvbase[index] = baseaddr; in pci_fdvma_load()
118 fdvma_p->pagecnt[index] = npages; in pci_fdvma_load()
[all …]

12345678910>>...60