Home
last modified time | relevance | path

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

12345

/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 …]
/drivers/ntb/test/
Dntb_tool.c129 struct tool_ctx *tc = ctx; in tool_link_event() local
134 up = ntb_link_is_up(tc->ntb, &speed, &width); in tool_link_event()
136 dev_dbg(&tc->ntb->dev, "link is %s speed %d width %d\n", in tool_link_event()
142 struct tool_ctx *tc = ctx; in tool_db_event() local
145 db_mask = ntb_db_vector_mask(tc->ntb, vec); in tool_db_event()
146 db_bits = ntb_db_read(tc->ntb); in tool_db_event()
148 dev_dbg(&tc->ntb->dev, "doorbell vec %d mask %#llx bits %#llx\n", in tool_db_event()
157 static ssize_t tool_dbfn_read(struct tool_ctx *tc, char __user *ubuf, in tool_dbfn_read() argument
175 db_read_fn(tc->ntb)); in tool_dbfn_read()
184 static ssize_t tool_dbfn_write(struct tool_ctx *tc, in tool_dbfn_write() argument
[all …]
/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);
393 static int issue_discard(struct thin_c *tc, dm_block_t data_b, dm_block_t data_e, in issue_discard() argument
396 sector_t s = block_to_sectors(tc->pool, data_b); in issue_discard()
397 sector_t len = block_to_sectors(tc->pool, data_e - data_b); in issue_discard()
399 return __blkdev_issue_discard_async(tc->pool_dev->bdev, s, len, in issue_discard()
549 struct thin_c *tc; member
573 static void error_thin_bio_list(struct thin_c *tc, struct bio_list *master, int error) in error_thin_bio_list() argument
580 spin_lock_irqsave(&tc->lock, flags); in error_thin_bio_list()
582 spin_unlock_irqrestore(&tc->lock, flags); in error_thin_bio_list()
[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()
/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 …]
/drivers/clocksource/
Dtcb_clksrc.c191 static int __init setup_clkevents(struct atmel_tc *tc, int clk32k_divisor_idx) in setup_clkevents() argument
194 struct clk *t2_clk = tc->clk[2]; in setup_clkevents()
195 int irq = tc->irq[2]; in setup_clkevents()
197 ret = clk_prepare_enable(tc->slow_clk); in setup_clkevents()
204 clk_disable_unprepare(tc->slow_clk); in setup_clkevents()
210 clkevt.regs = tc->regs; in setup_clkevents()
220 clk_disable_unprepare(tc->slow_clk); in setup_clkevents()
231 static int __init setup_clkevents(struct atmel_tc *tc, int clk32k_divisor_idx) in setup_clkevents() argument
239 static void __init tcb_setup_dual_chan(struct atmel_tc *tc, int mck_divisor_idx) in tcb_setup_dual_chan() argument
267 static void __init tcb_setup_single_chan(struct atmel_tc *tc, int mck_divisor_idx) in tcb_setup_single_chan() argument
[all …]
/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 …]
/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
159 &tsc->tc.pressure); in tps6507x_ts_poll()
163 pendown = tsc->tc.pressure > tsc->min_pressure; in tps6507x_ts_poll()
182 &tsc->tc.x); in tps6507x_ts_poll()
187 &tsc->tc.y); in tps6507x_ts_poll()
191 input_report_abs(input_dev, ABS_X, tsc->tc.x); in tps6507x_ts_poll()
192 input_report_abs(input_dev, ABS_Y, tsc->tc.y); in tps6507x_ts_poll()
193 input_report_abs(input_dev, ABS_PRESSURE, tsc->tc.pressure); in tps6507x_ts_poll()
Dads7846.c91 struct ts_event tc; member
713 packet->tc.ignore = true; in ads7846_read_state()
731 packet->tc.ignore = true; in ads7846_read_state()
737 packet->tc.ignore = false; in ads7846_read_state()
762 x = *(u16 *)packet->tc.x_buf; in ads7846_report_state()
763 y = *(u16 *)packet->tc.y_buf; in ads7846_report_state()
767 x = packet->tc.x; in ads7846_report_state()
768 y = packet->tc.y; in ads7846_report_state()
769 z1 = packet->tc.z1; in ads7846_report_state()
770 z2 = packet->tc.z2; in ads7846_report_state()
[all …]
/drivers/net/ethernet/qlogic/qed/
Dqed_init_fw_funcs.c110 #define PHYS_VOQ(port, tc, max_phy_tcs_pr_port) ((port) * \ argument
112 + (tc))
115 #define VOQ(port, tc, max_phy_tcs_pr_port) \ argument
116 ((tc) < \
118 tc, \
224 u8 tc, voq, port_id; in qed_cmdq_lines_rt_init() local
242 for (tc = 0; tc < phys_tcs; tc++) { in qed_cmdq_lines_rt_init()
243 voq = PHYS_VOQ(port_id, tc, in qed_cmdq_lines_rt_init()
262 u8 tc, voq, port_id; in qed_btb_blocks_rt_init() local
288 for (tc = 0; tc < phys_tcs; tc++) { in qed_btb_blocks_rt_init()
[all …]
/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 …]
/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()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_main.c533 int tc, in mlx5e_create_sq() argument
566 txq_ix = c->ix + tc * priv->params.num_channels; in mlx5e_create_sq()
572 sq->tc = tc; in mlx5e_create_sq()
621 MLX5_SET(sqc, sqc, tis_num_0, priv->tisn[sq->tc]); in mlx5e_enable_sq()
622 MLX5_SET(sqc, sqc, cqn, c->sq[sq->tc].cq.mcq.cqn); in mlx5e_enable_sq()
681 int tc, in mlx5e_open_sq() argument
687 err = mlx5e_create_sq(c, tc, param, sq); in mlx5e_open_sq()
894 int tc; in mlx5e_open_tx_cqs() local
896 for (tc = 0; tc < c->num_tc; tc++) { in mlx5e_open_tx_cqs()
897 err = mlx5e_open_cq(c, &cparam->tx_cq, &c->sq[tc].cq, in mlx5e_open_tx_cqs()
[all …]
Den_ethtool.c187 int i, j, tc, idx = 0; in mlx5e_get_strings() local
215 for (tc = 0; tc < priv->params.num_tc; tc++) in mlx5e_get_strings()
219 "tx%d_%d_%s", i, tc, in mlx5e_get_strings()
229 int i, j, tc, idx = 0; in mlx5e_get_ethtool_stats() local
253 for (tc = 0; tc < priv->params.num_tc; tc++) in mlx5e_get_ethtool_stats()
257 ((u64 *)&priv->channel[i]->sq[tc].stats)[j]; in mlx5e_get_ethtool_stats()
421 int tc; in mlx5e_set_coalesce() local
439 for (tc = 0; tc < c->num_tc; tc++) { in mlx5e_set_coalesce()
441 &c->sq[tc].cq.mcq, in mlx5e_set_coalesce()
/drivers/net/ethernet/qlogic/qede/
Dqede_main.c714 u8 tc; in qede_has_tx_work() local
716 for (tc = 0; tc < fp->edev->num_tc; tc++) in qede_has_tx_work()
717 if (qede_txq_has_work(&fp->txqs[tc])) in qede_has_tx_work()
977 u8 tc; in qede_poll() local
979 for (tc = 0; tc < edev->num_tc; tc++) in qede_poll()
980 if (qede_txq_has_work(&fp->txqs[tc])) in qede_poll()
981 qede_tx_int(edev, &fp->txqs[tc]); in qede_poll()
1755 int tc; in qede_free_mem_fp() local
1761 for (tc = 0; tc < edev->num_tc; tc++) in qede_free_mem_fp()
1762 qede_free_mem_txq(edev, &fp->txqs[tc]); in qede_free_mem_fp()
[all …]
/drivers/staging/fbtft/
Dfb_pcd8544.c35 static unsigned tc; variable
36 module_param(tc, uint, 0);
37 MODULE_PARM_DESC(tc, "TC[1:0] Temperature coefficient: 0-3 (default: 0)");
62 write_reg(par, 0x04 | (tc & 0x3)); in init_display()
/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
946 tc = kmalloc (sizeof (struct fs_transmit_config), GFP_KERNEL); in fs_open()
948 tc, sizeof (struct fs_transmit_config)); in fs_open()
949 if (!tc) { in fs_open()
964 tc->flags = 0 in fs_open()
972 tc->flags = 0 in fs_open()
[all …]
/drivers/net/ethernet/freescale/
Dfec_ptp.c150 timecounter_read(&fep->tc); in fec_ptp_enable_pps()
164 ns = timecounter_cyc2time(&fep->tc, tempval); in fec_ptp_enable_pps()
286 timecounter_init(&fep->tc, &fep->cc, ktime_to_ns(ktime_get_real())); in fec_ptp_start_cyclecounter()
357 timecounter_read(&fep->tc); in fec_ptp_adjfreq()
378 timecounter_adjtime(&fep->tc, delta); in fec_ptp_adjtime()
406 ns = timecounter_read(&adapter->tc); in fec_ptp_gettime()
448 timecounter_init(&fep->tc, &fep->cc, ns); in fec_ptp_settime()
551 ns = timecounter_read(&fep->tc); in fec_time_keep()
/drivers/net/ethernet/intel/i40e/
Di40e_dcb.c609 u8 i, tc, err; in i40e_cee_to_dcb_v1_config() local
615 tc = (u8)((cee_cfg->oper_prio_tc[i] & in i40e_cee_to_dcb_v1_config()
618 dcbcfg->etscfg.prioritytable[i*2] = tc; in i40e_cee_to_dcb_v1_config()
619 tc = (u8)((cee_cfg->oper_prio_tc[i] & in i40e_cee_to_dcb_v1_config()
622 dcbcfg->etscfg.prioritytable[i*2 + 1] = tc; in i40e_cee_to_dcb_v1_config()
687 u8 i, tc, err, sync, oper; in i40e_cee_to_dcb_config() local
696 tc = (u8)((cee_cfg->oper_prio_tc[i] & in i40e_cee_to_dcb_config()
699 dcbcfg->etscfg.prioritytable[i * 2] = tc; in i40e_cee_to_dcb_config()
700 tc = (u8)((cee_cfg->oper_prio_tc[i] & in i40e_cee_to_dcb_config()
703 dcbcfg->etscfg.prioritytable[i * 2 + 1] = tc; in i40e_cee_to_dcb_config()
/drivers/tc/
DMakefile7 obj-$(CONFIG_TC) += tc.o tc-driver.o
/drivers/staging/rdma/ehca/
Dehca_sqp.c130 u32 tc:8; member
138 u32 tc:8; member
194 tcslfl->tc = vertcfl->tc; in ehca_process_perf()
/drivers/net/ethernet/intel/e1000e/
Dptp.c95 timecounter_adjtime(&adapter->tc, delta); in e1000e_phc_adjtime()
120 ns = timecounter_cyc2time(&adapter->tc, cycles); in e1000e_phc_gettime()
149 timecounter_init(&adapter->tc, &adapter->cc, ns); in e1000e_phc_settime()
180 ns = timecounter_read(&adapter->tc); in e1000e_systim_overflow_work()

12345