Home
last modified time | relevance | path

Searched refs:navail (Results 1 – 13 of 13) sorted by relevance

/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_iores.c162 const void **ptr, size_t nbytes, size_t *navail) in bhnd_nvram_iores_read_ptr() argument
170 void **ptr, size_t nbytes, size_t *navail) in bhnd_nvram_iores_write_ptr() argument
216 size_t navail; in bhnd_nvram_iores_read() local
223 navail = nbytes; in bhnd_nvram_iores_read()
224 if ((error = bhnd_nvram_iores_validate_req(iores, offset, &navail))) in bhnd_nvram_iores_read()
228 if (navail < nbytes) in bhnd_nvram_iores_read()
262 size_t navail; in bhnd_nvram_iores_write() local
270 navail = nbytes; in bhnd_nvram_iores_write()
271 if ((error = bhnd_nvram_iores_validate_req(iores, offset, &navail))) in bhnd_nvram_iores_write()
275 if (navail < nbytes) in bhnd_nvram_iores_write()
H A Dbhnd_nvram_ioptr.c139 size_t nbytes, size_t *navail) in bhnd_nvram_ioptr_ptr() argument
154 if (navail != NULL) in bhnd_nvram_ioptr_ptr()
155 *navail = avail; in bhnd_nvram_ioptr_ptr()
162 const void **ptr, size_t nbytes, size_t *navail) in bhnd_nvram_ioptr_read_ptr() argument
171 error = bhnd_nvram_ioptr_ptr(ioptr, offset, &writep, nbytes, navail); in bhnd_nvram_ioptr_read_ptr()
182 void **ptr, size_t nbytes, size_t *navail) in bhnd_nvram_ioptr_write_ptr() argument
193 return (bhnd_nvram_ioptr_ptr(ioptr, offset, ptr, nbytes, navail)); in bhnd_nvram_ioptr_write_ptr()
H A Dbhnd_nvram_iobuf.c254 size_t nbytes, size_t *navail) in bhnd_nvram_iobuf_ptr() argument
269 if (navail != NULL) in bhnd_nvram_iobuf_ptr()
270 *navail = avail; in bhnd_nvram_iobuf_ptr()
277 const void **ptr, size_t nbytes, size_t *navail) in bhnd_nvram_iobuf_read_ptr() argument
286 error = bhnd_nvram_iobuf_ptr(iobuf, offset, &ioptr, nbytes, navail); in bhnd_nvram_iobuf_read_ptr()
297 void **ptr, size_t nbytes, size_t *navail) in bhnd_nvram_iobuf_write_ptr() argument
304 return (bhnd_nvram_iobuf_ptr(iobuf, offset, ptr, nbytes, navail)); in bhnd_nvram_iobuf_write_ptr()
H A Dbhnd_nvram_io.c94 const void **ptr, size_t nbytes, size_t *navail) in bhnd_nvram_io_read_ptr() argument
96 return (io->iops->read_ptr(io, offset, ptr, nbytes, navail)); in bhnd_nvram_io_read_ptr()
152 size_t nbytes, size_t *navail) in bhnd_nvram_io_write_ptr() argument
154 return (io->iops->write_ptr(io, offset, ptr, nbytes, navail)); in bhnd_nvram_io_write_ptr()
H A Dbhnd_nvram_io.h71 size_t *navail);
77 size_t *navail);
H A Dbhnd_nvram_iovar.h44 const void **ptr, size_t nbytes, size_t *navail);
52 void **ptr, size_t nbytes, size_t *navail);
H A Dbhnd_nvram_data_btxt.c207 size_t navail, nleft; in bhnd_nvram_btxt_getvar_direct() local
210 navail = bhnd_nv_ummin(buflen - bufpos, nleft); in bhnd_nvram_btxt_getvar_direct()
212 if (strncmp(name+namepos, buf+bufpos, navail) == 0) { in bhnd_nvram_btxt_getvar_direct()
214 namepos += navail; in bhnd_nvram_btxt_getvar_direct()
215 bufpos += navail; in bhnd_nvram_btxt_getvar_direct()
H A Dbhnd_nvram_data_bcm.c245 size_t navail, nleft; in bhnd_nvram_bcm_getvar_direct_common() local
248 navail = bhnd_nv_ummin(buflen - bufpos, nleft); in bhnd_nvram_bcm_getvar_direct_common()
250 if (strncmp(name+namepos, buf+bufpos, navail) == 0) { in bhnd_nvram_bcm_getvar_direct_common()
252 namepos += navail; in bhnd_nvram_bcm_getvar_direct_common()
253 bufpos += navail; in bhnd_nvram_bcm_getvar_direct_common()
H A Dbhnd_nvram_data_tlv.c796 size_t navail; in bhnd_nvram_tlv_get_env() local
809 sizeof(env->hdr), &navail); in bhnd_nvram_tlv_get_env()
825 if (navail < sizeof(struct bhnd_nvram_tlv_env_hdr) + env->hdr.size || in bhnd_nvram_tlv_get_env()
/freebsd/sys/dev/cxgbe/
H A Dt4_vf.c322 int itype, iq_avail, navail, rc; in cfg_itype_and_nqueues() local
337 navail = pci_msix_count(sc->dev); in cfg_itype_and_nqueues()
339 navail = pci_msi_count(sc->dev); in cfg_itype_and_nqueues()
341 if (navail == 0) in cfg_itype_and_nqueues()
380 if (iaq->nirq + nports <= navail) { in cfg_itype_and_nqueues()
381 if (iq_avail > navail - iaq->nirq) in cfg_itype_and_nqueues()
382 iq_avail = navail - iaq->nirq; in cfg_itype_and_nqueues()
438 if (iaq->nirq <= navail && in cfg_itype_and_nqueues()
440 navail = iaq->nirq; in cfg_itype_and_nqueues()
442 rc = pci_alloc_msix(sc->dev, &navail); in cfg_itype_and_nqueues()
[all...]
H A Dt4_main.c4338 int navail) in calculate_iaq() argument
4344 MPASS(navail > 0); in calculate_iaq()
4377 if (iaq->nirq <= navail && in calculate_iaq()
4393 if (iaq->nirq <= navail && in calculate_iaq()
4401 itype, navail, iaq->nirq); in calculate_iaq()
4418 iaq->nnmrxq_vi, itype, navail, iaq->nirq); in calculate_iaq()
4437 if (iaq->nirq <= navail && in calculate_iaq()
4443 iaq->nofldrxq, itype, navail, iaq->nirq); in calculate_iaq()
4450 "itype %d, navail %u.\n", itype, navail); in calculate_iaq()
4477 int rc, itype, navail, nalloc; in cfg_itype_and_nqueues() local
[all …]
/freebsd/sys/powerpc/pseries/
H A Dplatform_chrp.c144 int nphys, navail; in chrp_attach() local
147 mem_regions(&phys, &nphys, &avail, &navail); in chrp_attach()
/freebsd/contrib/unbound/iterator/
H A Diterator.c2791 size_t naddr, nres, navail; in processQueryTargets() local
2814 delegpt_count_addr(iq->dp, &naddr, &nres, &navail); in processQueryTargets()