Home
last modified time | relevance | path

Searched refs:ofs (Results 1 – 25 of 132) sorted by relevance

123456

/freebsd/sys/powerpc/powerpc/
H A Dbus_machdep.c65 __ppc_ba(bus_space_handle_t bsh, bus_size_t ofs) in __ppc_ba() argument
67 return ((void *)(bsh + ofs)); in __ppc_ba()
153 bs_gen_subregion(bus_space_handle_t bsh, bus_size_t ofs, in bs_gen_subregion() argument
156 *nbshp = bsh + ofs; in bs_gen_subregion()
176 bs_gen_barrier(bus_space_handle_t bsh __unused, bus_size_t ofs __unused, in bs_gen_barrier()
187 native_bs_rs_1(bus_space_handle_t bsh, bus_size_t ofs) in native_bs_rs_1() argument
192 addr = __ppc_ba(bsh, ofs); in native_bs_rs_1()
195 CTR4(KTR_BE_IO, "%s(bsh=%#x, ofs=%#x) = %#x", __func__, bsh, ofs, res); in native_bs_rs_1()
200 native_bs_rs_2(bus_space_handle_t bsh, bus_size_t ofs) in native_bs_rs_2() argument
205 addr = __ppc_ba(bsh, ofs); in native_bs_rs_2()
[all …]
/freebsd/contrib/smbfs/include/netsmb/
H A Dsmb_lib.h64 #define getb(buf,ofs) (((const u_int8_t *)(buf))[ofs]) argument
65 #define setb(buf,ofs,val) (((u_int8_t*)(buf))[ofs])=val argument
66 #define getbw(buf,ofs) ((u_int16_t)(getb(buf,ofs))) argument
67 #define getw(buf,ofs) (*((u_int16_t*)(&((u_int8_t*)(buf))[ofs]))) argument
68 #define getdw(buf,ofs) (*((u_int32_t*)(&((u_int8_t*)(buf))[ofs]))) argument
72 #define getwle(buf,ofs) (*((u_int16_t*)(&((u_int8_t*)(buf))[ofs]))) argument
73 #define getdle(buf,ofs) (*((u_int32_t*)(&((u_int8_t*)(buf))[ofs]))) argument
74 #define getwbe(buf,ofs) (ntohs(getwle(buf,ofs))) argument
75 #define getdbe(buf,ofs) (ntohl(getdle(buf,ofs))) argument
77 #define setwle(buf,ofs,val) getwle(buf,ofs)=val argument
[all …]
/freebsd/sys/contrib/dev/iwlwifi/
H A Diwl-io.h11 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val);
12 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val);
13 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val);
14 u32 iwl_read32(struct iwl_trans *trans, u32 ofs);
36 u32 iwl_read_prph_no_grab(struct iwl_trans *trans, u32 ofs);
37 u32 iwl_read_prph(struct iwl_trans *trans, u32 ofs);
38 void iwl_write_prph_no_grab(struct iwl_trans *trans, u32 ofs, u32 val);
39 void iwl_write_prph64_no_grab(struct iwl_trans *trans, u64 ofs, u64 val);
40 void iwl_write_prph_delay(struct iwl_trans *trans, u32 ofs,
42 static inline void iwl_write_prph(struct iwl_trans *trans, u32 ofs, u32 val) in iwl_write_prph() argument
[all …]
H A Diwl-io.c17 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val) in iwl_write8() argument
19 trace_iwlwifi_dev_iowrite8(trans->dev, ofs, val); in iwl_write8()
20 iwl_trans_write8(trans, ofs, val); in iwl_write8()
24 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val) in iwl_write32() argument
26 trace_iwlwifi_dev_iowrite32(trans->dev, ofs, val); in iwl_write32()
27 iwl_trans_write32(trans, ofs, val); in iwl_write32()
31 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val) in iwl_write64() argument
33 trace_iwlwifi_dev_iowrite64(trans->dev, ofs, val); in iwl_write64()
34 iwl_trans_write32(trans, ofs, lower_32_bits(val)); in iwl_write64()
35 iwl_trans_write32(trans, ofs in iwl_write64()
39 iwl_read32(struct iwl_trans * trans,u32 ofs) iwl_read32() argument
114 iwl_read_prph_no_grab(struct iwl_trans * trans,u32 ofs) iwl_read_prph_no_grab() argument
122 iwl_write_prph_no_grab(struct iwl_trans * trans,u32 ofs,u32 val) iwl_write_prph_no_grab() argument
129 iwl_write_prph64_no_grab(struct iwl_trans * trans,u64 ofs,u64 val) iwl_write_prph64_no_grab() argument
137 iwl_read_prph(struct iwl_trans * trans,u32 ofs) iwl_read_prph() argument
152 iwl_write_prph_delay(struct iwl_trans * trans,u32 ofs,u32 val,u32 delay_ms) iwl_write_prph_delay() argument
177 iwl_set_bits_prph(struct iwl_trans * trans,u32 ofs,u32 mask) iwl_set_bits_prph() argument
188 iwl_set_bits_mask_prph(struct iwl_trans * trans,u32 ofs,u32 bits,u32 mask) iwl_set_bits_mask_prph() argument
200 iwl_clear_bits_prph(struct iwl_trans * trans,u32 ofs,u32 mask) iwl_clear_bits_prph() argument
[all...]
/freebsd/sys/dev/bwi/
H A Dbwimac.h73 #define MOBJ_WRITE_2(mac, objid, ofs, val) \ argument
74 bwi_memobj_write_2((mac), (objid), (ofs), (val))
75 #define MOBJ_WRITE_4(mac, objid, ofs, val) \ argument
76 bwi_memobj_write_4((mac), (objid), (ofs), (val))
77 #define MOBJ_READ_2(mac, objid, ofs) \ argument
78 bwi_memobj_read_2((mac), (objid), (ofs))
79 #define MOBJ_READ_4(mac, objid, ofs) \ argument
80 bwi_memobj_read_4((mac), (objid), (ofs))
82 #define MOBJ_SETBITS_4(mac, objid, ofs, bits) \ argument
83 MOBJ_WRITE_4((mac), (objid), (ofs), \
[all …]
H A Dbwirf.h112 #define RF_WRITE(mac, ofs, val) bwi_rf_write((mac), (ofs), (val)) argument
113 #define RF_READ(mac, ofs) bwi_rf_read((mac), (ofs)) argument
115 #define RF_SETBITS(mac, ofs, bits) \ argument
116 RF_WRITE((mac), (ofs), RF_READ((mac), (ofs)) | (bits))
117 #define RF_CLRBITS(mac, ofs, bits) \ argument
118 RF_WRITE((mac), (ofs), RF_READ((mac), (ofs)) & ~(bits))
119 #define RF_FILT_SETBITS(mac, ofs, filt, bits) \ argument
120 RF_WRITE((mac), (ofs), (RF_READ((mac), (ofs)) & (filt)) | (bits))
H A Dbwiphy.c264 bwi_tbl_write_2(struct bwi_mac *mac, uint16_t ofs, uint16_t data) in bwi_tbl_write_2() argument
271 PHY_WRITE(mac, phy->phy_tbl_ctrl, ofs); in bwi_tbl_write_2()
276 bwi_tbl_write_4(struct bwi_mac *mac, uint16_t ofs, uint32_t data) in bwi_tbl_write_4() argument
285 PHY_WRITE(mac, phy->phy_tbl_ctrl, ofs); in bwi_tbl_write_4()
291 bwi_nrssi_write(struct bwi_mac *mac, uint16_t ofs, int16_t data) in bwi_nrssi_write() argument
293 PHY_WRITE(mac, BWI_PHYR_NRSSI_CTRL, ofs); in bwi_nrssi_write()
298 bwi_nrssi_read(struct bwi_mac *mac, uint16_t ofs) in bwi_nrssi_read() argument
300 PHY_WRITE(mac, BWI_PHYR_NRSSI_CTRL, ofs); in bwi_nrssi_read()
438 uint16_t val, ofs; in bwi_phy_init_11b_rev4() local
448 for (ofs = 0, val = 0x3c3d; ofs < 30; ++ofs, val -= 0x202) in bwi_phy_init_11b_rev4()
[all …]
/freebsd/tools/bus_space/
H A Dbus.c46 off_t ofs; member
123 r->ofs = 0; in bs_map()
125 MAP_NOCORE | MAP_SHARED, r->fd, r->ofs); in bs_map()
130 bs_read(int rid, off_t ofs, void *buf, ssize_t bufsz) in bs_read() argument
140 if (ofs < 0 || ofs > r->size - bufsz) { in bs_read()
144 ofs += r->ofs; in bs_read()
146 ptr = r->ptr + ofs; in bs_read()
162 o = lseek(r->fd, ofs, SEEK_SET); in bs_read()
163 if (o != ofs) in bs_read()
173 bs_subregion(int rid0, long ofs, long sz) in bs_subregion() argument
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmt792x_regs.h9 #define MT_MCU_WFDMA1(ofs) (MT_MCU_WFDMA1_BASE + (ofs)) argument
18 #define MT_PLE(ofs) (MT_PLE_BASE + (ofs)) argument
30 #define MT_WF_TMAC(_band, ofs) (MT_WF_TMAC_BASE(_band) + (ofs)) argument
55 #define MT_WF_DMA(_band, ofs) (MT_WF_DMA_BASE(_band) + (ofs)) argument
63 #define MT_WTBLOFF_TOP(_band, ofs) (MT_WTBLOFF_TOP_BASE(_band) + (ofs)) argument
71 #define MT_WF_LPON(_band, ofs) (MT_WF_LPON_BASE(_band) + (ofs)) argument
82 #define MT_WF_ETBF(_band, ofs) (MT_WF_ETBF_BASE(_band) + (ofs)) argument
96 #define MT_WF_MIB(_band, ofs) (MT_WF_MIB_BASE(_band) + (ofs)) argument
158 #define MT_WTBLON_TOP(ofs) (MT_WTBLON_TOP_BASE + (ofs)) argument
178 #define MT_WF_AGG(_band, ofs) (MT_WF_AGG_BASE(_band) + (ofs)) argument
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dregs.h130 #define MT_MCU_WFDMA0(ofs) (MT_MCU_WFDMA0_BASE + (ofs)) argument
136 #define MT_MCU_WFDMA1(ofs) (MT_MCU_WFDMA1_BASE + (ofs)) argument
146 #define MT_PLE(ofs) (MT_PLE_BASE + (ofs)) argument
167 #define MT_PSE(ofs) (MT_PSE_BASE + (ofs)) argument
171 #define MT_MDP(ofs) (MT_MDP_BASE + (ofs)) argument
198 #define MT_WF_TRB(_band, ofs) (MT_WF_TRB_BASE(_band) + (ofs)) argument
206 #define MT_WF_TMAC(_band, ofs) (MT_WF_TMAC_BASE(_band) + (ofs)) argument
242 #define MT_WF_DMA(_band, ofs) (MT_WF_DMA_BASE(_band) + (ofs)) argument
250 #define MT_WTBLOFF_TOP(_band, ofs) (MT_WTBLOFF_TOP_BASE(_band) + (ofs)) argument
258 #define MT_WF_ETBF(_band, ofs) (MT_WF_ETBF_BASE(_band) + (ofs)) argument
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/
H A Dregs.h49 #define MT_PLE(ofs) (MT_PLE_BASE + (ofs)) argument
66 #define MT_MDP(ofs) (MT_MDP_BASE + (ofs)) argument
73 #define MT_WF_TMAC(_band, ofs) (MT_WF_TMAC_BASE(_band) + (ofs)) argument
94 #define MT_WF_DMA(_band, ofs) (MT_WF_DMA_BASE(_band) + (ofs)) argument
104 #define MT_WTBLOFF(_band, ofs) (MT_WTBLOFF_BASE(_band) + (ofs)) argument
112 #define MT_WF_ETBF(_band, ofs) (MT_WF_ETBF_BASE(_band) + (ofs)) argument
121 #define MT_WF_LPON(_band, ofs) (MT_WF_LPON_BASE(_band) + (ofs)) argument
141 #define MT_WF_MIB(_band, ofs) (MT_WF_MIB_BASE(_band) + (ofs)) argument
216 #define MT_WF_UMIB(ofs) (MT_WF_UMIB_BASE + (ofs)) argument
222 #define MT_WTBLON_TOP(ofs) (MT_WTBLON_TOP_BASE + (ofs)) argument
[all …]
/freebsd/usr.bin/mkcsmapper/
H A Dyacc.y218 put8(void *ptr, size_t ofs, u_int32_t val) in put8() argument
221 *((u_int8_t *)ptr + ofs) = val; in put8()
225 put16(void *ptr, size_t ofs, u_int32_t val) in put16() argument
229 memcpy((u_int16_t *)ptr + ofs, &oval, 2); in put16()
233 put32(void *ptr, size_t ofs, u_int32_t val) in put32() argument
237 memcpy((u_int32_t *)ptr + ofs, &oval, 4); in put32()
301 size_t i, len, ofs; in create_rowcol_info() local
303 ofs = 0; in create_rowcol_info()
307 put32(ptr, ofs, rowcol_bits); ofs++; in create_rowcol_info()
308 put32(ptr, ofs, dst_invalid); ofs++; in create_rowcol_info()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/
H A Dregs.h36 #define MT_HW_INFO(ofs) (MT_HW_INFO_BASE + (ofs)) argument
52 #define MT_MCU(ofs) (MT_MCU_BASE + (ofs)) argument
65 #define MT_MCU_CIRQ(ofs) (MT_MCU_CIRQ_BASE + (ofs)) argument
69 #define MT_HIF(ofs) ((dev)->reg_map[MT_HIF_BASE] + (ofs)) argument
88 #define MT_HIF2(ofs) (MT_HIF2_BASE + (ofs)) argument
162 #define MT_CSR(ofs) ((dev)->reg_map[MT_CSR_BASE] + (ofs)) argument
165 #define MT_PLE(ofs) ((dev)->reg_map[MT_PLE_BASE] + (ofs)) argument
177 #define MT_PSE(ofs) ((dev)->reg_map[MT_PSE_BASE] + (ofs)) argument
189 #define MT_PP(ofs) ((dev)->reg_map[MT_PP_BASE] + (ofs)) argument
195 #define MT_WF_PHY(ofs) (MT_WF_PHY_BASE + (ofs)) argument
[all …]
/freebsd/tools/bus_space/C/
H A Dlang.c35 bus_read_1(int rid, long ofs) in bus_read_1() argument
39 return ((!bs_read(rid, ofs, &val, sizeof(val))) ? -1 : (int)val); in bus_read_1()
43 bus_read_2(int rid, long ofs) in bus_read_2() argument
47 return ((!bs_read(rid, ofs, &val, sizeof(val))) ? -1 : (int)val); in bus_read_2()
51 bus_read_4(int rid, long ofs) in bus_read_4() argument
55 return ((!bs_read(rid, ofs, &val, sizeof(val))) ? -1 : (int64_t)val); in bus_read_4()
59 bus_write_1(int rid, long ofs, uint8_t val) in bus_write_1() argument
62 return ((!bs_write(rid, ofs, &val, sizeof(val))) ? errno : 0); in bus_write_1()
66 bus_write_2(int rid, long ofs, uint16_t val) in bus_write_2() argument
69 return ((!bs_write(rid, ofs, &val, sizeof(val))) ? errno : 0); in bus_write_2()
[all …]
H A Dlibbus.h31 int16_t bus_read_1(int rid, long ofs);
32 int32_t bus_read_2(int rid, long ofs);
33 int64_t bus_read_4(int rid, long ofs);
34 int bus_subregion(int rid, long ofs, long sz);
36 int bus_write_1(int rid, long ofs, uint8_t val);
37 int bus_write_2(int rid, long ofs, uint16_t val);
38 int bus_write_4(int rid, long ofs, uint32_t val);
/freebsd/sys/dev/bhnd/cores/chipc/
H A Dchipc_slicer.c159 for(uint32_t ofs = 0; ofs < flash_size; ofs+= 0x1000){ in chipc_slicer_walk() local
160 val = bus_read_4(res, ofs); in chipc_slicer_walk()
164 if (ofs_trx < ofs) { in chipc_slicer_walk()
165 BHND_TRACE_DEV(dev, "stop on 2nd TRX: %x", ofs); in chipc_slicer_walk()
169 BHND_TRACE("TRX found: %x", ofs); in chipc_slicer_walk()
170 ofs_trx = ofs; in chipc_slicer_walk()
172 fs_ofs = bus_read_4(res, ofs + 24); in chipc_slicer_walk()
186 slices[*nslices].base = ofs + fs_ofs; in chipc_slicer_walk()
188 fw_len = bus_read_4(res, ofs + 4); in chipc_slicer_walk()
194 BHND_TRACE("CFE found: %x", ofs); in chipc_slicer_walk()
[all …]
/freebsd/sys/netpfil/ipfw/
H A Ddn_heap.c108 heap_init(struct dn_heap *h, int size, int ofs) in heap_init() argument
113 h->ofs = ofs; in heap_init()
128 if (h->ofs > 0) \
129 *((int32_t *)((char *)(h->p[i].object) + h->ofs)) = i; \
136 if (h->ofs > 0) \
137 *((int32_t *)((char *)(h->p[i].object) + h->ofs)) = -16; \
188 if (h->ofs <= 0) in heap_extract()
191 father = *((int *)((char *)obj + h->ofs)); in heap_extract()
239 if (h->ofs <= 0)
243 i = *((int *)((char *)object + h->ofs));
[all …]
/freebsd/sys/dev/cfi/
H A Dcfi_dev.c86 cfi_block_start(struct cfi_softc *sc, u_int ofs) in cfi_block_start() argument
100 if (ofs < rofs + rsz) in cfi_block_start()
109 sc->sc_wrofs = ofs - (ofs - rofs) % sc->sc_wrbufsz; in cfi_block_start()
190 u_int ofs; in cfi_devread() local
202 ofs = uio->uio_offset; in cfi_devread()
203 val = cfi_read_raw(sc, ofs); in cfi_devread()
215 ofs &= sc->sc_width - 1; in cfi_devread()
216 error = uiomove(buf.x8 + ofs, in cfi_devread()
217 MIN(uio->uio_resid, sc->sc_width - ofs), uio); in cfi_devread()
226 u_int ofs, top; in cfi_devwrite() local
[all …]
H A Dcfi_core.c65 cfi_read_raw(struct cfi_softc *sc, u_int ofs) in cfi_read_raw() argument
69 ofs &= ~(sc->sc_width - 1); in cfi_read_raw()
72 val = bus_space_read_1(sc->sc_tag, sc->sc_handle, ofs); in cfi_read_raw()
75 val = bus_space_read_2(sc->sc_tag, sc->sc_handle, ofs); in cfi_read_raw()
78 val = bus_space_read_4(sc->sc_tag, sc->sc_handle, ofs); in cfi_read_raw()
88 cfi_read(struct cfi_softc *sc, u_int ofs) in cfi_read() argument
93 ofs &= ~(sc->sc_width - 1); in cfi_read()
96 val = bus_space_read_1(sc->sc_tag, sc->sc_handle, ofs); in cfi_read()
99 sval = bus_space_read_2(sc->sc_tag, sc->sc_handle, ofs); in cfi_read()
107 val = bus_space_read_4(sc->sc_tag, sc->sc_handle, ofs); in cfi_read()
120 cfi_write(struct cfi_softc * sc,u_int ofs,u_int val) cfi_write() argument
158 cfi_read_qry(struct cfi_softc * sc,u_int ofs) cfi_read_qry() argument
169 cfi_amd_write(struct cfi_softc * sc,u_int ofs,u_int addr,u_int data) cfi_amd_write() argument
507 cfi_check_erase(struct cfi_softc * sc,u_int ofs,u_int sz) cfi_check_erase() argument
538 cfi_wait_ready(struct cfi_softc * sc,u_int ofs,sbintime_t start,enum cfi_wait_cmd cmd) cfi_wait_ready() argument
[all...]
/freebsd/stand/libsa/
H A Dpkgfs.c341 pkg_seek(struct open_file *f, off_t ofs, int whence) in pkg_seek() argument
358 delta = ofs - tf->tf_fp; in pkg_seek()
361 delta = ofs; in pkg_seek()
364 delta = tf->tf_size - tf->tf_fp + ofs; in pkg_seek()
662 off_t ofs; in new_package() local
676 ofs = 0; in new_package()
679 if (get_byte(pkg, &ofs) != 0x1f || get_byte(pkg, &ofs) != 0x8b) in new_package()
682 if (get_byte(pkg, &ofs) != Z_DEFLATED) in new_package()
685 flags = get_byte(pkg, &ofs); in new_package()
691 if (get_byte(pkg, &ofs) == -1) in new_package()
[all …]
/freebsd/tools/bus_space/Python/
H A Dlang.c36 long ofs; in bus_read_1() local
40 if (!PyArg_ParseTuple(args, "il", &rid, &ofs)) in bus_read_1()
42 if (!bs_read(rid, ofs, &val, sizeof(val))) { in bus_read_1()
52 long ofs; in bus_read_2() local
56 if (!PyArg_ParseTuple(args, "il", &rid, &ofs)) in bus_read_2()
58 if (!bs_read(rid, ofs, &val, sizeof(val))) { in bus_read_2()
68 long ofs; in bus_read_4() local
72 if (!PyArg_ParseTuple(args, "il", &rid, &ofs)) in bus_read_4()
74 if (!bs_read(rid, ofs, &val, sizeof(val))) { in bus_read_4()
84 long ofs; in bus_write_1() local
[all …]
/freebsd/usr.bin/mkimg/
H A Dimage.c64 off_t ofs; /* Offset in backing file. */ member
110 off_t ofs; in image_swap_alloc() local
118 ofs = image_swap_size; in image_swap_alloc()
121 image_swap_size = ofs; in image_swap_alloc()
122 ofs = -1LL; in image_swap_alloc()
124 return (ofs); in image_swap_alloc()
249 image_chunk_append(lba_t blk, size_t sz, off_t ofs, int fd) in image_chunk_append() argument
257 ofs == (off_t)(ch->ch_u.file.ofs + ch->ch_size)) { in image_chunk_append()
262 ofs = ch->ch_u.file.ofs + ch->ch_size; in image_chunk_append()
272 ch->ch_u.file.ofs = ofs; in image_chunk_append()
[all …]
/freebsd/sys/dev/proto/
H A Dproto_core.c339 off_t ofs; in proto_read() local
350 ofs = uio->uio_offset; in proto_read()
351 if (ofs + width > r->r_size) in proto_read()
357 pci_read_config(dev, ofs, 1) : bus_read_1(r->r_d.res, ofs); in proto_read()
361 pci_read_config(dev, ofs, 2) : bus_read_2(r->r_d.res, ofs); in proto_read()
365 pci_read_config(dev, ofs, 4) : bus_read_4(r->r_d.res, ofs); in proto_read()
371 buf.x8[0] = bus_read_8(r->r_d.res, ofs); in proto_read()
394 off_t ofs; in proto_write() local
405 ofs = uio->uio_offset; in proto_write()
406 if (ofs + width > r->r_size) in proto_write()
[all …]
/freebsd/lib/libkvm/
H A Dkvm_minidump_amd64.c191 off_t ofs; in _amd64_minidump_vatop_v1() local
207 ofs = _kvm_pt_find(kd, a, AMD64_PAGE_SIZE); in _amd64_minidump_vatop_v1()
208 if (ofs == -1) { in _amd64_minidump_vatop_v1()
214 *pa = ofs + offset; in _amd64_minidump_vatop_v1()
218 ofs = _kvm_pt_find(kd, a, AMD64_PAGE_SIZE); in _amd64_minidump_vatop_v1()
219 if (ofs == -1) { in _amd64_minidump_vatop_v1()
225 *pa = ofs + offset; in _amd64_minidump_vatop_v1()
250 off_t ofs; in _amd64_minidump_vatop() local
268 ofs = _kvm_pt_find(kd, a, AMD64_PAGE_SIZE); in _amd64_minidump_vatop()
269 if (ofs == -1) { in _amd64_minidump_vatop()
[all …]
/freebsd/contrib/libpcap/msdos/
H A Dpktdrvr.c828 WORD ofs = _farpeekw (_dos_ds, realBase+rxOutOfs); in PktReceive() local
830 if (ofs != _farpeekw (_dos_ds, realBase+rxInOfs)) in PktReceive()
835 head.firstCount = _farpeekw (_dos_ds, realBase+ofs); in PktReceive()
836 head.secondCount = _farpeekw (_dos_ds, realBase+ofs+2); in PktReceive()
837 head.handle = _farpeekw (_dos_ds, realBase+ofs+4); in PktReceive()
843 dosmemget (realBase+ofs+6, len, buf); in PktReceive()
848 ofs += sizeof (RX_ELEMENT); in PktReceive()
849 if (ofs > LAST_RX_BUF) in PktReceive()
851 else _farpokew (_dos_ds, realBase+rxOutOfs, ofs); in PktReceive()
859 WORD ofs; in PktQueueBusy() local
[all …]

123456