/illumos-gate/usr/src/lib/libnisdb/ |
H A D | ldap_scheme.c | 49 int index = q->components.components_val[i].which_index; in schemeQuery2Query() local 50 if (index >= s->keys.keys_len) { in schemeQuery2Query() 53 myself, index, s->keys.keys_len-1); in schemeQuery2Query() 58 s->keys.keys_val[index].column_number - 1; in schemeQuery2Query() 105 int index; in schemeQuery2nisAttr() local 117 index = s->keys.keys_val[i].column_number - 1; in schemeQuery2nisAttr() 118 if (index >= nc) { in schemeQuery2nisAttr() 121 myself, index, nc); in schemeQuery2nisAttr() 125 a[na].zattr_ndx = col[index]; in schemeQuery2nisAttr()
|
/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | pci_reloc.c | 105 int index; in pci_dvma_postrelocator() local 135 index = IOMMU_BTOPR(offset); in pci_dvma_postrelocator() 136 ASSERT(index < mp->dmai_ndvmapages); in pci_dvma_postrelocator() 147 index, ((iopfn_t *)mp->dmai_pfnlst)[index], newpfn); in pci_dvma_postrelocator() 234 index, npages); in pci_fdvma_remap() 319 int index; in pci_fdvma_postrelocator() local 325 index = i + IOMMU_BTOP(va - baseva); in pci_fdvma_postrelocator() 334 index, pfn); in pci_fdvma_postrelocator() 347 ddi_dma_impl_t *mp, uint_t index) in pci_fdvma_unregister_callbacks() argument 350 caddr_t kva = fdvma_p->kvbase[index]; in pci_fdvma_unregister_callbacks() [all …]
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | bt_seq.c | 227 ep->index = 0; 324 c->pg.index = ep->index; 365 ep->index = c->pg.index; 383 ep->index = idx; 440 save.index = ep->index; 462 --ep->index; 486 ep->index = 0; 765 ep->index = 0; 794 rc->cursor.pg.index = ep->index; 854 idx = e->index; [all …]
|
H A D | bt_put.c | 163 idx = t->bt_cursor.pg.index; 175 idx = e->index; 231 ++t->bt_cursor.pg.index; 237 t->bt_last.index = idx; 243 t->bt_last.index = 0; 253 __bt_setcur(t, e->page->pgno, e->index); 288 t->bt_cur.index = t->bt_last.index; 301 if (t->bt_cur.index != NEXTINDEX(h) - 1) 305 t->bt_last.index = cmp ? ++t->bt_cur.index : t->bt_cur.index; 309 if (t->bt_cur.index != 0) [all …]
|
H A D | bt_delete.c | 191 idx = parent->index + 1; 337 while (e->index-- > 0) { 344 if (e->index == 0) 406 idx = parent->index; 520 --t->bt_cursor.pg.index; 566 e.index = idx; 576 e.index = idx - 1; 585 e.index = idx + 1; 608 e.index = 0; 613 c->pg.index = e.index; [all …]
|
/illumos-gate/usr/src/uts/sun4/io/px/ |
H A D | px_fdvma.c | 68 DBG(DBG_FAST_DVMA, dip, "load index=%x: %p+%x ", index, a, len); in px_fdvma_load() 69 if (index + npages > mp->dmai_ndvmapages) { in px_fdvma_load() 73 index, npages); in px_fdvma_load() 76 fdvma_p->pagecnt[index] = npages; in px_fdvma_load() 78 dvma_addr = mp->dmai_mapping + MMU_PTOB(index); in px_fdvma_load() 105 size_t npages = fdvma_p->pagecnt[index]; in px_fdvma_unload() 110 mp->dmai_mapping, MMU_PTOB(index), MMU_PTOB(npages)); in px_fdvma_unload() 113 fdvma_p->pagecnt[index] = 0; in px_fdvma_unload() 123 size_t npg = fdvma_p->pagecnt[index]; in px_fdvma_sync() 126 "sync index=%x sync_flag=%x %x+%x+%x\n", index, sync_flag, in px_fdvma_sync() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | optjoin.c | 74 last_index = opt_info.index; in optjoin() 78 more = argv[opt_info.index] != 0; in optjoin() 89 if (*argv[opt_info.index] != '+') in optjoin() 102 …if (opt_info.again > 0 && (!err || err_index < opt_info.index || err_index == opt_info.index && er… in optjoin() 105 err_index = opt_info.index; in optjoin() 109 opt_info.index = state->pindex ? state->pindex : 1; in optjoin() 112 if (!rep || opt_info.index != last_index || opt_info.offset != last_offset) in optjoin()
|
/illumos-gate/usr/src/lib/libshare/smbfs/ |
H A D | libshare_smbfs.c | 215 if (val < smbclnt_proto_options[index].minval || in range_check_validator() 216 val > smbclnt_proto_options[index].maxval) in range_check_validator() 245 yes_no_validator(int index, char *section, char *value) in yes_no_validator() argument 280 minauth_validator(int index, char *section, char *value) in minauth_validator() argument 310 signing_validator(int index, char *section, char *value) in signing_validator() argument 621 if (smbclnt_proto_options[index].validator == NULL) in smbfs_validate_proto_prop() 624 return (smbclnt_proto_options[index].validator(index, section, value)); in smbfs_validate_proto_prop() 636 if (index == PROTO_OPT_WORKGROUP) { in smbfs_save_property() 637 index = PROTO_OPT_DOMAIN; in smbfs_save_property() 647 smbclnt_proto_options[index].value = s; in smbfs_save_property() [all …]
|
/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | sun_sas.c | 159 RetrieveHandle(int index) in RetrieveHandle() argument 165 if (hba_ptr->index == index) in RetrieveHandle() 179 ExtractHandle(int index) in ExtractHandle() argument 187 if (hba_ptr->index == index) { in ExtractHandle() 214 int index; in Retrieve_Sun_sasHandle() local 217 index = RetrieveIndex(handle); in Retrieve_Sun_sasHandle() 218 if (index == -1) { in Retrieve_Sun_sasHandle() 224 handle_struct = RetrieveHandle(index); in Retrieve_Sun_sasHandle() 324 int index = 0; in getFirstAdapterPortWWN() local 328 index = RetrieveIndex(handle); in getFirstAdapterPortWWN() [all …]
|
/illumos-gate/usr/src/uts/common/io/igb/ |
H A D | igb_tx.c | 912 index = tx_ring->tbd_tail; in igb_tx_fill_ring() 933 index = NEXT_INDEX(index, 1, tx_ring->ring_size); in igb_tx_fill_ring() 974 index = NEXT_INDEX(index, 1, tx_ring->ring_size); in igb_tx_fill_ring() 984 tcb_index = index; in igb_tx_fill_ring() 1057 tx_ring->tbd_tail = index; in igb_tx_fill_ring() 1062 E1000_WRITE_REG(hw, E1000_TDT(tx_ring->index), index); in igb_tx_fill_ring() 1191 index = NEXT_INDEX(index, tcb->desc_num, in igb_tx_recycle_legacy() 1259 uint32_t index; in igb_tx_recycle_head_wb() local 1336 index = NEXT_INDEX(index, tcb->desc_num, tx_ring->ring_size); in igb_tx_recycle_head_wb() 1477 uint32_t index; in igb_put_free_list() local [all …]
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/ |
H A D | lm_sb.c | 506 for(index=0; index < MAX_RSS_CHAINS; index++) in print_sb_info() 1363 for (index = 0; index < CSTORM_SYNC_BLOCK_SIZE / sizeof(u32_t); index++) { in lm_init_non_def_status_block() 1366 for (index = 0; index < CSTORM_STATUS_BLOCK_SIZE / sizeof(u32_t); index++) { in lm_init_non_def_status_block() 1427 for (index = 0; index < hc_sb_max_indices; index++) { in lm_init_non_def_status_block() 1503 for (index = 0; index < sizeof(struct hc_status_block_data_e2)/sizeof(u32_t); index++) { in lm_init_non_def_status_block() 1576 for (index = 0; index < CSTORM_SYNC_BLOCK_SIZE / sizeof(u32_t); index++) { in lm_pf_init_vf_non_def_sb() 1579 for (index = 0; index < CSTORM_STATUS_BLOCK_SIZE / sizeof(u32_t); index++) { in lm_pf_init_vf_non_def_sb() 1621 for (index = 0; index < hc_sb_max_indices; index++) { in lm_pf_init_vf_non_def_sb() 1693 for (index = 0; index < sizeof(struct hc_status_block_data_e2)/sizeof(u32_t); index++) { in lm_pf_init_vf_non_def_sb() 1726 for (index = 0; index < CSTORM_SYNC_BLOCK_SIZE / sizeof(u32_t); index++) { in lm_clear_non_def_status_block() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | ppargs.c | 343 p = argv[opt_info.index++]; in ppargs() 397 for (n = PP_deps; argv[opt_info.index]; opt_info.offset++) in ppargs() 399 switch (argv[opt_info.index][opt_info.offset]) in ppargs() 472 if (!(s = argv[opt_info.index])) in ppargs() 476 p = argv[opt_info.index + 1]; in ppargs() 499 opt_info.index++; in ppargs() 509 opt_info.index++; in ppargs() 581 …if (argv[opt_info.index + 1] && argv[opt_info.index + 1][0] != '-' && argv[opt_info.index + 2] && … in ppargs() 583 opt_info.index++; in ppargs() 590 if (!(s = argv[opt_info.index])) return(0); in ppargs() [all …]
|
/illumos-gate/usr/src/uts/sun4u/vm/ |
H A D | mach_sfmmu.c | 227 uint_t index; in sfmmu_set_tlb() local 231 index = cpunode->itlb_size; in sfmmu_set_tlb() 240 (void) prom_itlb_load(index - 1, *(uint64_t *)&ktext_tte, textva); in sfmmu_set_tlb() 241 index = cpunode->dtlb_size; in sfmmu_set_tlb() 242 (void) prom_dtlb_load(index - 1, *(uint64_t *)&kdata_tte, datava); in sfmmu_set_tlb() 244 index -= 3; in sfmmu_set_tlb() 247 utsb_dtlb_ttenum = index--; in sfmmu_set_tlb() 248 utsb4m_dtlb_ttenum = index--; in sfmmu_set_tlb() 260 (void) prom_dtlb_load(index, tte, va); in sfmmu_set_tlb() 262 index--; in sfmmu_set_tlb() [all …]
|
/illumos-gate/usr/src/uts/sun4u/serengeti/io/ |
H A D | sbdp_error.c | 141 int index, value; in sbdp_passthru_inject_error() local 199 if ((index = sbdp_func_lookup(func_str)) == -1) { in sbdp_passthru_inject_error() 210 if (entry >= sbdp_error_matrix[index].num_entries) { in sbdp_passthru_inject_error() 222 f, index, entry, value); in sbdp_passthru_inject_error() 227 sbdp_error_matrix[index].entries[entry] = value; in sbdp_passthru_inject_error() 256 int index; in sbdp_inject_error() local 282 if ((index = sbdp_func_lookup(func_name)) == -1) { in sbdp_inject_error() 290 if (entry >= sbdp_error_matrix[index].num_entries) { in sbdp_inject_error() 295 value = sbdp_error_matrix[index].entries[entry]; in sbdp_inject_error()
|
/illumos-gate/usr/src/uts/i86pc/boot/ |
H A D | boot_mmu.c | 71 uint_t index; in find_pte() local 90 index = vatoindex(va, l); in find_pte() 91 pteval = get_pteval(table, index); in find_pte() 110 set_pteval(table, index, l, pteval); in find_pte() 118 index = vatoindex(va, l); in find_pte() 120 *pa = table + index * pte_size; in find_pte() 121 return (map_pte(table, index)); in find_pte()
|
H A D | boot_vga.c | 78 static unsigned char vga_get_crtc(int index); 79 static void vga_set_atr(int index, unsigned char val); 80 static unsigned char vga_get_atr(int index); 319 vga_set_atr(int index, unsigned char val) in vga_set_atr() argument 322 outb(VGA_REG_ADDR + VGA_ATR_AD, index); in vga_set_atr() 330 vga_get_atr(int index) in vga_get_atr() argument 335 outb(VGA_REG_ADDR + VGA_ATR_AD, index); in vga_get_atr() 345 vga_set_crtc(int index, unsigned char val) in vga_set_crtc() argument 347 outb(VGA_REG_ADDR + VGA_CRTC_ADR, index); in vga_set_crtc() 352 vga_get_crtc(int index) in vga_get_crtc() argument [all …]
|
/illumos-gate/usr/src/uts/common/io/ixgbe/ |
H A D | ixgbe_tx.c | 906 index = tx_ring->tbd_tail; in ixgbe_tx_fill_ring() 927 index = NEXT_INDEX(index, 1, tx_ring->ring_size); in ixgbe_tx_fill_ring() 967 index = NEXT_INDEX(index, 1, tx_ring->ring_size); in ixgbe_tx_fill_ring() 977 tcb_index = index; in ixgbe_tx_fill_ring() 1068 tx_ring->tbd_tail = index; in ixgbe_tx_fill_ring() 1073 IXGBE_WRITE_REG(hw, IXGBE_TDT(tx_ring->index), index); in ixgbe_tx_fill_ring() 1202 index = NEXT_INDEX(index, tcb->desc_num, in ixgbe_tx_recycle_legacy() 1264 uint32_t index; in ixgbe_tx_recycle_head_wb() local 1341 index = NEXT_INDEX(index, tcb->desc_num, tx_ring->ring_size); in ixgbe_tx_recycle_head_wb() 1480 uint32_t index; in ixgbe_put_free_list() local [all …]
|
/illumos-gate/usr/src/uts/common/io/1394/adapters/ |
H A D | hci1394_tlabel.c | 122 uint_t index; in hci1394_tlabel_alloc() local 180 for (index = 0; index < TLABEL_RANGE; index++) { in hci1394_tlabel_alloc() 385 int index; in hci1394_tlabel_reset() local 413 for (index = 0; index <= tlabel_handle->tb_max_node; index++) { in hci1394_tlabel_reset() 414 tlabel_handle->tb_free[index] = (uint64_t)0xFFFFFFFFFFFFFFFF; in hci1394_tlabel_reset() 415 tlabel_handle->tb_bad[index] = (uint64_t)0; in hci1394_tlabel_reset() 416 tlabel_handle->tb_bad_timestamp[index] = (hrtime_t)0; in hci1394_tlabel_reset() 417 tlabel_handle->tb_last[index] = 0; in hci1394_tlabel_reset() 419 tlabel_handle->tb_lookup[index][index2] = NULL; in hci1394_tlabel_reset()
|
/illumos-gate/usr/src/uts/common/io/chxge/com/ |
H A D | ixf1010.c | 158 u32 index; member 168 val &= ~(1 << mac->instance->index); in disable_port() 359 u32 index = mac->instance->index; in enable_port() local 371 val |= (1 << index); in enable_port() 383 val |= (1 << index); in enable_port() 386 index <<= 2; in enable_port() 389 if (index) index <<= 2; in enable_port() 401 TX_FIFO_XFER_THRES_BASE + mac->instance->index * 4, 0x400); in enable_port() 513 if (index > 9) return NULL; in ixf1010_mac_create() 521 mac->instance->mac_base = MACREG_BASE + (index * 0x200); in ixf1010_mac_create() [all …]
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctdusg.c | 183 int index; in output() local 186 for (index = 0; index < MAXUSERS; index++) { in output() 187 for (entry = usglist[index]; in output() 270 int index; in pdisk() local 273 for (index = 0; index < MAXUSERS; index++) { in pdisk() 274 for (entry = usglist[index]; in pdisk()
|
/illumos-gate/usr/src/uts/i86pc/io/ioat/ |
H A D | ioat_rs.c | 77 uint_t index; in ioat_rs_init() local 107 for (index = 0; index < array_size; index++) { in ioat_rs_init() 108 rstruct->rs_free[index] = (uint64_t)0xFFFFFFFFFFFFFFFF; in ioat_rs_init() 151 uint_t index; in ioat_rs_alloc() local 171 for (index = min; index <= max; index++) { in ioat_rs_alloc()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_isr.c | 286 index--; in ql_isr_aif() 292 index); in ql_isr_aif() 1052 index = 1; in ql_async_event() 1056 index = 2; in ql_async_event() 1060 index = 4; in ql_async_event() 1064 index = 8; in ql_async_event() 1080 index = 0; in ql_async_event() 1086 index = 1; in ql_async_event() 1279 for (index = 10; index < ha->reg_off->mbox_cnt && index < cnt; in ql_async_event() 1281 mb[index] = RD16_IO_REG(ha, mailbox_out[index]); in ql_async_event() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | getopts.c | 89 argv += opt_info.index; in b_getopts() 90 argc -= opt_info.index; in b_getopts() 107 opt_info.index = shp->st.optindex; in b_getopts() 125 …switch(opt_info.index>=0 && opt_info.index<=argc?(opt_info.num= LONG_MIN,flag=optget(argv,options)… in b_getopts() 146 if (opt_info.offset != 0 && !argv[opt_info.index][opt_info.offset]) in b_getopts() 149 opt_info.index++; in b_getopts() 158 flag = opt_info.index; in b_getopts() 159 opt_info.index = 0; in b_getopts() 161 opt_info.index = flag; in b_getopts() 177 shp->st.optindex = opt_info.index; in b_getopts()
|
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | heap.c | 49 heap_new(heap_higher_priority_func higher_priority, heap_index_func index, in heap_new() argument 68 ctx->index = index; in heap_new() 109 if (ctx->index != NULL) in float_up() 110 (ctx->index)(ctx->heap[i], i); in float_up() 113 if (ctx->index != NULL) in float_up() 114 (ctx->index)(ctx->heap[i], i); in float_up() 132 if (ctx->index != NULL) in sink_down() 133 (ctx->index)(ctx->heap[i], i); in sink_down() 137 if (ctx->index != NULL) in sink_down() 138 (ctx->index)(ctx->heap[i], i); in sink_down()
|
/illumos-gate/usr/src/lib/iconv_modules/ja/common/ |
H A D | ISO-2022-JP_TO_UTF-8.c | 80 unsigned int index = 0; in _icv_iconv() local 365 index = in _icv_iconv() 369 (unsigned int)index, &op, &oleft, in _icv_iconv() 393 index = ((ic - 0x21) * 94) in _icv_iconv() 399 index = 0x3013; in _icv_iconv() 401 index = (int) in _icv_iconv() 402 _jfp_tbl_jisx0208_to_ucs2[index]; in _icv_iconv() 404 index = (int) in _icv_iconv() 409 index = 0x3013; in _icv_iconv() 411 index = in _icv_iconv() [all …]
|