Home
last modified time | relevance | path

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

/linux-4.4.14/tools/power/acpi/tools/ec/
Dec_access.c176 void read_ec_val(int fd, int byte_offset) in read_ec_val() argument
181 error = lseek(fd, byte_offset, SEEK_SET); in read_ec_val()
182 if (error != byte_offset) in read_ec_val()
183 err(EXIT_FAILURE, "Cannot set offset to 0x%.2x", byte_offset); in read_ec_val()
188 byte_offset, SYSFS_PATH); in read_ec_val()
193 void write_ec_val(int fd, int byte_offset, uint8_t value) in write_ec_val() argument
197 error = lseek(fd, byte_offset, SEEK_SET); in write_ec_val()
198 if (error != byte_offset) in write_ec_val()
199 err(EXIT_FAILURE, "Cannot set offset to 0x%.2x", byte_offset); in write_ec_val()
204 value, byte_offset); in write_ec_val()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_phy.h180 s32 ixgbe_read_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset,
182 s32 ixgbe_read_i2c_byte_generic_unlocked(struct ixgbe_hw *hw, u8 byte_offset,
184 s32 ixgbe_write_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset,
186 s32 ixgbe_write_i2c_byte_generic_unlocked(struct ixgbe_hw *hw, u8 byte_offset,
188 s32 ixgbe_read_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset,
190 s32 ixgbe_read_i2c_sff8472_generic(struct ixgbe_hw *hw, u8 byte_offset,
192 s32 ixgbe_write_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset,
Dixgbe_phy.c1693 s32 ixgbe_read_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_eeprom_generic() argument
1696 return hw->phy.ops.read_i2c_byte(hw, byte_offset, in ixgbe_read_i2c_eeprom_generic()
1709 s32 ixgbe_read_i2c_sff8472_generic(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_sff8472_generic() argument
1712 return hw->phy.ops.read_i2c_byte(hw, byte_offset, in ixgbe_read_i2c_sff8472_generic()
1725 s32 ixgbe_write_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_write_i2c_eeprom_generic() argument
1728 return hw->phy.ops.write_i2c_byte(hw, byte_offset, in ixgbe_write_i2c_eeprom_generic()
1758 static s32 ixgbe_read_i2c_byte_generic_int(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_byte_generic_int() argument
1767 if (ixgbe_is_sfp_probe(hw, byte_offset, dev_addr)) in ixgbe_read_i2c_byte_generic_int()
1787 status = ixgbe_clock_out_i2c_byte(hw, byte_offset); in ixgbe_read_i2c_byte_generic_int()
1845 s32 ixgbe_read_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_byte_generic() argument
[all …]
Dixgbe_82598.c46 static s32 ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset,
998 u8 byte_offset, u8 *eeprom_data) in ixgbe_read_i2c_phy_82598() argument
1021 sfp_addr = (dev_addr << 8) + byte_offset; in ixgbe_read_i2c_phy_82598()
1068 static s32 ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_eeprom_82598() argument
1072 byte_offset, eeprom_data); in ixgbe_read_i2c_eeprom_82598()
1083 static s32 ixgbe_read_i2c_sff8472_82598(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_sff8472_82598() argument
1087 byte_offset, sff8472_data); in ixgbe_read_i2c_sff8472_82598()
Dixgbe_82599.c62 static s32 ixgbe_read_i2c_byte_82599(struct ixgbe_hw *hw, u8 byte_offset,
64 static s32 ixgbe_write_i2c_byte_82599(struct ixgbe_hw *hw, u8 byte_offset,
2082 static s32 ixgbe_read_i2c_byte_82599(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_byte_82599() argument
2112 status = ixgbe_read_i2c_byte_generic(hw, byte_offset, dev_addr, data); in ixgbe_read_i2c_byte_82599()
2135 static s32 ixgbe_write_i2c_byte_82599(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_write_i2c_byte_82599() argument
2165 status = ixgbe_write_i2c_byte_generic(hw, byte_offset, dev_addr, data); in ixgbe_write_i2c_byte_82599()
/linux-4.4.14/arch/arm/mach-omap2/
Dcontrol.c150 u8 byte_offset = offset & 0x3; in omap_ctrl_readb() local
154 return (val >> (byte_offset * 8)) & 0xff; in omap_ctrl_readb()
160 u16 byte_offset = offset & 0x2; in omap_ctrl_readw() local
164 return (val >> (byte_offset * 8)) & 0xffff; in omap_ctrl_readw()
184 u8 byte_offset = offset & 0x3; in omap_ctrl_writeb() local
188 tmp &= 0xffffffff ^ (0xff << (byte_offset * 8)); in omap_ctrl_writeb()
189 tmp |= val << (byte_offset * 8); in omap_ctrl_writeb()
197 u8 byte_offset = offset & 0x2; in omap_ctrl_writew() local
201 tmp &= 0xffffffff ^ (0xffff << (byte_offset * 8)); in omap_ctrl_writew()
202 tmp |= val << (byte_offset * 8); in omap_ctrl_writew()
/linux-4.4.14/fs/udf/
Dtruncate.c210 loff_t byte_offset; in udf_truncate_extents() local
222 byte_offset = (offset << sb->s_blocksize_bits) + in udf_truncate_extents()
226 WARN_ON(byte_offset); in udf_truncate_extents()
230 extent_trunc(inode, &epos, &eloc, etype, elen, byte_offset); in udf_truncate_extents()
232 if (byte_offset) in udf_truncate_extents()
/linux-4.4.14/drivers/net/ethernet/intel/igb/
De1000_82575.h31 s32 igb_read_i2c_byte(struct e1000_hw *hw, u8 byte_offset, u8 dev_addr,
33 s32 igb_write_i2c_byte(struct e1000_hw *hw, u8 byte_offset, u8 dev_addr,
Digb_main.c8026 s32 igb_read_i2c_byte(struct e1000_hw *hw, u8 byte_offset, in igb_read_i2c_byte() argument
8042 status = i2c_smbus_read_byte_data(this_client, byte_offset); in igb_read_i2c_byte()
8063 s32 igb_write_i2c_byte(struct e1000_hw *hw, u8 byte_offset, in igb_write_i2c_byte() argument
8076 status = i2c_smbus_write_byte_data(this_client, byte_offset, data); in igb_write_i2c_byte()
/linux-4.4.14/drivers/gpu/drm/udl/
Dudl_transfer.c223 u32 byte_offset, u32 device_byte_offset, in udl_render_hline() argument
235 line_start = (u8 *) (front + byte_offset); in udl_render_hline()
Dudl_drv.h115 u32 byte_offset, u32 device_byte_offset, u32 byte_width,
Dudl_fb.c225 const int byte_offset = line_offset + (x * bpp); in udl_handle_damage() local
229 &cmd, byte_offset, dev_byte_offset, in udl_handle_damage()
/linux-4.4.14/drivers/input/touchscreen/
Datmel_mxt_ts.c1189 unsigned int type, instance, size, byte_offset; in mxt_prepare_cfg_mem() local
1268 byte_offset = reg + i - cfg_start_ofs; in mxt_prepare_cfg_mem()
1270 if (byte_offset >= 0 && byte_offset < config_mem_size) { in mxt_prepare_cfg_mem()
1271 *(config_mem + byte_offset) = val; in mxt_prepare_cfg_mem()
1274 reg, object->type, byte_offset); in mxt_prepare_cfg_mem()
1286 unsigned int byte_offset = 0; in mxt_upload_cfg_mem() local
1290 while (byte_offset < config_mem_size) { in mxt_upload_cfg_mem()
1291 unsigned int size = config_mem_size - byte_offset; in mxt_upload_cfg_mem()
1297 cfg_start + byte_offset, in mxt_upload_cfg_mem()
1298 size, config_mem + byte_offset); in mxt_upload_cfg_mem()
[all …]
/linux-4.4.14/include/uapi/sound/
Dcompress_offload.h68 __u32 byte_offset; member
/linux-4.4.14/sound/soc/intel/atom/
Dsst-mfld-platform-compress.c212 tstamp->byte_offset = tstamp->copied_total % in sst_platform_compr_pointer()
214 pr_debug("calc bytes offset/copied bytes as %d\n", tstamp->byte_offset); in sst_platform_compr_pointer()
/linux-4.4.14/drivers/net/ethernet/
Dlantiq_etop.c527 u32 byte_offset; in ltq_etop_tx() local
539 byte_offset = CPHYSADDR(skb->data) % 16; in ltq_etop_tx()
546 DMA_TO_DEVICE)) - byte_offset; in ltq_etop_tx()
549 LTQ_DMA_TX_OFFSET(byte_offset) | (len & LTQ_DMA_SIZE_MASK); in ltq_etop_tx()
/linux-4.4.14/drivers/crypto/amcc/
Dcrypto4xx_sa.h155 u32 byte_offset:1; member
/linux-4.4.14/drivers/video/fbdev/
Dudlfb.c520 u32 byte_offset, u32 byte_width, in dlfb_render_hline() argument
524 u32 dev_addr = dev->base16 + byte_offset; in dlfb_render_hline()
529 line_start = (u8 *) (front + byte_offset); in dlfb_render_hline()
536 + byte_offset); in dlfb_render_hline()
608 const int byte_offset = line_offset + (x * BPP); in dlfb_handle_damage() local
612 &cmd, byte_offset, width * BPP, in dlfb_handle_damage()
Dsmscufx.c846 const int byte_offset = line_offset + (x * BPP); in ufx_raw_rect() local
848 (char *)dev->info->fix.smem_start + byte_offset, width * BPP); in ufx_raw_rect()
/linux-4.4.14/include/linux/
Dhyperv.h256 u32 byte_offset; member
287 u32 byte_offset; member
/linux-4.4.14/net/ipv4/
Dcipso_ipv4.c155 u32 byte_offset; in cipso_v4_bitmap_walk() local
160 byte_offset = offset / 8; in cipso_v4_bitmap_walk()
161 byte = bitmap[byte_offset]; in cipso_v4_bitmap_walk()
173 byte = bitmap[++byte_offset]; in cipso_v4_bitmap_walk()
/linux-4.4.14/sound/soc/intel/baytrail/
Dsst-baytrail-ipc.c113 u32 byte_offset; member
499 start_stream.byte_offset = start_offset; in sst_byt_stream_start()
/linux-4.4.14/drivers/hv/
Dchannel.c264 gpadl_header->range[0].byte_offset = 0; in create_gpadl_header()
346 gpadl_header->range[0].byte_offset = 0; in create_gpadl_header()
/linux-4.4.14/fs/reiserfs/
Dinode.c2378 loff_t byte_offset = ((loff_t)block << inode->i_sb->s_blocksize_bits)+1; in map_block_for_writepage() local
2398 make_cpu_key(&key, inode, byte_offset, TYPE_ANY, 3); in map_block_for_writepage()
2428 p += (byte_offset - 1) & (PAGE_CACHE_SIZE - 1); in map_block_for_writepage()
2466 (byte_offset + bytes_copied) < inode->i_size) { in map_block_for_writepage()
/linux-4.4.14/drivers/mtd/onenand/
Donenand_base.c818 int byte_offset; in onenand_write_bufferram() local
824 byte_offset = offset + count; in onenand_write_bufferram()
827 word = this->read_word(bufferram + byte_offset); in onenand_write_bufferram()
829 this->write_word(word, bufferram + byte_offset); in onenand_write_bufferram()
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_state.c1710 u32 offset, byte_offset; in radeon_cp_dispatch_texture() local
1895 byte_offset = (image->y & ~2047) * blit_width; in radeon_cp_dispatch_texture()
1910 OUT_RING((texpitch << 22) | ((tex->offset >> 10) + (byte_offset >> 10))); in radeon_cp_dispatch_texture()
/linux-4.4.14/sound/core/
Dcompress_offload.c175 tstamp->byte_offset, tstamp->copied_total); in snd_compr_update_tstamp()
/linux-4.4.14/drivers/net/hyperv/
Dnetvsc.c1053 recv_buf + vmxferpage_packet->ranges[i].byte_offset); in netvsc_receive()