Home
last modified time | relevance | path

Searched refs:nds (Results 1 – 22 of 22) sorted by relevance

/titanic_41/usr/src/lib/smbsrv/libmlrpc/common/
H A Dndr_ops.c125 nds_initialize(ndr_stream_t *nds, unsigned pdu_size_hint, in nds_initialize() argument
130 assert(nds); in nds_initialize()
133 bzero(nds, sizeof (*nds)); in nds_initialize()
134 nds->ndo = &nds_ops; in nds_initialize()
135 nds->heap = (struct ndr_heap *)heap; in nds_initialize()
138 nds->error = NDR_ERR_BOUNDS_CHECK; in nds_initialize()
139 nds->error_ref = __LINE__; in nds_initialize()
140 NDS_TATTLE_ERROR(nds, NULL, NULL); in nds_initialize()
146 if ((nds->pdu_base_addr = malloc(size)) == NULL) { in nds_initialize()
147 nds->error = NDR_ERR_MALLOC_FAILED; in nds_initialize()
[all …]
H A Dndr_process.c243 ndo_process(ndr_stream_t *nds, ndr_typeinfo_t *ti, char *datum) in ndo_process() argument
248 myref.stream = nds; in ndo_process()
257 ndo_operation(ndr_stream_t *nds, ndr_typeinfo_t *ti, int opnum, char *datum) in ndo_operation() argument
262 myref.stream = nds; in ndo_operation()
291 ndr_stream_t *nds; in ndr_topmost() local
305 nds = top_ref->stream; in ndr_topmost()
311 assert(nds->outer_queue_tailp && !*nds->outer_queue_tailp); in ndr_topmost()
312 assert(!nds->outer_current); in ndr_topmost()
378 outer_ref->pdu_offset = nds->pdu_scan_offset; in ndr_topmost()
387 nds->outer_current = outer_ref; in ndr_topmost()
[all …]
H A Dndr_marshal.c42 ndr_encode_decode_common(ndr_stream_t *nds, unsigned opnum, in ndr_encode_decode_common() argument
50 if (ndo_operation(nds, ti, opnum, datum)) in ndr_encode_decode_common()
53 switch (nds->error) { in ndr_encode_decode_common()
71 if (nds->m_op == NDR_M_OP_MARSHALL) in ndr_encode_decode_common()
183 ndr_stream_t *nds = &mxa->recv_nds; in ndr_decode_call() local
186 if (!NDR_MODE_MATCH(nds, NDR_MODE_CALL_RECV)) in ndr_decode_call()
189 rc = ndr_encode_decode_common(nds, mxa->opnum, in ndr_decode_call()
201 ndr_stream_t *nds = &mxa->send_nds; in ndr_encode_return() local
204 if (!NDR_MODE_MATCH(nds, NDR_MODE_RETURN_SEND)) in ndr_encode_return()
207 rc = ndr_encode_decode_common(nds, mxa->opnum, in ndr_encode_return()
[all …]
H A Dndr_server.c178 ndr_stream_t *nds = &mxa->recv_nds; in ndr_recv_request() local
193 nds->pdu_scan_offset = 0; in ndr_recv_request()
199 saved_size = nds->pdu_size; in ndr_recv_request()
201 nds->pdu_size = saved_size; in ndr_recv_request()
227 ndr_stream_t *nds = &mxa->recv_nds; in ndr_recv_frag() local
234 next_offset = nds->pdu_scan_offset + NDR_RSP_HDR_SIZE; in ndr_recv_frag()
235 if (!NDS_GROW_PDU(nds, next_offset, 0)) in ndr_recv_frag()
239 data = nds->pdu_base_addr + nds->pdu_scan_offset; in ndr_recv_frag()
248 ndr_decode_frag_hdr(nds, hdr); in ndr_recv_frag()
254 if (nds->pdu_scan_offset == 0) { in ndr_recv_frag()
[all …]
H A Dndr_client.c277 ndr_stream_t *nds = &mxa->recv_nds; in ndr_clnt_get_frags() local
284 nds_show_state(nds); in ndr_clnt_get_frags()
291 if (frag_size > (nds->pdu_size - nds->pdu_scan_offset)) { in ndr_clnt_get_frags()
292 nds_show_state(nds); in ndr_clnt_get_frags()
296 ndr_remove_frag_hdr(nds); in ndr_clnt_get_frags()
297 nds->pdu_scan_offset += frag_size - NDR_RSP_HDR_SIZE; in ndr_clnt_get_frags()
311 ndr_stream_t *nds = &mxa->recv_nds; in ndr_clnt_get_frag() local
315 available = nds->pdu_size - nds->pdu_scan_offset; in ndr_clnt_get_frag()
323 ndr_decode_frag_hdr(nds, hdr); in ndr_clnt_get_frag()
/titanic_41/usr/src/lib/smbsrv/libmlsvc/common/
H A Dmlsvc_client.c496 ndr_stream_t *nds = &mxa->recv_nds; in ndr_xa_read() local
500 if ((len = (nds->pdu_max_size - nds->pdu_size)) < 0) in ndr_xa_read()
504 (char *)nds->pdu_base_offset + nds->pdu_size); in ndr_xa_read()
509 nds->pdu_size += nbytes; in ndr_xa_read()
511 if (nds->pdu_size > nds->pdu_max_size) { in ndr_xa_read()
512 nds->pdu_size = nds->pdu_max_size; in ndr_xa_read()
/titanic_41/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_wr.c90 int nds; in hermon_post_send_ud() local
136 nds = wr->wr_nds; in hermon_post_send_ud()
171 if ((uintptr_t)ds + total_len + (nds * 16) > in hermon_post_send_ud()
272 nds = 0; in hermon_post_send_ud()
297 nds = 0; in hermon_post_send_ud()
307 if (nds > qp->qp_sq_sgl) { in hermon_post_send_ud()
311 for (last_ds = num_ds, j = i; j < nds; j++) { in hermon_post_send_ud()
316 for (j = nds; --j >= i; ) { in hermon_post_send_ud()
444 int nds; in hermon_post_send_rc() local
495 nds = wr->wr_nds; in hermon_post_send_rc()
[all …]
H A Dhermon_ci.c2433 int i, j, nds, max_nds; in hermon_ci_map_mem_iov() local
2459 nds = 0; in hermon_ci_map_mem_iov()
2496 if (nds > max_nds) { 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()
2507 nds++; in hermon_ci_map_mem_iov()
2511 wr->send.wr_nds = nds; in hermon_ci_map_mem_iov()
2552 if (nds + cookie_cnt > max_nds) { in hermon_ci_map_mem_iov()
2557 sgl[nds].ds_va = dmacookie.dmac_laddress; in hermon_ci_map_mem_iov()
[all …]
/titanic_41/usr/src/lib/udapl/udapl_tavor/tavor/
H A Ddapl_tavor_hw.c121 #define dapli_tavor_qp_send_doorbell(ia_uar, nda, nds, qpn, fence, nopcode) \ argument
127 ((uint64_t)qpn << TAVOR_QPSNDDB_QPN_SHIFT) | nds)
137 uint32_t nds, uint32_t qpn, uint32_t fence, uint32_t nopcode) in dapli_tavor_qp_send_doorbell() argument
146 ((uint64_t)qpn << TAVOR_QPSNDDB_QPN_SHIFT) | nds; in dapli_tavor_qp_send_doorbell()
174 #define dapli_tavor_qp_recv_doorbell(ia_uar, nda, nds, qpn, credits) \ argument
178 ((uint64_t)nds << TAVOR_QPRCVDB_NDS_SHIFT) | \
189 uint32_t nds, uint32_t qpn, uint32_t credits) in dapli_tavor_qp_recv_doorbell() argument
196 ((uint64_t)nds << TAVOR_QPRCVDB_NDS_SHIFT) | in dapli_tavor_qp_recv_doorbell()
299 uint32_t nds; in dapli_tavor_wqe_send_build() local
307 nds = wr->wr_nds; in dapli_tavor_wqe_send_build()
[all …]
H A Ddapl_arbel_hw.c151 uint32_t nopcode, uint16_t wqe_counter, uint32_t nds) in dapli_arbel_sq_dbreg() argument
159 (qpn << ARBEL_QPSNDDB_QPN_SHIFT) | nds; in dapli_arbel_sq_dbreg()
195 uint32_t nds; in dapli_arbel_wqe_send_build() local
203 nds = wr->wr_nds; in dapli_arbel_wqe_send_build()
290 nds = 0; in dapli_arbel_wqe_send_build()
304 if (nds > qp->qp_sq_sgl) { in dapli_arbel_wqe_send_build()
319 for (i = 0; i < nds; i++) in dapli_arbel_wqe_send_build()
328 for (i = 0; i < nds; i++) { in dapli_arbel_wqe_send_build()
339 for (i = 0; i < nds; i++) { in dapli_arbel_wqe_send_build()
1531 uint32_t numwqe, uint32_t nds) in dapli_arbel_rq_prelink() argument
[all …]
H A Ddapl_hermon_hw.c183 uint32_t nds; in dapli_hermon_wqe_send_build() local
193 nds = wr->wr_nds; in dapli_hermon_wqe_send_build()
284 nds = 0; in dapli_hermon_wqe_send_build()
299 if (nds > qp->qp_sq_sgl) { in dapli_hermon_wqe_send_build()
314 for (i = 0; i < nds; i++) in dapli_hermon_wqe_send_build()
357 while (++i < nds) in dapli_hermon_wqe_send_build()
360 if (i >= nds) in dapli_hermon_wqe_send_build()
365 } while (i < nds); in dapli_hermon_wqe_send_build()
377 for (i = 0; i < nds; i++) { in dapli_hermon_wqe_send_build()
1580 uint32_t numwqe, uint32_t nds) in dapli_hermon_rq_prelink() argument
[all …]
H A Ddapl_tavor_hw.h257 uint32_t nds :6; member
267 uint32_t nds :6; member
357 uint32_t nds :6; member
427 uint32_t nds :6; member
/titanic_41/usr/src/lib/libbc/libc/sys/common/
H A Dgetdtablesize.c41 int nds; in getdtablesize() local
/titanic_41/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_wr.c46 uint32_t nds, uint32_t qpn, uint32_t fence, uint32_t nopcode);
49 uint32_t nds, uint32_t qpn, uint32_t credits);
892 tavor_qp_send_doorbell(tavor_state_t *state, uint32_t nda, uint32_t nds, in tavor_qp_send_doorbell() argument
902 ((uint64_t)qpn << TAVOR_QPSNDDB_QPN_SHIFT) | nds; in tavor_qp_send_doorbell()
918 tavor_qp_recv_doorbell(tavor_state_t *state, uint32_t nda, uint32_t nds, in tavor_qp_recv_doorbell() argument
926 ((uint64_t)nds << TAVOR_QPRCVDB_NDS_SHIFT) | in tavor_qp_recv_doorbell()
954 uint32_t nds; in tavor_wqe_send_build() local
964 nds = wr->wr_nds; in tavor_wqe_send_build()
1118 nds = 1; in tavor_wqe_send_build()
1156 nds = 0; in tavor_wqe_send_build()
[all …]
H A Dtavor_ci.c3092 int i, j, nds, max_nds; in tavor_ci_map_mem_iov() local
3128 nds = 0; in tavor_ci_map_mem_iov()
3163 if (nds > max_nds) { 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()
3171 nds++; in tavor_ci_map_mem_iov()
3175 wr->send.wr_nds = nds; in tavor_ci_map_mem_iov()
3216 if (nds + cookie_cnt > max_nds) { in tavor_ci_map_mem_iov()
3221 sgl[nds].ds_va = dmacookie.dmac_laddress; in tavor_ci_map_mem_iov()
[all …]
/titanic_41/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_rsrc.c127 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
138 ASSERT(nds != NULL); in eib_rsrc_grab_lsobufs()
196 *nds = num_needed; in eib_rsrc_grab_lsobufs()
276 eib_rsrc_return_lsobufs(eib_t *ss, ibt_wr_ds_t *sgl_p, uint32_t nds) in eib_rsrc_return_lsobufs() argument
292 for (i = 0; i < nds; i++) { in eib_rsrc_return_lsobufs()
312 bkt->bk_nfree += nds; in eib_rsrc_return_lsobufs()
318 if (((bkt->bk_nfree - nds) < EIB_LSO_FREE_BUFS_THRESH) && in eib_rsrc_return_lsobufs()
/titanic_41/usr/src/uts/common/rpc/
H A Drpcib.c2313 int i, nds; in rib_send_and_wait() local
2324 nds = 0; in rib_send_and_wait()
2328 if (nds >= DSEG_MAX) { in rib_send_and_wait()
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()
2337 nds++; in rib_send_and_wait()
2347 wdesc->nsbufs = nds; in rib_send_and_wait()
2348 for (i = 0; i < nds; i++) { in rib_send_and_wait()
2359 tx_wr.wr_nds = nds; in rib_send_and_wait()
[all …]
/titanic_41/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_ds.c143 uint8_t pds, nds; in pmcs_set_dev_state() local
208 nds = (uint8_t)(LE_32(msg[4]) & 0x0000000f); in pmcs_set_dev_state()
210 "%s: previous_ds=0x%x, new_ds=0x%x", __func__, pds, nds); in pmcs_set_dev_state()
212 xp->dev_state = nds; in pmcs_set_dev_state()
/titanic_41/usr/src/uts/common/sys/ib/adapters/tavor/
H A Dtavor_hw.h2083 uint32_t nds :6; member
2093 uint32_t nds :6; member
2180 uint32_t nds :6; member
2268 uint32_t nds :6; member
2307 uint32_t nds :6; member
/titanic_41/usr/src/uts/common/io/arn/
H A Darn_ath9k.h1075 uint32_t pa, struct ath_desc *nds, uint64_t tsf);
H A Darn_mac.c950 struct ath_desc *nds, in ath9k_hw_rxprocdesc() argument
/titanic_41/usr/src/uts/common/io/ib/clients/ibd/
H A Dibd.c3783 ibd_release_lsobufs(ibd_state_t *state, ibt_wr_ds_t *sgl_p, uint32_t nds) in ibd_release_lsobufs() argument
3797 for (i = 0; i < nds; i++) { in ibd_release_lsobufs()
3817 bktp->bkt_nfree += nds; in ibd_release_lsobufs()