Home
last modified time | relevance | path

Searched full:tc (Results 1 – 25 of 117) sorted by relevance

12345

/Zephyr-latest/drivers/counter/
Dcounter_sam0_tc32.c79 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 …]
Dcounter_sam_tc.c11 * @brief Atmel SAM MCU family counter (TC) driver.
14 * counter (on SAM4E series the counter is 32-bit). Remaining TC channels could
52 Tc *regs;
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
[all …]
DKconfig.sam5 bool "Atmel SAM MCU family counter (TC) driver"
10 Enable the Atmel SAM MCU family counter (TC) driver.
/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()
109 * @brief Checks if the TC Layer is in an Attached state
[all …]
Dusbc_tc_common_internal.h59 /** Number of TC States */
64 * @brief TC Layer State Machine Object
67 /** TC layer state machine context */
71 /** TC layer flags */
132 * @brief Run the TC Layer state machine. This is called from the subsystems
141 * @brief Checks if the TC Layer is in an Attached state
145 * @retval true if TC Layer is in an Attached state, else false
/Zephyr-latest/scripts/west_commands/tests/
Dtest_xsdb.py45 @pytest.mark.parametrize("tc", TEST_CASES)
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"])]
64 @pytest.mark.parametrize("tc", TEST_CASES)
67 def test_xsdbbinaryrunner_create(check_call, path_exists, tc, runner_config): argument
70 if tc["config"]:
71 args.extend(["--config", tc["config"]])
[all …]
Dtest_stm32cubeprogrammer.py382 @pytest.mark.parametrize("tc", TEST_CASES)
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"],
[all …]
Dtest_dediprog.py41 def id_fn(tc): argument
42 return 'spi_image={},vcc={}'.format(*tc)
44 @pytest.mark.parametrize('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])]
59 @pytest.mark.parametrize('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)
68 @pytest.mark.parametrize('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])]
95 @pytest.mark.parametrize('tc', [
111 def test_dfu_util_create(cc, req, gfa, find_device, tc, runner_config, tmpdir): argument
113 exe, alt, dfuse, modifiers, img = tc
Dtest_nrf.py46 # The keys are TC objects.
56 class TC(typing.NamedTuple): # 'TestCase' class
86 TC('NRF51_FAMILY', None, False, False, False, False, False):
92 TC('NRF51_FAMILY', None, False, False, False, True, False):
98 TC('NRF51_FAMILY', None, False, False, True, False, False):
104 TC('NRF51_FAMILY', None, False, True, False, False, False):
110 TC('NRF51_FAMILY', None, True, False, False, False, False):
117 TC('NRF51_FAMILY', None, True, True, True, True, False):
124 TC('NRF51_FAMILY', None, True, True, True, True, True):
135 TC('NRF52_FAMILY', None, False, False, False, False, False):
[all …]
/Zephyr-latest/drivers/sensor/qdec_sam/
Dqdec_sam.c10 * @brief Atmel SAM MCU family Quadrature Decoder (QDEC/TC) driver.
28 Tc *regs;
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()
[all …]
DKconfig1 # Atmel SAM MCU family Quadrature Decoder (TC) driver configuration options
14 Atmel SAM MCU family Quadrature Decoder (TC) driver.
/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()
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 …]
Dnet_tc.c50 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 …]
/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/dts/bindings/pwm/
Datmel,sam0-tc-pwm.yaml4 description: Atmel SAM0 TC in PWM mode
6 compatible: "atmel,sam0-tc-pwm"
29 description: Number of channels this TC has
36 description: Width of the TC counter in bits
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Dharness.py189 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 …]
/Zephyr-latest/dts/arm/atmel/
Dsamd20.dtsi11 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_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
/Zephyr-latest/drivers/crypto/
Dcrypto_tc_shim.c38 LOG_ERR("TC internal error during CBC encryption"); in do_cbc_encrypt()
57 LOG_ERR("TC needs contiguous iv and ciphertext"); in do_cbc_decrypt()
66 LOG_ERR("Func TC internal error during CBC decryption"); in do_cbc_decrypt()
91 LOG_ERR("TC internal error during CTR OP"); in do_ctr_op()
112 LOG_ERR("TC internal error during CCM encryption config"); in do_ccm_encrypt_mac()
119 LOG_ERR("TC internal error during CCM Encryption OP"); in do_ccm_encrypt_mac()
152 LOG_ERR("TC internal error during CCM decryption config"); in do_ccm_decrypt_auth()
161 LOG_ERR("TC needs contiguous hash at the end of inbuf"); in do_ccm_decrypt_auth()
170 LOG_ERR("TC internal error during CCM decryption OP"); in do_ccm_decrypt_auth()
204 LOG_ERR("TC Shim Unsupported algo"); in tc_session_setup()
[all …]
/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()
312 PR("TC Priority\tSent pkts\tbytes\ttime\n"); in print_tc_tx_stats()
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()
[all …]
/Zephyr-latest/dts/bindings/sensor/
Datmel,sam-tc-qdec.yaml3 description: Atmel SAM Timer Counter (TC) QDEC mode
5 compatible: "atmel,sam-tc-qdec"

12345