Home
last modified time | relevance | path

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

123

/netbsd-src/sys/external/bsd/drm2/drm/
H A Ddrm_vm.c80 drm_legacy_mmap_paddr(struct drm_device *dev, off_t byte_offset, int prot) in drm_legacy_mmap_paddr() argument
84 if (byte_offset != (byte_offset & ~(PAGE_SIZE-1))) in drm_legacy_mmap_paddr()
88 paddr = drm_legacy_mmap_paddr_locked(dev, byte_offset, prot); in drm_legacy_mmap_paddr()
95 drm_legacy_mmap_paddr_locked(struct drm_device *dev, off_t byte_offset, in drm_legacy_mmap_paddr_locked() argument
98 const off_t page_offset = (byte_offset >> PAGE_SHIFT); in drm_legacy_mmap_paddr_locked()
102 KASSERT(byte_offset == (byte_offset & ~(PAGE_SIZE-1))); in drm_legacy_mmap_paddr_locked()
105 (0 <= byte_offset) && in drm_legacy_mmap_paddr_locked()
107 return drm_legacy_mmap_dma_paddr(dev, byte_offset, prot); in drm_legacy_mmap_paddr_locked()
126 if (!(map->offset <= byte_offset)) in drm_legacy_mmap_paddr_locked()
128 if (map->size < (map->offset - byte_offset)) in drm_legacy_mmap_paddr_locked()
[all …]
H A Ddrm_gem_vm.c68 drm_gem_or_legacy_mmap_object(struct drm_device *dev, off_t byte_offset, in drm_gem_or_legacy_mmap_object() argument
76 ret = drm_gem_mmap_object(dev, byte_offset, nbytes, prot, uobjp, in drm_gem_or_legacy_mmap_object()
83 return drm_legacy_mmap_object(dev, byte_offset, nbytes, prot, uobjp, in drm_gem_or_legacy_mmap_object()
88 drm_gem_mmap_object(struct drm_device *dev, off_t byte_offset, size_t nbytes, in drm_gem_mmap_object() argument
96 ret = drm_gem_mmap_object_locked(dev, byte_offset, nbytes, prot, in drm_gem_mmap_object()
104 drm_gem_mmap_object_locked(struct drm_device *dev, off_t byte_offset, in drm_gem_mmap_object_locked() argument
109 const unsigned long startpage = (byte_offset >> PAGE_SHIFT); in drm_gem_mmap_object_locked()
116 KASSERT(0 <= byte_offset); in drm_gem_mmap_object_locked()
117 KASSERT(byte_offset == (byte_offset & ~(PAGE_SIZE-1))); in drm_gem_mmap_object_locked()
/netbsd-src/usr.sbin/ndbootd/
H A Dndbootd.c113 #define NDBOOTD_BYTES_AVAIL(block_number, byte_offset, obj_block_first, obj_block_count) \ argument
114 …count) - (ssize_t) ((block_number) - (obj_block_first))) * NDBOOT_BSIZE) - (ssize_t) (byte_offset))
333 size_t byte_offset; in main() local
788 byte_offset = ntohl(nd_packet->ndboot_packet_current_byte_offset); in main()
794 block_number += (byte_offset / NDBOOT_BSIZE); in main()
795 byte_offset = byte_offset % NDBOOT_BSIZE; in main()
803 byte_count_read = MIN(NDBOOTD_BYTES_AVAIL(block_number, byte_offset, in main()
815 byte_count_wanted = MIN(NDBOOTD_BYTES_AVAIL(block_number, byte_offset, in main()
820 file_offset = ((block_number - NDBOOTD_BOOT1_BLOCK_FIRST) * NDBOOT_BSIZE) + byte_offset; in main()
825 (long) byte_offset, in main()
[all …]
/netbsd-src/sys/dev/pci/ixgbe/
H A Dixgbe_phy.h206 s32 ixgbe_read_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset,
208 s32 ixgbe_read_i2c_byte_generic_unlocked(struct ixgbe_hw *hw, u8 byte_offset,
210 s32 ixgbe_write_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset,
212 s32 ixgbe_write_i2c_byte_generic_unlocked(struct ixgbe_hw *hw, u8 byte_offset,
214 s32 ixgbe_read_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset,
216 s32 ixgbe_write_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset,
H A Dixgbe_api.c1480 s32 ixgbe_read_i2c_byte(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr, in ixgbe_read_i2c_byte() argument
1483 return ixgbe_call_func(hw, hw->phy.ops.read_i2c_byte, (hw, byte_offset, in ixgbe_read_i2c_byte()
1496 s32 ixgbe_read_i2c_byte_unlocked(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_byte_unlocked() argument
1500 (hw, byte_offset, dev_addr, data), in ixgbe_read_i2c_byte_unlocked()
1544 s32 ixgbe_write_i2c_byte(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr, in ixgbe_write_i2c_byte() argument
1547 return ixgbe_call_func(hw, hw->phy.ops.write_i2c_byte, (hw, byte_offset, in ixgbe_write_i2c_byte()
1561 s32 ixgbe_write_i2c_byte_unlocked(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_write_i2c_byte_unlocked() argument
1565 (hw, byte_offset, dev_addr, data), in ixgbe_write_i2c_byte_unlocked()
1608 u8 byte_offset, u8 eeprom_data) in ixgbe_write_i2c_eeprom() argument
1611 (hw, byte_offset, eeprom_data), in ixgbe_write_i2c_eeprom()
[all …]
H A Dixgbe_api.h147 s32 ixgbe_read_i2c_eeprom(struct ixgbe_hw *hw, u8 byte_offset, u8 *eeprom_data);
180 s32 ixgbe_read_i2c_byte(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr,
182 s32 ixgbe_read_i2c_byte_unlocked(struct ixgbe_hw *hw, u8 byte_offset,
186 s32 ixgbe_write_i2c_byte(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr,
189 s32 ixgbe_write_i2c_byte_unlocked(struct ixgbe_hw *hw, u8 byte_offset,
193 s32 ixgbe_write_i2c_eeprom(struct ixgbe_hw *hw, u8 byte_offset, u8 eeprom_data);
H A Dixgbe_phy.c58 static s32 ixgbe_read_i2c_sff8472_generic(struct ixgbe_hw *hw, u8 byte_offset,
2001 s32 ixgbe_read_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_eeprom_generic() argument
2006 return hw->phy.ops.read_i2c_byte(hw, byte_offset, in ixgbe_read_i2c_eeprom_generic()
2019 static s32 ixgbe_read_i2c_sff8472_generic(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_sff8472_generic() argument
2022 return hw->phy.ops.read_i2c_byte(hw, byte_offset, in ixgbe_read_i2c_sff8472_generic()
2035 s32 ixgbe_write_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_write_i2c_eeprom_generic() argument
2040 return hw->phy.ops.write_i2c_byte(hw, byte_offset, in ixgbe_write_i2c_eeprom_generic()
2071 static s32 ixgbe_read_i2c_byte_generic_int(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_byte_generic_int() argument
2085 if (ixgbe_is_sfp_probe(hw, byte_offset, dev_addr)) in ixgbe_read_i2c_byte_generic_int()
2103 status = ixgbe_clock_out_i2c_byte(hw, byte_offset); in ixgbe_read_i2c_byte_generic_int()
[all …]
H A Dixgbe_82598.c74 static s32 ixgbe_read_i2c_sff8472_82598(struct ixgbe_hw *hw, u8 byte_offset,
1132 u8 byte_offset, u8 *eeprom_data) in ixgbe_read_i2c_phy_82598() argument
1157 sfp_addr = (dev_addr << 8) + byte_offset; in ixgbe_read_i2c_phy_82598()
1204 s32 ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_eeprom_82598() argument
1208 byte_offset, eeprom_data); in ixgbe_read_i2c_eeprom_82598()
1219 static s32 ixgbe_read_i2c_sff8472_82598(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_sff8472_82598() argument
1223 byte_offset, sff8472_data); in ixgbe_read_i2c_sff8472_82598()
H A Dixgbe_82598.h50 s32 ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset,
H A Dixgbe_82599.c63 static s32 ixgbe_read_i2c_byte_82599(struct ixgbe_hw *hw, u8 byte_offset,
65 static s32 ixgbe_write_i2c_byte_82599(struct ixgbe_hw *hw, u8 byte_offset,
2553 static s32 ixgbe_read_i2c_byte_82599(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_byte_82599() argument
2586 status = ixgbe_read_i2c_byte_generic(hw, byte_offset, dev_addr, data); in ixgbe_read_i2c_byte_82599()
2611 static s32 ixgbe_write_i2c_byte_82599(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_write_i2c_byte_82599() argument
2644 status = ixgbe_write_i2c_byte_generic(hw, byte_offset, dev_addr, data); in ixgbe_write_i2c_byte_82599()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dtree-dfa.c762 poly_int64 byte_offset = 0; in get_addr_base_and_unit_offset_1() local
778 byte_offset += this_byte_offset; in get_addr_base_and_unit_offset_1()
796 byte_offset += hthis_offset; in get_addr_base_and_unit_offset_1()
822 byte_offset += woffset.force_shwi (); in get_addr_base_and_unit_offset_1()
833 byte_offset += TREE_INT_CST_LOW (TYPE_SIZE_UNIT (TREE_TYPE (exp))); in get_addr_base_and_unit_offset_1()
852 byte_offset += off.force_shwi (); in get_addr_base_and_unit_offset_1()
874 byte_offset += off.force_shwi (); in get_addr_base_and_unit_offset_1()
889 *poffset = byte_offset; in get_addr_base_and_unit_offset_1()
H A Dtree-vect-data-refs.c4591 tree byte_offset) in vect_create_addr_base_for_vector_ref() argument
4629 if (byte_offset) in vect_create_addr_base_for_vector_ref()
4631 byte_offset = fold_convert (sizetype, byte_offset); in vect_create_addr_base_for_vector_ref()
4633 base_offset, byte_offset); in vect_create_addr_base_for_vector_ref()
4657 if (offset || byte_offset) in vect_create_addr_base_for_vector_ref()
4727 tree byte_offset, tree iv_step) in vect_create_data_ref_ptr() argument
4858 offset, byte_offset); in vect_create_data_ref_ptr()
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dtree-dfa.cc777 poly_int64 byte_offset = 0; in get_addr_base_and_unit_offset_1() local
793 byte_offset += this_byte_offset; in get_addr_base_and_unit_offset_1()
811 byte_offset += hthis_offset; in get_addr_base_and_unit_offset_1()
842 byte_offset += woffset.force_shwi (); in get_addr_base_and_unit_offset_1()
850 byte_offset += TREE_INT_CST_LOW (TYPE_SIZE_UNIT (TREE_TYPE (exp))); in get_addr_base_and_unit_offset_1()
869 byte_offset += off.force_shwi (); in get_addr_base_and_unit_offset_1()
891 byte_offset += off.force_shwi (); in get_addr_base_and_unit_offset_1()
906 *poffset = byte_offset; in get_addr_base_and_unit_offset_1()
H A Dtree-sra.cc1630 poly_int64 byte_offset = exact_div (offset, BITS_PER_UNIT); in build_ref_for_offset() local
1652 off = build_int_cst (reference_alias_ptr_type (prev_base), byte_offset); in build_ref_for_offset()
1658 base_offset + byte_offset); in build_ref_for_offset()
1665 base_offset + byte_offset); in build_ref_for_offset()
/netbsd-src/external/bsd/iscsi/dist/src/lib/
H A Ddisk.c1391 uint64_t byte_offset; in disk_write() local
1396 byte_offset = lba * disks.v[sess->d].blocklen; in disk_write()
1402 bytec, byte_offset); in disk_write()
1423 if (de_lseek(&disks.v[sess->d].lunv->v[lun].de, (off_t)byte_offset, in disk_write()
1427 byte_offset); in disk_write()
1435 bytec, byte_offset, in disk_write()
1445 bytec, byte_offset, in disk_write()
1462 uint64_t byte_offset; in disk_read() local
1471 byte_offset = lba * disks.v[sess->d].blocklen; in disk_read()
1496 (off_t)(n + byte_offset), SEEK_SET) == -1) { in disk_read()
/netbsd-src/external/bsd/pdisk/dist/
H A Dlayout_dump.c99 for (i = entry->byte_offset; byte_length > 0;i++) { in dump_using_layout()
114 value = (((uint8_t *)buffer)[entry->byte_offset] in dump_using_layout()
H A Dlayout_dump.h49 short byte_offset; member
/netbsd-src/external/gpl3/gcc/dist/gcc/analyzer/
H A Dregion.h854 key_t (const region *parent, tree element_type, const svalue *byte_offset)
855 : m_parent (parent), m_element_type (element_type), m_byte_offset (byte_offset)
857 gcc_assert (byte_offset);
890 const svalue *byte_offset)
891 : region (complexity::from_pair (parent, byte_offset), id, parent, type),
892 m_byte_offset (byte_offset)
H A Dregion.cc1295 tree byte_offset = DECL_FIELD_OFFSET (m_field); in get_relative_concrete_offset() local
1296 if (TREE_CODE (byte_offset) != INTEGER_CST) in get_relative_concrete_offset()
1302 + (wi::to_offset (byte_offset) << LOG2_BITS_PER_UNIT)); in get_relative_concrete_offset()
1420 HOST_WIDE_INT byte_offset in get_relative_concrete_offset() local
1422 HOST_WIDE_INT bit_offset = byte_offset * BITS_PER_UNIT; in get_relative_concrete_offset()
H A Dregion-model-manager.cc1462 const svalue *byte_offset) in get_offset_region() argument
1469 if (tree cst_offset = byte_offset->maybe_get_constant ()) in get_offset_region()
1480 = get_or_create_binop (byte_offset->get_type (), in get_offset_region()
1481 PLUS_EXPR, sval_x, byte_offset); in get_offset_region()
1485 offset_region::key_t key (parent, type, byte_offset); in get_offset_region()
1490 = new offset_region (alloc_region_id (), parent, type, byte_offset); in get_offset_region()
/netbsd-src/sys/external/bsd/drm2/dist/drm/i915/gem/
H A Di915_gem_mman.c1053 i915_gem_mmap_object(struct drm_device *dev, off_t byte_offset, size_t nbytes, in i915_gem_mmap_object() argument
1056 const unsigned long startpage = byte_offset >> PAGE_SHIFT; in i915_gem_mmap_object()
/netbsd-src/external/gpl3/gcc/dist/gcc/config/tilepro/
H A Dtilepro.cc1598 HOST_WIDE_INT byte_offset = bit_offset / BITS_PER_UNIT; in tilepro_expand_unaligned_load() local
1611 mem_lo = adjust_address (mem, QImode, byte_offset); in tilepro_expand_unaligned_load()
1612 mem_hi = adjust_address (mem, QImode, byte_offset + 1); in tilepro_expand_unaligned_load()
1649 addr_lo = force_reg (Pmode, plus_constant (Pmode, mema, byte_offset)); in tilepro_expand_unaligned_load()
1699 HOST_WIDE_INT byte_offset = bit_offset / BITS_PER_UNIT; in tilepro_expand_unaligned_store() local
1708 mem_addr = adjust_address (mem, QImode, byte_offset + i); in tilepro_expand_unaligned_store()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/config/tilepro/
H A Dtilepro.c1598 HOST_WIDE_INT byte_offset = bit_offset / BITS_PER_UNIT; in tilepro_expand_unaligned_load() local
1611 mem_lo = adjust_address (mem, QImode, byte_offset); in tilepro_expand_unaligned_load()
1612 mem_hi = adjust_address (mem, QImode, byte_offset + 1); in tilepro_expand_unaligned_load()
1649 addr_lo = force_reg (Pmode, plus_constant (Pmode, mema, byte_offset)); in tilepro_expand_unaligned_load()
1699 HOST_WIDE_INT byte_offset = bit_offset / BITS_PER_UNIT; in tilepro_expand_unaligned_store() local
1708 mem_addr = adjust_address (mem, QImode, byte_offset + i); in tilepro_expand_unaligned_store()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/config/tilegx/
H A Dtilegx.c1857 HOST_WIDE_INT byte_offset = bit_offset / BITS_PER_UNIT; in tilegx_expand_unaligned_load() local
1869 mem_lo = adjust_address (mem, QImode, byte_offset); in tilegx_expand_unaligned_load()
1870 mem_hi = adjust_address (mem, QImode, byte_offset + 1); in tilegx_expand_unaligned_load()
1917 addr_lo = force_reg (Pmode, plus_constant (Pmode, mema, byte_offset)); in tilegx_expand_unaligned_load()
1970 HOST_WIDE_INT byte_offset = bit_offset / BITS_PER_UNIT; in tilegx_expand_unaligned_store() local
1984 mem_addr = adjust_address (mem, QImode, byte_offset + i); in tilegx_expand_unaligned_store()
/netbsd-src/external/gpl3/gcc/dist/gcc/config/tilegx/
H A Dtilegx.cc1858 HOST_WIDE_INT byte_offset = bit_offset / BITS_PER_UNIT; in tilegx_expand_unaligned_load() local
1870 mem_lo = adjust_address (mem, QImode, byte_offset); in tilegx_expand_unaligned_load()
1871 mem_hi = adjust_address (mem, QImode, byte_offset + 1); in tilegx_expand_unaligned_load()
1918 addr_lo = force_reg (Pmode, plus_constant (Pmode, mema, byte_offset)); in tilegx_expand_unaligned_load()
1971 HOST_WIDE_INT byte_offset = bit_offset / BITS_PER_UNIT; in tilegx_expand_unaligned_store() local
1985 mem_addr = adjust_address (mem, QImode, byte_offset + i); in tilegx_expand_unaligned_store()

123