Home
last modified time | relevance | path

Searched refs:packed_sz (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/uts/common/io/pciex/hotplug/
H A Dpcie_hp.c125 pcie_copyin_nvlist(char *packed_buf, size_t packed_sz, nvlist_t **nvlp) in pcie_copyin_nvlist() argument
131 if (packed_buf == NULL || packed_sz == 0) in pcie_copyin_nvlist()
135 if ((packed = kmem_alloc(packed_sz, KM_SLEEP)) == NULL) in pcie_copyin_nvlist()
138 if (copyin(packed_buf, packed, packed_sz) != 0) { in pcie_copyin_nvlist()
145 if ((ret = nvlist_unpack(packed, packed_sz, &dest, KM_SLEEP)) != 0) { in pcie_copyin_nvlist()
163 kmem_free(packed, packed_sz); in pcie_copyin_nvlist()
175 size_t packed_sz; in pcie_copyout_nvlist() local
181 if ((err = nvlist_pack(nvl, &buf, &packed_sz, NV_ENCODE_NATIVE, 0)) in pcie_copyout_nvlist()
195 if (packed_sz > *buf_sz) { in pcie_copyout_nvlist()
200 if (copyout(buf, packed_buf, packed_sz) != 0) { in pcie_copyout_nvlist()
[all …]
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_profile.c892 copyin_nvlist(char *packed_usr, size_t packed_sz, nvlist_t **nvlp) in copyin_nvlist() argument
899 if (packed_usr == NULL || packed_sz == 0) in copyin_nvlist()
903 packed = kmem_alloc(packed_sz, KM_NOSLEEP); in copyin_nvlist()
906 err = copyin(packed_usr, packed, packed_sz); in copyin_nvlist()
912 else if (err = nvlist_unpack(packed, packed_sz, &profile, KM_NOSLEEP)) in copyin_nvlist()
916 kmem_free(packed, packed_sz); in copyin_nvlist()
1049 devname_profile_update(char *packed, size_t packed_sz) in devname_profile_update() argument
1059 if ((err = copyin_nvlist(packed, packed_sz, &nvl)) != 0) in devname_profile_update()
/illumos-gate/usr/src/uts/common/sys/hotplug/pci/
H A Dpcie_hp.h440 extern int pcie_copyin_nvlist(char *packed_buf, size_t packed_sz,
443 size_t *packed_sz);