Home
last modified time | relevance | path

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

12345678910>>...18

/linux/drivers/ntb/test/
H A Dntb_tool.c208 struct tool_ctx *tc; member
233 struct tool_ctx *tc; member
239 struct tool_ctx *tc; member
244 struct tool_ctx *tc; member
291 struct tool_ctx *tc = ctx; in tool_link_event() local
296 up = ntb_link_is_up(tc->ntb, &speed, &width); in tool_link_event()
298 dev_dbg(&tc->ntb->dev, "link is %s speed %d width %d\n", in tool_link_event()
301 wake_up(&tc->link_wq); in tool_link_event()
306 struct tool_ctx *tc = ctx; in tool_db_event() local
309 db_mask = ntb_db_vector_mask(tc->ntb, vec); in tool_db_event()
[all …]
/linux/drivers/gpu/drm/bridge/
H A Dtc358767.c417 static inline int tc_poll_timeout(struct tc_data *tc, unsigned int addr, in tc_poll_timeout() argument
424 return regmap_read_poll_timeout(tc->regmap, addr, val, in tc_poll_timeout()
429 static int tc_aux_wait_busy(struct tc_data *tc) in tc_aux_wait_busy() argument
431 return tc_poll_timeout(tc, DP0_AUXSTATUS, AUX_BUSY, 0, 100, 100000); in tc_aux_wait_busy()
434 static int tc_aux_write_data(struct tc_data *tc, const void *data, in tc_aux_write_data() argument
442 ret = regmap_raw_write(tc->regmap, DP0_AUXWDATA(0), auxwdata, count); in tc_aux_write_data()
449 static int tc_aux_read_data(struct tc_data *tc, void *data, size_t size) in tc_aux_read_data() argument
454 ret = regmap_raw_read(tc->regmap, DP0_AUXRDATA(0), auxrdata, count); in tc_aux_read_data()
478 struct tc_data *tc = aux_to_tc(aux); in tc_aux_transfer() local
484 ret = tc_aux_wait_busy(tc); in tc_aux_transfer()
[all …]
/linux/kernel/time/
H A Dtimecounter.c8 void timecounter_init(struct timecounter *tc, in timecounter_init() argument
12 tc->cc = cc; in timecounter_init()
13 tc->cycle_last = cc->read(cc); in timecounter_init()
14 tc->nsec = start_tstamp; in timecounter_init()
15 tc->mask = (1ULL << cc->shift) - 1; in timecounter_init()
16 tc->frac = 0; in timecounter_init()
31 static u64 timecounter_read_delta(struct timecounter *tc) in timecounter_read_delta() argument
37 cycle_now = tc->cc->read(tc->cc); in timecounter_read_delta()
40 cycle_delta = (cycle_now - tc->cycle_last) & tc->cc->mask; in timecounter_read_delta()
43 ns_offset = cyclecounter_cyc2ns(tc->cc, cycle_delta, in timecounter_read_delta()
[all …]
/linux/drivers/md/
H A Ddm-thin.c226 typedef void (*process_bio_fn)(struct thin_c *tc, struct bio *bio);
227 typedef void (*process_cell_fn)(struct thin_c *tc, struct dm_bio_prison_cell *cell);
382 struct thin_c *tc; member
388 static void begin_discard(struct discard_op *op, struct thin_c *tc, struct bio *parent) in begin_discard() argument
392 op->tc = tc; in begin_discard()
400 struct thin_c *tc = op->tc; in issue_discard() local
401 sector_t s = block_to_sectors(tc->pool, data_b); in issue_discard()
402 sector_t len = block_to_sectors(tc->pool, data_e - data_b); in issue_discard()
404 __blkdev_issue_discard(tc->pool_dev->bdev, s, len, GFP_NOIO, &op->bio); in issue_discard()
587 struct thin_c *tc; member
[all …]
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dtc_restrictions.sh44 tc qdisc add dev $swp1 ingress_block 22 clsact
47 tc filter add block 22 protocol ip pref 1 handle 101 flower \
51 tc qdisc add dev $swp2 ingress_block 22 clsact
54 tc qdisc del dev $swp2 clsact
56 tc qdisc add dev $swp2 egress_block 22 clsact
59 tc filter del block 22 protocol ip pref 1 handle 101 flower
61 tc qdisc add dev $swp2 egress_block 22 clsact
64 tc filter add block 22 protocol ip pref 1 handle 101 flower \
68 tc qdisc del dev $swp1 clsact
70 tc qdisc add dev $swp1 egress_block 22 clsact
[all …]
/linux/net/rds/
H A Dtcp.c93 u32 rds_tcp_write_seq(struct rds_tcp_connection *tc) in rds_tcp_write_seq() argument
96 return tcp_sk(tc->t_sock->sk)->write_seq; in rds_tcp_write_seq()
99 u32 rds_tcp_snd_una(struct rds_tcp_connection *tc) in rds_tcp_snd_una() argument
101 return tcp_sk(tc->t_sock->sk)->snd_una; in rds_tcp_snd_una()
105 struct rds_tcp_connection *tc) in rds_tcp_restore_callbacks() argument
107 rdsdebug("restoring sock %p callbacks from tc %p\n", sock, tc); in rds_tcp_restore_callbacks()
112 list_del_init(&tc->t_list_item); in rds_tcp_restore_callbacks()
116 if (!tc->t_cpath->cp_conn->c_isv6) in rds_tcp_restore_callbacks()
120 tc->t_sock = NULL; in rds_tcp_restore_callbacks()
122 sock->sk->sk_write_space = tc->t_orig_write_space; in rds_tcp_restore_callbacks()
[all …]
H A Dtcp_recv.c160 struct rds_tcp_connection *tc = cp->cp_transport_data; in rds_tcp_data_recv() local
161 struct rds_tcp_incoming *tinc = tc->t_tinc; in rds_tcp_data_recv()
165 rdsdebug("tcp data tc %p skb %p offset %u len %zu\n", tc, skb, offset, in rds_tcp_data_recv()
180 tc->t_tinc = tinc; in rds_tcp_data_recv()
194 if (left && tc->t_tinc_hdr_rem) { in rds_tcp_data_recv()
195 to_copy = min(tc->t_tinc_hdr_rem, left); in rds_tcp_data_recv()
201 tc->t_tinc_hdr_rem, in rds_tcp_data_recv()
203 tc->t_tinc_hdr_rem -= to_copy; in rds_tcp_data_recv()
207 if (tc->t_tinc_hdr_rem == 0) { in rds_tcp_data_recv()
209 tc->t_tinc_data_rem = in rds_tcp_data_recv()
[all …]
H A Dtcp_send.c43 struct rds_tcp_connection *tc = cp->cp_transport_data; in rds_tcp_xmit_path_prepare() local
45 tcp_sock_set_cork(tc->t_sock->sk, true); in rds_tcp_xmit_path_prepare()
50 struct rds_tcp_connection *tc = cp->cp_transport_data; in rds_tcp_xmit_path_complete() local
52 tcp_sock_set_cork(tc->t_sock->sk, false); in rds_tcp_xmit_path_complete()
74 struct rds_tcp_connection *tc = cp->cp_transport_data; in rds_tcp_xmit() local
85 tc->t_last_sent_nxt = rds_tcp_write_seq(tc); in rds_tcp_xmit()
86 rm->m_ack_seq = tc->t_last_sent_nxt + in rds_tcp_xmit()
91 tc->t_last_expected_una = rm->m_ack_seq + 1; in rds_tcp_xmit()
97 rm, rds_tcp_write_seq(tc), in rds_tcp_xmit()
103 set_bit(SOCK_NOSPACE, &tc->t_sock->sk->sk_socket->flags); in rds_tcp_xmit()
[all …]
H A Dtcp_connect.c44 struct rds_tcp_connection *tc; in rds_tcp_state_change() local
52 tc = cp->cp_transport_data; in rds_tcp_state_change()
53 state_change = tc->t_orig_state_change; in rds_tcp_state_change()
55 rdsdebug("sock %p state_change to %d\n", tc->t_sock, sk->sk_state); in rds_tcp_state_change()
100 struct rds_tcp_connection *tc = cp->cp_transport_data; in rds_tcp_conn_path_connect() local
108 mutex_lock(&tc->t_conn_path_lock); in rds_tcp_conn_path_connect()
111 mutex_unlock(&tc->t_conn_path_lock); in rds_tcp_conn_path_connect()
189 mutex_unlock(&tc->t_conn_path_lock); in rds_tcp_conn_path_connect()
206 struct rds_tcp_connection *tc = cp->cp_transport_data; in rds_tcp_conn_path_shutdown() local
207 struct socket *sock = tc in rds_tcp_conn_path_shutdown()
[all...]
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_dcb.c165 int tc; in ixgbe_dcb_unpack_pfc() local
167 for (*pfc_en = 0, tc = 0; tc < MAX_TRAFFIC_CLASS; tc++) { in ixgbe_dcb_unpack_pfc()
168 if (tc_config[tc].dcb_pfc != pfc_disabled) in ixgbe_dcb_unpack_pfc()
169 *pfc_en |= BIT(tc); in ixgbe_dcb_unpack_pfc()
177 int tc; in ixgbe_dcb_unpack_refill() local
179 for (tc = 0; tc < MAX_TRAFFIC_CLASS; tc++) in ixgbe_dcb_unpack_refill()
180 refill[tc] = tc_config[tc].path[direction].data_credits_refill; in ixgbe_dcb_unpack_refill()
186 int tc; in ixgbe_dcb_unpack_max() local
188 for (tc = 0; tc < MAX_TRAFFIC_CLASS; tc++) in ixgbe_dcb_unpack_max()
189 max[tc] = tc_config[tc].desc_credits_max; in ixgbe_dcb_unpack_max()
[all …]
/linux/tools/testing/selftests/net/forwarding/
H A Dtc_flower.sh29 tc qdisc add dev $h2 clsact
34 tc qdisc del dev $h2 clsact
44 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
46 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
58 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
59 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
70 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
72 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
84 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
85 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
[all …]
H A Dtc_actions.sh20 tc qdisc add dev $h1 clsact
25 tc qdisc del dev $h1 clsact
32 tc qdisc add dev $h2 clsact
37 tc qdisc del dev $h2 clsact
44 tc qdisc add dev $swp1 clsact
53 tc qdisc del dev $swp1 clsact
66 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
75 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
85 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \
87 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
[all …]
H A Dtc_chains.sh25 tc qdisc add dev $h2 clsact
30 tc qdisc del dev $h2 clsact
38 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
47 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
57 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
59 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
61 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
76 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
77 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
78 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
[all …]
H A Drouter_multicast.sh46 tc qdisc add dev $h1 ingress
51 tc qdisc del dev $h1 ingress
72 tc qdisc add dev $h2 ingress
77 tc qdisc del dev $h2 ingress
98 tc qdisc add dev $h3 ingress
103 tc qdisc del dev $h3 ingress
128 tc qdisc add dev $rp3 ingress
133 tc qdisc del dev $rp3 ingress
217 tc filter add dev $h2 ingress protocol ip pref 1 handle 122 flower \
219 tc filter add dev $h3 ingress protocol ip pref 1 handle 133 flower \
[all …]
/linux/arch/mips/kernel/
H A Dsmp-mt.c46 static unsigned int __init smvp_vpe_init(unsigned int tc, unsigned int mvpconf0, in smvp_vpe_init() argument
49 if (tc >= smp_max_threads || in smvp_vpe_init()
50 (tc > ((mvpconf0 & MVPCONF0_PVPE) >> MVPCONF0_PVPE_SHIFT))) in smvp_vpe_init()
54 if (tc != 0) { in smvp_vpe_init()
64 set_cpu_possible(tc, true); in smvp_vpe_init()
65 set_cpu_present(tc, true); in smvp_vpe_init()
66 __cpu_number_map[tc] = ++ncpu; in smvp_vpe_init()
67 __cpu_logical_map[ncpu] = tc; in smvp_vpe_init()
73 if (tc != 0) in smvp_vpe_init()
76 cpu_set_vpe_id(&cpu_data[ncpu], tc); in smvp_vpe_init()
[all …]
H A Dvpe-mt.c31 struct tc *t; in vpe_run()
46 if (list_empty(&v->tc)) { in vpe_run()
57 t = list_first_entry(&v->tc, struct tc, tc); in vpe_run()
146 void cleanup_tc(struct tc *tc) in cleanup_tc() argument
158 settc(tc->index); in cleanup_tc()
208 struct tc *t; in vpe_stop()
213 t = list_entry(v->tc.next, struct tc, tc); in vpe_stop()
229 struct tc *t; in vpe_free()
232 t = list_entry(v->tc.next, struct tc, tc); in vpe_free()
330 struct tc *t; in vpe_module_init()
[all …]
/linux/lib/tests/
H A Dffs_kunit.c212 const struct ffs_test_case *tc = &basic_test_cases[i]; in ffs_basic_correctness_test() local
215 validate_ffs_result(test, tc->input, ffs(tc->input), in ffs_basic_correctness_test()
216 tc->expected_ffs, "ffs", tc->description); in ffs_basic_correctness_test()
219 validate_ffs_result(test, tc->input, fls(tc->input), in ffs_basic_correctness_test()
220 tc->expected_fls, "fls", tc->description); in ffs_basic_correctness_test()
223 if (tc->input != 0) { in ffs_basic_correctness_test()
225 unsigned int expected_ffs_0based = tc->expected_ffs - 1; in ffs_basic_correctness_test()
226 validate_ffs_result(test, tc->input, __ffs(tc->input), in ffs_basic_correctness_test()
227 expected_ffs_0based, "__ffs", tc->description); in ffs_basic_correctness_test()
231 if (tc->input != 0) { in ffs_basic_correctness_test()
[all …]
/linux/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
H A Dtc_flower.sh35 tc qdisc add dev $h2 clsact
40 tc qdisc del dev $h2 clsact
101 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
110 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
125 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
133 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
147 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
149 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
158 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
166 tc filter add dev $h2 ingress protocol ip pref 3 handle 103 flower \
[all …]
/linux/drivers/clocksource/
H A Dtimer-atmel-tcb.c256 static int __init setup_clkevents(struct atmel_tc *tc, int divisor_idx) in setup_clkevents() argument
259 struct clk *t2_clk = tc->clk[2]; in setup_clkevents()
260 int irq = tc->irq[2]; in setup_clkevents()
261 int bits = tc->tcb_config->counter_width; in setup_clkevents()
268 clkevt.regs = tc->regs; in setup_clkevents()
275 ret = clk_prepare_enable(tc->slow_clk); in setup_clkevents()
281 clkevt.rate = clk_get_rate(tc->slow_clk); in setup_clkevents()
293 clk_disable_unprepare(tc->slow_clk); in setup_clkevents()
304 static int __init setup_clkevents(struct atmel_tc *tc, int divisor_idx) in setup_clkevents() argument
312 static void __init tcb_setup_dual_chan(struct atmel_tc *tc, int mck_divisor_idx) in tcb_setup_dual_chan() argument
[all …]
/linux/drivers/net/ethernet/sfc/
H A Dtc.c133 old = rhashtable_lookup_get_insert_fast(&efx->tc->mac_ht, in efx_tc_flower_get_mac()
157 rhashtable_remove_fast(&efx->tc->mac_ht, &ped->linkage, in efx_tc_flower_get_mac()
168 rhashtable_remove_fast(&efx->tc->mac_ht, &ped->linkage, in efx_tc_flower_put_mac()
482 rhashtable_remove_fast(&efx->tc->encap_match_ht, &encap->linkage, in efx_tc_flower_release_encap_match()
595 old = rhashtable_lookup_get_insert_fast(&efx->tc->encap_match_ht, in efx_tc_flower_record_encap_match()
681 rhashtable_remove_fast(&efx->tc->encap_match_ht, &encap->linkage, in efx_tc_flower_record_encap_match()
706 old = rhashtable_lookup_get_insert_fast(&efx->tc->recirc_ht, in efx_tc_get_recirc_id()
719 rc = ida_alloc_range(&efx->tc->recirc_ida, 1, U8_MAX, GFP_USER); in efx_tc_get_recirc_id()
721 rhashtable_remove_fast(&efx->tc->recirc_ht, in efx_tc_get_recirc_id()
737 rhashtable_remove_fast(&efx->tc->recirc_ht, &rid->linkage, in efx_tc_put_recirc_id()
[all …]
/linux/drivers/hwtracing/coresight/
H A Dcoresight-cti-core.c250 struct cti_trig_con *tc, in cti_add_connection_entry() argument
256 tc->con_dev = csdev; in cti_add_connection_entry()
262 tc->con_dev_name = dev_name(&csdev->dev); in cti_add_connection_entry()
264 tc->con_dev_name = devm_kstrdup(dev, in cti_add_connection_entry()
266 if (!tc->con_dev_name) in cti_add_connection_entry()
269 list_add_tail(&tc->node, &cti_dev->trig_cons); in cti_add_connection_entry()
273 drvdata->config.trig_in_use |= tc->con_in->used_mask; in cti_add_connection_entry()
274 drvdata->config.trig_out_use |= tc->con_out->used_mask; in cti_add_connection_entry()
283 struct cti_trig_con *tc = NULL; in cti_allocate_trig_con() local
286 tc = devm_kzalloc(dev, sizeof(struct cti_trig_con), GFP_KERNEL); in cti_allocate_trig_con()
[all …]
H A Dcoresight-cti-platform.c121 struct cti_trig_con *tc = NULL; in cti_plat_create_v8_etm_connection() local
133 tc = cti_allocate_trig_con(dev, NR_V8ETM_INOUT_SIGS, in cti_plat_create_v8_etm_connection()
135 if (!tc) in cti_plat_create_v8_etm_connection()
139 tc->con_in->used_mask = 0xF0; /* sigs <4,5,6,7> */ in cti_plat_create_v8_etm_connection()
140 tc->con_out->used_mask = 0xF0; /* sigs <4,5,6,7> */ in cti_plat_create_v8_etm_connection()
147 tc->con_in->sig_types[i] = ETM_EXTOUT; in cti_plat_create_v8_etm_connection()
148 tc->con_out->sig_types[i] = ETM_EXTIN; in cti_plat_create_v8_etm_connection()
162 ret = cti_add_connection_entry(dev, drvdata, tc, csdev, assoc_name); in cti_plat_create_v8_etm_connection()
177 struct cti_trig_con *tc = NULL; in cti_plat_create_v8_connections() local
192 tc = cti_allocate_trig_con(dev, NR_V8PE_IN_SIGS, NR_V8PE_OUT_SIGS); in cti_plat_create_v8_connections()
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
H A Dhw_atl2.c116 unsigned int tc, q; in hw_atl2_hw_queue_to_tc_map_set() local
135 for (tc = 0; tc != tcs; tc++) { in hw_atl2_hw_queue_to_tc_map_set()
136 unsigned int tc_q_offset = tc * q_per_tc; in hw_atl2_hw_queue_to_tc_map_set()
139 rx_map |= tc << HW_ATL2_RX_Q_TC_MAP_SHIFT(q); in hw_atl2_hw_queue_to_tc_map_set()
148 tx_map |= tc << HW_ATL2_TX_Q_TC_MAP_SHIFT(q); in hw_atl2_hw_queue_to_tc_map_set()
168 u32 tc = 0U; in hw_atl2_hw_qos_set() local
179 for (tc = 0; tc < cfg->tcs; tc++) { in hw_atl2_hw_qos_set()
183 hw_atl_tpb_tx_pkt_buff_size_per_tc_set(self, tx_buff_size, tc); in hw_atl2_hw_qos_set()
186 hw_atl_tpb_tx_buff_hi_threshold_per_tc_set(self, threshold, tc); in hw_atl2_hw_qos_set()
189 hw_atl_tpb_tx_buff_lo_threshold_per_tc_set(self, threshold, tc); in hw_atl2_hw_qos_set()
[all …]
/linux/net/sched/
H A Dsch_mqprio_lib.c105 int tc, num_tc = netdev_get_num_tc(dev); in mqprio_qopt_reconstruct() local
110 for (tc = 0; tc < num_tc; tc++) { in mqprio_qopt_reconstruct()
111 qopt->count[tc] = dev->tc_to_txq[tc].count; in mqprio_qopt_reconstruct()
112 qopt->offset[tc] = dev->tc_to_txq[tc].offset; in mqprio_qopt_reconstruct()
121 int tc; in mqprio_fp_to_offload() local
123 for (tc = 0; tc < TC_QOPT_MAX_QUEUE; tc++) in mqprio_fp_to_offload()
124 if (fp[tc] == TC_FP_PREEMPTIBLE) in mqprio_fp_to_offload()
125 preemptible_tcs |= BIT(tc); in mqprio_fp_to_offload()
H A Dsch_taprio.c125 int tc; in taprio_calculate_gate_durations() local
140 for (tc = 0; tc < num_tc; tc++) { in taprio_calculate_gate_durations()
141 if (!(gates_still_open & BIT(tc))) in taprio_calculate_gate_durations()
144 if (cur->gate_mask & BIT(tc)) in taprio_calculate_gate_durations()
145 entry->gate_duration[tc] += cur->interval; in taprio_calculate_gate_durations()
147 gates_still_open &= ~BIT(tc); in taprio_calculate_gate_durations()
157 for (tc = 0; tc < num_t in taprio_calculate_gate_durations()
165 taprio_entry_allows_tx(ktime_t skb_end_time,struct sched_entry * entry,int tc) taprio_entry_allows_tx() argument
280 int tc; taprio_update_queue_max_sdu() local
339 int tc, n; find_entry_to_transmit() local
548 u8 tc; taprio_skb_exceeds_queue_max_sdu() local
667 int tc, budget; taprio_set_budgets() local
685 int tc, budget, new_budget = 0; taprio_update_budgets() local
717 u8 tc; taprio_dequeue_from_txq() local
762 taprio_next_tc_txq(struct net_device * dev,int tc,int * txq) taprio_next_tc_txq() argument
783 int tc; taprio_dequeue_tc_priority() local
927 int tc; advance_sched() local
1246 int tc; setup_first_end_time() local
1522 int tc, err = 0; taprio_enable_offload() local
1708 int err, tc; taprio_parse_tc_entry() local
1757 int tc, rem; taprio_parse_tc_entries() local
2067 int i, tc; taprio_init() local
2287 int tc; taprio_dump_tc_entries() local
[all...]

12345678910>>...18