/Zephyr-latest/subsys/usb/usb_c/ |
D | usbc_tc_snk_states.c | 24 struct tc_sm_t *tc = data->tc; in sink_power_sub_states() local 27 cc = tc->cc_polarity ? tc->cc2 : tc->cc1; in sink_power_sub_states() 59 if (new_cc_voltage != tc->cc_voltage) { in sink_power_sub_states() 60 tc->cc_voltage = new_cc_voltage; in sink_power_sub_states() 61 atomic_set_bit(&tc->flags, TC_FLAGS_RP_SUBSTATE_CHANGE); in sink_power_sub_states() 62 usbc_timer_start(&tc->tc_t_rp_value_change); in sink_power_sub_states() 66 if (usbc_timer_expired(&tc->tc_t_rp_value_change) == false) { in sink_power_sub_states() 71 if (atomic_test_and_clear_bit(&tc->flags, TC_FLAGS_RP_SUBSTATE_CHANGE)) { in sink_power_sub_states() 83 struct tc_sm_t *tc = (struct tc_sm_t *)obj; in tc_unattached_snk_entry() local 91 usbc_bypass_next_sleep(tc->dev); in tc_unattached_snk_entry() [all …]
|
D | usbc_tc_src_states.c | 37 struct tc_sm_t *tc = (struct tc_sm_t *)obj; in tc_unattached_src_run() local 38 const struct device *dev = tc->dev; in tc_unattached_src_run() 47 if (tcpc_is_cc_at_least_one_rd(tc->cc1, tc->cc2)) { in tc_unattached_src_run() 73 struct tc_sm_t *tc = (struct tc_sm_t *)obj; in tc_unattached_wait_src_entry() local 74 const struct device *dev = tc->dev; in tc_unattached_wait_src_entry() 84 usbc_timer_start(&tc->tc_t_vconn_off); in tc_unattached_wait_src_entry() 89 struct tc_sm_t *tc = (struct tc_sm_t *)obj; in tc_unattached_wait_src_run() local 90 const struct device *dev = tc->dev; in tc_unattached_wait_src_run() 93 if (usbc_timer_expired(&tc->tc_t_vconn_off)) { in tc_unattached_wait_src_run() 100 struct tc_sm_t *tc = (struct tc_sm_t *)obj; in tc_unattached_wait_src_exit() local [all …]
|
D | usbc_tc_common.c | 25 struct tc_sm_t *tc = data->tc; in tc_subsys_init() local 28 tc->dev = dev; in tc_subsys_init() 31 smf_set_initial(SMF_CTX(tc), &tc_states[TC_DISABLED_STATE]); in tc_subsys_init() 41 struct tc_sm_t *tc = data->tc; in tc_run() local 82 if (tcpc_get_cc(tcpc, &tc->cc1, &tc->cc2) != 0) { in tc_run() 87 tc->cc1 = TC_CC_VOLT_OPEN; in tc_run() 88 tc->cc2 = TC_CC_VOLT_OPEN; in tc_run() 92 tc->cc_polarity = (tc->cc1 > tc->cc2) ? TC_POLARITY_CC1 : TC_POLARITY_CC2; in tc_run() 104 smf_run_state(SMF_CTX(tc)); in tc_run() 126 struct tc_sm_t *tc = data->tc; in tc_init() local [all …]
|
/Zephyr-latest/scripts/west_commands/tests/ |
D | test_stm32cubeprogrammer.py | 390 check_call, require, path_exists, path_home, system, tc, runner_config argument 396 system.return_value = tc["system"] 400 port=tc["port"], 401 frequency=tc["frequency"], 402 reset_mode=tc["reset_mode"], 403 start_address=tc["start_address"], 404 conn_modifiers=tc["conn_modifiers"], 405 cli=tc["cli"], 406 use_elf=tc["use_elf"], 407 erase=tc["erase"], [all …]
|
D | test_xsdb.py | 48 def test_xsdbbinaryrunner_init(check_call, path_exists, tc, runner_config): argument 54 config=tc["config"], 55 bitstream=tc["bitstream"], 56 fsbl=tc["fsbl"], 61 assert check_call.call_args_list == [call(tc["expected_cmd"])] 67 def test_xsdbbinaryrunner_create(check_call, path_exists, tc, runner_config): argument 70 if tc["config"]: 71 args.extend(["--config", tc["config"]]) 72 if tc["bitstream"]: 73 args.extend(["--bitstream", tc["bitstream"]]) [all …]
|
D | test_dediprog.py | 41 def id_fn(tc): argument 42 return 'spi_image={},vcc={}'.format(*tc) 51 def test_dediprog_init(cc, req, tc, runner_config): argument 53 spi_image, vcc = tc 57 assert cc.call_args_list == [call(EXPECTED_COMMAND[tc])] 66 def test_dediprog_create(cc, req, tc, runner_config): argument 68 spi_image, vcc = tc 77 assert cc.call_args_list == [call(EXPECTED_COMMAND[tc])]
|
D | test_dfu_util.py | 65 def id_fn(tc): argument 66 return 'exe={},alt={},dfuse_config={},img={}'.format(*tc) 81 def test_dfu_util_init(cc, req, find_device, tc, runner_config): argument 83 exe, alt, dfuse_config, img = tc 90 assert cc.call_args_list == [call(EXPECTED_COMMAND[tc])] 111 def test_dfu_util_create(cc, req, gfa, find_device, tc, runner_config, tmpdir): argument 113 exe, alt, dfuse, modifiers, img = tc
|
/Zephyr-latest/drivers/counter/ |
D | counter_sam0_tc32.c | 79 TcCount32 *tc = cfg->regs; in counter_sam0_tc32_start() local 85 tc->CTRLBSET.reg = TC_CTRLBSET_CMD_RETRIGGER; in counter_sam0_tc32_start() 86 wait_synchronization(tc); in counter_sam0_tc32_start() 93 TcCount32 *tc = cfg->regs; in counter_sam0_tc32_stop() local 101 tc->CTRLBSET.reg = TC_CTRLBSET_CMD_STOP; in counter_sam0_tc32_stop() 102 wait_synchronization(tc); in counter_sam0_tc32_stop() 109 TcCount32 *tc = cfg->regs; in counter_sam0_tc32_read() local 111 read_synchronize_count(tc); in counter_sam0_tc32_read() 112 return tc->COUNT.reg; in counter_sam0_tc32_read() 127 TcCount32 *tc = cfg->regs; in counter_sam0_tc32_relative_alarm() local [all …]
|
D | counter_sam_tc.c | 102 Tc *tc = dev_cfg->regs; in counter_sam_tc_start() local 103 TcChannel *tc_ch = &tc->TcChannel[dev_cfg->tc_chan_num]; in counter_sam_tc_start() 113 Tc *tc = dev_cfg->regs; in counter_sam_tc_stop() local 114 TcChannel *tc_ch = &tc->TcChannel[dev_cfg->tc_chan_num]; in counter_sam_tc_stop() 124 Tc *tc = dev_cfg->regs; in counter_sam_tc_get_value() local 125 TcChannel *tc_ch = &tc->TcChannel[dev_cfg->tc_chan_num]; in counter_sam_tc_get_value() 137 Tc *tc = dev_cfg->regs; in counter_sam_tc_set_alarm() local 138 TcChannel *tc_ch = &tc->TcChannel[dev_cfg->tc_chan_num]; in counter_sam_tc_set_alarm() 199 Tc *tc = dev_cfg->regs; in counter_sam_tc_cancel_alarm() local 200 TcChannel *tc_ch = &tc->TcChannel[dev_cfg->tc_chan_num]; in counter_sam_tc_cancel_alarm() [all …]
|
/Zephyr-latest/tests/subsys/testsuite/fff_fake_contexts/src/ |
D | main.c | 251 const struct test_case * const tc = &test_cases[i]; in ZTEST() local 255 (tc->description_oneliner != NULL) ? tc->description_oneliner : ""); in ZTEST() 274 &tc->called_API_open_custom_fake_contexts[0].result, in ZTEST() 275 tc->called_API_open_custom_fake_contexts_len); in ZTEST() 281 tc->called_API_close_fake_return_val_seq, in ZTEST() 282 tc->called_API_close_fake_return_val_seq_len); in ZTEST() 297 if (tc->expected_call_history != NULL) { in ZTEST() 300 tc->expected_call_history[j], NULL); in ZTEST() 302 zassert_is_null(tc->expected_call_history[ in ZTEST() 310 (tc->called_API_open_custom_fake_contexts == NULL) ? 0 : in ZTEST() [all …]
|
/Zephyr-latest/subsys/net/ip/ |
D | net_stats.h | 483 static inline void net_stats_update_tc_sent_pkt(struct net_if *iface, uint8_t tc) in net_stats_update_tc_sent_pkt() argument 485 UPDATE_STAT(iface, stats.tc.sent[tc].pkts++); in net_stats_update_tc_sent_pkt() 489 uint8_t tc, size_t bytes) in net_stats_update_tc_sent_bytes() argument 491 UPDATE_STAT(iface, stats.tc.sent[tc].bytes += bytes); in net_stats_update_tc_sent_bytes() 495 uint8_t tc, uint8_t priority) in net_stats_update_tc_sent_priority() argument 497 UPDATE_STAT(iface, stats.tc.sent[tc].priority = priority); in net_stats_update_tc_sent_priority() 508 int tc = net_tx_priority2tc(priority); in net_stats_update_tc_tx_time() local 510 UPDATE_STAT(iface, stats.tc.sent[tc].tx_time.sum += in net_stats_update_tc_tx_time() 512 UPDATE_STAT(iface, stats.tc.sent[tc].tx_time.count += 1); in net_stats_update_tc_tx_time() 517 #define net_stats_update_tc_tx_time(iface, tc, start_time, end_time) argument [all …]
|
D | net_tc.c | 50 bool net_tc_submit_to_tx_queue(uint8_t tc, struct net_pkt *pkt) in net_tc_submit_to_tx_queue() argument 55 submit_to_queue(&tx_classes[tc].fifo, pkt); in net_tc_submit_to_tx_queue() 57 ARG_UNUSED(tc); in net_tc_submit_to_tx_queue() 63 void net_tc_submit_to_rx_queue(uint8_t tc, struct net_pkt *pkt) in net_tc_submit_to_rx_queue() argument 68 submit_to_queue(&rx_classes[tc].fifo, pkt); in net_tc_submit_to_rx_queue() 70 ARG_UNUSED(tc); in net_tc_submit_to_rx_queue() 129 static uint8_t tx_tc2thread(uint8_t tc) in tx_tc2thread() argument 170 NET_ASSERT(tc < ARRAY_SIZE(thread_priorities)); in tx_tc2thread() 172 return thread_priorities[tc]; in tx_tc2thread() 178 static uint8_t rx_tc2thread(uint8_t tc) in rx_tc2thread() argument [all …]
|
D | ipv6.h | 528 static inline uint8_t net_ipv6_get_dscp(uint8_t tc) in net_ipv6_get_dscp() argument 530 return (tc & NET_IPV6_DSCP_MASK) >> NET_IPV6_DSCP_OFFSET; in net_ipv6_get_dscp() 539 static inline void net_ipv6_set_dscp(uint8_t *tc, uint8_t dscp) in net_ipv6_set_dscp() argument 541 *tc &= ~NET_IPV6_DSCP_MASK; in net_ipv6_set_dscp() 542 *tc |= (dscp << NET_IPV6_DSCP_OFFSET) & NET_IPV6_DSCP_MASK; in net_ipv6_set_dscp() 562 static inline uint8_t net_ipv6_get_ecn(uint8_t tc) in net_ipv6_get_ecn() argument 564 return tc & NET_IPV6_ECN_MASK; in net_ipv6_get_ecn() 573 static inline void net_ipv6_set_ecn(uint8_t *tc, uint8_t ecn) in net_ipv6_set_ecn() argument 575 *tc &= ~NET_IPV6_ECN_MASK; in net_ipv6_set_ecn() 576 *tc |= ecn & NET_IPV6_ECN_MASK; in net_ipv6_set_ecn()
|
/Zephyr-latest/drivers/sensor/qdec_sam/ |
D | qdec_sam.c | 42 Tc *const tc = dev_cfg->regs; in qdec_sam_fetch() local 43 TcChannel *tc_ch0 = &tc->TcChannel[0]; in qdec_sam_fetch() 66 static void qdec_sam_start(Tc *const tc) in qdec_sam_start() argument 68 TcChannel *tc_ch0 = &tc->TcChannel[0]; in qdec_sam_start() 78 Tc *const tc = dev_cfg->regs; in qdec_sam_configure() local 79 TcChannel *tc_ch0 = &tc->TcChannel[0]; in qdec_sam_configure() 87 tc->TC_BMR = TC_BMR_QDEN in qdec_sam_configure() 92 qdec_sam_start(tc); in qdec_sam_configure()
|
/Zephyr-latest/scripts/pylib/twister/twisterlib/ |
D | harness.py | 189 tc = self.instance.get_case_or_create(self.id) 190 tc.status = TwisterStatus.PASS 257 tc = self.instance.set_case_status_by_name( 262 raise ConfigurationError(self.instance.name, tc.reason) 273 tc = self.instance.set_case_status_by_name( 278 raise ConfigurationError(self.instance.name, tc.reason) 343 tc = self.instance.get_case_or_create(self.get_testcase_name()) 345 tc.status = TwisterStatus.PASS 347 tc.status = TwisterStatus.FAIL 602 tc = self.instance.add_testcase(f"{self.id}.{elem_tc.get('name')}") [all …]
|
D | testinstance.py | 180 tc = self.get_case_or_create(name) 181 tc.status = status 183 tc.reason = reason 184 return tc 187 tc = TestCase(name=name) 188 tc.freeform = freeform 189 self.testcases.append(tc) 190 return tc 204 tc = TestCase(name=name) 205 self.testcases.append(tc) [all …]
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | stats.c | 164 tc.sent[i].tx_time_detail[j].count); in get_net_pkt_tc_stats_detail() 169 tc.recv[i].rx_time_detail[j].count); in get_net_pkt_tc_stats_detail() 180 tc.sent[i].tx_time_detail[j].sum) / in get_net_pkt_tc_stats_detail() 186 tc.recv[i].rx_time_detail[j].sum) / in get_net_pkt_tc_stats_detail() 316 tc.sent[i].tx_time.count); in print_tc_tx_stats() 319 priority2str(GET_STAT(iface, tc.sent[i].priority)), in print_tc_tx_stats() 320 GET_STAT(iface, tc.sent[i].priority), in print_tc_tx_stats() 321 GET_STAT(iface, tc.sent[i].pkts), in print_tc_tx_stats() 322 GET_STAT(iface, tc.sent[i].bytes)); in print_tc_tx_stats() 325 priority2str(GET_STAT(iface, tc.sent[i].priority)), in print_tc_tx_stats() [all …]
|
/Zephyr-latest/scripts/tests/twister_blackbox/ |
D | test_testplan.py | 78 (ts['platform'], ts['name'], tc['identifier']) \ 80 for tc in ts['testcases'] if 'reason' not in tc 110 (ts['platform'], ts['name'], tc['identifier']) \ 112 for tc in ts['testcases'] if 'reason' not in tc 143 (ts['platform'], ts['name'], tc['identifier']) \ 145 for tc in ts['testcases'] if 'reason' not in tc
|
D | test_config.py | 52 (ts['platform'], ts['name'], tc['identifier']) \ 54 for tc in ts['testcases'] if 'reason' not in tc 88 (ts['platform'], ts['name'], tc['identifier']) \ 90 for tc in ts['testcases'] if 'reason' not in tc
|
D | test_filter.py | 117 (ts['platform'], ts['name'], tc['identifier']) \ 119 for tc in ts['testcases'] if 'reason' not in tc 145 (ts['platform'], ts['name'], tc['identifier']) \ 147 for tc in ts['testcases'] if 'reason' not in tc 173 (ts['platform'], ts['name'], tc['identifier']) \ 175 for tc in ts['testcases'] if 'reason' not in tc 274 (ts['platform'], ts['name'], tc['identifier']) \ 276 for tc in ts['testcases'] if 'reason' not in tc
|
D | test_testlist.py | 70 (ts['platform'], ts['name'], tc['identifier']) \ 72 for tc in ts['testcases'] if 'reason' not in tc
|
/Zephyr-latest/dts/arm/atmel/ |
D | samd20.dtsi | 11 tc-0 = &tc0; 12 tc-2 = &tc2; 13 tc-6 = &tc6; 17 tc0: tc@42002000 { 26 tc2: tc@42002800 { 35 tc6: tc@42003800 {
|
/Zephyr-latest/scripts/tests/twister/pytest_integration/ |
D | test_harness_pytest.py | 186 for tc in testinstance.testcases: 187 assert tc.status == "passed" 216 for tc in testinstance.testcases: 217 assert tc.status == "failed" 218 assert tc.output 219 assert tc.reason 252 for tc in testinstance.testcases: 253 assert tc.status == "skipped"
|
/Zephyr-latest/scripts/tests/twister/ |
D | test_testinstance.py | 298 tcc.name == tc.name and tcc.freeform == tc.freeform \ 301 ) for tc in testsuite.testcases 371 tc = testinstance.set_case_status_by_name(name, status, reason) 373 assert tc.name == name 374 assert tc.status == status 375 assert tc.reason == reason 377 tc = testinstance.set_case_status_by_name(name, status, None) 379 assert tc.reason == reason 387 tc = testinstance.add_testcase(name, freeform) 389 assert tc in testinstance.testcases [all …]
|
/Zephyr-latest/doc/develop/test/twister/ |
D | sample_blackbox_test.py | 80 (ts["platform"], ts["name"], tc["identifier"]) 82 for tc in ts["testcases"] 83 if "reason" not in tc
|