Searched refs:off (Results 1 - 25 of 125) sorted by relevance

12345

/haiku/src/add-ons/kernel/file_systems/fat/
H A Dutil.h37 #define read32(buffer,off) \
38 (((uint8 *)buffer)[(off)] + (((uint8 *)buffer)[(off)+1] << 8) + \
39 (((uint8 *)buffer)[(off)+2] << 16) + (((uint8 *)buffer)[(off)+3] << 24))
41 #define read16(buffer,off) \
42 (((uint8 *)buffer)[(off)] + (((uint8 *)buffer)[(off)+1] << 8))
45 #define read32(buffer,off) \
46 B_LENDIAN_TO_HOST_INT32(*(uint32 *)&buffer[off])
[all...]
/haiku/src/system/boot/loader/file_systems/fat/
H A Dfatfs.h24 #define read32(buffer,off) \
25 B_LENDIAN_TO_HOST_INT32(*(uint32 *)&buffer[off])
27 #define read16(buffer,off) (buffer[off] + (buffer[off + 1] << 8))
29 #define write32(buffer, off, value) \
30 *(uint32*)&buffer[off] = B_HOST_TO_LENDIAN_INT32(value)
32 #define write16(buffer, off, value) \
33 *(uint16*)&buffer[off] = B_HOST_TO_LENDIAN_INT16(value)
/haiku/src/system/libroot/posix/glibc/include/
H A Dsysdep.h42 # define cfi_def_cfa(reg, off) .cfi_def_cfa reg, off
44 # define cfi_def_cfa_offset(off) .cfi_def_cfa_offset off
45 # define cfi_adjust_cfa_offset(off) .cfi_adjust_cfa_offset off
46 # define cfi_offset(reg, off) .cfi_offset reg, off
47 # define cfi_rel_offset(reg, off) .cfi_rel_offset reg, off
[all...]
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5212/
H A Dar5212_eeprom.c38 ar5212EepromRead(struct ath_hal *ah, u_int off, uint16_t *data) argument
40 OS_REG_WRITE(ah, AR_EEPROM_ADDR, off);
47 __func__, off);
/haiku/src/system/kernel/arch/m68k/
H A Darch_040_cpu.cpp37 int l, off; local
40 off = (unsigned int)address & (CACHELINE - 1);
41 len += off;
44 p = (char *)address - off;
61 int l, off; local
64 off = (unsigned int)address & (CACHELINE - 1);
65 len += off;
68 p = (char *)address - off;
H A Darch_030_cpu.cpp36 int l, off; local
40 off = (unsigned int)address & (CACHELINE - 1);
41 len += off;
44 p = (char *)address - off;
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5416/
H A Dar5416_eeprom.c37 ar5416EepromRead(struct ath_hal *ah, u_int off, uint16_t *data) argument
39 OS_REG_READ(ah, AR5416_EEPROM_OFFSET + (off << AR5416_EEPROM_S));
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5312/
H A Dar5312_eeprom.c36 ar5312EepromRead(struct ath_hal *ah, u_int off, uint16_t *dataIn) argument
43 for (i=0,offset=2*off; i<2; i++,offset++) {
/haiku/src/libs/compat/freebsd_network/
H A Dfbsd_uipc_mbuf2.c89 * ensure that [off, off + len) is contiguous on the mbuf chain "m".
90 * packet chain before "off" is kept untouched.
99 m_pulldown(struct mbuf *m, int off, int len, int *offp) argument
123 while (n != NULL && off > 0) {
124 if (n->m_len > off)
126 off -= n->m_len;
163 * the target data is on <n, off>.
166 if ((off == 0 || offp) && len <= n->m_len - off)
272 m_dup1(struct mbuf *m, int off, int len, int wait) argument
[all...]
H A Dfbsd_uipc_mbuf.c129 * Ensure the correct size of various mbuf parameters. It could be off due
443 int off = off0; local
447 KASSERT(off >= 0, ("m_copym, negative off %d", off));
450 if (off == 0 && m->m_flags & M_PKTHDR)
452 while (off > 0) {
454 if (off < m->m_len)
456 off -= m->m_len;
483 n->m_len = min(len, m->m_len - off);
564 m_copydata(const struct mbuf *m, int off, int len, caddr_t cp) argument
965 m_devget(char *buf, int totlen, int off, struct ifnet *ifp, void (*copy)(char *from, caddr_t to, u_int len)) argument
1031 m_copyback(struct mbuf *m0, int off, int len, c_caddr_t cp) argument
1130 m_apply(struct mbuf *m, int off, int len, int (*f)(void *, void *, u_int), void *arg) argument
1162 m_getptr(struct mbuf *m, int loc, int *off) argument
1599 int len, off; local
[all...]
/haiku/src/add-ons/kernel/drivers/audio/echo/generic/
H A DCIndigoDJDspCommObject.cpp35 #pragma optimize("",off)
H A DCIndigoDspCommObject.cpp35 #pragma optimize("",off)
H A DCIndigoIODspCommObject.cpp35 #pragma optimize("",off)
/haiku/src/libs/stdc++/legacy/
H A Dbuiltinbuf.cc51 streampos builtinbuf::seekoff(streamoff off, _seek_dir dir, int mode) argument
53 return _IO_SEEKOFF (this, off, dir, mode);
67 streampos builtinbuf::sys_seek(streamoff off, _seek_dir dir) argument
68 { return _IO_SYSSEEK (this, off, dir); }
H A Dindstream.cc75 streampos indirectbuf::seekoff(streamoff off, _seek_dir dir, int mode) argument
82 ret_val = gbuf->seekoff(off, dir, mode);
85 ret_val = gbuf->seekoff(off, dir, ios::in);
87 ret_val = pbuf->seekoff(off, dir, ios::out);
H A Dstrstream.cc107 streampos strstreambuf::seekoff(streamoff off, _seek_dir dir, argument
110 return _IO_str_seekoff (this, off, dir, mode);
/haiku/src/libs/compat/freebsd_wlan/net80211/
H A Dieee80211_radiotap.c72 int off; local
78 off = -1;
80 off = radiotap_offset(th, n_tx_v, IEEE80211_RADIOTAP_CHANNEL);
82 off = radiotap_offset(th, n_tx_v, IEEE80211_RADIOTAP_XCHANNEL);
83 if (off == -1) {
88 ic->ic_txchan = ((uint8_t *) th) + off;
94 off = -1;
96 off = radiotap_offset(rh, n_rx_v, IEEE80211_RADIOTAP_CHANNEL);
98 off = radiotap_offset(rh, n_rx_v, IEEE80211_RADIOTAP_XCHANNEL);
99 if (off
349 int off, i; local
[all...]
/haiku/src/apps/soundrecorder/
H A DDrawButton.cpp12 const unsigned char *off, BMessage *msg, int32 resize, int32 flags)
18 fOff.SetBits(off, (frame.Width() + 1) * (frame.Height() + 1), 0, B_CMAP8);
11 DrawButton(BRect frame, const char *name, const unsigned char *on, const unsigned char *off, BMessage *msg, int32 resize, int32 flags) argument
H A DDrawButton.h18 const unsigned char *off, BMessage *msg, int32 resize = 0,
/haiku/src/add-ons/kernel/network/dns_resolver/kernel_add_on/
H A Ddns_resolver.cpp137 off_t off = 0; local
139 strcpy(buffer + off, node);
141 buffer[off] = '\0';
142 off += nodeSize;
145 strcpy(buffer + off, service);
147 buffer[off] = '\0';
148 off += serviceSize;
151 memcpy(buffer + off, hints, sizeof(*hints));
154 = reinterpret_cast<struct addrinfo*>(buffer + off);
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/
H A Dah_eeprom_v3.c77 uint16_t eeval, off; local
89 off = GROUPS_OFFSET3_3 + GROUP1_OFFSET;
91 EEREAD(off++);
96 off = GROUPS_OFFSET3_2 + GROUP1_OFFSET;
98 EEREAD(off++);
103 EEREAD(off++);
108 EEREAD(off++);
113 EEREAD(off++);
119 EEREAD(off++);
289 uint32_t off; local
740 uint32_t off; local
820 uint32_t off; local
926 uint32_t off; local
1023 uint32_t off; local
1139 uint32_t off; local
[all...]
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/
H A Dif_rtwn_efuse.c120 rtwn_efuse_read_data(struct rtwn_softc *sc, uint8_t *rom, uint8_t off, argument
130 addr = off * 8 + i * 2;
179 uint8_t msk, off, reg; local
191 off = reg >> 5;
195 off = ((reg & 0xf0) >> 1) | off;
199 off = reg >> 4;
202 RTWN_CHK(rtwn_efuse_read_data(sc, rom, off, msk));
/haiku/src/system/kernel/arch/ppc/
H A Darch_cpu.cpp71 int l, off; local
74 off = (unsigned int)address & (CACHELINE - 1);
75 len += off;
78 p = (char *)address - off;
85 p = (char *)address - off;
/haiku/src/libs/x86emu/
H A Ddebug.c91 disassemble_forward(u16 seg, u16 off, int n) argument
122 tregs.x86.R_IP = off;
221 u16 seg, off; local
226 off = fetch_data_word_abs(0, iv * 4 + 2);
227 printk("%04x:%04x ", seg, off);
231 X86EMU_dump_memory(u16 seg, u16 off, u32 amt) argument
233 u32 start = off & 0xfffffff0;
234 u32 end = (off + 16) & 0xfffffff0;
239 while (end <= off + amt) {
241 for (i = start; i < off;
[all...]
/haiku/headers/cpp/
H A Dsstream141 seekoff(off_type off, ios::seek_dir way, int which = ios::in | ios::out)
180 if (testin && newoffi + off + curi - beg >= 0 &&
181 endi - beg >= newoffi + off + curi - beg)
183 gbump(newoffi + off);
184 ret = pos_type(newoffi + off + curi);
186 if (testout && newoffo + off + curo - beg >= 0 &&
187 endo - beg >= newoffo + off + curo - beg)
189 pbump(newoffo + off);
190 ret = pos_type(newoffo + off + curo);

Completed in 241 milliseconds

12345