| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/fault/ |
| H A D | nouveau_nvkm_subdev_fault_tu102.c | 48 const u32 foff = buffer->id * 0x20; in tu102_fault_buffer_fini() local 49 nvkm_mask(device, 0xb83010 + foff, 0x80000000, 0x00000000); in tu102_fault_buffer_fini() 56 const u32 foff = buffer->id * 0x20; in tu102_fault_buffer_init() local 58 nvkm_mask(device, 0xb83010 + foff, 0xc0000000, 0x40000000); in tu102_fault_buffer_init() 59 nvkm_wr32(device, 0xb83004 + foff, upper_32_bits(buffer->addr)); in tu102_fault_buffer_init() 60 nvkm_wr32(device, 0xb83000 + foff, lower_32_bits(buffer->addr)); in tu102_fault_buffer_init() 61 nvkm_mask(device, 0xb83010 + foff, 0x80000000, 0x80000000); in tu102_fault_buffer_init() 68 const u32 foff = buffer->id * 0x20; in tu102_fault_buffer_info() local 70 nvkm_mask(device, 0xb83010 + foff, 0x40000000, 0x40000000); in tu102_fault_buffer_info() 72 buffer->entries = nvkm_rd32(device, 0xb83010 + foff) & 0x000fffff; in tu102_fault_buffer_info() [all …]
|
| H A D | nouveau_nvkm_subdev_fault_gv100.c | 93 const u32 foff = buffer->id * 0x14; in gv100_fault_buffer_fini() local 94 nvkm_mask(device, 0x100e34 + foff, 0x80000000, 0x00000000); in gv100_fault_buffer_fini() 101 const u32 foff = buffer->id * 0x14; in gv100_fault_buffer_init() local 103 nvkm_mask(device, 0x100e34 + foff, 0xc0000000, 0x40000000); in gv100_fault_buffer_init() 104 nvkm_wr32(device, 0x100e28 + foff, upper_32_bits(buffer->addr)); in gv100_fault_buffer_init() 105 nvkm_wr32(device, 0x100e24 + foff, lower_32_bits(buffer->addr)); in gv100_fault_buffer_init() 106 nvkm_mask(device, 0x100e34 + foff, 0x80000000, 0x80000000); in gv100_fault_buffer_init() 113 const u32 foff = buffer->id * 0x14; in gv100_fault_buffer_info() local 115 nvkm_mask(device, 0x100e34 + foff, 0x40000000, 0x40000000); in gv100_fault_buffer_info() 117 buffer->entries = nvkm_rd32(device, 0x100e34 + foff) & 0x000fffff; in gv100_fault_buffer_info() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/gprofng/libcollector/ |
| H A D | iolib.c | 61 #define CUR_MAKE(busy, indx, foff) ((((uint64_t)(busy))<<63) | (((uint64_t)(indx))<<57) | ((uint64_… argument 112 static int mapBuffer (char *fname, Buffer *buf, off64_t foff); 374 uint64_t opos, npos, foff; in deleteHandle() local 380 foff = CUR_FOFF (opos); in deleteHandle() 390 blk_off = foff & (blksz - 1); in deleteHandle() 392 foff += blksz - blk_off; in deleteHandle() 393 npos = CUR_MAKE (1, indx, foff); in deleteHandle() 910 mapBuffer (char *fname, Buffer *buf, off64_t foff) in mapBuffer() argument 923 TprintfT (DBG_LT2, "mapBuffer pwrite file %s at 0x%llx\n", fname, (long long) foff); in mapBuffer() 928 (off64_t) (foff + blksz - sizeof (nl))); in mapBuffer() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/gprofng/libcollector/ |
| H A D | iolib.c | 61 #define CUR_MAKE(busy, indx, foff) ((((uint64_t)(busy))<<63) | (((uint64_t)(indx))<<57) | ((uint64_… argument 112 static int mapBuffer (char *fname, Buffer *buf, off64_t foff); 376 uint64_t opos, npos, foff; in deleteHandle() local 382 foff = CUR_FOFF (opos); in deleteHandle() 392 blk_off = foff & (blksz - 1); in deleteHandle() 394 foff += blksz - blk_off; in deleteHandle() 395 npos = CUR_MAKE (1, indx, foff); in deleteHandle() 911 mapBuffer (char *fname, Buffer *buf, off64_t foff) in mapBuffer() argument 924 TprintfT (DBG_LT2, "mapBuffer pwrite file %s at 0x%llx\n", fname, (long long) foff); in mapBuffer() 928 int n = CALL_UTIL (pwrite64)(fd, &nl, sizeof (nl), (off64_t) (foff + blksz - sizeof (nl))); in mapBuffer() [all …]
|
| /netbsd-src/sys/arch/hppa/stand/common/ |
| H A D | exec_som.c | 65 xp->text.foff = x.a_tfile; in som_load() 66 xp->data.foff = x.a_dfile; in som_load() 67 xp->bss.foff = 0; in som_load() 69 xp->sym.foff = xf->sym_loc; in som_load() 70 xp->str.foff = xf->strings_loc; in som_load()
|
| H A D | lif.c | 166 int foff; in lif_read() local 175 foff = fp->f_off + fp->f_seek; in lif_read() 178 btodb(foff), count, p, &bsize))) in lif_read() 181 bsize = sizeof(bbuf) - (foff & (sizeof(bbuf) - 1)); in lif_read() 183 memcpy(buf, bbuf + (foff & (sizeof(bbuf) - 1)), bsize); in lif_read()
|
| /netbsd-src/sys/net/npf/ |
| H A D | npf_mbuf.c | 196 const size_t foff = nbuf_offset(nbuf); in nbuf_ensure_contig() local 205 if ((target = NBUF_ENSURE_ROUNDUP(foff + len)) > plen) { in nbuf_ensure_contig() 206 target = foff + len; in nbuf_ensure_contig() 228 KASSERT(foff < m_buflen(m) && foff < m_length(m)); in nbuf_ensure_contig() 229 nbuf->nb_nptr = mtod(m, uint8_t *) + foff; in nbuf_ensure_contig()
|
| /netbsd-src/external/gpl3/binutils/dist/bfd/ |
| H A D | elf32-nds32.c | 7443 bfd_signed_vma foff; in calculate_offset() local 7500 foff = (symval + addend in calculate_offset() 7502 return foff; in calculate_offset() 8658 bfd_signed_vma foff; in calculate_memory_address() local 8718 foff = symval + addend; in calculate_memory_address() 8720 return foff; in calculate_memory_address() 9657 bfd_signed_vma foff; in nds32_elf_relax_longcall1() local 9679 foff = calculate_offset (abfd, sec, hi_irelfn, isymbuf, symtab_hdr); in nds32_elf_relax_longcall1() 9682 if (foff == 0 in nds32_elf_relax_longcall1() 9683 || foff < -CONSERVATIVE_24BIT_S1 in nds32_elf_relax_longcall1() [all …]
|
| H A D | elf32-v850.c | 3512 bfd_signed_vma foff; in v850_elf_relax_section() local 3740 foff = (symval + addend in v850_elf_relax_section() 3751 symval, addend, foff); in v850_elf_relax_section() 3754 if (foff < -0x100000 || foff >= 0x100000) in v850_elf_relax_section() 3945 foff = (symval + addend in v850_elf_relax_section() 3956 symval, addend, foff); in v850_elf_relax_section() 3958 if (foff < -0x100000 || foff >= 0x100000) in v850_elf_relax_section() 3973 if (foff < -0x100 || foff >= 0x100) in v850_elf_relax_section()
|
| /netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
| H A D | elf32-nds32.c | 7443 bfd_signed_vma foff; in calculate_offset() local 7500 foff = (symval + addend in calculate_offset() 7502 return foff; in calculate_offset() 8658 bfd_signed_vma foff; in calculate_memory_address() local 8718 foff = symval + addend; in calculate_memory_address() 8720 return foff; in calculate_memory_address() 9657 bfd_signed_vma foff; in nds32_elf_relax_longcall1() local 9679 foff = calculate_offset (abfd, sec, hi_irelfn, isymbuf, symtab_hdr); in nds32_elf_relax_longcall1() 9682 if (foff == 0 in nds32_elf_relax_longcall1() 9683 || foff < -CONSERVATIVE_24BIT_S1 in nds32_elf_relax_longcall1() [all …]
|
| H A D | elf32-v850.c | 3511 bfd_signed_vma foff; in v850_elf_relax_section() local 3739 foff = (symval + addend in v850_elf_relax_section() 3750 symval, addend, foff); in v850_elf_relax_section() 3753 if (foff < -0x100000 || foff >= 0x100000) in v850_elf_relax_section() 3944 foff = (symval + addend in v850_elf_relax_section() 3955 symval, addend, foff); in v850_elf_relax_section() 3957 if (foff < -0x100000 || foff >= 0x100000) in v850_elf_relax_section() 3972 if (foff < -0x100 || foff >= 0x100) in v850_elf_relax_section()
|
| /netbsd-src/external/gpl3/binutils.old/dist/gprofng/src/ |
| H A D | LoadObject.cc | 413 LoadObject::find_function (uint64_t foff) in find_function() argument 416 int hash = (((int) foff) >> 6) & (HTableSize - 1); in find_function() 418 if (func && foff >= func->img_offset && foff < func->img_offset + func->size) in find_function() 431 if (foff < fp->img_offset) in find_function() 433 else if (foff >= fp->img_offset + fp->size) in find_function() 449 if (foff >= usize) in find_function() 456 if (func->size < 0 || (uint64_t) func->size < foff - usize) in find_function() 457 func->size = foff - usize; in find_function() 462 high_bound = foff; in find_function() 474 else if (foff < functions->fetch (0)->img_offset) in find_function() [all …]
|
| H A D | parse.cc | 225 mrec->foff = 0; in process_fn_load_cmd() 257 mrec->foff = 0; in process_fn_load_cmd() 502 mrec->foff = 0; in process_jcm_load_cmd() 777 mrec->foff = offset; in process_seg_map_cmd() 917 mrec->foff = lo_min; in process_Linux_kernel_cmd()
|
| /netbsd-src/lib/libkvm/ |
| H A D | kvm_sparc.c | 230 off_t foff; in _kvm_kvatop4m() local 257 foff = _kvm_pa2off(kd, (u_long)&sp->sg_pte[VA_VPG(va)] - kernbase); in _kvm_kvatop4m() 258 if (foff == (off_t)-1) in _kvm_kvatop4m() 261 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), foff) != sizeof(pte)) { in _kvm_kvatop4m()
|
| H A D | kvm.c | 887 off_t foff; in kvm_read() local 896 foff = _kvm_pa2off(kd, pa); in kvm_read() 898 cc = _kvm_pread(kd, kd->pmfd, cp, (size_t)cc, foff); in kvm_read() 951 off_t foff; in kvm_write() local 960 foff = _kvm_pa2off(kd, pa); in kvm_write() 962 cc = _kvm_pwrite(kd, cp, (size_t)cc, foff); in kvm_write()
|
| /netbsd-src/external/gpl3/binutils/dist/gprofng/src/ |
| H A D | LoadObject.cc | 413 LoadObject::find_function (uint64_t foff) in find_function() argument 416 int hash = (((int) foff) >> 6) & (HTableSize - 1); in find_function() 418 if (func && foff >= func->img_offset && foff < func->img_offset + func->size) in find_function() 431 if (foff < fp->img_offset) in find_function() 433 else if (foff >= fp->img_offset + fp->size) in find_function() 450 high_bound = foff >= usize ? foff : usize; in find_function() 467 if (sz + func->img_offset < foff) in find_function() 468 func->size = foff - func->img_offset; in find_function() 473 high_bound = foff > usize ? foff : usize; in find_function()
|
| H A D | parse.cc | 225 mrec->foff = 0; in process_fn_load_cmd() 257 mrec->foff = 0; in process_fn_load_cmd() 502 mrec->foff = 0; in process_jcm_load_cmd() 777 mrec->foff = offset; in process_seg_map_cmd() 917 mrec->foff = lo_min; in process_Linux_kernel_cmd()
|
| /netbsd-src/regress/sys/net/frag/ |
| H A D | ip4_frag_1.c | 85 create_ip_packet(in_addr_t target, int foff, size_t addlen) in create_ip_packet() argument 93 first = ((foff & IP_MF) == 0); in create_ip_packet() 109 ip->ip_off = foff; in create_ip_packet()
|
| /netbsd-src/sys/arch/m68k/include/ |
| H A D | pmap_motorola.h | 250 #define PMAP_PREFER(foff, vap, sz, td) pmap_prefer((foff), (vap)) argument
|
| /netbsd-src/sys/external/bsd/drm/dist/bsd-core/ |
| H A D | drm_bufs.c | 1073 vm_ooffset_t foff; in drm_mapbufs() local 1077 voff_t foff; in drm_mapbufs() local 1106 foff = map->offset; in drm_mapbufs() 1109 foff = 0; in drm_mapbufs() 1116 VM_PROT_ALL, MAP_SHARED | MAP_NOSYNC, OBJT_DEVICE, dev->devnode, foff); in drm_mapbufs() 1120 foff); in drm_mapbufs() 1126 retcode = uvm_mmap_dev(curproc, &addr, rsize, dev->kdev, foff); in drm_mapbufs() 1128 DRM_DEBUG("mmap %#lx/%#lx foff %#llx\n", vaddr, rsize, (long long)foff); in drm_mapbufs()
|
| /netbsd-src/external/bsd/ntp/dist/include/ |
| H A D | parse_conf.h | 68 struct foff struct
|
| /netbsd-src/sys/dev/pad/ |
| H A D | pad.c | 283 int foff, flen, tlen; in pad_add_block() local 292 foff = sc->sc_wpos; in pad_add_block() 301 sc->sc_wpos = foff + blksize; in pad_add_block() 309 memcpy(sc->sc_audiobuf + foff, blk, flen); in pad_add_block()
|
| /netbsd-src/sys/uvm/ |
| H A D | uvm_mmap.c | 857 voff_t foff, vsize_t locklimit) in uvm_mmap() argument 869 if (foff & PAGE_MASK) in uvm_mmap() 927 foff = UVM_UNKNOWN_OFFSET; in uvm_mmap() 945 error = uvm_map(map, addr, size, uobj, foff, align, uvmflag); in uvm_mmap()
|
| /netbsd-src/external/gpl3/binutils/dist/gold/ |
| H A D | output.cc | 4375 off_t foff = *poff; in set_section_addresses() local 4382 foff += last_relro_pad; in set_section_addresses() 4394 addr, poff, &foff, pshndx, in set_section_addresses() 4401 gold_assert(*poff == foff in set_section_addresses() 4406 this->filesz_ = foff - orig_off; in set_section_addresses() 4407 off = foff; in set_section_addresses() 4482 off_t foff = *pfoff; in set_section_list_addresses() local 4534 gold_assert(off == foff || is_bss); in set_section_list_addresses() 4537 foff = off; in set_section_list_addresses() 4538 (*p)->set_address_and_file_offset(addr + (off - startoff), foff); in set_section_list_addresses() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/gold/ |
| H A D | output.cc | 4374 off_t foff = *poff; in set_section_addresses() local 4381 foff += last_relro_pad; in set_section_addresses() 4393 addr, poff, &foff, pshndx, in set_section_addresses() 4400 gold_assert(*poff == foff in set_section_addresses() 4405 this->filesz_ = foff - orig_off; in set_section_addresses() 4406 off = foff; in set_section_addresses() 4481 off_t foff = *pfoff; in set_section_list_addresses() local 4533 gold_assert(off == foff || is_bss); in set_section_list_addresses() 4536 foff = off; in set_section_list_addresses() 4537 (*p)->set_address_and_file_offset(addr + (off - startoff), foff); in set_section_list_addresses() [all …]
|