| /OK3568_Linux_fs/kernel/scripts/dtc/libfdt/ |
| H A D | fdt_ro.c | 34 const char *fdt_get_string(const void *fdt, int stroffset, int *lenp) in fdt_get_string() argument 45 if (lenp) in fdt_get_string() 46 *lenp = strlen(s); in fdt_get_string() 90 if (lenp) in fdt_get_string() 91 *lenp = n - s; in fdt_get_string() 95 if (lenp) in fdt_get_string() 96 *lenp = err; in fdt_get_string() 358 int *lenp) in fdt_get_property_by_offset_() argument 365 if (lenp) in fdt_get_property_by_offset_() 366 *lenp = err; in fdt_get_property_by_offset_() [all …]
|
| H A D | libfdt.h | 340 const char *fdt_get_string(const void *fdt, int stroffset, int *lenp); 545 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp); 644 int *lenp); 661 int namelen, int *lenp); 693 const char *name, int *lenp); 696 int *lenp) in fdt_get_property_w() argument 699 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w() 735 const char **namep, int *lenp); 751 const char *name, int namelen, int *lenp); 754 int *lenp) in fdt_getprop_namelen_w() argument [all …]
|
| /OK3568_Linux_fs/kernel/net/decnet/ |
| H A D | sysctl_net_decnet.c | 137 void *buffer, size_t *lenp, loff_t *ppos) in dn_node_address_handler() argument 143 if (!*lenp || (*ppos && !write)) { in dn_node_address_handler() 144 *lenp = 0; in dn_node_address_handler() 149 len = (*lenp < DN_ASCBUF_LEN) ? *lenp : (DN_ASCBUF_LEN-1); in dn_node_address_handler() 172 if (len > *lenp) in dn_node_address_handler() 173 len = *lenp; in dn_node_address_handler() 175 *lenp = len; in dn_node_address_handler() 182 void *buffer, size_t *lenp, loff_t *ppos) in dn_def_dev_handler() argument 188 if (!*lenp || (*ppos && !write)) { in dn_def_dev_handler() 189 *lenp = 0; in dn_def_dev_handler() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/parport/ |
| H A D | procfs.c | 37 void *result, size_t *lenp, loff_t *ppos) in do_active_device() argument 48 *lenp = 0; in do_active_device() 62 if (len > *lenp) in do_active_device() 63 len = *lenp; in do_active_device() 65 *lenp = len; in do_active_device() 74 void *result, size_t *lenp, loff_t *ppos) in do_autoprobe() argument 85 *lenp = 0; in do_autoprobe() 104 if (len > *lenp) in do_autoprobe() 105 len = *lenp; in do_autoprobe() 107 *lenp = len; in do_autoprobe() [all …]
|
| /OK3568_Linux_fs/kernel/kernel/ |
| H A D | sysctl.c | 210 void *buffer, size_t *lenp, loff_t *ppos) in bpf_stats_handler() argument 228 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in bpf_stats_handler() 245 void *buffer, size_t *lenp, loff_t *ppos) in bpf_unpriv_handler() argument 255 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in bpf_unpriv_handler() 275 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() argument 280 if (!data || !maxlen || !*lenp) { in _proc_do_string() 281 *lenp = 0; in _proc_do_string() 300 *ppos += *lenp; in _proc_do_string() 302 while ((p - buffer) < *lenp && len < maxlen - 1) { in _proc_do_string() 315 *lenp = 0; in _proc_do_string() [all …]
|
| H A D | watchdog.c | 766 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_common() argument 778 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common() 781 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common() 793 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog() argument 796 table, write, buffer, lenp, ppos); in proc_watchdog() 803 void *buffer, size_t *lenp, loff_t *ppos) in proc_nmi_watchdog() argument 808 table, write, buffer, lenp, ppos); in proc_nmi_watchdog() 815 void *buffer, size_t *lenp, loff_t *ppos) in proc_soft_watchdog() argument 818 table, write, buffer, lenp, ppos); in proc_soft_watchdog() 825 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_thresh() argument [all …]
|
| /OK3568_Linux_fs/u-boot/lib/ |
| H A D | gzip.c | 39 int gzip(void *dst, unsigned long *lenp, in gzip() argument 42 return zzip(dst, lenp, src, srclen, 1, NULL); in gzip() 48 int zzip(void *dst, unsigned long *lenp, unsigned char *src, in zzip() argument 64 orig = *lenp; in zzip() 87 left_len = (*lenp > CONFIG_GZIP_COMPRESS_DEF_SZ) ? in zzip() 88 CONFIG_GZIP_COMPRESS_DEF_SZ : *lenp; in zzip() 99 *lenp -= (left_len - s.avail_out); in zzip() 106 } while (s.avail_out == 0 && (*lenp > 0)); in zzip() 112 if (*lenp == 0) { in zzip() 125 *lenp = orig - *lenp; in zzip()
|
| H A D | gunzip.c | 74 int gunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp) in gunzip() argument 76 int offset = gzip_parse_header(src, *lenp); in gunzip() 84 ret = misc_decompress_process((ulong)dst, (ulong)src, *lenp, in gunzip() 85 DECOM_GZIP, false, (u64 *)lenp, 0); in gunzip() 91 return zunzip(dst, dstlen, src, lenp, 1, offset); in gunzip() 287 int zunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp, in zunzip() argument 303 s.avail_in = *lenp - offset; in zunzip() 315 *lenp = s.next_out - (unsigned char *) dst; in zunzip()
|
| /OK3568_Linux_fs/kernel/net/sunrpc/ |
| H A D | sysctl.c | 63 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_xprt() argument 69 *lenp = 0; in proc_do_xprt() 73 len = memory_read_from_buffer(buffer, *lenp, ppos, tmpbuf, len); in proc_do_xprt() 76 *lenp = 0; in proc_do_xprt() 79 *lenp = len; in proc_do_xprt() 84 proc_dodebug(struct ctl_table *table, int write, void *buffer, size_t *lenp, in proc_dodebug() argument 92 if ((*ppos && !write) || !*lenp) { in proc_dodebug() 93 *lenp = 0; in proc_dodebug() 97 left = *lenp; in proc_dodebug() 140 *lenp -= left; in proc_dodebug() [all …]
|
| /OK3568_Linux_fs/u-boot/scripts/dtc/libfdt/ |
| H A D | fdt_ro.c | 273 int *lenp) in fdt_get_property_by_offset() argument 279 if (lenp) in fdt_get_property_by_offset() 280 *lenp = err; in fdt_get_property_by_offset() 286 if (lenp) in fdt_get_property_by_offset() 287 *lenp = fdt32_to_cpu(prop->len); in fdt_get_property_by_offset() 295 int namelen, int *lenp) in fdt_get_property_namelen() argument 302 if (!(prop = fdt_get_property_by_offset(fdt, offset, lenp))) { in fdt_get_property_namelen() 311 if (lenp) in fdt_get_property_namelen() 312 *lenp = offset; in fdt_get_property_namelen() 318 const char *name, int *lenp) in fdt_get_property() argument [all …]
|
| H A D | libfdt.h | 449 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp); 545 int *lenp); 562 int namelen, int *lenp); 594 const char *name, int *lenp); 597 int *lenp) in fdt_get_property_w() argument 600 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w() 636 const char **namep, int *lenp); 652 const char *name, int namelen, int *lenp); 655 int *lenp) in fdt_getprop_namelen_w() argument 658 namelen, lenp); in fdt_getprop_namelen_w() [all …]
|
| /OK3568_Linux_fs/u-boot/lib/libfdt/ |
| H A D | fdt_ro.c | 252 int *lenp) in fdt_get_property_by_offset() argument 258 if (lenp) in fdt_get_property_by_offset() 259 *lenp = err; in fdt_get_property_by_offset() 265 if (lenp) in fdt_get_property_by_offset() 266 *lenp = fdt32_to_cpu(prop->len); in fdt_get_property_by_offset() 274 int namelen, int *lenp) in fdt_get_property_namelen() argument 281 if (!(prop = fdt_get_property_by_offset(fdt, offset, lenp))) { in fdt_get_property_namelen() 290 if (lenp) in fdt_get_property_namelen() 291 *lenp = offset; in fdt_get_property_namelen() 297 const char *name, int *lenp) in fdt_get_property() argument [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/sched/ |
| H A D | sysctl.h | 23 void *buffer, size_t *lenp, loff_t *ppos); 55 void *buffer, size_t *lenp, loff_t *ppos); 88 size_t *lenp, loff_t *ppos); 90 size_t *lenp, loff_t *ppos); 92 void *buffer, size_t *lenp, loff_t *ppos); 94 size_t *lenp, loff_t *ppos); 96 size_t *lenp, loff_t *ppos); 102 size_t *lenp, loff_t *ppos); 108 void *buffer, size_t *lenp, loff_t *ppos);
|
| /OK3568_Linux_fs/kernel/net/core/ |
| H A D | sysctl_net_core.c | 50 void *buffer, size_t *lenp, loff_t *ppos) in rps_sock_flow_sysctl() argument 68 ret = proc_dointvec(&tmp, write, buffer, lenp, ppos); in rps_sock_flow_sysctl() 120 void *buffer, size_t *lenp, loff_t *ppos) in flow_limit_cpu_sysctl() argument 162 if (*ppos || !*lenp) { in flow_limit_cpu_sysctl() 163 *lenp = 0; in flow_limit_cpu_sysctl() 176 len = min(sizeof(kbuf) - 1, *lenp); in flow_limit_cpu_sysctl() 179 *lenp = 0; in flow_limit_cpu_sysctl() 182 if (len < *lenp) in flow_limit_cpu_sysctl() 185 *lenp = len; in flow_limit_cpu_sysctl() 195 void *buffer, size_t *lenp, loff_t *ppos) in flow_limit_table_len_sysctl() argument [all …]
|
| /OK3568_Linux_fs/kernel/ipc/ |
| H A D | ipc_sysctl.c | 27 void *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec() argument 34 return proc_dointvec(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_dointvec() 38 void *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec_minmax() argument 45 return proc_dointvec_minmax(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_dointvec_minmax() 49 void *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec_minmax_orphans() argument 52 int err = proc_ipc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_ipc_dointvec_minmax_orphans() 62 void *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_doulongvec_minmax() argument 69 lenp, ppos); in proc_ipc_doulongvec_minmax() 73 void *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_auto_msgmni() argument 84 return proc_dointvec_minmax(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_auto_msgmni() [all …]
|
| /OK3568_Linux_fs/kernel/net/sctp/ |
| H A D | sysctl.c | 46 void *buffer, size_t *lenp, loff_t *ppos); 48 void *buffer, size_t *lenp, loff_t *ppos); 50 size_t *lenp, loff_t *ppos); 52 void *buffer, size_t *lenp, loff_t *ppos); 54 void *buffer, size_t *lenp, loff_t *ppos); 341 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_hmac_alg() argument 360 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_hmac_alg() 386 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_rto_min() argument 402 ret = proc_dointvec(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_rto_min() 414 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_rto_max() argument [all …]
|
| /OK3568_Linux_fs/kernel/arch/s390/mm/ |
| H A D | cmm.c | 247 void *buffer, size_t *lenp, loff_t *ppos) in cmm_pages_handler() argument 257 rc = proc_doulongvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in cmm_pages_handler() 266 void *buffer, size_t *lenp, in cmm_timed_pages_handler() argument 277 rc = proc_doulongvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in cmm_timed_pages_handler() 286 void *buffer, size_t *lenp, loff_t *ppos) in cmm_timeout_handler() argument 292 if (!*lenp || (*ppos && !write)) { in cmm_timeout_handler() 293 *lenp = 0; in cmm_timeout_handler() 298 len = min(*lenp, sizeof(buf)); in cmm_timeout_handler() 306 *ppos += *lenp; in cmm_timeout_handler() 310 if (len > *lenp) in cmm_timeout_handler() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/infineon/ |
| H A D | bcmxtlv.c | 96 const uint8 *lenp; in bcm_xtlv_len() local 99 lenp = (const uint8 *)&elt->len; /* nominal */ in bcm_xtlv_len() 101 --lenp; in bcm_xtlv_len() 105 len = *lenp; in bcm_xtlv_len() 109 len = ltoh16_ua(lenp); in bcm_xtlv_len() 207 uint8 *lenp = idp + sizeof(xtlv->id); in bcm_xtlv_pack_xtlv() local 209 htol16_ua_store(len, lenp); in bcm_xtlv_pack_xtlv() 210 data_buf = lenp + sizeof(uint16); in bcm_xtlv_pack_xtlv() 213 uint8 *lenp = idp + 1; in bcm_xtlv_pack_xtlv() local 215 *lenp = (uint8)len; in bcm_xtlv_pack_xtlv() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/ |
| H A D | bcmxtlv.c | 96 const uint8 *lenp; in bcm_xtlv_len() local 99 lenp = (const uint8 *)&elt->len; /* nominal */ in bcm_xtlv_len() 101 --lenp; in bcm_xtlv_len() 105 len = *lenp; in bcm_xtlv_len() 109 len = ltoh16_ua(lenp); in bcm_xtlv_len() 207 uint8 *lenp = idp + sizeof(xtlv->id); in bcm_xtlv_pack_xtlv() local 209 htol16_ua_store(len, lenp); in bcm_xtlv_pack_xtlv() 210 data_buf = lenp + sizeof(uint16); in bcm_xtlv_pack_xtlv() 213 uint8 *lenp = idp + 1; in bcm_xtlv_pack_xtlv() local 215 *lenp = (uint8)len; in bcm_xtlv_pack_xtlv() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/ |
| H A D | bcmxtlv.c | 96 const uint8 *lenp; in bcm_xtlv_len() local 99 lenp = (const uint8 *)&elt->len; /* nominal */ in bcm_xtlv_len() 101 --lenp; in bcm_xtlv_len() 105 len = *lenp; in bcm_xtlv_len() 109 len = ltoh16_ua(lenp); in bcm_xtlv_len() 207 uint8 *lenp = idp + sizeof(xtlv->id); in bcm_xtlv_pack_xtlv() local 209 htol16_ua_store(len, lenp); in bcm_xtlv_pack_xtlv() 210 data_buf = lenp + sizeof(uint16); in bcm_xtlv_pack_xtlv() 213 uint8 *lenp = idp + 1; in bcm_xtlv_pack_xtlv() local 215 *lenp = (uint8)len; in bcm_xtlv_pack_xtlv() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/ |
| H A D | bcmxtlv.c | 88 const uint8 *lenp; in bcm_xtlv_len() local 91 lenp = (const uint8 *)elt + OFFSETOF(bcm_xtlv_t, len); /* nominal */ in bcm_xtlv_len() 93 --lenp; in bcm_xtlv_len() 97 len = *lenp; in bcm_xtlv_len() 101 len = ltoh16_ua(lenp); in bcm_xtlv_len() 222 uint8 *lenp = idp + sizeof(xtlv->id); in BCMPOSTTRAPFN() local 224 htol16_ua_store(len, lenp); in BCMPOSTTRAPFN() 225 data_buf = lenp + sizeof(uint16); in BCMPOSTTRAPFN() 228 uint8 *lenp = idp + 1; in BCMPOSTTRAPFN() local 230 *lenp = (uint8)len; in BCMPOSTTRAPFN() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/ |
| H A D | bcmxtlv.c | 88 const uint8 *lenp; in bcm_xtlv_len() local 91 lenp = (const uint8 *)elt + OFFSETOF(bcm_xtlv_t, len); /* nominal */ in bcm_xtlv_len() 93 --lenp; in bcm_xtlv_len() 97 len = *lenp; in bcm_xtlv_len() 101 len = ltoh16_ua(lenp); in bcm_xtlv_len() 222 uint8 *lenp = idp + sizeof(xtlv->id); in BCMPOSTTRAPFN() local 224 htol16_ua_store(len, lenp); in BCMPOSTTRAPFN() 225 data_buf = lenp + sizeof(uint16); in BCMPOSTTRAPFN() 228 uint8 *lenp = idp + 1; in BCMPOSTTRAPFN() local 230 *lenp = (uint8)len; in BCMPOSTTRAPFN() [all …]
|
| /OK3568_Linux_fs/kernel/fs/xfs/ |
| H A D | xfs_sysctl.c | 17 size_t *lenp, in xfs_stats_clear_proc_handler() argument 22 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_stats_clear_proc_handler() 37 size_t *lenp, in xfs_panic_mask_proc_handler() argument 42 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_panic_mask_proc_handler() 58 size_t *lenp, in xfs_deprecate_irix_sgid_inherit_proc_handler() argument 66 return proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_deprecate_irix_sgid_inherit_proc_handler() 74 size_t *lenp, in xfs_deprecate_irix_symlink_mode_proc_handler() argument 82 return proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_deprecate_irix_symlink_mode_proc_handler()
|
| /OK3568_Linux_fs/kernel/arch/xtensa/boot/lib/ |
| H A D | zmem.c | 35 void gunzip (void *dst, int dstlen, unsigned char *src, int *lenp) in gunzip() argument 57 if (i >= *lenp) { in gunzip() 69 s.avail_in = *lenp - i; in gunzip() 77 *lenp = s.next_out - (unsigned char *) dst; in gunzip()
|
| /OK3568_Linux_fs/u-boot/scripts/dtc/ |
| H A D | util.c | 81 int lenp = strlen(path); in join_path() local 87 len = lenp + lenn + 2; in join_path() 88 if ((lenp > 0) && (path[lenp-1] == '/')) { in join_path() 94 memcpy(str, path, lenp); in join_path() 96 str[lenp] = '/'; in join_path() 97 lenp++; in join_path() 99 memcpy(str+lenp, name, lenn+1); in join_path()
|