/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | range_tree.c | 63 int idx = highbit64(size) - 1; local 65 hist[idx]++; 66 ASSERT3U(hist[idx], !=, 0); 82 int idx = highbit64(size) - 1; local 85 ASSERT3U(idx, <, 89 rt->rt_histogram[idx]++; 90 ASSERT3U(rt->rt_histogram[idx], !=, 0); 97 int idx = highbit64(size) - 1; local 100 ASSERT3U(idx, <, 104 ASSERT3U(rt->rt_histogram[idx], ! [all...] |
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | entry.c | 43 Aliste idx; local 66 for (ALIST_TRAVERSE(enp->ec_files, idx, edfp))
|
H A D | statistics.c | 68 Aliste idx; local 73 for (APLIST_TRAVERSE(alp, idx, rcp)) { 100 Aliste idx; local 104 for (APLIST_TRAVERSE(ofl->ofl_relaux, idx, racp)) { 163 Aliste idx; local 173 for (APLIST_TRAVERSE(ofl->ofl_ars, idx, adp)) {
|
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/ |
H A D | av1394_isoch_xmit.c | 229 int idx, cnt; local 231 idx = xmit->tx_xfer.xf_full_idx; 236 if ((idx < 0) || (cnt < 0) || (cnt > itp->it_nempty)) { 239 "", tnf_int, idx, idx, tnf_int, cnt, cnt); 245 if ((ret = av1394_it_add_frames(icp, idx, cnt)) != 0) { 780 av1394_it_dma_sync_frames(av1394_ic_t *icp, int idx, int cnt) argument 782 av1394_ic_dma_sync_frames(icp, idx, cnt, 873 int idx; local 885 idx 925 int idx; local 1031 av1394_it_add_frames(av1394_ic_t *icp, int idx, int cnt) argument 1079 av1394_it_wait_frames(av1394_ic_t *icp, int *idx, int *cnt, int *nlost) argument 1163 int idx = itp->it_write_idx; local 1236 av1394_it_reset_frame_syt(av1394_ic_t *icp, int idx) argument [all...] |
/illumos-gate/usr/src/uts/common/io/drm/ |
H A D | drm_io32.h | 65 int idx; /* Which client desired? */ member in struct:drm_client_32 107 int idx; /* Index into the master buffer list */ member in struct:drm_buf_pub_32
|
/illumos-gate/usr/src/uts/common/io/usb/clients/usbinput/usbwcm/ |
H A D | usbwcm.c | 91 uwacom_event(usbwcm_state_t *usbwcmp, uint_t type, uint_t idx, int val) argument 103 if (sc->sc_btn[idx] == val) 106 sc->sc_btn[idx] = val; 110 if (sc->sc_abs[idx].fuzz) { 111 int dist = abs(val - sc->sc_abs[idx].value); 113 if (dist < sc->sc_abs[idx].fuzz >> 1) { 115 } else if (dist < sc->sc_abs[idx].fuzz) { 116 val = (7 * sc->sc_abs[idx].value + val) >> 3; 117 } else if (dist < sc->sc_abs[idx].fuzz << 1) { 118 val = (sc->sc_abs[idx] 185 uwacom_tool_events_graphire(usbwcm_state_t *usbwcmp, int idx, int proximity) argument 373 uwacom_tool_events_intuos(usbwcm_state_t *usbwcmp, int idx, int proximity) argument 1043 int idx = num - EUWACOMGETBM; local 1076 int idx = num - EUWACOMGETABS; local 1224 int idx = num - EUWACOMGETBM; local 1254 int idx = num - EUWACOMGETABS; local [all...] |
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_buffers.c | 194 tlm_buffer_in_buf(tlm_buffers_t *bufs, int *idx) argument 203 if (idx) 204 *idx = bufs->tbs_buffer_in; 216 tlm_buffer_out_buf(tlm_buffers_t *bufs, int *idx) argument 225 if (idx) 226 *idx = bufs->tbs_buffer_out;
|
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | iexpr.c | 235 unsigned idx = iexpr_hash(np) % IEXPRSZ; local 236 struct iexpr *bucketp = Cache[idx]; 253 Cache[idx] = cp; 263 unsigned idx = iexpr_hash(np) % IEXPRSZ; local 268 for (cp = Cache[idx]; cp != NULL; cp = cp->next) { 275 Cache[idx] = cp->next;
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | pkgparam.c | 128 int idx = 0; local 215 copy -= n - idx; 216 n = idx; 228 copy -= n - idx; 229 n = idx; 253 idx = n;
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | fillsysinfo.c | 223 int idx = 0; local 261 cpunodes[cpuid].l2_cache_mapping = idx; 265 idx++; 277 int idx, i, j; local 327 idx = NCPU + i; 348 cpunodes[cpuid].exec_unit_mapping = idx; 351 cpunodes[cpuid].fpu_mapping = idx; 1336 int idx; local 1358 for (idx = 0; idx < NCP [all...] |
/illumos-gate/usr/src/lib/udapl/udapl_tavor/tavor/ |
H A D | dapl_tavor_hca.c | 177 int i, idx, fd; local 188 for (idx = 0; idx < MAX_HCAS; idx++) { 192 if (g_tavor_state[idx].uarpg_size == 0) { 196 if (idx == MAX_HCAS) { 203 for (i = 0; i < idx; i++) { 206 idx = i; 223 (void) dapl_os_strcpy(g_tavor_state[idx].hca_path, dev_path); 279 g_tavor_state[idx] [all...] |
/illumos-gate/usr/src/lib/libvscan/common/ |
H A D | libvscan.c | 662 vs_scfctx_t *vsc, int idx) 670 if ((rc = scf_property_get_value(vsc->vscf_prop[idx], 671 vsc->vscf_val[idx])) == -1) { 683 if ((scf_value_get_astring(vsc->vscf_val[idx], 689 if ((scf_value_get_boolean(vsc->vscf_val[idx], 696 if ((scf_value_get_astring(vsc->vscf_val[idx], 702 if ((scf_value_get_astring(vsc->vscf_val[idx], 708 if ((scf_value_get_boolean(vsc->vscf_val[idx], 715 (void) scf_value_get_as_string_typed(vsc->vscf_val[idx], 719 if ((scf_value_get_integer(vsc->vscf_val[idx], 661 vs_scf_get(const vs_propdef_t *vpd, vs_prop_hd_t *prop_hd, vs_scfctx_t *vsc, int idx) argument 952 vs_scf_set(const vs_propdef_t *vpd, vs_prop_hd_t *prop_hd, vs_scfctx_t *vsc, int idx) argument [all...] |
/illumos-gate/usr/src/uts/i86xpv/os/ |
H A D | xen_machdep.c | 143 xen_set_version(xen_version_t idx) argument 147 bzero(&xenver[idx], sizeof (xenver[idx])); 151 xenver[idx].xv_major = BITX(ver, 31, 16); 152 xenver[idx].xv_minor = BITX(ver, 15, 0); 154 (void) HYPERVISOR_xen_version(XENVER_extraversion, &xenver[idx].xv_ver); 166 if (strlen(xenver[idx].xv_ver) > 1 && isdigit(xenver[idx].xv_ver[1])) 167 xenver[idx].xv_revision = xenver[idx] [all...] |
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | entry.c | 358 size_t idx; local 427 for (idx = 0; idx < (sizeof (ent_desc) / sizeof (ent_desc[0])); idx++, 456 for (idx = 0; idx < predef_seg_nelts; idx++, sgp++) {
|
/illumos-gate/usr/src/cmd/itadm/ |
H A D | itadm.c | 249 int idx = NULL_SUBCMD; local 274 for (idx = 0; subcmds[idx].name != NULL; idx++) { 275 if (strcmp(argv[1], subcmds[idx].name) == 0) { 304 c = getopt_long(newargc, newargv, subcmds[idx].shortopts, 393 if ((idx == CREATE_TGT) || 394 (idx == MODIFY_TGT)) { 404 if ((idx == CREATE_TGT) || 405 (idx [all...] |
/illumos-gate/usr/src/lib/nsswitch/mdns/common/ |
H A D | mdns_common.c | 664 int idx; local 667 for (idx = 0; idx < NSSMDNS_MAXSRCHDMNS; idx++) { 668 if (be->dmnsrchlist[idx] != NULL) { 669 free(be->dmnsrchlist[idx]); 670 be->dmnsrchlist[idx] = NULL; 673 for (idx = 0; idx < NSSMDNS_MAXVALIDDMNS; idx [all...] |
/illumos-gate/usr/src/lib/libdisasm/common/ |
H A D | dis_sparc_fmt.c | 698 fmt_call(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 734 fmt_sethi(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 746 if (idx == 0) { 773 fmt_branch(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 820 if (f->f2b.op2 == 0x01 && idx == 0x00 && f->f2b.p == 1 && 1003 fmt_ls(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 1028 if (idx == 0x2d || idx == 0x3d) { 1035 if (idx == 0x3d) { 1049 if (idx 1273 dis_fmt_rdwr(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 1486 fmt_trap(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 1563 prt_jmpl(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 1603 fmt_alu(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 1906 fmt_regwin(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 1914 fmt_trap_ret(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 1929 fmt_movcc(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 1976 fmt_movr(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 1998 fmt_fpop1(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 2022 fmt_fpop2(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 2118 fmt_vis(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 2153 fmt_fused(dis_handle_t *dhp, uint32_t instr, const inst_t *inp, int idx) argument 2266 get_regname(dis_handle_t *dhp, int regset, uint32_t idx) argument [all...] |
/illumos-gate/usr/src/uts/common/io/myri10ge/drv/ |
H A D | myri10ge.c | 449 int i, idx, limit; local 455 idx = i & (rx->mask); 465 rx->info[idx].j = j; 466 rx->shadow[idx].addr_low = j->dma.low; 467 rx->shadow[idx].addr_high = j->dma.high; 469 if ((idx & 7) == 7) { 470 myri10ge_submit_8rx(&rx->lanai[idx - 7], 471 &rx->shadow[idx - 7]); 721 int idx, len; local 727 for (idx 895 int idx; local 1836 int allocated, idx; local 2399 int idx; local 2437 int idx, num_owned_by_mcp; local 2514 int idx; local 2819 int idx, starting_slot; local 2841 int idx, i; local 2951 int idx, mblen, avail; local 2994 int i, idx; local 3128 int resid, avail, idx, hdr_size_tmp, tx_boundary; local 5553 int idx; local [all...] |
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devlink.h | 353 static struct db_node *get_node(struct di_devlink_handle *hdp, uint32_t idx); 354 static struct db_node *set_node(struct di_devlink_handle *hdp, uint32_t idx); 356 static struct db_minor *get_minor(struct di_devlink_handle *hdp, uint32_t idx); 357 static struct db_minor *set_minor(struct di_devlink_handle *hdp, uint32_t idx); 359 static struct db_link *get_link(struct di_devlink_handle *hdp, uint32_t idx); 360 static struct db_link *set_link(struct di_devlink_handle *hdp, uint32_t idx); 362 static char *get_string(struct di_devlink_handle *hdp, uint32_t idx); 363 static char *set_string(struct di_devlink_handle *hdp, uint32_t idx); 365 static void *map_seg(struct di_devlink_handle *hdp, uint32_t idx, int prot,
|
/illumos-gate/usr/src/uts/common/io/scsi/targets/ |
H A D | ses_sen.c | 328 int err, runcmd, idx; local 386 idx = (int)obp->obj_id; 387 ep = &ssc->ses_objmap[idx]; 390 if (idx < 0 || idx >= NDRV) { 393 SES_LOG(ssc, SES_CE_DEBUG1, "faulted %d", idx); 394 sdata[14 + idx] |= 0x40; 397 SES_LOG(ssc, SES_CE_DEBUG1, "clrd fault on %d", idx); 398 sdata[14 + idx] &= ~0x40;
|
/illumos-gate/usr/src/lib/libtnfctl/ |
H A D | traverse.c | 58 u_int idx; local 99 for (idx = 1; idx < ehdr->e_shnum; idx++) { 102 if ((scn = elf_getscn(elf, idx)) == NULL) {
|
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | instvol.c | 1213 int idx; local 1228 for (idx = 0; /* void */; idx++) { 1230 while (extlist[idx]) { 1231 if ((extlist[idx]->cf_ent.ftype != 'i') && 1232 extlist[idx]->cf_ent.pkg_class_idx == myclass) { 1235 idx++; 1238 if (extlist[idx] == NULL) 1242 ept = &(extlist[idx]->cf_ent); 1243 mstat = &(extlist[idx] 1438 fix_attributes(struct cfextra **extlist, int idx) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | sa_impl.h | 220 sa_idx_tab_t *sa_bonus_tab; /* idx of bonus */ 249 #define SA_ATTR_LEN(sa, idx, attr, hdr) ((SA_REGISTERED_LEN(sa, attr) == 0) ?\ 250 hdr->sa_lengths[TOC_LEN_IDX(idx->sa_idx_tab[attr])] : \ 259 #define SA_ATTR_INFO(sa, idx, hdr, attr, bulk, type, hdl) \ 261 bulk.sa_size = SA_ATTR_LEN(sa, idx, attr, hdr); \ 264 (void *)((uintptr_t)TOC_OFF(idx->sa_idx_tab[attr]) + \
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | vdc.h | 150 #define VDC_GET_DRING_ENTRY_PTR(vdc, idx) \ 152 (idx * (vdc)->dring_entry_size)) 154 #define VDC_MARK_DRING_ENTRY_FREE(vdc, idx) \ 158 ASSERT(idx < vdc->dring_len); \ 162 (idx * vdc->dring_entry_size)); \
|
/illumos-gate/usr/src/uts/sun4u/ngdr/io/ |
H A D | dr_quiesce.c | 76 static sbd_error_t *drerr_int(int e_code, uint64_t *arr, int idx, 78 static int dr_add_int(uint64_t *arr, int idx, int len, 270 int *idx; member in struct:dr_ref 306 if (rp->arr != NULL && rp->idx != NULL) 307 *rp->idx = dr_add_int(rp->arr, *rp->idx, 324 uint64_t *arr, int *idx, int len, int *refcount_non_gldv3) 334 bref.idx = idx; 856 drc.idx 323 dr_check_devices(dev_info_t *dip, int *refcount, dr_handle_t *handle, uint64_t *arr, int *idx, int len, int *refcount_non_gldv3) argument 1026 dr_add_int(uint64_t *arr, int idx, int len, uint64_t val) argument 1051 drerr_int(int e_code, uint64_t *arr, int idx, int majors) argument [all...] |