| /linux/drivers/media/rc/ |
| H A D | ttusbir.c | 45 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 …]
|
| /linux/rust/quote/ |
| H A D | lib.rs | 485 ($($tt:tt)*) => { 500 ($tt:tt) => {{ 502 $crate::quote_token!{$tt _s} 512 ($tt1:tt $tt2:tt) => {{ 520 ($($tt:tt)*) => {{ 522 $crate::quote_each_token!{_s $($tt)*} 632 ($span:expr=> $($tt:tt)*) => { 648 ($span:expr=> $tt:tt) => {{ 651 $crate::quote_token_spanned!{$tt _s _span} 662 ($span:expr=> $tt1:tt $tt2:tt) => {{ [all …]
|
| H A D | format.rs | 121 ($fmt:expr, $($rest:tt)*) => { 133 ([$span:expr, $($fmt:tt)*]) => { 141 ([$old:expr, $($fmt:tt)*] span = $span:expr) => { 144 ([$old:expr, $($fmt:tt)*] span = $span:expr, $($rest:tt)*) => { 152 ([$span:expr, $($fmt:tt)*] $name:ident = $arg:expr) => { 155 ([$span:expr, $($fmt:tt)*] $name:ident = $arg:expr, $($rest:tt)*) => { 162 ([$span:expr, $($fmt:tt)*] $arg:expr) => { 165 ([$span:expr, $($fmt:tt)*] $arg:expr, $($rest:tt)*) => {
|
| /linux/rust/macros/ |
| H A D | quote.rs | |
| H A D | pin_data.rs | |
| H A D | zeroable.rs | |
| /linux/drivers/gpu/drm/ttm/tests/ |
| H A D | ttm_tt_test.c | 43 struct ttm_tt *tt; in ttm_tt_init_basic() local 50 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL); in ttm_tt_init_basic() 51 KUNIT_ASSERT_NOT_NULL(test, tt); in ttm_tt_init_basic() 55 err = ttm_tt_init(tt, bo, page_flags, caching, extra_pages); in ttm_tt_init_basic() 58 KUNIT_ASSERT_EQ(test, tt->num_pages, num_pages + extra_pages); in ttm_tt_init_basic() 60 KUNIT_ASSERT_EQ(test, tt->page_flags, page_flags); in ttm_tt_init_basic() 61 KUNIT_ASSERT_EQ(test, tt->caching, caching); in ttm_tt_init_basic() 63 KUNIT_ASSERT_NULL(test, tt->dma_address); in ttm_tt_init_basic() 64 KUNIT_ASSERT_NULL(test, tt->swap_storage); in ttm_tt_init_basic() 70 struct ttm_tt *tt; in ttm_tt_init_misaligned() local [all …]
|
| /linux/drivers/md/ |
| H A D | dm-target.c | 23 struct target_type *tt; in __find_target_type() local 25 list_for_each_entry(tt, &_targets, list) in __find_target_type() 26 if (!strcmp(name, tt->name)) in __find_target_type() 27 return tt; in __find_target_type() 34 struct target_type *tt; in get_target_type() local 38 tt = __find_target_type(name); in get_target_type() 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() 53 struct target_type *tt = get_target_type(name); in dm_get_target_type() local [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
| H A D | tt.c | 66 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; in iwl_tt_is_low_power_state() local 68 if (tt->state >= IWL_TI_1) in iwl_tt_is_low_power_state() 75 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; in iwl_tt_current_power_mode() local 77 return tt->tt_power_mode; in iwl_tt_current_power_mode() 82 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; in iwl_ht_enabled() local 87 restriction = tt->restriction + tt->state; in iwl_ht_enabled() 118 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; in iwl_tx_ant_restriction() local 123 restriction = tt->restriction + tt->state; in iwl_tx_ant_restriction() 142 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; in iwl_tt_check_exit_ct_kill() local 147 if (tt->state == IWL_TI_CT_KILL) { in iwl_tt_check_exit_ct_kill() [all …]
|
| /linux/rust/pin-init/src/ |
| H A D | macros.rs | |
| /linux/rust/syn/ |
| H A D | custom_punctuation.rs | 81 ($ident:ident, $($tt:tt)+) => { 84 pub spans: $crate::custom_punctuation_repr!($($tt)+), 89 pub fn $ident<__S: $crate::__private::IntoSpans<$crate::custom_punctuation_repr!($($tt)+)>>( 92 let _validate_len = 0 $(+ $crate::custom_punctuation_len!(strict, $tt))*; 105 $crate::impl_parse_for_custom_punctuation!($ident, $($tt)+); 106 $crate::impl_to_tokens_for_custom_punctuation!($ident, $($tt)+); 107 $crate::impl_clone_for_custom_punctuation!($ident, $($tt)+); 108 $crate::impl_extra_traits_for_custom_punctuation!($ident, $($tt)+); 118 ($ident:ident, $($tt:tt)+) => { 121 $crate::__private::peek_punct(cursor, $crate::stringify_punct!($($tt)+)) [all …]
|
| H A D | macros.rs | 10 $pub:ident $struct:ident $name:ident #full $body:tt 33 $pub:ident $struct:ident $name:ident $body:tt 46 $pub:ident $enum:ident $name:ident $body:tt 58 $pub:ident $enum:ident $name:ident $body:tt 76 $(#[cfg $cfg_attr:tt])* 77 $(#[doc $($doc_attr:tt)*])* 104 ($($arms:tt)*) $tokens:ident $name:ident { 105 $(#[cfg $cfg_attr:tt])* 106 $(#[doc $($doc_attr:tt)*])* 108 $($next:tt)* [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | rss.c | 65 mlx5e_rss_get_default_tt_config(enum mlx5_traffic_types tt) in mlx5e_rss_get_default_tt_config() argument 67 return rss_default_config[tt]; in mlx5e_rss_get_default_tt_config() 162 enum mlx5_traffic_types tt; in mlx5e_rss_params_init() local 168 for (tt = 0; tt < MLX5E_NUM_INDIR_TIRS; tt++) in mlx5e_rss_params_init() 169 rss->rx_hash_fields[tt] = in mlx5e_rss_params_init() 170 mlx5e_rss_get_default_tt_config(tt).rx_hash_fields; in mlx5e_rss_params_init() 173 static struct mlx5e_tir **rss_get_tirp(struct mlx5e_rss *rss, enum mlx5_traffic_types tt, in rss_get_tirp() argument 176 return inner ? &rss->inner_tir[tt] : &rss->tir[tt]; in rss_get_tirp() 179 static struct mlx5e_tir *rss_get_tir(struct mlx5e_rss *rss, enum mlx5_traffic_types tt, in rss_get_tir() argument 182 return *rss_get_tirp(rss, tt, inner); in rss_get_tir() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | eswitch_offloads_termtbl.c | 65 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() 89 err = PTR_ERR(tt->termtbl); in mlx5_eswitch_termtbl_create() 90 esw_warn(dev, "Failed to create termination table, err %pe\n", tt->termtbl); in mlx5_eswitch_termtbl_create() 94 tt->rule = mlx5_add_flow_rules(tt->termtbl, NULL, flow_act, in mlx5_eswitch_termtbl_create() 95 &tt->dest, 1); in mlx5_eswitch_termtbl_create() 96 if (IS_ERR(tt->rule)) { in mlx5_eswitch_termtbl_create() 97 err = PTR_ERR(tt->rule); in mlx5_eswitch_termtbl_create() 98 esw_warn(dev, "Failed to create termination table rule, err %pe\n", tt->rule); in mlx5_eswitch_termtbl_create() [all …]
|
| /linux/drivers/gpu/drm/ttm/ |
| H A D | ttm_pool.c | 663 static void ttm_pool_free_range(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_free_range() argument 667 struct page **pages = &tt->pages[start_page]; in ttm_pool_free_range() 668 struct file *backup = tt->backup; in ttm_pool_free_range() 681 dma_addr_t *dma_addr = tt->dma_address ? in ttm_pool_free_range() 682 tt->dma_address + i : NULL; in ttm_pool_free_range() 689 static void ttm_pool_alloc_state_init(const struct ttm_tt *tt, in ttm_pool_alloc_state_init() argument 692 alloc->pages = tt->pages; in ttm_pool_alloc_state_init() 693 alloc->caching_divide = tt->pages; in ttm_pool_alloc_state_init() 694 alloc->dma_addr = tt->dma_address; in ttm_pool_alloc_state_init() 695 alloc->remaining_pages = tt->num_pages; in ttm_pool_alloc_state_init() [all …]
|
| H A D | ttm_tt.c | 281 long ttm_tt_backup(struct ttm_device *bdev, struct ttm_tt *tt, in ttm_tt_backup() argument 286 if (WARN_ON(IS_ERR_OR_NULL(tt->backup))) in ttm_tt_backup() 289 ret = ttm_pool_backup(&bdev->pool, tt, &flags); in ttm_tt_backup() 291 tt->page_flags &= ~TTM_TT_FLAG_PRIV_POPULATED; in ttm_tt_backup() 292 tt->page_flags |= TTM_TT_FLAG_BACKED_UP; in ttm_tt_backup() 298 int ttm_tt_restore(struct ttm_device *bdev, struct ttm_tt *tt, in ttm_tt_restore() argument 301 int ret = ttm_pool_restore_and_alloc(&bdev->pool, tt, ctx); in ttm_tt_restore() 306 tt->page_flags &= ~TTM_TT_FLAG_BACKED_UP; in ttm_tt_restore() 494 iosys_map_set_vaddr(dmap, kmap_local_page_prot(iter_tt->tt->pages[i], in ttm_kmap_iter_tt_map_local() 519 struct ttm_tt *tt) in ttm_kmap_iter_tt_init() argument [all …]
|
| /linux/include/drm/ttm/ |
| H A D | ttm_tt.h | 139 struct ttm_tt *tt; member 143 static inline bool ttm_tt_is_populated(struct ttm_tt *tt) in ttm_tt_is_populated() argument 145 return tt->page_flags & TTM_TT_FLAG_PRIV_POPULATED; in ttm_tt_is_populated() 154 static inline bool ttm_tt_is_swapped(const struct ttm_tt *tt) in ttm_tt_is_swapped() argument 156 return tt->page_flags & (TTM_TT_FLAG_SWAPPED | TTM_TT_FLAG_BACKED_UP); in ttm_tt_is_swapped() 165 static inline bool ttm_tt_is_backed_up(const struct ttm_tt *tt) in ttm_tt_is_backed_up() argument 167 return tt->page_flags & TTM_TT_FLAG_BACKED_UP; in ttm_tt_is_backed_up() 177 static inline void ttm_tt_clear_backed_up(struct ttm_tt *tt) in ttm_tt_clear_backed_up() argument 179 tt->page_flags &= ~TTM_TT_FLAG_BACKED_UP; in ttm_tt_clear_backed_up() 281 struct ttm_tt *tt); [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
| H A D | port_sel.c | 116 enum mlx5_traffic_types tt) in mlx5_lag_set_definer_inner() argument 121 switch (tt) { in mlx5_lag_set_definer_inner() 201 enum mlx5_traffic_types tt, bool tunnel, in mlx5_lag_set_definer() argument 208 return mlx5_lag_set_definer_inner(match_definer_mask, tt); in mlx5_lag_set_definer() 210 switch (tt) { in mlx5_lag_set_definer() 299 enum mlx5_traffic_types tt, bool tunnel, u8 *ports) in mlx5_lag_create_definer() argument 323 format_id = mlx5_lag_set_definer(match_definer_mask, tt, tunnel, hash); in mlx5_lag_create_definer() 375 int tt; in mlx5_lag_destroy_definers() local 377 for_each_set_bit(tt, port_sel->tt_map, MLX5_NUM_TT) { in mlx5_lag_destroy_definers() 378 if (port_sel->outer.definers[tt]) in mlx5_lag_destroy_definers() [all …]
|
| /linux/net/core/ |
| H A D | ieee8021q_helpers.c | 99 int ieee8021q_tt_to_tc(enum ieee8021q_traffic_type tt, unsigned int num_queues) in ieee8021q_tt_to_tc() argument 101 if (tt < 0 || tt >= IEEE8021Q_TT_MAX) { in ieee8021q_tt_to_tc() 102 pr_err("Requested Traffic Type (%d) is out of range (%d)\n", tt, in ieee8021q_tt_to_tc() 110 return ieee8021q_8queue_tt_tc_map[tt]; in ieee8021q_tt_to_tc() 113 return ieee8021q_7queue_tt_tc_map[tt]; in ieee8021q_tt_to_tc() 116 return ieee8021q_6queue_tt_tc_map[tt]; in ieee8021q_tt_to_tc() 119 return ieee8021q_5queue_tt_tc_map[tt]; in ieee8021q_tt_to_tc() 122 return ieee8021q_4queue_tt_tc_map[tt]; in ieee8021q_tt_to_tc() 125 return ieee8021q_3queue_tt_tc_map[tt]; in ieee8021q_tt_to_tc() 128 return ieee8021q_2queue_tt_tc_map[tt]; in ieee8021q_tt_to_tc() [all …]
|
| /linux/drivers/usb/host/ |
| H A D | xhci-mtk-sch.c | 166 struct usb_tt *utt = udev->tt; in find_tt() 167 struct mu3h_sch_tt *tt, **tt_index, **ptt; in find_tt() local 193 tt = *ptt; in find_tt() 194 if (!tt) { /* Create the mu3h_sch_tt */ in find_tt() 195 tt = kzalloc_obj(*tt); in find_tt() 196 if (!tt) { in find_tt() 203 INIT_LIST_HEAD(&tt->ep_list); in find_tt() 204 *ptt = tt; in find_tt() 207 return tt; in find_tt() 213 struct usb_tt *utt = udev->tt; in drop_tt() [all …]
|
| /linux/rust/kernel/sync/atomic/ |
| H A D | internal.rs | 99 $func:ident [$variant:ident $($rest:ident)*]($($arg_sig:tt)*) $(-> $ret:ty)? 115 $func:ident []($($arg_sig:tt)*) $(-> $ret:ty)? 129 $unsafe:tt { call($($c_arg:expr),*) } 148 ($ctype:ident) $func:ident[$variant:ident $($rest:ident)*]($($arg_sig:tt)*) $(-> $ret:ty)? { 149 $unsafe:tt { call($($arg:tt)*) } 166 ($ctype:ident) $func:ident[]($($arg_sig:tt)*) $( -> $ret:ty)? { 167 $unsafe:tt { call($($arg:tt)*) } 183 fn $func:ident [$($variant:ident),*]($($arg_sig:tt)*) [all...] |
| /linux/rust/kernel/ |
| H A D | print.rs | 151 ($format_string:path, false, $($arg:tt)+) => ( 174 ($format_string:path, true, $($arg:tt)+) => ( 185 ($format_string:path, $e:expr, $($arg:tt)+) => ( 219 ($($arg:tt)*) => ( 244 ($($arg:tt)*) => ( 269 ($($arg:tt)*) => ( 294 ($($arg:tt)*) => ( 319 ($($arg:tt)*) => ( 344 ($($arg:tt)*) => ( 370 ($($arg:tt)*) [all...] |
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | fs_ttc.c | 82 const char *mlx5_ttc_get_name(enum mlx5_traffic_types tt) in mlx5_ttc_get_name() argument 84 return mlx5_traffic_types_names[tt]; in mlx5_ttc_get_name() 258 u8 mlx5_get_proto_by_tunnel_type(enum mlx5_tunnel_types tt) in mlx5_get_proto_by_tunnel_type() argument 260 return ttc_tunnel_rules[tt].proto; in mlx5_get_proto_by_tunnel_type() 280 int tt; in mlx5_tunnel_any_rx_proto_supported() local 282 for (tt = 0; tt < MLX5_NUM_TUNNEL_TT; tt++) { in mlx5_tunnel_any_rx_proto_supported() 284 ttc_tunnel_rules[tt].proto)) in mlx5_tunnel_any_rx_proto_supported() 406 int tt; in mlx5_generate_ttc_table_rules() local 411 for (tt = 0; tt < MLX5_NUM_TT; tt++) { in mlx5_generate_ttc_table_rules() 412 struct mlx5_ttc_rule *rule = &rules[tt]; in mlx5_generate_ttc_table_rules() [all …]
|
| /linux/rust/pin-init/internal/src/ |
| H A D | zeroable.rs | |
| /linux/rust/kernel/list/ |
| H A D | impl_list_item_mod.rs | 33 ($(impl$({$($generics:tt)*})? 34 HasListLinks$(<$id:tt>)? 78 ($(impl$({$($generics:tt)*})? 79 HasSelfPtr<$item_type:ty $(, $id:tt)?> 186 $(impl$({$($generics:tt)*})? ListItem<$num:tt> for $self:ty { 252 $(impl$({$($generics:tt)*})? ListItem<$num:tt> for $self:ty {
|