Lines Matching refs:bufsize

1574 nss_pack_dbd(void *buffer, size_t bufsize, nss_db_params_t *p, size_t *poff)  in nss_pack_dbd()  argument
1585 blen = bufsize - off; in nss_pack_dbd()
1644 nss_pack(void *buffer, size_t bufsize, nss_db_root_t *rootp __unused, in nss_pack() argument
1670 pbuf->pbufsiz = (nssuint_t)bufsize; in nss_pack()
1688 ret = nss_pack_dbd(buffer, bufsize, &tparam, &off); in nss_pack()
1697 blen = bufsize - off; in nss_pack()
1727 pbuf->data_len = (nssuint_t)(bufsize - off); in nss_pack()
1751 nss_pack_ent(void *buffer, size_t bufsize, nss_db_root_t *rootp __unused, in nss_pack_ent() argument
1767 pbuf->pbufsiz = (nssuint_t)bufsize; in nss_pack_ent()
1780 ret = nss_pack_dbd(buffer, bufsize, &contextp->param, &off); in nss_pack_ent()
1790 blen = bufsize - off; in nss_pack_ent()
1803 pbuf->data_len = (nssuint_t)(bufsize - off); in nss_pack_ent()
1824 nss_unpack(void *buffer, size_t bufsize __unused, nss_db_root_t *rootp __unused, in nss_unpack()
1924 nss_unpack_ent(void *buffer, size_t bufsize __unused, in nss_unpack_ent()
2002 size_t bufsize = 0; in _nsc_search() local
2016 bufsize = ((nss_XbyY_args_t *)search_args)->buf.buflen; in _nsc_search()
2017 if (_nsc_getdoorbuf(&doorptr, &bufsize) != 0) in _nsc_search()
2019 if (doorptr == NULL || bufsize == 0) in _nsc_search()
2026 status = nss_pack((void *)pbuf, bufsize, rootp, in _nsc_search()
2036 status = _nsc_trydoorcall_ext(&doorptr, &bufsize, &datasize); in _nsc_search()
2045 _nsc_resizedoorbuf(bufsize); in _nsc_search()
2046 (void) munmap((void *)doorptr, bufsize); in _nsc_search()
2053 status = nss_unpack((void *)doorptr, bufsize, rootp, initf, in _nsc_search()
2060 _nsc_resizedoorbuf(bufsize); in _nsc_search()
2061 (void) munmap((void *)doorptr, bufsize); in _nsc_search()
2079 size_t bufsize = 0; in _nsc_setent_u() local
2093 if (_nsc_getdoorbuf(&doorptr, &bufsize) != 0) { in _nsc_setent_u()
2097 if (doorptr == NULL || bufsize == 0) { in _nsc_setent_u()
2115 status = nss_pack_ent((void *)pbuf, bufsize, rootp, initf, contextpp); in _nsc_setent_u()
2122 status = _nsc_trydoorcall_ext(&doorptr, &bufsize, &datasize); in _nsc_setent_u()
2133 status = nss_unpack_ent((void *)doorptr, bufsize, rootp, in _nsc_setent_u()
2142 _nsc_resizedoorbuf(bufsize); in _nsc_setent_u()
2143 (void) munmap((void *)doorptr, bufsize); in _nsc_setent_u()
2156 size_t bufsize = 0; in _nsc_getent_u() local
2168 bufsize = ((nss_XbyY_args_t *)args)->buf.buflen; in _nsc_getent_u()
2169 if (_nsc_getdoorbuf(&doorptr, &bufsize) != 0) in _nsc_getent_u()
2171 if (doorptr == NULL || bufsize == 0) in _nsc_getent_u()
2178 status = nss_pack_ent((void *)pbuf, bufsize, rootp, initf, contextpp); in _nsc_getent_u()
2185 status = _nsc_trydoorcall_ext(&doorptr, &bufsize, &datasize); in _nsc_getent_u()
2202 status = nss_unpack_ent((void *)doorptr, bufsize, rootp, in _nsc_getent_u()
2209 _nsc_resizedoorbuf(bufsize); in _nsc_getent_u()
2210 (void) munmap((void *)doorptr, bufsize); in _nsc_getent_u()
2223 size_t bufsize = 0; in _nsc_endent_u() local
2233 if (_nsc_getdoorbuf(&doorptr, &bufsize) != 0) in _nsc_endent_u()
2235 if (doorptr == NULL || bufsize == 0) in _nsc_endent_u()
2243 status = nss_pack_ent((void *)pbuf, bufsize, rootp, initf, contextpp); in _nsc_endent_u()
2250 (void) _nsc_trydoorcall_ext(&doorptr, &bufsize, &datasize); in _nsc_endent_u()
2259 _nsc_resizedoorbuf(bufsize); in _nsc_endent_u()
2260 (void) munmap((void *)doorptr, bufsize); in _nsc_endent_u()