Home
last modified time | relevance | path

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

1234567

/linux/drivers/media/rc/
H A 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 …]
/linux/rust/quote/
H A Dlib.rs485 ($($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 Dformat.rs121 ($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 Dquote.rs48 ($span:expr => $($tt:tt)*) => {{
53 quote_spanned!(@proc tokens span $($tt)*);
58 (@proc $v:ident $span:ident #$id:ident $($tt:tt)*) => {
60 quote_spanned!(@proc $v $span $($tt)*);
62 (@proc $v:ident $span:ident #(#$id:ident)* $($tt:tt)*) => {
66 quote_spanned!(@proc $v $span $($tt)*);
68 (@proc $v:ident $span:ident ( $($inner:tt)* ) $($tt:tt)*) => {
76 quote_spanned!(@proc $v $span $($tt)*);
78 (@proc $v:ident $span:ident [ $($inner:tt)* ] $($tt:tt)*) => {
85 quote_spanned!(@proc $v $span $($tt)*);
[all …]
H A Dpin_data.rs
H A Dzeroable.rs
H A Dfmt.rs58 while let Some(tt) = current.next() { in fmt()
60 if matches!(&tt, TokenTree::Punct(p) if p.as_char() == '=') { in fmt()
63 acc.extend([tt]); in fmt()
66 acc.extend([tt]); in fmt()
75 for tt in input { in fmt()
76 match &tt { in fmt()
83 .extend([tt]); in fmt()
/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_tt_test.c43 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/net/wireless/intel/iwlwifi/dvm/
H A Dtt.c66 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 Dmacros.rs515 @impl_sig($($impl_sig:tt)*),
517 $(#[$($attr:tt)*])*
518 fn drop($($sig:tt)*) {
519 $($inner:tt)*
543 $(#[$($struct_attr:tt)*])*
545 $(where $($whr:tt)*)?
547 @impl_generics($($impl_generics:tt)*),
548 @ty_generics($($ty_generics:tt)*),
549 @decl_generics($($decl_generics:tt)*),
550 @body({ $($fields:tt)* }),
[all …]
/linux/rust/syn/
H A Dcustom_punctuation.rs81 ($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 Dmacros.rs10 $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/
H A 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()
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/include/drm/ttm/
H A Dttm_tt.h139 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 Dport_sel.c116 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 Dieee8021q_helpers.c99 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 Dxhci-mtk-sch.c166 struct usb_tt *utt = udev->tt; in find_tt()
167 struct mu3h_sch_tt *tt, **tt_index, **ptt; in find_tt() local
194 tt = *ptt; in find_tt()
195 if (!tt) { /* Create the mu3h_sch_tt */ in find_tt()
196 tt = kzalloc(sizeof(*tt), GFP_KERNEL); in find_tt()
197 if (!tt) { in find_tt()
204 INIT_LIST_HEAD(&tt->ep_list); in find_tt()
205 *ptt = tt; in find_tt()
208 return tt; in find_tt()
214 struct usb_tt *utt = udev->tt; in drop_tt()
[all …]
H A 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 …]
/linux/arch/s390/include/asm/
H A Ddat-bits.h45 unsigned long tt : 2; /* Table-Type Bits */ member
60 unsigned long tt : 2; /* Table-Type Bits */ member
74 unsigned long tt : 2; /* Table-Type Bits */ member
90 unsigned long tt : 2; /* Table-Type Bits */ member
104 unsigned long tt: 2; /* Table-Type Bits */ member
116 unsigned long tt : 2; /* Table-Type Bits */ member
132 unsigned long tt : 2; /* Table-Type Bits */ member
146 unsigned long tt: 2; /* Table-Type Bits */ member
/linux/rust/kernel/sync/atomic/
H A Dinternal.rs80 $func:ident [$variant:ident $($rest:ident)*]($($arg_sig:tt)*) $(-> $ret:ty)?
96 $func:ident []($($arg_sig:tt)*) $(-> $ret:ty)?
110 $unsafe:tt { call($($c_arg:expr),*) }
129 ($ctype:ident) $func:ident[$variant:ident $($rest:ident)*]($($arg_sig:tt)*) $(-> $ret:ty)? {
130 $unsafe:tt { call($($arg:tt)*) }
147 ($ctype:ident) $func:ident[]($($arg_sig:tt)*) $( -> $ret:ty)? {
148 $unsafe:tt { call($($arg:tt)*) }
164 fn $func:ident [$($variant:ident),*]($($arg_sig:tt)*) $( -> $ret:ty)? {
165 $unsafe:tt { bindings::#call($($arg:tt)*) }
/linux/rust/kernel/
H A Dprint.rs146 ($format_string:path, false, $($arg:tt)+) => (
169 ($format_string:path, true, $($arg:tt)+) => (
180 ($format_string:path, $e:expr, $($arg:tt)+) => (
214 ($($arg:tt)*) => (
239 ($($arg:tt)*) => (
264 ($($arg:tt)*) => (
289 ($($arg:tt)*) => (
314 ($($arg:tt)*) => (
339 ($($arg:tt)*) => (
365 ($($arg:tt)*) => (
[all …]
H A Ddevice.rs692 ($src:ty, $device:tt) => {
705 ($device:tt) => {
715 ($method:ident, $dev:expr, $($f:tt)*) => {
745 ($($f:tt)*) => { $crate::dev_printk!(pr_emerg, $($f)*); }
771 ($($f:tt)*) => { $crate::dev_printk!(pr_alert, $($f)*); }
797 ($($f:tt)*) => { $crate::dev_printk!(pr_crit, $($f)*); }
823 ($($f:tt)*) => { $crate::dev_printk!(pr_err, $($f)*); }
849 ($($f:tt)*) => { $crate::dev_printk!(pr_warn, $($f)*); }
875 ($($f:tt)*) => { $crate::dev_printk!(pr_notice, $($f)*); }
901 ($($f:tt)*) => { $crate::dev_printk!(pr_info, $($f)*); }
[all …]
/linux/rust/pin-init/internal/src/
H A Dzeroable.rs35 for tt in impl_generics { in parse_zeroable_derive_input()
36 match &tt { in parse_zeroable_derive_input()
44 new_impl_generics.push(tt); in parse_zeroable_derive_input()
49 new_impl_generics.push(tt); in parse_zeroable_derive_input()
52 new_impl_generics.push(tt); in parse_zeroable_derive_input()
60 new_impl_generics.push(tt); in parse_zeroable_derive_input()
65 new_impl_generics.push(tt); in parse_zeroable_derive_input()
67 _ => new_impl_generics.push(tt), in parse_zeroable_derive_input()
/linux/drivers/iio/
H A 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()
/linux/rust/kernel/list/
H A Dimpl_list_item_mod.rs33 ($(impl$({$($generics:tt)*})?
34 HasListLinks$(<$id:tt>)?
78 ($(impl$({$($generics:tt)*})?
79 HasSelfPtr<$item_type:ty $(, $id:tt)?>
185 $(impl$({$($generics:tt)*})? ListItem<$num:tt> for $self:ty {
251 $(impl$({$($generics:tt)*})? ListItem<$num:tt> for $self:ty {

1234567