/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | Sun_sasGetAdapterAttributes.c | 40 int index = 0; in Sun_sasGetAdapterAttributes() local 48 index = RetrieveIndex(handle); in Sun_sasGetAdapterAttributes() 50 hba_ptr = RetrieveHandle(index); in Sun_sasGetAdapterAttributes()
|
H A D | Sun_sasGetNumberOfPorts.c | 38 int count, index; in Sun_sasGetNumberOfPorts() local 48 index = RetrieveIndex(handle); in Sun_sasGetNumberOfPorts() 50 hba_ptr = RetrieveHandle(index); in Sun_sasGetNumberOfPorts()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | nss_dbdefs.c | 748 int index; in nss_default_key2str() local 889 strtype = getXbyY_to_dbop[index].tostr; in nss_upack_key2arg() 1084 name = getXbyY_to_dbop[index].initfn; in nss_pinit_funcs() 1088 if (getXbyY_to_dbop[index].initfnp == NULL) in nss_pinit_funcs() 1089 getXbyY_to_dbop[index].initfnp = sym; in nss_pinit_funcs() 1098 name = getXbyY_to_dbop[index].strfn; in nss_pinit_funcs() 1102 if (getXbyY_to_dbop[index].strfnp == NULL) in nss_pinit_funcs() 1103 getXbyY_to_dbop[index].strfnp = sym; in nss_pinit_funcs() 1121 int index; in nss_packed_getkey() local 1184 int index; in nss_packed_arg_init() local [all …]
|
/illumos-gate/usr/src/uts/common/fs/hsfs/ |
H A D | hsfs_susp.c | 164 int index; in share_ext_ref() local 169 for (extnp = extension_name_table, index = 0; in share_ext_ref() 171 extnp++, index++) { in share_ext_ref() 175 SET_IMPL_BIT(sig_args_p->fsp, index); in share_ext_ref()
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | pcnet32.c | 292 static u16 pcnet32_wio_read_csr(unsigned long addr, int index) in pcnet32_wio_read_csr() argument 294 outw(index, addr + PCNET32_WIO_RAP); in pcnet32_wio_read_csr() 300 outw(index, addr + PCNET32_WIO_RAP); in pcnet32_wio_write_csr() 304 static u16 pcnet32_wio_read_bcr(unsigned long addr, int index) in pcnet32_wio_read_bcr() argument 306 outw(index, addr + PCNET32_WIO_RAP); in pcnet32_wio_read_bcr() 312 outw(index, addr + PCNET32_WIO_RAP); in pcnet32_wio_write_bcr() 347 static u16 pcnet32_dwio_read_csr(unsigned long addr, int index) in pcnet32_dwio_read_csr() argument 349 outl(index, addr + PCNET32_DWIO_RAP); in pcnet32_dwio_read_csr() 355 outl(index, addr + PCNET32_DWIO_RAP); in pcnet32_dwio_write_csr() 361 outl(index, addr + PCNET32_DWIO_RAP); in pcnet32_dwio_read_bcr() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/ |
H A D | x86pi_bboard.c | 199 x86pi_bb_getchips(topo_mod_t *mod, int index, int nboards) in x86pi_bb_getchips() argument 212 cid = stypes[SMB_TYPE_BASEBOARD].ids[index].con_ids; in x86pi_bb_getchips() 213 count = stypes[SMB_TYPE_BASEBOARD].ids[index].con_cnt; in x86pi_bb_getchips() 240 " enumerate chips\n", index); in x86pi_bb_getchips() 249 x86pi_bb_topparent(topo_mod_t *mod, int index, tnode_t **pnode, id_t *psmbid) in x86pi_bb_topparent() argument 262 smb_id = stypes[SMB_TYPE_BASEBOARD].ids[index].con_by_id; in x86pi_bb_topparent() 266 top_bb_smbid = stypes[SMB_TYPE_BASEBOARD].ids[index].id; in x86pi_bb_topparent() 283 ids[index].id; in x86pi_bb_topparent()
|
/illumos-gate/usr/src/uts/i86pc/vm/ |
H A D | kboot_mmu.c | 465 get_pteval(paddr_t table, uint_t index) in get_pteval() argument 470 return (((x86pte_t *)table_ptr)[index]); in get_pteval() 471 return (((x86pte32_t *)table_ptr)[index]); in get_pteval() 476 set_pteval(paddr_t table, uint_t index, uint_t level, x86pte_t pteval) in set_pteval() argument 480 ((x86pte_t *)table_ptr)[index] = pteval; in set_pteval() 482 ((x86pte32_t *)table_ptr)[index] = pteval; in set_pteval() 512 map_pte(paddr_t table, uint_t index) in map_pte() argument 515 return ((x86pte_t *)((caddr_t)table_ptr + index * pte_size)); in map_pte()
|
/illumos-gate/usr/src/lib/libc/amd64/unwind/ |
H A D | unwind.c | 489 _Unwind_GetGR(struct _Unwind_Context *context, int index) in _Unwind_GetGR() argument 492 if (index <= EIR_R15) { in _Unwind_GetGR() 493 res = context->current_regs[index]; in _Unwind_GetGR() 494 } else if (index == RET_ADD) { in _Unwind_GetGR() 502 _Unwind_SetGR(struct _Unwind_Context *context, int index, uint64_t new_value) in _Unwind_SetGR() argument 504 if (index <= EIR_R15) { in _Unwind_SetGR() 505 context->current_regs[index] = new_value; in _Unwind_SetGR() 506 } else if (index == RET_ADD) { in _Unwind_SetGR()
|
/illumos-gate/usr/src/uts/i86pc/i86hvm/io/xpv/ |
H A D | evtchn.c | 141 int index = ev >> EVTCHN_SHIFT; in hypervisor_unmask_event() local 150 maskp = &masked_events[index]; in hypervisor_unmask_event() 163 int index = ev >> EVTCHN_SHIFT; in hypervisor_mask_event() local 167 maskp = &masked_events[index]; in hypervisor_mask_event() 174 int index = ev >> EVTCHN_SHIFT; in hypervisor_clear_event() local 178 maskp = &pending_events[index]; in hypervisor_clear_event() 300 xhp.index = HVM_PARAM_CALLBACK_IRQ; in set_hvm_callback()
|
/illumos-gate/usr/src/cmd/stat/arcstat/ |
H A D | arcstat.pl | 237 my $index = 0; 246 while ($num > $scale and $index < 5) { 249 $index++; 252 return sprintf("%*d", $sz, $num) if ($index == 0); 254 return sprintf("%*.1f%s", $sz - 1, $num,$suffix[$index]); 256 return sprintf("%*d%s", $sz - 1, $num,$suffix[$index]);
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/ |
H A D | vartree1.sh | 39 typeset index 51 for index in "${!srcdata.hashnodes[@]}" ; do 52 nameref node=srcdata.hashnodes["${index}"] 92 … add_tree_leaf dest_tree.l1["$a"].l2["$b"].l3["$c"].entries[${new_index}] "${index}" "${tree_mode}"
|
/illumos-gate/usr/src/uts/common/fs/udfs/ |
H A D | udf_subr.c | 810 int32_t index, error = 0; in ud_icheck() local 815 for (index = 0; index < UD_HASH_SZ; index++) { in ud_icheck() 816 ih = &ud_ihead[index]; in ud_icheck() 839 int32_t index; in ud_flushi() local 848 for (index = 0; index < UD_HASH_SZ; index++) { in ud_flushi() 849 ih = &ud_ihead[index]; in ud_flushi() 1581 for (index = 0; index < in_index; index++) { in ud_compress() 1719 for (index = 1; index < in_len; ) { in ud_uncompress() 1728 w2_char = in_str[index++]; in ud_uncompress() 1750 lic = index; in ud_uncompress() [all …]
|
/illumos-gate/usr/src/uts/common/io/usb/clients/video/usbvc/ |
H A D | usbvc_v4l2.c | 148 fmtdesc.index >= strm_if->fmtgrp_cnt) { in usbvc_v4l2_ioctl() 154 fmtgrp = &strm_if->format_group[fmtdesc.index]; in usbvc_v4l2_ioctl() 158 fmtdesc.index, strm_if->fmtgrp_cnt); in usbvc_v4l2_ioctl() 357 (buf.index >= usbvc_bufg->buf_cnt)) { in usbvc_v4l2_ioctl() 374 buf.index, buf.length); in usbvc_v4l2_ioctl() 390 (buf.index >= usbvc_bufg->buf_cnt) || in usbvc_v4l2_ioctl() 396 buf.index, buf.type, buf.memory); in usbvc_v4l2_ioctl() 402 &usbvc_bufg->buf_head[buf.index], &buf); in usbvc_v4l2_ioctl() 1145 "just return success", buf->index); in usbvc_v4l2_enqueue_buf() 1166 " free list", buf->index); in usbvc_v4l2_enqueue_buf() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | getopt.c | 52 opt_info.index = (optind > 1 || optind == lastoptind) ? optind : 0; 53 if (opt_info.index >= argc) 74 lastoptind = optind = opt_info.index;
|
H A D | iconv.c | 76 int index; member 244 if ((cc->from.index = _win_codeset(f)) < 0) in _win_iconv_open() 246 if ((cc->to.index = _win_codeset(t)) < 0) in _win_iconv_open() 249 …DEBUG_TRACE, "AHA#%d _win_iconv_open f=0x%04x t=0x%04x\n", __LINE__, cc->from.index, cc->to.index); in _win_iconv_open() 272 …(DEBUG_TRACE, "AHA#%d _win_iconv from=0x%04x to=0x%04x\n", __LINE__, cc->from.index, cc->to.index); in _win_iconv() 274 if (cc->from.index == cc->to.index || cc->from.index != CP_UCS2 && cc->to.index == 0) in _win_iconv() 292 if (cc->to.index == CP_UCS2) in _win_iconv() 335 if (cc->from.index == CP_UCS2) in _win_iconv() 351 if (tz = WideCharToMultiByte(cc->to.index, 0, (LPCWSTR)ub, un, *tb, *tn, 0, 0)) in _win_iconv() 477 if (cp->index) in _ast_iconv_name() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/ |
H A D | gfxp_vgatext.c | 1231 int length, index; in vgatext_get_pci_reg_index() local 1239 for (index = 0; index < length / sizeof (pci_regspec_t); index++) { in vgatext_get_pci_reg_index() 1242 if (reg[index].pci_size_hi != 0) in vgatext_get_pci_reg_index() 1244 if (reg[index].pci_phys_mid != 0) in vgatext_get_pci_reg_index() 1246 if (reg[index].pci_phys_low > addr) in vgatext_get_pci_reg_index() 1248 if (reg[index].pci_phys_low + reg[index].pci_size_low <= addr) in vgatext_get_pci_reg_index() 1253 return (index); in vgatext_get_pci_reg_index() 1290 int length, index; in vgatext_get_isa_reg_index() local 1298 for (index = 0; index < length / sizeof (struct regspec); index++) { in vgatext_get_isa_reg_index() 1303 if (reg[index].regspec_addr + reg[index].regspec_size <= addr) in vgatext_get_isa_reg_index() [all …]
|
/illumos-gate/usr/src/tools/protocmp/ |
H A D | protodir.c | 60 l_next = index(l_pos, '/'); in resolve_relative() 124 if ((src = index(file, '=')) != NULL) { in parse_proto_line() 279 if ((src = index(file, '=')) != NULL) { in parse_proto_link() 366 int index; in read_pkginfo() local 392 index = 0; in read_pkginfo() 398 architecture[index++] = buf[i]; in read_pkginfo() 401 architecture[index-1] = '\0'; in read_pkginfo() 404 index = 0; in read_pkginfo() 411 (buf[i] != '/' || index != 0)) { in read_pkginfo() 412 buf[index++] = buf[i]; in read_pkginfo() [all …]
|
/illumos-gate/usr/src/uts/sun4/io/fpc/ |
H A D | fpc-impl.h | 64 extern char *fpc_get_dev_name_by_number(int index); 65 extern void *fpc_get_platform_data_by_number(int index); 66 extern int fpc_set_platform_data_by_number(int index, void *data);
|
/illumos-gate/usr/src/lib/print/libipp-listener/common/ |
H A D | ipp-listener.c | 179 int index; in ipp_operation_handler() local 194 index = ipp_operation_id_to_index(id); in ipp_operation_handler() 196 if (index == -1) in ipp_operation_handler() 200 handlers[index].name); in ipp_operation_handler() 204 if ((index == -1) || (handlers[index].function == NULL)) { in ipp_operation_handler() 222 handlers[index].name, &configured); in ipp_operation_handler() 226 handlers[index].name, id); in ipp_operation_handler() 230 return (handlers[index].function); in ipp_operation_handler()
|
/illumos-gate/usr/src/uts/sun4u/excalibur/sys/ |
H A D | xcalppm_reg.h | 115 #define XCPPM_BBC_DELAY(index) \ argument 116 (index == 0) ? (BBC_DELAY/(BBC_CLOCK * 32)) : \ 117 ((index == 1) ? (BBC_DELAY/(BBC_CLOCK * 2)) : \
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | misc.c | 84 argv += opt_info.index; in b_exec() 174 argv += opt_info.index; in b_let() 198 argv += opt_info.index; in b_eval() 230 argv += opt_info.index; in b_dot_cmd() 359 argv += opt_info.index; in b_shift() 385 argv += opt_info.index; in b_wait() 416 argv += opt_info.index; in b_bg() 452 argv += opt_info.index; in b_jobs() 483 argv += opt_info.index; in b_universe() 484 argc -= opt_info.index; in b_universe() [all …]
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | inet6_rthdr.c | 167 inet6_rth_getaddr(const void *bp, int index) in inet6_rth_getaddr() argument 173 if (index >= rthdr->ip6r0_len/2 || index < 0) in inet6_rth_getaddr() 177 return (&rv[index]); in inet6_rth_getaddr()
|
/illumos-gate/usr/src/uts/common/io/virtio/ |
H A D | virtio_main.c | 828 search.vic_head = index; in virtio_queue_complete() 1108 id_t index; in virtio_queue_descmap_alloc() local 1114 VERIFY3S(index, >=, 0); in virtio_queue_descmap_alloc() 1117 *indexp = (uint_t)index; in virtio_queue_descmap_alloc() 1127 uint_t index; in virtio_chain_append_impl() local 1151 vqd[index - 1].vqd_next = index; in virtio_chain_append_impl() 1176 vqd[p].vqd_next = index; in virtio_chain_append_impl() 1181 vqd[index].vqd_addr = pa; in virtio_chain_append_impl() 1182 vqd[index].vqd_len = len; in virtio_chain_append_impl() 1183 vqd[index].vqd_flags = flags; in virtio_chain_append_impl() [all …]
|
/illumos-gate/usr/src/cmd/svc/common/ |
H A D | notify_params.c | 88 get_fma_tag(uint32_t index) in get_fma_tag() argument 90 if (index >= (sizeof (fma_tags) / sizeof (struct fma_tags))) in get_fma_tag() 93 return (fma_tags[index].t); in get_fma_tag() 102 get_fma_class(uint32_t index) in get_fma_class() argument 104 if (index >= (sizeof (fma_tags) / sizeof (struct fma_tags))) in get_fma_class() 107 return (fma_tags[index].s); in get_fma_class()
|
/illumos-gate/usr/src/uts/common/io/ib/ibnex/ |
H A D | ibnex_hca.c | 318 int ii, index; in ibnex_config_obp_args() local 352 for (index = 0; index < ibnex.ibnex_nvppa_comm_svcs; index++) { in ibnex_config_obp_args() 353 if (strcmp(ibnex.ibnex_vppa_comm_svc_names[index], in ibnex_config_obp_args() 387 rval = ibnex_get_dip_from_guid(port_guid, index, pkey, &cdip); in ibnex_config_obp_args() 397 index, IBNEX_VPPA_COMMSVC_NODE, pkey, &rval, in ibnex_config_obp_args() 484 int index; in ibnex_hca_bus_config_one() local 549 &index, &pkey, &port_num) != IBNEX_SUCCESS) { in ibnex_hca_bus_config_one() 558 ibnex.ibnex_vppa_comm_svc_names[index]) == 0) { in ibnex_hca_bus_config_one()
|