/drivers/md/ |
D | dm-linear.c | 28 int dm_linear_ctr(struct dm_target *ti, unsigned int argc, char **argv) in dm_linear_ctr() argument 35 ti->error = "Invalid argument count"; in dm_linear_ctr() 41 ti->error = "dm-linear: Cannot allocate linear context"; in dm_linear_ctr() 46 ti->error = "dm-linear: Invalid device sector"; in dm_linear_ctr() 51 if (dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &lc->dev)) { in dm_linear_ctr() 52 ti->error = "dm-linear: Device lookup failed"; in dm_linear_ctr() 56 ti->num_flush_bios = 1; in dm_linear_ctr() 57 ti->num_discard_bios = 1; in dm_linear_ctr() 58 ti->num_write_same_bios = 1; in dm_linear_ctr() 59 ti->private = lc; in dm_linear_ctr() [all …]
|
D | dm-flakey.c | 47 struct dm_target *ti) in parse_features() argument 64 r = dm_read_arg_group(_args, as, &argc, &ti->error); in parse_features() 77 ti->error = "Feature drop_writes duplicated"; in parse_features() 89 ti->error = "Feature corrupt_bio_byte requires parameters"; in parse_features() 93 r = dm_read_arg(_args + 1, as, &fc->corrupt_bio_byte, &ti->error); in parse_features() 107 ti->error = "Invalid corrupt bio direction (r or w)"; in parse_features() 115 r = dm_read_arg(_args + 2, as, &fc->corrupt_bio_value, &ti->error); in parse_features() 123 r = dm_read_arg(_args + 3, as, &fc->corrupt_bio_flags, &ti->error); in parse_features() 131 ti->error = "Unrecognised flakey feature requested"; in parse_features() 136 ti->error = "drop_writes is incompatible with corrupt_bio_byte with the WRITE flag set"; in parse_features() [all …]
|
D | dm-delay.c | 130 static int delay_ctr(struct dm_target *ti, unsigned int argc, char **argv) in delay_ctr() argument 137 ti->error = "requires exactly 3 or 6 arguments"; in delay_ctr() 143 ti->error = "Cannot allocate context"; in delay_ctr() 150 ti->error = "Invalid device sector"; in delay_ctr() 156 ti->error = "Invalid delay"; in delay_ctr() 160 if (dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), in delay_ctr() 162 ti->error = "Device lookup failed"; in delay_ctr() 171 ti->error = "Invalid write device sector"; in delay_ctr() 177 ti->error = "Invalid write delay"; in delay_ctr() 181 if (dm_get_device(ti, argv[3], dm_table_get_mode(ti->table), in delay_ctr() [all …]
|
D | dm-table.c | 362 static int device_area_is_invalid(struct dm_target *ti, struct dm_dev *dev, in device_area_is_invalid() argument 383 dm_device_name(ti->table->md), bdevname(bdev, b), in device_area_is_invalid() 396 dm_device_name(ti->table->md), bdevname(bdev, b), in device_area_is_invalid() 409 dm_device_name(ti->table->md), in device_area_is_invalid() 418 dm_device_name(ti->table->md), in device_area_is_invalid() 458 int dm_get_device(struct dm_target *ti, const char *path, fmode_t mode, in dm_get_device() argument 465 struct dm_table *t = ti->table; in dm_get_device() 516 int dm_set_device_limits(struct dm_target *ti, struct dm_dev *dev, in dm_set_device_limits() argument 526 dm_device_name(ti->table->md), bdevname(bdev, b)); in dm_set_device_limits() 534 dm_device_name(ti->table->md), bdevname(bdev, b), in dm_set_device_limits() [all …]
|
D | dm-stripe.c | 37 struct dm_target *ti; member 53 dm_table_event(sc->ti->table); in trigger_event() 72 static int get_stripe(struct dm_target *ti, struct stripe_c *sc, in get_stripe() argument 81 if (dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), in get_stripe() 94 static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv) in stripe_ctr() argument 104 ti->error = "Not enough arguments"; in stripe_ctr() 109 ti->error = "Invalid stripe count"; in stripe_ctr() 114 ti->error = "Invalid chunk_size"; in stripe_ctr() 118 width = ti->len; in stripe_ctr() 120 ti->error = "Target length not divisible by " in stripe_ctr() [all …]
|
D | dm-raid.c | 61 struct dm_target *ti; member 145 static struct raid_set *context_alloc(struct dm_target *ti, struct raid_type *raid_type, unsigned r… in context_alloc() argument 151 ti->error = "Insufficient number of devices"; in context_alloc() 157 ti->error = "Cannot allocate raid context"; in context_alloc() 163 rs->ti = ti; in context_alloc() 194 dm_put_device(rs->ti, rs->dev[i].meta_dev); in context_free() 197 dm_put_device(rs->ti, rs->dev[i].data_dev); in context_free() 240 ret = dm_get_device(rs->ti, argv[0], in dev_parms() 241 dm_table_get_mode(rs->ti->table), in dev_parms() 243 rs->ti->error = "RAID metadata device lookup failure"; in dev_parms() [all …]
|
D | dm-mpath.c | 63 struct dm_target *ti; member 162 static void free_pgpaths(struct list_head *pgpaths, struct dm_target *ti) in free_pgpaths() argument 165 struct multipath *m = ti->private; in free_pgpaths() 171 dm_put_device(ti, pgpath->path.dev); in free_pgpaths() 177 struct dm_target *ti) in free_priority_group() argument 186 free_pgpaths(&pg->pgpaths, ti); in free_priority_group() 190 static struct multipath *alloc_multipath(struct dm_target *ti) in alloc_multipath() argument 210 m->ti = ti; in alloc_multipath() 211 ti->private = m; in alloc_multipath() 223 free_priority_group(pg, m->ti); in free_multipath() [all …]
|
D | dm-verity-target.c | 81 return v->data_start + dm_target_offset(v->ti, bi_sector); in verity_map_sector() 201 struct mapped_device *md = dm_table_get_md(v->ti->table); in verity_handle_err() 478 struct bio *bio = dm_bio_from_per_bio_data(io, v->ti->per_bio_data_size); in verity_finish_io() 579 int verity_map(struct dm_target *ti, struct bio *bio) in verity_map() argument 581 struct dm_verity *v = ti->private; in verity_map() 602 io = dm_per_bio_data(bio, ti->per_bio_data_size); in verity_map() 631 void verity_status(struct dm_target *ti, status_type_t type, in verity_status() argument 634 struct dm_verity *v = ti->private; in verity_status() 691 int verity_ioctl(struct dm_target *ti, unsigned cmd, in verity_ioctl() argument 694 struct dm_verity *v = ti->private; in verity_ioctl() [all …]
|
D | dm-raid1.c | 50 struct dm_target *ti; member 252 static int mirror_flush(struct dm_target *ti) in mirror_flush() argument 254 struct mirror_set *ms = ti->private; in mirror_flush() 345 from.count = ms->ti->len & (region_size - 1); in recover() 399 dm_table_event(ms->ti->table); in do_recovery() 447 return m->offset + dm_target_offset(m->ms->ti, bio->bi_sector); in map_sector() 478 if (dm_noflush_suspending(ms->ti)) in hold_bio() 817 dm_table_event(ms->ti->table); in trigger_event() 851 struct dm_target *ti, in alloc_context() argument 861 ti->error = "Cannot allocate mirror context"; in alloc_context() [all …]
|
D | dm-snap.c | 29 #define dm_target_is_snapshot_merge(ti) \ argument 30 ((ti)->type->name == dm_snapshot_merge_target_name) 53 struct dm_target *ti; member 363 if (dm_target_is_snapshot_merge(s->ti) && snap_merge) in __find_snapshots_sharing_cow() 398 snap->ti->error = "Snapshot cow pairing for exception " in __validate_exception_handover() 413 if (!dm_target_is_snapshot_merge(snap->ti)) in __validate_exception_handover() 420 snap->ti->error = "A snapshot is already merging."; in __validate_exception_handover() 426 snap->ti->error = "Snapshot exception store does not " in __validate_exception_handover() 1037 static int snapshot_ctr(struct dm_target *ti, unsigned int argc, char **argv) in snapshot_ctr() argument 1047 ti->error = "requires exactly 4 arguments"; in snapshot_ctr() [all …]
|
D | dm-thin.c | 155 struct dm_target *ti; /* Only set if a pool target is bound */ member 207 struct dm_target *ti; member 930 dm_table_event(pool->ti->table); in alloc_data_block() 1454 static int thin_bio_map(struct dm_target *ti, struct bio *bio) in thin_bio_map() argument 1457 struct thin_c *tc = ti->private; in thin_bio_map() 1623 static int bind_control_target(struct pool *pool, struct dm_target *ti) in bind_control_target() argument 1625 struct pool_c *pt = ti->private; in bind_control_target() 1636 pool->ti = ti; in bind_control_target() 1645 static void unbind_control_target(struct pool *pool, struct dm_target *ti) in unbind_control_target() argument 1647 if (pool->ti == ti) in unbind_control_target() [all …]
|
D | dm-crypt.c | 78 int (*ctr)(struct crypt_config *cc, struct dm_target *ti, 289 struct dm_target *ti, in setup_essiv_cpu() argument 298 ti->error = "Error allocating crypto tfm for ESSIV"; in setup_essiv_cpu() 304 ti->error = "Block size of ESSIV cipher does " in setup_essiv_cpu() 312 ti->error = "Failed to set key for ESSIV cipher"; in setup_essiv_cpu() 339 static int crypt_iv_essiv_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_essiv_ctr() argument 348 ti->error = "Digest algorithm missing for ESSIV mode"; in crypt_iv_essiv_ctr() 355 ti->error = "Error initializing ESSIV hash"; in crypt_iv_essiv_ctr() 362 ti->error = "Error kmallocing salt storage in ESSIV"; in crypt_iv_essiv_ctr() 370 essiv_tfm = setup_essiv_cpu(cc, ti, salt, in crypt_iv_essiv_ctr() [all …]
|
D | dm.c | 71 struct dm_target *ti; member 624 dm_endio_fn endio = tio->ti->type->end_io; in clone_endio() 630 r = endio(tio->ti, bio, error); in clone_endio() 832 if (tio->ti) { in dm_done() 833 rq_end_io = tio->ti->type->rq_end_io; in dm_done() 836 r = rq_end_io(tio->ti, clone, error, &tio->info); in dm_done() 927 static sector_t max_io_len_target_boundary(sector_t sector, struct dm_target *ti) in max_io_len_target_boundary() argument 929 sector_t target_offset = dm_target_offset(ti, sector); in max_io_len_target_boundary() 931 return ti->len - target_offset; in max_io_len_target_boundary() 934 static sector_t max_io_len(sector_t sector, struct dm_target *ti) in max_io_len() argument [all …]
|
D | dm-verity-fec.c | 510 io->v->ti->per_bio_data_size); in verity_fec_finish_io() 594 dm_put_device(v->ti, f->dev); in verity_fec_dtr() 633 struct dm_target *ti = v->ti; in verity_fec_parse_opt_args() local 640 ti->error = "FEC feature arguments require a value"; in verity_fec_parse_opt_args() 648 r = dm_get_device(ti, arg_value, FMODE_READ, &v->fec->dev); in verity_fec_parse_opt_args() 650 ti->error = "FEC device lookup failed"; in verity_fec_parse_opt_args() 658 ti->error = "Invalid " DM_VERITY_OPT_FEC_BLOCKS; in verity_fec_parse_opt_args() 667 ti->error = "Invalid " DM_VERITY_OPT_FEC_START; in verity_fec_parse_opt_args() 676 ti->error = "Invalid " DM_VERITY_OPT_FEC_ROOTS; in verity_fec_parse_opt_args() 682 ti->error = "Unrecognized verity FEC feature request"; in verity_fec_parse_opt_args() [all …]
|
D | dm-verity.h | 33 struct dm_target *ti; member 133 extern void verity_status(struct dm_target *ti, status_type_t type, 135 extern int verity_ioctl(struct dm_target *ti, unsigned cmd, 137 extern int verity_merge(struct dm_target *ti, struct bvec_merge_data *bvm, 139 extern int verity_iterate_devices(struct dm_target *ti, 141 extern void verity_io_hints(struct dm_target *ti, struct queue_limits *limits); 142 extern void verity_dtr(struct dm_target *ti); 143 extern int verity_ctr(struct dm_target *ti, unsigned argc, char **argv); 144 extern int verity_map(struct dm_target *ti, struct bio *bio);
|
D | dm-android-verity.h | 98 extern void dm_linear_dtr(struct dm_target *ti); 99 extern int dm_linear_map(struct dm_target *ti, struct bio *bio); 100 extern void dm_linear_status(struct dm_target *ti, status_type_t type, 102 extern int dm_linear_ioctl(struct dm_target *ti, unsigned int cmd, 104 extern int dm_linear_merge(struct dm_target *ti, struct bvec_merge_data *bvm, 106 extern int dm_linear_iterate_devices(struct dm_target *ti, 108 extern int dm_linear_ctr(struct dm_target *ti, unsigned int argc, char **argv);
|
D | dm-log.c | 148 struct dm_target *ti, in dm_dirty_log_create() argument 149 int (*flush_callback_fn)(struct dm_target *ti), in dm_dirty_log_create() argument 167 if (type->ctr(log, ti, argc, argv)) { in dm_dirty_log_create() 218 struct dm_target *ti; member 344 static int _check_region_size(struct dm_target *ti, uint32_t region_size) in _check_region_size() argument 346 if (region_size < 2 || region_size > ti->len) in _check_region_size() 361 static int create_log_context(struct dm_dirty_log *log, struct dm_target *ti, in create_log_context() argument 392 !_check_region_size(ti, region_size)) { in create_log_context() 397 region_count = dm_sector_div_up(ti->len, region_size); in create_log_context() 405 lc->ti = ti; in create_log_context() [all …]
|
D | dm-cache-target.c | 101 struct dm_target *ti; member 417 dm_table_event(cache->ti->table); in clear_dirty() 1510 dm_put_device(cache->ti, cache->metadata_dev); in destroy() 1513 dm_put_device(cache->ti, cache->origin_dev); in destroy() 1516 dm_put_device(cache->ti, cache->cache_dev); in destroy() 1528 static void cache_dtr(struct dm_target *ti) in cache_dtr() argument 1530 struct cache *cache = ti->private; in cache_dtr() 1572 struct dm_target *ti; member 1594 dm_put_device(ca->ti, ca->metadata_dev); in destroy_cache_args() 1597 dm_put_device(ca->ti, ca->cache_dev); in destroy_cache_args() [all …]
|
D | dm-exception-store.c | 191 int dm_exception_store_create(struct dm_target *ti, int argc, char **argv, in dm_exception_store_create() argument 202 ti->error = "Insufficient exception store arguments"; in dm_exception_store_create() 208 ti->error = "Exception store allocation failed"; in dm_exception_store_create() 218 ti->error = "Persistent flag is not P or N"; in dm_exception_store_create() 224 ti->error = "Exception store type not recognised"; in dm_exception_store_create() 232 r = set_chunk_size(tmp_store, argv[1], &ti->error); in dm_exception_store_create() 238 ti->error = "Exception store type constructor failed"; in dm_exception_store_create()
|
/drivers/gpu/drm/gma500/ |
D | mdfld_tpo_vid.c | 34 struct oaktrail_timing_info *ti = &dev_priv->gct_data.DTD; in tpo_vid_get_config_mode() local 42 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in tpo_vid_get_config_mode() 43 mode->vdisplay = (ti->vactive_hi << 8) | ti->vactive_lo; in tpo_vid_get_config_mode() 45 ((ti->hsync_offset_hi << 8) | in tpo_vid_get_config_mode() 46 ti->hsync_offset_lo); in tpo_vid_get_config_mode() 48 ((ti->hsync_pulse_width_hi << 8) | in tpo_vid_get_config_mode() 49 ti->hsync_pulse_width_lo); in tpo_vid_get_config_mode() 50 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | in tpo_vid_get_config_mode() 51 ti->hblank_lo); in tpo_vid_get_config_mode() 53 mode->vdisplay + ((ti->vsync_offset_hi << 8) | in tpo_vid_get_config_mode() [all …]
|
D | mdfld_tmd_vid.c | 37 struct oaktrail_timing_info *ti = &dev_priv->gct_data.DTD; in tmd_vid_get_config_mode() local 45 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in tmd_vid_get_config_mode() 46 mode->vdisplay = (ti->vactive_hi << 8) | ti->vactive_lo; in tmd_vid_get_config_mode() 48 ((ti->hsync_offset_hi << 8) | \ in tmd_vid_get_config_mode() 49 ti->hsync_offset_lo); in tmd_vid_get_config_mode() 51 ((ti->hsync_pulse_width_hi << 8) | \ in tmd_vid_get_config_mode() 52 ti->hsync_pulse_width_lo); in tmd_vid_get_config_mode() 53 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in tmd_vid_get_config_mode() 54 ti->hblank_lo); in tmd_vid_get_config_mode() 56 mode->vdisplay + ((ti->vsync_offset_hi << 8) | \ in tmd_vid_get_config_mode() [all …]
|
D | mid_bios.c | 233 struct gct_r10_timing_info *ti; in mid_get_vbt_data_r10() local 254 ti = &gct[vbt.primary_panel_idx].DTD; in mid_get_vbt_data_r10() 255 dp_ti->pixel_clock = ti->pixel_clock; in mid_get_vbt_data_r10() 256 dp_ti->hactive_hi = ti->hactive_hi; in mid_get_vbt_data_r10() 257 dp_ti->hactive_lo = ti->hactive_lo; in mid_get_vbt_data_r10() 258 dp_ti->hblank_hi = ti->hblank_hi; in mid_get_vbt_data_r10() 259 dp_ti->hblank_lo = ti->hblank_lo; in mid_get_vbt_data_r10() 260 dp_ti->hsync_offset_hi = ti->hsync_offset_hi; in mid_get_vbt_data_r10() 261 dp_ti->hsync_offset_lo = ti->hsync_offset_lo; in mid_get_vbt_data_r10() 262 dp_ti->hsync_pulse_width_hi = ti->hsync_pulse_width_hi; in mid_get_vbt_data_r10() [all …]
|
D | oaktrail_lvds.c | 255 struct oaktrail_timing_info *ti = &dev_priv->gct_data.DTD; in oaktrail_lvds_get_configuration_mode() local 265 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in oaktrail_lvds_get_configuration_mode() 266 mode->vdisplay = (ti->vactive_hi << 8) | ti->vactive_lo; in oaktrail_lvds_get_configuration_mode() 268 ((ti->hsync_offset_hi << 8) | \ in oaktrail_lvds_get_configuration_mode() 269 ti->hsync_offset_lo); in oaktrail_lvds_get_configuration_mode() 271 ((ti->hsync_pulse_width_hi << 8) | \ in oaktrail_lvds_get_configuration_mode() 272 ti->hsync_pulse_width_lo); in oaktrail_lvds_get_configuration_mode() 273 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in oaktrail_lvds_get_configuration_mode() 274 ti->hblank_lo); in oaktrail_lvds_get_configuration_mode() 276 mode->vdisplay + ((ti->vsync_offset_hi << 4) | \ in oaktrail_lvds_get_configuration_mode() [all …]
|
/drivers/staging/ti-soc-thermal/ |
D | ti_soc_thermal.txt | 13 - "ti,omap4430-bandgap" : for OMAP4430 bandgap 14 - "ti,omap4460-bandgap" : for OMAP4460 bandgap 15 - "ti,omap4470-bandgap" : for OMAP4470 bandgap 16 - "ti,omap5430-bandgap" : for OMAP5430 bandgap 20 - ti,tshut-gpio : this entry should be used to inform which GPIO 30 compatible = "ti,omap4430-bandgap"; 38 compatible = "ti,omap4460-bandgap"; 40 ti,tshut-gpio = <86>; 48 compatible = "ti,omap4470-bandgap"; 50 ti,tshut-gpio = <86>; [all …]
|
D | Makefile | 1 obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal.o 2 ti-soc-thermal-y := ti-bandgap.o 3 ti-soc-thermal-$(CONFIG_TI_THERMAL) += ti-thermal-common.o 4 ti-soc-thermal-$(CONFIG_OMAP4_THERMAL) += omap4-thermal-data.o 5 ti-soc-thermal-$(CONFIG_OMAP5_THERMAL) += omap5-thermal-data.o
|