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.c156 *nbshp = bsh + ofs; in bs_gen_subregion()
192 addr = __ppc_ba(bsh, ofs); in native_bs_rs_1()
205 addr = __ppc_ba(bsh, ofs); in native_bs_rs_2()
218 addr = __ppc_ba(bsh, ofs); in native_bs_rs_4()
231 addr = __ppc_ba(bsh, ofs); in native_bs_rs_8()
306 addr = __ppc_ba(bsh, ofs); in native_bs_ws_1()
317 addr = __ppc_ba(bsh, ofs); in native_bs_ws_2()
328 addr = __ppc_ba(bsh, ofs); in native_bs_ws_4()
339 addr = __ppc_ba(bsh, ofs); in native_bs_ws_8()
506 addr = __ppc_ba(bsh, ofs); in swapped_bs_rs_1()
[all …]
/freebsd/contrib/smbfs/include/netsmb/
H A Dsmb_lib.h66 #define getbw(buf,ofs) ((u_int16_t)(getb(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
78 #define setwbe(buf,ofs,val) getwle(buf,ofs)=htons(val) argument
79 #define setdle(buf,ofs,val) getdle(buf,ofs)=val argument
80 #define setdbe(buf,ofs,val) getdle(buf,ofs)=htonl(val) argument
86 #define getwle(buf,ofs) (bswap16(getwbe(buf,ofs))) argument
87 #define getdle(buf,ofs) (bswap32(getdbe(buf,ofs))) argument
89 #define setwbe(buf,ofs,val) getwbe(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);
40 void iwl_write_prph_delay(struct iwl_trans *trans, u32 ofs,
44 iwl_write_prph_delay(trans, ofs, val, 0); in iwl_write_prph()
50 void iwl_set_bits_mask_prph(struct iwl_trans *trans, u32 ofs,
67 return ofs + trans->trans_cfg->umac_prph_offset; in iwl_umac_prph()
[all …]
H A Diwl-io.c19 trace_iwlwifi_dev_iowrite8(trans->dev, ofs, val); in iwl_write8()
20 iwl_trans_write8(trans, ofs, val); in iwl_write8()
27 iwl_trans_write32(trans, ofs, val); in iwl_write32()
39 u32 iwl_read32(struct iwl_trans *trans, u32 ofs) in iwl_read32() argument
41 u32 val = iwl_trans_read32(trans, ofs); in iwl_read32()
116 u32 val = iwl_trans_read_prph(trans, ofs); in iwl_read_prph_no_grab()
125 iwl_trans_write_prph(trans, ofs, val); in iwl_write_prph_no_grab()
156 iwl_write_prph_no_grab(trans, ofs, val); in iwl_write_prph_delay()
180 iwl_write_prph_no_grab(trans, ofs, in iwl_set_bits_prph()
192 iwl_write_prph_no_grab(trans, ofs, in iwl_set_bits_mask_prph()
[all …]
/freebsd/sys/dev/bwi/
H A Dbwimac.h73 #define MOBJ_WRITE_2(mac, objid, ofs, val) \ argument
75 #define MOBJ_WRITE_4(mac, objid, ofs, val) \ argument
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), \
86 MOBJ_WRITE_4((mac), (objid), (ofs), \
90 MOBJ_WRITE_2((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.c438 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()
515 uint16_t ofs, val; in bwi_phy_init_11b_rev5() local
518 for (ofs = 0xa8; ofs < 0xc7; ++ofs) { in bwi_phy_init_11b_rev5()
610 uint16_t val, ofs; in bwi_phy_init_11b_rev6() local
649 for (ofs = 0x88; ofs < 0x98; ++ofs) { in bwi_phy_init_11b_rev6()
650 PHY_WRITE(mac, ofs, val); in bwi_phy_init_11b_rev6()
655 for (ofs = 0x98; ofs < 0xa8; ++ofs) { in bwi_phy_init_11b_rev6()
656 PHY_WRITE(mac, ofs, val); in bwi_phy_init_11b_rev6()
661 for (ofs = 0xa8; ofs < 0xc8; ++ofs) { in bwi_phy_init_11b_rev6()
[all …]
/freebsd/tools/bus_space/
H A Dbus.c46 off_t ofs; member
123 r->ofs = 0; in bs_map()
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()
163 if (o != ofs) in bs_read()
193 ofs0 = r->ofs; in bs_subregion()
205 r->ofs = ofs0 + ofs; in bs_subregion()
238 if (ofs < 0 || ofs > r->size - bufsz) { in bs_write()
242 ofs += r->ofs; in bs_write()
[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
261 #define MT_WFDMA0(ofs) (MT_WFDMA0_BASE + (ofs)) argument
362 #define MT_SWDEF(ofs) (MT_SWDEF_BASE + (ofs)) argument
369 #define MT_TOP(ofs) (MT_TOP_BASE + (ofs)) argument
384 #define MT_CBTOP_RGU(ofs) (0x70002000 + (ofs)) argument
393 #define MT_PCIE_MAC(ofs) (MT_PCIE_MAC_BASE + (ofs)) argument
398 #define MT_DMA_SHDL(ofs) (0x7c026000 + (ofs)) argument
423 #define MT_UMAC(ofs) (0x74000000 + (ofs)) argument
452 #define MT_UWFDMA0(ofs) (0x7c024000 + (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
216 #define MT_WF_UMIB(ofs) (MT_WF_UMIB_BASE + (ofs)) argument
222 #define MT_WTBLON_TOP(ofs) (MT_WTBLON_TOP_BASE + (ofs)) argument
313 #define MT_WFDMA0(ofs) (MT_WFDMA0_BASE + (ofs)) argument
489 #define MT_SWDEF(ofs) (MT_SWDEF_BASE + (ofs)) argument
534 #define MT_TOP(ofs) (MT_TOP_BASE + (ofs)) argument
552 #define MT_PCIE_MAC(ofs) (MT_PCIE_MAC_BASE + (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
574 #define MT_WFDMA0(ofs) (MT_WFDMA0_BASE + (ofs)) argument
606 #define MT_WFDMA1(ofs) (MT_WFDMA1_BASE + (ofs)) argument
1030 #define MT_SWDEF(ofs) (MT_SWDEF_BASE + (ofs)) argument
1088 #define MT_TOP(ofs) (MT_TOP_BASE + (ofs)) argument
1121 #define MT_SEMA(ofs) (MT_SEMA_BASE + (ofs)) argument
[all …]
/freebsd/usr.bin/mkcsmapper/
H A Dyacc.y307 put32(ptr, ofs, rowcol_bits); ofs++; in create_rowcol_info()
308 put32(ptr, ofs, dst_invalid); ofs++; in create_rowcol_info()
313 put32(ptr, ofs, 0); ofs++; in create_rowcol_info()
314 put32(ptr, ofs, 0); ofs++; in create_rowcol_info()
323 put32(ptr, ofs, rowcol[i].begin); ofs++; in create_rowcol_info()
324 put32(ptr, ofs, rowcol[i].end); ofs++; in create_rowcol_info()
326 put32(ptr, ofs, dst_unit_bits); ofs++; in create_rowcol_info()
327 put32(ptr, ofs, len); ofs++; in create_rowcol_info()
344 put32(ptr, ofs, oob_mode); ofs++; in create_rowcol_ext_ilseq_info()
345 put32(ptr, ofs, dst_ilseq); ofs++; in create_rowcol_ext_ilseq_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
88 #define MT_HIF2(ofs) (MT_HIF2_BASE + (ofs)) argument
195 #define MT_WF_PHY(ofs) (MT_WF_PHY_BASE + (ofs)) argument
251 #define MT_WF_CFG(ofs) (MT_WF_CFG_BASE + (ofs)) argument
260 #define MT_WF_AGG(ofs) (MT_WF_AGG_BASE + (ofs)) argument
291 #define MT_WF_ARB(ofs) (MT_WF_ARB_BASE + (ofs)) argument
387 #define MT_WF_DMA(ofs) (MT_WF_DMA_BASE + (ofs)) argument
405 #define MT_WF_PF(ofs) (MT_WF_PF_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
43 bus_read_2(int rid, long ofs) in bus_read_2() argument
51 bus_read_4(int rid, long ofs) in bus_read_4() argument
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()
73 bus_write_4(int rid, long ofs, uint32_t val) in bus_write_4() argument
94 bus_subregion(int rid, long ofs, long sz) in bus_subregion() argument
97 return (bs_subregion(rid, ofs, sz)); in bus_subregion()
[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.c113 h->ofs = ofs; in heap_init()
128 if (h->ofs > 0) \
136 if (h->ofs > 0) \
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));
412 ht->ofs = ofs; in dn_ht_init()
471 *pp = *(void **)((char *)p + ht->ofs); in dn_ht_find()
472 *(void **)((char *)p + ht->ofs) = NULL; in dn_ht_find()
[all …]
/freebsd/sys/dev/cfi/
H A Dcfi_dev.c100 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()
226 u_int ofs, top; in cfi_devwrite() local
234 ofs = uio->uio_offset; in cfi_devwrite()
242 if (ofs < sc->sc_wrofs || ofs >= top) in cfi_devwrite()
[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()
88 cfi_read(struct cfi_softc *sc, u_int ofs) in cfi_read() argument
93 ofs &= ~(sc->sc_width - 1); in cfi_read()
123 ofs &= ~(sc->sc_width - 1); in cfi_write()
163 val = cfi_read(sc, ofs * sc->sc_width); in cfi_read_qry()
174 cfi_write(sc, ofs + addr, data); in cfi_amd_write()
518 val = cfi_read(sc, ofs + i); in cfi_check_erase()
561 st = cfi_read(sc, ofs); in cfi_wait_ready()
580 st0 = cfi_read(sc, ofs); in cfi_wait_ready()
[all …]
/freebsd/stand/libsa/
H A Dpkgfs.c358 delta = ofs - tf->tf_fp; in pkg_seek()
361 delta = 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()
708 i = get_byte(pkg, &ofs); in new_package()
717 i = get_byte(pkg, &ofs); in new_package()
754 off_t ofs; in scan_tarfile() local
761 ofs = (ofs + 0x1ff) & ~0x1ff; in scan_tarfile()
764 if (ofs < pkg->pkg_ofs) { in scan_tarfile()
[all …]
/freebsd/tools/bus_space/Python/
H A Dlang.c36 long ofs; in bus_read_1() local
42 if (!bs_read(rid, ofs, &val, sizeof(val))) { in bus_read_1()
52 long ofs; in bus_read_2() local
68 long ofs; in bus_read_4() local
84 long ofs; in bus_write_1() local
100 long ofs; in bus_write_2() local
116 long ofs; in bus_write_4() local
162 long ofs, sz; in bus_subregion() local
167 rid = bs_subregion(rid0, ofs, sz); in bus_subregion()
400 u_long ofs, len; in busdma_sync_range() local
[all …]
/freebsd/usr.bin/mkimg/
H A Dimage.c110 off_t ofs; in image_swap_alloc() local
122 ofs = -1LL; in image_swap_alloc()
124 return (ofs); in image_swap_alloc()
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()
295 ofs += secsz; in image_chunk_copyin()
314 ofs -= x; in image_file_map()
524 off_t ofs; in image_copyout_done() local
528 if (ofs == -1) in image_copyout_done()
[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
208 if (ofs == -1) { in _amd64_minidump_vatop_v1()
214 *pa = ofs + offset; 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
269 if (ofs == -1) { in _amd64_minidump_vatop()
296 if (ofs == -1) { in _amd64_minidump_vatop()
302 *pa = ofs + offset; in _amd64_minidump_vatop()
307 if (ofs == -1) { in _amd64_minidump_vatop()
[all …]
/freebsd/lib/libmd/
H A DmdXhl.c50 MDXFdChunk(int fd, char *buf, off_t ofs, off_t len) in MDXFdChunk() argument
64 if (ofs != 0) { in MDXFdChunk()
66 if (lseek(fd, ofs, SEEK_SET) != ofs || in MDXFdChunk()
67 (ofs == -1 && errno != 0)) { in MDXFdChunk()
97 MDXFileChunk(const char *filename, char *buf, off_t ofs, off_t len) in MDXFileChunk() argument
105 ret = MDXFdChunk(fd, buf, ofs, len); in MDXFileChunk()

123456