/haiku/headers/private/i2c/ |
H A D | i2c.h | 25 #define IS_READ_OP(op) (((op) & I2C_OP_WRITE) == 0) argument 26 #define IS_WRITE_OP(op) (((op) & I2C_OP_WRITE) != 0) argument 27 #define IS_STOP_OP(op) (((op) & 1) != 0) argument 28 #define IS_BLOCK_OP(op) (((op) & 4) != 0) argument 53 status_t (*exec_command)(i2c_device cookie, i2c_op op, 77 status_t (*exec_command)(i2c_bus cookie, i2c_op op, i2c_addr slaveAddress, 119 status_t (*exec_command)(i2c_bus_cookie cookie, i2c_op op, 146 i2c_op op; member
|
/haiku/src/tests/system/kernel/ |
H A D | advisory_locking_test.cpp | 88 is_command(const char* op, const char* command1, const char* command2) in is_command() argument 90 int length = strlen(op); in is_command() 94 return command1 != NULL && !strncmp(op, command1, length) in is_command() 95 || command2 != NULL && !strncmp(op, command2, length); in is_command() 109 const char* op = argv[1]; in main() local 110 if (is_command(op, "wait", NULL)) { in main() 122 if (is_command(op, "read", "shared")) in main() 124 else if (is_command(op, "write", "exclusive")) in main() 126 else if (is_command(op, "unlock", "remove")) in main()
|
/haiku/src/libs/libtelnet/ |
H A D | pk.c | 220 int l,op,deslen; in pk_encode() local 227 for (l=0,op=0;l<deslen;l++) { in pk_encode() 228 out[op++] = hextab[(buf[l] & 0xf0) >> 4]; in pk_encode() 229 out[op++] = hextab[(buf[l] & 0x0f)]; in pk_encode() 231 out[op] = '\0'; in pk_encode() 241 int n1,n2,op; in pk_decode() local 246 for (l=0,op=0;l<strlen(in)/2;l++,op+=2) { in pk_decode() 247 if (in[op] > '9') in pk_decode() 248 n1 = in[op] - 'A' + 10; in pk_decode() 250 n1 = in[op] - '0'; in pk_decode() [all …]
|
/haiku/headers/private/userlandfs/fuse/ |
H A D | fuse_compat.h | 54 const struct fuse_operations_compat25 *op, 58 const struct fuse_operations_compat25 *op, 62 const struct fuse_operations_compat25 *op, 109 const struct fuse_operations_compat22 *op, 113 const struct fuse_operations_compat22 *op, 118 const struct fuse_operations_compat22 *op, 152 const struct fuse_operations_compat2 *op); 155 const struct fuse_operations_compat2 *op); 158 const struct fuse_operations_compat2 *op, 196 const struct fuse_operations_compat1 *op); [all …]
|
H A D | fuse.h | 581 int (*flock) (const char *, struct fuse_file_info *, int op); 649 #define fuse_main(argc, argv, op, user_data) \ argument 650 fuse_main_real(argc, argv, op, sizeof(*(op)), user_data) 667 const struct fuse_operations *op, size_t op_size, 767 int fuse_main_real(int argc, char *argv[], const struct fuse_operations *op, 861 struct fuse_file_info *fi, int op); 908 struct fuse_fs *fuse_fs_new(const struct fuse_operations *op, size_t op_size, 984 const struct fuse_operations *op, size_t op_size, 1019 # define fuse_main(argc, argv, op) \ argument 1020 fuse_main_real_compat25(argc, argv, op, sizeof(*(op))) [all …]
|
/haiku/src/apps/cortex/NodeManager/ |
H A D | NodeSyncThread.cpp | 128 _sync_op op = {perfTime, position, timeout}; in sync() local 132 &op, in sync() 182 const _sync_op& op = *(_sync_op*)m_portBuffer; in _sync() local 187 m.AddInt64("perfTime", op.targetTime); in _sync() 188 m.AddInt64("position", op.position); in _sync() 193 op.targetTime, in _sync() 194 op.timeout); in _sync()
|
/haiku/src/bin/pc/ |
H A D | pc.c | 567 char op; in equality_expr() local 577 op = **str; in equality_expr() 583 if (op == EQUAL) in equality_expr() 585 else if (op == BANG) in equality_expr() 597 char op, equal_to=0; in relational_expr() local 607 op = **str; in relational_expr() 628 if (op == LESS_THAN && equal_to == 0) in relational_expr() 630 else if (op == LESS_THAN && equal_to == 1) in relational_expr() 632 else if (op == GREATER_THAN && equal_to == 0) in relational_expr() 634 else if (op == GREATER_THAN && equal_to == 1) in relational_expr() [all …]
|
/haiku/headers/private/firewire/ |
H A D | fwdma.h | 86 fwdma_sync(struct fwdma_alloc *dma, bus_dmasync_op_t op) in fwdma_sync() argument 88 bus_dmamap_sync(dma->dma_tag, dma->dma_map, op); in fwdma_sync() 93 int start, int end, bus_dmasync_op_t op) in fwdma_sync_multiseg() argument 100 bus_dmamap_sync(am->dma_tag, seg->dma_map, op); in fwdma_sync_multiseg() 104 fwdma_sync_multiseg_all(struct fwdma_alloc_multi *am, bus_dmasync_op_t op) in fwdma_sync_multiseg_all() argument 111 bus_dmamap_sync(am->dma_tag, seg->dma_map, op); in fwdma_sync_multiseg_all()
|
/haiku/src/add-ons/kernel/debugger/auto_stack_trace/ |
H A D | auto_stack_trace.cpp | 18 std_ops(int32 op, ...) in std_ops() argument 20 if (op == B_MODULE_INIT || op == B_MODULE_UNINIT) in std_ops()
|
/haiku/src/add-ons/kernel/bus_managers/i2c/ |
H A D | I2CDevice.cpp | 33 I2CDevice::ExecCommand(i2c_op op, const void *cmdBuffer, in ExecCommand() argument 37 return fBus->ExecCommand(op, fSlaveAddress, cmdBuffer, cmdLength, in ExecCommand() 111 i2c_exec_command(i2c_device _device, i2c_op op, const void *cmdBuffer, in i2c_exec_command() argument 115 return device->ExecCommand(op, cmdBuffer, cmdLength, dataBuffer, dataLength); in i2c_exec_command() 136 std_ops(int32 op, ...) in std_ops() argument 138 switch (op) { in std_ops()
|
H A D | I2CBus.cpp | 44 I2CBus::ExecCommand(i2c_op op, i2c_addr slaveAddress, const void *cmdBuffer, in ExecCommand() argument 48 return fController->exec_command(fCookie, op, slaveAddress, cmdBuffer, cmdLength, in ExecCommand() 160 i2c_bus_exec_command(void* _bus, i2c_op op, i2c_addr slaveAddress, in i2c_bus_exec_command() argument 166 return bus->ExecCommand(op, slaveAddress, cmdBuffer, cmdLength, in i2c_bus_exec_command() 190 std_ops(int32 op, ...) in std_ops() argument 192 switch (op) { in std_ops()
|
/haiku/src/kits/interface/ |
H A D | Shape.cpp | 46 int32 op = data->opList[i] & 0xFF000000; in Iterate() local 48 if ((op & OP_MOVETO) != 0) { in Iterate() 53 if ((op & OP_LINETO) != 0) { in Iterate() 59 if ((op & OP_BEZIERTO) != 0) { in Iterate() 65 if ((op & OP_LARGE_ARC_TO_CW) != 0 || (op & OP_LARGE_ARC_TO_CCW) != 0 in Iterate() 66 || (op & OP_SMALL_ARC_TO_CW) != 0 in Iterate() 67 || (op & OP_SMALL_ARC_TO_CCW) != 0) { in Iterate() 71 op & (OP_LARGE_ARC_TO_CW | OP_LARGE_ARC_TO_CCW), in Iterate() 72 op & (OP_SMALL_ARC_TO_CCW | OP_LARGE_ARC_TO_CCW), in Iterate() 78 if ((op & OP_CLOSE) != 0) in Iterate() [all …]
|
/haiku/src/kits/tracker/ |
H A D | RegExp.cpp | 578 char op; in Piece() local 586 op = *fInputScanPointer; in Piece() 587 if (!IsMult(op)) { in Piece() 592 if (!(flags & kHasWidth) && op != '?') { in Piece() 596 *flagp = op != '+' ? kWorst | kSPStart : kWorst | kHasWidth; in Piece() 598 if (op == '*' && (flags & kSimple)) in Piece() 600 else if (op == '*') { in Piece() 612 } else if (op == '+' && (flags & kSimple)) in Piece() 614 else if (op == '+') { in Piece() 625 } else if (op == '?') { in Piece() [all …]
|
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/ |
H A D | KPPPLCPExtension.cpp | 59 KPPPLCPExtension::Control(uint32 op, void *data, size_t length) in Control() argument 62 switch (op) { in Control() 93 KPPPLCPExtension::StackControl(uint32 op, void *data) in StackControl() argument 95 switch (op) { in StackControl()
|
H A D | KPPPOptionHandler.cpp | 61 KPPPOptionHandler::Control(uint32 op, void *data, size_t length) in Control() argument 64 switch (op) { in Control() 95 KPPPOptionHandler::StackControl(uint32 op, void *data) in StackControl() argument 97 switch (op) { in StackControl()
|
/haiku/src/add-ons/kernel/network/ppp/shared/libppp/ |
H A D | PPPInterface.cpp | 144 PPPInterface::Control(uint32 op, void *data, size_t length) const in Control() argument 156 args.op = PPPC_CONTROL_INTERFACE; in Control() 161 info.op = op; in Control() 264 controlInfo.op = PPPC_GET_DEVICE_INFO; in ControlDevice() 283 controlInfo.op = handlerOP; in ControlOptionHandler() 301 controlInfo.op = childOP; in ControlChild() 319 controlInfo.op = LCPExtensionOP; in ControlLCPExtension() 337 controlInfo.op = protocolOP; in ControlProtocol() 404 args.op = PPPC_BRING_INTERFACE_UP; in Up() 437 args.op = PPPC_BRING_INTERFACE_DOWN; in Down()
|
/haiku/src/add-ons/kernel/drivers/disk/virtual/remote_disk/ |
H A D | remote_disk.cpp | 213 remote_disk_control(void* cookie, uint32 op, void* arg, size_t len) in remote_disk_control() argument 215 TRACE(("remote_disk_control(%p, %lu, %p, %lu)\n", cookie, op, arg, len)); in remote_disk_control() 221 switch (op) { in remote_disk_control() 255 op == B_GET_BIOS_GEOMETRY ? "B_GET_BIOS_GEOMETRY" : "B_GET_GEOMETRY")); in remote_disk_control() 260 device->GetGeometry(&geometry, op == B_GET_BIOS_GEOMETRY); in remote_disk_control() 293 TRACE(("remote_disk: another ioctl: %lx (%lu)\n", op, op)); in remote_disk_control() 297 TRACE(("remote_disk: unknown ioctl: %lx (%lu)\n", op, op)); in remote_disk_control()
|
/haiku/src/system/boot/platform/riscv/ |
H A D | virtio.h | 35 IOOperation op; member 40 IORequest(IOOperation op, void* buf, size_t len): state(ioStateInactive), in IORequest() 41 op(op), buf(buf), len(len), next(NULL) {} in IORequest()
|
/haiku/src/add-ons/kernel/file_systems/websearchfs/ |
H A D | ringbuff.c | 24 #define ASSERT(op) if (!(op)) debugger("ASSERT: " #op " in " __FILE__ ":" __FUNCTION__) argument 26 #define ASSERT(op) if (!(op)) panic("ASSERT: %s in %s:%s", #op, __FILE__, __FUNCTION__) argument
|
/haiku/src/libs/compat/openbsd_wlan/net80211/ |
H A D | ieee80211_haiku.cpp | 167 wlan_control(void* cookie, uint32 op, void* arg, size_t length) in wlan_control() argument 169 if (op != SIOCG80211 && op != SIOCS80211) in wlan_control() 181 if (op != SIOCS80211) in wlan_control() 197 if (op != SIOCG80211) in wlan_control() 279 if (op == SIOCS80211) { in wlan_control() 285 status_t status = ifp->if_ioctl(ifp, op == SIOCG80211 ? in wlan_control() 291 if (op == SIOCG80211) { in wlan_control() 304 if (op == SIOCS80211) { in wlan_control() 311 status_t status = ifp->if_ioctl(ifp, op == SIOCG80211 ? in wlan_control() 318 if (op == SIOCG80211) { in wlan_control() [all …]
|
/haiku/src/system/libroot/posix/ |
H A D | fcntl.cpp | 64 fcntl(int fd, int op, ...) in fcntl() argument 67 va_start(args, op); in fcntl() 71 status_t error = _kern_fcntl(fd, op, argument); in fcntl() 73 if (op == F_SETLKW) in fcntl()
|
/haiku/src/add-ons/kernel/debugger/invalidate_on_exit/ |
H A D | invalidate_on_exit.cpp | 47 std_ops(int32 op, ...) in std_ops() argument 49 if (op == B_MODULE_INIT) { in std_ops() 61 } else if (op == B_MODULE_UNINIT) { in std_ops()
|
/haiku/src/add-ons/kernel/bus_managers/acpi/acpica/include/ |
H A D | acparser.h | 370 ACPI_PARSE_OBJECT *op, 382 ACPI_PARSE_OBJECT *op, 430 ACPI_PARSE_OBJECT *op, 448 ACPI_PARSE_OBJECT *op); 452 ACPI_PARSE_OBJECT *op, 473 ACPI_PARSE_OBJECT *op);
|
/haiku/src/libs/compat/openbsd_network/compat/sys/ |
H A D | rwlock.h | 36 const int op = (flags & RW_OPMASK); in rw_enter() local 42 if (op == RW_WRITE) in rw_enter() 44 else if (op == RW_READ) in rw_enter()
|
/haiku/src/tests/add-ons/kernel/file_systems/bfs/queries/ |
H A D | test.cpp | 73 waitForMessage(port_id port,const char *string,int32 op,char *name) in waitForMessage() argument 80 if (op == B_TIMED_OUT && bytes == B_TIMED_OUT) { in waitForMessage() 97 || message.FindInt32("opcode") != op) { in waitForMessage() 98 printf("Expected what = %x, opcode = %ld, got:", B_QUERY_UPDATE, op); in waitForMessage() 104 return op; in waitForMessage()
|