/openbmc/linux/tools/perf/arch/x86/util/ |
H A D | intel-bts.c | 169 size_t sz = opts->auxtrace_snapshot_size; in intel_bts_recording_options() local 171 sz = round_up(sz, page_size) / page_size; in intel_bts_recording_options() 172 opts->auxtrace_mmap_pages = roundup_pow_of_two(sz); in intel_bts_recording_options() 202 size_t sz = opts->auxtrace_mmap_pages * (size_t)page_size; in intel_bts_recording_options() local 210 if (sz < min_sz || !is_power_of_2(sz)) { in intel_bts_recording_options() 282 const size_t sz = sizeof(struct intel_bts_snapshot_ref); in intel_bts_alloc_snapshot_refs() local 292 refs = calloc(new_cnt, sz); in intel_bts_alloc_snapshot_refs() 296 memcpy(refs, btsr->snapshot_refs, cnt * sz); in intel_bts_alloc_snapshot_refs()
|
H A D | header.c | 26 __get_cpuid(char *buffer, size_t sz, const char *fmt) in __get_cpuid() argument 50 nb = scnprintf(buffer, sz, fmt, vendor, family, model, step); in __get_cpuid() 61 get_cpuid(char *buffer, size_t sz) in get_cpuid() argument 63 return __get_cpuid(buffer, sz, "%s,%u,%u,%u$"); in get_cpuid()
|
/openbmc/linux/tools/perf/tests/ |
H A D | dlfilter-test.c | 128 ssize_t sz = sizeof(comm); in write_comm() local 132 comm.header.size = sz; in write_comm() 138 if (writen(fd, &comm, sz) != sz) { in write_comm() 152 ssize_t sz = sizeof(*mmap) - sizeof(mmap->filename) + fsz; in write_mmap() local 156 mmap->header.size = sz; in write_mmap() 165 if (writen(fd, mmap, sz) != sz) { in write_mmap() 222 static int get_dlfilters_path(const char *name, char *buf, size_t sz) in get_dlfilters_path() argument 241 strlcpy(buf, dirname(path), sz); in get_dlfilters_path()
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-eeprom-read.c | 292 int sz; in iwl_read_eeprom() local 306 sz = trans->trans_cfg->base_params->eeprom_size; in iwl_read_eeprom() 307 IWL_DEBUG_EEPROM(trans->dev, "NVM size = %d\n", sz); in iwl_read_eeprom() 309 e = kmalloc(sz, GFP_KERNEL); in iwl_read_eeprom() 346 for (addr = validblockaddr; addr < validblockaddr + sz; in iwl_read_eeprom() 358 for (addr = 0; addr < sz; addr += sizeof(u16)) { in iwl_read_eeprom() 383 *eeprom_size = sz; in iwl_read_eeprom()
|
/openbmc/linux/tools/testing/selftests/arm64/fp/ |
H A D | za-ptrace.c | 63 size_t sz = sizeof(*za); in get_za() local 67 if (*size < sz) { in get_za() 68 p = realloc(*buf, sz); in get_za() 75 *size = sz; in get_za() 79 iov.iov_len = sz; in get_za() 84 if (za->size <= sz) in get_za() 87 sz = za->size; in get_za()
|
H A D | zt-ptrace.c | 58 size_t sz = sizeof(*za); in get_za() local 62 if (*size < sz) { in get_za() 63 p = realloc(*buf, sz); in get_za() 70 *size = sz; in get_za() 74 iov.iov_len = sz; in get_za() 79 if (za->size <= sz) in get_za() 82 sz = za->size; in get_za()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | ringbuf_bench.c | 25 long sz; in get_flags() local 30 sz = bpf_ringbuf_query(&ringbuf, BPF_RB_AVAIL_DATA); in get_flags() 31 return sz >= wakeup_data_size ? BPF_RB_FORCE_WAKEUP : BPF_RB_NO_WAKEUP; in get_flags()
|
/openbmc/linux/tools/include/linux/ |
H A D | hashtable.h | 31 static inline void __hash_init(struct hlist_head *ht, unsigned int sz) in __hash_init() argument 35 for (i = 0; i < sz; i++) in __hash_init() 69 static inline bool __hash_empty(struct hlist_head *ht, unsigned int sz) in __hash_empty() argument 73 for (i = 0; i < sz; i++) in __hash_empty()
|
/openbmc/linux/tools/perf/util/ |
H A D | thread-stack.h | 87 size_t sz, u64 ip, u64 kernel_start); 89 struct ip_callchain *chain, size_t sz, u64 ip, 92 struct branch_stack *dst, unsigned int sz); 94 struct branch_stack *dst, unsigned int sz,
|
H A D | time-utils.h | 38 int timestamp__scnprintf_usec(u64 timestamp, char *buf, size_t sz); 39 int timestamp__scnprintf_nsec(u64 timestamp, char *buf, size_t sz); 41 int fetch_current_timestamp(char *buf, size_t sz);
|
H A D | hashmap.c | 48 map->sz = 0; in hashmap__init() 73 map->cap = map->cap_bits = map->sz = 0; in hashmap__clear() 87 return map->sz; in hashmap__size() 98 return (map->cap == 0) || ((map->sz + 1) * 4 / 3 > map->cap); in hashmap_needs_to_grow() 201 map->sz++; in hashmap_insert() 237 map->sz--; in hashmap_delete()
|
/openbmc/linux/tools/perf/arch/arm64/util/ |
H A D | header.c | 19 static int _get_cpuid(char *buf, size_t sz, struct perf_cpu_map *cpus) in _get_cpuid() argument 25 if (!sysfs || sz < MIDR_SIZE) in _get_cpuid() 58 int get_cpuid(char *buf, size_t sz) in get_cpuid() argument 66 ret = _get_cpuid(buf, sz, cpus); in get_cpuid()
|
/openbmc/linux/lib/zlib_inflate/ |
H A D | infutil.c | 9 int zlib_inflate_blob(void *gunzip_buf, unsigned int sz, in zlib_inflate_blob() argument 30 strm->avail_out = sz; in zlib_inflate_blob() 37 rc = sz - strm->avail_out; in zlib_inflate_blob()
|
/openbmc/linux/drivers/scsi/fcoe/ |
H A D | fcoe_sysfs.c | 144 return snprintf(buf, sz, format_string, \ 148 #define fcoe_fcf_show_function(field, format_string, sz, cast) \ argument 157 return snprintf(buf, sz, format_string, \ 179 #define fcoe_ctlr_private_rd_attr(field, format_string, sz) \ argument 180 fcoe_ctlr_private_show_function(field, format_string, sz, ) \ 184 #define fcoe_ctlr_rd_attr(field, format_string, sz) \ argument 185 fcoe_ctlr_show_function(field, format_string, sz, ) \ 189 #define fcoe_fcf_rd_attr(field, format_string, sz) \ argument 190 fcoe_fcf_show_function(field, format_string, sz, ) \ 194 #define fcoe_fcf_private_rd_attr(field, format_string, sz) \ argument [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/ |
H A D | msm_rd.c | 97 static void rd_write(struct msm_rd_state *rd, const void *buf, int sz) in rd_write() argument 102 while (sz > 0) { in rd_write() 114 n = min(sz, circ_space_to_end(&rd->fifo)); in rd_write() 118 sz -= n; in rd_write() 126 enum rd_sect_type type, const void *buf, int sz) in rd_write_section() argument 129 rd_write(rd, &sz, 4); in rd_write_section() 130 rd_write(rd, buf, sz); in rd_write_section() 134 size_t sz, loff_t *ppos) in rd_read() argument 152 n = min_t(int, sz, circ_count_to_end(&rd->fifo)); in rd_read()
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-mmio.c | 608 if (!is_power_of_2(sz)) in bgpio_init() 611 gc->bgpio_bits = sz * 8; in bgpio_init() 678 resource_size_t sz; in bgpio_map() local 684 sz = resource_size(r); in bgpio_map() 685 if (sz != sane_sz) in bgpio_map() 740 unsigned long sz; in bgpio_pdev_probe() local 759 sz = resource_size(r); in bgpio_pdev_probe() 761 dat = bgpio_map(pdev, "dat", sz); in bgpio_pdev_probe() 765 set = bgpio_map(pdev, "set", sz); in bgpio_pdev_probe() 769 clr = bgpio_map(pdev, "clr", sz); in bgpio_pdev_probe() [all …]
|
/openbmc/linux/drivers/mtd/tests/ |
H A D | speedtest.c | 89 size_t sz = pgsize * 2; in write_eraseblock_by_2pages() local 95 err = mtdtest_write(mtd, addr, sz, buf); in write_eraseblock_by_2pages() 98 addr += sz; in write_eraseblock_by_2pages() 99 buf += sz; in write_eraseblock_by_2pages() 133 size_t sz = pgsize * 2; in read_eraseblock_by_2pages() local 139 err = mtdtest_read(mtd, addr, sz, buf); in read_eraseblock_by_2pages() 142 addr += sz; in read_eraseblock_by_2pages() 143 buf += sz; in read_eraseblock_by_2pages()
|
/openbmc/linux/arch/arm64/include/asm/ |
H A D | atomic_ll_sc.h | 239 #define __CMPXCHG_CASE(w, sfx, name, sz, mb, acq, rel, cl, constraint) \ argument 240 static __always_inline u##sz \ 241 __ll_sc__cmpxchg_case_##name##sz(volatile void *ptr, \ 243 u##sz new) \ 246 u##sz oldval; \ 253 if (sz < 32) \ 254 old = (u##sz)old; \ 266 [v] "+Q" (*(u##sz *)ptr) \
|
/openbmc/u-boot/arch/arm/cpu/armv7/ |
H A D | virt-v7.c | 55 size_t sz = __secure_end - __secure_start; in relocate_secure_section() local 56 unsigned long szflush = ALIGN(sz + 1, CONFIG_SYS_CACHELINE_SIZE); in relocate_secure_section() 58 memcpy((void *)CONFIG_ARMV7_SECURE_BASE, __secure_start, sz); in relocate_secure_section()
|
/openbmc/linux/arch/xtensa/kernel/ |
H A D | pci-dma.c | 35 size_t sz = min_t(size_t, size, PAGE_SIZE - off); in do_cache_op() local 38 fn((unsigned long)vaddr + off, sz); in do_cache_op() 42 size -= sz; in do_cache_op()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | hashmap.c | 48 map->sz = 0; in hashmap__init() 73 map->cap = map->cap_bits = map->sz = 0; in hashmap__clear() 87 return map->sz; in hashmap__size() 98 return (map->cap == 0) || ((map->sz + 1) * 4 / 3 > map->cap); in hashmap_needs_to_grow() 201 map->sz++; in hashmap_insert() 237 map->sz--; in hashmap_delete()
|
H A D | libbpf_internal.h | 80 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument 81 BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_INT, 0, 0), sz), \ 86 #define BTF_TYPE_FLOAT_ENC(name, sz) \ argument 87 BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_FLOAT, 0, 0), sz) 215 static inline void libbpf_strlcpy(char *dst, const char *src, size_t sz) in libbpf_strlcpy() argument 219 if (sz == 0) in libbpf_strlcpy() 222 sz--; in libbpf_strlcpy() 223 for (i = 0; i < sz && src[i]; i++) in libbpf_strlcpy() 315 (opts)->sz, #type)) 317 ((opts) && opts->sz >= offsetofend(typeof(*(opts)), field)) [all …]
|
/openbmc/u-boot/arch/arc/lib/ |
H A D | cache.c | 319 static void __slc_rgn_op(unsigned long paddr, unsigned long sz, const int op) in __slc_rgn_op() argument 355 end = paddr + sz + gd->arch.slc_line_sz - 1; in __slc_rgn_op() 561 static inline void __dcache_line_loop(unsigned long paddr, unsigned long sz, in __dcache_line_loop() argument 570 sz += paddr & ~CACHE_LINE_MASK; in __dcache_line_loop() 573 num_lines = DIV_ROUND_UP(sz, gd->arch.l1_line_sz); in __dcache_line_loop() 624 static inline void __dc_line_op(unsigned long paddr, unsigned long sz, in __dc_line_op() argument 631 __dcache_line_loop(paddr, sz, cacheop); in __dc_line_op()
|
/openbmc/qemu/target/i386/hvf/ |
H A D | hvf-cpu.c | 52 int sz = hvf_get_supported_cpuid(0xd, i, R_EAX); in hvf_cpu_xsave_init() local 53 if (sz != 0) { in hvf_cpu_xsave_init() 54 assert(esa->size == sz); in hvf_cpu_xsave_init()
|
/openbmc/linux/drivers/net/ethernet/marvell/octeon_ep/ |
H A D | octep_ctrl_mbox.h | 82 u32 sz; member 96 u16 sz; member 114 u32 sz; member
|