byte_offset
#define btodb(byte_offset) ((byte_offset) >> 9)
rawread(int drive, unsigned long long sector, int byte_offset, int byte_len,
slen = ((byte_offset + byte_len + buf_geom.sector_size - 1)
+ (soff << sector_size_bits) + byte_offset);
bufaddr = (char *) BUFFERADDR + byte_offset;
bufaddr = (char *) BUFFERADDR + byte_offset;
if (size > ((num_sect << sector_size_bits) - byte_offset))
size = (num_sect << sector_size_bits) - byte_offset;
int length = buf_geom.sector_size - byte_offset;
(*disk_read_func) (sector_num++, byte_offset, length);
byte_offset = 0;
devread(unsigned long long sector, int byte_offset, int byte_len, char *buf)
if ((sector + ((byte_offset + byte_len - 1) >> SECTOR_BITS))
sector += byte_offset >> SECTOR_BITS;
byte_offset &= SECTOR_SIZE - 1;
printf ("<%llu, %d, %d>", sector, byte_offset, byte_len);
return rawread (current_drive, part_start + sector, byte_offset,
return rawread(current_drive, part_start + sector, byte_offset, byte_len, buf);
iso9660_devread (int sector, int byte_offset, int byte_len, char *buf)
sector += (byte_offset >> sector_size_lg2);
byte_offset &= (buf_geom.sector_size - 1);
printf ("<%d, %d, %d>", sector, byte_offset, byte_len);
int rawread (int drive, unsigned long long sector, int byte_offset, int byte_len,
int devread (unsigned long long sector, int byte_offset, int byte_len, char *buf);
ulong_t byte_offset;
for (count = 0, byte_offset = io_off;
byte_offset < io_end; count++) {
which_chunk_lbn = byte_offset / chunk_data_bytes;
offset_extra = byte_offset % chunk_data_bytes;
bufs[count].b_un.b_addr = va + byte_offset % PAGESIZE;
(offset_t)(byte_offset - io_off + off);
- byte_offset;
if ((remaining_bytes + byte_offset) < (off + len)) {
bufs[count].b_bcount = off + len - byte_offset;
remainder = PAGESIZE - (byte_offset % PAGESIZE);
if (((offset_t)byte_offset + bufs[count].b_bcount) >
byte_offset += bufs[count].b_bcount;
ulong_t byte_offset;
for (count = 0, byte_offset = io_off;
byte_offset < io_end;
which_chunk_lbn = byte_offset / chunk_data_bytes;
offset_extra = byte_offset % chunk_data_bytes;
bufs[count].b_un.b_addr = va + byte_offset % PAGESIZE;
(offset_t)(byte_offset - io_off + off);
- byte_offset;
if ((remaining_bytes + byte_offset) < (off + len)) {
bufs[count].b_bcount = off + len - byte_offset;
remainder = PAGESIZE - (byte_offset % PAGESIZE);
if (((offset_t)byte_offset + bufs[count].b_bcount) >
byte_offset += bufs[count].b_bcount;
s32 e1000_read_i2c_byte_generic(struct e1000_hw *hw, u8 byte_offset,
status = e1000_clock_out_i2c_byte(hw, byte_offset);
s32 e1000_write_i2c_byte_generic(struct e1000_hw *hw, u8 byte_offset,
status = e1000_clock_out_i2c_byte(hw, byte_offset);
s32 e1000_read_i2c_byte_generic(struct e1000_hw *hw, u8 byte_offset,
s32 e1000_write_i2c_byte_generic(struct e1000_hw *hw, u8 byte_offset,
u8 E1000_UNUSEDARG byte_offset,
u8 E1000_UNUSEDARG byte_offset,
s32 e1000_read_i2c_byte_null(struct e1000_hw *hw, u8 byte_offset,
s32 e1000_write_i2c_byte_null(struct e1000_hw *hw, u8 byte_offset,
int byte_offset;
byte_offset = addr & 3;
dword_addr = addr - byte_offset;
byte_offset = 3 - byte_offset;
dword.bytes[byte_offset] = data;
u8 byte_offset, u8 *eeprom_data)
sfp_addr = (dev_addr << 8) + byte_offset;
s32 ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset,
byte_offset, eeprom_data);
static s32 ixgbe_read_i2c_sff8472_82598(struct ixgbe_hw *hw, u8 byte_offset,
byte_offset, sff8472_data);
static s32 ixgbe_read_i2c_sff8472_82598(struct ixgbe_hw *hw, u8 byte_offset,
s32 ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset,
static s32 ixgbe_read_i2c_byte_82599(struct ixgbe_hw *hw, u8 byte_offset,
status = ixgbe_read_i2c_byte_generic(hw, byte_offset, dev_addr, data);
static s32 ixgbe_write_i2c_byte_82599(struct ixgbe_hw *hw, u8 byte_offset,
status = ixgbe_write_i2c_byte_generic(hw, byte_offset, dev_addr, data);
static s32 ixgbe_read_i2c_byte_82599(struct ixgbe_hw *hw, u8 byte_offset,
static s32 ixgbe_write_i2c_byte_82599(struct ixgbe_hw *hw, u8 byte_offset,
s32 ixgbe_read_i2c_byte(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr,
return ixgbe_call_func(hw, hw->phy.ops.read_i2c_byte, (hw, byte_offset,
s32 ixgbe_read_i2c_byte_unlocked(struct ixgbe_hw *hw, u8 byte_offset,
(hw, byte_offset, dev_addr, data),
s32 ixgbe_write_i2c_byte(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr,
return ixgbe_call_func(hw, hw->phy.ops.write_i2c_byte, (hw, byte_offset,
s32 ixgbe_write_i2c_byte_unlocked(struct ixgbe_hw *hw, u8 byte_offset,
(hw, byte_offset, dev_addr, data),
u8 byte_offset, u8 eeprom_data)
(hw, byte_offset, eeprom_data),
s32 ixgbe_read_i2c_eeprom(struct ixgbe_hw *hw, u8 byte_offset, u8 *eeprom_data)
(hw, byte_offset, eeprom_data),
s32 ixgbe_read_i2c_eeprom(struct ixgbe_hw *hw, u8 byte_offset, u8 *eeprom_data);
s32 ixgbe_read_i2c_byte(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr,
s32 ixgbe_read_i2c_byte_unlocked(struct ixgbe_hw *hw, u8 byte_offset,
s32 ixgbe_write_i2c_byte(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr,
s32 ixgbe_write_i2c_byte_unlocked(struct ixgbe_hw *hw, u8 byte_offset,
s32 ixgbe_write_i2c_eeprom(struct ixgbe_hw *hw, u8 byte_offset, u8 eeprom_data);
s32 ixgbe_read_i2c_sff8472_E610(struct ixgbe_hw *hw, u8 byte_offset,
byte_offset, 0,
s32 ixgbe_read_i2c_eeprom_E610(struct ixgbe_hw *hw, u8 byte_offset,
byte_offset, 0,
s32 ixgbe_write_i2c_eeprom_E610(struct ixgbe_hw *hw, u8 byte_offset,
byte_offset, 0,
s32 ixgbe_read_i2c_sff8472_E610(struct ixgbe_hw *hw, u8 byte_offset,
s32 ixgbe_read_i2c_eeprom_E610(struct ixgbe_hw *hw, u8 byte_offset,
s32 ixgbe_write_i2c_eeprom_E610(struct ixgbe_hw *hw, u8 byte_offset,
s32 ixgbe_read_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset,
return hw->phy.ops.read_i2c_byte(hw, byte_offset,
static s32 ixgbe_read_i2c_sff8472_generic(struct ixgbe_hw *hw, u8 byte_offset,
return hw->phy.ops.read_i2c_byte(hw, byte_offset,
s32 ixgbe_write_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset,
return hw->phy.ops.write_i2c_byte(hw, byte_offset,
static s32 ixgbe_read_i2c_byte_generic_int(struct ixgbe_hw *hw, u8 byte_offset,
if (ixgbe_is_sfp_probe(hw, byte_offset, dev_addr))
status = ixgbe_clock_out_i2c_byte(hw, byte_offset);
s32 ixgbe_read_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset,
return ixgbe_read_i2c_byte_generic_int(hw, byte_offset, dev_addr,
s32 ixgbe_read_i2c_byte_generic_unlocked(struct ixgbe_hw *hw, u8 byte_offset,
return ixgbe_read_i2c_byte_generic_int(hw, byte_offset, dev_addr,
static s32 ixgbe_write_i2c_byte_generic_int(struct ixgbe_hw *hw, u8 byte_offset,
status = ixgbe_clock_out_i2c_byte(hw, byte_offset);
s32 ixgbe_write_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset,
return ixgbe_write_i2c_byte_generic_int(hw, byte_offset, dev_addr,
s32 ixgbe_write_i2c_byte_generic_unlocked(struct ixgbe_hw *hw, u8 byte_offset,
return ixgbe_write_i2c_byte_generic_int(hw, byte_offset, dev_addr,
static s32 ixgbe_read_i2c_sff8472_generic(struct ixgbe_hw *hw, u8 byte_offset,
s32 ixgbe_read_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset,
s32 ixgbe_read_i2c_byte_generic_unlocked(struct ixgbe_hw *hw, u8 byte_offset,
s32 ixgbe_write_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset,
s32 ixgbe_write_i2c_byte_generic_unlocked(struct ixgbe_hw *hw, u8 byte_offset,
s32 ixgbe_read_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset,
s32 ixgbe_write_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset,
u32 byte_offset)
offset_in_dword = (u8)(byte_offset & 0x3);
*lengthp = byte_offset(tlv_next_item_ptr(&cursor),
*startp = byte_offset(cursor.current, cursor.block);
*endp = byte_offset(tlv_last_segment_end(&cursor)+1, cursor.block);
*startp = byte_offset(cursor.current, cursor.block);
*lengthp = byte_offset(tlv_next_item_ptr(&cursor),