Home
last modified time | relevance | path

Searched refs:byte_off (Results 1 – 7 of 7) sorted by relevance

/linux/tools/power/acpi/tools/ec/
H A Dec_access.c129 int byte_off, bytes_read; in dump_ec() local
140 for (byte_off = 0; byte_off < bytes_read; byte_off++) { in dump_ec()
141 if ((byte_off % 16) == 0) in dump_ec()
142 printf("\n%.2X: ", byte_off); in dump_ec()
143 printf(" %.2x ", (uint8_t)buf[byte_off]); in dump_ec()
163 for (byte_off = 0; byte_off < bytes_read; byte_off++) { in dump_ec()
164 if ((byte_off % 16) == 0) in dump_ec()
165 printf("\n%.2X: ", byte_off); in dump_ec()
167 if (buf[byte_off] == buf2[byte_off]) in dump_ec()
168 printf(" %.2x ", (uint8_t)buf2[byte_off]); in dump_ec()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Ddefiner.c54 #define _HWS_SET32(p, v, byte_off, bit_off, mask) \ argument
57 *((__be32 *)(p) + ((byte_off) / 4)) = \
59 ((byte_off) / 4))) & \
66 #define HWS_SET32(p, v, byte_off, bit_off, mask) \ argument
71 _HWS_SET32(p, (v) >> _bit_off, byte_off, 0, (mask) >> _bit_off); \
72 _HWS_SET32(p, (v) & second_dw_mask, (byte_off) + DW_SIZE, \
75 _HWS_SET32(p, v, byte_off, (bit_off), (mask)); \
80 #define HWS_GET32(p, byte_off, bit_off, mask) \ argument
81 ((be32_to_cpu(*((__be32 *)(p) + ((byte_off) / 4))) >> (bit_off)) & (mask))
126 (fc)->byte_off = MLX5_BYTE_OFF(definer_hl, d_hdr); \
[all …]
/linux/fs/ntfs/
H A Dwof.c184 u64 byte_off, byte_len, sectors, available; in ntfs_bdev_read_from_rl() local
219 byte_off = ntfs_cluster_to_bytes(vol, lcn); in ntfs_bdev_read_from_rl()
220 if (check_add_overflow(byte_off, sec_off << 9, in ntfs_bdev_read_from_rl()
221 &byte_off) || in ntfs_bdev_read_from_rl()
222 byte_off > S64_MAX) { in ntfs_bdev_read_from_rl()
228 (loff_t)byte_off, byte_len); in ntfs_bdev_read_from_rl()
256 u64 byte_off, chunk_data_size, table_size; in parse_wof_chunk_table() local
281 byte_off = chunk_idx ? (chunk_idx - 1) * bytes_per_off : 0; in parse_wof_chunk_table()
287 sector_t start_sector = byte_off >> 9; in parse_wof_chunk_table()
288 u32 sector_off = byte_off & ((1 << 9) - 1); in parse_wof_chunk_table()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_panic_qr.rs515 let byte_off = *offset / 8; in push() localVariable
521 self.data[byte_off] = (number << (8 - b)) as u8; in push()
524 self.data[byte_off] = (number >> (b - 8)) as u8; in push()
525 self.data[byte_off + 1] = (number << (16 - b)) as u8; in push()
528 self.data[byte_off] |= (number << (8 - b)) as u8; in push()
531 self.data[byte_off] |= (number >> (b - 8)) as u8; in push()
532 self.data[byte_off + 1] = (number << (16 - b)) as u8; in push()
535 self.data[byte_off] |= (number >> (b - 8)) as u8; in push()
536 self.data[byte_off + 1] = (number >> (b - 16)) as u8; in push()
537 self.data[byte_off + 2] = (number << (24 - b)) as u8; in push()
/linux/tools/lib/bpf/
H A Drelo_core.c687 __u32 byte_off, byte_sz, bit_off, bit_sz, field_type_id, elem_id; in bpf_core_calc_field_relo() local
745 byte_off = bit_off / 8 / byte_sz * byte_sz; in bpf_core_calc_field_relo()
747 while (bit_off + bit_sz - byte_off * 8 > byte_sz * 8) { in bpf_core_calc_field_relo()
755 byte_off = bit_off / 8 / byte_sz * byte_sz; in bpf_core_calc_field_relo()
762 byte_off = spec->bit_offset / 8; in bpf_core_calc_field_relo()
775 *val = byte_off; in bpf_core_calc_field_relo()
802 *val = 64 - (bit_off + bit_sz - byte_off * 8); in bpf_core_calc_field_relo()
804 *val = (8 - byte_sz) * 8 + (bit_off - byte_off * 8); in bpf_core_calc_field_relo()
/linux/drivers/mailbox/
H A Dmailbox-mpfs.c138 u8 byte_off = ALIGN_DOWN(msg->cmd_data_size, 4); in mpfs_mbox_send_data() local
139 u8 *byte_buf = msg->cmd_data + byte_off; in mpfs_mbox_send_data()
/linux/Documentation/bpf/
H A Dllvm_reloc.rst457 00: CO-RE <byte_off> [2] struct foo::a (0:0)
460 10: CO-RE <byte_off> [2] struct foo::a (0:0)
480 20: CO-RE <byte_off> [2] struct foo::b (0:1)