/drivers/md/ |
D | dm-linear.c | 29 static int linear_ctr(struct dm_target *ti, unsigned int argc, char **argv) in linear_ctr() argument 37 ti->error = "Invalid argument count"; in linear_ctr() 43 ti->error = "Cannot allocate linear context"; in linear_ctr() 49 ti->error = "Invalid device sector"; in linear_ctr() 54 ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &lc->dev); in linear_ctr() 56 ti->error = "Device lookup failed"; in linear_ctr() 60 ti->num_flush_bios = 1; in linear_ctr() 61 ti->num_discard_bios = 1; in linear_ctr() 62 ti->num_secure_erase_bios = 1; in linear_ctr() 63 ti->num_write_same_bios = 1; in linear_ctr() [all …]
|
D | dm-flakey.c | 48 struct dm_target *ti) in parse_features() argument 65 r = dm_read_arg_group(_args, as, &argc, &ti->error); in parse_features() 74 ti->error = "Insufficient feature arguments"; in parse_features() 83 ti->error = "Feature drop_writes duplicated"; in parse_features() 86 ti->error = "Feature drop_writes conflicts with feature error_writes"; in parse_features() 98 ti->error = "Feature error_writes duplicated"; in parse_features() 102 ti->error = "Feature error_writes conflicts with feature drop_writes"; in parse_features() 114 ti->error = "Feature corrupt_bio_byte requires parameters"; in parse_features() 118 r = dm_read_arg(_args + 1, as, &fc->corrupt_bio_byte, &ti->error); in parse_features() 132 ti->error = "Invalid corrupt bio direction (r or w)"; in parse_features() [all …]
|
D | dm-default-key.c | 67 static void default_key_dtr(struct dm_target *ti) in default_key_dtr() argument 69 struct default_key_c *dkc = ti->private; in default_key_dtr() 73 dm_put_device(ti, dkc->dev); in default_key_dtr() 79 static int default_key_ctr_optional(struct dm_target *ti, in default_key_ctr_optional() argument 82 struct default_key_c *dkc = ti->private; in default_key_ctr_optional() 96 err = dm_read_arg_group(_args, &as, &opt_params, &ti->error); in default_key_ctr_optional() 103 ti->error = "Not enough feature arguments"; in default_key_ctr_optional() 107 ti->num_discard_bios = 1; in default_key_ctr_optional() 113 ti->error = "Invalid sector_size"; in default_key_ctr_optional() 121 ti->error = "Invalid feature arguments"; in default_key_ctr_optional() [all …]
|
D | dm-unstripe.c | 27 static void cleanup_unstripe(struct unstripe_c *uc, struct dm_target *ti) in cleanup_unstripe() argument 30 dm_put_device(ti, uc->dev); in cleanup_unstripe() 38 static int unstripe_ctr(struct dm_target *ti, unsigned int argc, char **argv) in unstripe_ctr() argument 46 ti->error = "Invalid number of arguments"; in unstripe_ctr() 52 ti->error = "Memory allocation for unstriped context failed"; in unstripe_ctr() 57 ti->error = "Invalid stripe count"; in unstripe_ctr() 62 ti->error = "Invalid chunk_size"; in unstripe_ctr() 67 ti->error = "Invalid stripe number"; in unstripe_ctr() 72 ti->error = "Please provide stripe between [0, # of stripes]"; in unstripe_ctr() 76 if (dm_get_device(ti, argv[3], dm_table_get_mode(ti->table), &uc->dev)) { in unstripe_ctr() [all …]
|
D | dm-table.c | 229 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), bdevname(bdev, b), 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() 292 dm_device_name(ti->table->md), in device_area_is_invalid() 301 dm_device_name(ti->table->md), in device_area_is_invalid() 352 int dm_get_device(struct dm_target *ti, const char *path, fmode_t mode, in dm_get_device() argument 360 struct dm_table *t = ti->table; in dm_get_device() 402 static int dm_set_device_limits(struct dm_target *ti, struct dm_dev *dev, in dm_set_device_limits() argument 412 dm_device_name(ti->table->md), bdevname(bdev, b)); in dm_set_device_limits() [all …]
|
D | dm-delay.c | 120 static void delay_dtr(struct dm_target *ti) in delay_dtr() argument 122 struct delay_c *dc = ti->private; in delay_dtr() 128 dm_put_device(ti, dc->read.dev); in delay_dtr() 130 dm_put_device(ti, dc->write.dev); in delay_dtr() 132 dm_put_device(ti, dc->flush.dev); in delay_dtr() 139 static int delay_class_ctr(struct dm_target *ti, struct delay_class *c, char **argv) in delay_class_ctr() argument 146 ti->error = "Invalid device sector"; in delay_class_ctr() 152 ti->error = "Invalid delay"; in delay_class_ctr() 156 ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &c->dev); in delay_class_ctr() 158 ti->error = "Device lookup failed"; in delay_class_ctr() [all …]
|
D | dm-switch.c | 39 struct dm_target *ti; member 59 static struct switch_ctx *alloc_switch_ctx(struct dm_target *ti, unsigned nr_paths, in alloc_switch_ctx() argument 68 sctx->ti = ti; in alloc_switch_ctx() 71 ti->private = sctx; in alloc_switch_ctx() 76 static int alloc_region_table(struct dm_target *ti, unsigned nr_paths) in alloc_region_table() argument 78 struct switch_ctx *sctx = ti->private; in alloc_region_table() 79 sector_t nr_regions = ti->len; in alloc_region_table() 102 ti->error = "Region table too large"; in alloc_region_table() 112 ti->error = "Region table too large"; in alloc_region_table() 119 ti->error = "Cannot allocate region table"; in alloc_region_table() [all …]
|
D | dm-stripe.c | 39 struct dm_target *ti; member 55 dm_table_event(sc->ti->table); in trigger_event() 61 static int get_stripe(struct dm_target *ti, struct stripe_c *sc, in get_stripe() argument 71 ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), in get_stripe() 85 static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv) in stripe_ctr() argument 95 ti->error = "Not enough arguments"; in stripe_ctr() 100 ti->error = "Invalid stripe count"; in stripe_ctr() 105 ti->error = "Invalid chunk_size"; in stripe_ctr() 109 width = ti->len; in stripe_ctr() 111 ti->error = "Target length not divisible by " in stripe_ctr() [all …]
|
D | dm-ebs-target.c | 19 static void ebs_dtr(struct dm_target *ti); 245 static int ebs_ctr(struct dm_target *ti, unsigned int argc, char **argv) in ebs_ctr() argument 254 ti->error = "Invalid argument count"; in ebs_ctr() 258 ec = ti->private = kzalloc(sizeof(*ec), GFP_KERNEL); in ebs_ctr() 260 ti->error = "Cannot allocate ebs context"; in ebs_ctr() 267 (sector_t)tmp >= ti->len) { in ebs_ctr() 268 ti->error = "Invalid device offset sector"; in ebs_ctr() 276 ti->error = "Invalid emulated block size"; in ebs_ctr() 283 ti->error = "Invalid underlying block size"; in ebs_ctr() 291 r = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &ec->dev); in ebs_ctr() [all …]
|
D | dm-zoned-target.c | 626 static int dmz_map(struct dm_target *ti, struct bio *bio) in dmz_map() argument 628 struct dmz_target *dmz = ti->private; in dmz_map() 689 static int dmz_get_zoned_device(struct dm_target *ti, char *path, in dmz_get_zoned_device() argument 692 struct dmz_target *dmz = ti->private; in dmz_get_zoned_device() 699 ret = dm_get_device(ti, path, dm_table_get_mode(ti->table), &ddev); in dmz_get_zoned_device() 701 ti->error = "Get target device failed"; in dmz_get_zoned_device() 708 ti->error = "Invalid regular device"; in dmz_get_zoned_device() 712 ti->error = "First device must be a regular device"; in dmz_get_zoned_device() 716 ti->error = "Too many regular devices"; in dmz_get_zoned_device() 723 ti->error = "Too many zoned devices"; in dmz_get_zoned_device() [all …]
|
D | dm-mpath.c | 94 struct dm_target *ti; member 178 static void free_pgpaths(struct list_head *pgpaths, struct dm_target *ti) in free_pgpaths() argument 184 dm_put_device(ti, pgpath->path.dev); in free_pgpaths() 190 struct dm_target *ti) in free_priority_group() argument 199 free_pgpaths(&pg->pgpaths, ti); in free_priority_group() 203 static struct multipath *alloc_multipath(struct dm_target *ti) in alloc_multipath() argument 217 m->ti = ti; in alloc_multipath() 218 ti->private = m; in alloc_multipath() 226 static int alloc_multipath_stage2(struct dm_target *ti, struct multipath *m) in alloc_multipath_stage2() argument 239 dm_table_set_type(ti->table, m->queue_mode); in alloc_multipath_stage2() [all …]
|
D | dm-verity-target.c | 83 return v->data_start + dm_target_offset(v->ti, bi_sector); in verity_map_sector() 220 struct mapped_device *md = dm_table_get_md(v->ti->table); in verity_handle_err() 286 struct bio *bio = dm_bio_from_per_bio_data(io, v->ti->per_io_data_size); in verity_verify_level() 378 struct bio *bio = dm_bio_from_per_bio_data(io, v->ti->per_io_data_size); in verity_for_io_block() 425 struct bio *bio = dm_bio_from_per_bio_data(io, v->ti->per_io_data_size); in verity_for_bv_block() 466 struct bio *bio = dm_bio_from_per_bio_data(io, v->ti->per_io_data_size); in verity_bv_skip_block() 481 struct bio *bio = dm_bio_from_per_bio_data(io, v->ti->per_io_data_size); in verity_verify_io() 567 struct bio *bio = dm_bio_from_per_bio_data(io, v->ti->per_io_data_size); in verity_finish_io() 678 static int verity_map(struct dm_target *ti, struct bio *bio) in verity_map() argument 680 struct dm_verity *v = ti->private; in verity_map() [all …]
|
D | dm-raid1.c | 54 struct dm_target *ti; member 254 static int mirror_flush(struct dm_target *ti) in mirror_flush() argument 256 struct mirror_set *ms = ti->private; in mirror_flush() 347 from.count = ms->ti->len & (region_size - 1); in recover() 406 dm_table_event(ms->ti->table); in do_recovery() 455 return m->offset + dm_target_offset(m->ms->ti, bio->bi_iter.bi_sector); in map_sector() 486 if (dm_noflush_suspending(ms->ti)) in hold_bio() 844 dm_table_event(ms->ti->table); in trigger_event() 878 struct dm_target *ti, in alloc_context() argument 885 ti->error = "Cannot allocate mirror context"; in alloc_context() [all …]
|
D | dm-raid.c | 229 struct dm_target *ti; member 514 rs->ti->error = "Invalid flags combination"; in rs_check_for_valid_flags() 701 struct gendisk *gendisk = dm_disk(dm_table_get_md(rs->ti->table)); in rs_set_capacity() 734 static struct raid_set *raid_set_alloc(struct dm_target *ti, struct raid_type *raid_type, in raid_set_alloc() argument 741 ti->error = "Insufficient number of devices"; in raid_set_alloc() 747 ti->error = "Cannot allocate raid context"; in raid_set_alloc() 756 rs->ti = ti; in raid_set_alloc() 789 dm_put_device(rs->ti, rs->journal_dev.dev); in raid_set_free() 794 dm_put_device(rs->ti, rs->dev[i].meta_dev); in raid_set_free() 797 dm_put_device(rs->ti, rs->dev[i].data_dev); in raid_set_free() [all …]
|
D | dm-dust.c | 224 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 …]
|
D | dm-log-writes.c | 528 static int log_writes_ctr(struct dm_target *ti, unsigned int argc, char **argv) in log_writes_ctr() argument 539 ti->error = "Invalid argument count"; in log_writes_ctr() 545 ti->error = "Cannot allocate context"; in log_writes_ctr() 557 ret = dm_get_device(ti, devname, dm_table_get_mode(ti->table), &lc->dev); in log_writes_ctr() 559 ti->error = "Device lookup failed"; in log_writes_ctr() 564 ret = dm_get_device(ti, logdevname, dm_table_get_mode(ti->table), in log_writes_ctr() 567 ti->error = "Log device lookup failed"; in log_writes_ctr() 568 dm_put_device(ti, lc->dev); in log_writes_ctr() 577 ti->error = "Couldn't alloc kthread"; in log_writes_ctr() 578 dm_put_device(ti, lc->dev); in log_writes_ctr() [all …]
|
D | dm-snap.c | 30 #define dm_target_is_snapshot_merge(ti) \ argument 31 ((ti)->type->name == dm_snapshot_merge_target_name) 54 struct dm_target *ti; member 331 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 " in __validate_exception_handover() 513 if (!dm_target_is_snapshot_merge(snap->ti)) in __validate_exception_handover() 520 snap->ti->error = "A snapshot is already merging."; in __validate_exception_handover() 526 snap->ti->error = "Snapshot exception store does not " in __validate_exception_handover() 1199 struct dm_target *ti) in parse_snapshot_features() argument [all …]
|
D | dm-clone-target.c | 70 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 …]
|
D | dm.c | 565 static struct dm_target_io *alloc_tio(struct clone_info *ci, struct dm_target *ti, in alloc_tio() argument 584 tio->ti = ti; in alloc_tio() 897 static bool swap_bios_limit(struct dm_target *ti, struct bio *bio) in swap_bios_limit() argument 899 return unlikely((bio->bi_opf & REQ_SWAP) != 0) && unlikely(ti->limit_swap_bios); in swap_bios_limit() 908 dm_endio_fn endio = tio->ti->type->end_io; in clone_endio() 927 int r = endio(tio->ti, bio, &error); in clone_endio() 951 if (unlikely(swap_bios_limit(tio->ti, bio))) { in clone_endio() 964 static inline sector_t max_io_len_target_boundary(struct dm_target *ti, in max_io_len_target_boundary() argument 967 return ti->len - target_offset; in max_io_len_target_boundary() 970 static sector_t max_io_len(struct dm_target *ti, sector_t sector) in max_io_len() argument [all …]
|
D | dm-crypt.c | 96 int (*ctr)(struct crypt_config *cc, struct dm_target *ti, 353 static int crypt_iv_benbi_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_benbi_ctr() argument 369 ti->error = "cypher blocksize is not a power of 2"; in crypt_iv_benbi_ctr() 374 ti->error = "cypher blocksize is > 512"; in crypt_iv_benbi_ctr() 420 static int crypt_iv_lmk_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_lmk_ctr() argument 426 ti->error = "Unsupported sector size for LMK"; in crypt_iv_lmk_ctr() 433 ti->error = "Error initializing LMK hash"; in crypt_iv_lmk_ctr() 446 ti->error = "Error kmallocing seed storage in LMK"; in crypt_iv_lmk_ctr() 578 static int crypt_iv_tcw_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_tcw_ctr() argument 584 ti->error = "Unsupported sector size for TCW"; in crypt_iv_tcw_ctr() [all …]
|
/drivers/net/wireless/ath/ath11k/ |
D | hal_tx.c | 37 struct hal_tx_info *ti) in ath11k_hal_tx_cmd_desc_setup() argument 42 FIELD_PREP(BUFFER_ADDR_INFO0_ADDR, ti->paddr); in ath11k_hal_tx_cmd_desc_setup() 45 ((uint64_t)ti->paddr >> HAL_ADDR_MSB_REG_SHIFT)); in ath11k_hal_tx_cmd_desc_setup() 48 (ti->ring_id + HAL_RX_BUF_RBM_SW0_BM)) | 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/media/platform/ti-vpe/ |
D | Makefile | 2 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 14 obj-$(CONFIG_VIDEO_TI_CAL) += ti-cal.o 16 ti-cal-y := cal.o cal-camerarx.o cal-video.o
|
/drivers/thermal/ti-soc-thermal/ |
D | Makefile | 2 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/gpu/drm/gma500/ |
D | mid_bios.c | 225 struct gct_r10_timing_info *ti; in mid_get_vbt_data_r10() local 246 ti = &gct[vbt.primary_panel_idx].DTD; in mid_get_vbt_data_r10() 247 dp_ti->pixel_clock = ti->pixel_clock; in mid_get_vbt_data_r10() 248 dp_ti->hactive_hi = ti->hactive_hi; in mid_get_vbt_data_r10() 249 dp_ti->hactive_lo = ti->hactive_lo; in mid_get_vbt_data_r10() 250 dp_ti->hblank_hi = ti->hblank_hi; in mid_get_vbt_data_r10() 251 dp_ti->hblank_lo = ti->hblank_lo; in mid_get_vbt_data_r10() 252 dp_ti->hsync_offset_hi = ti->hsync_offset_hi; in mid_get_vbt_data_r10() 253 dp_ti->hsync_offset_lo = ti->hsync_offset_lo; in mid_get_vbt_data_r10() 254 dp_ti->hsync_pulse_width_hi = ti->hsync_pulse_width_hi; in mid_get_vbt_data_r10() [all …]
|
/drivers/net/netdevsim/ |
D | udp_tunnels.c | 13 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()
|