/lk-master/lib/acpi_lite/ |
A D | acpi_lite.cpp | 59 if (rsdp->length < 36 || rsdp->length > 4096) { in validate_rsdp() 64 c = acpi_checksum(rsdp, rsdp->length); in validate_rsdp() 105 if (sdt->header.length < 36 || sdt->header.length > 4096) { in validate_sdt() 115 uint8_t c = acpi_checksum(sdt, sdt->header.length); in validate_sdt() 152 uint8_t c = acpi_checksum(header, header->length); in acpi_get_table_by_sig() 230 hexdump(acpi.sdt, acpi.sdt->header.length); in acpi_lite_dump_tables() 240 header->sig[3], header->length); in acpi_lite_dump_tables() 241 hexdump(header, header->length); in acpi_lite_dump_tables() 257 while (off < madt->header.length) { in acpi_process_madt_entries_etc() 259 uint8_t length = madt_array[off + 1]; in acpi_process_madt_entries_etc() local [all …]
|
/lk-master/external/platform/lpc15xx/lpcopen/lpc_chip_15xx/inc/usbd/ |
A D | usbd_mscuser.h | 99 void (*MSC_Write)( uint32_t offset, uint8_t** src, uint32_t length, uint32_t high_offset); 120 void (*MSC_Read)( uint32_t offset, uint8_t** dst, uint32_t length, uint32_t high_offset); 136 ErrorCode_t (*MSC_Verify)( uint32_t offset, uint8_t buf[], uint32_t length, uint32_t high_offset); 154 …void (*MSC_GetWriteBuf)( uint32_t offset, uint8_t** buff_adr, uint32_t length, uint32_t high_offse… 253 void (*MSC_Write)( uint32_t offset, uint8_t** src, uint32_t length, uint32_t high_offset); 254 void (*MSC_Read)( uint32_t offset, uint8_t** dst, uint32_t length, uint32_t high_offset); 255 ErrorCode_t (*MSC_Verify)( uint32_t offset, uint8_t src[], uint32_t length, uint32_t high_offset); 257 …void (*MSC_GetWriteBuf)( uint32_t offset, uint8_t** buff_adr, uint32_t length, uint32_t high_offse…
|
A D | usbd_hiduser.h | 144 …ID_GetReport)( USBD_HANDLE_T hHid, USB_SETUP_PACKET* pSetup, uint8_t** pBuffer, uint16_t* length); 169 …*HID_SetReport)( USBD_HANDLE_T hHid, USB_SETUP_PACKET* pSetup, uint8_t** pBuffer, uint16_t length); 203 …*HID_GetPhysDesc)( USBD_HANDLE_T hHid, USB_SETUP_PACKET* pSetup, uint8_t** pBuf, uint16_t* length); 315 …HID_GetReportDesc)(USBD_HANDLE_T hHid, USB_SETUP_PACKET* pSetup, uint8_t** pBuf, uint16_t* length); 403 …ID_GetReport)( USBD_HANDLE_T hHid, USB_SETUP_PACKET* pSetup, uint8_t** pBuffer, uint16_t* length); 404 …*HID_SetReport)( USBD_HANDLE_T hHid, USB_SETUP_PACKET* pSetup, uint8_t** pBuffer, uint16_t length); 405 …*HID_GetPhysDesc)( USBD_HANDLE_T hHid, USB_SETUP_PACKET* pSetup, uint8_t** pBuf, uint16_t* length); 410 …HID_GetReportDesc)(USBD_HANDLE_T hHid, USB_SETUP_PACKET* pSetup, uint8_t** pBuf, uint16_t* length);
|
A D | usbd_dfuuser.h | 107 uint8_t (*DFU_Write)( uint32_t block_num, uint8_t** src, uint32_t length, uint8_t* bwPollTimeout); 129 uint32_t (*DFU_Read)( uint32_t block_num, uint8_t** dst, uint32_t length); 249 uint8_t (*DFU_Write)( uint32_t block_num, uint8_t** src, uint32_t length, uint8_t* bwPollTimeout); 255 uint32_t (*DFU_Read)( uint32_t block_num, uint8_t** dst, uint32_t length);
|
A D | usbd_cdcuser.h | 121 …C_GetRequest)( USBD_HANDLE_T hHid, USB_SETUP_PACKET* pSetup, uint8_t** pBuffer, uint16_t* length); 157 …CIC_SetRequest)( USBD_HANDLE_T hCdc, USB_SETUP_PACKET* pSetup, uint8_t** pBuffer, uint16_t length); 482 …C_GetRequest)( USBD_HANDLE_T hHid, USB_SETUP_PACKET* pSetup, uint8_t** pBuffer, uint16_t* length); 483 …CIC_SetRequest)( USBD_HANDLE_T hCdc, USB_SETUP_PACKET* pSetup, uint8_t** pBuffer, uint16_t length); 510 …IC_GetRequest)(USBD_HANDLE_T hHid, USB_SETUP_PACKET *pSetup, uint8_t * *pBuffer, uint16_t *length); 511 …CIC_SetRequest)(USBD_HANDLE_T hCdc, USB_SETUP_PACKET *pSetup, uint8_t * *pBuffer, uint16_t length); 515 …C_SetRequest_t)(USBD_HANDLE_T hCdc, USB_SETUP_PACKET *pSetup, uint8_t * *pBuffer, uint16_t length);
|
/lk-master/external/platform/nrfx/drivers/src/ |
A D | nrfx_qspi.c | 180 nrf_qspi_cinstrdata_set(NRF_QSPI, p_config->length, p_tx_buffer); in nrfx_qspi_cinstr_xfer() 200 nrf_qspi_cinstrdata_get(NRF_QSPI, p_config->length, p_rx_buffer); in nrfx_qspi_cinstr_xfer() 207 nrf_qspi_cinstr_len_t length, in nrfx_qspi_cinstr_quick_send() argument 218 NRFX_ASSERT(p_config->length == NRF_QSPI_CINSTR_LEN_1B); in nrfx_qspi_lfm_start() 249 nrf_qspi_cinstr_len_t length = NRF_QSPI_CINSTR_LEN_9B; in nrfx_qspi_lfm_xfer() local 255 length = (nrf_qspi_cinstr_len_t)(remaining_bytes + 1); in nrfx_qspi_lfm_xfer() 261 length, in nrfx_qspi_lfm_xfer() 273 nrf_qspi_cinstr_long_transfer_continue(NRF_QSPI, length, false); in nrfx_qspi_lfm_xfer() 287 length, in nrfx_qspi_lfm_xfer() 378 nrfx_err_t nrfx_qspi_erase(nrf_qspi_erase_len_t length, in nrfx_qspi_erase() argument [all …]
|
A D | nrfx_uarte.c | 82 #define UARTE_LENGTH_VALIDATE(drv_inst_idx, length) \ argument 83 (UARTE0_LENGTH_VALIDATE(drv_inst_idx, length, 0) || \ 86 UARTE3_LENGTH_VALIDATE(drv_inst_idx, length, 0)) 352 size_t length) in nrfx_uarte_tx() argument 357 NRFX_ASSERT(length > 0); in nrfx_uarte_tx() 381 p_cb->tx_buffer_length = length; in nrfx_uarte_tx() 434 size_t length) in nrfx_uarte_rx() argument 440 NRFX_ASSERT(length > 0); in nrfx_uarte_rx() 483 p_cb->rx_buffer_length = length; in nrfx_uarte_rx() 490 p_cb->rx_secondary_buffer_length = length; in nrfx_uarte_rx() [all …]
|
/lk-master/external/lib/cksum/ |
A D | crc16.c | 17 unsigned int length) in update_crc16() argument 20 for (i = 0; i < length; i++) { in update_crc16() 35 unsigned short crc16(const unsigned char *buf, unsigned int length) in crc16() argument 38 return update_crc16(crc, buf, length); in crc16()
|
/lk-master/external/lib/fdt/ |
A D | fdt_ro.c | 728 return length; in fdt_stringlist_count() 730 end = list + length; in fdt_stringlist_count() 739 list += length; in fdt_stringlist_count() 754 return length; in fdt_stringlist_search() 757 end = list + length; in fdt_stringlist_search() 766 if (length == len && memcmp(list, string, length) == 0) in fdt_stringlist_search() 769 list += length; in fdt_stringlist_search() 781 int length; in fdt_stringlist_get() local 786 *lenp = length; in fdt_stringlist_get() 791 end = list + length; in fdt_stringlist_get() [all …]
|
/lk-master/lib/unittest/include/lib/ |
A D | unittest.h | 301 #define UTCHECK_BYTES_EQ(expected, actual, length, term, ...) \ argument 309 #define UTCHECK_BYTES_NE(bytes1, bytes2, length, term, ...) \ argument 310 if (!memcmp(bytes1, bytes2, length)) { \ 350 #define EXPECT_BYTES_EQ(expected, actual, length, ...) \ argument 351 UTCHECK_BYTES_EQ(expected, actual, length, false, __VA_ARGS__) 352 #define EXPECT_BYTES_NE(bytes1, bytes2, length, ...) \ argument 353 UTCHECK_BYTES_NE(bytes1, bytes2, length, false, __VA_ARGS__) 370 #define ASSERT_BYTES_EQ(expected, actual, length, ...) \ argument 371 UTCHECK_BYTES_EQ(expected, actual, length, true, __VA_ARGS__) 372 #define ASSERT_BYTES_NE(bytes1, bytes2, length, ...) \ argument [all …]
|
/lk-master/lib/ptable/ |
A D | ptable.c | 55 if (entry->offset > entry->offset + entry->length) in validate_entry() 366 uint64_t tmp = rstart + length; in ptable_adjust_request_for_erase_geometry() 376 *plength = length; in ptable_adjust_request_for_erase_geometry() 407 &length, in ptable_allocate() 439 test_len = length; in ptable_allocate() 454 length = test_len; in ptable_allocate() 474 test_len = length; in ptable_allocate() 481 length = test_len; in ptable_allocate() 492 *plength = length; in ptable_allocate() 710 ptable_entry.length = len; in ptable_create_default() [all …]
|
/lk-master/platform/zynq/ |
A D | fpga.c | 51 status_t zynq_program_fpga(paddr_t physaddr, size_t length) { in zynq_program_fpga() argument 52 LTRACEF("phys 0x%lx, len 0x%zx\n", physaddr, length); in zynq_program_fpga() 57 length /= 4; in zynq_program_fpga() 73 writel(length, DEVCFG_DMA_SRC_LEN); in zynq_program_fpga() 74 writel(length, DEVCFG_DMA_DST_LEN); in zynq_program_fpga()
|
/lk-master/external/platform/cc13xx/cc13xxware/driverlib/ |
A D | rf_data_entry.h | 84 …uint16_t length; //!< \brief For pointer entries: Number of bytes in the data … member 111 …uint16_t length; //!< \brief For pointer entries: Number of bytes in the data … member 139 …uint16_t length; //!< \brief For pointer entries: Number of bytes in the data … member 169 …uint16_t length; //!< \brief For pointer entries: Number of bytes in the data … member 197 …uint16_t length; //!< \brief For pointer entries: Number of bytes in the data … member
|
A D | rf_mailbox.h | 305 #define HW16_ARRAY_OVERRIDE(addr, length) (1 | (((uintptr_t) (addr)) & 0xFFFC) | ((uint32_t)(length… argument 306 #define HW32_ARRAY_OVERRIDE(addr, length) (1 | (((uintptr_t) (addr)) & 0xFFFC) | \ argument 307 ((uint32_t)(length) << 16) | (1U << 30)) 308 #define ADI_ARRAY_OVERRIDE(adiNo, addr, bHalfSize, length) (1 | ((((addr) & 0x3F) << 2)) | \ argument 309 ((!!(bHalfSize)) << 8) | ((!!(adiNo)) << 9) | ((uint32_t)(length) << 16) | (2U << 30)) 310 #define SW_ARRAY_OVERRIDE(cmd, firstfield, length) (1 | (((_POSITION_##cmd##_##firstfield)) << 2) |… argument 311 ((uint32_t)(length) << 16) | (3U << 30))
|
/lk-master/external/platform/pico/rp2_common/pico_stdio_usb/ |
A D | stdio_usb.c | 34 static void stdio_usb_out_chars(const char *buf, int length) { in stdio_usb_out_chars() argument 42 for (int i = 0; i < length;) { in stdio_usb_out_chars() 43 int n = length - i; in stdio_usb_out_chars() 68 int stdio_usb_in_chars(char *buf, int length) { in stdio_usb_in_chars() argument 76 int count = tud_cdc_read(buf, length); in stdio_usb_in_chars()
|
/lk-master/external/platform/nrfx/templates/ |
A D | nrfx_log.h | 120 #define NRFX_LOG_HEXDUMP_ERROR(p_memory, length) argument 128 #define NRFX_LOG_HEXDUMP_WARNING(p_memory, length) argument 136 #define NRFX_LOG_HEXDUMP_INFO(p_memory, length) argument 144 #define NRFX_LOG_HEXDUMP_DEBUG(p_memory, length) argument
|
/lk-master/external/lib/lwip/core/snmp/ |
A D | asn1_enc.c | 50 snmp_asn1_enc_length_cnt(u16_t length, u8_t *octets_needed) in snmp_asn1_enc_length_cnt() argument 52 if (length < 0x80U) in snmp_asn1_enc_length_cnt() 56 else if (length < 0x100U) in snmp_asn1_enc_length_cnt() 213 snmp_asn1_enc_length(struct pbuf *p, u16_t ofs, u16_t length) in snmp_asn1_enc_length() argument 228 if (length < 0x80) in snmp_asn1_enc_length() 230 *msg_ptr = (u8_t)length; in snmp_asn1_enc_length() 233 else if (length < 0x100) in snmp_asn1_enc_length() 249 *msg_ptr = (u8_t)length; in snmp_asn1_enc_length() 279 *msg_ptr = (u8_t)length; in snmp_asn1_enc_length() 284 *msg_ptr = (u8_t)(length >> 8); in snmp_asn1_enc_length()
|
/lk-master/external/platform/nrfx/hal/ |
A D | nrf_qspi.h | 455 uint32_t length, 468 uint32_t length, 521 nrf_qspi_cinstr_len_t length, 532 nrf_qspi_cinstr_len_t length, 741 uint32_t length, in nrf_qspi_write_buffer_set() argument 746 p_reg->WRITE.CNT = length; in nrf_qspi_write_buffer_set() 751 uint32_t length, in nrf_qspi_read_buffer_set() argument 756 p_reg->READ.CNT = length; in nrf_qspi_read_buffer_set() 784 nrf_qspi_cinstr_len_t length, in nrf_qspi_cinstrdata_set() argument 791 switch (length) in nrf_qspi_cinstrdata_set() [all …]
|
A D | nrf_twis.h | 351 size_t length); 364 size_t length); 384 size_t length); 397 size_t length); 700 size_t length) in nrf_twis_rx_buffer_set() argument 703 p_reg->RXD.MAXCNT = length; in nrf_twis_rx_buffer_set() 708 size_t length) in nrf_twis_rx_prepare() argument 710 nrf_twis_rx_buffer_set(p_reg, p_buf, length); in nrf_twis_rx_prepare() 724 p_reg->TXD.MAXCNT = length; in nrf_twis_tx_buffer_set() 729 size_t length) in nrf_twis_tx_prepare() argument [all …]
|
/lk-master/external/platform/nrfx/drivers/include/ |
A D | nrf_bitmask.h | 110 size_t length) in nrf_bitmask_masks_or() argument 115 for (size_t i = 0; i < length; i++) in nrf_bitmask_masks_or() 132 size_t length) in nrf_bitmask_masks_and() argument 137 for (size_t i = 0; i < length; i++) in nrf_bitmask_masks_and()
|
A D | nrfx_spi.h | 167 #define NRFX_SPI_XFER_TX(p_buf, length) \ argument 168 NRFX_SPI_SINGLE_XFER(p_buf, length, NULL, 0) 171 #define NRFX_SPI_XFER_RX(p_buf, length) \ argument 172 NRFX_SPI_SINGLE_XFER(NULL, 0, p_buf, length)
|
/lk-master/external/platform/pico/rp2_common/pico_stdio_uart/ |
A D | stdio_uart.c | 77 static void stdio_uart_out_chars(const char *buf, int length) { in stdio_uart_out_chars() argument 78 for (uint i = 0; i <length; i++) { in stdio_uart_out_chars() 83 int stdio_uart_in_chars(char *buf, int length) { in stdio_uart_in_chars() argument 85 while (i<length && uart_is_readable(uart_default)) { in stdio_uart_in_chars()
|
/lk-master/dev/usb/ |
A D | usb.c | 204 setup->request_type, setup->request, setup->value, setup->index, setup->length); in usbc_callback() 241 setup->length); in usbc_callback() 246 setup->length); in usbc_callback() 251 usb.config->langid.len, setup->length); in usbc_callback() 262 setup->length); in usbc_callback() 276 speed->device_qual.len, setup->length); in usbc_callback() 301 usbc_ep0_send(&usb.active_config, 1, setup->length); in usbc_callback() 312 usbc_ep0_send(&i, 1, setup->length); in usbc_callback() 319 usbc_ep0_send(&i, 2, setup->length); in usbc_callback()
|
/lk-master/lib/fs/fat32/ |
A D | file.c | 175 file->length = fat_read32(dir, offset + 0x1c); in fat32_open_file() 229 uint32_t length = file->length; in fat32_read_file() local 243 to_read = MIN(length - amount_read, to_read); in fat32_read_file() 252 if (amount_read < length) { in fat32_read_file() 258 } while (amount_read < length); in fat32_read_file() 271 stat->size = file->length; in fat32_stat_file()
|
/lk-master/external/platform/pico/rp2_common/hardware_pio/ |
A D | pio.c | 63 assert(program->length < PIO_INSTRUCTION_COUNT); in _pio_find_offset_for_program() 65 uint32_t program_mask = (1u << program->length) - 1; in _pio_find_offset_for_program() 67 if (program->origin > 32 - program->length) return -1; in _pio_find_offset_for_program() 71 for (int i = 32 - program->length; i >= 0; i--) { in _pio_find_offset_for_program() 89 assert(offset + program->length <= PIO_INSTRUCTION_COUNT); in _pio_can_add_program_at_offset() 92 uint32_t program_mask = (1u << program->length) - 1; in _pio_can_add_program_at_offset() 107 for (uint i = 0; i < program->length; ++i) { in _pio_add_program_at_offset() 111 uint32_t program_mask = (1u << program->length) - 1; in _pio_add_program_at_offset() 134 uint32_t program_mask = (1u << program->length) - 1; in pio_remove_program()
|