Home
last modified time | relevance | path

Searched refs:cidx (Results 1 – 20 of 20) sorted by relevance

/titanic_44/usr/src/uts/common/sys/fibre-channel/fca/oce/
H A Doce_buf.h82 uint16_t cidx; /* Get ptr */ member
156 ring->cidx = GET_Q_NEXT(ring->cidx, n, ring->num_items)
162 (void*)(((type *)DBUF_VA(ring->dbuf)) + ring->cidx)
165 (uint64_t)(((type *)DBUF_PA(ring->dbuf)) + ring->cidx)
H A Doce_hw.h911 uint32_t cidx:13; member
936 uint32_t cidx:13;
1022 uint32_t cidx:11; member
1038 uint32_t cidx:11;
/titanic_44/usr/src/uts/common/io/scsi/impl/
H A Dscsi_capabilities.c96 int cidx; in scsi_ifsetcap() local
100 cidx = scsi_hba_lookup_capstr(cap); in scsi_ifsetcap()
101 if (cidx == SCSI_CAP_SECTOR_SIZE) { in scsi_ifsetcap()
/titanic_44/usr/src/uts/common/io/cxgbe/t4nex/
H A Dt4_sge.c170 unsigned int cidx; in reclaimable() local
172 cidx = eq->spg->cidx; /* stable snapshot */ in reclaimable()
173 cidx = be16_to_cpu(cidx); in reclaimable()
175 if (cidx >= eq->cidx) in reclaimable()
176 return (cidx - eq->cidx); in reclaimable()
178 return (cidx + eq->cap - eq->cidx); in reclaimable()
842 eq->cidx += can_reclaim; in t4_wrq_tx_locked()
844 if (eq->cidx >= eq->cap) in t4_wrq_tx_locked()
845 eq->cidx -= eq->cap; in t4_wrq_tx_locked()
885 eq->cidx += can_reclaim; in t4_wrq_tx_locked()
[all …]
H A Dadapter.h181 uint16_t cidx; /* consumer index */ member
224 uint16_t cidx; /* consumer idx (desc idx) */ member
254 uint32_t cidx; /* consumer idx (buffer idx, NOT hw desc idx) */ member
/titanic_44/usr/src/cmd/vscan/vscand/
H A Dvs_eng.c346 int cidx = eng_ctx->vse_cidx; in vs_eng_set_error() local
357 eng->vse_cxns[cidx].vsc_state = VS_ENG_CLOSE_PENDING; in vs_eng_set_error()
377 int eidx, cidx, sockfd; in vs_eng_get() local
397 (vs_eng_find_connection(&eidx, &cidx, retry) == -1)) { in vs_eng_get()
423 cxn = &(eng->vse_cxns[cidx]); in vs_eng_get()
435 eng_ctx->vse_cidx = cidx; in vs_eng_get()
608 int cidx = eng_ctx->vse_cidx; in vs_eng_release() local
612 cxn = &(vs_engines[eidx].vse_cxns[cidx]); in vs_eng_release()
/titanic_44/usr/src/uts/common/io/chxge/
H A Dsge.c592 uint32_t cidx = Q->rq_cidx; in sge_data_in() local
616 e = &q[cidx]; in sge_data_in()
678 if (unlikely(++cidx == entries_n)) { in sge_data_in()
679 cidx = 0; in sge_data_in()
735 Q->rq_cidx = cidx; in sge_data_in()
738 t1_write_reg_4(adapter, A_SG_SLEEPING, cidx); in sge_data_in()
810 uint32_t cidx = Q->fq_cidx; in t1_sge_rx() local
846 e = &Q->fq_entries[cidx]; in t1_sge_rx()
885 e = &Q->fq_entries[cidx]; in t1_sge_rx()
1004 if (++cidx == entries_n) in t1_sge_rx()
[all …]
/titanic_44/usr/src/cmd/drd/
H A Ddrd_rcm.c648 int cidx; in drd_rcm_del_cpu_notify() local
663 for (idx = 0, cidx = 0; idx < nrsrc; idx++) { in drd_rcm_del_cpu_notify()
667 cpus[cidx] = rsrcs[idx].res_cpu_id; in drd_rcm_del_cpu_notify()
668 cidx++; in drd_rcm_del_cpu_notify()
671 drd_dbg(" ncpus = %d", cidx); in drd_rcm_del_cpu_notify()
674 if (cidx == 0) { in drd_rcm_del_cpu_notify()
697 oldcpus = (cpuid_t *)calloc(newncpus + cidx, sizeof (cpuid_t)); in drd_rcm_del_cpu_notify()
703 if (!is_cpu_in_list(newcpus[idx], cpus, cidx)) in drd_rcm_del_cpu_notify()
707 for (idx = 0; idx < cidx; idx++) { in drd_rcm_del_cpu_notify()
714 dump_cpu_list("delta: ", cpus, cidx); in drd_rcm_del_cpu_notify()
/titanic_44/usr/src/uts/common/io/fibre-channel/fca/oce/
H A Doce_rx.c278 cur_index = ring->cidx; in oce_rq_charge()
317 rqbd = shadow_rq[rq->ring->cidx]; in oce_rq_discharge()
351 cur_index = ring->cidx; in oce_rx()
424 cur_index = ring->cidx; in oce_rx_bcopy()
479 rqbd = shadow_rq[rq->ring->cidx]; in oce_rx_drop_pkt()
H A Doce_queue.c646 wq->ring->cidx = 0; in oce_wq_create()
881 rq->ring->cidx = 0; in oce_rq_create()
/titanic_44/usr/src/uts/common/io/cxgbe/common/
H A Dt4_hw.h80 volatile __be16 cidx; member
H A Dt4_msg.h1927 __be16 cidx; member
/titanic_44/usr/src/uts/common/io/usb/scsa2usb/
H A Dscsa2usb.c2776 uint_t cidx; in scsa2usb_scsi_getcap() local
2802 cidx = scsi_hba_lookup_capstr(cap); in scsa2usb_scsi_getcap()
2803 switch (cidx) { in scsa2usb_scsi_getcap()
2880 uint_t cidx; in scsa2usb_scsi_setcap() local
2899 cidx = scsi_hba_lookup_capstr(cap); in scsa2usb_scsi_setcap()
2902 "cidx = 0x%x", (void *)ap, value, whom, cidx); in scsa2usb_scsi_setcap()
2904 switch (cidx) { in scsa2usb_scsi_setcap()
/titanic_44/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi.c4601 int cidx; in iscsi_i_commoncap() local
4612 cidx = scsi_hba_lookup_capstr(cap); in iscsi_i_commoncap()
4613 if (cidx == -1) { in iscsi_i_commoncap()
4614 return (cidx); in iscsi_i_commoncap()
4624 switch (cidx) { in iscsi_i_commoncap()
4646 switch (cidx) { in iscsi_i_commoncap()
/titanic_44/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_scsa.c847 int cidx, rval = 0; in pmcs_cap() local
850 cidx = scsi_hba_lookup_capstr(cap); in pmcs_cap()
851 if (cidx == -1) { in pmcs_cap()
860 switch (cidx) { in pmcs_cap()
/titanic_44/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci.c1727 int cidx; in vhci_commoncap() local
1742 if ((cidx = scsi_hba_lookup_capstr(cap)) == -1) { in vhci_commoncap()
1753 switch (cidx) { in vhci_commoncap()
1792 "!vhci_setcap: unsupported %d", cidx)); in vhci_commoncap()
1806 switch (cidx) { in vhci_commoncap()
1869 "!vhci_getcap: unsupported %d", cidx)); in vhci_commoncap()
/titanic_44/usr/src/uts/sun/io/scsi/adapters/
H A Dsf.c4483 int cidx; in sf_commoncap() local
4493 if ((cidx = scsi_hba_lookup_capstr(cap)) == -1) { in sf_commoncap()
4506 switch (cidx) { in sf_commoncap()
4511 "sf_setcap: unsupported %d", cidx)); in sf_commoncap()
4525 switch (cidx) { in sf_commoncap()
H A Dfas.c8911 int cidx; in fas_commoncap() local
8923 cidx = scsi_hba_lookup_capstr(cap); in fas_commoncap()
8924 if (cidx == -1) { in fas_commoncap()
8934 switch (cidx) { in fas_commoncap()
9056 switch (cidx) { in fas_commoncap()
/titanic_44/usr/src/uts/common/io/fibre-channel/ulp/
H A Dfcp.c11826 int cidx; in fcp_commoncap() local
11836 if ((cidx = scsi_hba_lookup_capstr(cap)) == -1) { in fcp_commoncap()
11847 switch (cidx) { in fcp_commoncap()
11871 "fcp_setcap: unsupported %d", cidx); in fcp_commoncap()
11886 switch (cidx) { in fcp_commoncap()
11935 "fcp_getcap: unsupported %d", cidx); in fcp_commoncap()
/titanic_44/usr/src/uts/common/io/cxgbe/firmware/
H A Dt4fw_interface.h7166 __be16 cidx; member
7172 __be16 cidx; member