/titanic_50/usr/src/uts/common/io/comstar/lu/stmf_sbd/ |
H A D | sbd_zvol.c | 187 stmf_sglist_ent_t *sgl; in sbd_zvol_alloc_read_bufs() local 197 sgl = &dbuf->db_sglist[0]; in sbd_zvol_alloc_read_bufs() 202 sgl->seg_addr = (uint8_t *)dbp->db_data + odiff; in sbd_zvol_alloc_read_bufs() 204 sgl->seg_length = (uint32_t)seglen; in sbd_zvol_alloc_read_bufs() 207 sgl++; in sbd_zvol_alloc_read_bufs() 244 stmf_sglist_ent_t *sgl; in sbd_zvol_alloc_write_bufs() local 287 sgl = &dbuf->db_sglist[0]; in sbd_zvol_alloc_write_bufs() 298 sgl->seg_addr = abp[i]->b_data; in sbd_zvol_alloc_write_bufs() 299 sgl->seg_length = (uint32_t)seglen; in sbd_zvol_alloc_write_bufs() 300 sgl++; in sbd_zvol_alloc_write_bufs()
|
/titanic_50/usr/src/lib/udapl/udapl_tavor/tavor/ |
H A D | dapl_hermon_hw.c | 56 #define HERMON_WQE_BUILD_DATA_SEG(ds, sgl) \ argument 61 tmp[1] = HTOBE_64((sgl)->ds_va); \ 62 ((uint32_t *)tmp)[1] = HTOBE_32((sgl)->ds_key); \ 64 ((uint32_t *)tmp)[0] = HTOBE_32((sgl)->ds_len); \ 181 ibt_wr_ds_t *sgl; in dapli_hermon_wqe_send_build() local 194 sgl = wr->wr_sgl; in dapli_hermon_wqe_send_build() 315 len += sgl[i].ds_len; in dapli_hermon_wqe_send_build() 332 src = (uint8_t *)(uintptr_t)sgl[i].ds_va; in dapli_hermon_wqe_send_build() 333 len = sgl[i].ds_len; in dapli_hermon_wqe_send_build() 358 if (sgl[i].ds_len) in dapli_hermon_wqe_send_build() [all …]
|
H A D | dapl_arbel_hw.c | 194 ibt_wr_ds_t *sgl; in dapli_arbel_wqe_send_build() local 204 sgl = wr->wr_sgl; in dapli_arbel_wqe_send_build() 320 total_len += sgl[i].ds_len; in dapli_arbel_wqe_send_build() 329 if ((len = sgl[i].ds_len) == 0) { in dapli_arbel_wqe_send_build() 333 (void *)(uintptr_t)sgl[i].ds_va, len); in dapli_arbel_wqe_send_build() 340 if (sgl[i].ds_len == 0) { in dapli_arbel_wqe_send_build() 349 TAVOR_WQE_BUILD_DATA_SEG(&ds[num_ds], &sgl[i]); in dapli_arbel_wqe_send_build() 471 ibt_wr_ds_t sgl; in dapli_arbel_wqe_recv_build() local 472 sgl.ds_va = (ib_vaddr_t)0; in dapli_arbel_wqe_recv_build() 473 sgl.ds_len = (ib_msglen_t)0; in dapli_arbel_wqe_recv_build() [all …]
|
H A D | dapl_tavor_hw.h | 513 #define TAVOR_WQE_BUILD_DATA_SEG(ds, sgl) \ argument 518 tmp[0] = HTOBE_64(((uint64_t)((sgl)->ds_len & \ 519 TAVOR_WQE_SGL_BYTE_CNT_MASK) << 32) | (sgl)->ds_key); \ 520 tmp[1] = HTOBE_64((sgl)->ds_va); \
|
H A D | dapl_tavor_hw.c | 298 ibt_wr_ds_t *sgl; in dapli_tavor_wqe_send_build() local 308 sgl = wr->wr_sgl; in dapli_tavor_wqe_send_build() 417 total_len += sgl[i].ds_len; in dapli_tavor_wqe_send_build() 426 if ((len = sgl[i].ds_len) == 0) { in dapli_tavor_wqe_send_build() 430 (void *)(uintptr_t)sgl[i].ds_va, len); in dapli_tavor_wqe_send_build() 437 if (sgl[i].ds_len == 0) { in dapli_tavor_wqe_send_build() 446 TAVOR_WQE_BUILD_DATA_SEG(&ds[num_ds], &sgl[i]); in dapli_tavor_wqe_send_build()
|
/titanic_50/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon_wr.c | 89 ibt_wr_ds_t *sgl; in hermon_post_send_ud() local 137 sgl = wr->wr_sgl; in hermon_post_send_ud() 312 if (sgl[j].ds_len != 0) in hermon_post_send_ud() 317 if (sgl[j].ds_len == 0) { in hermon_post_send_ud() 327 HERMON_WQE_BUILD_DATA_SEG_SEND(&ds[last_ds], &sgl[j]); in hermon_post_send_ud() 443 ibt_wr_ds_t *sgl; in hermon_post_send_rc() local 496 sgl = wr->wr_sgl; in hermon_post_send_rc() 593 sgl = wr->wr_sgl; in hermon_post_send_rc() 663 if (sgl[i].ds_len != 0) in hermon_post_send_rc() 668 if (sgl[i].ds_len == 0) { in hermon_post_send_rc() [all …]
|
H A D | hermon_ci.c | 2442 ibt_wr_ds_t *sgl; in hermon_ci_map_mem_iov() local 2478 sgl = wr->send.wr_sgl; in hermon_ci_map_mem_iov() 2479 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*sgl)) in hermon_ci_map_mem_iov() 2504 sgl[nds].ds_va = dmacookie.dmac_laddress; in hermon_ci_map_mem_iov() 2505 sgl[nds].ds_key = rsvd_lkey; in hermon_ci_map_mem_iov() 2506 sgl[nds].ds_len = (ib_msglen_t)dmacookie.dmac_size; in hermon_ci_map_mem_iov() 2519 sgl = wr->recv.wr_sgl; in hermon_ci_map_mem_iov() 2521 sgl = wr->send.wr_sgl; in hermon_ci_map_mem_iov() 2522 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*sgl)) in hermon_ci_map_mem_iov() 2557 sgl[nds].ds_va = dmacookie.dmac_laddress; in hermon_ci_map_mem_iov() [all …]
|
/titanic_50/usr/src/uts/common/io/mega_sas/ |
H A D | megaraid_sas.c | 2123 dcmd->sgl.sge32[0].phys_addr = instance->internal_buf_dmac_add; in get_ctrl_info() 2124 dcmd->sgl.sge32[0].length = sizeof (struct megasas_ctrl_info); in get_ctrl_info() 2530 dcmd->sgl.sge32[0].length = sizeof (struct megasas_evt_log_info); in get_seq_num() 2531 dcmd->sgl.sge32[0].phys_addr = dcmd_dma_obj.dma_cookie[0].dmac_address; in get_seq_num() 3397 mfi_sgl = (struct megasas_sge64 *)&ldio->sgl; in build_cmd() 3470 mfi_sgl = (struct megasas_sge64 *)&pthru->sgl; in build_cmd() 3560 xferlen = kpthru->sgl.sge32[0].length; in issue_mfi_pthru() 3563 ubuf = (void *)(ulong_t)kpthru->sgl.sge32[0].phys_addr; in issue_mfi_pthru() 3567 xferlen = kpthru->sgl.sge32[0].length; in issue_mfi_pthru() 3569 ubuf = (void *)(ulong_t)kpthru->sgl.sge32[0].phys_addr; in issue_mfi_pthru() [all …]
|
H A D | megaraid_sas.h | 750 union megasas_sgl sgl; /* 28h */ member 775 union megasas_sgl sgl; /* 30h */ member 801 union megasas_sgl sgl; /* 28h */ member 847 union megasas_sgl sgl[2]; /* 28h */ member 870 union megasas_sgl sgl; /* 40 */ member
|
/titanic_50/usr/src/uts/i86pc/io/ |
H A D | rootnex.c | 384 static void rootnex_get_sgl(ddi_dma_obj_t *dmar_object, ddi_dma_cookie_t *sgl, 387 ddi_dma_cookie_t *sgl, rootnex_sglinfo_t *sglinfo); 2865 rootnex_get_sgl(ddi_dma_obj_t *dmar_object, ddi_dma_cookie_t *sgl, in rootnex_get_sgl() argument 2970 sgl[cnt].dmac_laddress = raddr; in rootnex_get_sgl() 2971 sgl[cnt].dmac_size = psize; in rootnex_get_sgl() 2972 sgl[cnt].dmac_type = 0; in rootnex_get_sgl() 2999 sgl[cnt].dmac_type = ROOTNEX_USES_COPYBUF; in rootnex_get_sgl() 3002 sgl[cnt].dmac_laddress = 0; in rootnex_get_sgl() 3003 sgl[cnt].dmac_size = 0; in rootnex_get_sgl() 3004 sgl[cnt].dmac_type = 0; in rootnex_get_sgl() [all …]
|
/titanic_50/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | ib_send.c | 496 ibt_wr_ds_t *sgl; in rdsv3_ib_xmit_populate_wr() local 500 sgl = scat->sgl; in rdsv3_ib_xmit_populate_wr() 503 while (sgl->ds_len <= off) { in rdsv3_ib_xmit_populate_wr() 504 off -= sgl->ds_len; in rdsv3_ib_xmit_populate_wr() 505 sgl++; in rdsv3_ib_xmit_populate_wr() 514 sge->ds_va = sgl->ds_va + off; in rdsv3_ib_xmit_populate_wr() 515 assigned = min(len, sgl->ds_len - off); in rdsv3_ib_xmit_populate_wr() 517 sge->ds_key = sgl->ds_key; in rdsv3_ib_xmit_populate_wr() 520 sgl++; in rdsv3_ib_xmit_populate_wr()
|
H A D | rdsv3_impl.c | 1173 ibt_wr_ds_t *sgl; in rdsv3_ib_dma_map_sg() local 1184 sgl = kmem_zalloc((num * 2) * sizeof (ibt_wr_ds_t), KM_SLEEP); in rdsv3_ib_dma_map_sg() 1199 swr.wr_sgl = sgl; in rdsv3_ib_dma_map_sg() 1211 for (i = 0; i < num; i++, s++, sgl++) { in rdsv3_ib_dma_map_sg() 1212 s->sgl = sgl; in rdsv3_ib_dma_map_sg() 1225 ASSERT(scat->sgl != NULL); in rdsv3_ib_dma_unmap_sg() 1229 kmem_free(scat->sgl, (num * 2) * sizeof (ibt_wr_ds_t)); in rdsv3_ib_dma_unmap_sg() 1230 scat->sgl = NULL; in rdsv3_ib_dma_unmap_sg()
|
/titanic_50/usr/src/uts/common/io/mr_sas/ |
H A D | mr_sas.c | 3314 ddi_put32(cmd->frame_dma_obj.acc_handle, &dcmd->sgl.sge32[0].phys_addr, in get_ctrl_info() 3316 ddi_put32(cmd->frame_dma_obj.acc_handle, &dcmd->sgl.sge32[0].length, in get_ctrl_info() 4027 ddi_put32(cmd->frame_dma_obj.acc_handle, &dcmd->sgl.sge32[0].length, in get_seq_num() 4029 ddi_put32(cmd->frame_dma_obj.acc_handle, &dcmd->sgl.sge32[0].phys_addr, in get_seq_num() 5189 (struct mrsas_sge_ieee *)&ldio->sgl; in build_cmd() 5191 mfi_sgl = (struct mrsas_sge64 *)&ldio->sgl; in build_cmd() 5298 mfi_sgl_ieee = (struct mrsas_sge_ieee *)&pthru->sgl; in build_cmd() 5300 mfi_sgl = (struct mrsas_sge64 *)&pthru->sgl; in build_cmd() 5405 xferlen = kpthru->sgl.sge32[0].length; in issue_mfi_pthru() 5407 ubuf = (void *)(ulong_t)kpthru->sgl.sge32[0].phys_addr; in issue_mfi_pthru() [all …]
|
H A D | mr_sas.h | 811 Mpi2SGEIOUnion_t *sgl; member 1399 union mrsas_sgl sgl; /* 28h */ member 1426 union mrsas_sgl sgl; /* 30h */ member 1454 union mrsas_sgl sgl; /* 28h */ member 1504 union mrsas_sgl sgl[2]; /* 28h */ member 1529 union mrsas_sgl sgl; /* 40 */ member
|
/titanic_50/usr/src/uts/i86pc/io/xsvc/ |
H A D | xsvc.c | 465 xsvc_mloc sgl; in xsvc_ioctl_alloc_memory() local 575 sgl.mloc_addr = mp->xm_cookie.dmac_laddress; in xsvc_ioctl_alloc_memory() 576 sgl.mloc_size = mp->xm_cookie.dmac_size; in xsvc_ioctl_alloc_memory() 577 err = ddi_copyout(&sgl, &usgl[i], sizeof (xsvc_mloc), in xsvc_ioctl_alloc_memory() 598 sgl.mloc_addr = 0; in xsvc_ioctl_alloc_memory() 599 sgl.mloc_size = 0; in xsvc_ioctl_alloc_memory() 600 err = ddi_copyout(&sgl, &usgl[i], sizeof (xsvc_mloc), mode); in xsvc_ioctl_alloc_memory()
|
/titanic_50/usr/src/uts/common/rpc/ |
H A D | rpcib.c | 2314 ibt_wr_ds_t sgl[DSEG_MAX]; in rib_send_and_wait() local 2332 sgl[nds].ds_va = clp->w.c_saddr; in rib_send_and_wait() 2333 sgl[nds].ds_key = clp->c_smemhandle.mrc_lmr; /* lkey */ in rib_send_and_wait() 2334 sgl[nds].ds_len = clp->c_len; in rib_send_and_wait() 2349 wdesc->sbufaddr[i] = sgl[i].ds_va; in rib_send_and_wait() 2360 tx_wr.wr_sgl = sgl; in rib_send_and_wait() 2456 rib_create_wid(rib_qp_t *qp, ibt_wr_ds_t *sgl, uint32_t msgid) in rib_create_wid() argument 2462 rwid->addr = sgl->ds_va; in rib_create_wid() 2482 ibt_wr_ds_t sgl[DSEG_MAX]; in rib_clnt_post() local 2497 sgl[nds].ds_va = cl->w.c_saddr; in rib_clnt_post() [all …]
|
/titanic_50/usr/src/lib/libilb/common/ |
H A D | ilb_sg.c | 278 ilbd_namelist_t *sgl; in i_walk_sgs() local 291 sgl = (ilbd_namelist_t *)&rbuf->ic_data; in i_walk_sgs() 293 for (i = 0; i < sgl->ilbl_count; i++) { in i_walk_sgs() 294 rc = i_ilb_walk_one_sg(h, f, sgl->ilbl_name[i], arg, walktype); in i_walk_sgs()
|
/titanic_50/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor_wr.c | 952 ibt_wr_ds_t *sgl; in tavor_wqe_send_build() local 965 sgl = wr->wr_sgl; in tavor_wqe_send_build() 1119 sgl = wr->wr_sgl; in tavor_wqe_send_build() 1278 if (sgl[i].ds_len == 0) { in tavor_wqe_send_build() 1287 TAVOR_WQE_BUILD_DATA_SEG(qp, &ds[num_ds], &sgl[i]); in tavor_wqe_send_build() 1443 ibt_wr_ds_t *sgl; in tavor_wqe_mlx_build() local 1580 sgl = wr->wr_sgl; in tavor_wqe_mlx_build() 1607 if (sgl[i].ds_len == 0) { in tavor_wqe_mlx_build() 1616 TAVOR_WQE_BUILD_DATA_SEG(qp, &ds[num_ds], &sgl[i]); in tavor_wqe_mlx_build() 1628 offset, sgl[i].ds_va, sgl[i].ds_len); in tavor_wqe_mlx_build() [all …]
|
H A D | tavor_ci.c | 3101 ibt_wr_ds_t *sgl; in tavor_ci_map_mem_iov() local 3145 sgl = wr->send.wr_sgl; in tavor_ci_map_mem_iov() 3146 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*sgl)) in tavor_ci_map_mem_iov() 3168 sgl[nds].ds_va = dmacookie.dmac_laddress; in tavor_ci_map_mem_iov() 3169 sgl[nds].ds_key = rsvd_lkey; in tavor_ci_map_mem_iov() 3170 sgl[nds].ds_len = (ib_msglen_t)dmacookie.dmac_size; in tavor_ci_map_mem_iov() 3183 sgl = wr->recv.wr_sgl; in tavor_ci_map_mem_iov() 3185 sgl = wr->send.wr_sgl; in tavor_ci_map_mem_iov() 3186 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*sgl)) in tavor_ci_map_mem_iov() 3221 sgl[nds].ds_va = dmacookie.dmac_laddress; in tavor_ci_map_mem_iov() [all …]
|
/titanic_50/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_mbx.c | 794 mbx.payload.u0.u1.sgl[0].pa_lo = ADDR_LO(DBUF_PA(dev->stats_dbuf)); in oce_get_hw_stats() 795 mbx.payload.u0.u1.sgl[0].pa_hi = ADDR_HI(DBUF_PA(dev->stats_dbuf)); in oce_get_hw_stats() 796 mbx.payload.u0.u1.sgl[0].length = sizeof (struct mbx_get_nic_stats); in oce_get_hw_stats() 1345 mbx.payload.u0.u1.sgl[num_buf].pa_lo = in oce_issue_mbox() 1347 mbx.payload.u0.u1.sgl[num_buf].pa_hi = in oce_issue_mbox() 1349 mbx.payload.u0.u1.sgl[num_buf].length = in oce_issue_mbox() 1352 mbx.payload.u0.u1.sgl[num_buf].length; in oce_issue_mbox()
|
/titanic_50/usr/src/uts/common/io/ib/clients/eoib/ |
H A D | eib_rsrc.c | 127 eib_rsrc_grab_lsobufs(eib_t *ss, uint_t req_sz, ibt_wr_ds_t *sgl, uint32_t *nds) in eib_rsrc_grab_lsobufs() argument 137 ASSERT(sgl != NULL); in eib_rsrc_grab_lsobufs() 169 sgl[i].ds_va = (ib_vaddr_t)(uintptr_t)elem->lb_buf; in eib_rsrc_grab_lsobufs() 170 sgl[i].ds_key = bkt->bk_lkey; in eib_rsrc_grab_lsobufs() 171 sgl[i].ds_len = EIB_LSO_BUFSZ; in eib_rsrc_grab_lsobufs() 186 sgl[i-1].ds_len = frag_sz; in eib_rsrc_grab_lsobufs()
|
/titanic_50/usr/src/psm/stand/bootblks/ufs/common/ |
H A D | ufs.fth | 131 : #sgl-addr #blk-addr/blk ; 132 : #dbl-addr #sgl-addr #blk-addr/blk * ; 136 : >2-idx ( blk# -- idx ) #sgl-addr / >1-idx ; 180 dup #sgl-addr < if 187 #sgl-addr - ( lblk#' )
|
/titanic_50/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/ |
H A D | lm_recv.c | 392 ASSERT_STATIC(LM_TPA_MAX_AGG_SIZE == ARRSIZE(cqe->sgl_or_raw_data.sgl)); in lm_tpa_stop() 393 DbgBreakIf(ARRSIZE(cqe->sgl_or_raw_data.sgl) < sge_num_elem); in lm_tpa_stop() 407 DbgBreakIf(ARRSIZE(cqe->sgl_or_raw_data.sgl) <= fw_sge_index); in lm_tpa_stop() 408 …_BD_ENTRY_TO_ACTIVE_ENTRY(pdev, chain_idx, mm_le16_to_cpu(cqe->sgl_or_raw_data.sgl[fw_sge_index])); in lm_tpa_stop() 435 mm_le16_to_cpu(cqe->sgl_or_raw_data.sgl[sge_num_elem -1])); in lm_tpa_stop()
|
/titanic_50/usr/src/uts/common/sys/ib/adapters/tavor/ |
H A D | tavor_hw.h | 2461 #define TAVOR_WQE_BUILD_DATA_SEG(qp, ds, sgl) \ argument 2467 (((uint64_t)((sgl)->ds_len & \ 2468 TAVOR_WQE_SGL_BYTE_CNT_MASK) << 32) | (sgl)->ds_key)); \ 2469 ddi_put64((qp)->qp_wqinfo.qa_acchdl, &tmp[1], (sgl)->ds_va); \ 2472 #define TAVOR_WQE_BUILD_DATA_SEG_SRQ(srq, ds, sgl) \ argument 2478 (((uint64_t)((sgl)->ds_len & \ 2479 TAVOR_WQE_SGL_BYTE_CNT_MASK) << 32) | (sgl)->ds_key)); \ 2480 ddi_put64((srq)->srq_wqinfo.qa_acchdl, &tmp[1], (sgl)->ds_va); \
|
/titanic_50/usr/src/uts/common/io/ib/mgt/ibmf/ |
H A D | ibmf_recv.c | 1456 ibt_wr_ds_t sgl[1]; in ibmf_send_busy() local 1598 sgl[0].ds_va = (ib_vaddr_t)(uintptr_t)send_wqep->send_mem; in ibmf_send_busy() 1599 sgl[0].ds_key = send_wqep->send_sg_lkey; in ibmf_send_busy() 1600 sgl[0].ds_len = IBMF_MAD_SIZE; in ibmf_send_busy() 1653 swrp->wr_sgl = sgl; in ibmf_send_busy()
|