/haiku/src/add-ons/kernel/drivers/midi/usb_midi/ |
H A D | devlist.cpp | 34 add_port_info(usbmidi_port_info* port) argument 36 assert(port != NULL); 38 port->next = usbmidi_port_list; 39 usbmidi_port_list = port; 47 remove_port_info(usbmidi_port_info* port) argument 49 assert(port != NULL); 51 if (usbmidi_port_list == port) { 52 usbmidi_port_list = port->next; 58 if (d->next == port) { 59 d->next = port 74 usbmidi_port_info* port; local 89 usbmidi_port_info* port; local 141 usbmidi_port_info* port; local [all...] |
/haiku/src/add-ons/kernel/drivers/audio/cmedia/ |
H A D | pcm.c | 122 pcm_dev * port, 126 state->control = get_direct(port->card, 0); 127 state->imask = get_direct(port->card, 1); 130 state->regs[ix] = get_indirect(port->card, ix+0x30); 138 pcm_dev * port, 142 set_direct(port->card, 0, state->control, 0xff); 145 set_indirect(port->card, ix, state->regs[ix]+0x30, 0xff); 148 set_direct(port->card, 1, state->imask, 0xff); 154 pcm_dev * port) 156 set_direct(port 165 stop_dma( pcm_dev * port) argument 178 start_dma( pcm_dev * port) argument 259 configure_pcm( pcm_dev * port, pcm_cfg * config, bool force) argument 465 pcm_dev * port = NULL; local 630 pcm_dev * port = (pcm_dev *)cookie; local 688 pcm_dev * port = (pcm_dev *)cookie; local 724 pcm_dev * port = (pcm_dev *)cookie; local 1351 pcm_dev * port = (pcm_dev *)cookie; local 1455 pcm_dev * port = (pcm_dev *)cookie; local 1566 pcm_dev * port = &dev->pcm; local 1660 pcm_dev * port = &dev->pcm; local [all...] |
/haiku/src/system/libroot/os/ |
H A D | port.c | 26 write_port(port_id port, int32 code, const void *buffer, size_t bufferSize) argument 28 return _kern_write_port_etc(port, code, buffer, bufferSize, 0, 0); 33 read_port(port_id port, int32 *code, void *buffer, size_t bufferSize) argument 35 return _kern_read_port_etc(port, code, buffer, bufferSize, 0, 0); 40 write_port_etc(port_id port, int32 code, const void *buffer, size_t bufferSize, argument 43 return _kern_write_port_etc(port, code, buffer, bufferSize, flags, timeout); 48 read_port_etc(port_id port, int32 *code, void *buffer, size_t bufferSize, argument 51 return _kern_read_port_etc(port, code, buffer, bufferSize, flags, timeout); 56 port_buffer_size(port_id port) argument 58 return _kern_port_buffer_size_etc(port, 63 port_buffer_size_etc(port_id port, uint32 flags, bigtime_t timeout) argument 70 port_count(port_id port) argument 77 set_port_owner(port_id port, team_id team) argument 84 close_port(port_id port) argument 91 delete_port(port_id port) argument 108 _get_port_info(port_id port, port_info *info, size_t size) argument 115 _get_port_message_info_etc(port_id port, port_message_info *info, size_t infoSize, uint32 flags, bigtime_t timeout) argument [all...] |
/haiku/src/tests/kits/device/bserial/ |
H A D | SerialIO.cpp | 10 BSerialPort *port = (BSerialPort *)data; local 14 ssize_t read = port->Read(buffer, sizeof(buffer)); 31 BSerialPort port; local 34 printf("usage: %s <port>\n", argv[0]); 36 int32 portCount = port.CountDevices(); 41 if (port.GetDeviceName(i, nameBuffer, sizeof(nameBuffer)) != B_OK) { 52 status_t result = port.Open(argv[1]); 54 printf("failed to open port \"%s\": %s\n", argv[1], strerror(result)); 58 port.SetDataRate(B_9600_BPS); 59 port [all...] |
/haiku/src/add-ons/kernel/file_systems/userlandfs/private/ |
H A D | RequestHandler.cpp | 19 RequestHandler::SetPort(RequestPort* port) argument 21 fPort = port;
|
/haiku/src/kits/media/ |
H A D | PortPool.cpp | 27 BLocker("port pool") 47 return create_port(1, "media reply port"); 49 port_id port = *fPool.begin(); 50 fPool.erase(port); 52 ASSERT(port >= 0); 53 return port; 58 PortPool::PutPort(port_id port) argument 60 ASSERT(port >= 0); 65 fPool.insert(port); 67 delete_port(port); [all...] |
H A D | BufferCache.h | 23 port_id port; member in struct:BPrivate::buffer_cache_entry 32 BBuffer* GetBuffer(media_buffer_id id, port_id port); 34 void FlushCacheForPort(port_id port);
|
/haiku/headers/private/kernel/arch/x86/ |
H A D | arch_cpuasm.h | 83 #define out8(value,port) \ 84 __asm__ ("outb %%al,%%dx" : : "a" (value), "d" (port)) 86 #define out16(value,port) \ 87 __asm__ ("outw %%ax,%%dx" : : "a" (value), "d" (port)) 89 #define out32(value,port) \ 90 __asm__ ("outl %%eax,%%dx" : : "a" (value), "d" (port)) 92 #define in8(port) ({ \ 94 __asm__ volatile ("inb %%dx,%%al" : "=a" (_v) : "d" (port)); \ 98 #define in16(port) ({ \ 100 __asm__ volatile ("inw %%dx,%%ax":"=a" (_v) : "d" (port)); \ [all...] |
/haiku/src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/ |
H A D | RequestPortPool.cpp | 21 fFreePortSemaphore = create_sem(0, "request port pool"); 49 RequestPortPool::AddPort(RequestPort* port) argument 51 if (!port) 54 // resize the port array 60 // add the port as used port and let AcquirePort() free it 61 fPorts[fPortCount].port = port; 65 ReleasePort(port); 73 // first check whether the thread does already own a port 107 ReleasePort(RequestPort* port) argument [all...] |
H A D | FileSystemInitializer.cpp | 13 #include <port.h> 50 // port with the respective name. 54 port_id port = find_port(portName); local 55 if (port >= 0) 56 return _Init(port); 58 // We have to start the server ourselves. First create the port we're going 60 port = create_port(1, portName); 61 if (port < 0) 62 RETURN_ERROR(port); 66 snprintf(portID, sizeof(portID), "%" B_PRId32, port); 110 _Init(port_id port) argument [all...] |
H A D | PortReleaser.h | 12 PortReleaser(RequestPortPool* portPool, RequestPort* port) argument 14 fPort(port)
|
H A D | RequestPortPool.h | 27 status_t AddPort(RequestPort* port); 30 void ReleasePort(RequestPort* port); 36 RequestPort* port; member in struct:RequestPortPool::PortAcquirationInfo
|
H A D | Volume.cpp | 890 // get a free port 891 RequestPort* port = fFileSystem->GetPortPool()->AcquirePort(); 892 if (!port) 894 PortReleaser _(fFileSystem->GetPortPool(), port); 897 RequestAllocator allocator(port->GetPort()); 908 error = _SendRequest(port, &allocator, &handler, (Request**)&reply); 911 RequestReleaser requestReleaser(port, reply); 951 // get a free port 952 RequestPort* port = fFileSystem->GetPortPool()->AcquirePort(); 953 if (!port) 1017 RequestPort* port = fFileSystem->GetPortPool()->AcquirePort(); local 1064 RequestPort* port = fFileSystem->GetPortPool()->AcquirePort(); local 1155 RequestPort* port = fFileSystem->GetPortPool()->AcquirePort(); local 1210 RequestPort* port = fFileSystem->GetPortPool()->AcquirePort(); local 1274 RequestPort* port = fFileSystem->GetPortPool()->AcquirePort(); local 1517 RequestPort* port = fFileSystem->GetPortPool()->AcquirePort(); local 1578 RequestPort* port = fFileSystem->GetPortPool()->AcquirePort(); local 2612 RequestPort* port = fFileSystem->GetPortPool()->AcquirePort(); local 3667 RequestPort* port = fFileSystem->GetPortPool()->AcquirePort(); local 3717 RequestPort* port = fFileSystem->GetPortPool()->AcquirePort(); local 3790 RequestPort* port = fFileSystem->GetPortPool()->AcquirePort(); local 3839 RequestPort* port = fFileSystem->GetPortPool()->AcquirePort(); local 4391 _SendRequest(RequestPort* port, RequestAllocator* allocator, RequestHandler* handler, Request** reply) argument 4417 _SendReceiptAck(RequestPort* port) argument 4724 RequestPort* port = volume->fFileSystem->GetPortPool()->AcquirePort(); local 4782 RequestPort* port = volume->fFileSystem->GetPortPool()->AcquirePort(); local [all...] |
H A D | KernelDebug.cpp | 32 kprintf(" port pool %p\n", fs->GetPortPool()); 49 kprintf("usage: ufs_portpool <port pool pointer>\n"); 55 kprintf(" port %p\n", portPool->fPorts[i].port); 59 kprintf(" port %p, owner: %" B_PRId32 ", count: %" B_PRId32 "\n", 60 portPool->fPorts[i].port, portPool->fPorts[i].owner, 71 kprintf("usage: ufs_port <port pointer>\n"); 74 RequestPort *port = (RequestPort*)parse_expression(argv[1]); local 75 kprintf("port %p:\n", port); [all...] |
/haiku/src/add-ons/kernel/drivers/graphics/et6x00/ |
H A D | bits.c | 39 __inline void ioSet8(short port, char mask, char val) argument 48 : "r"(val), "r"(port) 58 : "r"(port) 67 : "r"(current), "r"(port) 73 __inline char ioGet8(short port) argument 81 : "r"(port)
|
H A D | bits.h | 13 __inline void ioSet8(short port, char mask, char val); 14 __inline char ioGet8(short port);
|
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/ |
H A D | kernel_emu.cpp | 112 get_port_and_fs(RequestPort** port, FileSystem** fileSystem) argument 117 *port = thread->GetPort(); 120 *port = UserlandFSServer::GetNotificationRequestPort(); 122 if (!*port || !*fileSystem) 134 // get the request port and the file system 135 RequestPort* port; local 137 status_t error = get_port_and_fs(&port, &fileSystem); 142 RequestAllocator allocator(port->GetPort()); 164 error = port->SendRequest(&allocator, &handler, (Request**)&reply); 167 RequestReleaser requestReleaser(port, repl 181 RequestPort* port; local 219 RequestPort* port; local 265 RequestPort* port; local 301 RequestPort* port; local 336 RequestPort* port; local 372 RequestPort* port; local 410 RequestPort* port; local 472 RequestPort* port; local 507 RequestPort* port; local 543 RequestPort* port; local 582 RequestPort* port; local 617 RequestPort* port; local 652 RequestPort* port; local 688 RequestPort* port; local 723 RequestPort* port; local 758 RequestPort* port; local 811 RequestPort* port; local 859 RequestPort* port; local 902 RequestPort* port; local 948 RequestPort* port; local 986 RequestPort* port; local 1024 RequestPort* port; local 1060 RequestPort* port; local [all...] |
/haiku/headers/os/net/ |
H A D | NetAddress.h | 25 BNetAddress(const char* hostname = 0, unsigned short port = 0); 27 BNetAddress(in_addr addr, int port = 0); 28 BNetAddress(uint32 addr, int port = 0); 39 status_t SetTo(const char* hostname = NULL, unsigned short port = 0); 41 status_t SetTo(in_addr addr, int port = 0); 42 status_t SetTo(uint32 addr = INADDR_ANY, int port = 0); 45 unsigned short* port = NULL) const; 47 status_t GetAddr(in_addr& addr, unsigned short* port = NULL) const;
|
/haiku/src/tests/system/kernel/ |
H A D | transfer_area_test.cpp | 20 port_id port; local 25 port = find_port(kPortName); 26 if (port < B_OK) { 32 get_port_info(port, &info); 52 write_port(port, targetArea, NULL, 0); 55 port = create_port(1, kPortName); 56 if (port < 0) { 57 fprintf(stderr, "Could not create port: %s.\n", strerror(area)); 65 if ((size = read_port(port, (int32 *)&area, NULL, 0)) < B_OK) { 66 fprintf(stderr, "Reading from port faile [all...] |
H A D | port_multi_read_test.cpp | 19 port_id port = (port_id)_data; local 21 printf("[%ld] read port...\n", find_thread(NULL)); 24 ssize_t bytes = port_buffer_size(port); 29 bytes = read_port(port, &code, buffer, sizeof(buffer)); 30 printf("[%ld] read port result (code %lx): %s\n", find_thread(NULL), 43 port_id port = create_port(1, "test port"); local 44 printf("created port %ld\n", port); 49 (void*)port); [all...] |
/haiku/src/system/libnetwork/netresolv/net/ |
H A D | getservbyport_r.c | 52 _servent_getbyport(struct servent_data *sd, struct servent *sp, int port, argument 67 port = ntohs(port); 75 if (port < 0 || port > 65536) 80 be16enc(buf + 2, port); 91 if (be16dec(data) != port) 106 if (sp->s_port != port) 116 getservbyport_r(int port, const char *proto, struct servent *sp, argument 120 sp = _servent_getbyport(sd, sp, port, prot [all...] |
H A D | getservbyport.c | 52 getservbyport(int port, const char *proto) argument 57 s = getservbyport_r(port, proto, &_servent_data.serv, &_servent_data);
|
/haiku/src/tools/fs_shell/ |
H A D | external_commands_beos.cpp | 21 static port_id port = -1; local 25 port = create_port(10, kFSShellCommandPort); 29 return port; 36 // get/create the port 37 port_id port = get_command_port(); local 38 if (port < 0) { 39 fprintf(stderr, "Error: Failed to create command port: %s\n", 40 strerror(port)); 51 bytesRead = read_port(port, &code, message, sizeof(_message)); 55 fprintf(stderr, "Error: Reading from port faile [all...] |
/haiku/src/tests/servers/input/comm/ |
H A D | port.cpp | 9 port_id port = atoi(args[1]); local 15 ssize_t size = port_buffer_size(port); 21 if ((newsize = read_port(port, &code, buffer, size))==size) {
|
/haiku/src/servers/registrar/ |
H A D | RosterAppInfo.cpp | 32 RosterAppInfo::Init(thread_id thread, team_id team, port_id port, uint32 flags, argument 37 this->port = port; 57 clone->Init(thread, team, port, flags, &ref, signature);
|