Searched refs:ofs (Results 1 - 25 of 32) sorted by relevance

12

/haiku/src/add-ons/kernel/drivers/network/wlan/broadcom43xx/dev/bwi/
H A Dbwimac.h74 #define MOBJ_WRITE_2(mac, objid, ofs, val) \
75 bwi_memobj_write_2((mac), (objid), (ofs), (val))
76 #define MOBJ_WRITE_4(mac, objid, ofs, val) \
77 bwi_memobj_write_4((mac), (objid), (ofs), (val))
78 #define MOBJ_READ_2(mac, objid, ofs) \
79 bwi_memobj_read_2((mac), (objid), (ofs))
80 #define MOBJ_READ_4(mac, objid, ofs) \
81 bwi_memobj_read_4((mac), (objid), (ofs))
83 #define MOBJ_SETBITS_4(mac, objid, ofs, bits) \
84 MOBJ_WRITE_4((mac), (objid), (ofs), \
[all...]
H A Dbwirf.h113 #define RF_WRITE(mac, ofs, val) bwi_rf_write((mac), (ofs), (val))
114 #define RF_READ(mac, ofs) bwi_rf_read((mac), (ofs))
116 #define RF_SETBITS(mac, ofs, bits) \
117 RF_WRITE((mac), (ofs), RF_READ((mac), (ofs)) | (bits))
118 #define RF_CLRBITS(mac, ofs, bits) \
119 RF_WRITE((mac), (ofs), RF_READ((mac), (ofs))
[all...]
H A Dbwiphy.c266 bwi_tbl_write_2(struct bwi_mac *mac, uint16_t ofs, uint16_t data) argument
273 PHY_WRITE(mac, phy->phy_tbl_ctrl, ofs);
278 bwi_tbl_write_4(struct bwi_mac *mac, uint16_t ofs, uint32_t data) argument
287 PHY_WRITE(mac, phy->phy_tbl_ctrl, ofs);
293 bwi_nrssi_write(struct bwi_mac *mac, uint16_t ofs, int16_t data) argument
295 PHY_WRITE(mac, BWI_PHYR_NRSSI_CTRL, ofs);
300 bwi_nrssi_read(struct bwi_mac *mac, uint16_t ofs) argument
302 PHY_WRITE(mac, BWI_PHYR_NRSSI_CTRL, ofs);
440 uint16_t val, ofs; local
450 for (ofs
517 uint16_t ofs, val; local
612 uint16_t val, ofs; local
884 uint16_t ofs; local
[all...]
H A Dbwimac.c120 bwi_tmplt_write_4(struct bwi_mac *mac, uint32_t ofs, uint32_t val) argument
127 CSR_WRITE_4(sc, BWI_MAC_TMPLT_CTRL, ofs);
167 int ofs; local
170 ofs = ofs0 / 4;
175 CSR_WRITE_4(sc, BWI_MOBJ_CTRL, BWI_MOBJ_CTRL_VAL(obj_id, ofs));
183 int ofs; local
185 ofs = ofs0 / 4;
189 CSR_WRITE_4(sc, BWI_MOBJ_CTRL, BWI_MOBJ_CTRL_VAL(obj_id, ofs));
194 BWI_MOBJ_CTRL_VAL(obj_id, ofs + 1));
199 CSR_WRITE_4(sc, BWI_MOBJ_CTRL, BWI_MOBJ_CTRL_VAL(obj_id, ofs));
210 int ofs; local
227 int ofs; local
1158 uint16_t iv_ofs, ofs; local
1419 uint16_t ofs; local
[all...]
H A Dif_bwireg.h181 #define BWI_MOBJ_CTRL_VAL(objid, ofs) ((objid) << 16 | (ofs))
/haiku/src/bin/network/ftpd/
H A Dmd5hl.c50 MD5FileChunk(const char *filename, char *buf, off_t ofs, off_t len) argument
64 if (ofs > stbuf.st_size)
65 ofs = stbuf.st_size;
66 if ((len == 0) || (len > stbuf.st_size - ofs))
67 len = stbuf.st_size - ofs;
68 if (lseek(f, ofs, SEEK_SET) < 0)
/haiku/src/add-ons/print/transports/shared/
H A DSocketStream.cpp48 ofstream ofs("recv.log", ios::binary | ios::app);
49 ofs.write(__pu, bytes);
86 ofstream ofs("send.log", ios::binary | ios::app);
87 ofs.write(buffer, bytes);
/haiku/src/add-ons/print/drivers/canon_lips/lips3/
H A DCompress3.cpp93 ofstream ofs("test.bin", ios::binary);
94 ofs.write(pOut, cnt);
/haiku/src/add-ons/kernel/busses/pci/ecam/
H A DECAMPCIController.cpp21 uint32 ofs = adr % 4; local
27 return val.out[ofs];
34 uint32 ofs = adr / 2 % 2; local
40 return val.out[ofs];
47 uint32 ofs = adr % 4; local
53 val.out[ofs] = (uint8)value;
61 uint32 ofs = adr / 2 % 2; local
67 val.out[ofs] = (uint16)value;
/haiku/src/system/kernel/arch/riscv64/
H A Darch_debug.cpp80 SymbolAt(preloaded_image* _image, addr_t adr, const char **name, ssize_t *ofs) argument
90 if (ofs != NULL)
91 *ofs = adr - sym.st_value;
176 ssize_t ofs; local
177 if (SymbolAt(image, pc, &name, &ofs)) {
178 dprintf("<%s> %s + %" B_PRIdSSIZE, (char*)image->name, name, ofs);
/haiku/src/system/boot/platform/pxe_ia32/
H A Dnetwork.cpp82 dprintf("PXE API entrypoint at %04x:%04x\n", fPxeData->EntryPointSP.seg, fPxeData->EntryPointSP.ofs);
90 cached_info.Buffer.ofs = 0;
99 char *buf = (char *)(cached_info.Buffer.seg * 16 + cached_info.Buffer.ofs);
277 undi_tx.DestAddr.ofs = OFS((char *)buffer + 16);
279 undi_tx.TBD.ofs = OFS(&undi_tbd);
283 undi_tbd.Xmit.ofs = OFS(buffer);
359 memcpy(buffer, (const void *)(undi_isr.Frame.seg * 16 + undi_isr.Frame.ofs), size);
478 readPacket.buffer.ofs = OFS(scratchBuffer);
H A Dpxe_undi.h37 uint16 ofs; member in struct:SEGOFF16
/haiku/src/add-ons/kernel/busses/pci/designware/
H A DDWPCIController.cpp20 uint32 ofs = adr % 4; local
26 return val.out[ofs];
33 uint32 ofs = adr / 2 % 2; local
39 return val.out[ofs];
46 uint32 ofs = adr % 4; local
52 val.out[ofs] = (uint8)value;
60 uint32 ofs = adr / 2 % 2; local
66 val.out[ofs] = (uint16)value;
/haiku/src/add-ons/kernel/drivers/audio/emuxki/
H A Dac97.h96 uint8 ofs:4; member in struct:_ac97_source_info
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Drunlist.h60 s64 ofs, const s64 pos, s64 count, void *b);
H A Drunlist.c1116 s64 bytes_read, to_read, ofs, total; local
1129 for (ofs = 0; rl->length && (ofs + (rl->length <<
1131 ofs += (rl->length << vol->cluster_size_bits);
1133 ofs = pos - ofs;
1134 for (total = 0LL; count; rl++, ofs = 0) {
1142 vol->cluster_size_bits) - ofs);
1152 ofs);
1155 vol->cluster_size_bits) + ofs, to_rea
1202 ntfs_rl_pwrite(const ntfs_volume *vol, const runlist_element *rl, s64 ofs, const s64 pos, s64 count, void *b) argument
[all...]
H A Dwin32_io.c1448 int old_ofs, ofs; local
1451 old_ofs = ofs = old_pos & (fd->geo_sector_size - 1);
1452 to_read = (ofs + count + fd->geo_sector_size - 1) &
1461 "ofs = %i, to_read = 0x%llx.\n", fd, b,
1462 (long long)count, (long long)old_pos, ofs,
1481 ofs + vol_to_read, alignedbuffer);
1485 if (br < ofs) {
1489 br -= ofs;
1491 ofs = fd->pos & (fd->geo_sector_size - 1);
1504 if (i < ofs)
1642 int old_ofs, ofs; local
[all...]
H A Dcompress.c711 s64 br, to_read, ofs, total, total2; local
794 ofs = pos & cb_size_mask;
825 to_read = min(count, cb_size - ofs);
827 ofs = 0;
846 to_read = min(count, cb_size - ofs);
847 ofs += vcn << vol->cluster_size_bits;
854 br = ntfs_attr_pread(na, ofs, to_read, b);
861 (long long)ofs);
880 ofs += br;
886 ofs
[all...]
H A Dattrib.c991 s64 br, to_read, ofs, total, total2, max_read, max_init; local
1126 ofs = pos - (rl->vcn << vol->cluster_size_bits);
1127 for (; count; rl++, ofs = 0) {
1139 ofs = pos + total - (rl->vcn << vol->cluster_size_bits);
1155 vol->cluster_size_bits) - ofs);
1165 ofs);
1167 ntfs_log_trace("Reading %lld bytes from vcn %lld, lcn %lld, ofs"
1169 (long long )rl->lcn, (long long)ofs);
1171 ofs, to_read, b);
1301 static int ntfs_attr_fill_hole(ntfs_attr *na, s64 count, s64 *ofs, argument
1850 s64 written, to_write, ofs, old_initialized_size, old_data_size; local
2428 s64 ofs; local
[all...]
/haiku/src/bin/pcmcia-cs/
H A Ddump_cis.c758 if (n + strlen(v1->str + v1->ofs[i]) + 4 > 72) {
765 printf("\"%s\"", v1->str + v1->ofs[i]);
766 n += strlen(v1->str + v1->ofs[i]) + 2;
979 u_int ofs; local
987 ofs = arg->tuple.CISOffset + arg->tuple.TupleLink;
988 if (ofs >= nb) return -1;
989 arg->tuple.TupleCode = buf[ofs++];
990 arg->tuple.TupleDataLen = arg->tuple.TupleLink = buf[ofs++];
991 arg->tuple.CISOffset = ofs;
992 memcpy(arg->tuple_parse.data, buf+ofs, ar
[all...]
H A Dpack_cis.c313 strcpy((char *)c, p->version_1.str+p->version_1.ofs[i]);
357 static int pack_mfc(u_int ofs, u_char *b) argument
372 b[4+i*5+j] = ((ofs+pos) >> (8*j)) & 0xff;
376 return ofs+pos;
H A Dyacc_cis.y175 pos = v->ofs[v->ns-1];
178 v->ofs[v->ns] = pos;
/haiku/src/libs/compat/openbsd_network/compat/dev/pci/
H A Dpcireg.h509 #define PCI_VPD_ADDRESS(ofs) \
510 (((ofs) & PCI_VPD_ADDRESS_MASK) << PCI_VPD_ADDRESS_SHIFT)
511 #define PCI_VPD_DATAREG(ofs) ((ofs) + 4)
/haiku/headers/os/drivers/pcmcia/
H A Dcistpl.h102 u_char ofs[CISTPL_MAX_ALTSTR_STRINGS]; member in struct:cistpl_altstr_t
143 u_char ofs[CISTPL_VERS_1_MAX_PROD_STRINGS]; member in struct:cistpl_vers_1_t
/haiku/src/add-ons/kernel/drivers/audio/ac97/
H A Dac97.h268 uint8 ofs:4; member in struct:_ac97_source_info

Completed in 191 milliseconds

12