/dports/net/frr7-pythontools/frr-frr-7.5.1/nhrpd/ |
H A D | zbuf.h | 39 return zb->end - zb->buf; in zbuf_size() 44 return zb->tail - zb->head; in zbuf_used() 49 return zb->end - zb->tail; in zbuf_tailroom() 54 return zb->head - zb->buf; in zbuf_headroom() 66 zb->error = 1; in zbuf_set_rerror() 67 zb->head = zb->tail; in zbuf_set_rerror() 73 zb->tail = zb->end; in zbuf_set_werror() 89 #define zbuf_pulln(zb, sz) (__zbuf_pull(zb, sz, 1)) argument 91 #define zbuf_may_pulln(zb, sz) (__zbuf_pull(zb, sz, 0)) argument 152 #define zbuf_pushn(zb, sz) (__zbuf_push(zb, sz, 1)) argument [all …]
|
H A D | zbuf.c | 30 zb = XMALLOC(MTYPE_ZBUF_DATA, sizeof(*zb) + size); in zbuf_alloc() 32 zbuf_init(zb, zb + 1, size, 0); in zbuf_alloc() 35 return zb; in zbuf_alloc() 56 zb->head = zb->tail = zb->buf; in zbuf_reset() 71 memmove(zb->buf, zb->head, zbuf_used(zb)); in zbuf_remove_headroom() 105 r = write(fd, zb->head, zbuf_used(zb)); in zbuf_write() 108 if (zb->head == zb->tail) in zbuf_write() 126 r = recv(fd, zb->tail, zbuf_tailroom(zb), 0); in zbuf_recv() 143 r = send(fd, zb->head, zbuf_used(zb), 0); in zbuf_send() 155 ptr = memmem(zb->head, zbuf_used(zb), sep, seplen); in zbuf_may_pull_until() [all …]
|
H A D | nhrp_packet.c | 91 zbuf_pulln(zb, in nhrp_packet_pull() 127 nhrp_ext_push(zb, hdr, in nhrp_packet_complete() 173 zbuf_pulln(zb, in nhrp_cie_pull() 236 nhrp_ext_push(zb, hdr, in nhrp_ext_request() 288 zbuf_set_werror(zb); in nhrp_ext_reply() 295 struct zbuf *zb; in nhrp_packet_recvraw() local 305 if (!zb) in nhrp_packet_recvraw() 308 len = zbuf_size(zb); in nhrp_packet_recvraw() 313 zb->head = zb->buf; in nhrp_packet_recvraw() 314 zb->tail = zb->buf + len; in nhrp_packet_recvraw() [all …]
|
H A D | netlink_arp.c | 55 znl_nlmsg_complete(zb, n); in netlink_update_binding() 56 zbuf_send(zb, netlink_req_fd); in netlink_update_binding() 57 zbuf_recv(zb, netlink_req_fd); in netlink_update_binding() 58 zbuf_free(zb); in netlink_update_binding() 139 struct zbuf payload, zb; in netlink_route_recv() local 180 znl_nlmsg_complete(zb, n); in netlink_log_register() 182 zbuf_send(zb, fd); in netlink_log_register() 183 zbuf_free(zb); in netlink_log_register() 232 struct zbuf payload, zb; in netlink_log_recv() local 313 znl_nlmsg_complete(zb, n); in netlink_configure_arp() [all …]
|
H A D | netlink_gre.c | 38 ifi = znl_push(zb, sizeof(*ifi)); in __netlink_gre_get_data() 42 znl_nlmsg_complete(zb, n); in __netlink_gre_get_data() 44 if (zbuf_send(zb, netlink_req_fd) < 0 in __netlink_gre_get_data() 48 n = znl_nlmsg_pull(zb, &payload); in __netlink_gre_get_data() 111 zbuf_free(zb); in netlink_gre_get_info() 120 struct zbuf *zb = zbuf_alloc(8192); in netlink_gre_set_link() local 127 ifi = znl_push(zb, sizeof(*ifi)); in netlink_gre_set_link() 146 znl_nlmsg_complete(zb, n); in netlink_gre_set_link() 147 zbuf_send(zb, netlink_req_fd); in netlink_gre_set_link() 148 zbuf_recv(zb, netlink_req_fd); in netlink_gre_set_link() [all …]
|
H A D | znl.c | 27 void *znl_push(struct zbuf *zb, size_t n) in znl_push() argument 29 return zbuf_pushn(zb, ZNL_ALIGN(n)); in znl_push() 32 void *znl_pull(struct zbuf *zb, size_t n) in znl_pull() argument 34 return zbuf_pulln(zb, ZNL_ALIGN(n)); in znl_pull() 41 n = znl_push(zb, sizeof(*n)); in znl_nlmsg_push() 53 n->nlmsg_len = zb->tail - (uint8_t *)n; in znl_nlmsg_complete() 61 n = znl_pull(zb, sizeof(*n)); in znl_nlmsg_pull() 102 rta = znl_push(zb, sizeof(*rta)); in znl_rta_nested_push() 114 size_t len = zb->tail - (uint8_t *)rta; in znl_rta_nested_complete() 118 void *dst = zbuf_pushn(zb, align); in znl_rta_nested_complete() [all …]
|
/dports/net/frr7/frr-frr-7.5.1/nhrpd/ |
H A D | zbuf.h | 39 return zb->end - zb->buf; in zbuf_size() 44 return zb->tail - zb->head; in zbuf_used() 49 return zb->end - zb->tail; in zbuf_tailroom() 54 return zb->head - zb->buf; in zbuf_headroom() 66 zb->error = 1; in zbuf_set_rerror() 67 zb->head = zb->tail; in zbuf_set_rerror() 73 zb->tail = zb->end; in zbuf_set_werror() 89 #define zbuf_pulln(zb, sz) (__zbuf_pull(zb, sz, 1)) argument 91 #define zbuf_may_pulln(zb, sz) (__zbuf_pull(zb, sz, 0)) argument 152 #define zbuf_pushn(zb, sz) (__zbuf_push(zb, sz, 1)) argument [all …]
|
H A D | zbuf.c | 30 zb = XMALLOC(MTYPE_ZBUF_DATA, sizeof(*zb) + size); in zbuf_alloc() 32 zbuf_init(zb, zb + 1, size, 0); in zbuf_alloc() 35 return zb; in zbuf_alloc() 56 zb->head = zb->tail = zb->buf; in zbuf_reset() 71 memmove(zb->buf, zb->head, zbuf_used(zb)); in zbuf_remove_headroom() 105 r = write(fd, zb->head, zbuf_used(zb)); in zbuf_write() 108 if (zb->head == zb->tail) in zbuf_write() 126 r = recv(fd, zb->tail, zbuf_tailroom(zb), 0); in zbuf_recv() 143 r = send(fd, zb->head, zbuf_used(zb), 0); in zbuf_send() 155 ptr = memmem(zb->head, zbuf_used(zb), sep, seplen); in zbuf_may_pull_until() [all …]
|
H A D | nhrp_packet.c | 91 zbuf_pulln(zb, in nhrp_packet_pull() 127 nhrp_ext_push(zb, hdr, in nhrp_packet_complete() 173 zbuf_pulln(zb, in nhrp_cie_pull() 236 nhrp_ext_push(zb, hdr, in nhrp_ext_request() 288 zbuf_set_werror(zb); in nhrp_ext_reply() 295 struct zbuf *zb; in nhrp_packet_recvraw() local 305 if (!zb) in nhrp_packet_recvraw() 308 len = zbuf_size(zb); in nhrp_packet_recvraw() 313 zb->head = zb->buf; in nhrp_packet_recvraw() 314 zb->tail = zb->buf + len; in nhrp_packet_recvraw() [all …]
|
H A D | netlink_arp.c | 55 znl_nlmsg_complete(zb, n); in netlink_update_binding() 56 zbuf_send(zb, netlink_req_fd); in netlink_update_binding() 57 zbuf_recv(zb, netlink_req_fd); in netlink_update_binding() 58 zbuf_free(zb); in netlink_update_binding() 139 struct zbuf payload, zb; in netlink_route_recv() local 180 znl_nlmsg_complete(zb, n); in netlink_log_register() 182 zbuf_send(zb, fd); in netlink_log_register() 183 zbuf_free(zb); in netlink_log_register() 232 struct zbuf payload, zb; in netlink_log_recv() local 313 znl_nlmsg_complete(zb, n); in netlink_configure_arp() [all …]
|
H A D | netlink_gre.c | 38 ifi = znl_push(zb, sizeof(*ifi)); in __netlink_gre_get_data() 42 znl_nlmsg_complete(zb, n); in __netlink_gre_get_data() 44 if (zbuf_send(zb, netlink_req_fd) < 0 in __netlink_gre_get_data() 48 n = znl_nlmsg_pull(zb, &payload); in __netlink_gre_get_data() 111 zbuf_free(zb); in netlink_gre_get_info() 120 struct zbuf *zb = zbuf_alloc(8192); in netlink_gre_set_link() local 127 ifi = znl_push(zb, sizeof(*ifi)); in netlink_gre_set_link() 146 znl_nlmsg_complete(zb, n); in netlink_gre_set_link() 147 zbuf_send(zb, netlink_req_fd); in netlink_gre_set_link() 148 zbuf_recv(zb, netlink_req_fd); in netlink_gre_set_link() [all …]
|
H A D | znl.c | 27 void *znl_push(struct zbuf *zb, size_t n) in znl_push() argument 29 return zbuf_pushn(zb, ZNL_ALIGN(n)); in znl_push() 32 void *znl_pull(struct zbuf *zb, size_t n) in znl_pull() argument 34 return zbuf_pulln(zb, ZNL_ALIGN(n)); in znl_pull() 41 n = znl_push(zb, sizeof(*n)); in znl_nlmsg_push() 53 n->nlmsg_len = zb->tail - (uint8_t *)n; in znl_nlmsg_complete() 61 n = znl_pull(zb, sizeof(*n)); in znl_nlmsg_pull() 102 rta = znl_push(zb, sizeof(*rta)); in znl_rta_nested_push() 114 size_t len = zb->tail - (uint8_t *)rta; in znl_rta_nested_complete() 118 void *dst = zbuf_pushn(zb, align); in znl_rta_nested_complete() [all …]
|
/dports/net/quagga/quagga-1.2.4/nhrpd/ |
H A D | zbuf.h | 39 return zb->end - zb->buf; in zbuf_size() 44 return zb->tail - zb->head; in zbuf_used() 49 return zb->end - zb->tail; in zbuf_tailroom() 54 return zb->head - zb->buf; in zbuf_headroom() 66 zb->error = 1; in zbuf_set_rerror() 67 zb->head = zb->tail; in zbuf_set_rerror() 72 zb->error = 1; in zbuf_set_werror() 73 zb->tail = zb->end; in zbuf_set_werror() 88 #define zbuf_pulln(zb, sz) ((void *)__zbuf_pull(zb, sz, 1)) argument 90 #define zbuf_may_pulln(zb, sz) ((void *)__zbuf_pull(zb, sz, 0)) argument [all …]
|
H A D | zbuf.c | 26 zb = XMALLOC(MTYPE_STREAM_DATA, sizeof(*zb) + size); in zbuf_alloc() 27 if (!zb) in zbuf_alloc() 30 zbuf_init(zb, zb+1, size, 0); in zbuf_alloc() 33 return zb; in zbuf_alloc() 54 zb->head = zb->tail = zb->buf; in zbuf_reset() 69 memmove(zb->buf, zb->head, zbuf_used(zb)); in zbuf_remove_headroom() 100 r = write(fd, zb->head, zbuf_used(zb)); in zbuf_write() 103 if (zb->head == zb->tail) in zbuf_write() 120 r = recv(fd, zb->tail, zbuf_tailroom(zb), 0); in zbuf_recv() 134 r = send(fd, zb->head, zbuf_used(zb), 0); in zbuf_send() [all …]
|
H A D | nhrp_packet.c | 69 struct zbuf *zb, in nhrp_packet_pull() argument 126 struct zbuf *zb, in nhrp_cie_push() argument 150 struct zbuf *zb, in nhrp_cie_pull() argument 258 zbuf_set_werror(zb); in nhrp_ext_reply() 265 struct zbuf *zb; in nhrp_packet_recvraw() local 274 zb = zbuf_alloc(1500); in nhrp_packet_recvraw() 275 if (!zb) return 0; in nhrp_packet_recvraw() 277 len = zbuf_size(zb); in nhrp_packet_recvraw() 282 zb->head = zb->buf; in nhrp_packet_recvraw() 283 zb->tail = zb->buf + len; in nhrp_packet_recvraw() [all …]
|
H A D | netlink_arp.c | 47 znl_nlmsg_complete(zb, n); in netlink_update_binding() 48 zbuf_send(zb, netlink_req_fd); in netlink_update_binding() 49 zbuf_recv(zb, netlink_req_fd); in netlink_update_binding() 50 zbuf_free(zb); in netlink_update_binding() 109 struct zbuf payload, zb; in netlink_route_recv() local 148 znl_nlmsg_complete(zb, n); in netlink_log_register() 150 zbuf_send(zb, fd); in netlink_log_register() 151 zbuf_free(zb); in netlink_log_register() 199 struct zbuf payload, zb; in netlink_log_recv() local 269 znl_nlmsg_complete(zb, n); in netlink_configure_arp() [all …]
|
H A D | netlink_gre.c | 33 ifi = znl_push(zb, sizeof(*ifi)); in __netlink_gre_get_data() 37 znl_nlmsg_complete(zb, n); in __netlink_gre_get_data() 40 zbuf_recv(zb, netlink_req_fd) < 0) in __netlink_gre_get_data() 43 n = znl_nlmsg_pull(zb, &payload); in __netlink_gre_get_data() 101 zbuf_free(zb); in netlink_gre_get_info() 110 struct zbuf *zb = zbuf_alloc(8192); in netlink_gre_set_link() local 117 ifi = znl_push(zb, sizeof(*ifi)); in netlink_gre_set_link() 136 znl_nlmsg_complete(zb, n); in netlink_gre_set_link() 137 zbuf_send(zb, netlink_req_fd); in netlink_gre_set_link() 138 zbuf_recv(zb, netlink_req_fd); in netlink_gre_set_link() [all …]
|
H A D | znl.c | 23 void *znl_push(struct zbuf *zb, size_t n) in znl_push() argument 25 return zbuf_pushn(zb, ZNL_ALIGN(n)); in znl_push() 28 void *znl_pull(struct zbuf *zb, size_t n) in znl_pull() argument 30 return zbuf_pulln(zb, ZNL_ALIGN(n)); in znl_pull() 37 n = znl_push(zb, sizeof(*n)); in znl_nlmsg_push() 49 n->nlmsg_len = zb->tail - (uint8_t*)n; in znl_nlmsg_complete() 57 n = znl_pull(zb, sizeof(*n)); in znl_nlmsg_pull() 96 rta = znl_push(zb, sizeof(*rta)); in znl_rta_nested_push() 107 size_t len = zb->tail - (uint8_t*) rta; in znl_rta_nested_complete() 111 void *dst = zbuf_pushn(zb, align); in znl_rta_nested_complete() [all …]
|
/dports/net/nmsg/nmsg-1.0.1/nmsg/ |
H A D | zbuf.c | 40 zb = malloc(sizeof(*zb)); in nmsg_zbuf_deflate_init() 41 if (zb == NULL) in nmsg_zbuf_deflate_init() 51 free(zb); in nmsg_zbuf_deflate_init() 55 return (zb); in nmsg_zbuf_deflate_init() 63 zb = malloc(sizeof(*zb)); in nmsg_zbuf_inflate_init() 64 if (zb == NULL) in nmsg_zbuf_inflate_init() 76 free(zb); in nmsg_zbuf_inflate_init() 80 return (zb); in nmsg_zbuf_inflate_init() 85 if (*zb != NULL) { in nmsg_zbuf_destroy() 90 free(*zb); in nmsg_zbuf_destroy() [all …]
|
/dports/lang/racket/racket-8.3/share/pkgs/plot-lib/plot/private/common/ |
H A D | marching-squares.rkt | 227 (vector (solve-t zb z1 z2) 0 zb) 239 (list (list (vector (solve-t zb z1 z2) 0 zb) 251 (vector (solve-t zb z1 z2) 0 zb) 252 (vector 0 (solve-t zb z1 z4) zb) 277 (vector 1 (solve-t zb z2 z3) zb) 288 (vector 1 (solve-t zb z2 z3) zb) 312 (list (list (vector (solve-t zb z1 z2) 0 zb) 327 (vector (solve-t zb z4 z3) 1 zb) 337 (vector (solve-t zb z1 z2) 0 zb) 338 (vector (solve-t zb z4 z3) 1 zb) [all …]
|
/dports/databases/tile38/tile38-1.12.0/vendor/github.com/pierrec/lz4/ |
H A D | writer.go | 143 zb block 177 zb.data = append(z.window, zb.data...) 204 zb = z.compressBlock(zb) 243 n, err = CompressBlockHC(zb.data, zbuf, zb.offset) 245 n, err = CompressBlock(zb.data, zbuf, zb.offset) 249 if err == nil && n > 0 && len(zb.zdata) < len(zb.data) { 251 zb.zdata = zbuf[:n] 254 zb.zdata = zb.data[zb.offset:] 259 xxh.Write(zb.zdata) 264 return zb [all …]
|
/dports/sysutils/sensu-go/sensu-go-5.11.1/vendor/github.com/pierrec/lz4/ |
H A D | writer.go | 143 zb block 177 zb.data = append(z.window, zb.data...) 204 zb = z.compressBlock(zb) 243 n, err = CompressBlockHC(zb.data, zbuf, zb.offset) 245 n, err = CompressBlock(zb.data, zbuf, zb.offset) 249 if err == nil && n > 0 && len(zb.zdata) < len(zb.data) { 251 zb.zdata = zbuf[:n] 254 zb.zdata = zb.data[zb.offset:] 259 xxh.Write(zb.zdata) 264 return zb [all …]
|
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/spandsp/tests/ |
H A D | vector_float_tests.c | 51 float zb[100]; in test_vec_copyf() local 58 zb[i] = -0.5f; in test_vec_copyf() 64 if (za[i] != zb[i]) in test_vec_copyf() 111 float zb[100]; in test_vec_negatef() local 118 zb[i] = -0.5f; in test_vec_negatef() 171 float zb[100]; in test_vec_zerof() local 177 zb[i] = -1.0f; in test_vec_zerof() 229 float zb[100]; in test_vec_setf() local 235 zb[i] = -1.0f; in test_vec_setf() 560 float zb[100]; in test_vec_scaledxy_addf() local [all …]
|
/dports/comms/spandsp/spandsp-284fe91/tests/ |
H A D | vector_float_tests.c | 51 float zb[100]; in test_vec_copyf() local 58 zb[i] = -0.5f; in test_vec_copyf() 64 if (za[i] != zb[i]) in test_vec_copyf() 111 float zb[100]; in test_vec_negatef() local 118 zb[i] = -0.5f; in test_vec_negatef() 171 float zb[100]; in test_vec_zerof() local 177 zb[i] = -1.0f; in test_vec_zerof() 229 float zb[100]; in test_vec_setf() local 235 zb[i] = -1.0f; in test_vec_setf() 560 float zb[100]; in test_vec_scaledxy_addf() local [all …]
|
/dports/math/arb/arb-2.21.1/mag/test/ |
H A D | t-fast_addmul.c | 27 mag_t xb, yb, zb; in main() local 37 mag_init(zb); in main() 56 MAG_CHECK_BITS(zb) in main() 73 mag_set(zb, xb); in main() 74 mag_fast_addmul(zb, zb, yb); in main() 79 MAG_CHECK_BITS(zb) in main() 96 mag_set(zb, yb); in main() 97 mag_fast_addmul(zb, xb, zb); in main() 119 mag_set(zb, xb); in main() 120 mag_fast_addmul(zb, zb, zb); in main() [all …]
|