Searched refs:lenp (Results 1 - 25 of 33) sorted by relevance

12

/u-boot/include/
H A Dgzip.h29 * @lenp: Returns length of uncompressed data
32 int gunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp);
40 * @lenp: On entry, length data at @src. On exit, number of bytes used from @src
45 int zunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp,
83 * @lenp: On entry, space available in destination buffer (in bytes). On exit,
89 int gzip(void *dst, unsigned long *lenp, unsigned char *src, ulong srclen);
95 * @lenp: On entry, length data at @dst. On exit, number of bytes written to
102 int zzip(void *dst, ulong *lenp, unsigned char *src, ulong srclen,
H A Defi_variable.h155 * @lenp: pointer to length of buffer
161 efi_status_t __maybe_unused efi_var_collect(struct efi_var_file **bufp, loff_t *lenp,
344 efi_uintn_t *lenp,
/u-boot/lib/
H A Dgzip.c38 int gzip(void *dst, unsigned long *lenp, argument
41 return zzip(dst, lenp, src, srclen, 1, NULL);
47 int zzip(void *dst, unsigned long *lenp, unsigned char *src, argument
63 orig = *lenp;
86 left_len = (*lenp > CFG_GZIP_COMPRESS_DEF_SZ) ?
87 CFG_GZIP_COMPRESS_DEF_SZ : *lenp;
98 *lenp -= (left_len - s.avail_out);
105 } while (s.avail_out == 0 && (*lenp > 0));
111 if (*lenp == 0) {
124 *lenp
[all...]
H A Dgunzip.c74 int gunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp) argument
76 int offset = gzip_parse_header(src, *lenp);
81 return zunzip(dst, dstlen, src, lenp, 1, offset);
277 int zunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp, argument
293 s.avail_in = *lenp - offset;
305 *lenp = s.next_out - (unsigned char *) dst;
/u-boot/scripts/dtc/libfdt/
H A Dfdt_ro.c34 const char *fdt_get_string(const void *fdt, int stroffset, int *lenp) argument
45 if (lenp)
46 *lenp = strlen(s);
90 if (lenp)
91 *lenp = n - s;
95 if (lenp)
96 *lenp = err;
359 int *lenp)
365 if (lenp)
366 *lenp
357 fdt_get_property_by_offset_(const void *fdt, int offset, int *lenp) argument
378 fdt_get_property_by_offset(const void *fdt, int offset, int *lenp) argument
394 fdt_get_property_namelen_(const void *fdt, int offset, const char *name, int namelen, int *lenp, int *poffset) argument
425 fdt_get_property_namelen(const void *fdt, int offset, const char *name, int namelen, int *lenp) argument
443 fdt_get_property(const void *fdt, int nodeoffset, const char *name, int *lenp) argument
451 fdt_getprop_namelen(const void *fdt, int nodeoffset, const char *name, int namelen, int *lenp) argument
469 fdt_getprop_by_offset(const void *fdt, int offset, const char **namep, int *lenp) argument
502 fdt_getprop(const void *fdt, int nodeoffset, const char *name, int *lenp) argument
777 fdt_stringlist_get(const void *fdt, int nodeoffset, const char *property, int idx, int *lenp) argument
[all...]
H A Dlibfdt.h295 * @lenp: optional pointer to return the string's length
299 * returns the string's length in *lenp.
305 const char *fdt_get_string(const void *fdt, int stroffset, int *lenp);
491 * @lenp: pointer to an integer variable (will be overwritten) or NULL
494 * device tree node at structure block offset nodeoffset. If lenp is
496 * pointed to by lenp.
500 * If lenp is non-NULL, *lenp contains the length of that name
503 * if lenp is non-NULL *lenp contain
659 fdt_get_property_w(void *fdt, int nodeoffset, const char *name, int *lenp) argument
717 fdt_getprop_namelen_w(void *fdt, int nodeoffset, const char *name, int namelen, int *lenp) argument
756 fdt_getprop_w(void *fdt, int nodeoffset, const char *name, int *lenp) argument
[all...]
H A Dfdt.c156 const fdt32_t *tagp, *lenp; local
180 lenp = fdt_offset_ptr(fdt, offset, sizeof(*lenp));
181 if (fdt_chk_basic() && !lenp)
185 + fdt32_to_cpu(*lenp);
187 fdt_version(fdt) < 0x10 && fdt32_to_cpu(*lenp) >= 8 &&
188 ((offset - fdt32_to_cpu(*lenp)) % 8) != 0)
/u-boot/arch/sandbox/include/asm/
H A Du-boot-sandbox.h41 * @lenp: On entry, the size of the area to map, On exit it is updated
46 * can be accessed as @lenp bytes starting here
49 int pci_map_physmem(phys_addr_t paddr, unsigned long *lenp,
/u-boot/drivers/misc/
H A Dswap_case.c310 phys_addr_t addr, unsigned long *lenp, void **ptrp)
326 *lenp = 4;
330 *lenp = barinfo[1].size - 1;
335 *lenp = PCI_CAP_EA_SIZE_LO;
339 * This cannot be work on a 32-bit machine since *lenp is ulong
348 *lenp = (PCI_CAP_EA_SIZE_HI << 32) |
367 *lenp = 0;
369 *lenp = min(*lenp, (ulong)avail);
309 sandbox_swap_case_map_physmem(struct udevice *dev, phys_addr_t addr, unsigned long *lenp, void **ptrp) argument
H A Dp2sb_emul.c214 phys_addr_t addr, unsigned long *lenp,
241 *lenp = 4;
213 sandbox_p2sb_emul_map_physmem(struct udevice *dev, phys_addr_t addr, unsigned long *lenp, void **ptrp) argument
/u-boot/drivers/power/acpi_pmc/
H A Dpmc_emul.c183 phys_addr_t addr, unsigned long *lenp,
199 *lenp = 0;
201 *lenp = min(*lenp, (ulong)avail);
182 sandbox_pmc_emul_map_physmem(struct udevice *dev, phys_addr_t addr, unsigned long *lenp, void **ptrp) argument
/u-boot/scripts/dtc/
H A Dutil.c81 int lenp = strlen(path); local
87 len = lenp + lenn + 2;
88 if ((lenp > 0) && (path[lenp-1] == '/')) {
94 memcpy(str, path, lenp);
96 str[lenp] = '/';
97 lenp++;
99 memcpy(str+lenp, name, lenn+1);
/u-boot/lib/efi_loader/
H A Defi_var_mem.c248 * @lenp: buffer length
254 efi_var_collect_mem(struct efi_var_file *buf, efi_uintn_t *lenp, u32 mask) argument
279 if (buf && hdr.length <= *lenp) {
286 if (!buf && hdr.length <= *lenp) {
287 *lenp = hdr.length;
291 if (!buf || hdr.length > *lenp) {
292 *lenp = hdr.length;
299 *lenp = hdr.length;
H A Defi_var_common.c421 * @lenp: buffer length
426 efi_status_t __maybe_unused efi_var_collect(struct efi_var_file **bufp, loff_t *lenp, argument
485 *lenp = len;
/u-boot/include/dm/
H A Dof_access.h87 * @lenp: If non-NULL, returns length of property
91 const char *name, int *lenp);
100 * @lenp: If non-NULL, returns length of property
104 int *lenp);
138 * @lenp: place to put length on success
144 int *lenp);
H A Dread.h591 * @lenp: place to put length on success
595 int *lenp);
627 * @lenp: If non-NULL, place to put length on success
631 const char **propname, int *lenp);
1147 const char *propname, int *lenp)
1149 return ofnode_get_property(dev_ofnode(dev), propname, lenp);
1164 int *lenp)
1166 return ofprop_get_property(prop, propname, lenp);
1146 dev_read_prop(const struct udevice *dev, const char *propname, int *lenp) argument
1162 dev_read_prop_by_prop(struct ofprop *prop, const char **propname, int *lenp) argument
H A Dofnode.h806 * (on failure) will be stored in the integer pointer to by lenp.
1049 * @lenp: place to put length on success
1052 const void *ofnode_get_property(ofnode node, const char *propname, int *lenp);
1117 * @lenp: If non-NULL, place to put length on success, or error code on failure
1121 const char **propname, int *lenp);
/u-boot/arch/sandbox/lib/
H A Dpci_io.c16 int pci_map_physmem(phys_addr_t paddr, unsigned long *lenp, argument
30 ret = (ops->map_physmem)(dev, paddr, lenp, ptrp);
/u-boot/arch/mips/mach-octeon/include/mach/
H A Dcvmx-helper-fdt.h148 * @param[in,out] lenp Number of phandles, input max number
153 int cvmx_fdt_lookup_phandles(const void *fdt_addr, int node, const char *prop_name, int *lenp,
157 int *lenp, ofnode *nodes);
/u-boot/drivers/pci/
H A Dpcie_layerscape_gen4_fixup.c107 int lenp; local
121 prop = fdt_getprop_w(blob, nodeoff, "iommu-map", &lenp);
/u-boot/drivers/core/
H A Dof_access.c127 const char *name, int *lenp)
136 if (lenp)
137 *lenp = pp->length;
141 if (!pp && lenp)
142 *lenp = -FDT_ERR_NOTFOUND;
170 int *lenp)
172 struct property *pp = of_find_property(np, name, lenp);
197 int *lenp)
203 if (lenp)
204 *lenp
126 of_find_property(const struct device_node *np, const char *name, int *lenp) argument
169 of_get_property(const struct device_node *np, const char *name, int *lenp) argument
194 of_get_property_by_prop(const struct device_node *np, const struct property *property, const char **name, int *lenp) argument
[all...]
H A Dread.c327 int *lenp)
329 return ofnode_get_property(dev_ofnode(dev), propname, lenp);
343 const char **propname, int *lenp)
345 return ofprop_get_property(prop, propname, lenp);
326 dev_read_prop(const struct udevice *dev, const char *propname, int *lenp) argument
342 dev_read_prop_by_prop(struct ofprop *prop, const char **propname, int *lenp) argument
/u-boot/arch/mips/mach-octeon/
H A Dcvmx-helper-fdt.c39 int cvmx_ofnode_lookup_phandles(ofnode node, const char *prop_name, int *lenp, argument
51 if (count > *lenp)
52 count = *lenp;
57 *lenp = count;
/u-boot/drivers/video/
H A Dbmp.c37 struct bmp_image *gunzip_bmp(unsigned long addr, unsigned long *lenp, argument
/u-boot/net/
H A Dnet.c1002 static struct ip_udp_hdr *__net_defragment(struct ip_udp_hdr *ip, int *lenp) argument
1132 *lenp = total_len + IP_HDR_SIZE;
1133 localip->ip_len = htons(*lenp);
1138 int *lenp)
1143 return __net_defragment(ip, lenp);
1149 int *lenp)
1137 net_defragment(struct ip_udp_hdr *ip, int *lenp) argument
1148 net_defragment(struct ip_udp_hdr *ip, int *lenp) argument

Completed in 169 milliseconds

12