Home
last modified time | relevance | path

Searched refs:tc (Results 1 – 25 of 72) sorted by relevance

123

/Zephyr-latest/scripts/west_commands/tests/
Dtest_stm32cubeprogrammer.py467 check_call, require, path_exists, path_home, system, tc, runner_config argument
473 system.return_value = tc["system"]
477 port=tc["port"],
478 frequency=tc["frequency"],
479 reset_mode=tc["reset_mode"],
480 download_address=tc["download_address"],
481 download_modifiers=tc["download_modifiers"],
482 start_address=tc["start_address"],
483 start_modifiers=tc["start_modifiers"],
484 conn_modifiers=tc["conn_modifiers"],
[all …]
Dtest_xsdb.py48 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 …]
Dtest_dediprog.py41 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])]
Dtest_dfu_util.py65 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/subsys/usb/usb_c/
Dusbc_tc_snk_states.c24 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 …]
Dusbc_tc_src_states.c37 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 …]
Dusbc_tc_common.c25 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/drivers/counter/
Dcounter_sam0_tc32.c77 TcCount32 *tc = cfg->regs; in counter_sam0_tc32_start() local
83 tc->CTRLBSET.reg = TC_CTRLBSET_CMD_RETRIGGER; in counter_sam0_tc32_start()
84 wait_synchronization(tc); in counter_sam0_tc32_start()
91 TcCount32 *tc = cfg->regs; in counter_sam0_tc32_stop() local
99 tc->CTRLBSET.reg = TC_CTRLBSET_CMD_STOP; in counter_sam0_tc32_stop()
100 wait_synchronization(tc); in counter_sam0_tc32_stop()
107 TcCount32 *tc = cfg->regs; in counter_sam0_tc32_read() local
109 read_synchronize_count(tc); in counter_sam0_tc32_read()
110 return tc->COUNT.reg; in counter_sam0_tc32_read()
125 TcCount32 *tc = cfg->regs; in counter_sam0_tc32_relative_alarm() local
[all …]
Dcounter_sam_tc.c102 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/subsys/net/ip/
Dnet_stats.h483 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()
488 static inline void net_stats_update_tc_sent_dropped(struct net_if *iface, uint8_t tc) in net_stats_update_tc_sent_dropped() argument
490 UPDATE_STAT(iface, stats.tc.sent[tc].dropped++); in net_stats_update_tc_sent_dropped()
494 uint8_t tc, size_t bytes) in net_stats_update_tc_sent_bytes() argument
496 UPDATE_STAT(iface, stats.tc.sent[tc].bytes += bytes); in net_stats_update_tc_sent_bytes()
500 uint8_t tc, uint8_t priority) in net_stats_update_tc_sent_priority() argument
502 UPDATE_STAT(iface, stats.tc.sent[tc].priority = priority); in net_stats_update_tc_sent_priority()
513 int tc = net_tx_priority2tc(priority); in net_stats_update_tc_tx_time() local
515 UPDATE_STAT(iface, stats.tc.sent[tc].tx_time.sum += in net_stats_update_tc_tx_time()
[all …]
Dnet_tc.c68 enum net_verdict net_tc_try_submit_to_tx_queue(uint8_t tc, struct net_pkt *pkt, in net_tc_try_submit_to_tx_queue() argument
75 if (k_sem_take(&tx_classes[tc].fifo_slot, timeout) != 0) { in net_tc_try_submit_to_tx_queue()
80 k_fifo_put(&tx_classes[tc].fifo, pkt); in net_tc_try_submit_to_tx_queue()
83 ARG_UNUSED(tc); in net_tc_try_submit_to_tx_queue()
89 enum net_verdict net_tc_submit_to_rx_queue(uint8_t tc, struct net_pkt *pkt) in net_tc_submit_to_rx_queue() argument
98 while (k_sem_take(&rx_classes[tc].fifo_slot, K_NO_WAIT) != 0) { in net_tc_submit_to_rx_queue()
111 k_fifo_put(&rx_classes[tc].fifo, pkt); in net_tc_submit_to_rx_queue()
114 ARG_UNUSED(tc); in net_tc_submit_to_rx_queue()
174 static uint8_t tx_tc2thread(uint8_t tc) in tx_tc2thread() argument
215 NET_ASSERT(tc < ARRAY_SIZE(thread_priorities)); in tx_tc2thread()
[all …]
Dipv6.h528 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/tests/subsys/testsuite/fff_fake_contexts/src/
Dmain.c251 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/drivers/sensor/qdec_sam/
Dqdec_sam.c42 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/subsys/net/lib/shell/
Dstats.c164 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/pylib/twister/twisterlib/
Dharness.py203 tc = self.instance.get_case_or_create(self.id)
204 tc.status = TwisterStatus.PASS
271 tc = self.instance.set_case_status_by_name(
276 raise ConfigurationError(self.instance.name, tc.reason)
287 tc = self.instance.set_case_status_by_name(
292 raise ConfigurationError(self.instance.name, tc.reason)
357 tc = self.instance.get_case_or_create(self.get_testcase_name())
359 tc.status = TwisterStatus.PASS
361 tc.status = TwisterStatus.FAIL
614 tc = self.instance.add_testcase(f"{self.id}.{elem_tc.get('name')}")
[all …]
/Zephyr-latest/scripts/tests/twister_blackbox/
Dtest_testplan.py78 (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
Dtest_config.py52 (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
Dtest_filter.py117 (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
Dtest_testlist.py70 (ts['platform'], ts['name'], tc['identifier']) \
72 for tc in ts['testcases'] if 'reason' not in tc
/Zephyr-latest/scripts/tests/twister/pytest_integration/
Dtest_harness_pytest.py187 for tc in testinstance.testcases:
188 assert tc.status == "passed"
217 for tc in testinstance.testcases:
218 assert tc.status == "failed"
219 assert tc.output
220 assert tc.reason
253 for tc in testinstance.testcases:
254 assert tc.status == "skipped"
/Zephyr-latest/dts/arm/atmel/
Dsamd20.dtsi12 tc-0 = &tc0;
13 tc-2 = &tc2;
14 tc-6 = &tc6;
18 tc0: tc@42002000 {
29 tc2: tc@42002800 {
40 tc6: tc@42003800 {
Dsamx7x.dtsi67 tc0: tc@4000c000 {
68 compatible = "atmel,sam-tc";
79 compatible = "atmel,sam-tc-qdec";
84 tc1: tc@40010000 {
85 compatible = "atmel,sam-tc";
96 compatible = "atmel,sam-tc-qdec";
101 tc2: tc@40014000 {
102 compatible = "atmel,sam-tc";
113 compatible = "atmel,sam-tc-qdec";
248 tc3: tc@40054000 {
[all …]
/Zephyr-latest/scripts/tests/twister/
Dtest_testinstance.py298 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/
Dsample_blackbox_test.py80 (ts["platform"], ts["name"], tc["identifier"])
82 for tc in ts["testcases"]
83 if "reason" not in tc

123