Searched refs:device (Results 1 - 25 of 965) sorted by relevance

1234567891011>>

/haiku-fatelf/src/libs/compat/freebsd_network/
H A Dmii.c10 #include "device.h"
19 __haiku_miibus_readreg(device_t device, int phy, int reg) argument
21 if (device->methods.miibus_readreg == NULL)
24 return device->methods.miibus_readreg(device, phy, reg);
29 __haiku_miibus_writereg(device_t device, int phy, int reg, int data) argument
31 if (device->methods.miibus_writereg == NULL)
34 return device->methods.miibus_writereg(device, phy, reg, data);
39 __haiku_miibus_statchg(device_t device) argument
47 __haiku_miibus_linkchg(device_t device) argument
55 __haiku_miibus_mediainit(device_t device) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/bus_managers/scsi/
H A Dqueuing.h9 Handling of bus/device blocking. Inline functions defined
26 scsi_device_info *device = request->device; local
30 ADD_CDL_LIST_HEAD( request, scsi_ccb, device->queued_reqs, );
35 scsi_device_info *device = request->device; local
39 ADD_CDL_LIST_TAIL( request, scsi_ccb, device->queued_reqs, );
44 scsi_device_info *device = request->device; local
48 REMOVE_CDL_LIST( request, device
148 scsi_unblock_device_noresume( scsi_device_info *device, bool by_SIM ) argument
171 scsi_block_device_nolock( scsi_device_info *device, bool by_SIM ) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/dvb/cx23882/
H A Dcx23882_i2c.h30 status_t i2c_init(cx23882_device *device);
31 void i2c_terminate(cx23882_device *device);
H A Dcx23882_i2c.c32 cx23882_device * device = cookie; local
34 device->i2c_reg |= I2C_SCL;
36 device->i2c_reg &= ~I2C_SCL;
37 reg_write32(REG_I2C_CONTROL, device->i2c_reg);
45 cx23882_device * device = cookie; local
47 device->i2c_reg |= I2C_SDA;
49 device->i2c_reg &= ~I2C_SDA;
50 reg_write32(REG_I2C_CONTROL, device->i2c_reg);
58 cx23882_device * device = cookie; local
66 cx23882_device * device local
72 i2c_init(cx23882_device *device) argument
85 i2c_terminate(cx23882_device *device) argument
[all...]
H A Ddvb_interface.c47 dump_eeprom(cx23882_device *device)
56 res = i2c_xfer(device->i2c_bus, I2C_ADDR_EEPROM, &adr, 1, d, sizeof(d));
71 cx23882_device *device; local
77 device = malloc(sizeof(cx23882_device));
78 if (!device)
80 *cookie = device;
83 memset(device, 0, sizeof(*device));
84 device->regs_area = -1;
85 device
165 cx23882_device *device = cookie; local
197 cx23882_device *device = cookie; local
[all...]
/haiku-fatelf/src/build/libroot/
H A DNodeRef.h13 dev_t device; member in struct:BPrivate::NodeRef
16 NodeRef(dev_t device = 0, ino_t node = 0)
17 : device(device),
23 : device(st.st_dev),
30 device = other.device;
36 device = other.device;
43 return (device
[all...]
/haiku-fatelf/src/add-ons/kernel/bus_managers/ide/
H A Dqueuing.c27 tag2request(ide_device_info *device, int tag) argument
29 ide_qrequest *qrequest = &device->qreq_array[tag];
38 /** service device
46 service_device(ide_device_info *device) argument
58 IDE_UNLOCK(device->bus);
60 cancel_timer(&device->reconnect_timer.te);
66 // further, the device discards the entire queue if anything goes
68 // (we could also discard the queue without telling the device,
69 // but we prefer setting the device into a safe state)
71 // ask device t
129 try_service(ide_device_info *device) argument
182 initialize_qreq_array(ide_device_info *device, int queue_depth) argument
215 destroy_qreq_array(ide_device_info *device) argument
231 change_qreq_array(ide_device_info *device, int queue_depth) argument
261 ide_device_info *device = (ide_device_info *)arg; local
293 ide_device_info *device = (ide_device_info *)arg; local
315 ide_device_info *device = ((ide_device_timer_info *)arg)->device; local
333 send_abort_queue(ide_device_info *device) argument
[all...]
H A Ddevices.c14 SIM. This file contains device detection and classification.
27 /** cleanup links devices on one bus when <device> is deleted */
30 cleanup_device_links(ide_device_info *device) argument
32 ide_bus_info *bus = device->bus;
34 TRACE("cleanup_device_links: device %p\n", device);
36 bus->devices[device->is_device1] = NULL;
38 if (device->other_device) {
39 if (device->other_device != device) {
53 destroy_device(ide_device_info *device) argument
76 setup_device_links(ide_bus_info *bus, ide_device_info *device) argument
107 ide_device_info *device; local
169 prep_infoblock(ide_device_info *device) argument
190 scan_device_int(ide_device_info *device, bool atapi) argument
295 ide_device_info *device; local
[all...]
H A Datapi.c30 Set sense according to error reported by device
31 return: true - device reported error
34 check_packet_error(ide_device_info *device, ide_qrequest *qrequest) argument
36 ide_bus_info *bus = device->bus;
47 &device->tf, ide_mask_error) != B_OK) {
48 device->subsys_status = SCSI_HBA_ERR;
55 error = device->tf.read.error;
65 // ABRT may be set to one if the device is not able to complete the
73 set_sense(device, SCSIS_KEY_ABORTED_COMMAND, SCSIS_ASC_NO_SENSE);
80 device
95 ide_device_info *device = qrequest->device; local
267 create_packet_taskfile(ide_device_info *device, ide_qrequest *qrequest, bool write) argument
289 send_packet(ide_device_info *device, ide_qrequest *qrequest, bool write) argument
439 atapi_exec_io(ide_device_info *device, ide_qrequest *qrequest) argument
467 prep_atapi(ide_device_info *device) argument
[all...]
H A Data.c19 /** verify that device is ready for further PIO transmission */
22 check_rw_status(ide_device_info *device, bool drqStatus) argument
24 ide_bus_info *bus = device->bus;
30 device->subsys_status = SCSI_SEQUENCE_FAIL;
35 device->subsys_status = SCSI_SEQUENCE_FAIL;
51 ide_device_info *device = qrequest->device; local
57 if (check_rw_error(device, qrequest)
58 || !check_rw_status(device, qrequest->is_write ? device
140 ide_device_info *device = qrequest->device; local
185 create_rw_taskfile(ide_device_info *device, ide_qrequest *qrequest, uint64 pos, size_t length, bool write) argument
339 ata_send_rw(ide_device_info *device, ide_qrequest *qrequest, uint64 pos, size_t length, bool write) argument
457 check_rw_error(ide_device_info *device, ide_qrequest *qrequest) argument
535 check_output(ide_device_info *device, bool drdy_required, int error_mask, bool is_write) argument
632 device_set_feature(ide_device_info *device, int feature) argument
649 configure_rmsn(ide_device_info *device) argument
687 configure_command_queueing(ide_device_info *device) argument
714 prep_ata(ide_device_info *device) argument
785 enable_CQ(ide_device_info *device, bool enable) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/rtl8169/
H A Ddevice.c33 #include "device.h"
42 read_settings(rtl8169_device *device) argument
55 device->maxframesize = mtu + 14;
62 device->rxBufferCount = count;
69 device->txBufferCount = count;
78 write_phy_reg(rtl8169_device *device, int reg, uint16 value) argument
92 read_phy_reg(rtl8169_device *device, int reg) argument
109 write_phy_reg_bit(rtl8169_device *device, int reg, int bitnum, int bitval) argument
111 uint16 val = read_phy_reg(device, reg);
116 write_phy_reg(device, re
121 phy_config(rtl8169_device *device) argument
188 dump_phy_stat(rtl8169_device *device) argument
227 print_link_status(rtl8169_device *device) argument
254 rtl8169_device *device = (rtl8169_device *)cookie; local
280 init_buf_desc(rtl8169_device *device) argument
335 rtl8169_tx_int(rtl8169_device *device) argument
361 rtl8169_rx_int(rtl8169_device *device) argument
387 rtl8169_get_link_state(rtl8169_device *device) argument
438 rtl8169_device *device = (rtl8169_device *)data; local
483 rtl8169_device *device; local
734 rtl8169_device *device = (rtl8169_device *)cookie; local
748 rtl8169_device *device = (rtl8169_device *)cookie; local
780 rtl8169_device *device = (rtl8169_device *)cookie; local
845 rtl8169_device *device = (rtl8169_device *)cookie; local
913 rtl8169_device *device = (rtl8169_device *)cookie; local
[all...]
/haiku-fatelf/src/add-ons/kernel/network/devices/dialup/
H A Ddialup.cpp69 switch_to_command_mode(dialup_device* device) argument
71 if (device->state != UP)
74 if (!device->data_mode)
77 snooze(device->escape_silence);
79 ssize_t size = write(device->fd, device->escape_string,
80 strlen(device->escape_string));
81 if (size != (ssize_t)strlen(device->escape_string))
84 snooze(device->escape_silence);
85 device
114 send_command(dialup_device* device, const char* command) argument
135 read_command_reply(dialup_device* device, const char* command, char* reply, int replyMaxSize) argument
173 hangup(dialup_device* device) argument
248 dialup_device* device = (dialup_device*)_device; local
260 dialup_device* device = (dialup_device*)_device; local
347 dialup_device* device = (dialup_device*)_device; local
363 dialup_device* device = (dialup_device*)_device; local
371 dialup_device* device = (dialup_device*)_device; local
468 dialup_device* device = (dialup_device*)_device; local
528 dialup_device* device = (dialup_device*)_device; local
543 dialup_set_media(net_device* device, uint32 media) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/pegasus/
H A Ddevlist.c31 add_device_info(pegasus_dev *device) argument
33 ASSERT(device != NULL);
36 device->next = sDeviceList;
37 sDeviceList = device;
45 remove_device_info(pegasus_dev *device) argument
47 ASSERT(device != NULL);
51 if (sDeviceList == device) {
52 sDeviceList = device->next;
58 if (previous->next == device) {
59 previous->next = device
74 pegasus_dev *device; local
117 pegasus_dev *device; local
[all...]
/haiku-fatelf/src/add-ons/kernel/generic/scsi_periph/
H A Ddevice.cpp9 //! Basic handling of device.
38 // this is actually an IDE device, so we ignore the prefix
40 // a bus device for those
45 // this is a real SCSI device
63 scsi_periph_device_info *device local
64 = (scsi_periph_device_info *)malloc(sizeof(*device));
65 if (device == NULL)
68 memset(device, 0, sizeof(*device));
70 mutex_init(&device
105 periph_unregister_device(scsi_periph_device_info *device) argument
[all...]
H A Dhandle.cpp19 periph_handle_open(scsi_periph_device_info *device, argument
24 // SHOW_FLOW( 3, "device=%p", device );
31 handle->device = device;
34 mutex_lock(&device->mutex);
35 ADD_DL_LIST_HEAD(handle, device->handles, );
36 mutex_unlock(&device->mutex);
57 scsi_periph_device_info *device = handle->device; local
[all...]
/haiku-fatelf/src/bin/
H A Diroster.cpp15 BInputDevice *device; local
33 device = (BInputDevice *) list.ItemAt(i);
36 device->Name(),
37 device->Type() == B_POINTING_DEVICE ? "B_POINTING_DEVICE" :
38 device->Type() == B_KEYBOARD_DEVICE ? "B_KEYBOARD_DEVICE" : "B_UNDEFINED_DEVICE",
39 device->IsRunning() ? "running" : "stopped");
47 BInputDevice *device; local
50 device = find_input_device(name);
51 if (device == NULL) {
52 printf("Error finding device \"
66 BInputDevice *device; local
[all...]
/haiku-fatelf/src/bin/network/tcpdump/libpcap/
H A Dpcap-septel.h6 * card code at the same time as another type of device.
14 pcap_t *septel_open_live(const char *device, int snaplen, int promisc, int to_ms, char *ebuf);
/haiku-fatelf/src/tests/servers/input/inputdevice/
H A Dmain.cpp22 BInputDevice *device = (BInputDevice*)list.ItemAt(i); local
23 if (device == NULL) {
24 printf("device %ld is NULL\n", i);
28 printf("device %ld %s ", i, device->Name());
29 if (device->Type() == B_POINTING_DEVICE)
31 if (device->Type() == B_KEYBOARD_DEVICE)
33 if (device->Type() == B_UNDEFINED_DEVICE)
37 device = find_input_device(device
74 BInputDevice *device = (BInputDevice*)list.ItemAt(i); local
79 BInputDevice *device = (BInputDevice*)list.ItemAt(i); local
84 BInputDevice *device = (BInputDevice*)list.ItemAt(i); local
89 BInputDevice *device = (BInputDevice*)list.ItemAt(i); local
94 BInputDevice *device = (BInputDevice*)list.ItemAt(i); local
[all...]
/haiku-fatelf/src/add-ons/kernel/bus_managers/acpi/
H A DDevice.cpp19 acpi_install_notify_handler(acpi_device device, uint32 handlerType, argument
22 return install_notify_handler(device->handle, handlerType, handler,
27 acpi_remove_notify_handler(acpi_device device, uint32 handlerType, argument
30 return remove_notify_handler(device->handle, handlerType, handler);
35 acpi_install_address_space_handler(acpi_device device, uint32 spaceId, argument
38 return install_address_space_handler(device->handle, spaceId, handler,
43 acpi_remove_address_space_handler(acpi_device device, uint32 spaceId, argument
46 return remove_address_space_handler(device->handle, spaceId, handler);
51 acpi_get_object_type(acpi_device device) argument
53 return device
58 acpi_get_object(acpi_device device, const char *path, acpi_object_type **return_value) argument
70 acpi_evaluate_method(acpi_device device, const char *method, acpi_objects *args, acpi_data *returnValue) argument
114 acpi_device_cookie *device = (acpi_device_cookie*)cookie; local
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/audio/null/
H A Dnull_hardware.c54 device_t* device = (device_t*) cookie; local
57 switch (device->playback_stream.rate) {
69 sleepTime = (device->playback_stream.buffer_length * 1000000LL) / sampleRate;
71 while (device->running) {
74 acquire_spinlock(&device->playback_stream.lock);
75 device->playback_stream.real_time = system_time();
76 device->playback_stream.frames_count += device->playback_stream.buffer_length;
77 device->playback_stream.buffer_cycle = (device
99 null_start_hardware(device_t* device) argument
110 null_stop_hardware(device_t* device) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/vlance/
H A Dvlance.c42 /* PCI vendor and device ID's */
77 int32 devID; /* device identifier */
78 pci_info *devInfo; /* device information */
150 csr_read(dev_info_t *device, uint32 reg_num) argument
152 write32(device->reg_base + PCNET_RAP_OFFSET, reg_num);
153 return read32(device->reg_base + PCNET_RDP_OFFSET);
158 csr_write(dev_info_t *device, uint32 reg_num, uint32 data) argument
160 write32(device->reg_base + PCNET_RAP_OFFSET, reg_num);
161 write32(device->reg_base + PCNET_RDP_OFFSET, data);
166 bcr_read(dev_info_t *device, uint3 argument
174 bcr_write(dev_info_t *device, uint32 reg_num, uint32 data) argument
231 map_pci_addr(dev_info_t *device) argument
255 alloc_buffers(dev_info_t *device) argument
355 init_buffers(dev_info_t *device) argument
386 free_buffers(dev_info_t *device) argument
396 get_mac_addr(dev_info_t *device) argument
413 setpromisc(dev_info_t *device) argument
428 domulti(dev_info_t *device, uint8 *addr) argument
491 reset_device(dev_info_t *device) argument
505 alloc_resources(dev_info_t *device) argument
531 free_resources(dev_info_t *device) argument
651 dev_info_t *device; local
772 dev_info_t *device = (dev_info_t *) _device; local
789 dev_info_t *device = (dev_info_t *)cookie; local
809 dev_info_t *device = (dev_info_t *)cookie; local
855 dev_info_t *device = (dev_info_t *) _device; local
925 dev_info_t *device = (dev_info_t *)_device; local
980 dev_info_t *device = (dev_info_t *)_device; local
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/printer/usb/
H A Dusb_printer.cpp59 status_t usb_printer_transfer_data(printer_device *device, bool directionIn,
69 usb_printer_free_device(printer_device *device) argument
71 mutex_lock(&device->lock);
72 mutex_destroy(&device->lock);
73 delete_sem(device->notify);
74 free(device);
84 usb_printer_reset_recovery(printer_device *device) argument
86 gUSBModule->clear_feature(device->bulk_in, USB_FEATURE_ENDPOINT_HALT);
87 gUSBModule->clear_feature(device->bulk_out, USB_FEATURE_ENDPOINT_HALT);
92 usb_printer_transfer_data(printer_device *device, boo argument
135 printer_device *device = (printer_device *)cookie; local
146 printer_device *device = (printer_device *)malloc(sizeof(printer_device)); local
274 printer_device *device = (printer_device *)cookie; local
316 printer_device *device = gDeviceList; local
352 printer_device *device = (printer_device *)cookie; local
366 usb_printer_get_device_id(printer_device *device, void *buffer) argument
400 printer_device *device = (printer_device *)cookie; local
425 usb_printer_transfer(printer_device* device, bool directionIn, void* buffer, size_t* length) argument
463 printer_device *device = (printer_device *)cookie; local
493 printer_device *device = (printer_device *)cookie; local
601 printer_device *device = gDeviceList; local
[all...]
/haiku-fatelf/src/bin/network/traceroute/
H A Difaddrlist.h26 char *device; member in struct:ifaddrlist
/haiku-fatelf/src/add-ons/media/media-add-ons/multi_audio/
H A DMultiAudioUtility.h25 // device driver interface
26 status_t get_description(int device, multi_description* description);
28 status_t get_enabled_channels(int device, multi_channel_enable* enable);
29 status_t set_enabled_channels(int device, multi_channel_enable* enable);
31 status_t get_global_format(int device, multi_format_info* info);
32 status_t set_global_format(int device, multi_format_info* info);
33 status_t get_buffers(int device, multi_buffer_list* list);
34 status_t buffer_exchange(int device, multi_buffer_info* info);
36 status_t list_mix_controls(int device, multi_mix_control_info* info);
37 status_t get_mix(int device, multi_mix_value_inf
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/wb840/
H A Dinterface.c36 #include "device.h"
46 write32(device->reg_base + WB_SIO, \
47 read32(device->reg_base + WB_SIO) | x)
50 write32(device->reg_base + WB_SIO, \
51 read32(device->reg_base + WB_SIO) & ~x)
57 mii_sync(struct wb_device *device) argument
66 MII_DELAY(device);
68 MII_DELAY(device);
74 mii_send(wb_device *device, uint32 bits, int count) argument
85 MII_DELAY(device);
96 wb_mii_readreg(wb_device *device, wb_mii_frame *frame) argument
186 wb_mii_writereg(wb_device *device, wb_mii_frame *frame) argument
226 wb_miibus_readreg(wb_device *device, int phy, int reg) argument
241 wb_miibus_writereg(wb_device *device, int phy, int reg, int data) argument
298 wb_eeprom_askdata(wb_device *device, int addr) argument
323 wb_eeprom_getword(wb_device *device, int addr, uint16 *dest) argument
352 wb_read_eeprom(wb_device *device, void* dest, int offset, int count, bool swap) argument
[all...]

Completed in 143 milliseconds

1234567891011>>