Home
last modified time | relevance | path

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

/linux-4.1.27/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-4.1.27/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-4.1.27/drivers/md/
Ddm-thin.c209 typedef void (*process_bio_fn)(struct thin_c *tc, struct bio *bio);
210 typedef void (*process_cell_fn)(struct thin_c *tc, struct dm_bio_prison_cell *cell);
460 struct thin_c *tc; member
481 static void error_thin_bio_list(struct thin_c *tc, struct bio_list *master, int error) in error_thin_bio_list() argument
488 spin_lock_irqsave(&tc->lock, flags); in error_thin_bio_list()
490 spin_unlock_irqrestore(&tc->lock, flags); in error_thin_bio_list()
495 static void requeue_deferred_cells(struct thin_c *tc) in requeue_deferred_cells() argument
497 struct pool *pool = tc->pool; in requeue_deferred_cells()
504 spin_lock_irqsave(&tc->lock, flags); in requeue_deferred_cells()
505 list_splice_init(&tc->deferred_cells, &cells); in requeue_deferred_cells()
[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()
76 struct transient_c *tc; in transient_ctr() local
78 tc = kmalloc(sizeof(struct transient_c), GFP_KERNEL); in transient_ctr()
79 if (!tc) in transient_ctr()
82 tc->next_free = 0; in transient_ctr()
83 store->context = tc; in transient_ctr()
/linux-4.1.27/net/rds/
Dtcp.c84 u32 rds_tcp_snd_nxt(struct rds_tcp_connection *tc) in rds_tcp_snd_nxt() argument
86 return tcp_sk(tc->t_sock->sk)->snd_nxt; in rds_tcp_snd_nxt()
89 u32 rds_tcp_snd_una(struct rds_tcp_connection *tc) in rds_tcp_snd_una() argument
91 return tcp_sk(tc->t_sock->sk)->snd_una; in rds_tcp_snd_una()
95 struct rds_tcp_connection *tc) in rds_tcp_restore_callbacks() argument
97 rdsdebug("restoring sock %p callbacks from tc %p\n", sock, tc); in rds_tcp_restore_callbacks()
102 list_del_init(&tc->t_list_item); in rds_tcp_restore_callbacks()
106 tc->t_sock = NULL; in rds_tcp_restore_callbacks()
108 sock->sk->sk_write_space = tc->t_orig_write_space; in rds_tcp_restore_callbacks()
109 sock->sk->sk_data_ready = tc->t_orig_data_ready; in rds_tcp_restore_callbacks()
[all …]
Dtcp_send.c53 struct rds_tcp_connection *tc = conn->c_transport_data; in rds_tcp_xmit_prepare() local
55 rds_tcp_cork(tc->t_sock, 1); in rds_tcp_xmit_prepare()
60 struct rds_tcp_connection *tc = conn->c_transport_data; in rds_tcp_xmit_complete() local
62 rds_tcp_cork(tc->t_sock, 0); in rds_tcp_xmit_complete()
83 struct rds_tcp_connection *tc = conn->c_transport_data; in rds_tcp_xmit() local
92 tc->t_last_sent_nxt = rds_tcp_snd_nxt(tc); in rds_tcp_xmit()
93 rm->m_ack_seq = tc->t_last_sent_nxt + in rds_tcp_xmit()
98 tc->t_last_expected_una = rm->m_ack_seq + 1; in rds_tcp_xmit()
101 rm, rds_tcp_snd_nxt(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 = conn->c_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()
189 if (left && tc->t_tinc_hdr_rem) { in rds_tcp_data_recv()
190 to_copy = min(tc->t_tinc_hdr_rem, left); in rds_tcp_data_recv()
196 tc->t_tinc_hdr_rem, in rds_tcp_data_recv()
198 tc->t_tinc_hdr_rem -= to_copy; in rds_tcp_data_recv()
202 if (tc->t_tinc_hdr_rem == 0) { in rds_tcp_data_recv()
204 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 = conn->c_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()
136 struct rds_tcp_connection *tc = conn->c_transport_data; in rds_tcp_conn_shutdown() local
137 struct socket *sock = tc->t_sock; in rds_tcp_conn_shutdown()
139 rdsdebug("shutting down conn %p tc %p sock %p\n", conn, tc, sock); in rds_tcp_conn_shutdown()
144 rds_tcp_restore_callbacks(sock, tc); /* tc->tc_sock = NULL */ in rds_tcp_conn_shutdown()
150 if (tc->t_tinc) { in rds_tcp_conn_shutdown()
151 rds_inc_put(&tc->t_tinc->ti_inc); in rds_tcp_conn_shutdown()
[all …]
Dtcp.h50 struct rds_tcp_connection *tc);
51 u32 rds_tcp_snd_nxt(struct rds_tcp_connection *tc);
52 u32 rds_tcp_snd_una(struct rds_tcp_connection *tc);
53 u64 rds_tcp_map_seq(struct rds_tcp_connection *tc, u32 seq);
/linux-4.1.27/tools/perf/util/
Dtsc.c6 u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc) in perf_time_to_tsc() argument
10 t = ns - tc->time_zero; in perf_time_to_tsc()
11 quot = t / tc->time_mult; in perf_time_to_tsc()
12 rem = t % tc->time_mult; in perf_time_to_tsc()
13 return (quot << tc->time_shift) + in perf_time_to_tsc()
14 (rem << tc->time_shift) / tc->time_mult; in perf_time_to_tsc()
17 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc) in tsc_to_perf_time() argument
21 quot = cyc >> tc->time_shift; in tsc_to_perf_time()
22 rem = cyc & ((1 << tc->time_shift) - 1); in tsc_to_perf_time()
23 return tc->time_zero + quot * tc->time_mult + in tsc_to_perf_time()
[all …]
Dtsc.h8 u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc);
9 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc);
Dutil.c303 struct termios tc; in set_term_quiet_input() local
306 tc = *old; in set_term_quiet_input()
307 tc.c_lflag &= ~(ICANON | ECHO); in set_term_quiet_input()
308 tc.c_cc[VMIN] = 0; in set_term_quiet_input()
309 tc.c_cc[VTIME] = 0; in set_term_quiet_input()
310 tcsetattr(0, TCSANOW, &tc); in set_term_quiet_input()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb.c180 int tc; in ixgbe_dcb_unpack_pfc() local
182 for (*pfc_en = 0, tc = 0; tc < MAX_TRAFFIC_CLASS; tc++) { in ixgbe_dcb_unpack_pfc()
183 if (tc_config[tc].dcb_pfc != pfc_disabled) in ixgbe_dcb_unpack_pfc()
184 *pfc_en |= 1 << tc; in ixgbe_dcb_unpack_pfc()
192 int tc; in ixgbe_dcb_unpack_refill() local
194 for (tc = 0; tc < MAX_TRAFFIC_CLASS; tc++) in ixgbe_dcb_unpack_refill()
195 refill[tc] = tc_config[tc].path[direction].data_credits_refill; in ixgbe_dcb_unpack_refill()
201 int tc; in ixgbe_dcb_unpack_max() local
203 for (tc = 0; tc < MAX_TRAFFIC_CLASS; tc++) in ixgbe_dcb_unpack_max()
204 max[tc] = tc_config[tc].desc_credits_max; in ixgbe_dcb_unpack_max()
[all …]
Dixgbe_lib.c111 static void ixgbe_get_first_reg_idx(struct ixgbe_adapter *adapter, u8 tc, in ixgbe_get_first_reg_idx() argument
124 *tx = tc << 2; /* 0, 4, 8, 12, 16, 20, 24, 28 */ in ixgbe_get_first_reg_idx()
125 *rx = tc << 3; /* 0, 8, 16, 24, 32, 40, 48, 56 */ in ixgbe_get_first_reg_idx()
137 *rx = tc << 4; in ixgbe_get_first_reg_idx()
138 if (tc < 3) in ixgbe_get_first_reg_idx()
139 *tx = tc << 5; /* 0, 32, 64 */ in ixgbe_get_first_reg_idx()
140 else if (tc < 5) in ixgbe_get_first_reg_idx()
141 *tx = (tc + 2) << 4; /* 80, 96 */ in ixgbe_get_first_reg_idx()
143 *tx = (tc + 8) << 3; /* 104, 112, 120 */ in ixgbe_get_first_reg_idx()
150 *rx = tc << 5; in ixgbe_get_first_reg_idx()
[all …]
Dixgbe_dcb_nl.c192 static void ixgbe_dcbnl_set_pg_tc_cfg_tx(struct net_device *netdev, int tc, in ixgbe_dcbnl_set_pg_tc_cfg_tx() argument
199 adapter->temp_dcb_cfg.tc_config[tc].path[0].prio_type = prio; in ixgbe_dcbnl_set_pg_tc_cfg_tx()
201 adapter->temp_dcb_cfg.tc_config[tc].path[0].bwg_id = bwg_id; in ixgbe_dcbnl_set_pg_tc_cfg_tx()
203 adapter->temp_dcb_cfg.tc_config[tc].path[0].bwg_percent = in ixgbe_dcbnl_set_pg_tc_cfg_tx()
206 adapter->temp_dcb_cfg.tc_config[tc].path[0].up_to_tc_bitmap = in ixgbe_dcbnl_set_pg_tc_cfg_tx()
218 static void ixgbe_dcbnl_set_pg_tc_cfg_rx(struct net_device *netdev, int tc, in ixgbe_dcbnl_set_pg_tc_cfg_rx() argument
225 adapter->temp_dcb_cfg.tc_config[tc].path[1].prio_type = prio; in ixgbe_dcbnl_set_pg_tc_cfg_rx()
227 adapter->temp_dcb_cfg.tc_config[tc].path[1].bwg_id = bwg_id; in ixgbe_dcbnl_set_pg_tc_cfg_rx()
229 adapter->temp_dcb_cfg.tc_config[tc].path[1].bwg_percent = in ixgbe_dcbnl_set_pg_tc_cfg_rx()
232 adapter->temp_dcb_cfg.tc_config[tc].path[1].up_to_tc_bitmap = in ixgbe_dcbnl_set_pg_tc_cfg_rx()
[all …]
Dixgbe_dcb.h67 u8 tc; member
123 u8 tc; /* Traffic class (TC) */ member
Dixgbe_ptp.c161 ns = timecounter_cyc2time(&adapter->tc, clock_edge); in ixgbe_ptp_setup_sdp()
266 timecounter_adjtime(&adapter->tc, delta); in ixgbe_ptp_adjtime()
290 ns = timecounter_read(&adapter->tc); in ixgbe_ptp_gettime()
318 timecounter_init(&adapter->tc, &adapter->cc, ns); in ixgbe_ptp_settime()
471 ns = timecounter_cyc2time(&adapter->tc, regval); in ixgbe_ptp_tx_hwtstamp()
541 ns = timecounter_cyc2time(&adapter->tc, regval); in ixgbe_ptp_rx_hwtstamp()
830 timecounter_init(&adapter->tc, &adapter->cc, in ixgbe_ptp_reset()
Dixgbe_main.c960 u8 tc; in ixgbe_update_xoff_received() local
985 tc = netdev_get_prio_tc_map(adapter->netdev, i); in ixgbe_update_xoff_received()
986 xoff[tc] += pxoffrxc; in ixgbe_update_xoff_received()
993 tc = tx_ring->dcb_tc; in ixgbe_update_xoff_received()
994 if (xoff[tc]) in ixgbe_update_xoff_received()
4288 int link, tc, kb, marker; in ixgbe_hpbthresh() local
4292 tc = link = dev->mtu + ETH_HLEN + ETH_FCS_LEN + IXGBE_ETH_FRAMING; in ixgbe_hpbthresh()
4297 (tc < IXGBE_FCOE_JUMBO_FRAME_SIZE) && in ixgbe_hpbthresh()
4299 tc = IXGBE_FCOE_JUMBO_FRAME_SIZE; in ixgbe_hpbthresh()
4307 dv_id = IXGBE_DV_X540(link, tc); in ixgbe_hpbthresh()
[all …]
Dixgbe.h745 struct timecounter tc; member
903 int ixgbe_setup_tc(struct net_device *dev, u8 tc);
/linux-4.1.27/arch/mips/kernel/
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 …]
Dsmp-mt.c56 static unsigned int __init smvp_vpe_init(unsigned int tc, unsigned int mvpconf0, in smvp_vpe_init() argument
59 if (tc > ((mvpconf0 & MVPCONF0_PVPE) >> MVPCONF0_PVPE_SHIFT)) in smvp_vpe_init()
63 if (tc != 0) { in smvp_vpe_init()
73 set_cpu_possible(tc, true); in smvp_vpe_init()
74 set_cpu_present(tc, true); in smvp_vpe_init()
75 __cpu_number_map[tc] = ++ncpu; in smvp_vpe_init()
76 __cpu_logical_map[ncpu] = tc; in smvp_vpe_init()
82 if (tc != 0) in smvp_vpe_init()
88 static void __init smvp_tc_init(unsigned int tc, unsigned int mvpconf0) in smvp_tc_init() argument
92 if (!tc) in smvp_tc_init()
[all …]
Dmips-mt.c57 int tc; in mips_mt_regdump() local
72 for (tc = 0; tc < ntc; tc++) { in mips_mt_regdump()
73 settc(tc); in mips_mt_regdump()
94 for (tc = 0; tc < ntc; tc++) { in mips_mt_regdump()
95 settc(tc); in mips_mt_regdump()
100 printk(" TC %d (current TC with VPE EPC above)\n", tc); in mips_mt_regdump()
105 printk(" TC %d\n", tc); in mips_mt_regdump()
Dvpe-cmp.c19 void cleanup_tc(struct tc *tc) in cleanup_tc() argument
93 struct tc *t; in vpe_module_init()
149 list_add(&t->tc, &v->tc); in vpe_module_init()
Dvpe.c74 struct tc *get_tc(int index) in get_tc()
76 struct tc *res, *t; in get_tc()
100 INIT_LIST_HEAD(&v->tc); in alloc_vpe()
113 struct tc *alloc_tc(int index) in alloc_tc()
115 struct tc *tc; in alloc_tc() local
117 tc = kzalloc(sizeof(struct tc), GFP_KERNEL); in alloc_tc()
118 if (tc == NULL) in alloc_tc()
121 INIT_LIST_HEAD(&tc->tc); in alloc_tc()
122 tc->index = index; in alloc_tc()
125 list_add_tail(&tc->list, &vpecontrol.tc_list); in alloc_tc()
[all …]
/linux-4.1.27/drivers/clocksource/
Dtcb_clksrc.c181 static int __init setup_clkevents(struct atmel_tc *tc, int clk32k_divisor_idx) in setup_clkevents() argument
184 struct clk *t2_clk = tc->clk[2]; in setup_clkevents()
185 int irq = tc->irq[2]; in setup_clkevents()
193 clkevt.regs = tc->regs; in setup_clkevents()
213 static int __init setup_clkevents(struct atmel_tc *tc, int clk32k_divisor_idx) in setup_clkevents() argument
221 static void __init tcb_setup_dual_chan(struct atmel_tc *tc, int mck_divisor_idx) in tcb_setup_dual_chan() argument
249 static void __init tcb_setup_single_chan(struct atmel_tc *tc, int mck_divisor_idx) in tcb_setup_single_chan() argument
269 struct atmel_tc *tc; in tcb_clksrc_init() local
277 tc = atmel_tc_alloc(CONFIG_ATMEL_TCB_CLKSRC_BLOCK); in tcb_clksrc_init()
278 if (!tc) { in tcb_clksrc_init()
[all …]
/linux-4.1.27/drivers/pwm/
Dpwm-atmel-tcb.c43 struct atmel_tc *tc; member
68 struct atmel_tc *tc = tcbpwmc->tc; in atmel_tcb_pwm_request() local
69 void __iomem *regs = tc->regs; in atmel_tcb_pwm_request()
79 ret = clk_prepare_enable(tc->clk[group]); in atmel_tcb_pwm_request()
125 struct atmel_tc *tc = tcbpwmc->tc; in atmel_tcb_pwm_free() local
127 clk_disable_unprepare(tc->clk[pwm->hwpwm / 2]); in atmel_tcb_pwm_free()
136 struct atmel_tc *tc = tcbpwmc->tc; in atmel_tcb_pwm_disable() local
137 void __iomem *regs = tc->regs; in atmel_tcb_pwm_disable()
192 struct atmel_tc *tc = tcbpwmc->tc; in atmel_tcb_pwm_enable() local
193 void __iomem *regs = tc->regs; in atmel_tcb_pwm_enable()
[all …]
/linux-4.1.27/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 …]
Dunistr.c366 unsigned char *tc; in ntfs_ucstonls() local
368 tc = kmalloc((ns_len + 64) & in ntfs_ucstonls()
370 if (tc) { in ntfs_ucstonls()
371 memcpy(tc, ns, ns_len); in ntfs_ucstonls()
374 ns = tc; in ntfs_ucstonls()
/linux-4.1.27/drivers/input/touchscreen/
Dtsc2007.c115 static void tsc2007_read_values(struct tsc2007 *tsc, struct ts_event *tc) in tsc2007_read_values() argument
118 tc->y = tsc2007_xfer(tsc, READ_Y); in tsc2007_read_values()
121 tc->x = tsc2007_xfer(tsc, READ_X); in tsc2007_read_values()
124 tc->z1 = tsc2007_xfer(tsc, READ_Z1); in tsc2007_read_values()
125 tc->z2 = tsc2007_xfer(tsc, READ_Z2); in tsc2007_read_values()
131 static u32 tsc2007_calculate_pressure(struct tsc2007 *tsc, struct ts_event *tc) in tsc2007_calculate_pressure() argument
136 if (tc->x == MAX_12BIT) in tsc2007_calculate_pressure()
137 tc->x = 0; in tsc2007_calculate_pressure()
139 if (likely(tc->x && tc->z1)) { in tsc2007_calculate_pressure()
141 rt = tc->z2 - tc->z1; in tsc2007_calculate_pressure()
[all …]
Dtps6507x-ts.c46 struct ts_event tc; member
166 &tsc->tc.pressure); in tps6507x_ts_poll()
170 pendown = tsc->tc.pressure > tsc->min_pressure; in tps6507x_ts_poll()
189 &tsc->tc.x); in tps6507x_ts_poll()
194 &tsc->tc.y); in tps6507x_ts_poll()
198 input_report_abs(input_dev, ABS_X, tsc->tc.x); in tps6507x_ts_poll()
199 input_report_abs(input_dev, ABS_Y, tsc->tc.y); in tps6507x_ts_poll()
200 input_report_abs(input_dev, ABS_PRESSURE, tsc->tc.pressure); in tps6507x_ts_poll()
Dads7846.c90 struct ts_event tc; member
710 packet->tc.ignore = true; in ads7846_read_state()
728 packet->tc.ignore = true; in ads7846_read_state()
734 packet->tc.ignore = false; in ads7846_read_state()
759 x = *(u16 *)packet->tc.x_buf; in ads7846_report_state()
760 y = *(u16 *)packet->tc.y_buf; in ads7846_report_state()
764 x = packet->tc.x; in ads7846_report_state()
765 y = packet->tc.y; in ads7846_report_state()
766 z1 = packet->tc.z1; in ads7846_report_state()
767 z2 = packet->tc.z2; in ads7846_report_state()
[all …]
/linux-4.1.27/arch/mips/include/asm/
Dvpe.h70 struct list_head tc; member
84 struct tc { struct
89 struct list_head tc; /* The list of TC's with this VPE */ argument
117 struct tc *get_tc(int index);
119 struct tc *alloc_tc(int index);
126 void cleanup_tc(struct tc *tc);
Dmipsmtregs.h365 #define settc(tc) \ argument
367 write_c0_vpecontrol((read_c0_vpecontrol()&~VPECONTROL_TARGTC) | (tc)); \
/linux-4.1.27/arch/cris/arch-v32/drivers/
Dcryptocop.c368 static int create_pad_descriptor(struct cryptocop_tfrm_ctx *tc, struct cryptocop_dma_desc **pad_des… in create_pad_descriptor() argument
389 switch (tc->unit_no) { in create_pad_descriptor()
391 error = create_md5_pad(alloc_flag, tc->consumed, &pad, &plen); in create_pad_descriptor()
398 mo.hashconf = tc->hash_conf; in create_pad_descriptor()
399 mo.hashmode = tc->hash_mode; in create_pad_descriptor()
402 error = create_sha1_pad(alloc_flag, tc->consumed, &pad, &plen); in create_pad_descriptor()
409 mo.hashconf = tc->hash_conf; in create_pad_descriptor()
410 mo.hashmode = tc->hash_mode; in create_pad_descriptor()
413 if (tc->consumed % tc->blocklength){ in create_pad_descriptor()
439 static int setup_key_dl_desc(struct cryptocop_tfrm_ctx *tc, struct cryptocop_dma_desc **kd, int all… in setup_key_dl_desc() argument
[all …]
/linux-4.1.27/include/linux/
Dtimecounter.h93 static inline void timecounter_adjtime(struct timecounter *tc, s64 delta) in timecounter_adjtime() argument
95 tc->nsec += delta; in timecounter_adjtime()
108 extern void timecounter_init(struct timecounter *tc,
120 extern u64 timecounter_read(struct timecounter *tc);
136 extern u64 timecounter_cyc2time(struct timecounter *tc,
Dtransport_class.h85 static inline int transport_container_register(struct transport_container *tc) in transport_container_register() argument
87 return attribute_container_register(&tc->ac); in transport_container_register()
90 static inline void transport_container_unregister(struct transport_container *tc) in transport_container_unregister() argument
92 if (unlikely(attribute_container_unregister(&tc->ac))) in transport_container_unregister()
Datmel_tc.h75 extern void atmel_tc_free(struct atmel_tc *tc);
Dnetdevice.h1111 int (*ndo_setup_tc)(struct net_device *dev, u8 tc);
1766 int netdev_set_prio_tc_map(struct net_device *dev, u8 prio, u8 tc) in netdev_set_prio_tc_map() argument
1768 if (tc >= dev->num_tc) in netdev_set_prio_tc_map()
1771 dev->prio_tc_map[prio & TC_BITMASK] = tc & TC_BITMASK; in netdev_set_prio_tc_map()
1784 int netdev_set_tc_queue(struct net_device *dev, u8 tc, u16 count, u16 offset) in netdev_set_tc_queue() argument
1786 if (tc >= dev->num_tc) in netdev_set_tc_queue()
1789 dev->tc_to_txq[tc].count = count; in netdev_set_tc_queue()
1790 dev->tc_to_txq[tc].offset = offset; in netdev_set_tc_queue()
Defi.h494 typedef efi_status_t efi_get_time_t (efi_time_t *tm, efi_time_cap_t *tc);
/linux-4.1.27/drivers/scsi/isci/
Drequest.c78 return &ireq->tc->sgl_pair_ab; in to_sgl_element_pair()
80 return &ireq->tc->sgl_pair_cd; in to_sgl_element_pair()
93 offset = (void *) &ireq->tc->sgl_pair_ab - in to_sgl_element_pair_dma()
97 offset = (void *) &ireq->tc->sgl_pair_cd - in to_sgl_element_pair_dma()
299 struct scu_task_context *tc = ireq->tc; in scu_ssp_ireq_dif_insert() local
303 tc->block_guard_enable = 1; in scu_ssp_ireq_dif_insert()
304 tc->blk_prot_en = 1; in scu_ssp_ireq_dif_insert()
305 tc->blk_sz = blk_sz; in scu_ssp_ireq_dif_insert()
307 tc->blk_prot_func = 0x2; in scu_ssp_ireq_dif_insert()
309 tc->transfer_length_bytes += scu_dif_bytes(tc->transfer_length_bytes, in scu_ssp_ireq_dif_insert()
[all …]
Dport.c887 struct scu_task_context *tc; in sci_port_post_dummy_request() local
890 tc = &ihost->task_context_table[ISCI_TAG_TCI(tag)]; in sci_port_post_dummy_request()
891 tc->abort = 0; in sci_port_post_dummy_request()
911 struct scu_task_context *tc; in sci_port_abort_dummy_request() local
914 tc = &ihost->task_context_table[ISCI_TAG_TCI(tag)]; in sci_port_abort_dummy_request()
915 tc->abort = 1; in sci_port_abort_dummy_request()
Drequest.h121 struct scu_task_context *tc; member
Dhost.c2288 ireq->tc = &ihost->task_context_table[i]; in sci_controller_dma_alloc()
/linux-4.1.27/tools/perf/arch/x86/util/
Dtsc.c13 struct perf_tsc_conversion *tc) in perf_read_tsc_conversion() argument
22 tc->time_mult = pc->time_mult; in perf_read_tsc_conversion()
23 tc->time_shift = pc->time_shift; in perf_read_tsc_conversion()
24 tc->time_zero = pc->time_zero; in perf_read_tsc_conversion()
Dtsc.h15 struct perf_tsc_conversion *tc);
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dfw_qos.c63 struct mlx4_port_scheduler_tc_cfg_be tc[MLX4_NUM_TC]; member
127 struct mlx4_port_scheduler_tc_cfg_be *tc = &context->tc[i]; in mlx4_SET_PORT_SCHEDULER() local
133 tc->max_bw_units = in mlx4_SET_PORT_SCHEDULER()
137 tc->max_bw_units = in mlx4_SET_PORT_SCHEDULER()
140 tc->max_bw_value = htons(r); in mlx4_SET_PORT_SCHEDULER()
142 tc->max_bw_value = htons(MLX4_RATELIMIT_DEFAULT); in mlx4_SET_PORT_SCHEDULER()
143 tc->max_bw_units = htons(MLX4_RATELIMIT_1G_UNITS); in mlx4_SET_PORT_SCHEDULER()
146 tc->pg = htons(pg[i]); in mlx4_SET_PORT_SCHEDULER()
147 tc->bw_precentage = htons(tc_tx_bw[i]); in mlx4_SET_PORT_SCHEDULER()
Den_clock.c41 static cycle_t mlx4_en_read_clock(const struct cyclecounter *tc) in mlx4_en_read_clock() argument
44 container_of(tc, struct mlx4_en_dev, cycles); in mlx4_en_read_clock()
47 return mlx4_read_clock(dev) & tc->mask; in mlx4_en_read_clock()
Dfw.c1349 int ts = 0, tc = 0; in mlx4_map_cmd() local
1384 ++tc; in mlx4_map_cmd()
1405 mlx4_dbg(dev, "Mapped %d chunks/%d KB for FW\n", tc, ts); in mlx4_map_cmd()
1408 mlx4_dbg(dev, "Mapped %d chunks/%d KB for ICM aux\n", tc, ts); in mlx4_map_cmd()
1412 tc, ts, (unsigned long long) virt - (ts << 10)); in mlx4_map_cmd()
/linux-4.1.27/net/mpls/
Dinternal.h11 u8 tc; member
29 static inline struct mpls_shim_hdr mpls_entry_encode(u32 label, unsigned ttl, unsigned tc, bool bos) in mpls_entry_encode() argument
34 (tc << MPLS_LS_TC_SHIFT) | in mpls_entry_encode()
47 result.tc = (entry & MPLS_LS_TC_MASK) >> MPLS_LS_TC_SHIFT; in mpls_entry_decode()
Daf_mpls.c657 if ((dec.bos != bos) || dec.ttl || dec.tc) in nla_get_labels()
/linux-4.1.27/Documentation/cgroups/
Dnet_cls.txt7 The Traffic Controller (tc) can be used to assign
30 configuring tc:
31 tc qdisc add dev eth0 root handle 10: htb
33 tc class add dev eth0 parent 10: classid 10:1 htb rate 40mbit
36 tc filter add dev eth0 parent 10: protocol ip prio 10 handle 1: cgroup
/linux-4.1.27/tools/perf/tests/
Dperf-time-to-tsc.c54 struct perf_tsc_conversion tc; in test__perf_time_to_tsc() local
86 ret = perf_read_tsc_conversion(pc, &tc); in test__perf_time_to_tsc()
134 test_time = tsc_to_perf_time(test_tsc, &tc); in test__perf_time_to_tsc()
135 comm1_tsc = perf_time_to_tsc(comm1_time, &tc); in test__perf_time_to_tsc()
136 comm2_tsc = perf_time_to_tsc(comm2_time, &tc); in test__perf_time_to_tsc()
/linux-4.1.27/drivers/staging/fbtft/
Dfb_pcd8544.c39 static unsigned tc; variable
40 module_param(tc, uint, 0);
41 MODULE_PARM_DESC(tc, "TC[1:0] Temperature coefficient: 0-3 (default: 0)");
69 write_reg(par, 0x04 | (tc & 0x3)); in init_display()
/linux-4.1.27/drivers/tc/
DMakefile7 obj-$(CONFIG_TC) += tc.o tc-driver.o
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_dcb.c422 u8 i, tc, err; in i40e_cee_to_dcb_v1_config() local
428 tc = (u8)((cee_cfg->oper_prio_tc[i] & in i40e_cee_to_dcb_v1_config()
431 dcbcfg->etscfg.prioritytable[i*2] = tc; in i40e_cee_to_dcb_v1_config()
432 tc = (u8)((cee_cfg->oper_prio_tc[i] & in i40e_cee_to_dcb_v1_config()
435 dcbcfg->etscfg.prioritytable[i*2 + 1] = tc; in i40e_cee_to_dcb_v1_config()
500 u8 i, tc, err, sync, oper; in i40e_cee_to_dcb_config() local
506 tc = (u8)((cee_cfg->oper_prio_tc[i] & in i40e_cee_to_dcb_config()
509 dcbcfg->etscfg.prioritytable[i*2] = tc; in i40e_cee_to_dcb_config()
510 tc = (u8)((cee_cfg->oper_prio_tc[i] & in i40e_cee_to_dcb_config()
513 dcbcfg->etscfg.prioritytable[i*2 + 1] = tc; in i40e_cee_to_dcb_config()
Di40e_fcoe.c339 u8 tc, i; in i40e_get_fcoe_tc_map() local
347 tc = dcbcfg->etscfg.prioritytable[app.priority]; in i40e_get_fcoe_tc_map()
348 enabled_tc |= (1 << tc); in i40e_get_fcoe_tc_map()
Di40e.h719 int i40e_setup_tc(struct net_device *netdev, u8 tc);
Di40e_main.c771 u8 tc; in i40e_update_prio_xoff_rx() local
793 tc = dcb_cfg->etscfg.prioritytable[i]; in i40e_update_prio_xoff_rx()
794 xoff[tc] = true; in i40e_update_prio_xoff_rx()
807 tc = ring->dcb_tc; in i40e_update_prio_xoff_rx()
808 if (xoff[tc]) in i40e_update_prio_xoff_rx()
4062 u8 tc, i; in i40e_get_iscsi_tc_map() local
4070 tc = dcbcfg->etscfg.prioritytable[app.priority]; in i40e_get_iscsi_tc_map()
4071 enabled_tc |= (1 << tc); in i40e_get_iscsi_tc_map()
4824 int i40e_setup_tc(struct net_device *netdev, u8 tc) in i40e_setup_tc() argument
4826 static int i40e_setup_tc(struct net_device *netdev, u8 tc) in i40e_setup_tc()
[all …]
/linux-4.1.27/drivers/atm/
Dfirestream.c681 void *tc; in process_return_queue() local
692 tc = bus_to_virt (qe->p0); in process_return_queue()
693 fs_dprintk (FS_DEBUG_ALLOC, "Free tc: %p\n", tc); in process_return_queue()
694 kfree (tc); in process_return_queue()
863 struct fs_transmit_config *tc; in fs_open() local
944 tc = kmalloc (sizeof (struct fs_transmit_config), GFP_KERNEL); in fs_open()
946 tc, sizeof (struct fs_transmit_config)); in fs_open()
947 if (!tc) { in fs_open()
961 tc->flags = 0 in fs_open()
969 tc->flags = 0 in fs_open()
[all …]
/linux-4.1.27/net/9p/
Dtrans_virtio.c278 VIRTQUEUE_NUM, req->tc->sdata, req->tc->size); in p9_virtio_request()
287 err = virtqueue_add_sgs(chan->vq, sgs, out_sgs, in_sgs, req->tc, in p9_virtio_request()
419 memcpy(&req->tc->sdata[req->tc->size - 4], &v, 4); in p9_virtio_zc_request()
430 memcpy(&req->tc->sdata[req->tc->size - 4], &v, 4); in p9_virtio_zc_request()
442 VIRTQUEUE_NUM, req->tc->sdata, req->tc->size); in p9_virtio_zc_request()
472 err = virtqueue_add_sgs(chan->vq, sgs, out_sgs, in_sgs, req->tc, in p9_virtio_zc_request()
Dclient.c261 c->reqs[row][col].tc = NULL; in p9_tag_alloc()
278 if (!req->tc) in p9_tag_alloc()
279 req->tc = p9_fcall_alloc(alloc_msize); in p9_tag_alloc()
282 if (!req->tc || !req->rc) in p9_tag_alloc()
285 p9pdu_reset(req->tc); in p9_tag_alloc()
288 req->tc->tag = tag-1; in p9_tag_alloc()
295 kfree(req->tc); in p9_tag_alloc()
298 req->tc = req->rc = NULL; in p9_tag_alloc()
388 kfree(c->reqs[row][col].tc); in p9_tag_cleanup()
405 int tag = r->tc->tag; in p9_free_req()
[all …]
Dtrans_rdma.c334 c->busa, c->req->tc->size, in handle_send()
500 c->req->tc->sdata, c->req->tc->size, in rdma_request()
508 sge.length = c->req->tc->size; in rdma_request()
Dtrans_fd.c472 m->wbuf = req->tc->sdata; in p9_write_work()
473 m->wsize = req->tc->size; in p9_write_work()
667 m, current, req->tc, req->tc->id); in p9_fd_request()
/linux-4.1.27/net/sched/
Dsch_mqprio.c303 struct netdev_tc_txq tc = dev->tc_to_txq[i]; in mqprio_dump_class() local
306 if (q_idx > tc.offset && in mqprio_dump_class()
307 q_idx <= tc.offset + tc.count) { in mqprio_dump_class()
333 struct netdev_tc_txq tc = dev->tc_to_txq[cl - 1]; in mqprio_dump_class_stats() local
342 for (i = tc.offset; i < tc.offset + tc.count; i++) { in mqprio_dump_class_stats()
DKconfig25 from the package iproute2+tc at
/linux-4.1.27/drivers/net/ethernet/freescale/
Dfec_ptp.c151 timecounter_read(&fep->tc); in fec_ptp_enable_pps()
165 ns = timecounter_cyc2time(&fep->tc, tempval); in fec_ptp_enable_pps()
288 timecounter_init(&fep->tc, &fep->cc, ktime_to_ns(ktime_get_real())); in fec_ptp_start_cyclecounter()
358 timecounter_read(&fep->tc); in fec_ptp_adjfreq()
379 timecounter_adjtime(&fep->tc, delta); in fec_ptp_adjtime()
401 ns = timecounter_read(&adapter->tc); in fec_ptp_gettime()
442 timecounter_init(&fep->tc, &fep->cc, ns); in fec_ptp_settime()
551 ns = timecounter_read(&fep->tc); in fec_time_keep()
Dfec.h531 struct timecounter tc; member
Dfec_main.c1184 ns = timecounter_cyc2time(&fep->tc, ts); in fec_enet_hwtstamp()
/linux-4.1.27/drivers/infiniband/hw/ehca/
Dehca_sqp.c130 u32 tc:8; member
138 u32 tc:8; member
194 tcslfl->tc = vertcfl->tc; in ehca_process_perf()
/linux-4.1.27/Documentation/devicetree/bindings/pwm/
Datmel-tcb-pwm.txt8 - tc-block: The Timer Counter block to use as a PWM chip.
15 tc-block = <1>;
/linux-4.1.27/Documentation/networking/
Dmultiqueue.txt51 The userspace command 'tc,' part of the iproute2 package, is used to configure
55 # tc qdisc add dev eth0 root handle 1: multiq
69 The behavior of tc filters remains the same. However a new tc action,
74 tc filter add dev eth0 parent 1: protocol ip prio 1 u32 \
Dtc-actions-env-rules.txt2 The "environmental" rules for authors of any new tc actions are:
D00-INDEX203 tc-actions-env-rules.txt
204 - rules for traffic control (tc) actions.
Dipddp.txt72 <johns393@maroon.tc.umn.edu> originally wrote the ipddp.c driver for IP
Dstmmac.txt34 tc: control the HW FIFO threshold;
Dbonding.txt1597 These queue id's can be used in conjunction with the tc utility to configure
1603 # tc qdisc add dev bond0 handle 1 root multiq
1605 # tc filter add dev bond0 protocol ip parent 1: prio 1 u32 match ip dst \
1617 driver that is now present. This awareness allows tc filters to be placed on
Dpacket_mmap.txt999 packet are not buffered, tc disciplines are ignored, increased loss can occur
/linux-4.1.27/drivers/s390/block/
Ddasd_eer.c589 int tc,rc; in dasd_eer_read() local
611 tc = 0; in dasd_eer_read()
612 while (!tc) { in dasd_eer_read()
613 tc = dasd_eer_read_buffer(eerb, (char *) &tailcount, in dasd_eer_read()
615 if (!tc) { in dasd_eer_read()
631 WARN_ON(tc != sizeof(tailcount)); in dasd_eer_read()
636 tc = dasd_eer_read_buffer(eerb, readbuffer, effective_count); in dasd_eer_read()
637 WARN_ON(tc != effective_count); in dasd_eer_read()
/linux-4.1.27/arch/m68k/kernel/
Drelocate_kernel.S33 pmove %tc,%d0 /* Disable MMU */
35 pmove %d0,%tc
67 movec %d0,%tc /* Disable MMU */
Dhead.S2469 movec %d0,%tc /* enable the MMU */
2496 pmove %a0@(8),%tc /* enable the MMU */
/linux-4.1.27/drivers/net/ethernet/ti/
Dcpts.c149 timecounter_read(&cpts->tc); in cpts_ptp_adjfreq()
164 timecounter_adjtime(&cpts->tc, delta); in cpts_ptp_adjtime()
177 ns = timecounter_read(&cpts->tc); in cpts_ptp_gettime()
195 timecounter_init(&cpts->tc, &cpts->cc, ns); in cpts_ptp_settime()
312 ns = timecounter_cyc2time(&cpts->tc, event->low); in cpts_find_ts()
387 timecounter_init(&cpts->tc, &cpts->cc, ktime_to_ns(ktime_get_real())); in cpts_register()
Dcpts.h120 struct timecounter tc; member
/linux-4.1.27/include/scsi/
Dscsi_transport.h84 #define transport_class_to_shost(tc) \ argument
85 dev_to_shost((tc)->parent)
/linux-4.1.27/Documentation/devicetree/bindings/media/xilinx/
Dxlnx,v-tc.txt9 - compatible: Must be "xlnx,v-tc-6.1".
28 compatible = "xlnx,v-tc-6.1";
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
Dptp.c95 timecounter_adjtime(&adapter->tc, delta); in e1000e_phc_adjtime()
117 ns = timecounter_read(&adapter->tc); in e1000e_phc_gettime()
145 timecounter_init(&adapter->tc, &adapter->cc, ns); in e1000e_phc_settime()
De1000.h344 struct timecounter tc; member
Dnetdev.c519 ns = timecounter_cyc2time(&adapter->tc, systim); in e1000e_systim_to_hwtstamp()
3734 timecounter_init(&adapter->tc, &adapter->cc, in e1000e_config_hwtstamp()
/linux-4.1.27/Documentation/devicetree/bindings/rtc/
Dabracon,abx80x.txt28 - "abracon,tc-diode": should be "standard" (0.6V) or "schottky" (0.3V)
29 - "abracon,tc-resistor": should be <0>, <3>, <6> or <11>. 0 disables the output
/linux-4.1.27/drivers/xen/
Defi.c41 static efi_status_t xen_efi_get_time(efi_time_t *tm, efi_time_cap_t *tc) in xen_efi_get_time() argument
53 if (tc) { in xen_efi_get_time()
54 tc->resolution = efi_data(op).u.get_time.resolution; in xen_efi_get_time()
55 tc->accuracy = efi_data(op).u.get_time.accuracy; in xen_efi_get_time()
56 tc->sets_to_zero = !!(efi_data(op).misc & in xen_efi_get_time()
/linux-4.1.27/drivers/scsi/
Draid_class.c48 struct transport_container *tc = \
50 tc_to_raid_internal(tc); \
80 static int raid_setup(struct transport_container *tc, struct device *dev, in raid_setup() argument
97 static int raid_remove(struct transport_container *tc, struct device *dev, in raid_remove() argument
Dscsi_transport_spi.c182 static int spi_host_setup(struct transport_container *tc, struct device *dev, in spi_host_setup() argument
192 static int spi_host_configure(struct transport_container *tc,
218 static int spi_target_configure(struct transport_container *tc,
222 static int spi_device_configure(struct transport_container *tc, in spi_device_configure() argument
249 static int spi_setup_transport_attrs(struct transport_container *tc, in spi_setup_transport_attrs() argument
1437 static int spi_host_configure(struct transport_container *tc, in spi_host_configure() argument
1548 static int spi_target_configure(struct transport_container *tc, in spi_target_configure() argument
Dinitio.c2698 struct target_control *tc; in i91u_biosparam() local
2701 tc = &host->targets[sdev->id]; in i91u_biosparam()
2703 if (tc->heads) { in i91u_biosparam()
2704 info_array[0] = tc->heads; in i91u_biosparam()
2705 info_array[1] = tc->sectors; in i91u_biosparam()
2706 info_array[2] = (unsigned long)capacity / tc->heads / tc->sectors; in i91u_biosparam()
2708 if (tc->drv_flags & TCF_DRV_255_63) { in i91u_biosparam()
Dscsi_transport_sas.c280 static int sas_host_setup(struct transport_container *tc, struct device *dev, in sas_host_setup() argument
299 static int sas_host_remove(struct transport_container *tc, struct device *dev, in sas_host_remove() argument
657 static int sas_phy_setup(struct transport_container *tc, struct device *dev, in sas_phy_setup() argument
Dscsi_transport_srp.c97 static int srp_host_setup(struct transport_container *tc, struct device *dev, in srp_host_setup() argument
Dscsi_transport_fc.c354 static int fc_target_setup(struct transport_container *tc, struct device *dev, in fc_target_setup() argument
384 static int fc_host_setup(struct transport_container *tc, struct device *dev, in fc_host_setup() argument
465 static int fc_host_remove(struct transport_container *tc, struct device *dev, in fc_host_remove() argument
Dscsi_transport_iscsi.c1562 static int iscsi_setup_host(struct transport_container *tc, struct device *dev, in iscsi_setup_host() argument
1578 static int iscsi_remove_host(struct transport_container *tc, in iscsi_remove_host() argument
DKconfig684 This is equivalent to the "eata=tc:y" boot option.
1403 This is equivalent to the "u14-34f=tc:y" boot option.
/linux-4.1.27/arch/ia64/hp/sim/boot/
Dfw-emu.c111 fw_efi_get_time (efi_time_t *tm, efi_time_cap_t *tc) in fw_efi_get_time() argument
124 if (tc) in fw_efi_get_time()
125 memset(tc, 0, sizeof(*tc)); in fw_efi_get_time()
/linux-4.1.27/drivers/ide/
Dau1xxx-ide.c237 unsigned int tc = (cur_len < 0xfe00)? cur_len: 0xfe00; in auide_build_dmatable() local
253 sg_phys(sg), tc, flags)) { in auide_build_dmatable()
259 sg_phys(sg), tc, flags)) { in auide_build_dmatable()
265 cur_addr += tc; in auide_build_dmatable()
266 cur_len -= tc; in auide_build_dmatable()
Dpmac.c1493 unsigned int tc = (cur_len < 0xfe00)? cur_len: 0xfe00; in pmac_ide_build_dmatable() local
1501 table->req_count = cpu_to_le16(tc); in pmac_ide_build_dmatable()
1506 cur_addr += tc; in pmac_ide_build_dmatable()
1507 cur_len -= tc; in pmac_ide_build_dmatable()
/linux-4.1.27/drivers/scsi/qla2xxx/
Dqla_inline.h133 struct qla_tgt_cmd *tc) in qla2x00_clean_dsd_pool() argument
140 else if (tc) in qla2x00_clean_dsd_pool()
141 ctx = (struct crc_context *)tc->ctx; in qla2x00_clean_dsd_pool()
Dqla_iocb.c920 uint32_t *dsd, uint16_t tot_dsds, struct qla_tgt_cmd *tc) in qla24xx_walk_and_build_sglist_no_difb() argument
949 } else if (tc) { in qla24xx_walk_and_build_sglist_no_difb()
950 vha = tc->vha; in qla24xx_walk_and_build_sglist_no_difb()
951 prot_int = tc->blk_sz; in qla24xx_walk_and_build_sglist_no_difb()
952 sgx.tot_bytes = tc->bufflen; in qla24xx_walk_and_build_sglist_no_difb()
953 sgx.cur_sg = tc->sg; in qla24xx_walk_and_build_sglist_no_difb()
954 sg_prot = tc->prot_sg; in qla24xx_walk_and_build_sglist_no_difb()
999 &(tc->ctx->dsd_list)); in qla24xx_walk_and_build_sglist_no_difb()
1000 tc->ctx_dsd_alloced = 1; in qla24xx_walk_and_build_sglist_no_difb()
1039 uint16_t tot_dsds, struct qla_tgt_cmd *tc) in qla24xx_walk_and_build_sglist() argument
[all …]
Dqla_init.c1520 void *tc; in qla2x00_alloc_fw_dump() local
1582 tc = dma_zalloc_coherent(&ha->pdev->dev, FCE_SIZE, &tc_dma, in qla2x00_alloc_fw_dump()
1584 if (!tc) { in qla2x00_alloc_fw_dump()
1596 dma_free_coherent(&ha->pdev->dev, FCE_SIZE, tc, in qla2x00_alloc_fw_dump()
1607 ha->fce = tc; in qla2x00_alloc_fw_dump()
1615 tc = dma_zalloc_coherent(&ha->pdev->dev, EFT_SIZE, &tc_dma, in qla2x00_alloc_fw_dump()
1617 if (!tc) { in qla2x00_alloc_fw_dump()
1628 dma_free_coherent(&ha->pdev->dev, EFT_SIZE, tc, in qla2x00_alloc_fw_dump()
1637 ha->eft = tc; in qla2x00_alloc_fw_dump()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_dcb.c661 u8 i, tc, pgid; in qlcnic_dcb_fill_cee_tc_params() local
664 tc = QLC_DCB_GET_TC_PRIO(mbx->prio_tc_map, i); in qlcnic_dcb_fill_cee_tc_params()
665 tc_cfg = &type->tc_cfg[tc]; in qlcnic_dcb_fill_cee_tc_params()
793 qlcnic_dcb_get_pg_tc_cfg_tx(struct net_device *netdev, int tc, u8 *prio, in qlcnic_dcb_get_pg_tc_cfg_tx() argument
808 if (tc < 0 || (tc >= QLC_DCB_MAX_TC)) in qlcnic_dcb_get_pg_tc_cfg_tx()
811 tc_cfg = &type->tc_cfg[tc]; in qlcnic_dcb_get_pg_tc_cfg_tx()
1101 struct qlcnic_dcb_tc_cfg *tc; in qlcnic_dcb_cee_peer_get_pfc() local
1113 tc = &peer->tc_cfg[i]; in qlcnic_dcb_cee_peer_get_pfc()
1114 prio = qlcnic_dcb_prio_count(tc->up_tc_map); in qlcnic_dcb_cee_peer_get_pfc()
/linux-4.1.27/tools/testing/selftests/ftrace/
Dftracetest41 echo `find $1 -name \*.tc | sort`
65 *.tc)
DREADME17 # ./ftracetest test.d/basic3.tc
26 Copy test.d/template to your testcase (whose filename must have *.tc
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dservice.c490 struct ptlrpc_service_thr_conf *tc = &conf->psc_thr; in ptlrpc_server_nthreads_check() local
506 init = max_t(int, init, tc->tc_nthrs_init); in ptlrpc_server_nthreads_check()
510 LASSERT(tc->tc_nthrs_max != 0); in ptlrpc_server_nthreads_check()
512 if (tc->tc_nthrs_user != 0) { in ptlrpc_server_nthreads_check()
516 total = min(tc->tc_nthrs_max * 8, tc->tc_nthrs_user); in ptlrpc_server_nthreads_check()
522 total = tc->tc_nthrs_max; in ptlrpc_server_nthreads_check()
523 if (tc->tc_nthrs_base == 0) { in ptlrpc_server_nthreads_check()
530 nthrs = tc->tc_nthrs_base; in ptlrpc_server_nthreads_check()
539 (tc->tc_nthrs_base >> i) != 0; i++) in ptlrpc_server_nthreads_check()
540 nthrs += tc->tc_nthrs_base >> i; in ptlrpc_server_nthreads_check()
[all …]
/linux-4.1.27/arch/mips/dec/
DMakefile8 obj-$(CONFIG_TC) += tc.o
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_dcb.c407 static void cxgb4_getpgtccfg(struct net_device *dev, int tc, in cxgb4_getpgtccfg() argument
429 *pgid = (be32_to_cpu(pcmd.u.dcb.pgid.pgid) >> (tc * 4)) & 0xf; in cxgb4_getpgtccfg()
444 *up_tc_map = (1 << tc); in cxgb4_getpgtccfg()
451 static void cxgb4_getpgtccfg_tx(struct net_device *dev, int tc, in cxgb4_getpgtccfg_tx() argument
456 return cxgb4_getpgtccfg(dev, (7 - tc), prio_type, pgid, bw_per, in cxgb4_getpgtccfg_tx()
461 static void cxgb4_getpgtccfg_rx(struct net_device *dev, int tc, in cxgb4_getpgtccfg_rx() argument
466 return cxgb4_getpgtccfg(dev, (7 - tc), prio_type, pgid, bw_per, in cxgb4_getpgtccfg_rx()
470 static void cxgb4_setpgtccfg_tx(struct net_device *dev, int tc, in cxgb4_setpgtccfg_tx() argument
477 int fw_tc = 7 - tc; in cxgb4_setpgtccfg_tx()
Dcxgb4.h1271 unsigned int rxqi, unsigned int rxq, unsigned int tc,
Dt4_hw.c4461 unsigned int rxqi, unsigned int rxq, unsigned int tc, in t4_cfg_pfvf() argument
4477 c.tc_to_nexactf = htonl(FW_PFVF_CMD_TC_V(tc) | FW_PFVF_CMD_NVI_V(vi) | in t4_cfg_pfvf()
/linux-4.1.27/drivers/tty/vt/
Dvt.c2167 int c, tc, ok, n = 0, draw_x = -1; in do_con_write() local
2220 tc = c; in do_con_write()
2291 tc = c; in do_con_write()
2293 tc = vc_translate(vc, c); in do_con_write()
2296 param.c = tc; in do_con_write()
2311 ok = tc && (c >= 32 || in do_con_write()
2323 tc = conv_uni_to_pc(vc, tc); in do_con_write()
2324 if (tc & ~charmask) { in do_con_write()
2325 if (tc == -1 || tc == -2) { in do_con_write()
2335 tc = c; in do_con_write()
[all …]
/linux-4.1.27/drivers/firmware/efi/
Druntime-wrappers.c98 static efi_status_t virt_efi_get_time(efi_time_t *tm, efi_time_cap_t *tc) in virt_efi_get_time() argument
105 status = efi_call_virt(get_time, tm, tc); in virt_efi_get_time()
/linux-4.1.27/arch/powerpc/kernel/
Dswsusp_asm64.S81 .tc swsusp_save_area[TC],swsusp_save_area
83 .tc restore_pblist[TC],restore_pblist
Dvector.S315 .tc FD_0_0[TC],0
317 .tc FD_3ff00000_0[TC],0x3ff0000000000000 /* 1.0 */
319 .tc FD_3fe00000_0[TC],0x3fe0000000000000 /* 0.5 */
Dmisc_64.S56 .tc ppc64_caches[TC],ppc64_caches
Dhead_64.S171 .tc ID_72656773_68657265[TC],0x7265677368657265
Dentry_64.S43 .tc sys_call_table[TC],sys_call_table
47 .tc ID_EXC_MARKER[TC],STACK_FRAME_REGS_MARKER
Dexceptions-64e.S507 .tc ID_EXC_MARKER[TC],STACK_FRAME_REGS_MARKER
/linux-4.1.27/net/core/
Dflow_dissector.c351 u8 tc = netdev_get_prio_tc_map(dev, skb->priority); in __skb_tx_hash() local
352 qoffset = dev->tc_to_txq[tc].offset; in __skb_tx_hash()
353 qcount = dev->tc_to_txq[tc].count; in __skb_tx_hash()
Ddev.c1877 struct netdev_tc_txq *tc = &dev->tc_to_txq[0]; in netif_setup_tc() local
1880 if (tc->offset + tc->count > txq) { in netif_setup_tc()
1890 tc = &dev->tc_to_txq[q]; in netif_setup_tc()
1891 if (tc->offset + tc->count > txq) { in netif_setup_tc()
/linux-4.1.27/drivers/net/ethernet/sfc/
Dtx.c570 unsigned tc; in efx_setup_tc() local
579 for (tc = 0; tc < num_tc; tc++) { in efx_setup_tc()
580 net_dev->tc_to_txq[tc].offset = tc * efx->n_tx_channels; in efx_setup_tc()
581 net_dev->tc_to_txq[tc].count = efx->n_tx_channels; in efx_setup_tc()
/linux-4.1.27/drivers/net/ethernet/intel/igb/
Digb_ptp.c180 ns = timecounter_cyc2time(&adapter->tc, systim); in igb_ptp_systim_to_hwtstamp()
262 timecounter_adjtime(&igb->tc, delta); in igb_ptp_adjtime_82576()
296 ns = timecounter_read(&igb->tc); in igb_ptp_gettime_82576()
333 timecounter_init(&igb->tc, &igb->cc, ns); in igb_ptp_settime_82576()
1063 timecounter_init(&adapter->tc, &adapter->cc, in igb_ptp_init()
1177 timecounter_init(&adapter->tc, &adapter->cc, in igb_ptp_reset()
Digb.h441 struct timecounter tc; member
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_main.c91 static int tc = TC_DEFAULT; variable
92 module_param(tc, int, S_IRUGO | S_IWUSR);
93 MODULE_PARM_DESC(tc, "DMA threshold control value");
1286 priv->hw->dma->dma_mode(priv->ioaddr, tc, tc, rxfifosz); in stmmac_dma_operation_mode()
1299 priv->hw->dma->dma_mode(priv->ioaddr, tc, SF_DMA_MODE, in stmmac_dma_operation_mode()
1464 (tc <= 256)) { in stmmac_dma_interrupt()
1465 tc += 64; in stmmac_dma_interrupt()
1467 priv->hw->dma->dma_mode(priv->ioaddr, tc, tc, in stmmac_dma_interrupt()
1470 priv->hw->dma->dma_mode(priv->ioaddr, tc, in stmmac_dma_interrupt()
1472 priv->xstats.threshold = tc; in stmmac_dma_interrupt()
[all …]
/linux-4.1.27/kernel/trace/
Dblktrace.c1061 int tc = t->action >> BLK_TC_SHIFT; in fill_rwbs() local
1068 if (tc & BLK_TC_FLUSH) in fill_rwbs()
1071 if (tc & BLK_TC_DISCARD) in fill_rwbs()
1073 else if (tc & BLK_TC_WRITE) in fill_rwbs()
1080 if (tc & BLK_TC_FUA) in fill_rwbs()
1082 if (tc & BLK_TC_AHEAD) in fill_rwbs()
1084 if (tc & BLK_TC_SYNC) in fill_rwbs()
1086 if (tc & BLK_TC_META) in fill_rwbs()
/linux-4.1.27/drivers/ata/
Dpata_mpc52xx.c462 unsigned int tc = min(cur_len, MAX_DMA_BUFFER_SIZE); in mpc52xx_ata_build_dmatable() local
467 bd->status = tc; in mpc52xx_ata_build_dmatable()
472 bd->status = tc; in mpc52xx_ata_build_dmatable()
480 cur_addr += tc; in mpc52xx_ata_build_dmatable()
481 cur_len -= tc; in mpc52xx_ata_build_dmatable()
/linux-4.1.27/net/ipv6/
Ddatagram.c916 int tc; in ip6_datagram_send_ctl() local
922 tc = *(int *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
923 if (tc < -1 || tc > 0xff) in ip6_datagram_send_ctl()
927 *tclass = tc; in ip6_datagram_send_ctl()
/linux-4.1.27/sound/pci/rme9652/
Dhdspm.c4113 unsigned int tc[4] = { 0, 0, 0, 0}; in hdspm_tco_write() local
4117 tc[2] |= HDSPM_TCO2_set_input_MSB; in hdspm_tco_write()
4120 tc[2] |= HDSPM_TCO2_set_input_LSB; in hdspm_tco_write()
4128 tc[1] |= HDSPM_TCO1_LTC_Format_LSB; in hdspm_tco_write()
4131 tc[1] |= HDSPM_TCO1_LTC_Format_MSB; in hdspm_tco_write()
4134 tc[1] |= HDSPM_TCO1_LTC_Format_MSB + in hdspm_tco_write()
4138 tc[1] |= HDSPM_TCO1_LTC_Format_LSB + in hdspm_tco_write()
4142 tc[1] |= HDSPM_TCO1_LTC_Format_LSB + in hdspm_tco_write()
4152 tc[2] |= HDSPM_TCO2_WCK_IO_ratio_LSB; in hdspm_tco_write()
4155 tc[2] |= HDSPM_TCO2_WCK_IO_ratio_MSB; in hdspm_tco_write()
[all …]
/linux-4.1.27/arch/s390/include/asm/
Detr.h89 unsigned int tc : 4; /* ETR type code */ member
/linux-4.1.27/drivers/base/
Dtransport_class.c68 static int anon_transport_dummy_function(struct transport_container *tc, in anon_transport_dummy_function() argument
/linux-4.1.27/arch/powerpc/lib/
Dcopypage_64.S16 .tc ppc64_caches[TC],ppc64_caches
Dstring_64.S26 .tc ppc64_caches[TC],ppc64_caches
/linux-4.1.27/arch/ia64/kernel/
Dmca_drv.c402 if (psp->tc || psp->cc || psp->rc || psp->uc) in is_mca_global()
679 if (psp->tc && !(psp->cc || psp->bc || psp->rc || psp->uc)) in recover_from_processor_error()
Defi.c63 prefix##_get_time (efi_time_t *tm, efi_time_cap_t *tc) \
69 if (tc) \
70 atc = adjust_arg(tc); \
/linux-4.1.27/arch/mips/pci/
Dops-tx3927.c189 tx3927_pcicptr->tc = TX3927_PCIC_TC_OF8E | TX3927_PCIC_TC_IF8E; in tx3927_pcic_setup()
/linux-4.1.27/include/net/9p/
Dclient.h116 struct p9_fcall *tc; member
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/
Dxgbe-dev.c1348 unsigned int tc, prio; in xgbe_config_dcb_pfc() local
1353 for (tc = 0; tc < pdata->hw_feat.tc_cnt; tc++) { in xgbe_config_dcb_pfc()
1357 (ets->prio_tc[prio] == tc)) in xgbe_config_dcb_pfc()
1362 DBGPR(" TC%u PFC mask=%#x\n", tc, mask); in xgbe_config_dcb_pfc()
1363 reg = MTL_TCPM0R + (MTL_TCPM_INC * (tc / MTL_TCPM_TC_PER_REG)); in xgbe_config_dcb_pfc()
1366 reg_val &= ~(0xff << ((tc % MTL_TCPM_TC_PER_REG) << 3)); in xgbe_config_dcb_pfc()
1367 reg_val |= (mask << ((tc % MTL_TCPM_TC_PER_REG) << 3)); in xgbe_config_dcb_pfc()
Dxgbe-drv.c1697 static int xgbe_setup_tc(struct net_device *netdev, u8 tc) in xgbe_setup_tc() argument
1703 if (tc && (tc != pdata->hw_feat.tc_cnt)) in xgbe_setup_tc()
1706 if (tc) { in xgbe_setup_tc()
1707 netdev_set_num_tc(netdev, tc); in xgbe_setup_tc()
1708 for (i = 0, queue = 0, offset = 0; i < tc; i++) { in xgbe_setup_tc()
/linux-4.1.27/Documentation/arm/OMAP/
Domap_pm88 (*pdata->set_max_mpu_wakeup_lat)(dev, tc);
94 /* total wakeup latency in this example: (tc + td) */
/linux-4.1.27/arch/x86/platform/efi/
Defi_64.c394 static efi_status_t efi_thunk_get_time(efi_time_t *tm, efi_time_cap_t *tc) in efi_thunk_get_time() argument
402 phys_tc = virt_to_phys(tc); in efi_thunk_get_time()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_common.h202 unsigned int tc; /* PCI-E traffic class */ member
Dt4vf_hw.c806 vfres->tc = FW_PFVF_CMD_TC_G(word); in t4vf_get_vfres()
Dcxgb4vf_main.c2043 S("Traffic Class", "%d", tc); in resources_show()
/linux-4.1.27/drivers/
DMakefile92 obj-$(CONFIG_TC) += tc/
/linux-4.1.27/drivers/media/platform/vivid/
Dvivid-vid-cap.c210 struct v4l2_timecode *tc = &vb->v4l2_buf.timecode; in vid_cap_buf_finish() local
224 tc->type = (fps == 30) ? V4L2_TC_TYPE_30FPS : V4L2_TC_TYPE_25FPS; in vid_cap_buf_finish()
225 tc->flags = 0; in vid_cap_buf_finish()
226 tc->frames = seq % fps; in vid_cap_buf_finish()
227 tc->seconds = (seq / fps) % 60; in vid_cap_buf_finish()
228 tc->minutes = (seq / (60 * fps)) % 60; in vid_cap_buf_finish()
229 tc->hours = (seq / (60 * 60 * fps)) % 24; in vid_cap_buf_finish()
/linux-4.1.27/drivers/dma/
Damba-pl08x.c1809 u32 mask = 0, err, tc, i; in pl08x_irq() local
1818 tc = readl(pl08x->base + PL080_TC_STATUS); in pl08x_irq()
1819 if (tc) in pl08x_irq()
1820 writel(tc, pl08x->base + PL080_TC_CLEAR); in pl08x_irq()
1822 if (!err && !tc) in pl08x_irq()
1826 if (((1 << i) & err) || ((1 << i) & tc)) { in pl08x_irq()
Ds3c24xx-dma.c382 u32 tc = readl(phy->base + S3C24XX_DSTAT) & S3C24XX_DSTAT_CURRTC_MASK; in s3c24xx_dma_getbytes_chan() local
384 return tc * txd->width; in s3c24xx_dma_getbytes_chan()
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k_netdev.c1152 int fm10k_setup_tc(struct net_device *dev, u8 tc) in fm10k_setup_tc() argument
1157 if (tc && (interface->hw.mac.type != fm10k_mac_pf)) in fm10k_setup_tc()
1161 if (tc > 8) in fm10k_setup_tc()
1177 netdev_set_num_tc(dev, tc); in fm10k_setup_tc()
Dfm10k.h479 int fm10k_setup_tc(struct net_device *dev, u8 tc);
/linux-4.1.27/drivers/video/fbdev/
Dpmag-ba-fb.c265 MODULE_DEVICE_TABLE(tc, pmagbafb_tc_table);
Dpmagb-b-fb.c383 MODULE_DEVICE_TABLE(tc, pmagbbfb_tc_table);
Dtgafb.c130 MODULE_DEVICE_TABLE(tc, tgafb_tc_table);
/linux-4.1.27/arch/mips/include/asm/txx9/
Dtx3927.h98 volatile unsigned long tc; /* +90 */ member
/linux-4.1.27/drivers/media/v4l2-core/
Dv4l2-ioctl.c437 const struct v4l2_timecode *tc = &p->timecode; in v4l_print_buffer() local
469 tc->hours, tc->minutes, tc->seconds, in v4l_print_buffer()
470 tc->type, tc->flags, tc->frames, *(__u32 *)tc->userbits); in v4l_print_buffer()
/linux-4.1.27/drivers/infiniband/hw/mthca/
Dmthca_cmd.c665 int ts = 0, tc = 0; in mthca_map_cmd() local
700 ++tc; in mthca_map_cmd()
718 mthca_dbg(dev, "Mapped %d chunks/%d KB for FW.\n", tc, ts); in mthca_map_cmd()
721 mthca_dbg(dev, "Mapped %d chunks/%d KB for ICM aux.\n", tc, ts); in mthca_map_cmd()
725 tc, ts, (unsigned long long) virt - (ts << 10)); in mthca_map_cmd()
/linux-4.1.27/drivers/md/bcache/
Dsuper.c1935 struct cache_set *c, *tc; in bch_is_open_backing() local
1938 list_for_each_entry_safe(c, tc, &bch_cache_sets, list) in bch_is_open_backing()
1949 struct cache_set *c, *tc; in bch_is_open_cache() local
1953 list_for_each_entry_safe(c, tc, &bch_cache_sets, list) in bch_is_open_cache()
2049 struct cache_set *c, *tc; in bcache_reboot() local
2060 list_for_each_entry_safe(c, tc, &bch_cache_sets, list) in bcache_reboot()
/linux-4.1.27/sound/pci/hda/
Dhda_controller.c230 struct timecounter *tc = &azx_dev->azx_tc; in azx_timecounter_init() local
251 timecounter_init(tc, cc, nsec); in azx_timecounter_init()
257 tc->cycle_last = last; in azx_timecounter_init()
/linux-4.1.27/drivers/net/hamradio/
Dscc.c718 static inline void set_brg(struct scc_channel *scc, unsigned int tc) in set_brg() argument
721 wr(scc,R12,tc & 255); /* brg rate LOW */ in set_brg()
722 wr(scc,R13,tc >> 8); /* brg rate HIGH */ in set_brg()
/linux-4.1.27/Documentation/laptops/
Dsonypi.txt144 - some models with the nvidia card (geforce go 6200 tc) uses a
/linux-4.1.27/arch/ia64/include/asm/
Dpal.h479 tc : 1, /* TLB check */ member
680 #define pmci_proc_tlb_check pme_processor.tc
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_verbs.c731 u64 ta, tb, tc, td, te; in ipath_ib_timer() local
735 &tc, &td, &te); in ipath_ib_timer()
739 dev->ipath_spkts = tc - dev->ipath_spkts; in ipath_ib_timer()
/linux-4.1.27/Documentation/isdn/
DREADME.x25125 x25d[tc]e uses fixed lap_b addresses. With x75i, the side which
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_iba6120.c2967 u64 ta, tb, tc, td, te; in pma_6120_timer() local
2970 qib_snapshot_counters(ppd, &ta, &tb, &tc, &td, &te); in pma_6120_timer()
2974 cs->spkts = tc - cs->spkts; in pma_6120_timer()
/linux-4.1.27/tools/testing/ktest/
Dktest.pl3143 my ($tc, $nc, $gc, $bc) = @_;
3145 my %tmp_config = %{$tc};
/linux-4.1.27/drivers/net/ethernet/amd/
Ddeclance.c1330 MODULE_DEVICE_TABLE(tc, dec_lance_tc_table);
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dmsgbuf.c180 u8 tc; member
/linux-4.1.27/Documentation/ia64/
Derr_inject.txt248 tc : 1,
/linux-4.1.27/drivers/net/fddi/
Ddefxx.c3798 MODULE_DEVICE_TABLE(tc, dfx_tc_table);
/linux-4.1.27/net/netfilter/
DKconfig1327 in tc world.
/linux-4.1.27/Documentation/filesystems/
Dcoda.txt1375 44..2277.. pprreeffeettcchh
/linux-4.1.27/
DCREDITS2405 D: tc: HFSC scheduler
DMAINTAINERS10141 F: drivers/tc/
10142 F: include/linux/tc.h