Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 58) sorted by relevance

123

/USBX-v6.2.1/common/core/src/
Dux_utility_long_put_big_endian.c70 VOID _ux_utility_long_put_big_endian(UCHAR * address, ULONG value) in _ux_utility_long_put_big_endian() argument
77 low_word_value = value >> 16; in _ux_utility_long_put_big_endian()
78 high_word_value = value << 16; in _ux_utility_long_put_big_endian()
79 value = high_word_value | low_word_value; in _ux_utility_long_put_big_endian()
83 *address++ = (UCHAR) ((value >> 8) & 0xff); in _ux_utility_long_put_big_endian()
84 *address++ = (UCHAR) (value & 0xff); in _ux_utility_long_put_big_endian()
85 *address++ = (UCHAR) ((value >> 24 ) & 0xff); in _ux_utility_long_put_big_endian()
86 *address = (UCHAR) ((value >> 16) & 0xff); in _ux_utility_long_put_big_endian()
Dux_utility_long_get_big_endian.c72 ULONG value; in _ux_utility_long_get_big_endian() local
76 value = (ULONG) ((*address++) << 24); in _ux_utility_long_get_big_endian()
77 value |= (ULONG) ((*address++) << 16); in _ux_utility_long_get_big_endian()
78 value |= (ULONG) ((*address++) << 8); in _ux_utility_long_get_big_endian()
79 value |= (ULONG) *address; in _ux_utility_long_get_big_endian()
82 return(value); in _ux_utility_long_get_big_endian()
Dux_utility_long_get.c72 ULONG value; in _ux_utility_long_get() local
77 value = (ULONG) *address++; in _ux_utility_long_get()
78 value |= (ULONG)*address++ << 8; in _ux_utility_long_get()
79 value |= (ULONG)*address++ << 16; in _ux_utility_long_get()
80 value |= (ULONG)*address << 24; in _ux_utility_long_get()
83 return(value); in _ux_utility_long_get()
Dux_utility_short_put_big_endian.c70 VOID _ux_utility_short_put_big_endian(UCHAR * address, USHORT value) in _ux_utility_short_put_big_endian() argument
78 low_byte_value = value >> 8; in _ux_utility_short_put_big_endian()
79 high_byte_value = (USHORT)(value<< 8); in _ux_utility_short_put_big_endian()
80 value = high_byte_value | low_byte_value; in _ux_utility_short_put_big_endian()
84 *address++ = (UCHAR) (value & 0xff); in _ux_utility_short_put_big_endian()
85 *address= (UCHAR) ((value >> 8) & 0xff); in _ux_utility_short_put_big_endian()
Dux_utility_short_get_big_endian.c72 USHORT value; in _ux_utility_short_get_big_endian() local
75 value = (USHORT)((*address++) << 8); in _ux_utility_short_get_big_endian()
76 value = (USHORT)(value | *address); in _ux_utility_short_get_big_endian()
79 return((ULONG) value); in _ux_utility_short_get_big_endian()
Dux_utility_long_put.c70 VOID _ux_utility_long_put(UCHAR * address, ULONG value) in _ux_utility_long_put() argument
75 *address++ = (UCHAR) (value & 0xff); in _ux_utility_long_put()
76 *address++ = (UCHAR) ((value >> 8) & 0xff); in _ux_utility_long_put()
77 *address++ = (UCHAR) ((value >> 16) & 0xff); in _ux_utility_long_put()
78 *address = (UCHAR) ((value >> 24) & 0xff); in _ux_utility_long_put()
Dux_utility_short_get.c72 USHORT value; in _ux_utility_short_get() local
77 value = (USHORT) *address++; in _ux_utility_short_get()
78 value |= (USHORT)(*address << 8); in _ux_utility_short_get()
81 return((ULONG) value); in _ux_utility_short_get()
Dux_utility_short_put.c70 VOID _ux_utility_short_put(UCHAR * address, USHORT value) in _ux_utility_short_put() argument
75 *address++ = (UCHAR) (value & 0xff); in _ux_utility_short_put()
76 *address = (UCHAR) ((value >> 8) & 0xff); in _ux_utility_short_put()
Dux_utility_pci_write.c78 ULONG offset, ULONG value, UINT write_size) in _ux_utility_pci_write() argument
102 outpl(UX_PCI_CFG_DATA_ADDRESS, value); in _ux_utility_pci_write()
111 outpw(UX_PCI_CFG_DATA_ADDRESS + (offset & 2), (USHORT) value); in _ux_utility_pci_write()
120 outpb(UX_PCI_CFG_DATA_ADDRESS + (offset & 3), (UCHAR) value); in _ux_utility_pci_write()
Dux_utility_pci_class_scan.c84 ULONG value; in _ux_utility_pci_class_scan() local
106value = _ux_utility_pci_read(bus_number_index, device_number_index, function_number_index, in _ux_utility_pci_class_scan()
110 current_pci_class = (value >> 8) & 0x00ffffff; in _ux_utility_pci_class_scan()
Dux_utility_memory_set.c71 VOID _ux_utility_memory_set(VOID *destination, UCHAR value, ULONG length) in _ux_utility_memory_set() argument
85 *work_ptr++ = value; in _ux_utility_memory_set()
/USBX-v6.2.1/test/regression/
Dusbx_hid_remote_control_tests.c369 static UINT basic_test_get_next_channel_volume_value(ULONG value) in basic_test_get_next_channel_volume_value() argument
372 if (value == 0x03) in basic_test_get_next_channel_volume_value()
374 else if (value == 0x00) in basic_test_get_next_channel_volume_value()
376 else if (value == 0x01) in basic_test_get_next_channel_volume_value()
386 ULONG value; in basic_test_slave_thread_entry() local
418 value = hid_event.ux_device_class_hid_event_buffer[0] & 0x0f; in basic_test_slave_thread_entry()
419 if (value >= 0x0a) in basic_test_slave_thread_entry()
420 value = 0x01; in basic_test_slave_thread_entry()
422 value++; in basic_test_slave_thread_entry()
425 hid_event.ux_device_class_hid_event_buffer[0] |= value; in basic_test_slave_thread_entry()
[all …]
Dusbx_class_hid_remote_control_basic_test.c396 ULONG *usage, ULONG *value) in _wait_remote_control_usage() argument
406 status = ux_host_class_hid_remote_control_usage_get(remote_control, usage, value); in _wait_remote_control_usage()
418 ULONG value; in test_hid_remote_control_events() local
426 status = _wait_remote_control_usage(hid_remote_control, &usage, &value); in test_hid_remote_control_events()
429 UX_ASSERT(value == 10); in test_hid_remote_control_events()
430 status = ux_host_class_hid_remote_control_usage_get(hid_remote_control, &usage, &value); in test_hid_remote_control_events()
433 UX_ASSERT(value == 1); in test_hid_remote_control_events()
434 status = ux_host_class_hid_remote_control_usage_get(hid_remote_control, &usage, &value); in test_hid_remote_control_events()
437 UX_ASSERT(value == 3); in test_hid_remote_control_events()
441 status = _wait_remote_control_usage(hid_remote_control, &usage, &value); in test_hid_remote_control_events()
[all …]
Dusbx_ux_utility_pci_write_test.c334 ULONG addr, value; in ux_test_thread_simulation_0_entry() local
347 ux_test_sim_outp_log_get(1, &addr, &value); in ux_test_thread_simulation_0_entry()
348 if (value != 2) in ux_test_thread_simulation_0_entry()
350 printf("ERROR #%d: expected %x but got %lx\n", __LINE__, 2, value); in ux_test_thread_simulation_0_entry()
353 ux_test_sim_outp_log_get(3, &addr, &value); in ux_test_thread_simulation_0_entry()
354 if (value != 3) in ux_test_thread_simulation_0_entry()
356 printf("ERROR #%d: expected %x but got %lx\n", __LINE__, 3, value); in ux_test_thread_simulation_0_entry()
359 ux_test_sim_outp_log_get(5, &addr, &value); in ux_test_thread_simulation_0_entry()
360 if (value != 4) in ux_test_thread_simulation_0_entry()
362 printf("ERROR #%d: expected %x but got %lx\n", __LINE__, 4, value); in ux_test_thread_simulation_0_entry()
/USBX-v6.2.1/common/usbx_host_classes/src/
Dux_host_class_hid_item_data_get.c76 ULONG value; in _ux_host_class_hid_item_data_get() local
85 value = (ULONG) *descriptor; in _ux_host_class_hid_item_data_get()
91 value = (ULONG) _ux_utility_short_get(descriptor); in _ux_host_class_hid_item_data_get()
97 value = (ULONG) _ux_utility_long_get(descriptor); in _ux_host_class_hid_item_data_get()
107 return(value); in _ux_host_class_hid_item_data_get()
Dux_host_class_hid_remote_control_usage_get.c75 …ol_usage_get(UX_HOST_CLASS_HID_REMOTE_CONTROL *remote_control_instance, ULONG *usage, ULONG *value) in _ux_host_class_hid_remote_control_usage_get() argument
112 *value = *(array_tail + 1); in _ux_host_class_hid_remote_control_usage_get()
169 ULONG *usage, ULONG *value) in _uxe_host_class_hid_remote_control_usage_get() argument
174 (usage == UX_NULL) || (value == UX_NULL) || in _uxe_host_class_hid_remote_control_usage_get()
175 (usage == value)) in _uxe_host_class_hid_remote_control_usage_get()
179 return(_ux_host_class_hid_remote_control_usage_get(remote_control_instance, usage, value)); in _uxe_host_class_hid_remote_control_usage_get()
Dux_host_class_hid_report_compress.c85 UCHAR value; in _ux_host_class_hid_report_compress() local
175 value = (UCHAR) client_value & 1; in _ux_host_class_hid_report_compress()
178 value = (UCHAR)(value << data_offset_bit); in _ux_host_class_hid_report_compress()
181 *report_buffer |= value; in _ux_host_class_hid_report_compress()
Dux_host_class_prolific_command.c89 ULONG value, UCHAR *data_buffer, ULONG data_length) in _ux_host_class_prolific_command() argument
116 transfer_request -> ux_transfer_request_value = value; in _ux_host_class_prolific_command()
170 ULONG value, UCHAR *data_buffer, ULONG data_length) in _uxe_host_class_prolific_command() argument
178 return(_ux_host_class_prolific_command(prolific, command, value, data_buffer, data_length)); in _uxe_host_class_prolific_command()
Dux_host_class_gser_command.c89 ULONG value, UCHAR *data_buffer, ULONG data_length) in _ux_host_class_gser_command() argument
160 transfer_request -> ux_transfer_request_value = value; in _ux_host_class_gser_command()
214 ULONG value, UCHAR *data_buffer, ULONG data_length) in _uxe_host_class_gser_command() argument
223 command, value, data_buffer, data_length)); in _uxe_host_class_gser_command()
Dux_host_class_cdc_acm_command.c89 ULONG value, UCHAR *data_buffer, ULONG data_length) in _ux_host_class_cdc_acm_command() argument
204 transfer_request -> ux_transfer_request_value = value; in _ux_host_class_cdc_acm_command()
259 ULONG value, UCHAR *data_buffer, ULONG data_length) in _uxe_host_class_cdc_acm_command() argument
267 return(_ux_host_class_cdc_acm_command(cdc_acm, command, value, data_buffer, data_length)); in _uxe_host_class_cdc_acm_command()
Dux_host_class_gser_ioctl.c91 ULONG value; in _ux_host_class_gser_ioctl() local
208 value = (line_state -> ux_host_class_gser_line_state_dtr | in _ux_host_class_gser_ioctl()
213 value, UX_NULL,0); in _ux_host_class_gser_ioctl()
222 value = *((ULONG *) parameter); in _ux_host_class_gser_ioctl()
226 value, UX_NULL,0); in _ux_host_class_gser_ioctl()
/USBX-v6.2.1/common/usbx_host_controllers/src/
Dux_hcd_ehci_periodic_descriptor_link.c131 if ((next_physical_lp.value & (UX_EHCI_LINK_ADDRESS_MASK | UX_EHCI_T)) != UX_EHCI_T) in _ux_hcd_ehci_periodic_descriptor_link()
135 virtual_lp.value = next_physical_lp.value & UX_EHCI_LINK_ADDRESS_MASK; in _ux_hcd_ehci_periodic_descriptor_link()
139 switch(next_physical_lp.value & UX_EHCI_TYP_MASK) in _ux_hcd_ehci_periodic_descriptor_link()
Dux_hcd_ohci_register_write.c73 VOID _ux_hcd_ohci_register_write(UX_HCD_OHCI *hcd_ohci, ULONG ohci_register, ULONG value) in _ux_hcd_ohci_register_write() argument
77 *(hcd_ohci -> ux_hcd_ohci_hcor + ohci_register) = value; in _ux_hcd_ohci_register_write()
Dux_hcd_ehci_register_write.c73 VOID _ux_hcd_ehci_register_write(UX_HCD_EHCI *hcd_ehci, ULONG ehci_register, ULONG value) in _ux_hcd_ehci_register_write() argument
77 *(hcd_ehci -> ux_hcd_ehci_base + ehci_register) = value; in _ux_hcd_ehci_register_write()
/USBX-v6.2.1/common/usbx_device_classes/src/
Dux_device_class_cdc_acm_control_request.c82 ULONG value; in _ux_device_class_cdc_acm_control_request() local
102value = _ux_utility_short_get(transfer_request -> ux_slave_transfer_request_setup + UX_SETUP_VALU… in _ux_device_class_cdc_acm_control_request()
120 if (value & UX_SLAVE_CLASS_CDC_ACM_LINE_STATE_DTR) in _ux_device_class_cdc_acm_control_request()
124 if (value & UX_SLAVE_CLASS_CDC_ACM_LINE_STATE_RTS) in _ux_device_class_cdc_acm_control_request()

123