| /drivers/media/rc/ |
| A D | ttusbir.c | 56 if (tt->led_on != tt->is_led_on && tt->udev && in ttusbir_set_led() 58 tt->bulk_buffer[4] = tt->is_led_on = tt->led_on; in ttusbir_set_led() 190 tt = kzalloc(sizeof(*tt), GFP_KERNEL); in ttusbir_probe() 232 tt->rc = rc; in ttusbir_probe() 283 usb_fill_bulk_urb(tt->bulk_urb, tt->udev, usb_sndbulkpipe(tt->udev, in ttusbir_probe() 284 tt->bulk_out_endp), tt->bulk_buffer, sizeof(tt->bulk_buffer), in ttusbir_probe() 291 tt->is_led_on = tt->led_on = true; in ttusbir_probe() 297 usb_make_path(tt->udev, tt->phys, sizeof(tt->phys)); in ttusbir_probe() 340 if (tt) { in ttusbir_probe() 351 kfree(tt); in ttusbir_probe() [all …]
|
| /drivers/gpu/drm/ttm/tests/ |
| A D | ttm_tt_test.c | 50 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL); in ttm_tt_init_basic() 76 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL); in ttm_tt_init_misaligned() 97 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL); in ttm_tt_fini_basic() 117 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL); in ttm_tt_fini_sg() 138 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL); in ttm_tt_fini_shmem() 195 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL); in ttm_tt_create_ttm_exists() 202 bo->ttm = tt; in ttm_tt_create_ttm_exists() 280 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL); in ttm_tt_populate_populated_ttm() 304 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL); in ttm_tt_unpopulate_basic() 327 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL); in ttm_tt_unpopulate_empty_ttm() [all …]
|
| A D | ttm_pool_test.c | 57 struct ttm_tt *tt; in ttm_tt_kunit_init() local 64 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL); in ttm_tt_kunit_init() 70 return tt; in ttm_tt_kunit_init() 80 struct ttm_tt *tt; in ttm_pool_pre_populated() local 95 ttm_tt_fini(tt); in ttm_pool_pre_populated() 165 last_page = tt->pages[tt->num_pages - 1]; in ttm_pool_alloc_basic() 191 ttm_tt_fini(tt); in ttm_pool_alloc_basic() 209 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL); in ttm_pool_alloc_basic_dma_addr() 228 dma2 = tt->dma_address[tt->num_pages - 1]; in ttm_pool_alloc_basic_dma_addr() 234 ttm_tt_fini(tt); in ttm_pool_alloc_basic_dma_addr() [all …]
|
| /drivers/net/wireless/intel/iwlwifi/dvm/ |
| A D | tt.c | 87 restriction = tt->restriction + tt->state; in iwl_ht_enabled() 123 restriction = tt->restriction + tt->state; in iwl_tx_ant_restriction() 245 old_state = tt->state; in iwl_legacy_tt_handler() 250 tt->state = IWL_TI_2; in iwl_legacy_tt_handler() 252 tt->state = IWL_TI_1; in iwl_legacy_tt_handler() 254 tt->state = IWL_TI_0; in iwl_legacy_tt_handler() 262 switch (tt->state) { in iwl_legacy_tt_handler() 306 tt->state); in iwl_legacy_tt_handler() 374 tt->state = in iwl_advance_tt_handler() 436 tt->state); in iwl_advance_tt_handler() [all …]
|
| /drivers/md/ |
| A D | dm-target.c | 23 struct target_type *tt; in __find_target_type() local 27 return tt; in __find_target_type() 34 struct target_type *tt; in get_target_type() local 39 if (tt && !try_module_get(tt->module)) in get_target_type() 40 tt = NULL; in get_target_type() 43 return tt; in get_target_type() 55 if (!tt) { in dm_get_target_type() 60 return tt; in dm_get_target_type() 77 iter_func(tt, param); in dm_target_iterate() 109 list_del(&tt->list); in dm_unregister_target() [all …]
|
| /drivers/net/ethernet/mellanox/mlx5/core/en/ |
| A D | rss.c | 168 for (tt = 0; tt < MLX5E_NUM_INDIR_TIRS; tt++) in mlx5e_rss_params_init() 176 return inner ? &rss->inner_tir[tt] : &rss->tir[tt]; in rss_get_tirp() 210 tt); in mlx5e_rss_create_tir() 274 for (tt = 0; tt < MLX5E_NUM_INDIR_TIRS; tt++) { in mlx5e_rss_create_tirs() 283 max_tt = tt; in mlx5e_rss_create_tirs() 284 for (tt = 0; tt < max_tt; tt++) in mlx5e_rss_create_tirs() 293 for (tt = 0; tt < MLX5E_NUM_INDIR_TIRS; tt++) in mlx5e_rss_destroy_tirs() 329 for (tt = 0; tt < MLX5E_NUM_INDIR_TIRS; tt++) { in mlx5e_rss_update_tirs() 536 for (tt = 0; tt < MLX5E_NUM_INDIR_TIRS; tt++) { in mlx5e_rss_packet_merge_set_param() 680 tt, err); in mlx5e_rss_set_hash_fields() [all …]
|
| A D | rss.h | 17 mlx5e_rss_get_default_tt_config(enum mlx5_traffic_types tt); 36 u32 mlx5e_rss_get_tirn(struct mlx5e_rss *rss, enum mlx5_traffic_types tt, 38 bool mlx5e_rss_valid_tir(struct mlx5e_rss *rss, enum mlx5_traffic_types tt, bool inner); 41 enum mlx5_traffic_types tt, 56 u8 mlx5e_rss_get_hash_fields(struct mlx5e_rss *rss, enum mlx5_traffic_types tt); 57 int mlx5e_rss_set_hash_fields(struct mlx5e_rss *rss, enum mlx5_traffic_types tt,
|
| A D | rx_res.h | 36 u32 mlx5e_rx_res_get_tirn_rss(struct mlx5e_rx_res *res, enum mlx5_traffic_types tt); 37 u32 mlx5e_rx_res_get_tirn_rss_inner(struct mlx5e_rx_res *res, enum mlx5_traffic_types tt); 59 enum mlx5_traffic_types tt); 61 enum mlx5_traffic_types tt, u8 rx_hash_fields);
|
| /drivers/net/ethernet/mellanox/mlx5/core/ |
| A D | eswitch_offloads_termtbl.c | 94 tt->rule = mlx5_add_flow_rules(tt->termtbl, NULL, flow_act, in mlx5_eswitch_termtbl_create() 96 if (IS_ERR(tt->rule)) { in mlx5_eswitch_termtbl_create() 126 if (!mlx5_eswitch_termtbl_cmp(&tt->flow_act, &tt->dest, in mlx5_eswitch_termtbl_get_create() 135 tt = kzalloc(sizeof(*tt), GFP_KERNEL); in mlx5_eswitch_termtbl_get_create() 136 if (!tt) { in mlx5_eswitch_termtbl_get_create() 153 tt->ref_count++; in mlx5_eswitch_termtbl_get_create() 155 return tt; in mlx5_eswitch_termtbl_get_create() 157 kfree(tt); in mlx5_eswitch_termtbl_get_create() 171 if (!tt->ref_count) { in mlx5_eswitch_termtbl_put() 174 kfree(tt); in mlx5_eswitch_termtbl_put() [all …]
|
| A D | en_fs.c | 900 int tt; in mlx5e_set_inner_ttc_params() local 907 for (tt = 0; tt < MLX5_NUM_TT; tt++) { in mlx5e_set_inner_ttc_params() 909 ttc_params->dests[tt].tir_num = in mlx5e_set_inner_ttc_params() 910 tt == MLX5_TT_ANY ? in mlx5e_set_inner_ttc_params() 913 tt); in mlx5e_set_inner_ttc_params() 923 int tt; in mlx5e_set_ttc_params() local 930 for (tt = 0; tt < MLX5_NUM_TT; tt++) { in mlx5e_set_ttc_params() 932 ttc_params->dests[tt].tir_num = in mlx5e_set_ttc_params() 933 tt == MLX5_TT_ANY ? in mlx5e_set_ttc_params() 942 for (tt = 0; tt < MLX5_NUM_TUNNEL_TT; tt++) { in mlx5e_set_ttc_params() [all …]
|
| A D | en_fs_ethtool.c | 432 int tt; in flow_get_tirn() local 439 tt = flow_type_to_traffic_type(flow_type); in flow_get_tirn() 440 if (tt < 0) in flow_get_tirn() 905 int tt; in mlx5e_ethtool_set_rxfh_fields() local 910 tt = flow_type_to_traffic_type(flow_type); in mlx5e_ethtool_set_rxfh_fields() 911 if (tt < 0) in mlx5e_ethtool_set_rxfh_fields() 912 return tt; in mlx5e_ethtool_set_rxfh_fields() 950 int tt; in mlx5e_ethtool_get_rxfh_fields() local 955 tt = flow_type_to_traffic_type(flow_type); in mlx5e_ethtool_get_rxfh_fields() 956 if (tt < 0) in mlx5e_ethtool_get_rxfh_fields() [all …]
|
| /drivers/gpu/drm/ttm/ |
| A D | ttm_pool.c | 777 kfree(tt->restore); in __ttm_pool_alloc() 778 tt->restore = NULL; in __ttm_pool_alloc() 786 if (tt->restore) in __ttm_pool_alloc() 790 ttm_pool_free_range(pool, tt, tt->caching, 0, caching_divide); in __ttm_pool_alloc() 851 tt->restore = kzalloc(sizeof(*tt->restore), gfp); in ttm_pool_restore_and_alloc() 852 if (!tt->restore) in ttm_pool_restore_and_alloc() 872 return __ttm_pool_alloc(pool, tt, ctx, &alloc, tt->restore); in ttm_pool_restore_and_alloc() 885 ttm_pool_free_range(pool, tt, tt->caching, 0, tt->num_pages); in ttm_pool_free() 931 ttm_pool_free_range(restore->pool, tt, tt->caching, in ttm_pool_drop_backed_up() 940 ttm_pool_free_range(NULL, tt, ttm_cached, start_page, tt->num_pages); in ttm_pool_drop_backed_up() [all …]
|
| A D | ttm_tt.c | 284 if (WARN_ON(IS_ERR_OR_NULL(tt->backup))) in ttm_tt_backup() 287 ret = ttm_pool_backup(&bdev->pool, tt, &flags); in ttm_tt_backup() 290 tt->page_flags |= TTM_TT_FLAG_BACKED_UP; in ttm_tt_backup() 304 tt->page_flags &= ~TTM_TT_FLAG_BACKED_UP; in ttm_tt_restore() 517 struct ttm_tt *tt) in ttm_kmap_iter_tt_init() argument 520 iter_tt->tt = tt; in ttm_kmap_iter_tt_init() 521 if (tt) in ttm_kmap_iter_tt_init() 546 int ttm_tt_setup_backup(struct ttm_tt *tt) in ttm_tt_setup_backup() argument 557 if (tt->backup) in ttm_tt_setup_backup() 558 ttm_backup_fini(tt->backup); in ttm_tt_setup_backup() [all …]
|
| /drivers/gpu/nova-core/regs/ |
| A D | macros.rs | 92 $($fields:tt)* 103 $($fields:tt)* 114 $($fields:tt)* 125 $($fields:tt)* 178 $($hi:tt:$lo:tt $field:ident as $type:tt 204 (@check_field_bounds $hi:tt:$lo:tt $field:ident as bool) => { 215 (@check_field_bounds $hi:tt:$lo:tt $field:ident as $type:tt) => { 246 @field_accessor $name:ident $hi:tt:$lo:tt $field:ident as $type:tt ?=> $try_into_type:ty 260 @field_accessor $name:ident $hi:tt:$lo:tt $field:ident as $type:tt => $into_type:ty 269 @field_accessor $name:ident $hi:tt:$lo:tt $field:ident as $type:tt [all …]
|
| /drivers/net/ethernet/mellanox/mlx5/core/lag/ |
| A D | port_sel.c | 121 switch (tt) { in mlx5_lag_set_definer_inner() 210 switch (tt) { in mlx5_lag_set_definer() 375 int tt; in mlx5_lag_destroy_definers() local 393 int tt, err; in mlx5_lag_create_definers() local 469 int tt; in mlx5_lag_set_inner_ttc_params() local 476 ttc_params->dests[tt].type = in mlx5_lag_set_inner_ttc_params() 478 ttc_params->dests[tt].ft = port_sel->inner.definers[tt]->ft; in mlx5_lag_set_inner_ttc_params() 488 int tt; in mlx5_lag_set_outer_ttc_params() local 497 ttc_params->dests[tt].ft = port_sel->outer.definers[tt]->ft; in mlx5_lag_set_outer_ttc_params() 505 for (tt = 0; tt < MLX5_NUM_TUNNEL_TT; tt++) { in mlx5_lag_set_outer_ttc_params() [all …]
|
| /drivers/usb/host/ |
| A D | xhci-mtk-sch.c | 194 tt = *ptt; in find_tt() 196 tt = kzalloc(sizeof(*tt), GFP_KERNEL); in find_tt() 197 if (!tt) { in find_tt() 205 *ptt = tt; in find_tt() 208 return tt; in find_tt() 233 tt = *ptt; in drop_tt() 234 if (!tt || !list_empty(&tt->ep_list)) in drop_tt() 238 kfree(tt); in drop_tt() 273 if (IS_ERR(tt)) { in create_sch_ep() 641 if (!tt) in check_isoc_ss_overlap() [all …]
|
| A D | ehci-sched.c | 135 tt = *ptt; in find_tt() 140 tt = kzalloc(sizeof(*tt), GFP_ATOMIC); in find_tt() 141 if (!tt) { in find_tt() 152 *ptt = tt; in find_tt() 155 return tt; in find_tt() 181 tt = *ptt; in drop_tt() 182 if (!tt || !list_empty(&tt->ps_list)) in drop_tt() 187 kfree(tt); in drop_tt() 274 if (!tt) in compute_tt_budget() 304 if (!dev1->tt || !dev2->tt) in same_tt() [all …]
|
| /drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| A D | fs_ttc.c | 232 int tt; in mlx5_tunnel_any_rx_proto_supported() local 234 for (tt = 0; tt < MLX5_NUM_TUNNEL_TT; tt++) { in mlx5_tunnel_any_rx_proto_supported() 337 int tt; in mlx5_generate_ttc_table_rules() local 342 for (tt = 0; tt < MLX5_NUM_TT; tt++) { in mlx5_generate_ttc_table_rules() 363 for (tt = 0; tt < MLX5_NUM_TUNNEL_TT; tt++) { in mlx5_generate_ttc_table_rules() 374 if (IS_ERR(trules[tt])) { in mlx5_generate_ttc_table_rules() 375 err = PTR_ERR(trules[tt]); in mlx5_generate_ttc_table_rules() 376 trules[tt] = NULL; in mlx5_generate_ttc_table_rules() 522 int tt; in mlx5_generate_inner_ttc_table_rules() local 527 for (tt = 0; tt < MLX5_NUM_TT; tt++) { in mlx5_generate_inner_ttc_table_rules() [all …]
|
| /drivers/net/wireless/intel/iwlwifi/mvm/ |
| A D | tt.c | 28 tt->throttle = false; in iwl_mvm_enter_ctkill() 29 tt->dynamic_smps = false; in iwl_mvm_enter_ctkill() 279 struct iwl_mvm_tt_mgmt *tt; in check_exit_ctkill() local 409 if (!tt->dynamic_smps && in iwl_mvm_tt_handler() 412 tt->dynamic_smps = true; in iwl_mvm_tt_handler() 453 tt->throttle = true; in iwl_mvm_tt_handler() 454 } else if (tt->throttle && !tt->dynamic_smps && in iwl_mvm_tt_handler() 455 tt->tx_backoff == tt->min_backoff && in iwl_mvm_tt_handler() 459 tt->throttle = false; in iwl_mvm_tt_handler() 839 tt->throttle = false; in iwl_mvm_thermal_initialize() [all …]
|
| /drivers/iio/ |
| A D | industrialio-sw-trigger.c | 103 struct iio_sw_trigger_type *tt; in iio_sw_trigger_create() local 105 tt = iio_get_sw_trigger_type(type); in iio_sw_trigger_create() 106 if (!tt) { in iio_sw_trigger_create() 110 t = tt->ops->probe(name); in iio_sw_trigger_create() 114 t->trigger_type = tt; in iio_sw_trigger_create() 118 module_put(tt->owner); in iio_sw_trigger_create() 125 struct iio_sw_trigger_type *tt = t->trigger_type; in iio_sw_trigger_destroy() local 127 tt->ops->remove(t); in iio_sw_trigger_destroy() 128 module_put(tt->owner); in iio_sw_trigger_destroy()
|
| /drivers/gpu/drm/xe/ |
| A D | xe_bo.c | 442 struct ttm_tt *tt; in xe_ttm_tt_create() local 451 tt = &xe_tt->ttm; in xe_ttm_tt_create() 509 ttm_tt_fini(tt); in xe_ttm_tt_create() 515 return tt; in xe_ttm_tt_create() 535 ttm_tt_clear_backed_up(tt); in xe_ttm_tt_populate() 556 xe_tt_unmap_sg(xe, tt); in xe_ttm_tt_unpopulate() 565 ttm_tt_fini(tt); in xe_ttm_tt_destroy() 566 kfree(tt); in xe_ttm_tt_destroy() 1059 struct ttm_tt *tt = bo->ttm; in xe_bo_shrink() local 1091 *scanned += tt->num_pages; in xe_bo_shrink() [all …]
|
| /drivers/gpu/drm/loongson/ |
| A D | lsdc_ttm.c | 86 static void lsdc_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *tt) in lsdc_ttm_tt_destroy() argument 88 ttm_tt_fini(tt); in lsdc_ttm_tt_destroy() 89 kfree(tt); in lsdc_ttm_tt_destroy() 95 struct ttm_tt *tt; in lsdc_ttm_tt_create() local 98 tt = kzalloc(sizeof(*tt), GFP_KERNEL); in lsdc_ttm_tt_create() 99 if (!tt) in lsdc_ttm_tt_create() 102 ret = ttm_sg_tt_init(tt, tbo, page_flags, ttm_cached); in lsdc_ttm_tt_create() 104 kfree(tt); in lsdc_ttm_tt_create() 108 return tt; in lsdc_ttm_tt_create()
|
| /drivers/scsi/libfc/ |
| A D | fc_disc.c | 359 if (lport->tt.elsct_send(lport, 0, fp, in fc_disc_gpn_ft_req() 653 if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, FC_NS_GPN_ID, in fc_disc_gpn_id_req() 716 if (!lport->tt.disc_start) in fc_disc_config() 717 lport->tt.disc_start = fc_disc_start; in fc_disc_config() 719 if (!lport->tt.disc_stop) in fc_disc_config() 720 lport->tt.disc_stop = fc_disc_stop; in fc_disc_config() 722 if (!lport->tt.disc_stop_final) in fc_disc_config() 723 lport->tt.disc_stop_final = fc_disc_stop_final; in fc_disc_config() 725 if (!lport->tt.disc_recv_req) in fc_disc_config() 726 lport->tt.disc_recv_req = fc_disc_recv_req; in fc_disc_config()
|
| /drivers/gpu/drm/ |
| A D | drm_gem_vram_helper.c | 707 static void bo_driver_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *tt) in bo_driver_ttm_tt_destroy() argument 709 ttm_tt_fini(tt); in bo_driver_ttm_tt_destroy() 710 kfree(tt); in bo_driver_ttm_tt_destroy() 720 struct ttm_tt *tt; in bo_driver_ttm_tt_create() local 723 tt = kzalloc(sizeof(*tt), GFP_KERNEL); in bo_driver_ttm_tt_create() 724 if (!tt) in bo_driver_ttm_tt_create() 727 ret = ttm_tt_init(tt, bo, page_flags, ttm_cached, 0); in bo_driver_ttm_tt_create() 731 return tt; in bo_driver_ttm_tt_create() 734 kfree(tt); in bo_driver_ttm_tt_create()
|
| /drivers/block/aoe/ |
| A D | aoecmd.c | 263 tt++; in newframe() 264 if (tt >= &d->targets[d->ntargets] || !*tt) in newframe() 265 tt = d->targets; in newframe() 266 t = *tt; in newframe() 277 d->tgt = tt; in newframe() 1435 if (!tt) in grow_targets() 1440 d->targets = tt; in grow_targets() 1453 for (; tt < te && *tt; tt++) in addtgt() 1456 if (tt == te) { in addtgt() 1458 if (!tt) in addtgt() [all …]
|