Home
last modified time | relevance | path

Searched refs:ti (Results 1 – 25 of 146) sorted by relevance

123456

/drivers/md/
Ddm-linear.c30 static int linear_ctr(struct dm_target *ti, unsigned int argc, char **argv) in linear_ctr() argument
38 ti->error = "Invalid argument count"; in linear_ctr()
44 ti->error = "Cannot allocate linear context"; in linear_ctr()
50 ti->error = "Invalid device sector"; in linear_ctr()
55 ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &lc->dev); in linear_ctr()
57 ti->error = "Device lookup failed"; in linear_ctr()
61 ti->num_flush_bios = 1; in linear_ctr()
62 ti->num_discard_bios = 1; in linear_ctr()
63 ti->num_secure_erase_bios = 1; in linear_ctr()
64 ti->num_write_zeroes_bios = 1; in linear_ctr()
[all …]
Ddm-table.c195 struct dm_target *ti = dm_table_get_target(t, i); in dm_table_destroy() local
197 if (ti->type->dtr) in dm_table_destroy()
198 ti->type->dtr(ti); in dm_table_destroy()
200 dm_put_target_type(ti->type); in dm_table_destroy()
232 static int device_area_is_invalid(struct dm_target *ti, struct dm_dev *dev, in device_area_is_invalid() argument
246 dm_device_name(ti->table->md), bdev, in device_area_is_invalid()
262 dm_device_name(ti->table->md), in device_area_is_invalid()
279 dm_device_name(ti->table->md), in device_area_is_invalid()
291 dm_device_name(ti->table->md), in device_area_is_invalid()
299 dm_device_name(ti->table->md), in device_area_is_invalid()
[all …]
Ddm-unstripe.c28 static void cleanup_unstripe(struct unstripe_c *uc, struct dm_target *ti) in cleanup_unstripe() argument
31 dm_put_device(ti, uc->dev); in cleanup_unstripe()
39 static int unstripe_ctr(struct dm_target *ti, unsigned int argc, char **argv) in unstripe_ctr() argument
47 ti->error = "Invalid number of arguments"; in unstripe_ctr()
53 ti->error = "Memory allocation for unstriped context failed"; in unstripe_ctr()
58 ti->error = "Invalid stripe count"; in unstripe_ctr()
63 ti->error = "Invalid chunk_size"; in unstripe_ctr()
68 ti->error = "Invalid stripe number"; in unstripe_ctr()
73 ti->error = "Please provide stripe between [0, # of stripes]"; in unstripe_ctr()
77 if (dm_get_device(ti, argv[3], dm_table_get_mode(ti->table), &uc->dev)) { in unstripe_ctr()
[all …]
Ddm-default-key.c65 static void default_key_dtr(struct dm_target *ti) in default_key_dtr() argument
67 struct default_key_c *dkc = ti->private; in default_key_dtr()
71 dm_put_device(ti, dkc->dev); in default_key_dtr()
77 static int default_key_ctr_optional(struct dm_target *ti, in default_key_ctr_optional() argument
80 struct default_key_c *dkc = ti->private; in default_key_ctr_optional()
94 err = dm_read_arg_group(_args, &as, &opt_params, &ti->error); in default_key_ctr_optional()
101 ti->error = "Not enough feature arguments"; in default_key_ctr_optional()
105 ti->num_discard_bios = 1; in default_key_ctr_optional()
111 ti->error = "Invalid sector_size"; in default_key_ctr_optional()
119 ti->error = "Invalid feature arguments"; in default_key_ctr_optional()
[all …]
Ddm-flakey.c54 struct dm_target *ti) in parse_features() argument
72 r = dm_read_arg_group(_args, as, &argc, &ti->error); in parse_features()
81 ti->error = "Insufficient feature arguments"; in parse_features()
90 ti->error = "Feature error_reads duplicated"; in parse_features()
101 ti->error = "Feature drop_writes duplicated"; in parse_features()
104 ti->error = "Feature drop_writes conflicts with feature error_writes"; in parse_features()
116 ti->error = "Feature error_writes duplicated"; in parse_features()
120 ti->error = "Feature error_writes conflicts with feature drop_writes"; in parse_features()
132 ti->error = "Feature corrupt_bio_byte requires parameters"; in parse_features()
136 r = dm_read_arg(_args + 1, as, &fc->corrupt_bio_byte, &ti->error); in parse_features()
[all …]
Ddm-delay.c121 static void delay_dtr(struct dm_target *ti) in delay_dtr() argument
123 struct delay_c *dc = ti->private; in delay_dtr()
129 dm_put_device(ti, dc->read.dev); in delay_dtr()
131 dm_put_device(ti, dc->write.dev); in delay_dtr()
133 dm_put_device(ti, dc->flush.dev); in delay_dtr()
140 static int delay_class_ctr(struct dm_target *ti, struct delay_class *c, char **argv) in delay_class_ctr() argument
147 ti->error = "Invalid device sector"; in delay_class_ctr()
153 ti->error = "Invalid delay"; in delay_class_ctr()
157 ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &c->dev); in delay_class_ctr()
159 ti->error = "Device lookup failed"; in delay_class_ctr()
[all …]
Ddm-stripe.c42 struct dm_target *ti; member
58 dm_table_event(sc->ti->table); in trigger_event()
64 static int get_stripe(struct dm_target *ti, struct stripe_c *sc, in get_stripe() argument
74 ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), in get_stripe()
88 static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv) in stripe_ctr() argument
98 ti->error = "Not enough arguments"; in stripe_ctr()
103 ti->error = "Invalid stripe count"; in stripe_ctr()
108 ti->error = "Invalid chunk_size"; in stripe_ctr()
112 width = ti->len; in stripe_ctr()
114 ti->error = "Target length not divisible by number of stripes"; in stripe_ctr()
[all …]
Ddm-switch.c40 struct dm_target *ti; member
60 static struct switch_ctx *alloc_switch_ctx(struct dm_target *ti, unsigned int nr_paths, in alloc_switch_ctx() argument
69 sctx->ti = ti; in alloc_switch_ctx()
72 ti->private = sctx; in alloc_switch_ctx()
77 static int alloc_region_table(struct dm_target *ti, unsigned int nr_paths) in alloc_region_table() argument
79 struct switch_ctx *sctx = ti->private; in alloc_region_table()
80 sector_t nr_regions = ti->len; in alloc_region_table()
103 ti->error = "Region table too large"; in alloc_region_table()
113 ti->error = "Region table too large"; in alloc_region_table()
120 ti->error = "Cannot allocate region table"; in alloc_region_table()
[all …]
Ddm-ebs-target.c20 static void ebs_dtr(struct dm_target *ti);
247 static int ebs_ctr(struct dm_target *ti, unsigned int argc, char **argv) in ebs_ctr() argument
256 ti->error = "Invalid argument count"; in ebs_ctr()
260 ec = ti->private = kzalloc(sizeof(*ec), GFP_KERNEL); in ebs_ctr()
262 ti->error = "Cannot allocate ebs context"; in ebs_ctr()
269 (sector_t)tmp >= ti->len) { in ebs_ctr()
270 ti->error = "Invalid device offset sector"; in ebs_ctr()
278 ti->error = "Invalid emulated block size"; in ebs_ctr()
285 ti->error = "Invalid underlying block size"; in ebs_ctr()
293 r = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &ec->dev); in ebs_ctr()
[all …]
Ddm-zoned-target.c625 static int dmz_map(struct dm_target *ti, struct bio *bio) in dmz_map() argument
627 struct dmz_target *dmz = ti->private; in dmz_map()
688 static int dmz_get_zoned_device(struct dm_target *ti, char *path, in dmz_get_zoned_device() argument
691 struct dmz_target *dmz = ti->private; in dmz_get_zoned_device()
698 ret = dm_get_device(ti, path, dm_table_get_mode(ti->table), &ddev); in dmz_get_zoned_device()
700 ti->error = "Get target device failed"; in dmz_get_zoned_device()
707 ti->error = "Invalid regular device"; in dmz_get_zoned_device()
711 ti->error = "First device must be a regular device"; in dmz_get_zoned_device()
715 ti->error = "Too many regular devices"; in dmz_get_zoned_device()
722 ti->error = "Too many zoned devices"; in dmz_get_zoned_device()
[all …]
Ddm-verity-target.c93 return v->data_start + dm_target_offset(v->ti, bi_sector); in verity_map_sector()
271 struct mapped_device *md = dm_table_get_md(v->ti->table); in verity_handle_err()
297 dm_audit_log_target(DM_MSG_PREFIX, "max-corrupted-errors", v->ti, 0); in verity_handle_err()
339 struct bio *bio = dm_bio_from_per_bio_data(io, v->ti->per_io_data_size); in verity_verify_level()
393 v->ti->per_io_data_size); in verity_verify_level()
583 struct bio *bio = dm_bio_from_per_bio_data(io, v->ti->per_io_data_size); in verity_verify_io()
679 struct bio *bio = dm_bio_from_per_bio_data(io, v->ti->per_io_data_size); in verity_finish_io()
795 static int verity_map(struct dm_target *ti, struct bio *bio) in verity_map() argument
797 struct dm_verity *v = ti->private; in verity_map()
818 io = dm_per_bio_data(bio, ti->per_io_data_size); in verity_map()
[all …]
Ddm-mpath.c97 struct dm_target *ti; member
185 static void free_pgpaths(struct list_head *pgpaths, struct dm_target *ti) in free_pgpaths() argument
191 dm_put_device(ti, pgpath->path.dev); in free_pgpaths()
197 struct dm_target *ti) in free_priority_group() argument
206 free_pgpaths(&pg->pgpaths, ti); in free_priority_group()
210 static struct multipath *alloc_multipath(struct dm_target *ti) in alloc_multipath() argument
224 m->ti = ti; in alloc_multipath()
225 ti->private = m; in alloc_multipath()
233 static int alloc_multipath_stage2(struct dm_target *ti, struct multipath *m) in alloc_multipath_stage2() argument
246 dm_table_set_type(ti->table, m->queue_mode); in alloc_multipath_stage2()
[all …]
Ddm-raid1.c59 struct dm_target *ti; member
259 static int mirror_flush(struct dm_target *ti) in mirror_flush() argument
261 struct mirror_set *ms = ti->private; in mirror_flush()
353 from.count = ms->ti->len & (region_size - 1); in recover()
412 dm_table_event(ms->ti->table); in do_recovery()
463 return m->offset + dm_target_offset(m->ms->ti, bio->bi_iter.bi_sector); in map_sector()
494 if (dm_noflush_suspending(ms->ti)) in hold_bio()
852 dm_table_event(ms->ti->table); in trigger_event()
890 struct dm_target *ti, in alloc_context() argument
897 ti->error = "Cannot allocate mirror context"; in alloc_context()
[all …]
Ddm-dust.c224 static int dust_map(struct dm_target *ti, struct bio *bio) in dust_map() argument
226 struct dust_device *dd = ti->private; in dust_map()
230 bio->bi_iter.bi_sector = dd->start + dm_target_offset(ti, bio->bi_iter.bi_sector); in dust_map()
321 static int dust_ctr(struct dm_target *ti, unsigned int argc, char **argv) in dust_ctr() argument
329 sector_t max_block_sectors = min(ti->len, DUST_MAX_BLKSZ_SECTORS); in dust_ctr()
332 ti->error = "Invalid argument count"; in dust_ctr()
337 ti->error = "Invalid block size parameter"; in dust_ctr()
342 ti->error = "Block size must be at least 512"; in dust_ctr()
347 ti->error = "Block size must be a power of 2"; in dust_ctr()
352 ti->error = "Block size is too large"; in dust_ctr()
[all …]
Ddm-raid.c230 struct dm_target *ti; member
515 rs->ti->error = "Invalid flags combination"; in rs_check_for_valid_flags()
702 struct gendisk *gendisk = dm_disk(dm_table_get_md(rs->ti->table)); in rs_set_capacity()
735 static struct raid_set *raid_set_alloc(struct dm_target *ti, struct raid_type *raid_type, in raid_set_alloc() argument
742 ti->error = "Insufficient number of devices"; in raid_set_alloc()
748 ti->error = "Cannot allocate raid context"; in raid_set_alloc()
757 rs->ti = ti; in raid_set_alloc()
790 dm_put_device(rs->ti, rs->journal_dev.dev); in raid_set_free()
795 dm_put_device(rs->ti, rs->dev[i].meta_dev); in raid_set_free()
798 dm_put_device(rs->ti, rs->dev[i].data_dev); in raid_set_free()
[all …]
Ddm-log-writes.c506 static int log_writes_ctr(struct dm_target *ti, unsigned int argc, char **argv) in log_writes_ctr() argument
517 ti->error = "Invalid argument count"; in log_writes_ctr()
523 ti->error = "Cannot allocate context"; in log_writes_ctr()
535 ret = dm_get_device(ti, devname, dm_table_get_mode(ti->table), &lc->dev); in log_writes_ctr()
537 ti->error = "Device lookup failed"; in log_writes_ctr()
542 ret = dm_get_device(ti, logdevname, dm_table_get_mode(ti->table), in log_writes_ctr()
545 ti->error = "Log device lookup failed"; in log_writes_ctr()
546 dm_put_device(ti, lc->dev); in log_writes_ctr()
555 ti->error = "Couldn't alloc kthread"; in log_writes_ctr()
556 dm_put_device(ti, lc->dev); in log_writes_ctr()
[all …]
Ddm-audit.h25 struct dm_target *ti, int result);
28 struct dm_target *ti, int result) in dm_audit_log_ctr() argument
30 dm_audit_log_ti(AUDIT_DM_CTRL, dm_msg_prefix, "ctr", ti, result); in dm_audit_log_ctr()
34 struct dm_target *ti, int result) in dm_audit_log_dtr() argument
36 dm_audit_log_ti(AUDIT_DM_CTRL, dm_msg_prefix, "dtr", ti, result); in dm_audit_log_dtr()
40 struct dm_target *ti, int result) in dm_audit_log_target() argument
42 dm_audit_log_ti(AUDIT_DM_EVENT, dm_msg_prefix, op, ti, result); in dm_audit_log_target()
51 const char *op, struct dm_target *ti, in dm_audit_log_target() argument
56 struct dm_target *ti, int result) in dm_audit_log_ctr() argument
61 struct dm_target *ti, int result) in dm_audit_log_dtr() argument
Ddm-snap.c31 #define dm_target_is_snapshot_merge(ti) \ argument
32 ((ti)->type->name == dm_snapshot_merge_target_name)
55 struct dm_target *ti; member
329 struct dm_target *ti; member
463 if (dm_target_is_snapshot_merge(s->ti) && snap_merge) in __find_snapshots_sharing_cow()
498 snap->ti->error = "Snapshot cow pairing for exception table handover failed"; in __validate_exception_handover()
512 if (!dm_target_is_snapshot_merge(snap->ti)) in __validate_exception_handover()
519 snap->ti->error = "A snapshot is already merging."; in __validate_exception_handover()
525 snap->ti->error = "Snapshot exception store does not support snapshot-merge."; in __validate_exception_handover()
1186 struct dm_target *ti) in parse_snapshot_features() argument
[all …]
Ddm-clone-target.c70 struct dm_target *ti; member
159 return dm_table_device_name(clone->ti->table); in clone_device_name()
190 dm_table_event(clone->ti->table); in __set_clone_mode()
814 tail_size = clone->ti->len & (region_size - 1); in hydration_copy()
1168 dm_table_event(clone->ti->table); in commit_metadata()
1318 static int clone_map(struct dm_target *ti, struct bio *bio) in clone_map() argument
1320 struct clone *clone = ti->private; in clone_map()
1340 bio->bi_iter.bi_sector = dm_target_offset(ti, bio->bi_iter.bi_sector); in clone_map()
1377 static int clone_endio(struct dm_target *ti, struct bio *bio, blk_status_t *error) in clone_endio() argument
1379 struct clone *clone = ti->private; in clone_endio()
[all …]
/drivers/net/wireless/ath/ath11k/
Dhal_tx.c38 struct hal_tx_info *ti) in ath11k_hal_tx_cmd_desc_setup() argument
43 FIELD_PREP(BUFFER_ADDR_INFO0_ADDR, ti->paddr); in ath11k_hal_tx_cmd_desc_setup()
46 ((uint64_t)ti->paddr >> HAL_ADDR_MSB_REG_SHIFT)); in ath11k_hal_tx_cmd_desc_setup()
48 FIELD_PREP(BUFFER_ADDR_INFO1_RET_BUF_MGR, ti->rbm_id) | in ath11k_hal_tx_cmd_desc_setup()
49 FIELD_PREP(BUFFER_ADDR_INFO1_SW_COOKIE, ti->desc_id); in ath11k_hal_tx_cmd_desc_setup()
52 FIELD_PREP(HAL_TCL_DATA_CMD_INFO0_DESC_TYPE, ti->type) | in ath11k_hal_tx_cmd_desc_setup()
53 FIELD_PREP(HAL_TCL_DATA_CMD_INFO0_ENCAP_TYPE, ti->encap_type) | in ath11k_hal_tx_cmd_desc_setup()
55 ti->encrypt_type) | in ath11k_hal_tx_cmd_desc_setup()
57 ti->search_type) | in ath11k_hal_tx_cmd_desc_setup()
59 ti->addr_search_flags) | in ath11k_hal_tx_cmd_desc_setup()
[all …]
/drivers/net/wireless/ath/ath12k/
Dhal_tx.c34 struct hal_tx_info *ti) in ath12k_hal_tx_cmd_desc_setup() argument
37 le32_encode_bits(ti->paddr, BUFFER_ADDR_INFO0_ADDR); in ath12k_hal_tx_cmd_desc_setup()
39 le32_encode_bits(((uint64_t)ti->paddr >> HAL_ADDR_MSB_REG_SHIFT), in ath12k_hal_tx_cmd_desc_setup()
42 le32_encode_bits((ti->rbm_id), BUFFER_ADDR_INFO1_RET_BUF_MGR) | in ath12k_hal_tx_cmd_desc_setup()
43 le32_encode_bits(ti->desc_id, BUFFER_ADDR_INFO1_SW_COOKIE); in ath12k_hal_tx_cmd_desc_setup()
46 le32_encode_bits(ti->type, HAL_TCL_DATA_CMD_INFO0_DESC_TYPE) | in ath12k_hal_tx_cmd_desc_setup()
47 le32_encode_bits(ti->bank_id, HAL_TCL_DATA_CMD_INFO0_BANK_ID); in ath12k_hal_tx_cmd_desc_setup()
50 le32_encode_bits(ti->meta_data_flags, in ath12k_hal_tx_cmd_desc_setup()
53 tcl_cmd->info2 = cpu_to_le32(ti->flags0) | in ath12k_hal_tx_cmd_desc_setup()
54 le32_encode_bits(ti->data_len, HAL_TCL_DATA_CMD_INFO2_DATA_LEN) | in ath12k_hal_tx_cmd_desc_setup()
[all …]
/drivers/thermal/ti-soc-thermal/
DMakefile2 obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal.o
3 ti-soc-thermal-y := ti-bandgap.o
4 ti-soc-thermal-$(CONFIG_TI_THERMAL) += ti-thermal-common.o
5 ti-soc-thermal-$(CONFIG_DRA752_THERMAL) += dra752-thermal-data.o
6 ti-soc-thermal-$(CONFIG_OMAP3_THERMAL) += omap3-thermal-data.o
7 ti-soc-thermal-$(CONFIG_OMAP4_THERMAL) += omap4-thermal-data.o
8 ti-soc-thermal-$(CONFIG_OMAP5_THERMAL) += omap5-thermal-data.o
/drivers/media/platform/ti/vpe/
DMakefile2 obj-$(CONFIG_VIDEO_TI_VPE) += ti-vpe.o
3 obj-$(CONFIG_VIDEO_TI_VPDMA) += ti-vpdma.o
4 obj-$(CONFIG_VIDEO_TI_SC) += ti-sc.o
5 obj-$(CONFIG_VIDEO_TI_CSC) += ti-csc.o
7 ti-vpe-y := vpe.o
8 ti-vpdma-y := vpdma.o
9 ti-sc-y := sc.o
10 ti-csc-y := csc.o
/drivers/gpu/drm/gma500/
Dmid_bios.c224 struct gct_r10_timing_info *ti; in mid_get_vbt_data_r10() local
245 ti = &gct[vbt.primary_panel_idx].DTD; in mid_get_vbt_data_r10()
246 dp_ti->pixel_clock = ti->pixel_clock; in mid_get_vbt_data_r10()
247 dp_ti->hactive_hi = ti->hactive_hi; in mid_get_vbt_data_r10()
248 dp_ti->hactive_lo = ti->hactive_lo; in mid_get_vbt_data_r10()
249 dp_ti->hblank_hi = ti->hblank_hi; in mid_get_vbt_data_r10()
250 dp_ti->hblank_lo = ti->hblank_lo; in mid_get_vbt_data_r10()
251 dp_ti->hsync_offset_hi = ti->hsync_offset_hi; in mid_get_vbt_data_r10()
252 dp_ti->hsync_offset_lo = ti->hsync_offset_lo; in mid_get_vbt_data_r10()
253 dp_ti->hsync_pulse_width_hi = ti->hsync_pulse_width_hi; in mid_get_vbt_data_r10()
[all …]
/drivers/net/netdevsim/
Dudp_tunnels.c13 unsigned int entry, struct udp_tunnel_info *ti) in nsim_udp_tunnel_set_port() argument
30 be16_to_cpu(ti->port) << 16 | ti->type; in nsim_udp_tunnel_set_port()
35 table, entry, ti->type, ti->sa_family, ntohs(ti->port), in nsim_udp_tunnel_set_port()
42 unsigned int entry, struct udp_tunnel_info *ti) in nsim_udp_tunnel_unset_port() argument
53 u32 val = be16_to_cpu(ti->port) << 16 | ti->type; in nsim_udp_tunnel_unset_port()
65 table, entry, ti->type, ti->sa_family, ntohs(ti->port), in nsim_udp_tunnel_unset_port()
74 struct udp_tunnel_info ti; in nsim_udp_tunnel_sync_table() local
82 udp_tunnel_nic_get_port(dev, table, i, &ti); in nsim_udp_tunnel_sync_table()
84 be16_to_cpu(ti.port) << 16 | ti.type; in nsim_udp_tunnel_sync_table()

123456