Lines Matching defs:buf
824 void *buf, *base, **pbuf;
831 buf = zalloc(dlif_tcpstat_zone);
832 if (buf == NULL) {
836 bzero(buf, dlif_tcpstat_bufsize);
839 base = (void *)P2ROUNDUP((intptr_t)buf + sizeof (u_int64_t),
842 ((intptr_t)buf + dlif_tcpstat_bufsize));
849 *pbuf = buf;
853 buf = zalloc(dlif_udpstat_zone);
854 if (buf == NULL) {
858 bzero(buf, dlif_udpstat_bufsize);
861 base = (void *)P2ROUNDUP((intptr_t)buf + sizeof (u_int64_t),
864 ((intptr_t)buf + dlif_udpstat_bufsize));
871 *pbuf = buf;
5296 void *buf, *base, **pbuf;
5328 buf = zalloc(dlif_zone);
5329 if (buf == NULL) {
5333 bzero(buf, dlif_bufsize);
5336 base = (void *)P2ROUNDUP((intptr_t)buf + sizeof (u_int64_t),
5338 VERIFY(((intptr_t)base + dlif_size) <= ((intptr_t)buf + dlif_bufsize));
5345 *pbuf = buf;