/illumos-gate/usr/src/lib/libmlrpc/common/ |
H A D | ndr_ops.c | 124 nds_initialize(ndr_stream_t *nds, unsigned pdu_size_hint, in nds_initialize() argument 129 assert(nds); in nds_initialize() 132 bzero(nds, sizeof (*nds)); in nds_initialize() 133 nds->ndo = &nds_ops; in nds_initialize() 134 nds->heap = (struct ndr_heap *)heap; in nds_initialize() 137 nds->error = NDR_ERR_BOUNDS_CHECK; in nds_initialize() 138 nds->error_ref = __LINE__; in nds_initialize() 139 NDS_TATTLE_ERROR(nds, NULL, NULL); in nds_initialize() 145 if ((nds->pdu_base_addr = malloc(size)) == NULL) { in nds_initialize() 146 nds->error = NDR_ERR_MALLOC_FAILED; in nds_initialize() [all …]
|
H A D | ndr_marshal.c | 72 ndr_convert_nds_error(ndr_stream_t *nds) in ndr_convert_nds_error() argument 76 switch (nds->error) { in ndr_convert_nds_error() 94 if (nds->m_op == NDR_M_OP_MARSHALL) in ndr_convert_nds_error() 105 ndr_encode_decode_common(ndr_stream_t *nds, unsigned opnum, in ndr_encode_decode_common() argument 111 if (ndo_operation(nds, ti, opnum, datum)) in ndr_encode_decode_common() 114 return (ndr_convert_nds_error(nds)); in ndr_encode_decode_common() 118 ndr_encode_decode_type(ndr_stream_t *nds, ndr_typeinfo_t *ti, void *datum) in ndr_encode_decode_type() argument 123 if (ndo_process(nds, ti, datum)) in ndr_encode_decode_type() 126 return (ndr_convert_nds_error(nds)); in ndr_encode_decode_type() 232 ndr_stream_t *nds = &mxa->recv_nds; in ndr_decode_call() local [all …]
|
H A D | ndr_process.c | 243 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 D | ndr_server.c | 141 ndr_stream_t *nds = &mxa->recv_nds; in ndr_recv_request() local 156 nds->pdu_scan_offset = 0; in ndr_recv_request() 162 saved_size = nds->pdu_size; in ndr_recv_request() 164 nds->pdu_size = saved_size; in ndr_recv_request() 190 ndr_stream_t *nds = &mxa->recv_nds; in ndr_recv_frag() local 197 next_offset = nds->pdu_scan_offset + NDR_RSP_HDR_SIZE; in ndr_recv_frag() 198 if (!NDS_GROW_PDU(nds, next_offset, 0)) in ndr_recv_frag() 202 data = nds->pdu_base_addr + nds->pdu_scan_offset; in ndr_recv_frag() 211 ndr_decode_frag_hdr(nds, hdr); in ndr_recv_frag() 217 if (nds->pdu_scan_offset == 0) { in ndr_recv_frag() [all …]
|
H A D | ndr_auth.c | 28 ndr_stream_t *nds = &mxa->send_nds; in ndr_add_auth_token() local 39 secp->auth_pad_len = P2ROUNDUP(nds->pdu_scan_offset, 16) - in ndr_add_auth_token() 40 nds->pdu_scan_offset; in ndr_add_auth_token() 41 if (NDS_PAD_PDU(nds, nds->pdu_scan_offset, in ndr_add_auth_token() 46 nds->pdu_scan_offset += secp->auth_pad_len; in ndr_add_auth_token() 47 nds->pdu_body_size = nds->pdu_scan_offset - in ndr_add_auth_token() 48 nds->pdu_body_offset; in ndr_add_auth_token()
|
H A D | ndr_client.c | 352 ndr_stream_t *nds = &mxa->recv_nds; in ndr_clnt_get_frags() local 360 nds_show_state(nds); in ndr_clnt_get_frags() 370 if (frag_size > (nds->pdu_size - nds->pdu_scan_offset)) { in ndr_clnt_get_frags() 371 nds_show_state(nds); in ndr_clnt_get_frags() 376 (hdr.frag_length - nds->pdu_hdr_size - SEC_TRAILER_SIZE)) in ndr_clnt_get_frags() 391 ndr_remove_frag_hdr(nds); in ndr_clnt_get_frags() 392 nds->pdu_scan_offset += in ndr_clnt_get_frags() 393 nds->pdu_body_size - mxa->recv_auth.auth_pad_len; in ndr_clnt_get_frags() 407 ndr_stream_t *nds = &mxa->recv_nds; in ndr_clnt_get_frag() local 411 available = nds->pdu_size - nds->pdu_scan_offset; in ndr_clnt_get_frag() [all …]
|
H A D | mlrpc_clh.c | 531 ndr_stream_t *nds = &mxa->recv_nds; in ndr_xa_read() local 535 if ((len = (nds->pdu_max_size - nds->pdu_size)) < 0) in ndr_xa_read() 539 (char *)nds->pdu_base_offset + nds->pdu_size); in ndr_xa_read() 544 nds->pdu_size += nbytes; in ndr_xa_read() 546 if (nds->pdu_size > nds->pdu_max_size) { in ndr_xa_read() 547 nds->pdu_size = nds->pdu_max_size; in ndr_xa_read()
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | netr_ssp.c | 114 netr_show_msg(nl_auth_message_t *nam, ndr_stream_t *nds) in netr_show_msg() argument 116 ndo_printf(nds, NULL, "nl_auth_message: type=0x%x flags=0x%x"); in netr_show_msg() 120 netr_show_sig(nl_auth_sig_t *nas, ndr_stream_t *nds) in netr_show_sig() argument 122 ndo_printf(nds, NULL, "nl_auth_sig: SignatureAlg=0x%x SealAlg=0x%x " in netr_show_sig() 294 netr_ssp_make_token(netr_info_t *auth, ndr_stream_t *nds, nl_auth_sig_t *nas, in netr_ssp_make_token() argument 301 uchar_t *pdu_body = nds->pdu_base_addr + nds->pdu_body_offset; in netr_ssp_make_token() 353 MD5Update(&md5h, pdu_body, nds->pdu_body_size); in netr_ssp_make_token() 393 if (smb_auth_RC4(pdu_body, nds->pdu_body_size, in netr_ssp_make_token() 395 pdu_body, nds->pdu_body_size) != 0) in netr_ssp_make_token() 431 netr_ssp_check_token(netr_info_t *auth, ndr_stream_t *nds, nl_auth_sig_t *nas, in netr_ssp_check_token() argument [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon_wr.c | 90 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 D | hermon_ci.c | 2433 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 …]
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/tavor/ |
H A D | dapl_tavor_hw.c | 121 #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 D | dapl_arbel_hw.c | 151 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 D | dapl_hermon_hw.c | 183 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 D | dapl_tavor_hw.h | 257 uint32_t nds :6; member 267 uint32_t nds :6; member 357 uint32_t nds :6; member 427 uint32_t nds :6; member
|
/illumos-gate/usr/src/uts/common/io/nvme/ |
H A D | nvme_stat.c | 36 nvme_device_stat_t *nds = &nvme->n_device_stat; in nvme_stat_device_init() local 45 ksp->ks_data = nds; in nvme_stat_device_init() 48 kstat_named_init(&nds->nds_ ## stat, #stat, KSTAT_DATA_UINT64) in nvme_stat_device_init()
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor_ci.c | 2561 int i, j, nds, max_nds; in tavor_ci_map_mem_iov() local 2597 nds = 0; in tavor_ci_map_mem_iov() 2632 if (nds > max_nds) { in tavor_ci_map_mem_iov() 2637 sgl[nds].ds_va = dmacookie.dmac_laddress; in tavor_ci_map_mem_iov() 2638 sgl[nds].ds_key = rsvd_lkey; in tavor_ci_map_mem_iov() 2639 sgl[nds].ds_len = (ib_msglen_t)dmacookie.dmac_size; in tavor_ci_map_mem_iov() 2640 nds++; in tavor_ci_map_mem_iov() 2644 wr->send.wr_nds = nds; in tavor_ci_map_mem_iov() 2685 if (nds + cookie_cnt > max_nds) { in tavor_ci_map_mem_iov() 2690 sgl[nds].ds_va = dmacookie.dmac_laddress; in tavor_ci_map_mem_iov() [all …]
|
H A D | tavor_wr.c | 46 uint32_t nds, uint32_t qpn, uint32_t fence, uint32_t nopcode); 49 uint32_t nds, uint32_t qpn, uint32_t credits); 850 tavor_qp_send_doorbell(tavor_state_t *state, uint32_t nda, uint32_t nds, in tavor_qp_send_doorbell() argument 860 ((uint64_t)qpn << TAVOR_QPSNDDB_QPN_SHIFT) | nds; in tavor_qp_send_doorbell() 873 tavor_qp_recv_doorbell(tavor_state_t *state, uint32_t nda, uint32_t nds, in tavor_qp_recv_doorbell() argument 881 ((uint64_t)nds << TAVOR_QPRCVDB_NDS_SHIFT) | in tavor_qp_recv_doorbell() 906 uint32_t nds; in tavor_wqe_send_build() local 914 nds = wr->wr_nds; in tavor_wqe_send_build() 1052 nds = 1; in tavor_wqe_send_build() 1087 nds = 0; in tavor_wqe_send_build() [all …]
|
/illumos-gate/usr/src/lib/libadutils/common/ |
H A D | srv_query.c | 512 add_preferred(ad_disc_cds_t *cds, ad_disc_ds_t *prefer, int *nds, int maxds) in add_preferred() argument 517 assert(*nds < maxds); in add_preferred() 518 for (i = 0; i < *nds; i++) { in add_preferred() 538 *nds = i + 1; in add_preferred()
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | rpcib.c | 2313 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 …]
|
/illumos-gate/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 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()
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_ds.c | 143 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()
|
/illumos-gate/usr/src/uts/common/sys/ib/adapters/tavor/ |
H A D | tavor_hw.h | 2083 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
|
/illumos-gate/usr/src/uts/common/io/arn/ |
H A D | arn_ath9k.h | 1075 uint32_t pa, struct ath_desc *nds, uint64_t tsf);
|
H A D | arn_mac.c | 950 struct ath_desc *nds, in ath9k_hw_rxprocdesc() argument
|
/illumos-gate/usr/src/uts/common/io/ib/clients/ibd/ |
H A D | ibd.c | 3783 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()
|