/freebsd/sys/dev/gem/ |
H A D | if_gemvar.h | 185 GEM_READ_N(1, (sc), (offs)) 187 GEM_READ_N(2, (sc), (offs)) 189 GEM_READ_N(4, (sc), (offs)) 191 GEM_READ_N(1, (sc), (offs)) 193 GEM_READ_N(2, (sc), (offs)) 195 GEM_READ_N(4, (sc), (offs)) 200 GEM_WRITE_N(1, (sc), (offs), (v)) 202 GEM_WRITE_N(2, (sc), (offs), (v)) 204 GEM_WRITE_N(4, (sc), (offs), (v)) 206 GEM_WRITE_N(1, (sc), (offs), (v)) [all …]
|
H A D | if_gem_pci.c | 223 #define GEM_ROM_READ_1(sc, offs) \ in gem_pci_attach() argument 224 GEM_READ_1((sc), GEM_PCI_ROM_OFFSET + (offs)) in gem_pci_attach() 225 #define GEM_ROM_READ_2(sc, offs) \ in gem_pci_attach() argument 226 GEM_READ_2((sc), GEM_PCI_ROM_OFFSET + (offs)) in gem_pci_attach() 227 #define GEM_ROM_READ_4(sc, offs) \ in gem_pci_attach() argument 228 GEM_READ_4((sc), GEM_PCI_ROM_OFFSET + (offs)) in gem_pci_attach()
|
/freebsd/contrib/mandoc/ |
H A D | man.c | 109 roff_word_alloc(man, line, offs, buf + offs); in man_ptext() 110 man_descope(man, line, offs, buf + offs); in man_ptext() 160 roff_word_alloc(man, line, offs, buf + offs); in man_ptext() 172 man_descope(man, line, offs, buf + offs); in man_ptext() 188 ppos = offs; in man_pmacro() 191 offs++; in man_pmacro() 201 switch (buf[offs]) { in man_pmacro() 205 offs = cp - buf; in man_pmacro() 208 offs++; in man_pmacro() 217 offs++; in man_pmacro() [all …]
|
H A D | mdoc.c | 186 line, offs, &offs, buf); in mdoc_ptext() 263 roff_word_alloc(mdoc, line, offs, buf+offs); in mdoc_ptext() 276 if (mandoc_eos(buf+offs, (size_t)(end-buf-offs))) in mdoc_ptext() 317 sv = offs; in mdoc_pmacro() 320 offs++; in mdoc_pmacro() 330 switch (buf[offs]) { in mdoc_pmacro() 332 cp = buf + offs + 1; in mdoc_pmacro() 334 offs = cp - buf; in mdoc_pmacro() 337 offs++; in mdoc_pmacro() 346 offs++; in mdoc_pmacro() [all …]
|
H A D | tbl_opts.c | 123 tbl_option(struct tbl_node *tbl, int ln, const char *p, int *offs) in tbl_option() argument 127 pos = *offs; in tbl_option() 133 *offs = pos + 1; in tbl_option()
|
/freebsd/contrib/libexecinfo/ |
H A D | backtrace.c | 83 if (*buf && offs < *bufsiz) { in rasprintf() 88 len = vsnprintf(*buf + offs, *bufsiz - offs, fmt, ap); in rasprintf() 91 if (len < 0 || (size_t)len + 1 < *bufsiz - offs) in rasprintf() 95 nbufsiz = MAX(offs, *bufsiz) + 512; in rasprintf() 118 size_t o = offs; in format_string() 152 return o - offs; in format_string() 194 size_t offs = len * sizeof(char *); in backtrace_symbols_fmt() local 199 ((char **)(void *)ptr)[i] = (void *)offs; in backtrace_symbols_fmt() 206 offs += x; in backtrace_symbols_fmt() 207 ptr[offs++] = '\0'; in backtrace_symbols_fmt() [all …]
|
/freebsd/sys/dev/xdma/controller/ |
H A D | pl330.c | 495 offs = 0; in pl330_channel_submit_sg() 526 offs += emit_lp(&ibuf[offs], 0, cnt / 128); in pl330_channel_submit_sg() 528 offs += emit_lp(&ibuf[offs], 1, 128); in pl330_channel_submit_sg() 531 offs += emit_lp(&ibuf[offs], 0, cnt); in pl330_channel_submit_sg() 534 offs += emit_wfp(&ibuf[offs], data->periph_id); in pl330_channel_submit_sg() 535 offs += emit_ld(&ibuf[offs], 1); in pl330_channel_submit_sg() 536 offs += emit_st(&ibuf[offs], 1); in pl330_channel_submit_sg() 539 offs += emit_lpend(&ibuf[offs], 1, 1, (offs - offs1)); in pl330_channel_submit_sg() 541 offs += emit_lpend(&ibuf[offs], 0, 1, (offs - offs0)); in pl330_channel_submit_sg() 544 offs += emit_sev(&ibuf[offs], chan->index); in pl330_channel_submit_sg() [all …]
|
/freebsd/sys/dev/cas/ |
H A D | if_casvar.h | 200 #define CAS_BARRIER(sc, offs, len, flags) \ argument 203 #define CAS_READ_N(n, sc, offs) \ argument 204 bus_read_ ## n((sc)->sc_res[CAS_RES_MEM], (offs)) 205 #define CAS_READ_1(sc, offs) CAS_READ_N(1, (sc), (offs)) argument 206 #define CAS_READ_2(sc, offs) CAS_READ_N(2, (sc), (offs)) argument 207 #define CAS_READ_4(sc, offs) CAS_READ_N(4, (sc), (offs)) argument 209 #define CAS_WRITE_N(n, sc, offs, v) \ argument 210 bus_write_ ## n((sc)->sc_res[CAS_RES_MEM], (offs), (v)) 211 #define CAS_WRITE_1(sc, offs, v) CAS_WRITE_N(1, (sc), (offs), (v)) argument 212 #define CAS_WRITE_2(sc, offs, v) CAS_WRITE_N(2, (sc), (offs), (v)) argument [all …]
|
/freebsd/usr.sbin/dumpcis/ |
H A D | readcis.c | 197 off_t offs; in read_tuples() local 214 offs = (uint32_t)tpl32(tp->data); in read_tuples() 217 offs, flag ? "Attribute" : "Common"); in read_tuples() 222 if (offs > 0 && offs < 32 * 1024 && ck_linktarget(fd, offs, flag)) { in read_tuples() 223 tl = read_one_tuplelist(fd, flag, offs); in read_tuples() 258 if (tl->offs == offs && tl->flags == (flags & MDF_ATTR)) in read_one_tuplelist() 261 tl->offs = offs; in read_one_tuplelist() 266 if (lseek(fd, offs, SEEK_SET) < 0) in read_one_tuplelist() 268 (uintmax_t)offs); in read_one_tuplelist() 340 if (lseek(fd, offs, SEEK_SET) < 0) in ck_linktarget() [all …]
|
/freebsd/lib/libusbhid/ |
H A D | data.c | 46 int i, end, offs; in hid_get_data() local 63 offs = hpos / 8; in hid_get_data() 64 end = (hpos + hsize) / 8 - offs; in hid_get_data() 67 data |= buf[offs + i] << (i*8); in hid_get_data() 91 int offs; in hid_set_data() local 112 offs = hpos / 8; in hid_set_data() 113 end = (hpos + hsize) / 8 - offs; in hid_set_data() 116 buf[offs + i] = (buf[offs + i] & (mask >> (i*8))) | in hid_set_data()
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | io.cc | 277 void do_ftruncate(off_t offs) in do_ftruncate() argument 281 m_filesize = offs; in do_ftruncate() 284 void do_mapread(off_t offs, ssize_t size) in do_mapread() argument 292 pg_offset = offs & page_mask; in do_mapread() 296 offs - pg_offset); in do_mapread() 310 void do_read(off_t offs, ssize_t size) in do_read() argument 332 void do_mapwrite(off_t offs, ssize_t size) in do_mapwrite() argument 341 pg_offset = offs & page_mask; in do_mapwrite() 348 if (offs + size > m_filesize) { in do_mapwrite() 353 do_ftruncate(offs + size); in do_mapwrite() [all …]
|
/freebsd/contrib/ntp/scripts/ |
H A D | summary.in | 135 my ($freq, $offs); 150 ($offs, $freq) = ($Fld[2], $Fld[3]); 151 $loop_tmax = max($loop_tmax, $offs); 152 $loop_tmin = min($loop_tmin, $offs); 155 $loop_time += $offs; 156 $loop_time_rms += $offs * $offs; 212 my ($dist, $offs); 224 $offs = $Fld[4]; 225 if ($offs > $skip_time_steps || $offs < -$skip_time_steps) { 249 $peer_time{$i} += $offs; [all …]
|
/freebsd/contrib/file/src/ |
H A D | der.c | 269 if (gettag(b, &offs, len) == DER_BAD) { in der_offs() 274 offs, m->offset)); in der_offs() 276 uint32_t tlen = getlength(b, &offs, len); in der_offs() 282 offs, tlen)); in der_offs() 284 offs += ms->offset + m->offset; in der_offs() 293 if (offs + tlen > nbytes) in der_offs() 299 return CAST(int32_t, offs); in der_offs() 307 size_t offs = 0, len = ms->search.s_len; in der_cmp() local 313 tag = gettag(b, &offs, len); in der_cmp() 320 offs, m->offset)); in der_cmp() [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | bitops.h | 172 int offs; in find_last_bit() local 177 offs = size % BITS_PER_LONG; in find_last_bit() 180 if (offs) { in find_last_bit() 181 mask = (*addr) & BITMAP_LAST_WORD_MASK(offs); in find_last_bit() 198 int offs; in find_next_bit() local 205 offs = offset % BITS_PER_LONG; in find_next_bit() 208 if (offs) { in find_next_bit() 209 mask = (*addr) & ~BITMAP_LAST_WORD_MASK(offs); in find_next_bit() 238 int offs; in find_next_zero_bit() local 245 offs = offset % BITS_PER_LONG; in find_next_zero_bit() [all …]
|
/freebsd/sys/cddl/dev/dtrace/aarch64/ |
H A D | dtrace_subr.c | 268 int offs; in dtrace_invop_start() local 281 offs = (data >> OFFSET_SHIFT) & OFFSET_MASK; in dtrace_invop_start() 285 if (offs >> (OFFSET_SIZE - 1)) in dtrace_invop_start() 286 sp -= (~offs & OFFSET_MASK) + 1; in dtrace_invop_start() 288 sp += (offs); in dtrace_invop_start() 295 if (offs >> (OFFSET_SIZE - 1)) in dtrace_invop_start() 296 sp -= (~offs & OFFSET_MASK) + 1; in dtrace_invop_start() 298 sp += (offs); in dtrace_invop_start()
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mt76_connac3_mac.c | 17 u32 ru = le32_get_bits(rxv[0], MT_PRXV_HE_RU_ALLOC), offs = 0; in mt76_connac3_mac_decode_he_radiotap_ru() local 24 offs = ru; in mt76_connac3_mac_decode_he_radiotap_ru() 28 offs = ru - 37; in mt76_connac3_mac_decode_he_radiotap_ru() 32 offs = ru - 53; in mt76_connac3_mac_decode_he_radiotap_ru() 36 offs = ru - 61; in mt76_connac3_mac_decode_he_radiotap_ru() 40 offs = ru - 65; in mt76_connac3_mac_decode_he_radiotap_ru() 52 le16_encode_bits(offs, in mt76_connac3_mac_decode_he_radiotap_ru()
|
/freebsd/sys/dev/iwm/ |
H A D | if_iwm_pcie_trans.c | 212 int offs, ret = 0; in iwm_read_mem() local 217 for (offs = 0; offs < dwords; offs++) in iwm_read_mem() 218 vals[offs] = IWM_READ(sc, IWM_HBUS_TARG_MEM_RDAT); in iwm_read_mem() 231 int offs; in iwm_write_mem() local 237 for (offs = 0; offs < dwords; offs++) { in iwm_write_mem() 238 uint32_t val = vals ? vals[offs] : 0; in iwm_write_mem()
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/ |
H A D | eeprom.c | 13 u32 offs; in mt7915_eeprom_load_precal() local 26 offs = is_mt7915(&dev->mt76) ? MT_EE_PRECAL : MT_EE_PRECAL_V2; in mt7915_eeprom_load_precal() 28 return mt76_get_of_eeprom(mdev, dev->cal, offs, val); in mt7915_eeprom_load_precal() 322 u32 val, offs; in mt7915_eeprom_get_power_delta() local 327 offs = is_7976 ? MT_EE_RATE_DELTA_2G_V2 : MT_EE_RATE_DELTA_2G; in mt7915_eeprom_get_power_delta() 329 offs = is_7976 ? MT_EE_RATE_DELTA_5G_V2 : MT_EE_RATE_DELTA_5G; in mt7915_eeprom_get_power_delta() 331 offs = is_7976 ? MT_EE_RATE_DELTA_6G_V2 : 0; in mt7915_eeprom_get_power_delta() 333 val = eeprom[offs]; in mt7915_eeprom_get_power_delta() 335 if (!offs || !(val & MT_EE_RATE_DELTA_EN)) in mt7915_eeprom_get_power_delta()
|
/freebsd/contrib/llvm-project/clang/lib/Edit/ |
H A D | EditedSource.cpp | 338 SourceLocation Loc, FileOffset offs, in adjustRemoval() argument 346 StringRef buffer = SM.getBufferData(offs.getFID(), &Invalid); in adjustRemoval() 350 unsigned begin = offs.getOffset(); in adjustRemoval() 386 assert(offs.getFID().isValid()); in applyRewrite() 387 SourceLocation Loc = SM.getLocForStartOfFile(offs.getFID()); in applyRewrite() 388 Loc = Loc.getLocWithOffset(offs.getOffset()); in applyRewrite() 392 adjustRemoval(SM, LangOpts, Loc, offs, len, text); in applyRewrite() 426 FileOffset offs = I->first; in applyRewrites() local 428 assert(offs >= CurEnd); in applyRewrites() 430 if (offs == CurEnd) { in applyRewrites() [all …]
|
/freebsd/sys/dev/beri/virtio/ |
H A D | virtio.c | 107 _vq_record(uint32_t offs, int i, volatile struct vring_desc *vd, in _vq_record() argument 112 iov[i].iov_base = paddr_map(offs, be64toh(vd->addr), in _vq_record() 120 vq_getchain(uint32_t offs, struct vqueue_info *vq, in vq_getchain() argument 139 _vq_record(offs, i, vdir, iov, n_iov, flags); in vq_getchain() 143 vindir = paddr_map(offs, be64toh(vdir->addr), in vq_getchain() 148 _vq_record(offs, i, vp, iov, n_iov, flags); in vq_getchain()
|
/freebsd/sys/contrib/zlib/ |
H A D | inftrees.c | 54 unsigned short offs[MAXBITS+1]; /* offsets in table for each length */ in inflate_table() local 136 offs[1] = 0; in inflate_table() 138 offs[len + 1] = offs[len] + count[len]; in inflate_table() 142 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym; in inflate_table()
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_ppmd8_private.h | 102 #define Ppmd8_GetPtr(p, offs) ((void *)((p)->Base + (offs))) argument 103 #define Ppmd8_GetContext(p, offs) ((CPpmd8_Context *)Ppmd8_GetPtr((p), (offs))) argument
|
/freebsd/sys/arm/freescale/imx/ |
H A D | imx_wdog.c | 87 RD2(struct imx_wdog_softc *sc, bus_size_t offs) in RD2() argument 90 return (bus_read_2(sc->sc_res[MEMRES], offs)); in RD2() 94 WR2(struct imx_wdog_softc *sc, bus_size_t offs, uint16_t val) in WR2() argument 97 bus_write_2(sc->sc_res[MEMRES], offs, val); in WR2()
|
/freebsd/sys/cddl/dev/fbt/aarch64/ |
H A D | fbt_isa.c | 92 int offs; in fbt_provide_module_function() local 179 offs = (*instr & B_DATA_MASK); in fbt_provide_module_function() 180 offs *= 4; in fbt_provide_module_function() 181 target = (instr + offs); in fbt_provide_module_function()
|
/freebsd/contrib/netbsd-tests/lib/libc/gen/ |
H A D | t_glob.c | 161 size_t offs, count; in gl_stat() local 164 offs = 4; in gl_stat() 168 offs = 2; in gl_stat() 174 if (strcmp(f[i].name, buf + offs) == 0) in gl_stat()
|