/freebsd/sys/x86/x86/ |
H A D | busdma_bounce.c | 549 bus_size_t sg_len; in _bus_dmamap_count_pages() 566 sg_len = MIN(vendaddr - vaddr, in _bus_dmamap_count_pages() 573 sg_len = roundup2(sg_len, in _bus_dmamap_count_pages() 577 vaddr += sg_len; in _bus_dmamap_count_pages() 587 bus_size_t sg_len; in _bus_dmamap_count_ma() 606 sg_len = PAGE_SIZE - ma_offs; in _bus_dmamap_count_ma() 607 sg_len = MIN(sg_len, buflen); in _bus_dmamap_count_ma() 609 sg_len in _bus_dmamap_count_ma() 545 bus_size_t sg_len; _bus_dmamap_count_pages() local 583 bus_size_t sg_len, max_sgsize; _bus_dmamap_count_ma() local [all...] |
/freebsd/lib/libnetgraph/ |
H A D | sock.c | 100 sg->sg_len = strlen(sg->sg_data) + 1 + NGSA_OVERHEAD; in NgMkSockNode() 101 if (bind(cs, (struct sockaddr *) sg, sg->sg_len) < 0) { in NgMkSockNode() 153 sg->sg_len = strlen(sg->sg_data) + 1 + NGSA_OVERHEAD; in NgMkSockNode() 154 if (connect(ds, (struct sockaddr *) sg, sg->sg_len) < 0) { in NgMkSockNode() 279 sg->sg_len = strlen(sg->sg_data) + 1 + NGSA_OVERHEAD; in NgSendData() 290 if (sendto(ds, buf, len, 0, (struct sockaddr *) sg, sg->sg_len) < 0) { in NgSendData()
|
H A D | msg.c | 210 sg->sg_len = strlen(sg->sg_data) + 1 + NGSA_OVERHEAD; in NgDeliverMsg() 222 0, (struct sockaddr *) sg, sg->sg_len) < 0) { in NgDeliverMsg()
|
H A D | debug.c | 216 sg->sg_family, sg->sg_len, sg->sg_data); in _NgDebugSockaddr()
|
/freebsd/usr.sbin/ngctl/ |
H A D | write.c | 107 sag->sg_len = 3 + strlen(hook); in WriteCmd() 111 0, (struct sockaddr *)sag, sag->sg_len) == -1) { in WriteCmd()
|
/freebsd/sys/netgraph/ |
H A D | ng_socket.c | 241 if (sap->sg_len > NG_NODESIZ + offsetof(struct sockaddr_ng, sg_data)) { in ngc_send() 250 len = sap->sg_len - offsetof(struct sockaddr_ng, sg_data); in ngc_send() 436 if (sap->sg_len > NG_NODESIZ + in ngd_send() 441 len = sap->sg_len - offsetof(struct sockaddr_ng, sg_data); in ngd_send() 520 .sg_len = sizeof(struct sockaddr_ng), in ng_getsockaddr() 766 if ((sap->sg_len < 4) || (sap->sg_len > (NG_NODESIZ + 2)) || in ng_bind() 768 (sap->sg_data[sap->sg_len - 3] != '\0')) { in ng_bind() 964 addr.sg_len = sizeof(addr); in ngs_rcvmsg() 1034 addr->sg_len = addrlen + 3; in ngs_rcvdata()
|
H A D | ng_socket.h | 61 unsigned char sg_len; /* total length */ member
|
/freebsd/sys/powerpc/powerpc/ |
H A D | busdma_machdep.c | 524 bus_size_t sg_len; in _bus_dmamap_count_pages() 526 sg_len = MIN(vendaddr - vaddr, in _bus_dmamap_count_pages() 533 sg_len = roundup2(sg_len, dmat->alignment); in _bus_dmamap_count_pages() 536 vaddr += sg_len; in _bus_dmamap_count_pages() 520 bus_size_t sg_len; _bus_dmamap_count_pages() local
|
/freebsd/sys/riscv/riscv/ |
H A D | busdma_bounce.c | 520 bus_size_t sg_len; in _bus_dmamap_count_pages() 537 sg_len = MIN(vendaddr - vaddr, in _bus_dmamap_count_pages() 544 sg_len = roundup2(sg_len, in _bus_dmamap_count_pages() 548 vaddr += sg_len; in _bus_dmamap_count_pages() 516 bus_size_t sg_len; _bus_dmamap_count_pages() local
|
/freebsd/sys/arm64/arm64/ |
H A D | busdma_bounce.c | 684 bus_size_t sg_len; in _bus_dmamap_count_pages() local 701 sg_len = MIN(vendaddr - vaddr, in _bus_dmamap_count_pages() 707 if (must_bounce(dmat, map, paddr, sg_len) != 0) { in _bus_dmamap_count_pages() 708 sg_len = roundup2(sg_len, in _bus_dmamap_count_pages() 712 vaddr += sg_len; in _bus_dmamap_count_pages()
|
/freebsd/sys/arm/arm/ |
H A D | busdma_machdep.c | 819 bus_size_t sg_len; in _bus_dmamap_count_pages() 834 sg_len = MIN(vendaddr - vaddr, in _bus_dmamap_count_pages() 840 if (must_bounce(dmat, map, paddr, sg_len) != 0) in _bus_dmamap_count_pages() 842 vaddr += sg_len; in _bus_dmamap_count_pages() 815 bus_size_t sg_len; _bus_dmamap_count_pages() local
|
/freebsd/sys/cam/ctl/ |
H A D | ctl_frontend_iscsi.c | 2475 size_t len, expected_len, sg_len, buffer_offset; in cfiscsi_datamove_in() local 2531 sg_len = 0; in cfiscsi_datamove_in() 2560 if (sg_len == 0) { in cfiscsi_datamove_in() 2562 sg_len = ctl_sglist[i].len; in cfiscsi_datamove_in() 2563 KASSERT(sg_len > 0, ("sg_len <= 0")); in cfiscsi_datamove_in() 2566 len = sg_len; in cfiscsi_datamove_in() 2576 KASSERT(len <= sg_len, ("len %zd > sg_len %zd", in cfiscsi_datamove_in() 2577 len, sg_len)); in cfiscsi_datamove_in() 2591 KASSERT(len <= sg_len, ("len %zd > sg_len %zd", in cfiscsi_datamove_in() 2592 len, sg_len)); in cfiscsi_datamove_in() [all …]
|