Searched refs:offset (Results 201 - 225 of 2575) sorted by relevance

1234567891011>>

/freebsd-10.2-release/contrib/netbsd-tests/fs/hfs/
H A Dt_pathconvert.c40 int offset, nbytes; local
62 for (offset = 0; offset < nbytes; offset += dirent->d_reclen) {
63 dirent = (struct dirent *)(buf + offset);
/freebsd-10.2-release/sys/dev/nxge/include/
H A Dxgehal-mm.h107 ptrdiff_t offset; local
112 offset = (int)((char * )item - (char *)memblock);
113 xge_assert(offset >= 0 && offset < mempool->memblock_size);
115 (*memblock_item_idx) = (int) offset / mempool->item_size;
/freebsd-10.2-release/crypto/openssh/
H A Dsftp-glob.c40 int offset; member in struct:SFTP_OPENDIR
59 r->offset = 0;
74 if (od->dir[od->offset] == NULL)
84 strlcpy(ret->d_name, od->dir[od->offset++]->filename, MAXPATHLEN);
86 strlcpy(ret->d_name, od->dir[od->offset++]->filename,
/freebsd-10.2-release/usr.bin/dtc/
H A Dinput_buffer.hh106 input_buffer buffer_from_offset(int offset, int s=0);
127 * index offset from the current cursor. The offset may be negative,
129 * cursor plus offset is outside of the range, this returns a nul
132 inline char operator[](int offset) argument
134 if (cursor + offset >= size) { return '\0'; }
135 if (cursor + offset < 0) { return '\0'; }
136 return buffer[cursor + offset];
/freebsd-10.2-release/sys/dev/sfxge/common/
H A Defx_vpd.c489 unsigned int offset; local
493 offset = 0;
496 if ((rc = efx_vpd_next_tag(data, size, &offset,
499 offset += taglen;
504 *lengthp = offset;
522 unsigned int offset; local
535 offset = 0;
538 if ((rc = efx_vpd_next_tag(data, size, &offset,
551 if ((rc = efx_vpd_next_keyword(data + offset,
557 for (i = 0; i < offset
619 unsigned int offset = 0; local
673 unsigned int offset; local
748 unsigned int offset; local
808 unsigned int offset; local
[all...]
/freebsd-10.2-release/usr.sbin/mtree/
H A Dcreate.c152 int fd, offset; local
162 offset = printf("%*s%s", indent, "", escaped_name);
164 offset = printf("%*s %s", indent, "", escaped_name);
168 if (offset > (INDENTNAMELEN + indent))
169 offset = MAXLINELEN;
171 offset += printf("%*s", (INDENTNAMELEN + indent) - offset, "");
174 output(indent, &offset, "type=%s", inotype(p->fts_statp->st_mode));
179 output(indent, &offset, "uname=%s", pw->pw_name);
189 output(indent, &offset, "ui
415 output(int indent, int *offset, const char *fmt, ...) argument
[all...]
/freebsd-10.2-release/lib/libc/stdio/
H A Dopen_wmemstream.c48 fpos_t offset; member in struct:wmemstream
83 assert(ms->len >= 0 && ms->offset >= 0);
84 *ms->sizep = ms->len < ms->offset ? ms->len : ms->offset;
129 if (!wmemstream_grow(ms, ms->offset + wlen))
138 while (len > 0 && ms->offset < ms->len) {
139 charlen = mbrtowc(*ms->bufp + ms->offset, buf, len,
159 ms->offset++;
176 old = ms->offset;
181 ms->offset
[all...]
H A Dfmemopen.c44 size_t off; /* current offset into the buffer */
49 static fpos_t fmemopen_seek(void *cookie, fpos_t offset, int whence);
210 fmemopen_seek(void *cookie, fpos_t offset, int whence) argument
217 if (offset > ck->size) {
221 ck->off = offset;
225 if (ck->off + offset > ck->size) {
229 ck->off += offset;
233 if (offset > 0 || -offset > ck->len) {
237 ck->off = ck->len + offset;
[all...]
/freebsd-10.2-release/sys/dev/ixl/
H A Di40e_nvm.c186 * @offset: offset of the Shadow RAM word to read (0x000000 - 0x001FFF)
191 enum i40e_status_code i40e_read_nvm_word(struct i40e_hw *hw, u16 offset, argument
199 if (offset >= hw->nvm.sr_size) {
209 sr_reg = (u32)(offset << I40E_GLNVM_SRCTL_ADDR_SHIFT) |
224 offset);
233 * @offset: offset of the Shadow RAM word to read (0x000000 - 0x001FFF).
241 enum i40e_status_code i40e_read_nvm_buffer(struct i40e_hw *hw, u16 offset, argument
251 index = offset
273 i40e_write_nvm_aq(struct i40e_hw *hw, u8 module_pointer, u32 offset, u16 words, void *data, bool last_command) argument
315 i40e_write_nvm_word(struct i40e_hw *hw, u32 offset, void *data) argument
337 i40e_write_nvm_buffer(struct i40e_hw *hw, u8 module_pointer, u32 offset, u16 words, void *data) argument
[all...]
/freebsd-10.2-release/sys/amd64/vmm/io/
H A Dvhpet.c477 int i, offset; local
480 offset = gpa - VHPET_BASE;
493 if ((offset & 0x4) != 0) {
500 "offset 0x%08x, size %d", offset, size);
505 if (offset & (size - 1)) {
507 "offset 0x%08x, size %d", offset, size);
511 if (offset == HPET_CONFIG || offset
623 int i, offset; local
[all...]
/freebsd-10.2-release/sys/contrib/octeon-sdk/
H A Dcvmx-fpa-defs.h120 static inline uint64_t CVMX_FPA_FPFX_MARKS(unsigned long offset) argument
123 (OCTEON_IS_MODEL(OCTEON_CN38XX) && (((offset >= 1) && (offset <= 7)))) ||
124 (OCTEON_IS_MODEL(OCTEON_CN56XX) && (((offset >= 1) && (offset <= 7)))) ||
125 (OCTEON_IS_MODEL(OCTEON_CN58XX) && (((offset >= 1) && (offset <= 7)))) ||
126 (OCTEON_IS_MODEL(OCTEON_CN61XX) && (((offset >= 1) && (offset <= 7)))) ||
127 (OCTEON_IS_MODEL(OCTEON_CN63XX) && (((offset >
138 CVMX_FPA_FPFX_SIZE(unsigned long offset) argument
169 CVMX_FPA_POOLX_END_ADDR(unsigned long offset) argument
183 CVMX_FPA_POOLX_START_ADDR(unsigned long offset) argument
197 CVMX_FPA_POOLX_THRESHOLD(unsigned long offset) argument
231 CVMX_FPA_QUEX_AVAILABLE(unsigned long offset) argument
253 CVMX_FPA_QUEX_PAGE_INDEX(unsigned long offset) argument
[all...]
H A Dcvmx-sso-defs.h188 static inline uint64_t CVMX_SSO_IQ_CNTX(unsigned long offset) argument
191 (OCTEON_IS_MODEL(OCTEON_CN68XX) && ((offset <= 7)))))
192 cvmx_warn("CVMX_SSO_IQ_CNTX(%lu) is invalid on this chip\n", offset);
193 return CVMX_ADD_IO_SEG(0x0001670000009000ull) + ((offset) & 7) * 8;
196 #define CVMX_SSO_IQ_CNTX(offset) (CVMX_ADD_IO_SEG(0x0001670000009000ull) + ((offset) & 7) * 8)
232 static inline uint64_t CVMX_SSO_IQ_THRX(unsigned long offset) argument
235 (OCTEON_IS_MODEL(OCTEON_CN68XX) && ((offset <= 7)))))
236 cvmx_warn("CVMX_SSO_IQ_THRX(%lu) is invalid on this chip\n", offset);
237 return CVMX_ADD_IO_SEG(0x000167000000A000ull) + ((offset)
309 CVMX_SSO_PPX_GRP_MSK(unsigned long offset) argument
320 CVMX_SSO_PPX_QOS_PRI(unsigned long offset) argument
342 CVMX_SSO_QOSX_RND(unsigned long offset) argument
353 CVMX_SSO_QOS_THRX(unsigned long offset) argument
386 CVMX_SSO_RWQ_HEAD_PTRX(unsigned long offset) argument
419 CVMX_SSO_RWQ_TAIL_PTRX(unsigned long offset) argument
452 CVMX_SSO_WA_PCX(unsigned long offset) argument
474 CVMX_SSO_WQ_INT_CNTX(unsigned long offset) argument
496 CVMX_SSO_WQ_INT_THRX(unsigned long offset) argument
518 CVMX_SSO_WS_PCX(unsigned long offset) argument
[all...]
/freebsd-10.2-release/contrib/llvm/tools/lldb/include/lldb/Core/
H A DDataExtractor.h118 /// data. If \a offset is not a valid offset in \a data, then no
120 /// \a length bytes available in \a data starting at \a offset,
127 /// @param[in] offset
128 /// The offset into \a data at which the subset starts.
133 DataExtractor (const DataExtractor& data, lldb::offset_t offset, lldb::offset_t length);
173 /// Log() if \a s is NULL) starting \a offset bytes into the data
174 /// and stopping after dumping \a length bytes. The offset into the
176 /// offset by base address \a base_addr. \a num_per_line objects
183 /// @param[in] offset
1121 PeekData(lldb::offset_t offset, lldb::offset_t length) const argument
1281 ValidOffsetForDataOfSize(lldb::offset_t offset, lldb::offset_t length) const argument
[all...]
/freebsd-10.2-release/sys/dev/altera/avgen/
H A Daltera_avgen.c81 u_long offset, size; local
103 offset = uio->uio_offset;
104 if (offset + width > size)
108 v1 = bus_read_1(sc->avg_res, offset);
113 v2 = bus_read_2(sc->avg_res, offset);
118 v4 = bus_read_4(sc->avg_res, offset);
124 v8 = bus_read_8(sc->avg_res, offset);
143 u_long offset, size; local
162 offset = uio->uio_offset;
163 if (offset
204 altera_avgen_mmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr, int nprot, vm_memattr_t *memattr) argument
[all...]
/freebsd-10.2-release/crypto/heimdal/lib/asn1/
H A Dtemplate.c45 #define DPOC(data,offset) ((const void *)(((const unsigned char *)data) + offset))
46 #define DPO(data,offset) ((void *)(((unsigned char *)data) + offset))
95 return t->offset;
170 void *el = DPO(data, t->offset);
249 data = DPO(data, t->offset);
294 void *el = DPO(data, t->offset);
317 struct template_of *el = DPO(data, t->offset);
348 size_t size = bmember->offset;
[all...]
/freebsd-10.2-release/contrib/dialog/
H A Ddialog.c1351 process_trace_option(char **argv, int *offset) argument
1356 dlg_trace(optionString(argv, offset));
1359 *offset += 1;
1375 process_common_options(int argc, char **argv, int offset, bool output) argument
1379 dlg_trace_msg("# process_common_options, offset %d\n", offset);
1381 while (offset < argc && !done) { /* Common options */
1382 dlg_trace_msg("#\targv[%d] = %s\n", offset, argv[offset]);
1383 switch (lookupOption(argv[offset],
1700 int offset = 1; local
[all...]
/freebsd-10.2-release/tools/regression/aio/aiop/
H A Daiop.c68 * + Add in per-op stats - time and offset - so one could start mapping out
105 set_aio(struct aiocb *a, iot_t iot, int fd, off_t offset, int size, char *buf) argument
111 a->aio_offset = offset;
131 off_t file_size, offset; local
166 * Lets instead treat random() as returning a block offset w/ block size
199 offset = random() % (file_size / io_size);
200 offset *= io_size;
201 set_aio(aio + i, choose_aio(iowhat), fd, offset, io_size, abuf[i]);
209 offset = random() % (file_size / io_size);
210 offset *
[all...]
/freebsd-10.2-release/tools/regression/sockets/sendfile/
H A Dsendfile.c75 uint32_t offset; member in struct:sendfile_test
86 uint32_t *offset, uint32_t *length);
94 uint32_t offset, uint32_t length);
102 test_th(struct test_header *th, uint32_t *header_length, uint32_t *offset, argument
109 *offset = ntohl(th->th_offset);
152 uint32_t header_length, offset, length, counter; local
163 if (test_th(&th, &header_length, &offset, &length) != 0)
256 init_th(struct test_header *th, uint32_t header_length, uint32_t offset, argument
262 th->th_offset = htonl(offset);
265 MD5FileChunk(path, th->th_md5, offset, lengt
[all...]
/freebsd-10.2-release/contrib/mdocml/
H A Dman_term.c46 size_t offset; /* default offset to visible page */ member in struct:mtermp
163 mt.offset = term_len(p, p->defindent);
257 p->offset = p->rmargin;
402 p->offset = mt->offset;
422 p->offset -= p->offset > v ? v : p->offset;
424 p->offset
[all...]
/freebsd-10.2-release/sys/dev/hptrr/
H A Dhptrr_os_bsd.c55 HPT_U8 os_pci_readb (void *osext, HPT_U8 offset) argument
57 return pci_read_config(((PHBA)osext)->pcidev, offset, 1);
60 HPT_U16 os_pci_readw (void *osext, HPT_U8 offset) argument
62 return pci_read_config(((PHBA)osext)->pcidev, offset, 2);
65 HPT_U32 os_pci_readl (void *osext, HPT_U8 offset) argument
67 return pci_read_config(((PHBA)osext)->pcidev, offset, 4);
70 void os_pci_writeb (void *osext, HPT_U8 offset, HPT_U8 value) argument
72 pci_write_config(((PHBA)osext)->pcidev, offset, value, 1);
75 void os_pci_writew (void *osext, HPT_U8 offset, HPT_U16 value) argument
77 pci_write_config(((PHBA)osext)->pcidev, offset, valu
80 os_pci_writel(void *osext, HPT_U8 offset, HPT_U32 value) argument
85 os_map_pci_bar( void *osext, int index, HPT_U32 offset, HPT_U32 length ) argument
[all...]
/freebsd-10.2-release/sys/mips/mips/
H A Dstdatomic.c95 * in 32-bit words at an offset corresponding with the location of the
102 size_t offset; local
104 offset = (intptr_t)offset_ptr & 3;
105 r->v8[offset] = val;
111 size_t offset; local
113 offset = (intptr_t)offset_ptr & 3;
114 return (r->v8[offset]);
120 size_t offset; local
126 offset = (intptr_t)offset_ptr & 3;
128 r->v8[offset]
135 size_t offset; local
[all...]
/freebsd-10.2-release/sys/arm/arm/
H A Ddb_interface.c297 u_int addr, nregs, offset = 0; local
301 case 0x0: /* add pc, reg1, reg2, lsl #offset */
306 offset = (insn >> 7) & 0x1e;
307 offset = (insn & 0xff) << (32 - offset) |
308 (insn & 0xff) >> offset;
311 offset = db_fetch_reg(insn & 0x0f);
320 offset = offset << nregs;
324 offset
[all...]
/freebsd-10.2-release/sys/arm/at91/
H A Dat91_cfata.c205 ch->r_io[ATA_DATA].offset = 0x00;
206 ch->r_io[ATA_FEATURE].offset = 0x01;
207 ch->r_io[ATA_COUNT].offset = 0x02;
208 ch->r_io[ATA_SECTOR].offset = 0x03;
209 ch->r_io[ATA_CYL_LSB].offset = 0x04;
210 ch->r_io[ATA_CYL_MSB].offset = 0x05;
211 ch->r_io[ATA_DRIVE].offset = 0x06;
212 ch->r_io[ATA_COMMAND].offset = 0x07;
213 ch->r_io[ATA_ERROR].offset = 0x01;
214 ch->r_io[ATA_IREASON].offset
[all...]
/freebsd-10.2-release/contrib/libyaml/src/
H A Dreader.c10 size_t offset, int value);
27 size_t offset, int value)
31 parser->problem_offset = offset;
68 parser->offset += 2;
74 parser->offset += 2;
80 parser->offset += 3;
124 parser->offset, -1);
241 parser->offset, octet);
249 parser->offset, -1);
273 parser->offset
26 yaml_parser_set_reader_error(yaml_parser_t *parser, const char *problem, size_t offset, int value) argument
[all...]
/freebsd-10.2-release/sys/ddb/
H A Ddb_textdump.c233 * accepts an offset relative to di->mediaoffset. If we're carrying any
239 textdump_writeblock(struct dumperinfo *di, off_t offset, char *buffer) argument
244 if (offset + TEXTDUMP_BLOCKSIZE > di->mediasize)
246 if (offset < SIZEOF_METADATA)
248 textdump_error = dump_write(di, buffer, 0, offset + di->mediaoffset,
251 printf("textdump_writeblock: offset %jd, error %d\n", (intmax_t)offset,
257 * Interfaces to save and restore the dump offset, so that printers can go
272 textdump_restoreoff(off_t offset) argument
275 textdump_offset = offset;
333 u_int i, len, offset, seq, total_len; local
[all...]

Completed in 311 milliseconds

1234567891011>>