Searched refs:sg_segs (Results 1 – 12 of 12) sorted by relevance
/freebsd/sys/kern/ |
H A D | subr_sglist.c | 66 (sgsave).ss_len = (sg)->sg_segs[(sgsave).sg_nseg - 1].ss_len; \ 74 (sg)->sg_segs[(sgsave).sg_nseg - 1].ss_len = (sgsave).ss_len; \ 131 ss = sg->sg_segs; in _sglist_append_buf() 136 ss = &sg->sg_segs[sg->sg_nseg - 1]; in _sglist_append_buf() 363 sg->sg_segs[0].ss_paddr = paddr; in sglist_append_phys() 364 sg->sg_segs[0].ss_len = len; in sglist_append_phys() 368 ss = &sg->sg_segs[sg->sg_nseg - 1]; in sglist_append_phys() 505 sg->sg_segs[0].ss_paddr = VM_PAGE_TO_PHYS(m[0]) + pgoff; in sglist_append_vmpages() 506 sg->sg_segs[0].ss_len = seglen; in sglist_append_vmpages() 512 ss = &sg->sg_segs[sg->sg_nseg - 1]; in sglist_append_vmpages() [all …]
|
/freebsd/sys/vm/ |
H A D | sg_pager.c | 92 if ((sg->sg_segs[i].ss_paddr % PAGE_SIZE) != 0 || in sg_pager_alloc() 93 (sg->sg_segs[i].ss_len % PAGE_SIZE) != 0) in sg_pager_alloc() 95 npages += sg->sg_segs[i].ss_len / PAGE_SIZE; in sg_pager_alloc() 172 if (space + sg->sg_segs[i].ss_len <= (offset * PAGE_SIZE)) { in sg_pager_getpages() 173 space += sg->sg_segs[i].ss_len; in sg_pager_getpages() 176 paddr = sg->sg_segs[i].ss_paddr + offset * PAGE_SIZE - space; in sg_pager_getpages()
|
/freebsd/sys/cam/ctl/ |
H A D | ctl_backend_block.c | 206 struct ctl_sg_entry sg_segs[CTLBLK_MAX_SEGS]; member 351 ctl_free_seg(softc, &beio->sg_segs[i]); in ctl_real_free_beio() 356 &beio->sg_segs[i + CTLBLK_HALF_SEGS]); in ctl_real_free_beio() 447 res = cmp(beio->sg_segs[i].addr, in ctl_be_block_compare() 448 beio->sg_segs[i + CTLBLK_HALF_SEGS].addr, in ctl_be_block_compare() 449 beio->sg_segs[i].len); in ctl_be_block_compare() 451 if (res < beio->sg_segs[i].len) in ctl_be_block_compare() 689 xiovec->iov_base = beio->sg_segs[i].addr; in ctl_be_block_dispatch_file() 690 xiovec->iov_len = beio->sg_segs[i].len; in ctl_be_block_dispatch_file() 730 if (s >= beio->sg_segs[i].len) { in ctl_be_block_dispatch_file() [all …]
|
/freebsd/sys/sys/ |
H A D | sglist.h | 50 struct sglist_seg *sg_segs; member 65 sg->sg_segs = segs; in sglist_init()
|
/freebsd/sys/crypto/ccp/ |
H A D | ccp_hardware.c | 895 seg = &sgl->sg_segs[i]; in ccp_passthrough_sgl() 1103 seg = &sgl_src->sg_segs[i]; in ccp_sha() 1116 seg = &sgl_dst->sg_segs[i]; in ccp_sha() 1419 seg = &qp->cq_sg_ulptx->sg_segs[i]; in ccp_do_xts() 1495 if ((qp->cq_sg_crp->sg_segs[i].ss_len % AES_BLOCK_LEN) != 0) { in ccp_do_blkcipher() 1497 qp->cq_sg_crp->sg_segs[i].ss_len); in ccp_do_blkcipher() 1604 (void *)PHYS_TO_DMAP(qp->cq_sg_ulptx->sg_segs[0].ss_paddr), " "); in ccp_do_blkcipher() 1617 seg = &qp->cq_sg_ulptx->sg_segs[i]; in ccp_do_blkcipher() 1730 seg = &qp->cq_sg_ulptx->sg_segs[i]; in ccp_do_ghash_aad() 1919 if ((qp->cq_sg_ulptx->sg_segs[i].ss_len % in ccp_gcm() [all …]
|
/freebsd/sys/dev/safexcel/ |
H A D | safexcel.c | 2180 inlen += sg->sg_segs[i].ss_len; in safexcel_create_chain_cb() 2186 sg->sg_segs[i].ss_paddr, sg->sg_segs[i].ss_len, in safexcel_create_chain_cb() 2205 sg->sg_segs[0].ss_paddr = 0; in safexcel_create_chain_cb() 2206 sg->sg_segs[0].ss_len = 0; in safexcel_create_chain_cb() 2214 sg->sg_segs[i].ss_paddr, sg->sg_segs[i].ss_len) == NULL) { in safexcel_create_chain_cb()
|
/freebsd/sys/dev/agp/ |
H A D | agp_i810.c | 2218 sg->sg_segs[i].ss_paddr = VM_PAGE_TO_PHYS(pages[i]); in agp_intel_gtt_map_memory() 2219 sg->sg_segs[i].ss_len = PAGE_SIZE; in agp_intel_gtt_map_memory() 2264 spaddr = sg_list->sg_segs[i].ss_paddr; in agp_intel_gtt_insert_sg_entries() 2265 slen = sg_list->sg_segs[i].ss_len; in agp_intel_gtt_insert_sg_entries()
|
/freebsd/sys/dev/cxgbe/crypto/ |
H A D | t4_crypto.c | 315 nsegs += howmany(sg->sg_segs[i].ss_len, maxsegsize); in ccr_count_sgl() 359 seglen = sg->sg_segs[i].ss_len; in ccr_write_phys_dsgl() 360 paddr = sg->sg_segs[i].ss_paddr; in ccr_write_phys_dsgl() 402 ss = &sg->sg_segs[0]; in ccr_write_ulptx_sgl()
|
H A D | t6_kern_tls.c | 1059 seg = &gl->sg_segs[0]; in write_gl_to_buf()
|
/freebsd/sys/dev/virtio/ |
H A D | virtqueue.c | 714 for (i = 0, idx = head_idx, seg = sg->sg_segs; in vq_ring_enqueue_segments()
|
/freebsd/sys/dev/cxgb/ |
H A D | cxgb_sge.c | 2231 segs = sgl->sg_segs; in write_ofld_wr()
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_sge.c | 6057 seg = &gl->sg_segs[0]; in write_gl_to_txd()
|