Lines Matching refs:cookiep

75 					     void *cookiep);
823 bhnd_nvram_bcm_next(struct bhnd_nvram_data *nv, void **cookiep) in bhnd_nvram_bcm_next() argument
849 hvar = bhnd_nvram_bcm_to_hdrvar(bcm, *cookiep); in bhnd_nvram_bcm_next()
863 *cookiep = hvar_next; in bhnd_nvram_bcm_next()
873 if (*cookiep == NULL) { in bhnd_nvram_bcm_next()
878 envp = *cookiep; in bhnd_nvram_bcm_next()
919 *cookiep = &bcm->hvars[i]; in bhnd_nvram_bcm_next()
927 *cookiep = __DECONST(void *, envp); in bhnd_nvram_bcm_next()
971 bhnd_nvram_bcm_getvar(struct bhnd_nvram_data *nv, void *cookiep, void *buf, in bhnd_nvram_bcm_getvar() argument
974 return (bhnd_nvram_data_generic_rp_getvar(nv, cookiep, buf, len, type)); in bhnd_nvram_bcm_getvar()
978 bhnd_nvram_bcm_copy_val(struct bhnd_nvram_data *nv, void *cookiep, in bhnd_nvram_bcm_copy_val() argument
981 return (bhnd_nvram_data_generic_rp_copy_val(nv, cookiep, value)); in bhnd_nvram_bcm_copy_val()
985 bhnd_nvram_bcm_getvar_ptr(struct bhnd_nvram_data *nv, void *cookiep, in bhnd_nvram_bcm_getvar_ptr() argument
995 if ((hvar = bhnd_nvram_bcm_to_hdrvar(bcm, cookiep)) != NULL) { in bhnd_nvram_bcm_getvar_ptr()
1005 BHND_NV_ASSERT(cookiep != NULL, ("NULL cookiep")); in bhnd_nvram_bcm_getvar_ptr()
1007 envp = cookiep; in bhnd_nvram_bcm_getvar_ptr()
1016 bhnd_nvram_bcm_getvar_name(struct bhnd_nvram_data *nv, void *cookiep) in bhnd_nvram_bcm_getvar_name() argument
1024 if ((hvar = bhnd_nvram_bcm_to_hdrvar(bcm, cookiep)) != NULL) { in bhnd_nvram_bcm_getvar_name()
1029 return (cookiep); in bhnd_nvram_bcm_getvar_name()
1082 bhnd_nvram_bcm_to_hdrvar(struct bhnd_nvram_bcm *bcm, void *cookiep) in bhnd_nvram_bcm_to_hdrvar() argument
1093 if (cookiep < (void *)&bcm->hvars[0]) in bhnd_nvram_bcm_to_hdrvar()
1096 if (cookiep > (void *)&bcm->hvars[nitems(bcm->hvars)-1]) in bhnd_nvram_bcm_to_hdrvar()
1101 ptr = (uintptr_t)cookiep; in bhnd_nvram_bcm_to_hdrvar()
1104 ("misaligned hvar pointer %p/%p", cookiep, bcm->hvars)); in bhnd_nvram_bcm_to_hdrvar()
1107 return ((struct bhnd_nvram_bcm_hvar *)cookiep); in bhnd_nvram_bcm_to_hdrvar()