/Zephyr-latest/samples/sensor/sensor_shell/pytest/ |
D | test_sensor_shell.py | 15 assert any(['device name: sensor@0' in line for line in lines]), 'expected response not found' 16 assert any(['device name: sensor@1' in line for line in lines]), 'expected response not found' 25 … assert any(['channel type=31(voltage)' in line for line in lines]), 'expected response not found' 28 …assert any(['channel type=53(gauge_state_of_health)' in line for line in lines]), 'expected respon… 33 …assert any(['channel type=59(gauge_desired_charging_current)' in line for line in lines]), 'expect… 42 …assert any(['sensor@0(channel=co2, attr=sampling_frequency)' in line for line in lines]), 'expecte… 45 …assert any(['sensor@1(channel=gauge_state_of_health, attr=slope_th)' in line for line in lines]), … 55 assert any([expected_line in line for line in lines]), 'expected response not found' 59 assert any([expected_line in line for line in lines]), 'expected response not found' 69 assert any([expected_line in line for line in lines]), 'expected response not found' [all …]
|
/Zephyr-latest/drivers/interrupt_controller/ |
D | intc_gpio_stm32wb0.c | 75 stm32_gpio_irq_line_t line = (1U << pin); in portpin_to_ll_exti_line() local 78 line <<= SYSCFG_IO_DTR_PB0_DT_Pos; in portpin_to_ll_exti_line() 80 line <<= SYSCFG_IO_DTR_PA0_DT_Pos; in portpin_to_ll_exti_line() 85 return line; in portpin_to_ll_exti_line() 95 static inline uint32_t ll_exti_line_to_portpin(stm32_gpio_irq_line_t line) in ll_exti_line_to_portpin() argument 97 return LOG2(line); in ll_exti_line_to_portpin() 103 static struct gpio_irq_cb_wrp *irq_cb_wrp_for_line(stm32_gpio_irq_line_t line) in irq_cb_wrp_for_line() argument 107 const uint32_t index = ll_exti_line_to_portpin(line); in irq_cb_wrp_for_line() 118 uint32_t line = arg->port_first_line; in stm32wb0_gpio_isr() local 120 for (uint32_t i = 0; i < NUM_PINS_PER_GPIO_PORT; i++, line <<= 1) { in stm32wb0_gpio_isr() [all …]
|
D | intc_exti_stm32.c | 78 static inline int stm32_exti_is_pending(stm32_gpio_irq_line_t line) in stm32_exti_is_pending() argument 81 return (LL_EXTI_IsActiveRisingFlag_0_31(line) || in stm32_exti_is_pending() 82 LL_EXTI_IsActiveFallingFlag_0_31(line)); in stm32_exti_is_pending() 84 return LL_C2_EXTI_IsActiveFlag_0_31(line); in stm32_exti_is_pending() 86 return LL_EXTI_IsActiveFlag_0_31(line); in stm32_exti_is_pending() 95 static inline void stm32_exti_clear_pending(stm32_gpio_irq_line_t line) in stm32_exti_clear_pending() argument 98 LL_EXTI_ClearRisingFlag_0_31(line); in stm32_exti_clear_pending() 99 LL_EXTI_ClearFallingFlag_0_31(line); in stm32_exti_clear_pending() 101 LL_C2_EXTI_ClearFlag_0_31(line); in stm32_exti_clear_pending() 103 LL_EXTI_ClearFlag_0_31(line); in stm32_exti_clear_pending() [all …]
|
D | intc_gd32_exti.c | 58 #define EXTI_LINE_IRQ_COND(enabled, line) \ argument 59 COND_CODE_1(enabled, (DT_INST_IRQ_BY_NAME(0, line, irq)), (EXTI_NOTSUP)) 106 void gd32_exti_enable(uint8_t line) in gd32_exti_enable() argument 108 __ASSERT_NO_MSG(line < NUM_EXTI_LINES); in gd32_exti_enable() 109 __ASSERT_NO_MSG(line2irq[line] != EXTI_NOTSUP); in gd32_exti_enable() 111 EXTI_INTEN |= BIT(line); in gd32_exti_enable() 113 irq_enable(line2irq[line]); in gd32_exti_enable() 116 void gd32_exti_disable(uint8_t line) in gd32_exti_disable() argument 118 __ASSERT_NO_MSG(line < NUM_EXTI_LINES); in gd32_exti_disable() 119 __ASSERT_NO_MSG(line2irq[line] != EXTI_NOTSUP); in gd32_exti_disable() [all …]
|
D | intc_xmc4xxx.c | 69 int port_map, pin_map, line, eru_src, eru_ch; in intc_xmc4xxx_gpio_enable_interrupt() local 79 line = XMC4XXX_INTC_GET_LINE(port_line_mapping[i]); in intc_xmc4xxx_gpio_enable_interrupt() 80 cb = &data->cb[line]; in intc_xmc4xxx_gpio_enable_interrupt() 89 eru_ch = line & 0x3; in intc_xmc4xxx_gpio_enable_interrupt() 116 eru = config->eru_regs[line >> 2]; in intc_xmc4xxx_gpio_enable_interrupt() 135 *(uint32_t *)(NVIC_ISPR_BASE) |= BIT(line + 1); in intc_xmc4xxx_gpio_enable_interrupt() 151 for (int line = 0; line < ARRAY_SIZE(data->cb); line++) { in intc_xmc4xxx_gpio_disable_interrupt() local 154 cb = &data->cb[line]; in intc_xmc4xxx_gpio_disable_interrupt() 155 eru_ch = line & 0x3; in intc_xmc4xxx_gpio_disable_interrupt() 157 XMC_ERU_t *eru = config->eru_regs[line >> 2]; in intc_xmc4xxx_gpio_disable_interrupt() [all …]
|
/Zephyr-latest/include/zephyr/arch/xtensa/ |
D | cache.h | 34 size_t line; in arch_dcache_flush_range() local 36 for (line = first; bytes && line < last; line += step) { in arch_dcache_flush_range() 37 __asm__ volatile("dhwb %0, 0" :: "r"(line)); in arch_dcache_flush_range() 50 size_t line; in arch_dcache_flush_and_invd_range() local 52 for (line = first; bytes && line < last; line += step) { in arch_dcache_flush_and_invd_range() 53 __asm__ volatile("dhwbi %0, 0" :: "r"(line)); in arch_dcache_flush_and_invd_range() 66 size_t line; in arch_dcache_invd_range() local 68 for (line = first; bytes && line < last; line += step) { in arch_dcache_invd_range() 69 __asm__ volatile("dhi %0, 0" :: "r"(line)); in arch_dcache_invd_range() 80 size_t line; in arch_dcache_invd_all() local [all …]
|
/Zephyr-latest/tests/bluetooth/controller/common/include/ |
D | helper_pdu.h | 67 void helper_pdu_verify_ping_req(const char *file, uint32_t line, struct pdu_data *pdu, void *param); 68 void helper_pdu_verify_ping_rsp(const char *file, uint32_t line, struct pdu_data *pdu, void *param); 70 void helper_pdu_verify_feature_req(const char *file, uint32_t line, struct pdu_data *pdu, 72 void helper_pdu_verify_peripheral_feature_req(const char *file, uint32_t line, struct pdu_data *pdu, 74 void helper_pdu_verify_feature_rsp(const char *file, uint32_t line, struct pdu_data *pdu, 77 void helper_pdu_verify_min_used_chans_ind(const char *file, uint32_t line, struct pdu_data *pdu, 80 void helper_pdu_verify_version_ind(const char *file, uint32_t line, struct pdu_data *pdu, 83 void helper_pdu_verify_enc_req(const char *file, uint32_t line, struct pdu_data *pdu, void *param); 85 void helper_pdu_ntf_verify_enc_req(const char *file, uint32_t line, struct pdu_data *pdu, 88 void helper_pdu_verify_enc_rsp(const char *file, uint32_t line, struct pdu_data *pdu, void *param); [all …]
|
/Zephyr-latest/scripts/build/ |
D | process_gperf.py | 80 def process_line(line, fp): argument 81 if line.startswith("#"): 82 fp.write(line) 87 if re.search(args.pattern + " [*]$", line): 88 fp.write("static inline " + line) 91 m = re.search("gperf version (.*) [*][/]$", line) 102 line = re.sub(r'lengthtable\[key\]', r'sizeof(void *)', line) 105 line = re.sub(r'[{]["]["][}]', r'{}', line) 108 line = re.sub(r'static unsigned char lengthtable', 109 r'static unsigned char __unused lengthtable', line) [all …]
|
/Zephyr-latest/tests/bluetooth/controller/common/src/ |
D | helper_pdu.c | 47 zassert_mem_equal(_s._f, _p->_f, sizeof(_p->_f), _t "\nCalled at %s:%d\n", file, line); 534 void helper_pdu_verify_version_ind(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_version_ind() argument 540 line); in helper_pdu_verify_version_ind() 542 "Not a LL_VERSION_IND.\nCalled at %s:%d\n", file, line); in helper_pdu_verify_version_ind() 544 "Wrong version number.\nCalled at %s:%d\n", file, line); in helper_pdu_verify_version_ind() 546 "Wrong company id.\nCalled at %s:%d\n", file, line); in helper_pdu_verify_version_ind() 548 "Wrong sub version number.\nCalled at %s:%d\n", file, line); in helper_pdu_verify_version_ind() 551 void helper_pdu_verify_ping_req(const char *file, uint32_t line, struct pdu_data *pdu, void *param) in helper_pdu_verify_ping_req() argument 554 line); in helper_pdu_verify_ping_req() 556 "Not a LL_PING_REQ. Called at %s:%d\n", file, line); in helper_pdu_verify_ping_req() [all …]
|
/Zephyr-latest/scripts/ |
D | checkpatch.pl | 179 my $line = $_; 181 $line =~ s/\s*\n?$//g; 182 $line =~ s/^\s*//g; 183 $line =~ s/\s+/ /g; 185 next if ($line =~ m/^\s*#/); 186 next if ($line =~ m/^\s*$/); 188 my @words = split(" ", $line); 718 my $line = $_; 720 $line =~ s/\s*\n?$//g; 721 $line =~ s/^\s*//g; [all …]
|
/Zephyr-latest/scripts/utils/ |
D | pinctrl_nrf_migrate.py | 191 for i, line in enumerate(content[::-1]): 192 if re.match(r"\s*};.*", line): 202 for line in content[:last_line]: 203 out.write(line) 236 for line in content[last_line:]: 237 out.write(line) 252 for line in content: 253 m = re.match(r'^#include\s+(?:"|<).*nrf.*(?:>|").*', line) 344 for i, line in enumerate(content): 346 m = re.match(r'^#include\s+".*-pinctrl\.dtsi".*', line) [all …]
|
D | migrate_sys_init.py | 31 for line in lines: 32 m = re.match(r"^SYS_INIT\(([A-Za-z0-9_]+),.*", line) 37 m = re.match(r"^SYS_INIT_NAMED\([A-Za-z0-9_]+,\s?([A-Za-z0-9_]+).*", line) 49 for line in lines: 54 line, 61 m = re.match(r"^\s?ARG_UNUSED\(" + arg + r"\);.*$", line) 66 content += line 68 m = re.match(r"^\s?\n$", line) 70 content += line 73 content += line
|
D | board_v1_to_v2.py | 99 for line in f.readlines(): 100 m = re.match(r"^CONFIG_BOARD_.*$", line) 105 m = re.match(r"^CONFIG_(SOC_[A-Z0-9_]+).*$", line) 108 if not re.match(r"^CONFIG_SOC_SERIES_.*$", line): 112 if dropped_line and re.match(r"^$", line): 116 board_defconfig += line 128 for line in f.readlines(): 130 m = re.match(r"^config BOARD$", line) 135 if in_board and re.match(r"^\s+.*$", line): 140 m = re.match(r"^config .*$", line) [all …]
|
/Zephyr-latest/scripts/gitlint/ |
D | zephyr_commit_rules.py | 69 for line in commit.message.body: 70 if line.lower().startswith("signed-off-by"): 71 … if not re.search(r"(^)Signed-off-by: ([-'\w.]+) ([-'\w.]+) (.*)", line, flags=flags): 84 def validate(self, line, _commit): argument 86 if len(line) > max_length and not line.startswith("Revert"): 87 … return [RuleViolation(self.id, self.violation_message.format(len(line), max_length), line)] 109 def validate(self, line, _commit): argument 111 …re.findall(r'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', line) 112 if line.lower().startswith('signed-off-by') or line.lower().startswith('co-authored-by'): 118 if len(line) > max_length: [all …]
|
/Zephyr-latest/include/zephyr/drivers/interrupt_controller/ |
D | gpio_intc_stm32.h | 37 void stm32_gpio_intc_enable_line(stm32_gpio_irq_line_t line); 44 void stm32_gpio_intc_disable_line(stm32_gpio_irq_line_t line); 70 void stm32_gpio_intc_select_line_trigger(stm32_gpio_irq_line_t line, uint32_t trg); 90 int stm32_gpio_intc_set_irq_callback(stm32_gpio_irq_line_t line, 98 void stm32_gpio_intc_remove_irq_callback(stm32_gpio_irq_line_t line); 109 void stm32_exti_set_line_src_port(gpio_pin_t line, uint32_t port); 117 uint32_t stm32_exti_get_line_src_port(gpio_pin_t line);
|
D | gd32_exti.h | 32 typedef void (*gd32_exti_cb_t)(uint8_t line, void *user); 39 void gd32_exti_enable(uint8_t line); 46 void gd32_exti_disable(uint8_t line); 54 void gd32_exti_trigger(uint8_t line, uint8_t trigger); 66 int gd32_exti_configure(uint8_t line, gd32_exti_cb_t cb, void *user);
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/resources/ |
D | shell_simulator.py | 19 for line in sys.stdin: 20 line = line.strip() 21 print(line, flush=True) 22 if line == 'quit': 24 elif line == 'zen':
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/settings/src/ |
D | settings.c | 39 char line[READ_LEN_MAX + 1]; in entry_check_and_copy() local 44 while (fgets(line, sizeof(line), fin) == line) { in entry_check_and_copy() 45 if (strstr(line, name_tmp) != NULL) { in entry_check_and_copy() 49 if (fputs(line, fout) < 0) { in entry_check_and_copy() 92 char line[READ_LEN_MAX + 1]; in settings_custom_load() local 94 while (fgets(line, sizeof(line), fp) == line) { in settings_custom_load() 96 if (arg->subtree != NULL && !strstr(line, arg->subtree)) { in settings_custom_load() 100 char *pos = strchr(line, '='); in settings_custom_load() 102 if (pos <= line) { in settings_custom_load() 106 vallen = strlen(line) - (pos - line) - 2; in settings_custom_load() [all …]
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/helpers/ |
D | utils.py | 20 for line in lines: 21 if m := re_key.match(line): 22 logger.debug('Found matching key: %s' % line.strip()) 31 assert any(sl in line for line in output_lines) 37 assert all(sl not in line for line in output_lines)
|
/Zephyr-latest/drivers/pinctrl/ |
D | pinctrl_nrf.c | 44 #define NRF_PSEL_UART(reg, line) ((NRF_UART_Type *)reg)->PSEL##line argument 47 #define NRF_PSEL_UART(reg, line) ((NRF_UARTE_Type *)reg)->PSEL.line argument 51 #define NRF_PSEL_SPIM(reg, line) ((NRF_SPI_Type *)reg)->PSEL##line argument 54 #define NRF_PSEL_SPIM(reg, line) ((NRF_SPIM_Type *)reg)->PSEL.line argument 60 #define NRF_PSEL_SPIS(reg, line) ((NRF_SPIS_Type *)reg)->PSEL##line argument 62 #define NRF_PSEL_SPIS(reg, line) ((NRF_SPIS_Type *)reg)->PSEL.line argument 68 #define NRF_PSEL_TWIM(reg, line) ((NRF_TWI_Type *)reg)->PSEL##line argument 70 #define NRF_PSEL_TWIM(reg, line) ((NRF_TWI_Type *)reg)->PSEL.line argument 74 #define NRF_PSEL_TWIM(reg, line) ((NRF_TWIM_Type *)reg)->PSEL.line argument 78 #define NRF_PSEL_I2S(reg, line) ((NRF_I2S_Type *)reg)->PSEL.line argument [all …]
|
/Zephyr-latest/subsys/net/ip/ |
D | tp.c | 46 void *tp_malloc(size_t size, const char *file, int line, const char *func) in tp_malloc() argument 52 mem->line = line; in tp_malloc() 92 mem->file, mem->line, mem->func, mem->mem, mem->size); in tp_mem_chk() 100 mem->file, mem->line, mem->func, mem->mem, in tp_mem_chk() 105 mem->file, mem->line, mem->func, mem->mem, in tp_mem_chk() 110 void tp_free(void *ptr, const char *file, int line, const char *func) in tp_free() argument 118 file, line, func, ptr); in tp_free() 125 void *tp_calloc(size_t nmemb, size_t size, const char *file, int line, in tp_calloc() argument 129 void *ptr = tp_malloc(bytes, file, line, func); in tp_calloc() 141 tp_dbg("len=%zu %s:%d", mem->size, mem->file, mem->line); in tp_mem_stat() [all …]
|
/Zephyr-latest/modules/mbedtls/ |
D | debug.c | 13 void zephyr_mbedtls_debug(void *ctx, int level, const char *file, int line, const char *str) in zephyr_mbedtls_debug() argument 45 LOG_ERR("%s:%04d: %.*s", basename, line, str_len, str); in zephyr_mbedtls_debug() 48 LOG_WRN("%s:%04d: %.*s", basename, line, str_len, str); in zephyr_mbedtls_debug() 51 LOG_INF("%s:%04d: %.*s", basename, line, str_len, str); in zephyr_mbedtls_debug() 54 LOG_DBG("%s:%04d: %.*s", basename, line, str_len, str); in zephyr_mbedtls_debug()
|
/Zephyr-latest/tests/subsys/fs/multi-fs/src/ |
D | test_fs_shell.c | 18 static void test_shell_exec(const char *line, int result) in test_shell_exec() argument 22 ret = shell_execute_cmd(NULL, line); in test_shell_exec() 24 TC_PRINT("shell_execute_cmd(%s): %d\n", line, ret); in test_shell_exec() 26 zassert_true(ret == result, line); in test_shell_exec()
|
/Zephyr-latest/scripts/coredump/ |
D | coredump_serial_log_parser.py | 50 for line in infile.readlines(): 51 if line.find(COREDUMP_BEGIN_STR) >= 0: 57 if line.find(COREDUMP_END_STR) >= 0: 63 if line.find(COREDUMP_ERROR_STR) >= 0: 73 prefix_idx = line.find(COREDUMP_PREFIX_STR) 79 hex_str = line[prefix_idx:].strip()
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/shell_mgmt/src/ |
D | shell_mgmt.c | 24 shell_exec(const char *line) in shell_exec() argument 29 return shell_execute_cmd(sh, line); in shell_exec() 49 char line[CONFIG_SHELL_CMD_BUFF_SIZE + 1]; in shell_mgmt_exec() local 86 if ((len + value.len) >= (ARRAY_SIZE(line) - 1)) { in shell_mgmt_exec() 92 memcpy(&line[len], value.value, value.len); in shell_mgmt_exec() 94 line[len - 1] = ' '; in shell_mgmt_exec() 96 line[len - 1] = 0; in shell_mgmt_exec() 111 rc = shell_exec(line); in shell_mgmt_exec()
|