| /linux/include/rdma/ |
| H A D | iba.h | 118 #define IBA_FIELD_BLOC(field_struct, byte_offset, bit_offset, num_bits) \ argument 119 field_struct, byte_offset, \ 122 #define IBA_FIELD8_LOC(field_struct, byte_offset, num_bits) \ argument 123 IBA_FIELD_BLOC(field_struct, byte_offset, 0, num_bits) 125 #define IBA_FIELD16_LOC(field_struct, byte_offset, num_bits) \ argument 126 field_struct, (byte_offset)&0xFFFE, \ 127 GENMASK(15 - (((byte_offset) % 2) * 8), \ 128 15 - (((byte_offset) % 2) * 8) - (num_bits - 1)), \ 131 #define IBA_FIELD32_LOC(field_struct, byte_offset, num_bits) \ argument 132 field_struct, (byte_offset)&0xFFFC, \ [all …]
|
| H A D | ibta_vol1_c12.h | 13 #define CM_FIELD_BLOC(field_struct, byte_offset, bits_offset, width) \ argument 15 (byte_offset + sizeof(struct ib_mad_hdr)), bits_offset, \ 17 #define CM_FIELD8_LOC(field_struct, byte_offset, width) \ argument 19 (byte_offset + sizeof(struct ib_mad_hdr)), width) 20 #define CM_FIELD16_LOC(field_struct, byte_offset, width) \ argument 22 (byte_offset + sizeof(struct ib_mad_hdr)), width) 23 #define CM_FIELD32_LOC(field_struct, byte_offset, width) \ argument 25 (byte_offset + sizeof(struct ib_mad_hdr)), width) 26 #define CM_FIELD64_LOC(field_struct, byte_offset) \ argument 27 IBA_FIELD64_LOC(field_struct, (byte_offset + sizeof(struct ib_mad_hdr))) [all …]
|
| /linux/tools/power/acpi/tools/ec/ |
| H A D | ec_access.c | 175 void read_ec_val(int fd, int byte_offset) in read_ec_val() argument 180 error = lseek(fd, byte_offset, SEEK_SET); in read_ec_val() 181 if (error != byte_offset) in read_ec_val() 182 err(EXIT_FAILURE, "Cannot set offset to 0x%.2x", byte_offset); in read_ec_val() 187 byte_offset, SYSFS_PATH); in read_ec_val() 192 void write_ec_val(int fd, int byte_offset, uint8_t value) in write_ec_val() argument 196 error = lseek(fd, byte_offset, SEEK_SET); in write_ec_val() 197 if (error != byte_offset) in write_ec_val() 198 err(EXIT_FAILURE, "Cannot set offset to 0x%.2x", byte_offset); in write_ec_val() 203 value, byte_offset); in write_ec_val()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_parse_tcp_hdr_opt.c | 32 __u8 byte_offset; member 42 tcp_opt = (__u8 *)(data + state->byte_offset); in parse_hdr_opt() 53 state->byte_offset++; in parse_hdr_opt() 77 state->byte_offset += hdr_len; in parse_hdr_opt() 102 opt_state.byte_offset = sizeof(struct tcphdr) + tcp_offset; in xdp_ingress_v6()
|
| /linux/fs/udf/ |
| H A D | truncate.c | 205 loff_t byte_offset; in udf_truncate_extents() local 220 byte_offset = (offset << sb->s_blocksize_bits) + in udf_truncate_extents() 224 WARN_ON(byte_offset); in udf_truncate_extents() 228 extent_trunc(inode, &epos, &eloc, etype, elen, byte_offset); in udf_truncate_extents() 230 if (byte_offset) in udf_truncate_extents()
|
| /linux/drivers/nvmem/ |
| H A D | qfprom.c | 342 unsigned int byte_offset = cell->offset % sizeof(u32); in qfprom_fixup_dt_cell_info() local 344 cell->bit_offset += byte_offset * BITS_PER_BYTE; in qfprom_fixup_dt_cell_info() 345 cell->offset -= byte_offset; in qfprom_fixup_dt_cell_info() 346 if (byte_offset && !cell->nbits) in qfprom_fixup_dt_cell_info()
|
| /linux/drivers/hid/bpf/progs/ |
| H A D | Wacom__ArtPen.bpf.c | 89 static inline void *get_bits(__u8 *data, unsigned int byte_offset) in get_bits() argument 91 return data + byte_offset; in get_bits()
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_82598.c | 22 static int ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset, 953 u8 byte_offset, u8 *eeprom_data) in ixgbe_read_i2c_phy_82598() argument 976 sfp_addr = (dev_addr << 8) + byte_offset; in ixgbe_read_i2c_phy_82598() 1023 static int ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_eeprom_82598() argument 1027 byte_offset, eeprom_data); in ixgbe_read_i2c_eeprom_82598() 1038 static int ixgbe_read_i2c_sff8472_82598(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_sff8472_82598() argument 1042 byte_offset, sff8472_data); in ixgbe_read_i2c_sff8472_82598()
|
| /linux/drivers/net/ethernet/intel/igb/ |
| H A D | e1000_82575.h | 11 s32 igb_read_i2c_byte(struct e1000_hw *hw, u8 byte_offset, u8 dev_addr, 13 s32 igb_write_i2c_byte(struct e1000_hw *hw, u8 byte_offset, u8 dev_addr,
|
| /linux/arch/arm64/kvm/vgic/ |
| H A D | vgic-v3.c | 515 int byte_offset, bit_nr; in vgic_v3_lpi_sync_pending_status() local 529 byte_offset = irq->intid / BITS_PER_BYTE; in vgic_v3_lpi_sync_pending_status() 531 ptr = pendbase + byte_offset; in vgic_v3_lpi_sync_pending_status() 608 int byte_offset, bit_nr; in vgic_v3_save_pending_tables() local 620 byte_offset = irq->intid / BITS_PER_BYTE; in vgic_v3_save_pending_tables() 622 ptr = pendbase + byte_offset; in vgic_v3_save_pending_tables()
|
| H A D | vgic-its.c | 400 int byte_offset, bit_nr; in its_sync_lpi_pending_table() local 402 byte_offset = intid / BITS_PER_BYTE; in its_sync_lpi_pending_table() 409 if (byte_offset != last_byte_offset) { in its_sync_lpi_pending_table() 411 pendbase + byte_offset, in its_sync_lpi_pending_table() 416 last_byte_offset = byte_offset; in its_sync_lpi_pending_table() 2081 size_t byte_offset; in scan_its_table() local 2091 byte_offset = next_offset * esz; in scan_its_table() 2092 if (byte_offset >= len) in scan_its_table() 2096 gpa += byte_offset; in scan_its_table() 2097 len -= byte_offset; in scan_its_table()
|
| /linux/drivers/media/platform/verisilicon/ |
| H A D | hantro_g1_vp8_dec.c | 312 u32 byte_offset = dct_part_offset + dct_size_part_size + count; in cfg_parts() local 313 u32 base_addr = byte_offset + src_dma; in cfg_parts() 319 (byte_offset & DEC_8190_ALIGN_MASK) * 8); in cfg_parts()
|
| H A D | rockchip_vpu2_hw_vp8_dec.c | 410 u32 byte_offset = dct_part_offset + dct_size_part_size + count; in cfg_parts() local 411 u32 base_addr = byte_offset + src_dma; in cfg_parts() 417 (byte_offset & DEC_8190_ALIGN_MASK) * 8); in cfg_parts()
|
| /linux/sound/soc/intel/atom/ |
| H A D | sst-mfld-platform-compress.c | 213 tstamp->byte_offset = in sst_platform_compr_pointer() 215 pr_debug("calc bytes offset/copied bytes as %u\n", tstamp->byte_offset); in sst_platform_compr_pointer()
|
| /linux/net/netlabel/ |
| H A D | netlabel_kapi.c | 885 u32 byte_offset; in netlbl_bitmap_walk() local 891 byte_offset = offset / 8; in netlbl_bitmap_walk() 892 byte = bitmap[byte_offset]; in netlbl_bitmap_walk() 905 byte = bitmap[++byte_offset]; in netlbl_bitmap_walk()
|
| /linux/drivers/video/fbdev/ |
| H A D | udlfb.c | 544 u32 byte_offset, u32 byte_width, in dlfb_render_hline() argument 548 u32 dev_addr = dlfb->base16 + byte_offset; in dlfb_render_hline() 554 line_start = (u8 *) (front + byte_offset); in dlfb_render_hline() 561 + byte_offset); in dlfb_render_hline() 640 const int byte_offset = line_offset + (x * BPP); in dlfb_handle_damage() local 644 &cmd, byte_offset, width * BPP, in dlfb_handle_damage()
|
| H A D | smscufx.c | 849 const int byte_offset = line_offset + (x * BPP); in ufx_raw_rect() local 851 (char *)dev->info->fix.smem_start + byte_offset, width * BPP); in ufx_raw_rect()
|
| /linux/drivers/crypto/amcc/ |
| H A D | crypto4xx_sa.h | 153 u32 byte_offset:1; member
|
| /linux/arch/um/drivers/ |
| H A D | ubd_kern.c | 1197 unsigned long byte_offset = io_req->offset; in ubd_map_req() local 1215 cowify_req(io_req, &io_req->io_desc[i], byte_offset, in ubd_map_req() 1218 byte_offset += io_req->io_desc[i].length; in ubd_map_req()
|
| /linux/fs/exfat/ |
| H A D | dir.c | 565 struct exfat_chain *p_dir, unsigned int byte_offset, in exfat_walk_fat_chain() argument 572 clu_offset = EXFAT_B_TO_CLU(byte_offset, sbi); in exfat_walk_fat_chain() 585 EXFAT_B_TO_DEN(byte_offset)); in exfat_walk_fat_chain()
|
| /linux/sound/core/ |
| H A D | compress_offload.c | 183 tstamp32->byte_offset = tstamp64->byte_offset; in snd_compr_tstamp32_from_64() 196 pr_debug("dsp consumed till %u total %llu bytes\n", tstamp->byte_offset, in snd_compr_update_tstamp()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | definer.c | 1840 u8 byte_offset; in hws_definer_find_byte_in_tag() local 1847 byte_offset = hl_byte_off % DW_SIZE; in hws_definer_find_byte_in_tag() 1850 *tag_byte_off = byte_offset + DW_SIZE * (DW_SELECTORS - i - 1); in hws_definer_find_byte_in_tag() 1856 byte_offset = DW_SIZE * DW_SELECTORS; in hws_definer_find_byte_in_tag() 1860 *tag_byte_off = byte_offset + (BYTE_SELECTORS - i - 1); in hws_definer_find_byte_in_tag()
|
| /linux/include/linux/ |
| H A D | hyperv.h | 372 u32 byte_offset; member 390 u32 byte_offset; member
|
| /linux/drivers/mtd/nand/onenand/ |
| H A D | onenand_base.c | 846 int byte_offset; in onenand_write_bufferram() local 852 byte_offset = offset + count; in onenand_write_bufferram() 855 word = this->read_word(bufferram + byte_offset); in onenand_write_bufferram() 857 this->write_word(word, bufferram + byte_offset); in onenand_write_bufferram()
|
| /linux/sound/soc/qcom/qdsp6/ |
| H A D | q6apm-dai.c | 585 tstamp->byte_offset = do_div(temp_copied_total, prtd->pcm_size); in q6apm_dai_compr_pointer()
|