/freebsd/sys/dev/gem/ |
H A D | if_gemvar.h | 179 #define GEM_BARRIER(sc, offs, len, flags) \ argument 180 bus_barrier((sc)->sc_res[GEM_RES_MEM], (offs), (len), (flags)) 182 #define GEM_READ_N(n, sc, offs) \ argument 183 bus_read_ ## n((sc)->sc_res[GEM_RES_MEM], (offs)) 184 #define GEM_READ_1(sc, offs) \ argument 185 GEM_READ_N(1, (sc), (offs)) 186 #define GEM_READ_2(sc, offs) \ argument 187 GEM_READ_N(2, (sc), (offs)) 188 #define GEM_READ_4(sc, offs) \ argument 189 GEM_READ_N(4, (sc), (offs)) [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 | 44 man_parseln(struct roff_man *man, int ln, char *buf, int offs) in man_parseln() argument 50 return roff_getcontrol(man->roff, buf, &offs) ? in man_parseln() 51 man_pmacro(man, ln, buf, offs) : in man_parseln() 52 man_ptext(man, ln, buf, offs); in man_parseln() 77 man_descope(struct roff_man *man, int line, int offs, char *start) in man_descope() argument 98 roff_body_alloc(man, line, offs, man->last->tok); in man_descope() 103 man_ptext(struct roff_man *man, int line, char *buf, int offs) in man_ptext() argument 111 roff_word_alloc(man, line, offs, buf + offs); in man_ptext() 112 man_descope(man, line, offs, buf + offs); in man_ptext() 116 for (i = offs; buf[i] == ' '; i++) in man_ptext() [all …]
|
H A D | mdoc.c | 62 mdoc_parseln(struct roff_man *mdoc, int ln, char *buf, int offs) in mdoc_parseln() argument 79 return roff_getcontrol(mdoc->roff, buf, &offs) ? in mdoc_parseln() 80 mdoc_pmacro(mdoc, ln, buf, offs) : in mdoc_parseln() 81 mdoc_ptext(mdoc, ln, buf, offs); in mdoc_parseln() 165 mdoc_ptext(struct roff_man *mdoc, int line, char *buf, int offs) in mdoc_ptext() argument 186 line, offs, &offs, buf); in mdoc_ptext() 197 for (c = end = buf + offs; *c; c++) { in mdoc_ptext() 240 if (buf[offs] == '\0' && (mdoc->flags & ROFF_NOFILL) == 0) { in mdoc_ptext() 257 roff_elem_alloc(mdoc, line, offs, ROFF_sp); in mdoc_ptext() 263 roff_word_alloc(mdoc, line, offs, buf+offs); in mdoc_ptext() [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 | 77 rasprintf(char **buf, size_t *bufsiz, size_t offs, const char *fmt, ...) in rasprintf() argument 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() 114 format_string(char **buf, size_t *bufsiz, size_t offs, const char *fmt, in format_string() argument 118 size_t o = offs; in format_string() 152 return o - offs; in format_string() 156 format_address(symtab_t *st, char **buf, size_t *bufsiz, size_t offs, in format_address() argument 173 return format_string(buf, bufsiz, offs, fmt, &dli, addr); in format_address() [all …]
|
/freebsd/sys/dev/xdma/controller/ |
H A D | pl330.c | 477 uint32_t offs; in pl330_channel_submit_sg() local 495 offs = 0; in pl330_channel_submit_sg() 509 offs += emit_mov(&chan->ibuf[offs], R_CCR, reg); in pl330_channel_submit_sg() 518 offs += emit_mov(&ibuf[offs], R_SAR, src_addr_lo); in pl330_channel_submit_sg() 519 offs += emit_mov(&ibuf[offs], R_DAR, dst_addr_lo); in pl330_channel_submit_sg() 526 offs += emit_lp(&ibuf[offs], 0, cnt / 128); in pl330_channel_submit_sg() 527 offs0 = offs; in pl330_channel_submit_sg() 528 offs += emit_lp(&ibuf[offs], 1, 128); in pl330_channel_submit_sg() 529 offs1 = offs; in pl330_channel_submit_sg() 531 offs += emit_lp(&ibuf[offs], 0, cnt); 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 201 bus_barrier((sc)->sc_res[CAS_RES_MEM], (offs), (len), (flags)) 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 [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() 248 read_one_tuplelist(int fd, int flags, off_t offs) in read_one_tuplelist() argument 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() [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 | 278 void do_ftruncate(off_t offs) in do_ftruncate() argument 280 ASSERT_EQ(0, ftruncate(m_test_fd, offs)) << strerror(errno); in do_ftruncate() 281 ASSERT_EQ(0, ftruncate(m_control_fd, offs)) << strerror(errno); in do_ftruncate() 282 m_filesize = offs; in do_ftruncate() 285 void do_mapread(off_t offs, ssize_t size) in do_mapread() argument 293 pg_offset = offs & page_mask; in do_mapread() 297 offs - pg_offset); in do_mapread() 302 ASSERT_EQ(size, pread(m_control_fd, control_buf, size, offs)) in do_mapread() 305 compare((void*)((char*)p + pg_offset), control_buf, offs, size); in do_mapread() 311 void do_read(off_t offs, ssize_t size) in do_read() argument [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 > [all...] |
/freebsd/contrib/file/src/ |
H A D | der.c | 267 size_t offs = 0, len = ms->search.s_len ? ms->search.s_len : nbytes; in der_offs() local 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() 295 ms->c.li[m->cont_level - 1].off = CAST(int, offs + tlen); 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 [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 | 301 int offs; in dtrace_invop_start() local 308 offs = (data >> OFFSET_SHIFT) & OFFSET_MASK; in dtrace_invop_start() 312 if (offs >> (OFFSET_SIZE - 1)) in dtrace_invop_start() 313 sp -= (~offs & OFFSET_MASK) + 1; in dtrace_invop_start() 315 sp += (offs); in dtrace_invop_start() 322 if (offs >> (OFFSET_SIZE - 1)) in dtrace_invop_start() 323 sp -= (~offs & OFFSET_MASK) + 1; in dtrace_invop_start() 325 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() 383 StringRef text, FileOffset offs, unsigned len, in applyRewrite() argument 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() [all …]
|
/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/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/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/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 target = instr + offs; in fbt_provide_module_function()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/PowerPC/ |
H A D | ABISysV_ppc64.cpp | 411 Register(Type ty, uint32_t index, uint32_t offs, RegisterContext *reg_ctx, in Register() argument 413 : m_index(index), m_offs(offs % sizeof(uint64_t)), in Register() 423 Register(uint32_t offs, RegisterContext *reg_ctx, ByteOrder byte_order) in Register() argument 424 : Register(GPR, offs / sizeof(uint64_t), offs, reg_ctx, byte_order) {} in Register() 494 Register GetGPRByOffs(uint32_t offs) const { in GetGPRByOffs() 495 return Register(offs, m_reg_ctx, m_byte_order); in GetGPRByOffs() 739 uint32_t offs = 0; in GetVectorValueObject() local 741 offs = vr_size - m_byte_size; in GetVectorValueObject() 744 memcpy(m_data_up->GetBytes(), vr_data->GetBytes() + offs, m_byte_size); in GetVectorValueObject() 850 bool ExtractFromRegs(int32_t offs, uint32_t size, void *buf) { in ExtractFromRegs() argument [all …]
|
/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()
|