Searched refs:byte_sz (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.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()
|
/Linux-v5.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 | 1572 int btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding) in btf__add_int() argument 1581 if (!byte_sz || (byte_sz & (byte_sz - 1)) || byte_sz > 16) in btf__add_int() 1605 t->size = byte_sz; in btf__add_int() 1607 *(__u32 *)(t + 1) = (encoding << 24) | (byte_sz * 8); in btf__add_int() 1773 int btf__add_struct(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_struct() argument 1775 return btf_add_composite(btf, BTF_KIND_STRUCT, name, byte_sz); in btf__add_struct() 1791 int btf__add_union(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_union() argument 1793 return btf_add_composite(btf, BTF_KIND_UNION, name, byte_sz); in btf__add_union() 1874 int btf__add_enum(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_enum() argument 1880 if (!byte_sz || (byte_sz & (byte_sz - 1)) || byte_sz > 8) in btf__add_enum() [all …]
|
D | libbpf.c | 5051 __u32 byte_off, byte_sz, bit_off, bit_sz, field_type_id; in bpf_core_calc_field_relo() local 5102 byte_sz = mt->size; in bpf_core_calc_field_relo() 5103 byte_off = bit_off / 8 / byte_sz * byte_sz; in bpf_core_calc_field_relo() 5105 while (bit_off + bit_sz - byte_off * 8 > byte_sz * 8) { in bpf_core_calc_field_relo() 5106 if (byte_sz >= 8) { in bpf_core_calc_field_relo() 5112 byte_sz *= 2; in bpf_core_calc_field_relo() 5113 byte_off = bit_off / 8 / byte_sz * byte_sz; in bpf_core_calc_field_relo() 5119 byte_sz = sz; in bpf_core_calc_field_relo() 5121 bit_sz = byte_sz * 8; in bpf_core_calc_field_relo() 5135 *field_sz = byte_sz; in bpf_core_calc_field_relo() [all …]
|