/illumos-gate/usr/src/uts/common/disp/ |
H A D | fx.c | 100 int index = FX_CB_LIST_HASH(fxpp->fx_ktid); \ 101 kmutex_t *lockp = &fx_cb_list_lock[index]; \ 102 fxproc_t *headp = &fx_cb_plisthead[index]; \ 116 int index = FX_CB_LIST_HASH(fxpp->fx_ktid); \ 117 kmutex_t *lockp = &fx_cb_list_lock[index]; \ 1654 int index = FX_CB_LIST_HASH(fxpp->fx_ktid); local 1655 kmutex_t *lockp = &fx_cb_list_lock[index]; 1662 int index = FX_CB_LIST_HASH(ktid); local 1663 kmutex_t *lockp = &fx_cb_list_lock[index]; 1668 for (fxpp = fx_cb_plisthead[index] [all...] |
H A D | thread.c | 1433 * Create a key (index into per thread array) 1948 uint_t index = 0; local 2053 index = i; 2059 index = i; 2064 index = i; 2068 if (percent >= kmem_stkinfo_log[index].percent) { 2069 kmem_stkinfo_log[index].kthread = (caddr_t)t; 2070 kmem_stkinfo_log[index].t_startpc = (caddr_t)t->t_startpc; 2071 kmem_stkinfo_log[index].start = start; 2072 kmem_stkinfo_log[index] [all...] |
/illumos-gate/usr/src/uts/common/fs/ |
H A D | dnlc.c | 269 * Returns the hash index. 699 int index; local 710 index = 0; 717 nc_rele[index++] = ncp->vp; 718 nc_rele[index++] = ncp->dp; 724 if (index == DNLC_MAX_RELE) 730 for (i = 0; i < index; i++) { 748 int index; local 763 index = 0; 771 nc_rele[index 812 int index; local [all...] |
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_rnode.c | 346 hrtime_t t, cred_t *cr, int index) 360 rw_exit(&rtable4[index].r_lock); 427 rw_exit(&rtable4[index].r_lock); 433 rw_exit(&rtable4[index].r_lock); 456 int index; local 462 index = rtable4hash(sfh); 463 rw_enter(&rtable4[index].r_lock, RW_READER); 465 vp = make_rnode4(sfh, &rtable4[index], vfsp, 494 ASSERT(RW_LOCK_HELD(&rtable4[index].r_lock)); 495 r4_do_attrcache(vp, garp, newnode, t, cr, index); 345 r4_do_attrcache(vnode_t *vp, nfs4_ga_res_t *garp, int newnode, hrtime_t t, cred_t *cr, int index) argument 512 int index; local 1091 int index; local 1116 int index; local 1166 int index; local 1241 int index; local 1279 int index; local 1515 int index; local 1681 int index; local 1799 int index, found = 0; local 1987 int index; local [all...] |
/illumos-gate/usr/src/uts/common/fs/portfs/ |
H A D | port_fop.c | 705 * does not find it in the hash table. The object pointer is used as index. 1611 int index, i; local 1634 index = i = 0; 1637 while (index < PORTFOP_HASHSIZE) { 1638 pfp = hashtbl[index]; 1655 index++; 1661 (i > 0 && index == PORTFOP_HASHSIZE)) {
|
/illumos-gate/usr/src/uts/common/fs/udfs/ |
H A D | udf_inode.c | 1314 int32_t elen, ndent, index, count, con_index; local 1353 con_index = index = 0; 1355 while (index < ip->i_ext_used) { 1356 if (index == 0) { 1394 if (count > (ip->i_ext_used - index)) { 1395 count = ip->i_ext_used - index; 1413 iext = &ip->i_ext[index]; 1415 if (index != 0) { 1426 if (index != 0) { 1468 index 1505 int32_t index = 0, scount; local 1527 int32_t index = 0, scount; local 1685 int32_t index, l2b, count, ecount; local 1854 int32_t index, busy = 0; local 2169 int index; local [all...] |
H A D | udf_vfsops.c | 426 int32_t index; local 439 for (index = 0; index < udf_vfsp->udf_npart; index++) { 667 int32_t index, count; local 738 for (index = 0; index < count; index ++) { 739 ttag = (struct tag *)(addr + index * DEV_BSIZE); 740 desc_len = udf_vfsp->udf_iseq_len - (index * DEV_BSIZ 965 int32_t error, count, index, shift; local 1781 int32_t index, valid = 0; local 1841 int32_t bsize, shift, index, end_index; local [all...] |
/illumos-gate/usr/src/tools/ctf/dwarf/common/ |
H A D | pro_section.c | 1071 Dwarf_Word index = 0; local 1084 index = 1; /* The cie_index of the first cie is 1, 1086 while (cie_ptr && index < cie_index) { 1088 index++; 1737 /* index to abbreviation table */
|
/illumos-gate/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_dev.c | 251 rdc_u_info[krdc->index].primary.file); 257 rdc_u_info[krdc->index].primary.file, (void *)krdc); 292 rdc_u_info_t *urdc = &rdc_u_info[krdc->index]; 335 int index; local 346 for (index = 0; index < rdc_max_sets; index++) { 347 krdc = &rdc_k_info[index]; 353 if (index == rdc_max_sets) { 357 index 1367 int index; local [all...] |
H A D | rdc_diskq.c | 120 int index; local 122 for (index = 0; index < rdc_max_sets; index++) { 123 urdc = &rdc_u_info[index]; 125 krdc = &rdc_k_info[index]; 127 ASSERT(krdc->index == index); 128 ASSERT(urdc->index == index); 268 int index = 0; local 284 rdc_idx2setid(int index) argument 1672 rdc_diskq_buf2queue(rdc_group_t *grp, nsc_buf_t **abuf, int index) argument 1902 rdc_diskq_unqueue(int index) argument 2173 int index; local 2310 rdc_read_diskq_buf(int index) argument 2714 int index = krdc->index; local 2791 _rdc_add_diskq(int index, char *diskq) argument 2847 int index; local 2977 int index; local 3107 int index; local 3162 int index; local [all...] |
H A D | rdc_svc.c | 192 rdc_k_info_t *krdc = &rdc_k_info[urdc->index]; 202 urdc = &rdc_u_info[krdc->index]; 251 utmp = &rdc_u_info[ktmp->index]; 596 * >0 reply indicates a net handle index 598 * ret net handle index 660 /* -1 index says allocate a buffer */ 800 * index 0 = error, or net handle index. 804 * ret net handle index. 898 /* -1 index say 1422 int e, ret = -1, index; local 1441 int e, index; local 1472 int e, index = -1; local 1713 int e, index = -1; local 1958 int e, ret = -1, index = -1; local 2004 int e, ret = -1, index = -1; local 2949 rdc_dump_dsets(int index) argument [all...] |
/illumos-gate/usr/src/uts/common/avs/ns/sdbc/ |
H A D | sd_io.c | 1764 int index, offset = 0, size = 0; local 1770 for (index = 0; index < BLK_FBAS; index++) { 1771 if (!_SD_BIT_ISSET(wanted, index)) 1773 state = _SD_BIT_ISSET(dirty, index); 1780 offset = index;
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_addr.c | 98 #define SCTP_ILL_HASH_FN(index) ((index) % SCTP_ILL_HASH) 362 /* Contains the interface index */ 700 uint_t index; local 706 index = SCTP_ILL_HASH_FN(SCTP_ILL_TO_PHYINDEX(ill)); 707 sctp_ill = list_head(&sctps->sctps_g_ills[index].sctp_ill_list); 708 for (i = 0; i < sctps->sctps_g_ills[index].ill_count; i++) { 713 sctp_ill = list_next(&sctps->sctps_g_ills[index].sctp_ill_list, 750 list_insert_tail(&sctps->sctps_g_ills[index].sctp_ill_list, 752 sctps->sctps_g_ills[index] [all...] |
/illumos-gate/usr/src/uts/common/io/1394/adapters/ |
H A D | hci1394_ohci.c | 1536 int index; local 1596 for (index = 0; index < 3; index++) { 1627 phy_info = phy_info | (port_status << (6 - (index * 2)));
|
/illumos-gate/usr/src/uts/common/io/afe/ |
H A D | afe.c | 757 int index; local 766 index = crc / 32; 771 newval = oldval = afep->afe_mctab[index]; 783 afep->afe_mctab[index] = newval; 2053 int index = afep->afe_txreclaim; local 2055 tmdp = &afep->afe_txdescp[index]; 2058 SYNCTXDESC(afep, index, DDI_DMA_SYNC_FORKERNEL); 2069 afep->afe_txreclaim = (index + 1) % AFE_TXRING;
|
/illumos-gate/usr/src/uts/common/io/arn/ |
H A D | arn_rc.c | 478 uint8_t index, int valid_tx_rate) 480 ASSERT(index <= ath_rc_priv->rate_table_size); 481 ath_rc_priv->valid_rate_index[index] = valid_tx_rate ? 1 : 0; 486 arn_rc_isvalid_txmask(struct ath_rate_priv *ath_rc_priv, uint8_t index) argument 488 ASSERT(index <= ath_rc_priv->rate_table_size); 489 return (ath_rc_priv->valid_rate_index[index]); 677 int8_t rssi_last, rssi_reduce = 0, index = 0; local 724 for (index = maxindex; index >= minindex; index 477 arn_rc_set_valid_txmask(struct ath_rate_priv *ath_rc_priv, uint8_t index, int valid_tx_rate) argument [all...] |
/illumos-gate/usr/src/uts/common/io/atu/ |
H A D | atu.c | 76 uint8_t request, uint16_t value, uint16_t index, uint16_t length, 89 req.wIndex = index; 120 uint8_t index, uint8_t *buf) 123 type << 8, index, size, buf); 230 uint8_t index, void *data) 240 request.MIBIndex = index; 75 atu_usb_request(struct atu_softc *sc, uint8_t type, uint8_t request, uint16_t value, uint16_t index, uint16_t length, uint8_t *data) argument 119 atu_get_mib(struct atu_softc *sc, uint8_t type, uint8_t size, uint8_t index, uint8_t *buf) argument 229 atu_send_mib(struct atu_softc *sc, uint8_t type, uint8_t size, uint8_t index, void *data) argument
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audiols/ |
H A D | audiols.c | 188 audigyls_read_ac97(void *arg, uint8_t index) argument 195 OUTB(dev, AC97A, index); 211 audigyls_write_ac97(void *arg, uint8_t index, uint16_t data) argument 217 OUTB(dev, AC97A, index);
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/ |
H A D | lm_pf.c | 819 /* Status block index init we do for Rx + Tx together so that we ask which cid we are only once */ 823 /* TX Data (remaining , sb index above...) */ 1175 u32_t index; local 1190 for (index = 0; index < sizeof(struct hc_status_block_data_e2)/sizeof(u32_t); index++) { 1191 LM_INTMEM_WRITE32(pdev, CSTORM_STATUS_BLOCK_DATA_OFFSET(LM_FW_VF_SB_ID(vf_info, relative_in_vf_ndsb)) + sizeof(u32_t)*index, 1192 *((u32_t*)(&pdev->vars.status_blocks_arr[LM_SW_VF_SB_ID(vf_info,relative_in_vf_ndsb)].hc_status_block_data.e2_sb_data) + index), BAR_CSTRORM_INTMEM);
|
H A D | lm_sb.c | 252 DbgMessage(pdev, INFORMi, "HC set to %d for SB%d(index%d)\n",is_enable,sb_id,idx); 254 DbgMessage(pdev, INFORMi, "HC already set to %d for SB%d(index%d)\n",is_enable,sb_id,idx); 369 //at least one storm index change implies that we have work to do on this sb 500 u8_t index = 0; 506 for(index=0; index < MAX_RSS_CHAINS; index++) 508 rss_sb = lm_get_status_block(pdev, index); 511 DbgBreakIf(*(LM_RCQ(pdev, index). 513 DbgBreakIf(*(LM_TXQ(pdev, index) 1341 u8_t index = 0; local 1553 u8_t index = 0; local 1709 u32_t index = 0; local [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | conskbd.c | 1454 int index; local 1477 for (index = 0; index < KBTRANS_KEYNUMS_MAX; index ++) { 1478 if (lqs->lqs_key_state[index] == KEY_PRESSED) 1481 index, 2036 int index; local 2049 for (index = 0; index < KBTRANS_KEYNUMS_MAX; index [all...] |
/illumos-gate/usr/src/stand/lib/inet/ |
H A D | ipv4.c | 96 * This function returns index of fragment 0 of the current fragmented DGRAM 116 * This function returns index of the last fragment of the current DGRAM. 175 frag_free(int index) argument 177 if (fragment[index].mp != NULL) { 178 freeb(fragment[index].mp); 181 bzero((caddr_t)&fragment[index], sizeof (struct ip_frag)); 309 * in network order. Returns index for success, -1 if entry not found. 346 int index; local 356 for (index = 0; index < IPV4_ROUTE_TABLE_SIZ 404 int index; local 583 make_trans_datagram(int index, struct inetgram *igp, struct in_addr ipsrc, struct in_addr ipdst, uint16_t iphlen) argument 688 ipv4_input(int index) argument 971 ipv4_output(int index, struct inetgram *ogp) argument [all...] |
/illumos-gate/usr/src/uts/common/io/chxge/com/ |
H A D | ch_subr.c | 719 * Return the board_info structure with a given index. Out-of-range indices 799 static int vpd_macaddress_get(adapter_t *adapter, int index, u8 mac_addr[]) argument 806 mac_addr[5] = vpd.mac_base_address[5] + index;
|
H A D | ixf1010.c | 160 u32 index; member in struct:_cmac_instance 170 val &= ~(1 << mac->instance->index); 361 u32 index = mac->instance->index; local 373 val |= (1 << index); 385 val |= (1 << index); 388 index <<= 2; 391 if (index) index <<= 2; 392 (void) t1_tpi_write(adapter, RX_FIFO_HIGH_WATERMARK_BASE + index, 510 ixf1010_mac_create(adapter_t *adapter, int index) argument [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | cpu_event.c | 89 * To access value of property m for CPU n, using following value as index: 90 * index = seq_id_of_CPUn * CPU_IDLE_VALUE_GROUP_SIZE + m. 102 /* Compute index from callback context handle. */ 156 int index; member in struct:cpu_idle_cb_state::__anon6827 352 cpu_idle_cb_state[cp->cpu_seqid].v.index = 0; 513 if (sp->v.index != 0) { 571 if (sp->v.index != 0) { 645 ASSERT(sp->v.index == 0); 683 * Increase index so corresponding idle_exit callback 687 sp->v.index [all...] |