Home
last modified time | relevance | path

Searched refs:ioctl (Results 1 – 25 of 232) sorted by relevance

12345678910

/haiku/src/add-ons/kernel/drivers/misc/
H A Dpoke.cpp147 port_io_args ioctl; in poke_control() local
148 if (user_memcpy(&ioctl, arg, sizeof(port_io_args)) != B_OK) in poke_control()
150 if (ioctl.signature != POKE_SIGNATURE) in poke_control()
153 switch (ioctl.size) { in poke_control()
155 ioctl.value = isa->read_io_8(ioctl.port); in poke_control()
158 ioctl.value = isa->read_io_16(ioctl.port); in poke_control()
161 ioctl.value = isa->read_io_32(ioctl.port); in poke_control()
167 if (user_memcpy(arg, &ioctl, sizeof(port_io_args)) != B_OK) in poke_control()
175 port_io_args ioctl; in poke_control() local
176 if (user_memcpy(&ioctl, arg, sizeof(port_io_args)) != B_OK) in poke_control()
[all …]
/haiku/src/add-ons/media/media-add-ons/opensound/
H A Ddriver_io.h36 #define DRIVER_GET_DESCRIPTION(x...) ioctl( fd, B_MULTI_GET_DESCRIPTION, x )
37 #define DRIVER_GET_ENABLED_CHANNELS(x...) ioctl( fd, B_MULTI_GET_ENABLED_CHANNELS, x )
38 #define DRIVER_SET_ENABLED_CHANNELS(x...) ioctl( fd, B_MULTI_SET_ENABLED_CHANNELS, x )
39 #define DRIVER_SET_GLOBAL_FORMAT(x...) ioctl( fd, B_MULTI_SET_GLOBAL_FORMAT, x )
40 #define DRIVER_GET_BUFFERS(x...) ioctl( fd, B_MULTI_GET_BUFFERS, x )
41 #define DRIVER_BUFFER_EXCHANGE(x...) ioctl( fd, B_MULTI_BUFFER_EXCHANGE, x )
43 #define DRIVER_LIST_MIX_CONTROLS(x...) ioctl( fd, B_MULTI_LIST_MIX_CONTROLS, x )
44 #define DRIVER_SET_MIX(x...) ioctl( fd, B_MULTI_SET_MIX, x )
45 #define DRIVER_GET_MIX(x...) ioctl( fd, B_MULTI_GET_MIX, x )
H A DOpenSoundDeviceEngine.cpp93 if (ioctl(fFD, SNDCTL_DSP_COOKEDMODE, &v, sizeof(int)) < 0) { in Open()
104 if (ioctl(fFD, SNDCTL_DSP_SETFRAGMENT, &v, sizeof(int)) < 0) { in Open()
162 if (ioctl(fFD, SNDCTL_ENGINEINFO, &fAudioInfo, sizeof(oss_audioinfo)) < 0) in UpdateInfo()
196 if (ioctl(fFD, SNDCTL_DSP_CHANNELS, &chans, sizeof(int)) < 0) { in GetChannels()
207 if (ioctl(fFD, SNDCTL_DSP_CHANNELS, &chans, sizeof(int)) < 0) { in SetChannels()
221 if (ioctl(fFD, SNDCTL_DSP_GETFMTS, &fmt, sizeof(int)) < 0) { in GetFormat()
232 if (ioctl(fFD, SNDCTL_DSP_SETFMT, &fmt, sizeof(int)) < 0) { in SetFormat()
245 if (ioctl(fFD, SNDCTL_DSP_SPEED, &speed, sizeof(int)) < 0) { in GetSpeed()
256 if (ioctl(fFD, SNDCTL_DSP_SPEED, &speed, sizeof(int)) < 0) { in SetSpeed()
275 if (ioctl(fFD, SNDCTL_DSP_GETISPACE, info, sizeof(audio_buf_info)) < 0) { in GetISpace()
[all …]
H A DOpenSoundDeviceMixer.cpp54 if (ioctl(fFD, SNDCTL_MIX_NREXT, &n, sizeof(int)) < 0) { in CountExtInfos()
75 if (ioctl(fFD, SNDCTL_MIX_EXTINFO, info, sizeof(*info)) < 0) { in GetExtInfo()
95 if (ioctl(fFD, SNDCTL_MIX_READ, value, sizeof(*value)) < 0) { in GetMixerValue()
115 if (ioctl(fFD, SNDCTL_MIX_WRITE, value, sizeof(*value)) < 0) { in SetMixerValue()
133 if (ioctl(fFD, SNDCTL_MIX_ENUMINFO, info, sizeof(*info)) < 0) { in GetEnumInfo()
/haiku/src/add-ons/kernel/file_systems/userlandfs/
H A Duserlandfs8 ioctl 14200 {
15 ioctl 14201 {
22 ioctl 14202 {
29 ioctl 14203 {
36 ioctl 56742 {
43 ioctl 56743 {
50 ioctl 56744 {
57 ioctl 56745 {
68 ioctl 11000 {
75 ioctl 11001 {
/haiku/src/system/libroot/posix/
H A Dtermios.c20 return ioctl(fd, TCGETA, termios); in tcgetattr()
49 return ioctl(fd, method, termios); in tcsetattr()
63 return ioctl(fd, TCSBRK, 1); in tcdrain()
83 return ioctl(fd, TCXONC, action); in tcflow()
91 return ioctl(fd, TCFLSH, queueSelector); in tcflush()
101 return ioctl(fd, TCSBRK, 0); in tcsendbreak()
179 if (ioctl(fd, TIOCGSID, &sid) == 0) in tcgetsid()
194 return ioctl(fd, TIOCSCTTY, NULL); in tcsetsid()
201 return ioctl(fd, TIOCGWINSZ, winsize, sizeof(*winsize)); in tcgetwinsize()
208 return ioctl(fd, TIOCSWINSZ, winsize, sizeof(*winsize)); in tcsetwinsize()
/haiku/src/bin/
H A Ddriveinfo.c11 if (ioctl(dev, B_GET_DEVICE_SIZE, &sz, sizeof(sz)) < 0) { in dump_dev_size()
21 if (ioctl(dev, B_GET_BIOS_DRIVE_ID, &id, sizeof(id)) < 0) { in dump_bios_id()
31 if (ioctl(dev, B_GET_MEDIA_STATUS, &st, sizeof(st)) < 0) { in dump_media_status()
57 if (ioctl(dev, bios?B_GET_BIOS_GEOMETRY:B_GET_GEOMETRY, &geom, sizeof(geom)) < 0) { in dump_geom()
76 if (ioctl(dev, B_GET_PARTITION_INFO, &partition, sizeof(partition)) < 0) { in dump_partition()
92 if (ioctl(dev, B_GET_DRIVER_FOR_DEVICE, path, sizeof(path)) < 0) { in dump_misc()
98 if (ioctl(dev, B_GET_PATH_FOR_DEVICE, path, sizeof(path)) < 0) { in dump_misc()
H A Deject.cpp155 if (ioctl(fd, B_EJECT_DEVICE, NULL, 0) < 0) { in do_eject()
162 if (ioctl(fd, B_LOAD_MEDIA, NULL, 0) < 0) { in do_eject()
170 if (ioctl(fd, B_SCSI_PREVENT_ALLOW, &bval, sizeof(bval)) < 0) { in do_eject()
178 if (ioctl(fd, B_SCSI_PREVENT_ALLOW, &bval, sizeof(bval)) < 0) { in do_eject()
185 if (ioctl(fd, B_GET_MEDIA_STATUS, &devstatus, sizeof(devstatus)) in do_eject()
200 if (ioctl(fd, B_GET_MEDIA_STATUS, &devstatus, sizeof(devstatus)) in do_eject()
209 if (ioctl(fd, B_EJECT_DEVICE, NULL, 0) < 0) { in do_eject()
216 if (ioctl(fd, B_LOAD_MEDIA, NULL, 0) < 0) { in do_eject()
/haiku/src/tests/system/kernel/device_manager/
H A Ddm_wrapper.c36 return ioctl(fd, params.magic, &params, sizeof(params)); in get_child()
46 return ioctl(fd, params.magic, &params, sizeof(params)); in get_next_child()
56 return ioctl(fd, params.magic, &params, sizeof(params)); in get_parent()
66 return ioctl(fd, params.magic, &params, sizeof(params)); in dm_get_next_attr()
76 return ioctl(fd, params.magic, &params, sizeof(params)); in dm_retrieve_attr()
/haiku/src/tools/fs_shell/
H A Dunistd.cpp154 if (ioctl(fd, B_GET_GEOMETRY, &systemGeometry) == 0) { in fssh_ioctl()
176 if (ioctl(fd, BLKGETSIZE64, &size) == 0 && size > 0) { in fssh_ioctl()
187 } else if (ioctl(fd, HDIO_GETGEO, &hdGeometry) == 0) { in fssh_ioctl()
230 ioctl(fd, DIOCGSECTORSIZE, &disklabel.d_secsize); in fssh_ioctl()
231 ioctl(fd, DIOCGFWSECTORS, &disklabel.d_nsectors); in fssh_ioctl()
232 ioctl(fd, DIOCGFWHEADS, &disklabel.d_ntracks); in fssh_ioctl()
233 ioctl(fd, DIOCGMEDIASIZE, &mediaSize); in fssh_ioctl()
277 if (ioctl(fd, DKIOCGETBLOCKCOUNT, &mediaSize) != 0) { in fssh_ioctl()
300 if (ioctl(fd, DKIOCGETBLOCKSIZE, in fssh_ioctl()
307 if (ioctl(fd, DKIOCISWRITABLE, &isWritable) != 0) { in fssh_ioctl()
[all …]
/haiku/src/add-ons/accelerants/radeon/
H A Ddriver_wrapper.c23 return ioctl( ai->fd, RADEON_WAITFORIDLE, &wfi, sizeof( wfi )); in Radeon_WaitForIdle()
54 ioctl( ai->fd, RADEON_RESETENGINE, &na, sizeof( na )); in Radeon_ResetEngine()
68 res = ioctl( ai->fd, RADEON_VIPREAD, &vr, sizeof( vr )); in Radeon_VIPRead()
87 return ioctl( ai->fd, RADEON_VIPWRITE, &vw, sizeof( vw )); in Radeon_VIPWrite()
98 res = ioctl( ai->fd, RADEON_FINDVIPDEVICE, &fvd, sizeof( fvd )); in Radeon_FindVIPDevice()
/haiku/src/system/kernel/fs/
H A Dvfs_net_boot.cpp160 if (ioctl(fSocket, SIOCGIFINDEX, &request, sizeof(request)) < 0) { in _ScanDevice()
171 if (ioctl(fSocket, SIOCAIFADDR, &aliasRequest, in _ScanDevice()
180 if (ioctl(fSocket, SIOCGIFFLAGS, &request, sizeof(request)) < 0) { in _ScanDevice()
190 if (ioctl(fSocket, SIOCSIFFLAGS, &request, sizeof(request)) < 0) { in _ScanDevice()
198 if (ioctl(fLinkSocket, SIOCGIFADDR, &request, sizeof(request)) < 0) { in _ScanDevice()
238 if (ioctl(fSocket, SIOCSIFADDR, &request, sizeof(request)) < 0) { in _ScanDevice()
246 if (ioctl(fSocket, SIOCSIFNETMASK, &request, sizeof(request)) < 0) { in _ScanDevice()
254 if (ioctl(fSocket, SIOCSIFBRDADDR, &request, sizeof(request)) < 0) { in _ScanDevice()
264 if (ioctl(fSocket, SIOCSIFFLAGS, &request, sizeof(request)) < 0) { in _ScanDevice()
277 ioctl(fSocket, SIOCDELRT, &request, sizeof(request)); in _ScanDevice()
[all …]
/haiku/src/system/libnetwork/
H A Dinterfaces.cpp57 if (ioctl(socket.FD(), SIOCGIFINDEX, &request, sizeof(struct ifreq)) < 0) in if_nametoindex()
73 if (ioctl(socket.FD(), SIOCGIFNAME, &request, sizeof(struct ifreq)) < 0) in if_indextoname()
92 if (ioctl(socket.FD(), SIOCGIFCOUNT, &config, sizeof(struct ifconf)) < 0) in if_nameindex()
104 if (ioctl(socket.FD(), SIOCGIFCONF, &config, sizeof(struct ifconf)) < 0) in if_nameindex()
119 if (ioctl(socket.FD(), SIOCGIFINDEX, &request, in if_nameindex()
H A Dgetifaddrs.cpp64 if (ioctl(socket.Get(), SIOCGIFCONF, &config, sizeof(struct ifconf)) < 0) in _getifaddrs()
90 if (ioctl(socket.Get(), SIOCGIFFLAGS, &request, sizeof(struct ifreq)) in _getifaddrs()
93 if (ioctl(socket.Get(), SIOCGIFNETMASK, &request, sizeof(struct ifreq)) in _getifaddrs()
97 if (ioctl(socket.Get(), SIOCGIFDSTADDR, &request, sizeof(struct ifreq)) in _getifaddrs()
127 if (ioctl(socket.Get(), SIOCGIFCOUNT, &config, sizeof(struct ifconf)) < 0) in getifaddrs()
/haiku/src/tests/add-ons/kernel/drivers/hpet/
H A Dmain.cpp30 status = ioctl(hpetFD, HPET_WAIT_TIMER, &timeValue, sizeof(timeValue)); in main()
35 status = ioctl(hpetFD, HPET_WAIT_TIMER, &timeValue, sizeof(timeValue)); in main()
40 status = ioctl(hpetFD, HPET_WAIT_TIMER, &timeValue, sizeof(timeValue)); in main()
/haiku/src/servers/bluetooth/
H A DHCITransportAccessor.cpp20 status = ioctl(fDescriptor, GET_HCI_ID, &fIdentifier, 0); in HCITransportAccessor()
55 return ioctl(fDescriptor, ISSUE_BT_COMMAND, rc, size); in IssueCommand()
63 return ioctl(fDescriptor, BT_UP, &dummy, sizeof(uint32)); in Launch()
/haiku/src/bin/network/telnet/
H A Dsys_bsd.c82 # define tcgetattr(f, t) ioctl(f, TCGETS, (char *)t)
87 # define tcgetattr(f, t) ioctl(f, TCGETA, (char *)t)
91 # define tcgetattr(f, t) ioctl(f, TIOCGETA, (char *)t)
94 # define tcsetattr(f, a, t) ioctl(f, a, (char *)t)
153 ioctl(0, TIOCLGET, (char *)&flush); in TerminalAutoFlush()
222 (void) ioctl(fileno(stdout), TIOCFLUSH, (char *) 0); in TerminalFlushOutput()
224 (void) ioctl(fileno(stdout), TCFLSH, (char *) 0); in TerminalFlushOutput()
232 ioctl(0, TIOCGETP, (char *)&ottyb); in TerminalSaveState()
233 ioctl(0, TIOCGETC, (char *)&otc); in TerminalSaveState()
234 ioctl(0, TIOCGLTC, (char *)&oltc); in TerminalSaveState()
[all …]
/haiku/src/add-ons/kernel/network/devices/ethernet/
H A Dethernet.cpp55 if (ioctl(device->fd, ETHER_GET_LINK_STATE, &state, in update_link_state()
185 if (ioctl(device->fd, ETHER_INIT, &dummy, sizeof(dummy)) < 0) in ethernet_up()
188 if (ioctl(device->fd, ETHER_GETADDR, device->address.data, ETHER_ADDRESS_LENGTH) < 0) in ethernet_up()
191 if (ioctl(device->fd, ETHER_SEND_NET_BUFFER, NULL, 0) != 0) { in ethernet_up()
197 if (ioctl(device->fd, ETHER_GETFRAMESIZE, &device->frame_size, sizeof(uint32)) < 0) { in ethernet_up()
215 ioctl(device->fd, ETHER_SET_LINK_STATE_SEM, &sLinkChangeSemaphore, in ethernet_up()
265 if (ioctl(device->fd, op, argument, length) < 0) in ethernet_control()
281 if (ioctl(device->fd, ETHER_SEND_NET_BUFFER, buffer, sizeof(net_buffer)) != 0) in ethernet_send_data()
334 if (ioctl(device->fd, ETHER_RECEIVE_NET_BUFFER, _buffer, sizeof(net_buffer*)) != 0) in ethernet_receive_data()
399 if (ioctl(device->fd, ETHER_SETPROMISC, &value, sizeof(value)) < 0) in ethernet_set_promiscuous()
[all …]
/haiku/src/bin/pcmcia-cs/
H A Ddump_cisreg.c119 ret = ioctl(fd, DS_ACCESS_CONFIGURATION_REGISTER, &arg); in get_reg()
255 if (ioctl(fd, DS_GET_FIRST_TUPLE, &arg) == 0) { in main()
256 ioctl(fd, DS_GET_TUPLE_DATA, &arg); in main()
257 ioctl(fd, DS_PARSE_TUPLE, &arg); in main()
262 ret = ioctl(fd, DS_GET_FIRST_TUPLE, &arg); in main()
273 if (ioctl(fd, DS_GET_NEXT_TUPLE, &arg) != 0) { in main()
277 ioctl(fd, DS_GET_TUPLE_DATA, &arg); in main()
278 ioctl(fd, DS_PARSE_TUPLE, &arg); in main()
H A Dcardctl.c275 ret = ioctl(fd, DS_GET_FIRST_WINDOW, &arg1); in print_windows()
278 ioctl(fd, DS_GET_MEM_PAGE, &arg2); in print_windows()
296 ret = ioctl(fd, DS_GET_NEXT_WINDOW, &arg1); in print_windows()
307 if ((ioctl(fd, DS_GET_FIRST_TUPLE, arg) == 0) && in get_tuple()
308 (ioctl(fd, DS_GET_TUPLE_DATA, arg) == 0) && in get_tuple()
309 (ioctl(fd, DS_PARSE_TUPLE, arg) == 0)) in get_tuple()
344 if ((ioctl(fd, DS_GET_CONFIGURATION_INFO, &config) == 0) && in print_ident()
400 if (ioctl(fd, DS_GET_STATUS, &status) == 0) in do_cmd()
417 if (ioctl(fd, DS_GET_CONFIGURATION_INFO, &config) == 0) in do_cmd()
436 ret = ioctl(fd, DS_SUSPEND_CARD); in do_cmd()
[all …]
/haiku/data/userlandfs/file_systems/
H A Dnetfs5 ioctl 11000 {
12 ioctl 11001 {
/haiku/src/libs/libtelnet/
H A Dread_password.c96 if (ioctl(0,TIOCGETP,(char *)&tty_state) == -1)
103 if (ioctl(0,TIOCSETP,(char *)&tty_state) == -1)
136 if (ioctl(0,TIOCSETP,(char *)&tty_state))
/haiku/src/add-ons/accelerants/via/engine/
H A Dagp.c28 ioctl(fd, ENG_GET_NTH_AGP_INFO, &nai, sizeof(nai)); in eng_agp_setup()
86 ioctl(fd, ENG_ENABLE_AGP, &nca, sizeof(nca)); in eng_agp_setup()
96 ioctl(fd, ENG_ENABLE_AGP, &nca, sizeof(nca)); in eng_agp_setup()
/haiku/src/add-ons/accelerants/vesa/
H A Ddpms.cpp24 if (ioctl(gInfo->device, VESA_GET_DPMS_MODE, &mode, sizeof(mode)) != 0) in vesa_dpms_mode()
34 if (ioctl(gInfo->device, VESA_SET_DPMS_MODE, &mode, sizeof(mode)) != 0) in vesa_set_dpms_mode()
/haiku/src/kits/device/
H A DSerialPort.cpp369 status_t status = ioctl(ffd, TCSETDTR, &asserted, sizeof(asserted)); in SetDTR()
379 status_t status = ioctl(ffd, TCSETRTS, &asserted, sizeof(asserted)); in SetRTS()
410 unsigned int bits = ioctl(ffd, TCGETBITS, 0); in IsCTS()
425 unsigned int bits = ioctl(ffd, TCGETBITS, 0); in IsDSR()
440 unsigned int bits = ioctl(ffd, TCGETBITS, 0); in IsRI()
455 unsigned int bits = ioctl(ffd, TCGETBITS, 0); in IsDCD()
482 if (ioctl(ffd, FIONREAD, &size, sizeof(size)) < 0) in WaitForInput()

12345678910