Home
last modified time | relevance | path

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

12345678910>>...13

/Linux-v4.19/drivers/ntb/test/
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-v4.19/drivers/gpu/drm/bridge/
Dtc358767.c234 ret = regmap_write(tc->regmap, reg, var); \
240 ret = regmap_read(tc->regmap, reg, var); \
270 static int tc_aux_wait_busy(struct tc_data *tc, unsigned int timeout_ms) in tc_aux_wait_busy() argument
272 return tc_poll_timeout(tc->regmap, DP0_AUXSTATUS, AUX_BUSY, 0, in tc_aux_wait_busy()
276 static int tc_aux_get_status(struct tc_data *tc, u8 *reply) in tc_aux_get_status() argument
281 ret = regmap_read(tc->regmap, DP0_AUXSTATUS, &value); in tc_aux_get_status()
286 dev_err(tc->dev, "i2c access timeout!\n"); in tc_aux_get_status()
299 struct tc_data *tc = aux_to_tc(aux); in tc_aux_transfer() local
310 ret = tc_aux_wait_busy(tc, 100); in tc_aux_transfer()
337 ret = tc_aux_wait_busy(tc, 100); in tc_aux_transfer()
[all …]
/Linux-v4.19/drivers/misc/
Datmel_tclib.c45 struct atmel_tc *tc; in atmel_tc_alloc() local
49 list_for_each_entry(tc, &tc_list, node) { in atmel_tc_alloc()
50 if (tc->allocated) in atmel_tc_alloc()
53 if ((tc->pdev->dev.of_node && tc->id == block) || in atmel_tc_alloc()
54 (tc->pdev->id == block)) { in atmel_tc_alloc()
55 pdev = tc->pdev; in atmel_tc_alloc()
56 tc->allocated = true; in atmel_tc_alloc()
62 return pdev ? tc : NULL; in atmel_tc_alloc()
73 void atmel_tc_free(struct atmel_tc *tc) in atmel_tc_free() argument
76 if (tc->allocated) in atmel_tc_free()
[all …]
/Linux-v4.19/kernel/time/
Dtimecounter.c21 void timecounter_init(struct timecounter *tc, in timecounter_init() argument
25 tc->cc = cc; in timecounter_init()
26 tc->cycle_last = cc->read(cc); in timecounter_init()
27 tc->nsec = start_tstamp; in timecounter_init()
28 tc->mask = (1ULL << cc->shift) - 1; in timecounter_init()
29 tc->frac = 0; in timecounter_init()
44 static u64 timecounter_read_delta(struct timecounter *tc) in timecounter_read_delta() argument
50 cycle_now = tc->cc->read(tc->cc); in timecounter_read_delta()
53 cycle_delta = (cycle_now - tc->cycle_last) & tc->cc->mask; in timecounter_read_delta()
56 ns_offset = cyclecounter_cyc2ns(tc->cc, cycle_delta, in timecounter_read_delta()
[all …]
/Linux-v4.19/net/rds/
Dtcp.c102 u32 rds_tcp_write_seq(struct rds_tcp_connection *tc) in rds_tcp_write_seq() argument
105 return tcp_sk(tc->t_sock->sk)->write_seq; in rds_tcp_write_seq()
108 u32 rds_tcp_snd_una(struct rds_tcp_connection *tc) in rds_tcp_snd_una() argument
110 return tcp_sk(tc->t_sock->sk)->snd_una; in rds_tcp_snd_una()
114 struct rds_tcp_connection *tc) in rds_tcp_restore_callbacks() argument
116 rdsdebug("restoring sock %p callbacks from tc %p\n", sock, tc); in rds_tcp_restore_callbacks()
121 list_del_init(&tc->t_list_item); in rds_tcp_restore_callbacks()
125 if (!tc->t_cpath->cp_conn->c_isv6) in rds_tcp_restore_callbacks()
129 tc->t_sock = NULL; in rds_tcp_restore_callbacks()
131 sock->sk->sk_write_space = tc->t_orig_write_space; in rds_tcp_restore_callbacks()
[all …]
Dtcp_send.c48 struct rds_tcp_connection *tc = cp->cp_transport_data; in rds_tcp_xmit_path_prepare() local
50 rds_tcp_cork(tc->t_sock, 1); in rds_tcp_xmit_path_prepare()
55 struct rds_tcp_connection *tc = cp->cp_transport_data; in rds_tcp_xmit_path_complete() local
57 rds_tcp_cork(tc->t_sock, 0); in rds_tcp_xmit_path_complete()
79 struct rds_tcp_connection *tc = cp->cp_transport_data; in rds_tcp_xmit() local
89 tc->t_last_sent_nxt = rds_tcp_write_seq(tc); in rds_tcp_xmit()
90 rm->m_ack_seq = tc->t_last_sent_nxt + in rds_tcp_xmit()
95 tc->t_last_expected_una = rm->m_ack_seq + 1; in rds_tcp_xmit()
101 rm, rds_tcp_write_seq(tc), in rds_tcp_xmit()
107 set_bit(SOCK_NOSPACE, &tc->t_sock->sk->sk_socket->flags); in rds_tcp_xmit()
[all …]
Dtcp_recv.c159 struct rds_tcp_connection *tc = cp->cp_transport_data; in rds_tcp_data_recv() local
160 struct rds_tcp_incoming *tinc = tc->t_tinc; in rds_tcp_data_recv()
164 rdsdebug("tcp data tc %p skb %p offset %u len %zu\n", tc, skb, offset, in rds_tcp_data_recv()
179 tc->t_tinc = tinc; in rds_tcp_data_recv()
193 if (left && tc->t_tinc_hdr_rem) { in rds_tcp_data_recv()
194 to_copy = min(tc->t_tinc_hdr_rem, left); in rds_tcp_data_recv()
200 tc->t_tinc_hdr_rem, in rds_tcp_data_recv()
202 tc->t_tinc_hdr_rem -= to_copy; in rds_tcp_data_recv()
206 if (tc->t_tinc_hdr_rem == 0) { in rds_tcp_data_recv()
208 tc->t_tinc_data_rem = in rds_tcp_data_recv()
[all …]
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()
99 struct rds_tcp_connection *tc = cp->cp_transport_data; in rds_tcp_conn_path_connect() local
107 mutex_lock(&tc->t_conn_path_lock); in rds_tcp_conn_path_connect()
110 mutex_unlock(&tc->t_conn_path_lock); in rds_tcp_conn_path_connect()
185 mutex_unlock(&tc->t_conn_path_lock); in rds_tcp_conn_path_connect()
202 struct rds_tcp_connection *tc = cp->cp_transport_data; in rds_tcp_conn_path_shutdown() local
203 struct socket *sock = tc->t_sock; in rds_tcp_conn_path_shutdown()
[all …]
/Linux-v4.19/drivers/md/
Ddm-thin.c223 typedef void (*process_bio_fn)(struct thin_c *tc, struct bio *bio);
224 typedef void (*process_cell_fn)(struct thin_c *tc, struct dm_bio_prison_cell *cell);
349 struct thin_c *tc; member
355 static void begin_discard(struct discard_op *op, struct thin_c *tc, struct bio *parent) in begin_discard() argument
359 op->tc = tc; in begin_discard()
367 struct thin_c *tc = op->tc; in issue_discard() local
368 sector_t s = block_to_sectors(tc->pool, data_b); in issue_discard()
369 sector_t len = block_to_sectors(tc->pool, data_e - data_b); in issue_discard()
371 return __blkdev_issue_discard(tc->pool_dev->bdev, s, len, in issue_discard()
554 struct thin_c *tc; member
[all …]
Ddm-snap-transient.c42 struct transient_c *tc = store->context; in transient_prepare_exception() local
45 if (size < (tc->next_free + store->chunk_size)) in transient_prepare_exception()
48 e->new_chunk = sector_to_chunk(store, tc->next_free); in transient_prepare_exception()
49 tc->next_free += store->chunk_size; in transient_prepare_exception()
75 struct transient_c *tc; in transient_ctr() local
77 tc = kmalloc(sizeof(struct transient_c), GFP_KERNEL); in transient_ctr()
78 if (!tc) in transient_ctr()
81 tc->next_free = 0; in transient_ctr()
82 store->context = tc; in transient_ctr()
/Linux-v4.19/tools/perf/util/
Dtsc.c7 u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc) in perf_time_to_tsc() argument
11 t = ns - tc->time_zero; in perf_time_to_tsc()
12 quot = t / tc->time_mult; in perf_time_to_tsc()
13 rem = t % tc->time_mult; in perf_time_to_tsc()
14 return (quot << tc->time_shift) + in perf_time_to_tsc()
15 (rem << tc->time_shift) / tc->time_mult; in perf_time_to_tsc()
18 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc) in tsc_to_perf_time() argument
22 quot = cyc >> tc->time_shift; in tsc_to_perf_time()
23 rem = cyc & (((u64)1 << tc->time_shift) - 1); in tsc_to_perf_time()
24 return tc->time_zero + quot * tc->time_mult + in tsc_to_perf_time()
[all …]
Dterm.c32 struct termios tc; in set_term_quiet_input() local
35 tc = *old; in set_term_quiet_input()
36 tc.c_lflag &= ~(ICANON | ECHO); in set_term_quiet_input()
37 tc.c_cc[VMIN] = 0; in set_term_quiet_input()
38 tc.c_cc[VTIME] = 0; in set_term_quiet_input()
39 tcsetattr(0, TCSANOW, &tc); in set_term_quiet_input()
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
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-v4.19/arch/mips/kernel/
Dsmp-mt.c57 static unsigned int __init smvp_vpe_init(unsigned int tc, unsigned int mvpconf0, in smvp_vpe_init() argument
60 if (tc > ((mvpconf0 & MVPCONF0_PVPE) >> MVPCONF0_PVPE_SHIFT)) in smvp_vpe_init()
64 if (tc != 0) { in smvp_vpe_init()
74 set_cpu_possible(tc, true); in smvp_vpe_init()
75 set_cpu_present(tc, true); in smvp_vpe_init()
76 __cpu_number_map[tc] = ++ncpu; in smvp_vpe_init()
77 __cpu_logical_map[ncpu] = tc; in smvp_vpe_init()
83 if (tc != 0) in smvp_vpe_init()
86 cpu_set_vpe_id(&cpu_data[ncpu], tc); in smvp_vpe_init()
91 static void __init smvp_tc_init(unsigned int tc, unsigned int mvpconf0) in smvp_tc_init() argument
[all …]
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()
147 void cleanup_tc(struct tc *tc) in cleanup_tc() argument
159 settc(tc->index); in cleanup_tc()
209 struct tc *t; in vpe_stop()
214 t = list_entry(v->tc.next, struct tc, tc); in vpe_stop()
230 struct tc *t; in vpe_free()
233 t = list_entry(v->tc.next, struct tc, tc); in vpe_free()
333 struct tc *t; in vpe_module_init()
[all …]
Dmips-mt.c58 int tc; in mips_mt_regdump() local
73 for (tc = 0; tc < ntc; tc++) { in mips_mt_regdump()
74 settc(tc); in mips_mt_regdump()
95 for (tc = 0; tc < ntc; tc++) { in mips_mt_regdump()
96 settc(tc); in mips_mt_regdump()
101 printk(" TC %d (current TC with VPE EPC above)\n", tc); in mips_mt_regdump()
106 printk(" TC %d\n", tc); in mips_mt_regdump()
/Linux-v4.19/tools/testing/selftests/net/forwarding/
Dtc_flower.sh25 tc qdisc add dev $h2 clsact
30 tc qdisc del dev $h2 clsact
40 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
42 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
54 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
55 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
66 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
68 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
80 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
81 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
[all …]
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 …]
Dtc_actions.sh25 tc qdisc add dev $h2 clsact
30 tc qdisc del dev $h2 clsact
37 tc qdisc add dev $swp1 clsact
46 tc qdisc del dev $swp1 clsact
56 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
65 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
75 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
76 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
85 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \
94 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
[all …]
/Linux-v4.19/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
Dtc_flower.sh31 tc qdisc add dev $h2 clsact
36 tc qdisc del dev $h2 clsact
48 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
57 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
72 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
80 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
94 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
96 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
105 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
113 tc filter add dev $h2 ingress protocol ip pref 3 handle 103 flower \
[all …]
/Linux-v4.19/drivers/clocksource/
Dtcb_clksrc.c243 static int __init setup_clkevents(struct atmel_tc *tc, int clk32k_divisor_idx) in setup_clkevents() argument
246 struct clk *t2_clk = tc->clk[2]; in setup_clkevents()
247 int irq = tc->irq[2]; in setup_clkevents()
249 ret = clk_prepare_enable(tc->slow_clk); in setup_clkevents()
256 clk_disable_unprepare(tc->slow_clk); in setup_clkevents()
262 clkevt.regs = tc->regs; in setup_clkevents()
272 clk_disable_unprepare(tc->slow_clk); in setup_clkevents()
283 static int __init setup_clkevents(struct atmel_tc *tc, int clk32k_divisor_idx) in setup_clkevents() argument
291 static void __init tcb_setup_dual_chan(struct atmel_tc *tc, int mck_divisor_idx) in tcb_setup_dual_chan() argument
319 static void __init tcb_setup_single_chan(struct atmel_tc *tc, int mck_divisor_idx) in tcb_setup_single_chan() argument
[all …]
/Linux-v4.19/drivers/pwm/
Dpwm-atmel-tcb.c51 struct atmel_tc *tc; member
77 struct atmel_tc *tc = tcbpwmc->tc; in atmel_tcb_pwm_request() local
78 void __iomem *regs = tc->regs; in atmel_tcb_pwm_request()
88 ret = clk_prepare_enable(tc->clk[group]); in atmel_tcb_pwm_request()
134 struct atmel_tc *tc = tcbpwmc->tc; in atmel_tcb_pwm_free() local
136 clk_disable_unprepare(tc->clk[pwm->hwpwm / 2]); in atmel_tcb_pwm_free()
145 struct atmel_tc *tc = tcbpwmc->tc; in atmel_tcb_pwm_disable() local
146 void __iomem *regs = tc->regs; in atmel_tcb_pwm_disable()
204 struct atmel_tc *tc = tcbpwmc->tc; in atmel_tcb_pwm_enable() local
205 void __iomem *regs = tc->regs; in atmel_tcb_pwm_enable()
[all …]
/Linux-v4.19/tools/perf/arch/x86/util/
Dtsc.c14 struct perf_tsc_conversion *tc) in perf_read_tsc_conversion() argument
23 tc->time_mult = pc->time_mult; in perf_read_tsc_conversion()
24 tc->time_shift = pc->time_shift; in perf_read_tsc_conversion()
25 tc->time_zero = pc->time_zero; in perf_read_tsc_conversion()
64 struct perf_tsc_conversion tc; in perf_event__synth_time_conv() local
69 err = perf_read_tsc_conversion(pc, &tc); in perf_event__synth_time_conv()
77 event.time_conv.time_mult = tc.time_mult; in perf_event__synth_time_conv()
78 event.time_conv.time_shift = tc.time_shift; in perf_event__synth_time_conv()
79 event.time_conv.time_zero = tc.time_zero; in perf_event__synth_time_conv()
/Linux-v4.19/drivers/input/touchscreen/
Dtsc2007_core.c55 static void tsc2007_read_values(struct tsc2007 *tsc, struct ts_event *tc) in tsc2007_read_values() argument
58 tc->y = tsc2007_xfer(tsc, READ_Y); in tsc2007_read_values()
61 tc->x = tsc2007_xfer(tsc, READ_X); in tsc2007_read_values()
64 tc->z1 = tsc2007_xfer(tsc, READ_Z1); in tsc2007_read_values()
65 tc->z2 = tsc2007_xfer(tsc, READ_Z2); in tsc2007_read_values()
71 u32 tsc2007_calculate_resistance(struct tsc2007 *tsc, struct ts_event *tc) in tsc2007_calculate_resistance() argument
76 if (tc->x == MAX_12BIT) in tsc2007_calculate_resistance()
77 tc->x = 0; in tsc2007_calculate_resistance()
79 if (likely(tc->x && tc->z1)) { in tsc2007_calculate_resistance()
81 rt = tc->z2 - tc->z1; in tsc2007_calculate_resistance()
[all …]
/Linux-v4.19/fs/ntfs/
Dlcnalloc.c415 LCN tc; in ntfs_cluster_alloc() local
421 tc = lcn + bmp_pos + 1; in ntfs_cluster_alloc()
425 (unsigned long long)tc, in ntfs_cluster_alloc()
434 if (tc >= vol->mft_zone_end) { in ntfs_cluster_alloc()
441 tc > vol->mft_zone_pos) in ntfs_cluster_alloc()
442 && tc >= vol->mft_lcn) in ntfs_cluster_alloc()
443 vol->mft_zone_pos = tc; in ntfs_cluster_alloc()
456 if (tc >= vol->nr_clusters) in ntfs_cluster_alloc()
461 tc > vol->data1_zone_pos) in ntfs_cluster_alloc()
462 && tc >= vol->mft_zone_end) in ntfs_cluster_alloc()
[all …]

12345678910>>...13