/freebsd-12-stable/usr.bin/sed/tests/ |
H A D | regress.sh | 12 REGRESSION_TEST(`sg', `echo foo | sed s/,*/,/g')
|
/freebsd-12-stable/sys/dev/xdma/ |
H A D | xdma_sg.c | 539 struct xdma_sglist *sg) 595 xdma_sglist_add(&sg[n], seg, nsegs, xr); 613 struct xdma_sglist *sg; local 623 sg = xchan->sg; 633 sg_n = xdma_process(xchan, sg); 638 ret = XDMA_CHANNEL_SUBMIT_SG(xdma->dma_dev, xchan, sg, sg_n); 538 xdma_process(xdma_channel_t *xchan, struct xdma_sglist *sg) argument
|
H A D | xdma.h | 168 struct xdma_sglist *sg; member in struct:xdma_channel 265 int xdma_sglist_add(struct xdma_sglist *sg, struct bus_dma_segment *seg,
|
/freebsd-12-stable/sys/dev/xilinx/ |
H A D | axidma.c | 452 struct xdma_sglist *sg, uint32_t sg_n) 483 src_addr = (uint32_t)sg[i].src_addr; 484 dst_addr = (uint32_t)sg[i].dst_addr; 485 len = (uint32_t)sg[i].len; 491 if (sg[i].direction == XDMA_MEM_TO_DEV) 497 if (sg[i].first == 1) 499 if (sg[i].last == 1) 451 axidma_channel_submit_sg(device_t dev, struct xdma_channel *xchan, struct xdma_sglist *sg, uint32_t sg_n) argument
|
/freebsd-12-stable/sys/dev/altera/msgdma/ |
H A D | msgdma.c | 468 struct xdma_sglist *sg, uint32_t sg_n) 484 src_addr_lo = (uint32_t)sg[i].src_addr; 485 dst_addr_lo = (uint32_t)sg[i].dst_addr; 486 len = (uint32_t)sg[i].len; 500 if (sg[i].direction == XDMA_MEM_TO_DEV) { 501 if (sg[i].first == 1) { 505 if (sg[i].last == 1) { 467 msgdma_channel_submit_sg(device_t dev, struct xdma_channel *xchan, struct xdma_sglist *sg, uint32_t sg_n) argument
|
/freebsd-12-stable/sys/dev/virtio/block/ |
H A D | virtio_blk.c | 923 struct sglist *sg; local 928 sg = sc->vtblk_sglist; 949 sglist_reset(sg); 950 sglist_append(sg, &req->vbr_hdr, sizeof(struct virtio_blk_outhdr)); 953 error = sglist_append_bio(sg, bp); 954 if (error || sg->sg_nseg == sg->sg_maxseg) { 961 writable = sg->sg_nseg - 1; 971 error = sglist_append(sg, discard, sizeof(*discard)); 972 if (error || sg [all...] |
/freebsd-12-stable/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_mr.c | 101 struct scatterlist *sg; local 109 for_each_sg(umem->sg_head.sgl, sg, umem->nmap, entry) { 110 len = sg_dma_len(sg) >> mtt->page_shift; 112 pages[i++] = sg_dma_address(sg) + 536 int mlx4_ib_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents, argument 547 rc = ib_sg_to_pages(ibmr, sg, sg_nents, sg_offset, mlx4_set_page);
|
/freebsd-12-stable/sys/ofed/include/rdma/ |
H A D | ib_verbs.h | 708 * register any arbitrary sg lists (without 1794 struct scatterlist *sg, int nents, 1797 struct scatterlist *sg, int nents, 1800 struct scatterlist *sg, int nents, 1804 struct scatterlist *sg, int nents, 2020 struct scatterlist *sg, 3043 * @sg: The array of scatter/gather entries 3048 struct scatterlist *sg, int nents, 3052 return dev->dma_ops->map_sg(dev, sg, nents, direction); 3053 return dma_map_sg(dev->dma_device, sg, nent 3047 ib_dma_map_sg(struct ib_device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument 3063 ib_dma_unmap_sg(struct ib_device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument 3073 ib_dma_map_sg_attrs(struct ib_device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction, struct dma_attrs *dma_attrs) argument 3086 ib_dma_unmap_sg_attrs(struct ib_device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction, struct dma_attrs *dma_attrs) argument 3106 ib_sg_dma_address(struct ib_device *dev, struct scatterlist *sg) argument 3120 ib_sg_dma_len(struct ib_device *dev, struct scatterlist *sg) argument 3361 ib_map_mr_sg_zbva(struct ib_mr *mr, struct scatterlist *sg, int sg_nents, unsigned int *sg_offset, unsigned int page_size) argument [all...] |
/freebsd-12-stable/sys/dev/liquidio/ |
H A D | lio_rxtx.c | 169 bzero(g->sg, g->sg_size); 173 g->sg[(i >> 2)].ptr[(i & 3)] = segs[i].ds_addr; 174 lio_add_sg_size(&g->sg[(i >> 2)], segs[i].ds_len,
|
/freebsd-12-stable/contrib/gdb/gdb/gdbserver/ |
H A D | remote-utils.c | 99 struct sgttyb sg; local 101 ioctl (remote_desc, TIOCGETP, &sg); 102 sg.sg_flags = RAW; 103 ioctl (remote_desc, TIOCSETP, &sg);
|
/freebsd-12-stable/sys/dev/mlx5/mlx5_fpga/ |
H A D | sdk.h | 115 /** @sg: Scatter-gather entries pointing to the data in memory */ 116 struct mlx5_fpga_dma_entry sg[2]; member in struct:mlx5_fpga_dma_buf 146 * The size of the actual packet received is specified in buf.sg[0].size
|
/freebsd-12-stable/sys/dev/virtio/balloon/ |
H A D | virtio_balloon.c | 393 struct sglist sg; local 398 sglist_init(&sg, 1, segs); 400 error = sglist_append(&sg, sc->vtballoon_page_frames, 404 error = virtqueue_enqueue(vq, vq, &sg, 1, 0);
|
/freebsd-12-stable/tests/sys/acl/ |
H A D | run | 197 sub sg($) { 201 or return [ "sg: group $group does not exist\n" ]; 219 return [ "sg: $!\n" ]; 242 } elsif ($prog->[0] eq "sg") { 243 return sg($prog->[1]);
|
/freebsd-12-stable/contrib/ofed/libmlx4/ |
H A D | qp.c | 185 static void __set_data_seg(struct mlx4_wqe_data_seg *dseg, struct ibv_sge *sg) argument 187 dseg->byte_count = htobe32(sg->length); 188 dseg->lkey = htobe32(sg->lkey); 189 dseg->addr = htobe64(sg->addr); 192 static void set_data_seg(struct mlx4_wqe_data_seg *dseg, struct ibv_sge *sg) argument 194 dseg->lkey = htobe32(sg->lkey); 195 dseg->addr = htobe64(sg->addr); 207 if (likely(sg->length)) 208 dseg->byte_count = htobe32(sg->length);
|
/freebsd-12-stable/sys/dev/aacraid/ |
H A D | aacraid.c | 1326 struct aac_sge_ieee1212 *sg; local 1331 sg = (struct aac_sge_ieee1212 *)cm->cm_sgtable; 1336 sg[i].addrHigh = 0; 1337 *(bus_addr_t *)&sg[i].addrLow = segs[i].ds_addr; 1338 sg[i].length = cur_size; 1339 sg[i].flags = 0; 1353 /* not conformable: evaluate required sg elements */ 1360 if (sg[j].length % (i*PAGE_SIZE)) { 1364 nseg_new += (sg[j].length / (i*PAGE_SIZE)); 1382 struct aac_sg_tableraw *sg; local 1395 struct aac_sg_table *sg; local 1405 struct aac_sg_table64 *sg; local 2908 struct aac_sg_entry sg; local 2920 struct aac_sg_entry64 sg; local [all...] |
/freebsd-12-stable/sys/dev/virtio/ |
H A D | virtqueue.c | 515 virtqueue_enqueue(struct virtqueue *vq, void *cookie, struct sglist *sg, argument 525 VQASSERT(vq, needed == sg->sg_nseg, 526 "segment count mismatch, %d, %d", needed, sg->sg_nseg); 538 vq_ring_enqueue_indirect(vq, cookie, sg, readable, writable); 553 sg, readable, writable); 692 uint16_t head_idx, struct sglist *sg, int readable, int writable) 701 for (i = 0, idx = head_idx, seg = sg->sg_segs; 739 struct sglist *sg, int readable, int writable) 765 sg, readable, writable); 691 vq_ring_enqueue_segments(struct virtqueue *vq, struct vring_desc *desc, uint16_t head_idx, struct sglist *sg, int readable, int writable) argument 738 vq_ring_enqueue_indirect(struct virtqueue *vq, void *cookie, struct sglist *sg, int readable, int writable) argument
|
/freebsd-12-stable/sys/net80211/ |
H A D | ieee80211_superg.c | 111 struct ieee80211_superg *sg; local 115 sg = (struct ieee80211_superg *) IEEE80211_MALLOC( 118 if (sg == NULL) { 123 TIMEOUT_TASK_INIT(ic->ic_tq, &sg->ff_qtimer, 0, ff_age_all, ic); 124 ic->ic_superg = sg; 773 struct ieee80211_superg *sg = ic->ic_superg; local 824 sq = &sg->ff_stageq[pri]; 934 struct ieee80211_superg *sg = ic->ic_superg; local 952 stageq_remove(ic, &sg->ff_stageq[ac], m);
|
/freebsd-12-stable/sys/dev/safexcel/ |
H A D | safexcel.c | 1983 safexcel_append_segs(bus_dma_segment_t *segs, int nseg, struct sglist *sg, argument 1999 error = sglist_append_phys(sg, seg->ds_addr + start, seglen); 2018 struct sglist *sg; local 2089 sg = ring->cmd_data; 2090 if (sg->sg_nseg == 0) { 2099 (void)sglist_append_phys(sg, req->ctx.paddr, 1); 2101 for (i = 0, inlen = 0; i < sg->sg_nseg; i++) 2102 inlen += sg->sg_segs[i].ss_len; 2103 for (i = 0; i < sg->sg_nseg; i++) { 2105 last = i == sg [all...] |
/freebsd-12-stable/sys/dev/sym/ |
H A D | sym_fw2.h | 1095 offsetof (struct sym_ccb, phys.pm0.sg), 1115 offsetof (struct sym_ccb, phys.pm0.sg), 1160 offsetof (struct sym_ccb, phys.pm1.sg), 1180 offsetof (struct sym_ccb, phys.pm1.sg), 1691 offsetof(struct sym_ccb, phys.pm0.sg.size), 1693 offsetof(struct sym_ccb, phys.pm0.sg.addr), 1718 offsetof(struct sym_ccb, phys.pm1.sg.size), 1720 offsetof(struct sym_ccb, phys.pm1.sg.addr),
|
/freebsd-12-stable/sys/netgraph/ |
H A D | ng_socket.c | 489 struct sockaddr_ng *sg; local 499 sizeof(sg->sg_data); 500 sg = malloc(sg_len, M_SONAME, M_WAITOK | M_ZERO); 507 bcopy(NG_NODE_NAME(node), sg->sg_data, 511 sg->sg_len = sg_len; 512 sg->sg_family = AF_NETGRAPH; 513 *addr = (struct sockaddr *)sg; 516 free(sg, M_SONAME);
|
/freebsd-12-stable/sys/dev/aic7xxx/ |
H A D | aic7xxx_osm.c | 954 struct ahc_dma_seg *sg; local 961 sg = scb->sg_list; 965 sg->addr = aic_htole32(dm_segs->ds_addr); 968 sg->len = aic_htole32(len); 969 sg++; 1026 sg->addr = aic_htole32(ahc->dma_bug_buf); 1027 sg->len = aic_htole32(1); 1028 sg++; 1031 sg--; 1032 sg [all...] |
/freebsd-12-stable/sys/dev/cxgbe/crypto/ |
H A D | t4_crypto.c | 249 ccr_populate_sglist(struct sglist *sg, struct cryptop *crp) argument 253 sglist_reset(sg); 255 error = sglist_append_mbuf(sg, (struct mbuf *)crp->crp_buf); 257 error = sglist_append_uio(sg, (struct uio *)crp->crp_buf); 259 error = sglist_append(sg, crp->crp_buf, crp->crp_ilen); 264 * Segments in 'sg' larger than 'maxsegsize' are counted as multiple 268 ccr_count_sgl(struct sglist *sg, int maxsegsize) argument 273 for (i = 0; i < sg->sg_nseg; i++) 274 nsegs += howmany(sg->sg_segs[i].ss_len, maxsegsize); 295 struct sglist *sg; local 354 struct sglist *sg; local [all...] |
/freebsd-12-stable/sys/dev/aac/ |
H A D | aac.c | 1570 struct aac_sg_tableraw *sg; local 1571 sg = (struct aac_sg_tableraw *)cm->cm_sgtable; 1572 sg->SgCount = nseg; 1574 sg->SgEntryRaw[i].SgAddress = segs[i].ds_addr; 1575 sg->SgEntryRaw[i].SgByteCount = segs[i].ds_len; 1576 sg->SgEntryRaw[i].Next = 0; 1577 sg->SgEntryRaw[i].Prev = 0; 1578 sg->SgEntryRaw[i].Flags = 0; 1583 struct aac_sg_table *sg; local 1584 sg 1593 struct aac_sg_table64 *sg; local 3109 struct aac_sg_entry sg; local 3123 struct aac_sg_entry64 sg; local [all...] |
/freebsd-12-stable/sys/dev/drm2/radeon/ |
H A D | radeon_object.h | 126 struct sg_table *sg,
|
/freebsd-12-stable/sys/dev/hyperv/include/ |
H A D | vmbus.h | 211 struct vmbus_gpa sg[], int sglen, void *data, int dlen,
|