Home
last modified time | relevance | path

Searched refs:tt (Results 1 – 25 of 128) sorted by relevance

123456

/kernel/linux/linux-5.10/drivers/media/rc/
Dttusbir.c45 struct ttusbir *tt = container_of(led_dev, struct ttusbir, led); in ttusbir_brightness_get() local
47 return tt->led_on ? LED_FULL : LED_OFF; in ttusbir_brightness_get()
50 static void ttusbir_set_led(struct ttusbir *tt) in ttusbir_set_led() argument
56 if (tt->led_on != tt->is_led_on && tt->udev && in ttusbir_set_led()
57 atomic_add_unless(&tt->led_complete, 1, 1)) { in ttusbir_set_led()
58 tt->bulk_buffer[4] = tt->is_led_on = tt->led_on; in ttusbir_set_led()
59 ret = usb_submit_urb(tt->bulk_urb, GFP_ATOMIC); in ttusbir_set_led()
61 dev_warn(tt->dev, "failed to submit bulk urb: %d\n", in ttusbir_set_led()
63 atomic_dec(&tt->led_complete); in ttusbir_set_led()
71 struct ttusbir *tt = container_of(led_dev, struct ttusbir, led); in ttusbir_brightness_set() local
[all …]
/kernel/linux/linux-5.10/drivers/md/
Ddm-target.c21 struct target_type *tt; in __find_target_type() local
23 list_for_each_entry(tt, &_targets, list) in __find_target_type()
24 if (!strcmp(name, tt->name)) in __find_target_type()
25 return tt; in __find_target_type()
32 struct target_type *tt; in get_target_type() local
36 tt = __find_target_type(name); in get_target_type()
37 if (tt && !try_module_get(tt->module)) in get_target_type()
38 tt = NULL; in get_target_type()
41 return tt; in get_target_type()
51 struct target_type *tt = get_target_type(name); in dm_get_target_type() local
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/
Dtt.c70 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; in iwl_tt_is_low_power_state() local
72 if (tt->state >= IWL_TI_1) in iwl_tt_is_low_power_state()
79 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; in iwl_tt_current_power_mode() local
81 return tt->tt_power_mode; in iwl_tt_current_power_mode()
86 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; in iwl_ht_enabled() local
91 restriction = tt->restriction + tt->state; in iwl_ht_enabled()
122 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; in iwl_tx_ant_restriction() local
127 restriction = tt->restriction + tt->state; in iwl_tx_ant_restriction()
133 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; in iwl_rx_ant_restriction() local
138 restriction = tt->restriction + tt->state; in iwl_rx_ant_restriction()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch_offloads_termtbl.c65 struct mlx5_termtbl_handle *tt, in mlx5_eswitch_termtbl_create() argument
87 tt->termtbl = mlx5_create_auto_grouped_flow_table(root_ns, &ft_attr); in mlx5_eswitch_termtbl_create()
88 if (IS_ERR(tt->termtbl)) { in mlx5_eswitch_termtbl_create()
93 tt->rule = mlx5_add_flow_rules(tt->termtbl, NULL, flow_act, in mlx5_eswitch_termtbl_create()
94 &tt->dest, 1); in mlx5_eswitch_termtbl_create()
95 if (IS_ERR(tt->rule)) { in mlx5_eswitch_termtbl_create()
102 err = mlx5_destroy_flow_table(tt->termtbl); in mlx5_eswitch_termtbl_create()
115 struct mlx5_termtbl_handle *tt; in mlx5_eswitch_termtbl_get_create() local
122 hash_for_each_possible(esw->offloads.termtbl_tbl, tt, in mlx5_eswitch_termtbl_get_create()
124 if (!mlx5_eswitch_termtbl_cmp(&tt->flow_act, &tt->dest, in mlx5_eswitch_termtbl_get_create()
[all …]
Den_fs.c791 int tt; in mlx5e_any_tunnel_proto_supported() local
793 for (tt = 0; tt < MLX5E_NUM_TUNNEL_TT; tt++) { in mlx5e_any_tunnel_proto_supported()
794 if (mlx5e_tunnel_proto_supported(mdev, ttc_tunnel_rules[tt].proto)) in mlx5e_any_tunnel_proto_supported()
870 int tt; in mlx5e_generate_ttc_table_rules() local
877 for (tt = 0; tt < MLX5E_NUM_TT; tt++) { in mlx5e_generate_ttc_table_rules()
878 struct mlx5e_ttc_rule *rule = &rules[tt]; in mlx5e_generate_ttc_table_rules()
880 if (tt == MLX5E_TT_ANY) in mlx5e_generate_ttc_table_rules()
883 dest.tir_num = params->indir_tirn[tt]; in mlx5e_generate_ttc_table_rules()
886 ttc_rules[tt].etype, in mlx5e_generate_ttc_table_rules()
887 ttc_rules[tt].proto); in mlx5e_generate_ttc_table_rules()
[all …]
/kernel/linux/linux-5.10/net/batman-adv/
Dtranslation-table.c107 struct batadv_tt_common_entry *tt; in batadv_choose_tt() local
110 tt = (struct batadv_tt_common_entry *)data; in batadv_choose_tt()
111 hash = jhash(&tt->addr, ETH_ALEN, hash); in batadv_choose_tt()
112 hash = jhash(&tt->vid, sizeof(tt->vid), hash); in batadv_choose_tt()
131 struct batadv_tt_common_entry to_search, *tt, *tt_tmp = NULL; in batadv_tt_hash_find() local
144 hlist_for_each_entry_rcu(tt, head, hash_entry) { in batadv_tt_hash_find()
145 if (!batadv_compare_eth(tt, addr)) in batadv_tt_hash_find()
148 if (tt->vid != vid) in batadv_tt_hash_find()
151 if (!kref_get_unless_zero(&tt->refcount)) in batadv_tt_hash_find()
154 tt_tmp = tt; in batadv_tt_hash_find()
[all …]
Dmain.c163 spin_lock_init(&bat_priv->tt.changes_list_lock); in batadv_mesh_init()
164 spin_lock_init(&bat_priv->tt.req_list_lock); in batadv_mesh_init()
165 spin_lock_init(&bat_priv->tt.roam_list_lock); in batadv_mesh_init()
166 spin_lock_init(&bat_priv->tt.last_changeset_lock); in batadv_mesh_init()
167 spin_lock_init(&bat_priv->tt.commit_lock); in batadv_mesh_init()
186 INIT_LIST_HEAD(&bat_priv->tt.changes_list); in batadv_mesh_init()
187 INIT_HLIST_HEAD(&bat_priv->tt.req_list); in batadv_mesh_init()
188 INIT_LIST_HEAD(&bat_priv->tt.roam_list); in batadv_mesh_init()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Dtt.c73 struct iwl_mvm_tt_mgmt *tt = &mvm->thermal_throttle; in iwl_mvm_enter_ctkill() local
74 u32 duration = tt->params.ct_kill_duration; in iwl_mvm_enter_ctkill()
83 tt->throttle = false; in iwl_mvm_enter_ctkill()
84 tt->dynamic_smps = false; in iwl_mvm_enter_ctkill()
92 schedule_delayed_work(&tt->ct_kill_exit, in iwl_mvm_enter_ctkill()
335 struct iwl_mvm_tt_mgmt *tt; in check_exit_ctkill() local
341 tt = container_of(work, struct iwl_mvm_tt_mgmt, ct_kill_exit.work); in check_exit_ctkill()
342 mvm = container_of(tt, struct iwl_mvm, thermal_throttle); in check_exit_ctkill()
350 duration = tt->params.ct_kill_duration; in check_exit_ctkill()
368 if (temp <= tt->params.ct_kill_exit) { in check_exit_ctkill()
[all …]
/kernel/linux/linux-5.10/drivers/iio/
Dindustrialio-sw-trigger.c103 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()
/kernel/linux/linux-5.10/drivers/usb/host/
Dxhci-mtk-sch.c111 struct usb_tt *utt = udev->tt; in find_tt()
112 struct mu3h_sch_tt *tt, **tt_index, **ptt; in find_tt() local
142 tt = *ptt; in find_tt()
143 if (!tt) { /* Create the mu3h_sch_tt */ in find_tt()
144 tt = kzalloc(sizeof(*tt), GFP_KERNEL); in find_tt()
145 if (!tt) { in find_tt()
152 INIT_LIST_HEAD(&tt->ep_list); in find_tt()
153 tt->usb_tt = utt; in find_tt()
154 tt->tt_port = port; in find_tt()
155 *ptt = tt; in find_tt()
[all …]
Dehci-sched.c103 struct usb_tt *utt = udev->tt; in find_tt()
104 struct ehci_tt *tt, **tt_index, **ptt; in find_tt() local
135 tt = *ptt; in find_tt()
136 if (!tt) { /* Create the ehci_tt */ in find_tt()
140 tt = kzalloc(sizeof(*tt), GFP_ATOMIC); in find_tt()
141 if (!tt) { in find_tt()
148 list_add_tail(&tt->tt_list, &ehci->tt_list); in find_tt()
149 INIT_LIST_HEAD(&tt->ps_list); in find_tt()
150 tt->usb_tt = utt; in find_tt()
151 tt->tt_port = port; in find_tt()
[all …]
/kernel/linux/linux-5.10/include/drm/ttm/
Dttm_tt.h77 static inline bool ttm_tt_is_populated(struct ttm_tt *tt) in ttm_tt_is_populated() argument
79 return tt->page_flags & TTM_PAGE_FLAG_PRIV_POPULATED; in ttm_tt_is_populated()
82 static inline void ttm_tt_set_unpopulated(struct ttm_tt *tt) in ttm_tt_set_unpopulated() argument
84 tt->page_flags &= ~TTM_PAGE_FLAG_PRIV_POPULATED; in ttm_tt_set_unpopulated()
87 static inline void ttm_tt_set_populated(struct ttm_tt *tt) in ttm_tt_set_populated() argument
89 tt->page_flags |= TTM_PAGE_FLAG_PRIV_POPULATED; in ttm_tt_set_populated()
/kernel/linux/linux-5.10/drivers/lightnvm/
Dcore.c241 struct nvm_tgt_type *tt; in __nvm_find_target_type() local
243 list_for_each_entry(tt, &nvm_tgt_types, list) in __nvm_find_target_type()
244 if (!strcmp(name, tt->name)) in __nvm_find_target_type()
245 return tt; in __nvm_find_target_type()
252 struct nvm_tgt_type *tt; in nvm_find_target_type() local
255 tt = __nvm_find_target_type(name); in nvm_find_target_type()
258 return tt; in nvm_find_target_type()
310 struct nvm_tgt_type *tt; in nvm_create_tgt() local
339 tt = nvm_find_target_type(create->tgttype); in nvm_create_tgt()
340 if (!tt) { in nvm_create_tgt()
[all …]
/kernel/linux/linux-5.10/arch/arm64/crypto/
Daes-cipher-core.S18 tt .req x2
37 ldr \reg0, [tt, \reg0, uxtw #2]
38 ldr \reg1, [tt, \reg1, uxtw #2]
44 ldrb \reg0, [tt, \reg0, uxtw]
45 ldrb \reg1, [tt, \reg1, uxtw]
52 ldr\op \reg0, [tt, \reg0, uxtw #\sz]
53 ldr\op \reg1, [tt, \reg1, uxtw #\sz]
100 adr_l tt, \ttab
112 3: adr_l tt, \ltab
/kernel/linux/linux-5.10/include/linux/iio/
Dsw_trigger.h48 int iio_register_sw_trigger_type(struct iio_sw_trigger_type *tt);
49 void iio_unregister_sw_trigger_type(struct iio_sw_trigger_type *tt);
54 int iio_sw_trigger_type_configfs_register(struct iio_sw_trigger_type *tt);
55 void iio_sw_trigger_type_configfs_unregister(struct iio_sw_trigger_type *tt);
/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/
Dttm_page_alloc.c1097 int ttm_populate_and_map_pages(struct device *dev, struct ttm_dma_tt *tt, in ttm_populate_and_map_pages() argument
1103 r = ttm_pool_populate(&tt->ttm, ctx); in ttm_populate_and_map_pages()
1107 for (i = 0; i < tt->ttm.num_pages; ++i) { in ttm_populate_and_map_pages()
1108 struct page *p = tt->ttm.pages[i]; in ttm_populate_and_map_pages()
1111 for (j = i + 1; j < tt->ttm.num_pages; ++j) { in ttm_populate_and_map_pages()
1112 if (++p != tt->ttm.pages[j]) in ttm_populate_and_map_pages()
1118 tt->dma_address[i] = dma_map_page(dev, tt->ttm.pages[i], in ttm_populate_and_map_pages()
1121 if (dma_mapping_error(dev, tt->dma_address[i])) { in ttm_populate_and_map_pages()
1123 dma_unmap_page(dev, tt->dma_address[i], in ttm_populate_and_map_pages()
1125 tt->dma_address[i] = 0; in ttm_populate_and_map_pages()
[all …]
/kernel/linux/linux-5.10/arch/um/os-Linux/
Dutil.c28 struct termios tt; in raw() local
31 CATCH_EINTR(err = tcgetattr(fd, &tt)); in raw()
35 cfmakeraw(&tt); in raw()
37 CATCH_EINTR(err = tcsetattr(fd, TCSADRAIN, &tt)); in raw()
/kernel/linux/linux-5.10/lib/lzo/
Dlzo1x_compress.c132 size_t tt = t - 18; in lzo1x_1_do_compress() local
134 while (unlikely(tt > 255)) { in lzo1x_1_do_compress()
135 tt -= 255; in lzo1x_1_do_compress()
138 *op++ = tt; in lzo1x_1_do_compress()
353 size_t tt = t - 18; in lzogeneric1x_1_compress() local
355 while (tt > 255) { in lzogeneric1x_1_compress()
356 tt -= 255; in lzogeneric1x_1_compress()
359 *op++ = tt; in lzogeneric1x_1_compress()
/kernel/linux/linux-5.10/arch/x86/crypto/
Dcamellia_glue.c798 u64 kw4, tt; in camellia_setup_tail() local
913 tt = (tr | ((u64)tl << 32)); in camellia_setup_tail()
915 SET_SUBKEY_LR(7, subRL[6] ^ tt); /* round 6 */ in camellia_setup_tail()
922 tt = (tr | ((u64)tl << 32)); in camellia_setup_tail()
924 SET_SUBKEY_LR(10, subRL[11] ^ tt); /* round 7 */ in camellia_setup_tail()
933 tt = (tr | ((u64)tl << 32)); in camellia_setup_tail()
935 SET_SUBKEY_LR(15, subRL[14] ^ tt); /* round 12 */ in camellia_setup_tail()
942 tt = (tr | ((u64)tl << 32)); in camellia_setup_tail()
944 SET_SUBKEY_LR(18, subRL[19] ^ tt); /* round 13 */ in camellia_setup_tail()
957 tt = (tr | ((u64)tl << 32)); in camellia_setup_tail()
[all …]
/kernel/linux/linux-5.10/arch/um/drivers/
Dfd.c18 struct termios tt; member
56 CATCH_EINTR(err = tcgetattr(data->fd, &data->tt)); in fd_open()
77 CATCH_EINTR(err = tcsetattr(fd, TCSAFLUSH, &data->tt)); in fd_close()
/kernel/linux/linux-5.10/drivers/scsi/libfc/
Dfc_disc.c362 if (lport->tt.elsct_send(lport, 0, fp, in fc_disc_gpn_ft_req()
656 if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, FC_NS_GPN_ID, in fc_disc_gpn_id_req()
719 if (!lport->tt.disc_start) in fc_disc_config()
720 lport->tt.disc_start = fc_disc_start; in fc_disc_config()
722 if (!lport->tt.disc_stop) in fc_disc_config()
723 lport->tt.disc_stop = fc_disc_stop; in fc_disc_config()
725 if (!lport->tt.disc_stop_final) in fc_disc_config()
726 lport->tt.disc_stop_final = fc_disc_stop_final; in fc_disc_config()
728 if (!lport->tt.disc_recv_req) in fc_disc_config()
729 lport->tt.disc_recv_req = fc_disc_recv_req; in fc_disc_config()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_gem_vram_helper.c923 static void bo_driver_ttm_tt_destroy(struct ttm_bo_device *bdev, struct ttm_tt *tt) in bo_driver_ttm_tt_destroy() argument
925 ttm_tt_destroy_common(bdev, tt); in bo_driver_ttm_tt_destroy()
926 ttm_tt_fini(tt); in bo_driver_ttm_tt_destroy()
927 kfree(tt); in bo_driver_ttm_tt_destroy()
937 struct ttm_tt *tt; in bo_driver_ttm_tt_create() local
940 tt = kzalloc(sizeof(*tt), GFP_KERNEL); in bo_driver_ttm_tt_create()
941 if (!tt) in bo_driver_ttm_tt_create()
944 ret = ttm_tt_init(tt, bo, page_flags); in bo_driver_ttm_tt_create()
948 return tt; in bo_driver_ttm_tt_create()
951 kfree(tt); in bo_driver_ttm_tt_create()
/kernel/linux/linux-5.10/drivers/block/aoe/
Daoecmd.c253 struct aoetgt *t, **tt; in newframe() local
262 tt = d->tgt; /* last used target */ in newframe()
264 tt++; in newframe()
265 if (tt >= &d->targets[d->ntargets] || !*tt) in newframe()
266 tt = d->targets; in newframe()
267 t = *tt; in newframe()
278 d->tgt = tt; in newframe()
282 if (tt == d->tgt) { /* we've looped and found nada */ in newframe()
1423 struct aoetgt **tt; in grow_targets() local
1427 tt = kcalloc(newn, sizeof(*d->targets), GFP_ATOMIC); in grow_targets()
[all …]
/kernel/linux/linux-5.10/arch/s390/kvm/
Dgaccess.c52 unsigned long tt : 2; /* Table-Type Bits */ member
67 unsigned long tt : 2; /* Table-Type Bits */ member
81 unsigned long tt : 2; /* Table-Type Bits */ member
97 unsigned long tt : 2; /* Table-Type Bits */ member
111 unsigned long tt : 2; /* Table-Type Bits */ member
123 unsigned long tt : 2; /* Table-Type Bits */ member
139 unsigned long tt : 2; /* Table-Type Bits */ member
153 unsigned long tt : 2; /* Table-Type Bits */ member
672 if (rfte.tt != TABLE_TYPE_REGION1) in guest_translate()
690 if (rste.tt != TABLE_TYPE_REGION2) in guest_translate()
[all …]
/kernel/linux/linux-5.10/arch/sh/kernel/
Dtraps.c94 enum bug_trap_type tt; in handle_BUG() local
105 tt = report_bug(bugaddr, regs); in handle_BUG()
106 if (tt == BUG_TRAP_TYPE_WARN) { in handle_BUG()

123456