Home
last modified time | relevance | path

Searched refs:seglen (Results 1 – 25 of 27) sorted by relevance

12

/freebsd/sys/crypto/armv8/
H A Darmv8_crypto_wrap.c106 size_t fromseglen, oseglen, seglen, toseglen; in armv8_aes_encrypt_cbc() local
112 for (; len > 0; len -= seglen) { in armv8_aes_encrypt_cbc()
116 seglen = ulmin(len, ulmin(fromseglen, toseglen)); in armv8_aes_encrypt_cbc()
117 if (seglen < AES_BLOCK_LEN) { in armv8_aes_encrypt_cbc()
125 seglen = AES_BLOCK_LEN; in armv8_aes_encrypt_cbc()
127 for (oseglen = seglen; seglen >= AES_BLOCK_LEN; in armv8_aes_encrypt_cbc()
128 seglen -= AES_BLOCK_LEN) { in armv8_aes_encrypt_cbc()
138 seglen = oseglen - seglen; in armv8_aes_encrypt_cbc()
139 crypto_cursor_advance(fromc, seglen); in armv8_aes_encrypt_cbc()
140 crypto_cursor_advance(toc, seglen); in armv8_aes_encrypt_cbc()
[all …]
/freebsd/sys/kern/
H A Dsubr_sglist.c114 size_t seglen; in _sglist_append_buf() local
129 seglen = MIN(len, PAGE_SIZE - offset); in _sglist_append_buf()
133 ss->ss_len = seglen; in _sglist_append_buf()
137 error = _sglist_append_range(sg, &ss, paddr, seglen); in _sglist_append_buf()
141 vaddr += seglen; in _sglist_append_buf()
142 len -= seglen; in _sglist_append_buf()
144 *donep += seglen; in _sglist_append_buf()
147 seglen = MIN(len, PAGE_SIZE); in _sglist_append_buf()
152 error = _sglist_append_range(sg, &ss, paddr, seglen); in _sglist_append_buf()
155 vaddr += seglen; in _sglist_append_buf()
[all …]
H A Dsubr_bus_dma.c157 int error, i, off, len, pglen, pgoff, seglen, segoff; in _bus_dmamap_load_mbuf_epg() local
171 seglen = m->m_epg_hdrlen - off; in _bus_dmamap_load_mbuf_epg()
173 seglen = min(seglen, len); in _bus_dmamap_load_mbuf_epg()
175 len -= seglen; in _bus_dmamap_load_mbuf_epg()
177 &m->m_epg_hdr[segoff], seglen, kernel_pmap, in _bus_dmamap_load_mbuf_epg()
189 seglen = pglen - off; in _bus_dmamap_load_mbuf_epg()
192 seglen = min(seglen, len); in _bus_dmamap_load_mbuf_epg()
193 len -= seglen; in _bus_dmamap_load_mbuf_epg()
195 m->m_epg_pa[i] + segoff, seglen, flags, segs, nsegs); in _bus_dmamap_load_mbuf_epg()
H A Dkern_mbuf.c945 int i, len, off, pglen, pgoff, seglen, segoff; in _mb_unmapped_to_ext() local
973 seglen = m->m_epg_hdrlen - off; in _mb_unmapped_to_ext()
975 seglen = min(seglen, len); in _mb_unmapped_to_ext()
977 len -= seglen; in _mb_unmapped_to_ext()
981 m_new->m_len = seglen; in _mb_unmapped_to_ext()
984 seglen); in _mb_unmapped_to_ext()
995 seglen = pglen - off; in _mb_unmapped_to_ext()
998 seglen = min(seglen, len); in _mb_unmapped_to_ext()
999 len -= seglen; in _mb_unmapped_to_ext()
1020 m_new->m_len = seglen; in _mb_unmapped_to_ext()
H A Duipc_mbuf.c2052 int error, i, off, pglen, pgoff, seglen, segoff; in m_unmapped_uiomove() local
2065 seglen = m->m_epg_hdrlen - off; in m_unmapped_uiomove()
2067 seglen = min(seglen, len); in m_unmapped_uiomove()
2069 len -= seglen; in m_unmapped_uiomove()
2071 &m->m_epg_hdr[segoff]), seglen, uio); in m_unmapped_uiomove()
2082 seglen = pglen - off; in m_unmapped_uiomove()
2085 seglen = min(seglen, len); in m_unmapped_uiomove()
2086 len -= seglen; in m_unmapped_uiomove()
2088 error = uiomove_fromphys(&pg, segoff, seglen, uio); in m_unmapped_uiomove()
/freebsd/sys/crypto/openssl/
H A Dossl_aes.c84 size_t plen, seglen, inlen, outlen; in ossl_aes_cbc() local
144 seglen = rounddown(MIN(plen, MIN(inlen, outlen)), blocklen); in ossl_aes_cbc()
146 AES_CBC_ENCRYPT(in, out, seglen, &key, iv, encrypt); in ossl_aes_cbc()
152 crypto_cursor_advance(&cc_out, seglen); in ossl_aes_cbc()
153 outseg += seglen; in ossl_aes_cbc()
154 outlen -= seglen; in ossl_aes_cbc()
159 crypto_cursor_advance(&cc_in, seglen); in ossl_aes_cbc()
160 inseg += seglen; in ossl_aes_cbc()
161 inlen -= seglen; in ossl_aes_cbc()
163 plen -= seglen; in ossl_aes_cbc()
[all …]
/freebsd/sys/dev/ice/
H A Dice_common_txrx.h65 int count, curseg, i, hlen, segsz, seglen, tsolen, hdrs, maxsegs; in ice_tso_detect_sparse() local
90 seglen = min(curseg, hlen); in ice_tso_detect_sparse()
91 curseg -= seglen; in ice_tso_detect_sparse()
92 hlen -= seglen; in ice_tso_detect_sparse()
124 seglen = min(curseg, segsz); in ice_tso_detect_sparse()
125 segsz -= seglen; in ice_tso_detect_sparse()
126 curseg -= seglen; in ice_tso_detect_sparse()
127 tsolen -= seglen; in ice_tso_detect_sparse()
H A Dice_iflib_txrx.c161 bus_size_t seglen;
164 seglen = segs[j].ds_len;
171 | ((u64)seglen << ICE_TXD_QW1_TX_BUF_SZ_S) in ice_ift_txd_flush()
174 txq->stats.tx_bytes += seglen; in ice_ift_txd_flush()
125 bus_size_t seglen; ice_ift_txd_encap() local
/freebsd/sys/dev/iavf/
H A Diavf_txrx_iflib.c132 int count, curseg, i, hlen, segsz, seglen, tsolen; in iavf_tso_detect_sparse() local
155 seglen = min(curseg, hlen); in iavf_tso_detect_sparse()
156 curseg -= seglen; in iavf_tso_detect_sparse()
157 hlen -= seglen; in iavf_tso_detect_sparse()
173 seglen = min(curseg, segsz); in iavf_tso_detect_sparse()
174 segsz -= seglen; in iavf_tso_detect_sparse()
175 curseg -= seglen; in iavf_tso_detect_sparse()
176 tsolen -= seglen; in iavf_tso_detect_sparse()
365 bus_size_t seglen; in iavf_isc_txd_encap() local
368 seglen = segs[j].ds_len; in iavf_isc_txd_encap()
[all …]
/freebsd/sys/dev/ixl/
H A Dixl_txrx.c158 int count, curseg, i, hlen, segsz, seglen, tsolen; in ixl_tso_detect_sparse() local
181 seglen = min(curseg, hlen); in ixl_tso_detect_sparse()
182 curseg -= seglen; in ixl_tso_detect_sparse()
183 hlen -= seglen; in ixl_tso_detect_sparse()
202 seglen = min(curseg, segsz); in ixl_tso_detect_sparse()
203 segsz -= seglen; in ixl_tso_detect_sparse()
204 curseg -= seglen; in ixl_tso_detect_sparse()
205 tsolen -= seglen; in ixl_tso_detect_sparse()
378 bus_size_t seglen; in ixl_isc_txd_encap() local
381 seglen = segs[j].ds_len; in ixl_isc_txd_encap()
[all …]
/freebsd/usr.sbin/bhyvectl/
H A Dbhyvectl.c180 size_t maplen, seglen; in show_memmap() local
193 error = vm_get_memseg(ctx, segid, &seglen, name, sizeof(name)); in show_memmap()
229 size_t seglen; in show_memseg() local
236 error = vm_get_memseg(ctx, segid, &seglen, name, sizeof(name)); in show_memseg()
240 if (seglen) { in show_memseg()
242 humanize_number(numbuf, sizeof(numbuf), seglen, "B", in show_memseg()
/freebsd/sys/cam/ctl/
H A Dctl_backend_block.c1410 int i, seglen; in ctl_be_block_cw_dispatch_ws() local
1459 seglen = MIN(CTLBLK_MAX_SEG, len_left); in ctl_be_block_cw_dispatch_ws()
1462 seglen - pbo) % pb; in ctl_be_block_cw_dispatch_ws()
1463 if (seglen > adj) in ctl_be_block_cw_dispatch_ws()
1464 seglen -= adj; in ctl_be_block_cw_dispatch_ws()
1466 seglen -= seglen % cbe_lun->blocksize; in ctl_be_block_cw_dispatch_ws()
1468 seglen -= seglen % cbe_lun->blocksize; in ctl_be_block_cw_dispatch_ws()
1469 ctl_alloc_seg(softc, &beio->sg_segs[i], seglen); in ctl_be_block_cw_dispatch_ws()
1475 len_left -= seglen; in ctl_be_block_cw_dispatch_ws()
1478 end = buf + seglen; in ctl_be_block_cw_dispatch_ws()
[all …]
/freebsd/sys/netsmb/
H A Dsmb_trantcp.c125 u_char seglen, *cp; in nb_put_name() local
132 seglen = (*cp) + 1; in nb_put_name()
133 error = mb_put_mem(mbp, cp, seglen, MB_MSYSTEM); in nb_put_name()
136 if (seglen == 1) in nb_put_name()
138 cp += seglen; in nb_put_name()
/freebsd/sys/dev/ixgbe/
H A Dix_txrx.c217 bus_size_t seglen; in ixgbe_isc_txd_encap() local
220 seglen = segs[j].ds_len; in ixgbe_isc_txd_encap()
223 txd->read.cmd_type_len = htole32(cmd | seglen); in ixgbe_isc_txd_encap()
/freebsd/sys/dev/cxgbe/tom/
H A Dt4_ddp.c1387 int i, hcf, seglen, idx, nppods; in alloc_page_pods()
1398 seglen = PAGE_SIZE; in alloc_page_pods()
1402 seglen += PAGE_SIZE; in alloc_page_pods()
1406 hcf = calculate_hcf(hcf, seglen); in alloc_page_pods()
1459 int hcf, seglen, idx, npages, nppods; in t4_alloc_page_pods_for_vmpages()
1477 seglen = PAGE_SIZE; in t4_alloc_page_pods_for_bio()
1480 while (pva <= end_pva && p1 + seglen == pmap_kextract(pva)) { in t4_alloc_page_pods_for_bio()
1481 seglen += PAGE_SIZE; in t4_alloc_page_pods_for_bio()
1485 hcf = calculate_hcf(hcf, seglen); in t4_alloc_page_pods_for_bio()
1530 int hcf, seglen, id in t4_alloc_page_pods_for_buf()
1419 int i, hcf, seglen, idx, nppods; t4_alloc_page_pods_for_vmpages() local
1491 int hcf, seglen, idx, npages, nppods; t4_alloc_page_pods_for_buf() local
1562 int hcf, seglen, idx = 0, npages, nppods, i, len; t4_alloc_page_pods_for_sgl() local
[all...]
H A Dt4_tls.c387 int data_type, seglen; in write_tlstx_cpl() local
389 seglen = plen; in write_tlstx_cpl()
393 V_CPL_TX_TLS_SFO_CPL_LEN(2) | V_CPL_TX_TLS_SFO_SEG_LEN(seglen)); in write_tlstx_cpl()
/freebsd/sys/dev/e1000/
H A Digb_txrx.c268 bus_size_t seglen; in igb_isc_txd_encap() local
272 seglen = segs[j].ds_len; in igb_isc_txd_encap()
277 cmd_type_len | seglen); in igb_isc_txd_encap()
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_qp.c2944 unsigned uninitialized_var(seglen); in mlx4_ib_post_send()
3084 ctrl, &seglen); in mlx4_ib_post_send()
3089 wqe += seglen; in mlx4_ib_post_send()
3090 size += seglen / 16; in mlx4_ib_post_send()
3107 err = build_lso_seg(wqe, ud_wr(wr), qp, &seglen, in mlx4_ib_post_send()
3114 wqe += seglen; in mlx4_ib_post_send()
3115 size += seglen / 16; in mlx4_ib_post_send()
3121 ctrl, &seglen); in mlx4_ib_post_send()
3126 wqe += seglen; in mlx4_ib_post_send()
3127 size += seglen / 16; in mlx4_ib_post_send()
[all …]
/freebsd/sys/dev/igc/
H A Digc_txrx.c292 bus_size_t seglen; in igc_isc_txd_encap() local
296 seglen = segs[j].ds_len; in igc_isc_txd_encap()
301 cmd_type_len | seglen); in igc_isc_txd_encap()
/freebsd/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_rx.c515 u32 byte_cnt, seglen; in mlx5e_poll_rx_cq() local
541 seglen = MIN(byte_cnt, MLX5E_MAX_RX_BYTES); in mlx5e_poll_rx_cq()
543 rq->mbuf[wqe_counter].data, seglen, rq->ifp, &mb); in mlx5e_poll_rx_cq()
/freebsd/sys/opencrypto/
H A Dcriov.c291 size_t seglen; in m_epg_contiguous_subsegment() local
293 base = m_epg_segment(m, skip, &seglen); in m_epg_contiguous_subsegment()
294 if (len > seglen) in m_epg_contiguous_subsegment()
/freebsd/sys/dev/vmm/
H A Dvmm_dev.c1024 size_t seglen; in devmem_mmap_single() local
1041 error = vm_get_memseg(dsc->sc->vm, dsc->segid, &seglen, &sysmem, objp); in devmem_mmap_single()
1045 if (seglen >= last) in devmem_mmap_single()
/freebsd/sys/dev/cxgbe/crypto/
H A Dt4_crypto.c340 size_t seglen; in ccr_write_phys_dsgl() local
359 seglen = sg->sg_segs[i].ss_len; in ccr_write_phys_dsgl()
363 if (seglen > DSGL_SGE_MAXLEN) { in ccr_write_phys_dsgl()
366 seglen -= DSGL_SGE_MAXLEN; in ccr_write_phys_dsgl()
368 sgl->len[j] = htobe16(seglen); in ccr_write_phys_dsgl()
369 seglen = 0; in ccr_write_phys_dsgl()
376 } while (seglen != 0); in ccr_write_phys_dsgl()
/freebsd/sys/dev/safexcel/
H A Dsafexcel.c2017 bus_addr_t data, uint32_t seglen, uint32_t reqlen, bus_addr_t context) in safexcel_cmd_descr_add() argument
2033 cdesc->particle_size = seglen; in safexcel_cmd_descr_add()
2086 size_t seglen; in safexcel_append_segs() local
2097 seglen = MIN(len, seg->ds_len - start); in safexcel_append_segs()
2098 error = sglist_append_phys(sg, seg->ds_addr + start, seglen); in safexcel_append_segs()
2101 len -= seglen; in safexcel_append_segs()
/freebsd/sys/dev/mxge/
H A Dif_mxge.c1805 int len, seglen, cum_len, cum_len_next; in mxge_encap_tso() local
1894 seglen = len; in mxge_encap_tso()
1895 cum_len_next = cum_len + seglen; in mxge_encap_tso()
1911 seglen = -cum_len; in mxge_encap_tso()
1923 req->length = htobe16(seglen); in mxge_encap_tso()
1927 low += seglen; in mxge_encap_tso()
1928 len -= seglen; in mxge_encap_tso()
1935 if (__predict_false(cksum_offset > seglen)) in mxge_encap_tso()
1936 cksum_offset -= seglen; in mxge_encap_tso()

12