Lines Matching defs:offset
1928 * @offset: The offset of the port register.
1936 static int port_chk(struct ksz_hw *hw, int port, int offset, u16 bits)
1942 addr += offset;
1951 * @offset: The offset of the port register.
1957 static void port_cfg(struct ksz_hw *hw, int port, int offset, u16 bits,
1964 addr += offset;
1977 * @addr: The offset of the register.
1999 * @addr: The offset of the register.
2024 * @offset: The offset of the port register.
2029 static void port_r8(struct ksz_hw *hw, int port, int offset, u8 *data)
2034 addr += offset;
2042 * @offset: The offset of the port register.
2047 static void port_r16(struct ksz_hw *hw, int port, int offset, u16 *data)
2052 addr += offset;
2060 * @offset: The offset of the port register.
2065 static void port_w16(struct ksz_hw *hw, int port, int offset, u16 data)
2070 addr += offset;
3107 * @reg: The register offset.
3130 * @reg: The register offset.
4386 int offset;
4404 offset = (((ulong) adapter->desc_pool.alloc_virt % DESC_ALIGNMENT) ?
4407 adapter->desc_pool.virt = adapter->desc_pool.alloc_virt + offset;
4408 adapter->desc_pool.phys = adapter->desc_pool.dma_addr + offset;
4414 offset = hw->rx_desc_info.alloc * hw->rx_desc_info.size;
4416 (adapter->desc_pool.virt + offset);
4417 hw->tx_desc_info.ring_phys = adapter->desc_pool.phys + offset;
6267 len = (eeprom->offset + eeprom->len + 1) / 2;
6268 for (i = eeprom->offset / 2; i < len; i++)
6271 memcpy(data, &eeprom_byte[eeprom->offset], eeprom->len);
6299 len = (eeprom->offset + eeprom->len + 1) / 2;
6300 for (i = eeprom->offset / 2; i < len; i++)
6303 memcpy(&eeprom_byte[eeprom->offset], data, eeprom->len);