Home
last modified time | relevance | path

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

1234567

/drivers/gpu/drm/bridge/
Dtc358767.c283 static inline int tc_poll_timeout(struct tc_data *tc, unsigned int addr, in tc_poll_timeout() argument
290 return regmap_read_poll_timeout(tc->regmap, addr, val, in tc_poll_timeout()
295 static int tc_aux_wait_busy(struct tc_data *tc) in tc_aux_wait_busy() argument
297 return tc_poll_timeout(tc, DP0_AUXSTATUS, AUX_BUSY, 0, 1000, 100000); in tc_aux_wait_busy()
300 static int tc_aux_write_data(struct tc_data *tc, const void *data, in tc_aux_write_data() argument
308 ret = regmap_raw_write(tc->regmap, DP0_AUXWDATA(0), auxwdata, count); in tc_aux_write_data()
315 static int tc_aux_read_data(struct tc_data *tc, void *data, size_t size) in tc_aux_read_data() argument
320 ret = regmap_raw_read(tc->regmap, DP0_AUXRDATA(0), auxrdata, count); in tc_aux_read_data()
344 struct tc_data *tc = aux_to_tc(aux); in tc_aux_transfer() local
350 ret = tc_aux_wait_busy(tc); in tc_aux_transfer()
[all …]
/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 …]
/drivers/misc/
Datmel_tclib.c46 struct atmel_tc *tc; in atmel_tc_alloc() local
50 list_for_each_entry(tc, &tc_list, node) { in atmel_tc_alloc()
51 if (tc->allocated) in atmel_tc_alloc()
54 if ((tc->pdev->dev.of_node && tc->id == block) || in atmel_tc_alloc()
55 (tc->pdev->id == block)) { in atmel_tc_alloc()
56 pdev = tc->pdev; in atmel_tc_alloc()
57 tc->allocated = true; in atmel_tc_alloc()
63 return pdev ? tc : NULL; in atmel_tc_alloc()
74 void atmel_tc_free(struct atmel_tc *tc) in atmel_tc_free() argument
77 if (tc->allocated) in atmel_tc_free()
[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);
380 struct thin_c *tc; member
386 static void begin_discard(struct discard_op *op, struct thin_c *tc, struct bio *parent) in begin_discard() argument
390 op->tc = tc; in begin_discard()
398 struct thin_c *tc = op->tc; in issue_discard() local
399 sector_t s = block_to_sectors(tc->pool, data_b); in issue_discard()
400 sector_t len = block_to_sectors(tc->pool, data_e - data_b); in issue_discard()
402 return __blkdev_issue_discard(tc->pool_dev->bdev, s, len, in issue_discard()
585 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()
/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 …]
Dixgbe_dcb_nl.c167 static void ixgbe_dcbnl_set_pg_tc_cfg_tx(struct net_device *netdev, int tc, in ixgbe_dcbnl_set_pg_tc_cfg_tx() argument
174 adapter->temp_dcb_cfg.tc_config[tc].path[0].prio_type = prio; in ixgbe_dcbnl_set_pg_tc_cfg_tx()
176 adapter->temp_dcb_cfg.tc_config[tc].path[0].bwg_id = bwg_id; in ixgbe_dcbnl_set_pg_tc_cfg_tx()
178 adapter->temp_dcb_cfg.tc_config[tc].path[0].bwg_percent = in ixgbe_dcbnl_set_pg_tc_cfg_tx()
181 adapter->temp_dcb_cfg.tc_config[tc].path[0].up_to_tc_bitmap = in ixgbe_dcbnl_set_pg_tc_cfg_tx()
193 static void ixgbe_dcbnl_set_pg_tc_cfg_rx(struct net_device *netdev, int tc, in ixgbe_dcbnl_set_pg_tc_cfg_rx() argument
200 adapter->temp_dcb_cfg.tc_config[tc].path[1].prio_type = prio; in ixgbe_dcbnl_set_pg_tc_cfg_rx()
202 adapter->temp_dcb_cfg.tc_config[tc].path[1].bwg_id = bwg_id; in ixgbe_dcbnl_set_pg_tc_cfg_rx()
204 adapter->temp_dcb_cfg.tc_config[tc].path[1].bwg_percent = in ixgbe_dcbnl_set_pg_tc_cfg_rx()
207 adapter->temp_dcb_cfg.tc_config[tc].path[1].up_to_tc_bitmap = in ixgbe_dcbnl_set_pg_tc_cfg_rx()
[all …]
Dixgbe_lib.c90 static void ixgbe_get_first_reg_idx(struct ixgbe_adapter *adapter, u8 tc, in ixgbe_get_first_reg_idx() argument
102 *tx = tc << 2; /* 0, 4, 8, 12, 16, 20, 24, 28 */ in ixgbe_get_first_reg_idx()
103 *rx = tc << 3; /* 0, 8, 16, 24, 32, 40, 48, 56 */ in ixgbe_get_first_reg_idx()
116 *rx = tc << 4; in ixgbe_get_first_reg_idx()
117 if (tc < 3) in ixgbe_get_first_reg_idx()
118 *tx = tc << 5; /* 0, 32, 64 */ in ixgbe_get_first_reg_idx()
119 else if (tc < 5) in ixgbe_get_first_reg_idx()
120 *tx = (tc + 2) << 4; /* 80, 96 */ in ixgbe_get_first_reg_idx()
122 *tx = (tc + 8) << 3; /* 104, 112, 120 */ in ixgbe_get_first_reg_idx()
129 *rx = tc << 5; in ixgbe_get_first_reg_idx()
[all …]
/drivers/clocksource/
Dtimer-atmel-tcb.c259 static int __init setup_clkevents(struct atmel_tc *tc, int clk32k_divisor_idx) in setup_clkevents() argument
262 struct clk *t2_clk = tc->clk[2]; in setup_clkevents()
263 int irq = tc->irq[2]; in setup_clkevents()
265 ret = clk_prepare_enable(tc->slow_clk); in setup_clkevents()
272 clk_disable_unprepare(tc->slow_clk); in setup_clkevents()
278 clkevt.regs = tc->regs; in setup_clkevents()
288 clk_disable_unprepare(tc->slow_clk); in setup_clkevents()
299 static int __init setup_clkevents(struct atmel_tc *tc, int clk32k_divisor_idx) in setup_clkevents() argument
307 static void __init tcb_setup_dual_chan(struct atmel_tc *tc, int mck_divisor_idx) in tcb_setup_dual_chan() argument
335 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.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 …]
/drivers/input/touchscreen/
Dtsc2007_core.c52 static void tsc2007_read_values(struct tsc2007 *tsc, struct ts_event *tc) in tsc2007_read_values() argument
55 tc->y = tsc2007_xfer(tsc, READ_Y); in tsc2007_read_values()
58 tc->x = tsc2007_xfer(tsc, READ_X); in tsc2007_read_values()
61 tc->z1 = tsc2007_xfer(tsc, READ_Z1); in tsc2007_read_values()
62 tc->z2 = tsc2007_xfer(tsc, READ_Z2); in tsc2007_read_values()
68 u32 tsc2007_calculate_resistance(struct tsc2007 *tsc, struct ts_event *tc) in tsc2007_calculate_resistance() argument
73 if (tc->x == MAX_12BIT) in tsc2007_calculate_resistance()
74 tc->x = 0; in tsc2007_calculate_resistance()
76 if (likely(tc->x && tc->z1)) { in tsc2007_calculate_resistance()
78 rt = tc->z2 - tc->z1; in tsc2007_calculate_resistance()
[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()
Dtsc2007_iio.c71 struct ts_event tc; in tsc2007_read_raw() local
73 tc.x = tsc2007_xfer(tsc, READ_X); in tsc2007_read_raw()
74 tc.z1 = tsc2007_xfer(tsc, READ_Z1); in tsc2007_read_raw()
75 tc.z2 = tsc2007_xfer(tsc, READ_Z2); in tsc2007_read_raw()
76 *val = tsc2007_calculate_resistance(tsc, &tc); in tsc2007_read_raw()
Dads7846.c88 struct ts_event tc; member
712 packet->tc.ignore = true; in ads7846_read_state()
730 packet->tc.ignore = true; in ads7846_read_state()
736 packet->tc.ignore = false; in ads7846_read_state()
761 x = *(u16 *)packet->tc.x_buf; in ads7846_report_state()
762 y = *(u16 *)packet->tc.y_buf; in ads7846_report_state()
766 x = packet->tc.x; in ads7846_report_state()
767 y = packet->tc.y; in ads7846_report_state()
768 z1 = packet->tc.z1; in ads7846_report_state()
769 z2 = packet->tc.z2; in ads7846_report_state()
[all …]
/drivers/net/ethernet/qlogic/qed/
Dqed_init_fw_funcs.c201 #define PQ_INFO_ELEMENT(vp, pf, tc, port, rl_valid, rl) \ argument
202 (((vp) << 0) | ((pf) << 12) | ((tc) << 16) | ((port) << 20) | \
211 u8 port_id, u8 tc, u8 max_phys_tcs_per_port) in qed_get_ext_voq() argument
213 if (tc == PURE_LB_TC) in qed_get_ext_voq()
216 return port_id * max_phys_tcs_per_port + tc; in qed_get_ext_voq()
320 u8 tc, ext_voq, port_id, num_tcs_in_port; in qed_cmdq_lines_rt_init() local
342 for (tc = 0; tc < max_phys_tcs_per_port; tc++) in qed_cmdq_lines_rt_init()
344 tc) & 0x1) == 1) in qed_cmdq_lines_rt_init()
349 for (tc = 0; tc < max_phys_tcs_per_port; tc++) { in qed_cmdq_lines_rt_init()
352 tc, max_phys_tcs_per_port); in qed_cmdq_lines_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/mscc/
Docelot_tc.c37 if (port->tc.block_shared) { in ocelot_setup_tc_cls_matchall()
50 if (port->tc.police_id && port->tc.police_id != f->cookie) { in ocelot_setup_tc_cls_matchall()
67 port->tc.police_id = f->cookie; in ocelot_setup_tc_cls_matchall()
68 port->tc.offload_cnt++; in ocelot_setup_tc_cls_matchall()
71 if (port->tc.police_id != f->cookie) in ocelot_setup_tc_cls_matchall()
80 port->tc.police_id = 0; in ocelot_setup_tc_cls_matchall()
81 port->tc.offload_cnt--; in ocelot_setup_tc_cls_matchall()
145 port->tc.block_shared = f->block_shared; in ocelot_setup_tc_block()
/drivers/net/ethernet/stmicro/stmmac/
Dhwif.c83 const void *tc; member
103 .tc = NULL,
121 .tc = NULL,
139 .tc = &dwmac510_tc_ops,
157 .tc = &dwmac510_tc_ops,
175 .tc = &dwmac510_tc_ops,
193 .tc = &dwmac510_tc_ops,
211 .tc = &dwmac510_tc_ops,
277 mac->tc = mac->tc ? : entry->tc; in stmmac_hwif_init()
/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/intel/ice/
Dice_sched.c283 struct ice_sched_node *ice_sched_get_tc_node(struct ice_port_info *pi, u8 tc) in ice_sched_get_tc_node() argument
290 if (pi->root->children[i]->tc_num == tc) in ice_sched_get_tc_node()
523 ice_alloc_lan_q_ctx(struct ice_hw *hw, u16 vsi_handle, u8 tc, u16 new_numqs) in ice_alloc_lan_q_ctx() argument
532 if (!vsi_ctx->lan_q_ctx[tc]) { in ice_alloc_lan_q_ctx()
533 vsi_ctx->lan_q_ctx[tc] = devm_kcalloc(ice_hw_to_dev(hw), in ice_alloc_lan_q_ctx()
537 if (!vsi_ctx->lan_q_ctx[tc]) in ice_alloc_lan_q_ctx()
539 vsi_ctx->num_lan_q_entries[tc] = new_numqs; in ice_alloc_lan_q_ctx()
543 if (new_numqs > vsi_ctx->num_lan_q_entries[tc]) { in ice_alloc_lan_q_ctx()
544 u16 prev_num = vsi_ctx->num_lan_q_entries[tc]; in ice_alloc_lan_q_ctx()
550 memcpy(q_ctx, vsi_ctx->lan_q_ctx[tc], in ice_alloc_lan_q_ctx()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dhv_vhca_stats.c21 int tc; in mlx5e_hv_vhca_fill_ring_stats() local
27 for (tc = 0; tc < priv->max_opened_tc; tc++) { in mlx5e_hv_vhca_fill_ring_stats()
28 data->tx_packets += stats->sq[tc].packets; in mlx5e_hv_vhca_fill_ring_stats()
29 data->tx_bytes += stats->sq[tc].bytes; in mlx5e_hv_vhca_fill_ring_stats()
Dreporter_tx.c149 struct mlx5e_txqsq *sq, int tc) in mlx5e_tx_reporter_build_diagnose_output() argument
168 err = devlink_fmsg_u32_pair_put(fmsg, "tc", tc); in mlx5e_tx_reporter_build_diagnose_output()
214 int i, tc, err = 0; in mlx5e_tx_reporter_diagnose() local
259 for (tc = 0; tc < priv->channels.params.num_tc; tc++) { in mlx5e_tx_reporter_diagnose()
260 struct mlx5e_txqsq *sq = &c->sq[tc]; in mlx5e_tx_reporter_diagnose()
262 err = mlx5e_tx_reporter_build_diagnose_output(fmsg, sq, tc); in mlx5e_tx_reporter_diagnose()
/drivers/scsi/ufs/
DMakefile3 obj-$(CONFIG_SCSI_UFS_DWC_TC_PCI) += tc-dwc-g210-pci.o ufshcd-dwc.o tc-dwc-g210.o
4 obj-$(CONFIG_SCSI_UFS_DWC_TC_PLATFORM) += tc-dwc-g210-pltfrm.o ufshcd-dwc.o tc-dwc-g210.o
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_dcb.c80 int tc; in bnxt_hwrm_queue_pri2cos_qcfg() local
82 tc = bnxt_queue_to_tc(bp, queue_id); in bnxt_hwrm_queue_pri2cos_qcfg()
83 if (tc >= 0) in bnxt_hwrm_queue_pri2cos_qcfg()
84 ets->prio_tc[i] = tc; in bnxt_hwrm_queue_pri2cos_qcfg()
154 int tc; in bnxt_hwrm_queue_cos2bw_qcfg() local
160 tc = bnxt_queue_to_tc(bp, cos2bw.queue_id); in bnxt_hwrm_queue_cos2bw_qcfg()
161 if (tc < 0) in bnxt_hwrm_queue_cos2bw_qcfg()
166 ets->tc_tsa[tc] = IEEE_8021QAZ_TSA_STRICT; in bnxt_hwrm_queue_cos2bw_qcfg()
168 ets->tc_tsa[tc] = IEEE_8021QAZ_TSA_ETS; in bnxt_hwrm_queue_cos2bw_qcfg()
169 ets->tc_tx_bw[tc] = cos2bw.bw_weight; in bnxt_hwrm_queue_cos2bw_qcfg()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dclock.c91 clock_info->cycles = clock->tc.cycle_last; in mlx5_update_clock_info_page()
93 clock_info->nsec = clock->tc.nsec; in mlx5_update_clock_info_page()
94 clock_info->frac = clock->tc.frac; in mlx5_update_clock_info_page()
137 timecounter_read(&clock->tc); in mlx5_timestamp_overflow()
152 timecounter_init(&clock->tc, &clock->cycles, ns); in mlx5_ptp_settime()
171 ns = timecounter_cyc2time(&clock->tc, cycles); in mlx5_ptp_gettimex()
186 timecounter_adjtime(&clock->tc, delta); in mlx5_ptp_adjtime()
212 timecounter_read(&clock->tc); in mlx5_ptp_adjfreq()
333 nsec_now = timecounter_cyc2time(&clock->tc, cycles_now); in mlx5_perout_configure()
480 ptp_event.timestamp = timecounter_cyc2time(&clock->tc, in mlx5_pps_event()
[all …]

1234567