Searched refs:byte_sz (Results 1 – 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/drivers/mmc/core/ |
D | sdio_io.c | 236 unsigned int blk_sz, byte_sz; in sdio_align_size() local 281 byte_sz = _sdio_align_size(sz % func->cur_blksize); in sdio_align_size() 282 if (byte_sz <= sdio_max_byte_size(func)) { in sdio_align_size() 284 return blk_sz * func->cur_blksize + byte_sz; in sdio_align_size() 296 byte_sz = orig_sz % chunk_sz; in sdio_align_size() 297 if (byte_sz) { in sdio_align_size() 298 byte_sz = _sdio_align_size(byte_sz); in sdio_align_size() 301 return (orig_sz / chunk_sz) * chunk_sz + byte_sz; in sdio_align_size()
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
D | btf.h | 88 LIBBPF_API int btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding); 122 LIBBPF_API int btf__add_datasec(struct btf *btf, const char *name, __u32 byte_sz); 124 __u32 offset, __u32 byte_sz);
|
D | btf.c | 1569 int btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding) in btf__add_int() argument 1578 if (!byte_sz || (byte_sz & (byte_sz - 1)) || byte_sz > 16) in btf__add_int() 1602 t->size = byte_sz; in btf__add_int() 1604 *(__u32 *)(t + 1) = (encoding << 24) | (byte_sz * 8); in btf__add_int() 1770 int btf__add_struct(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_struct() argument 1772 return btf_add_composite(btf, BTF_KIND_STRUCT, name, byte_sz); in btf__add_struct() 1788 int btf__add_union(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_union() argument 1790 return btf_add_composite(btf, BTF_KIND_UNION, name, byte_sz); in btf__add_union() 1871 int btf__add_enum(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_enum() argument 1877 if (!byte_sz || (byte_sz & (byte_sz - 1)) || byte_sz > 8) in btf__add_enum() [all …]
|
D | libbpf.c | 5108 __u32 byte_off, byte_sz, bit_off, bit_sz, field_type_id; in bpf_core_calc_field_relo() local 5159 byte_sz = mt->size; in bpf_core_calc_field_relo() 5160 byte_off = bit_off / 8 / byte_sz * byte_sz; in bpf_core_calc_field_relo() 5162 while (bit_off + bit_sz - byte_off * 8 > byte_sz * 8) { in bpf_core_calc_field_relo() 5163 if (byte_sz >= 8) { in bpf_core_calc_field_relo() 5169 byte_sz *= 2; in bpf_core_calc_field_relo() 5170 byte_off = bit_off / 8 / byte_sz * byte_sz; in bpf_core_calc_field_relo() 5176 byte_sz = sz; in bpf_core_calc_field_relo() 5178 bit_sz = byte_sz * 8; in bpf_core_calc_field_relo() 5192 *field_sz = byte_sz; in bpf_core_calc_field_relo() [all …]
|