/openbmc/linux/crypto/ |
H A D | ecdh_helper.c | 15 static inline u8 *ecdh_pack_data(void *dst, const void *src, size_t sz) in ecdh_pack_data() argument 17 memcpy(dst, src, sz); in ecdh_pack_data() 18 return dst + sz; in ecdh_pack_data() 21 static inline const u8 *ecdh_unpack_data(void *dst, const void *src, size_t sz) in ecdh_unpack_data() argument 23 memcpy(dst, src, sz); in ecdh_unpack_data() 24 return src + sz; in ecdh_unpack_data()
|
/openbmc/linux/fs/smb/server/ |
H A D | ndr.c | 78 if (n->length <= n->offset + sz) { in ndr_write_bytes() 86 memcpy(ndr_get_field(n), value, sz); in ndr_write_bytes() 87 n->offset += sz; in ndr_write_bytes() 93 size_t sz; in ndr_write_string() local 95 sz = strlen(value) + 1; in ndr_write_string() 96 if (n->length <= n->offset + sz) { in ndr_write_string() 104 memcpy(ndr_get_field(n), value, sz); in ndr_write_string() 105 n->offset += sz; in ndr_write_string() 114 if (n->offset + sz > n->length) in ndr_read_string() 128 if (n->offset + sz > n->length) in ndr_read_bytes() [all …]
|
/openbmc/linux/arch/x86/include/asm/uv/ |
H A D | bios.h | 187 extern s64 uv_bios_get_master_nasid(u64 sz, u64 *nasid); 188 extern s64 uv_bios_get_heapsize(u64 nasid, u64 sz, u64 *heap_sz); 189 extern s64 uv_bios_install_heap(u64 nasid, u64 sz, u64 *heap); 190 extern s64 uv_bios_obj_count(u64 nasid, u64 sz, u64 *objcnt); 191 extern s64 uv_bios_enum_objs(u64 nasid, u64 sz, u64 *objbuf); 192 extern s64 uv_bios_enum_ports(u64 nasid, u64 obj_id, u64 sz, u64 *portbuf); 193 extern s64 uv_bios_get_geoinfo(u64 nasid, u64 sz, u64 *geo); 194 extern s64 uv_bios_get_pci_topology(u64 sz, u64 *buf);
|
/openbmc/linux/net/tls/ |
H A D | tls_strp.c | 215 int sz; in tls_strp_copyin_frag() local 234 if (sz < 0) in tls_strp_copyin_frag() 235 return sz; in tls_strp_copyin_frag() 238 if (unlikely(sz && sz < skb->len)) { in tls_strp_copyin_frag() 286 int sz; in tls_strp_copyin_skb() local 314 if (sz < 0) in tls_strp_copyin_skb() 315 return sz; in tls_strp_copyin_skb() 318 if (unlikely(sz && sz < skb->len)) { in tls_strp_copyin_skb() 501 int sz, inq; in tls_strp_read_sock() local 517 if (sz < 0) { in tls_strp_read_sock() [all …]
|
/openbmc/linux/tools/perf/arch/x86/tests/ |
H A D | sample-parsing.c | 56 size_t i, sz, bufsz; in do_test() local 59 sz = perf_event__sample_event_size(&sample, sample_type, 0); in do_test() 60 bufsz = sz + 4096; /* Add a bit for overrun checking */ in do_test() 70 event->header.size = sz; in do_test() 84 if (i != sz) { in do_test() 86 i, sz); in do_test()
|
/openbmc/u-boot/drivers/pci/ |
H A D | fsl_pci_init.c | 50 u32 sz = (__ilog2_u64(size) - 1); in set_inbound_window() local 68 out_be32(&pi->piwar, flag | sz); in set_inbound_window() 101 if ((bus_start + sz) > out_lo) { in fsl_pci_setup_inbound_windows() 102 sz = out_lo - bus_start; in fsl_pci_setup_inbound_windows() 122 if (pci_sz != sz) in fsl_pci_setup_inbound_windows() 123 sz = 2ull << __ilog2_u64(sz); in fsl_pci_setup_inbound_windows() 135 sz -= pci_sz; in fsl_pci_setup_inbound_windows() 140 if (sz) { in fsl_pci_setup_inbound_windows() 147 sz -= pci_sz; in fsl_pci_setup_inbound_windows() 175 if (sz) { in fsl_pci_setup_inbound_windows() [all …]
|
/openbmc/u-boot/lib/efi_loader/ |
H A D | efi_device_path.c | 63 memset(buf, 0, sz); in dp_alloc() 231 efi_uintn_t sz = 0; in efi_dp_instance_size() local 236 sz += dp->length; in efi_dp_instance_size() 240 return sz; in efi_dp_instance_size() 266 ndp = dp_alloc(sz); in efi_dp_dup() 269 memcpy(ndp, dp, sz); in efi_dp_dup() 316 memcpy(p, node, sz); in efi_dp_append_node() 325 memcpy(p, dp, sz); in efi_dp_append_node() 353 size_t sz, szi; in efi_dp_append_instance() local 367 p = (void *)p + sz; in efi_dp_append_instance() [all …]
|
/openbmc/linux/drivers/media/pci/cx18/ |
H A D | cx18-firmware.c | 137 int sz; in load_apu_fw_direct() local 149 sz = fw->size; in load_apu_fw_direct() 170 if (offset + seghdr.size > sz) in load_apu_fw_direct() 371 int sz, retries; in cx18_firmware_init() local 393 if (sz <= 0) in cx18_firmware_init() 394 return sz; in cx18_firmware_init() 400 sz = load_apu_fw_direct(CX18_APU_FIRMWARE, cx->enc_mem, cx, in cx18_firmware_init() 402 if (sz <= 0) in cx18_firmware_init() 403 return sz; in cx18_firmware_init() 436 if (sz < 0) in cx18_firmware_init() [all …]
|
/openbmc/linux/arch/mips/tools/ |
H A D | loongson3-llsc-check.c | 141 static int check_ll(uint64_t pc, uint32_t *code, size_t sz) in check_ll() argument 157 max = sz / 4; in check_ll() 196 static int check_code(uint64_t pc, uint32_t *code, size_t sz) in check_code() argument 200 if (sz % 4) { in check_code() 204 sz -= (sz % 4); in check_code() 216 sz -= 4 \ in check_code() 226 for (; sz; advance()) { in check_code() 228 err |= check_ll(pc, code, sz); in check_code()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | bpf.h | 41 size_t sz; /* size of this struct for forward/backward compatibility */ member 65 size_t sz; /* size of this struct for forward/backward compatibility */ member 121 size_t sz; /* size of this struct for forward/backward compatibility */ member 156 size_t sz; /* size of this struct for forward/backward compatibility */ member 288 size_t sz; /* size of this struct for forward/backward compatibility */ member 302 size_t sz; /* size of this struct for forward/backward compatibility */ member 322 size_t sz; /* size of this struct for forward/backward compatibility */ member 336 size_t sz; /* size of this struct for forward/backward compatibility */ member 379 size_t sz; /* size of this struct for forward/backward compatibility */ member 430 size_t sz; /* size of this struct for forward/backward compatibility */ member [all …]
|
/openbmc/linux/arch/riscv/mm/ |
H A D | hugetlbpage.c | 33 unsigned long sz) in huge_pte_alloc() argument 51 if (sz == PUD_SIZE) { in huge_pte_alloc() 56 if (sz == PMD_SIZE) { in huge_pte_alloc() 86 unsigned long sz) in huge_pte_offset() argument 104 if (sz == PUD_SIZE) in huge_pte_offset() 112 if (sz == PMD_SIZE) in huge_pte_offset() 227 unsigned long sz) in set_huge_pte_at() argument 232 if (sz >= PGDIR_SIZE) in set_huge_pte_at() 234 else if (sz >= P4D_SIZE) in set_huge_pte_at() 236 else if (sz >= PUD_SIZE) in set_huge_pte_at() [all …]
|
/openbmc/qemu/target/loongarch/tcg/ |
H A D | op_helper.c | 64 target_ulong helper_crc32(target_ulong val, target_ulong m, uint64_t sz) in helper_crc32() argument 67 target_ulong mask = ((sz * 8) == 64) ? -1ULL : ((1ULL << (sz * 8)) - 1); in helper_crc32() 71 return (int32_t) (crc32(val ^ 0xffffffff, buf, sz) ^ 0xffffffff); in helper_crc32() 74 target_ulong helper_crc32c(target_ulong val, target_ulong m, uint64_t sz) in helper_crc32c() argument 77 target_ulong mask = ((sz * 8) == 64) ? -1ULL : ((1ULL << (sz * 8)) - 1); in helper_crc32c() 80 return (int32_t) (crc32c(val, buf, sz) ^ 0xffffffff); in helper_crc32c()
|
/openbmc/linux/drivers/dma/dw-edma/ |
H A D | dw-edma-pcie.c | 30 .sz = c, \ 36 size_t sz; member 59 .rg.sz = 0x00002000, /* 8 Kbytes */ 250 ll_region->sz = ll_block->sz; in dw_edma_pcie_probe() 259 dt_region->sz = dt_block->sz; in dw_edma_pcie_probe() 275 ll_region->sz = ll_block->sz; in dw_edma_pcie_probe() 284 dt_region->sz = dt_block->sz; in dw_edma_pcie_probe() 305 vsec_data.ll_wr[i].off, chip->ll_region_wr[i].sz, in dw_edma_pcie_probe() 310 vsec_data.dt_wr[i].off, chip->dt_region_wr[i].sz, in dw_edma_pcie_probe() 317 vsec_data.ll_rd[i].off, chip->ll_region_rd[i].sz, in dw_edma_pcie_probe() [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/selftests/ |
H A D | i915_syncmap.c | 30 char *buf, unsigned long *sz, in __sync_print() argument 43 len = scnprintf(buf, *sz, "| "); in __sync_print() 45 len = scnprintf(buf, *sz, " "); in __sync_print() 47 *sz -= len; in __sync_print() 51 *sz -= len; in __sync_print() 57 *sz -= len; in __sync_print() 66 *sz -= len; in __sync_print() 69 *sz += 1; in __sync_print() 72 len = scnprintf(buf, *sz, "\n"); in __sync_print() 74 *sz -= len; in __sync_print() [all …]
|
/openbmc/qemu/target/rx/ |
H A D | op_helper.c | 237 void helper_sstr(CPURXState *env, uint32_t sz) in helper_sstr() argument 239 tcg_debug_assert(sz < 3); in helper_sstr() 242 env->regs[1] += 1 << sz; in helper_sstr() 285 void helper_suntil(CPURXState *env, uint32_t sz) in helper_suntil() argument 288 tcg_debug_assert(sz < 3); in helper_suntil() 294 env->regs[1] += 1 << sz; in helper_suntil() 307 tcg_debug_assert(sz < 3); in helper_swhile() 313 env->regs[1] += 1 << sz; in helper_swhile() 324 void helper_rmpa(CPURXState *env, uint32_t sz) in helper_rmpa() argument 356 env->regs[1] += 1 << sz; in helper_rmpa() [all …]
|
/openbmc/qemu/scsi/ |
H A D | pr-manager-helper.c | 53 void *buf, int sz, Error **errp) in pr_manager_helper_read() argument 55 ssize_t r = qio_channel_read_all(pr_mgr->ioc, buf, sz, errp); in pr_manager_helper_read() 70 const void *buf, int sz, Error **errp) in pr_manager_helper_write() argument 73 while (sz > 0) { in pr_manager_helper_write() 78 iov.iov_len = sz; in pr_manager_helper_write() 92 sz -= n_written; in pr_manager_helper_write() 220 resp.sz = be32_to_cpu(resp.sz); in pr_manager_helper_run() 222 assert(resp.sz <= io_hdr->dxfer_len); in pr_manager_helper_run() 223 ret = pr_manager_helper_read(pr_mgr, io_hdr->dxferp, resp.sz, NULL); in pr_manager_helper_run() 227 io_hdr->resid = io_hdr->dxfer_len - resp.sz; in pr_manager_helper_run() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/benchs/ |
H A D | bench_strncmp.c | 63 size_t i, sz; in strncmp_setup() local 65 sz = sizeof(ctx.skel->rodata->target); in strncmp_setup() 66 if (!sz || sz < sizeof(ctx.skel->bss->str)) { in strncmp_setup() 68 sz, sizeof(ctx.skel->bss->str)); in strncmp_setup() 82 for (i = 0; i < sz - 1; i++) in strncmp_setup() 84 target[sz - 1] = '\0'; in strncmp_setup()
|
/openbmc/linux/tools/lib/subcmd/ |
H A D | exec-cmd.c | 39 static const char *get_pwd_cwd(char *buf, size_t sz) in get_pwd_cwd() argument 43 if (getcwd(buf, sz) == NULL) in get_pwd_cwd() 51 strlcpy(buf, pwd, sz); in get_pwd_cwd() 57 static const char *make_nonrelative_path(char *buf, size_t sz, const char *path) in make_nonrelative_path() argument 60 if (strlcpy(buf, path, sz) >= sz) in make_nonrelative_path() 63 const char *cwd = get_pwd_cwd(buf, sz); in make_nonrelative_path() 68 if (strlen(cwd) + strlen(path) + 2 >= sz) in make_nonrelative_path()
|
/openbmc/qemu/target/arm/tcg/ |
H A D | vfp-uncond.decode | 48 vm=%vm_sp vn=%vn_sp vd=%vd_sp sz=1 50 vm=%vm_sp vn=%vn_sp vd=%vd_sp sz=2 52 vm=%vm_dp vn=%vn_dp vd=%vd_dp sz=3 64 vm=%vm_sp vd=%vd_sp sz=1 66 vm=%vm_sp vd=%vd_sp sz=2 68 vm=%vm_dp vd=%vd_dp sz=3 72 vm=%vm_sp vd=%vd_sp sz=1 74 vm=%vm_sp vd=%vd_sp sz=2 76 vm=%vm_dp vd=%vd_sp sz=3
|
/openbmc/u-boot/arch/mips/lib/ |
H A D | cache_init.S | 44 .macro l1_info sz, line_sz, off 53 move \sz, zero 55 li \sz, 2 56 sllv \line_sz, \sz, \line_sz 59 srl \sz, $1, \off + MIPS_CONF1_DA_SHF - MIPS_CONF1_DA_SHF 60 andi \sz, \sz, (MIPS_CONF1_DA >> MIPS_CONF1_DA_SHF) 61 addiu \sz, \sz, 1 64 mul \sz, \sz, \line_sz 73 sllv \sz, \sz, $1 77 mul \sz, \sz, $1
|
/openbmc/linux/fs/ntfs3/ |
H A D | attrlist.c | 129 u16 sz; in al_enumerate() local 135 sz = le16_to_cpu(le->size); in al_enumerate() 136 if (sz < le_min_size) { in al_enumerate() 140 le = Add2Ptr(le, sz); in al_enumerate() 150 sz = le16_to_cpu(le->size); in al_enumerate() 153 if (sz < le_min_size || off + sz > ni->attr_list.size || in al_enumerate() 294 u16 sz; in al_add_le() local 302 sz = le_size(name_len); in al_add_le() 304 new_size = old_size + sz; in al_add_le() 324 memmove(Add2Ptr(le, sz), le, old_size - off); in al_add_le() [all …]
|
/openbmc/linux/arch/arm64/mm/ |
H A D | hugetlbpage.c | 291 if (sz == PUD_SIZE) { in huge_pte_alloc() 293 } else if (sz == (CONT_PTE_SIZE)) { in huge_pte_alloc() 298 WARN_ON(addr & (sz - 1)); in huge_pte_alloc() 300 } else if (sz == PMD_SIZE) { in huge_pte_alloc() 305 } else if (sz == (CONT_PMD_SIZE)) { in huge_pte_alloc() 307 WARN_ON(addr & (sz - 1)); in huge_pte_alloc() 332 if (sz != PUD_SIZE && pud_none(pud)) in huge_pte_offset() 339 if (sz == CONT_PMD_SIZE) in huge_pte_offset() 344 if (!(sz == PMD_SIZE || sz == CONT_PMD_SIZE) && in huge_pte_offset() 350 if (sz == CONT_PTE_SIZE) in huge_pte_offset() [all …]
|
/openbmc/linux/drivers/hwtracing/stm/ |
H A D | p_basic.c | 18 ssize_t sz; in basic_write() local 20 sz = stm_data_write(data, m, c, true, buf, count); in basic_write() 21 if (sz > 0) in basic_write() 24 return sz; in basic_write()
|
/openbmc/u-boot/test/py/tests/ |
H A D | test_net.py | 155 sz = f.get('size', None) 156 if sz: 157 expected_text += '%d' % sz 195 sz = f.get('size', None) 196 if sz: 197 expected_text += '%d' % sz
|
/openbmc/linux/arch/sparc/include/asm/ |
H A D | io_32.h | 10 #define memset_io(d,c,sz) _memset_io(d,c,sz) argument 11 #define memcpy_fromio(d,s,sz) _memcpy_fromio(d,s,sz) argument 12 #define memcpy_toio(d,s,sz) _memcpy_toio(d,s,sz) argument
|