/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hpi_rxdma.c | 42 hpi_rxdma_cfg_logical_page_handle(hpi_handle_t handle, uint8_t rdc, in hpi_rxdma_cfg_logical_page_handle() argument 47 if (!RXDMA_CHANNEL_VALID(rdc)) { in hpi_rxdma_cfg_logical_page_handle() 50 " Illegal RDC number %d \n", rdc)); in hpi_rxdma_cfg_logical_page_handle() 57 RXDMA_REG_WRITE64(handle, RDC_PAGE_HANDLE, rdc, page_hdl.value); in hpi_rxdma_cfg_logical_page_handle() 63 hpi_rxdma_cfg_rdc_wait_for_qst(hpi_handle_t handle, uint8_t rdc) in hpi_rxdma_cfg_rdc_wait_for_qst() argument 69 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value); in hpi_rxdma_cfg_rdc_wait_for_qst() 73 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value); in hpi_rxdma_cfg_rdc_wait_for_qst() 84 hpi_rxdma_cfg_rdc_ctl(hpi_handle_t handle, uint8_t rdc, uint8_t op) in hpi_rxdma_cfg_rdc_ctl() argument 89 uint32_t error = HPI_RXDMA_ERROR_ENCODE(HPI_RXDMA_RESET_ERR, rdc); in hpi_rxdma_cfg_rdc_ctl() 91 if (!RXDMA_CHANNEL_VALID(rdc)) { in hpi_rxdma_cfg_rdc_ctl() [all …]
|
H A D | hpi_rxdma.h | 146 #define HPI_RXDMA_ERROR_ENCODE(err, rdc) \ argument 147 (RXDMA_ID_SHIFT(rdc) | RXDMA_ER_ST | err) 149 #define RXDMA_CHANNEL_VALID(rdc) \ argument 150 ((rdc < HXGE_MAX_RDCS)) 160 #define hpi_rxdma_rdc_rcr_flush(handle, rdc) \ argument 161 RXDMA_REG_WRITE64(handle, RDC_RCR_FLUSH, rdc, \ 163 #define hpi_rxdma_rdc_rbr_kick(handle, rdc, num_buffers) \ argument 164 RXDMA_REG_WRITE64(handle, RDC_RBR_KICK, rdc, num_buffers) 166 hpi_status_t hpi_rxdma_cfg_rdc_wait_for_qst(hpi_handle_t handle, uint8_t rdc); 167 hpi_status_t hpi_rxdma_cfg_rdc_ring(hpi_handle_t handle, uint8_t rdc, [all …]
|
H A D | hxge_ndd.c | 507 int rdc; in hxge_param_get_rxdma_info() local 547 for (rdc = 0; rdc < p_cfgp->max_rdcs; rdc++) { in hxge_param_get_rxdma_info() 550 rdc, hxgep->rdc[rdc], (void *)rbr_rings[rdc], in hxge_param_get_rxdma_info() 551 rbr_rings[rdc]->num_blocks, (void *)rcr_rings[rdc]); in hxge_param_get_rxdma_info() 1150 int rdc, tdc, block; in hxge_param_dump_ptrs() local 1212 for (rdc = 0; rdc < p_cfgp->max_rdcs; rdc++) { in hxge_param_dump_ptrs() 1215 rdc, (void *)rcr_rings[rdc], (void *)rbr_rings[rdc]); in hxge_param_dump_ptrs()
|
H A D | hxge_rxdma.h | 329 uint16_t rdc; member 396 uint16_t rdc; member 453 uint16_t rdc; member
|
H A D | hxge_rxdma.c | 243 rs = hpi_rxdma_cfg_rdc_ring(handle, rbr_p->rdc, &rdc_desc); in hxge_enable_rxdma_channel() 811 channel = rbr_rings[i]->rdc; in hxge_rxdma_hw_mode() 981 hpi_rxdma_rdc_rbr_kick(HXGE_DEV_HPI_HANDLE(hxgep), rx_rbr_p->rdc, 1); in hxge_post_page() 989 rx_rbr_p->rdc, rx_rbr_p->rbr_wr_index)); in hxge_post_page() 1299 RXDMA_REG_WRITE64(handle, RDC_STAT, ringp->rdc, cs.value); in hxge_disable_poll() 1411 channel = rcrp->rdc; in hxge_rx_pkts() 1660 channel = rcr_p->rdc; in hxge_receive_packet() 2714 rcrp->rdc = dma_channel; in hxge_map_rxdma_channel_cfg_ring() 2827 "==> hxge_unmap_rxdma_channel_cfg_ring: channel %d", rcr_p->rdc)); in hxge_unmap_rxdma_channel_cfg_ring() 2888 rbrp->rdc = channel; in hxge_map_rxdma_channel_buf_ring() [all …]
|
H A D | hxge_virtual.c | 338 hxge_check_rxdma_port_member(p_hxge_t hxgep, uint8_t rdc) in hxge_check_rxdma_port_member() argument 350 if (rdc < p_cfgp->max_rdcs) in hxge_check_rxdma_port_member()
|
H A D | hxge.h | 313 uint8_t rdc[HXGE_MAX_RDCS]; member
|
/illumos-gate/usr/src/uts/common/io/nxge/npi/ |
H A D | npi_rxdma.c | 111 npi_rxdma_cfg_rdc_ctl(npi_handle_t handle, uint8_t rdc, uint8_t op); 113 npi_rxdma_cfg_rdc_rcr_ctl(npi_handle_t handle, uint8_t rdc, uint8_t op, 131 npi_rxdma_dump_rdc_regs(npi_handle_t handle, uint8_t rdc) in npi_rxdma_dump_rdc_regs() argument 140 ASSERT(RXDMA_CHANNEL_VALID(rdc)); in npi_rxdma_dump_rdc_regs() 141 if (!RXDMA_CHANNEL_VALID(rdc)) { in npi_rxdma_dump_rdc_regs() 145 rdc)); in npi_rxdma_dump_rdc_regs() 154 rdc)); in npi_rxdma_dump_rdc_regs() 156 RXDMA_REG_READ64(handle, rdc_dmc_offset[i], rdc, &value); in npi_rxdma_dump_rdc_regs() 158 rdc); in npi_rxdma_dump_rdc_regs() 166 rdc)); in npi_rxdma_dump_rdc_regs() [all …]
|
H A D | npi_rxdma.h | 47 #define REG_FZC_RDC_OFFSET(reg, rdc) (reg + RX_LOG_DMA_OFFSET(rdc)) argument 82 #define NPI_RXDMA_ERROR_ENCODE(err, rdc) \ argument 83 (RXDMA_ID_SHIFT(rdc) | RXDMA_ER_ST | err) 86 #define RXDMA_CHANNEL_VALID(rdc) \ argument 87 ((rdc < NXGE_MAX_RDCS)) 575 #define npi_rxdma_rdc_rcr_flush(handle, rdc) \ argument 576 RXDMA_REG_WRITE64(handle, RCR_FLSH_REG, rdc, \ 656 #define npi_rxdma_rdc_rbr_kick(handle, rdc, num_buffers) \ argument 657 RXDMA_REG_WRITE64(handle, RBR_KICK_REG, rdc, num_buffers)
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_rxdma.c | 39 #define NXGE_ACTUAL_RDC(nxgep, rdc) \ argument 40 (rdc + nxgep->pt_config.hw_config.start_rdc) 248 int rdc; in nxge_uninit_rxdma_channels() local 258 for (rdc = 0; rdc < NXGE_MAX_RDCS; rdc++) { in nxge_uninit_rxdma_channels() 259 if ((1 << rdc) & set->owned.map) { in nxge_uninit_rxdma_channels() 260 nxge_grp_dc_remove(nxgep, VP_BOUND_RX, rdc); in nxge_uninit_rxdma_channels() 308 int rdc; in nxge_rxdma_regs_dump_channels() local 330 for (rdc = 0; rdc < NXGE_MAX_RDCS; rdc++) { in nxge_rxdma_regs_dump_channels() 331 if ((1 << rdc) & set->owned.map) { in nxge_rxdma_regs_dump_channels() 333 nxgep->rx_rbr_rings->rbr_rings[rdc]; in nxge_rxdma_regs_dump_channels() [all …]
|
H A D | nxge_ndd.c | 1014 int rdc; in nxge_param_get_rxdma_info() local 1058 for (rdc = 0; rdc < NXGE_MAX_RDCS; rdc++) { in nxge_param_get_rxdma_info() 1059 if ((1 << rdc) & set->owned.map) { in nxge_param_get_rxdma_info() 1063 rdc, in nxge_param_get_rxdma_info() 1064 p_dma_cfgp->rcr_timeout[rdc], in nxge_param_get_rxdma_info() 1065 p_dma_cfgp->rcr_threshold[rdc], in nxge_param_get_rxdma_info() 1066 (void *)rbr_rings[rdc], in nxge_param_get_rxdma_info() 1067 rbr_rings[rdc]->num_blocks, (void *)rcr_rings[rdc]); in nxge_param_get_rxdma_info() 1084 int offset, rdc, i, rdc_grp; in nxge_param_get_rxdma_rdcgrp_info() local 1136 for (rdc = 0; rdc < rdc_grp_p->max_rdcs; rdc++) { in nxge_param_get_rxdma_rdcgrp_info() [all …]
|
/illumos-gate/usr/src/uts/common/sys/nxge/ |
H A D | nxge_common.h | 300 #define RDC_MAP_IN(map, rdc) \ argument 301 (map |= (1 << rdc)) 303 #define RDC_MAP_OUT(map, rdc) \ argument 304 (map &= (~(1 << rdc))) 348 uint32_t rdc:8; /* [23:16] rdc # */ member 352 uint32_t rdc:8; /* [23:16] rdc # */
|
H A D | nxge_rxdma_hw.h | 92 uint32_t rdc:5; member 94 uint32_t rdc:5; 113 uint32_t rdc:4; member 115 uint32_t rdc:4; 300 #define RDC_RED_RDC_PARA_REG(rdc) \ argument 301 (RDC_RED_PARA_REG + (rdc * RDC_RED_CHANNEL_SIZE)) 305 #define RDC_RED_RDC_DISC_REG(rdc) \ argument 306 (RDC_RED_DISC_CNT_REG + (rdc * RDC_RED_CHANNEL_SIZE)) 1474 #define RDC_DIS_CNT_OFFSET(rdc) (RED_DIS_CNT_REG + RED_DMC_OFFSET(rdc)) argument
|
H A D | nxge_rxdma.h | 219 uint16_t rdc; member 302 uint16_t rdc; member 368 uint16_t rdc; member
|
H A D | nxge_hio.h | 311 nxge_hio_dc_t rdc[NXGE_MAX_RDCS]; member
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs3_vnops.c | 3723 rddir_cache *rdc; in nfs3_readdir() local 3800 rdc = avl_find(&rp->r_dir, &srdc, &where); in nfs3_readdir() 3801 if (rdc != NULL) { in nfs3_readdir() 3802 rddir_cache_hold(rdc); in nfs3_readdir() 3812 if (rdc->flags & RDDIR) { in nfs3_readdir() 3814 rdc->flags |= RDDIRWAIT; in nfs3_readdir() 3818 if (!cv_wait_sig(&rdc->cv, &rp->r_statelock)) { in nfs3_readdir() 3828 rddir_cache_rele(rdc); in nfs3_readdir() 3836 rddir_cache_rele(rdc); in nfs3_readdir() 3845 if (rdc->flags & RDDIRREQ) { in nfs3_readdir() [all …]
|
H A D | nfs_vnops.c | 2976 rddir_cache *rdc; in nfs_readdir() local 3055 rdc = avl_find(&rp->r_dir, &srdc, &where); in nfs_readdir() 3056 if (rdc != NULL) { in nfs_readdir() 3057 rddir_cache_hold(rdc); in nfs_readdir() 3067 if (rdc->flags & RDDIR) { in nfs_readdir() 3069 rdc->flags |= RDDIRWAIT; in nfs_readdir() 3073 if (!cv_wait_sig(&rdc->cv, &rp->r_statelock)) { in nfs_readdir() 3083 rddir_cache_rele(rdc); in nfs_readdir() 3091 rddir_cache_rele(rdc); in nfs_readdir() 3100 if (rdc->flags & RDDIRREQ) { in nfs_readdir() [all …]
|
H A D | nfs4_subr.c | 2458 rddir4_cache *rdc = NULL; in rddir4_cache_lookup() local 2477 rdc = rddir4_cache_alloc(KM_SLEEP); in rddir4_cache_lookup() 2478 rdc->nfs4_cookie = cookie; in rddir4_cache_lookup() 2479 rdc->buflen = count; in rddir4_cache_lookup() 2481 return (rdc); in rddir4_cache_lookup() 2561 rdc = &rdip->rc; in rddir4_cache_lookup() 2562 rddir4_cache_hold(rdc); in rddir4_cache_lookup() 2572 while (rdc->flags & RDDIR) { in rddir4_cache_lookup() 2577 rdc->flags |= RDDIRWAIT; in rddir4_cache_lookup() 2581 while (rdc->flags & RDDIRWAIT) { in rddir4_cache_lookup() [all …]
|
H A D | nfs_client.c | 263 rddir_cache *rdc; in nfs_purge_rddir_cache() local 272 rdc = avl_first(&rp->r_dir); in nfs_purge_rddir_cache() 273 while (rdc != NULL) { in nfs_purge_rddir_cache() 274 nrdc = AVL_NEXT(&rp->r_dir, rdc); in nfs_purge_rddir_cache() 275 avl_remove(&rp->r_dir, rdc); in nfs_purge_rddir_cache() 276 rddir_cache_rele(rdc); in nfs_purge_rddir_cache() 277 rdc = nrdc; in nfs_purge_rddir_cache() 1719 nfs_async_readdir(vnode_t *vp, rddir_cache *rdc, cred_t *cr, in nfs_async_readdir() argument 1749 args->a_nfs_rdc = rdc; in nfs_async_readdir() 1796 rdc->entries = NULL; in nfs_async_readdir() [all …]
|
H A D | nfs4_xdr.c | 2212 rddir4_cache *rdc = aobjp->rdc; in xdr_READDIR4res_clnt() local 2225 ASSERT(rdc->entries == NULL); in xdr_READDIR4res_clnt() 2244 rdc->entries = kmem_alloc(aobjp->dircount, KM_SLEEP); in xdr_READDIR4res_clnt() 2246 dp = (dirent64_t *)rdc->entries; in xdr_READDIR4res_clnt() 2247 rdc->entlen = rdc->buflen = space_left = aobjp->dircount; in xdr_READDIR4res_clnt() 2250 if (rdc->nfs4_cookie == (nfs_cookie4) 0 || in xdr_READDIR4res_clnt() 2251 rdc->nfs4_cookie == (nfs_cookie4) 1) { in xdr_READDIR4res_clnt() 2253 if (rdc->nfs4_cookie == (nfs_cookie4)0) { in xdr_READDIR4res_clnt() 2254 bcopy(nfs4_dot_entries, rdc->entries, in xdr_READDIR4res_clnt() 2265 bcopy(nfs4_dot_dot_entry, rdc->entries, in xdr_READDIR4res_clnt() [all …]
|
H A D | nfs4_vnops.c | 8919 rddir4_cache *rdc; in nfs4_readdir() local 8972 rdc = rddir4_cache_lookup(rp, uiop->uio_loffset, count); in nfs4_readdir() 8977 if (rdc == NULL) { in nfs4_readdir() 8985 if (rdc->flags & RDDIRREQ) { in nfs4_readdir() 8986 rdc->flags &= ~RDDIRREQ; in nfs4_readdir() 8987 rdc->flags |= RDDIR; in nfs4_readdir() 8993 nfs4readdir(vp, rdc, cr); in nfs4_readdir() 9002 rdc->flags &= ~RDDIR; in nfs4_readdir() 9005 ASSERT(!(rdc->flags & RDDIR)); in nfs4_readdir() 9012 if (rdc->error) { in nfs4_readdir() [all …]
|
H A D | nfs4_rnode.c | 1405 bool_t rdc = FALSE; in nfs4_free_data_reclaim() local 1413 rdc = TRUE; in nfs4_free_data_reclaim() 1428 if (rdc == FALSE && contents == NULL && vsp == NULL && xattr == NULL) in nfs4_free_data_reclaim() 1467 bool_t rdc = FALSE; in nfs4_active_data_reclaim() local 1481 rdc = TRUE; in nfs4_active_data_reclaim() 1505 if (contents == NULL && vsp == NULL && rdc == FALSE && xattr == NULL) in nfs4_active_data_reclaim()
|
H A D | nfs4_client.c | 1946 nfs4_async_readdir(vnode_t *vp, rddir4_cache *rdc, cred_t *cr, in nfs4_async_readdir() argument 1975 args->a_nfs4_rdc = rdc; in nfs4_async_readdir() 2021 rdc->entries = NULL; in nfs4_async_readdir() 2026 rdc->flags &= ~RDDIR; in nfs4_async_readdir() 2027 rdc->flags |= RDDIRREQ; in nfs4_async_readdir() 2028 rddir4_cache_rele(rp, rdc); in nfs4_async_readdir()
|
/illumos-gate/usr/src/uts/common/nfs/ |
H A D | nfs_clnt.h | 115 struct rddir_cache *rdc; /* pointer to cache entry to fill */ member 159 #define a_nfs_rdc a_args.a_readdir_args.rdc
|
H A D | nfs4_clnt.h | 263 struct rddir4_cache *rdc; /* pointer to cache entry to fill */ member 302 #define a_nfs4_rdc a_args.a_readdir_args.rdc
|