Home
last modified time | relevance | path

Searched refs:byte_offset (Results 1 – 25 of 29) sorted by relevance

12

/linux/include/rdma/
H A Diba.h118 #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 Dibta_vol1_c12.h13 #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 Dec_access.c175 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/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_phy.h161 int ixgbe_read_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset,
163 int ixgbe_read_i2c_byte_generic_unlocked(struct ixgbe_hw *hw, u8 byte_offset,
165 int ixgbe_write_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset,
167 int ixgbe_write_i2c_byte_generic_unlocked(struct ixgbe_hw *hw, u8 byte_offset,
169 int ixgbe_read_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset,
171 int ixgbe_read_i2c_sff8472_generic(struct ixgbe_hw *hw, u8 byte_offset,
173 int ixgbe_write_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset,
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_parse_tcp_hdr_opt.c32 __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/arch/arm/mach-omap2/
H A Dcontrol.c142 u8 byte_offset = offset & 0x3; in omap_ctrl_readb() local
146 return (val >> (byte_offset * 8)) & 0xff; in omap_ctrl_readb()
152 u16 byte_offset = offset & 0x2; in omap_ctrl_readw() local
156 return (val >> (byte_offset * 8)) & 0xffff; in omap_ctrl_readw()
169 u8 byte_offset = offset & 0x3; in omap_ctrl_writeb() local
173 tmp &= 0xffffffff ^ (0xff << (byte_offset * 8)); in omap_ctrl_writeb()
174 tmp |= val << (byte_offset * 8); in omap_ctrl_writeb()
182 u8 byte_offset = offset & 0x2; in omap_ctrl_writew() local
186 tmp &= 0xffffffff ^ (0xffff << (byte_offset * 8)); in omap_ctrl_writew()
187 tmp |= val << (byte_offset * 8); in omap_ctrl_writew()
/linux/drivers/hid/bpf/progs/
H A DWacom__ArtPen.bpf.c89 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/igb/
H A De1000_82575.h11 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/drivers/gpu/drm/udl/
H A Dudl_transfer.c175 u32 byte_offset, u32 device_byte_offset, in udl_render_hline() argument
190 line_start = (u8 *) (front + byte_offset); in udl_render_hline()
H A Dudl_drv.h89 u32 byte_offset, u32 device_byte_offset, u32 byte_width);
H A Dudl_modeset.c226 const int byte_offset = line_offset + (clip->x1 << log_bpp); in udl_handle_damage() local
230 &cmd, byte_offset, dev_byte_offset, in udl_handle_damage()
/linux/drivers/media/platform/verisilicon/
H A Dhantro_g1_vp8_dec.c312 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 Drockchip_vpu2_hw_vp8_dec.c410 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 Dsst-mfld-platform-compress.c211 tstamp->byte_offset = tstamp->copied_total % in sst_platform_compr_pointer()
213 pr_debug("calc bytes offset/copied bytes as %d\n", tstamp->byte_offset); in sst_platform_compr_pointer()
/linux/drivers/input/touchscreen/
H A Datmel_mxt_ts.c1403 unsigned int type, instance, size, byte_offset; in mxt_prepare_cfg_mem() local
1482 byte_offset = reg + i - cfg->start_ofs; in mxt_prepare_cfg_mem()
1484 if (byte_offset >= 0 && byte_offset < cfg->mem_size) { in mxt_prepare_cfg_mem()
1485 *(cfg->mem + byte_offset) = val; in mxt_prepare_cfg_mem()
1488 reg, object->type, byte_offset); in mxt_prepare_cfg_mem()
1499 unsigned int byte_offset = 0; in mxt_upload_cfg_mem() local
1503 while (byte_offset < cfg->mem_size) { in mxt_upload_cfg_mem()
1504 unsigned int size = cfg->mem_size - byte_offset; in mxt_upload_cfg_mem()
1510 cfg->start_ofs + byte_offset, in mxt_upload_cfg_mem()
1511 size, cfg->mem + byte_offset); in mxt_upload_cfg_mem()
[all …]
/linux/arch/arm64/kvm/vgic/
H A Dvgic-its.c438 int byte_offset, bit_nr; in its_sync_lpi_pending_table() local
440 byte_offset = intid / BITS_PER_BYTE; in its_sync_lpi_pending_table()
447 if (byte_offset != last_byte_offset) { in its_sync_lpi_pending_table()
449 pendbase + byte_offset, in its_sync_lpi_pending_table()
454 last_byte_offset = byte_offset; in its_sync_lpi_pending_table()
2112 size_t byte_offset; in scan_its_table() local
2122 byte_offset = next_offset * esz; in scan_its_table()
2123 if (byte_offset >= len) in scan_its_table()
2127 gpa += byte_offset; in scan_its_table()
2128 len -= byte_offset; in scan_its_table()
/linux/net/netlabel/
H A Dnetlabel_kapi.c885 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/crypto/amcc/
H A Dcrypto4xx_sa.h153 u32 byte_offset:1; member
/linux/fs/exfat/
H A Ddir.c563 struct exfat_chain *p_dir, unsigned int byte_offset, in exfat_walk_fat_chain() argument
570 clu_offset = EXFAT_B_TO_CLU(byte_offset, sbi); in exfat_walk_fat_chain()
583 EXFAT_B_TO_DEN(byte_offset)); in exfat_walk_fat_chain()
/linux/include/linux/
H A Dhyperv.h362 u32 byte_offset; member
393 u32 byte_offset; member
/linux/sound/soc/uniphier/
H A Daio-compress.c274 tstamp->byte_offset = pos; in uniphier_aio_compr_pointer()
/linux/drivers/video/fbdev/
H A Dsmscufx.c849 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/sound/soc/qcom/qdsp6/
H A Dq6apm-dai.c581 tstamp->byte_offset = prtd->copied_total % prtd->pcm_size; in q6apm_dai_compr_pointer()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c4399 int rc, byte_offset = 0; in bnxt_read_sfp_module_eeprom_info() local
4414 req->page_offset = cpu_to_le16(start_addr + byte_offset); in bnxt_read_sfp_module_eeprom_info()
4417 cpu_to_le32((start_addr + byte_offset ? in bnxt_read_sfp_module_eeprom_info()
4425 memcpy(buf + byte_offset, output->data, xfer_size); in bnxt_read_sfp_module_eeprom_info()
4426 byte_offset += xfer_size; in bnxt_read_sfp_module_eeprom_info()
/linux/drivers/hv/
H A Dchannel.c347 gpadl_header->range[0].byte_offset = 0; in create_gpadl_header()

12