Home
last modified time | relevance | path

Searched full:mt (Results 1 – 25 of 301) sorted by relevance

12345678910>>...13

/linux-6.12.1/lib/ !
Dtest_maple_tree.c19 #define mt_dump(mt, fmt) do {} while (0) argument
20 #define mt_validate(mt) do {} while (0) argument
63 static int __init mtree_insert_index(struct maple_tree *mt, in mtree_insert_index() argument
66 return mtree_insert(mt, index, xa_mk_value(index & LONG_MAX), gfp); in mtree_insert_index()
69 static void __init mtree_erase_index(struct maple_tree *mt, unsigned long index) in mtree_erase_index() argument
71 MT_BUG_ON(mt, mtree_erase(mt, index) != xa_mk_value(index & LONG_MAX)); in mtree_erase_index()
72 MT_BUG_ON(mt, mtree_load(mt, index) != NULL); in mtree_erase_index()
75 static int __init mtree_test_insert(struct maple_tree *mt, unsigned long index, in mtree_test_insert() argument
78 return mtree_insert(mt, index, ptr, GFP_KERNEL); in mtree_test_insert()
81 static int __init mtree_test_store_range(struct maple_tree *mt, in mtree_test_store_range() argument
[all …]
Dmaple_tree.c215 static inline unsigned int mt_attr(struct maple_tree *mt) in mt_attr() argument
217 return mt->ma_flags & ~MT_FLAGS_HEIGHT_MASK; in mt_attr()
381 static __always_inline bool mt_is_alloc(struct maple_tree *mt) in mt_is_alloc() argument
383 return (mt->ma_flags & MT_FLAGS_ALLOC_RANGE); in mt_is_alloc()
755 * @mt: The maple node type
759 static inline void __rcu **ma_slots(struct maple_node *mn, enum maple_type mt) in ma_slots() argument
761 switch (mt) { in ma_slots()
774 static inline bool mt_write_locked(const struct maple_tree *mt) in mt_write_locked() argument
776 return mt_external_lock(mt) ? mt_write_lock_is_held(mt) : in mt_write_locked()
777 lockdep_is_held(&mt->ma_lock); in mt_write_locked()
[all …]
/linux-6.12.1/drivers/input/ !
Dinput-mt.c8 #include <linux/input/mt.h>
25 * input_mt_init_slots() - initialize MT input slots
26 * @dev: input device supporting MT events and finger tracking
28 * @flags: mt tasks to handle in core
30 * This function allocates all necessary memory for MT slot handling
42 struct input_mt *mt = dev->mt; in input_mt_init_slots() local
47 if (mt) in input_mt_init_slots()
48 return mt->num_slots != num_slots ? -EINVAL : 0; in input_mt_init_slots()
53 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots()
54 if (!mt) in input_mt_init_slots()
[all …]
/linux-6.12.1/drivers/net/ethernet/microchip/vcap/ !
Dvcap_tc.c68 struct flow_match_ipv4_addrs mt; in vcap_tc_flower_handler_ipv4_usage() local
70 flow_rule_match_ipv4_addrs(st->frule, &mt); in vcap_tc_flower_handler_ipv4_usage()
71 if (mt.mask->src) { in vcap_tc_flower_handler_ipv4_usage()
74 be32_to_cpu(mt.key->src), in vcap_tc_flower_handler_ipv4_usage()
75 be32_to_cpu(mt.mask->src)); in vcap_tc_flower_handler_ipv4_usage()
79 if (mt.mask->dst) { in vcap_tc_flower_handler_ipv4_usage()
82 be32_to_cpu(mt.key->dst), in vcap_tc_flower_handler_ipv4_usage()
83 be32_to_cpu(mt.mask->dst)); in vcap_tc_flower_handler_ipv4_usage()
104 struct flow_match_ipv6_addrs mt; in vcap_tc_flower_handler_ipv6_usage() local
108 flow_rule_match_ipv6_addrs(st->frule, &mt); in vcap_tc_flower_handler_ipv6_usage()
[all …]
/linux-6.12.1/drivers/thermal/mediatek/ !
Dauxadc_thermal.c307 struct mtk_thermal *mt; member
350 int (*raw_to_mcelsius)(struct mtk_thermal *mt, int sensno, s32 raw);
705 * @mt: The thermal controller
712 static int raw_to_mcelsius_v1(struct mtk_thermal *mt, int sensno, s32 raw) in raw_to_mcelsius_v1() argument
719 tmp /= mt->conf->cali_val + mt->o_slope; in raw_to_mcelsius_v1()
720 tmp /= 10000 + mt->adc_ge; in raw_to_mcelsius_v1()
721 tmp *= raw - mt->vts[sensno] - 3350; in raw_to_mcelsius_v1()
724 return mt->degc_cali * 500 - tmp; in raw_to_mcelsius_v1()
727 static int raw_to_mcelsius_v2(struct mtk_thermal *mt, int sensno, s32 raw) in raw_to_mcelsius_v2() argument
740 g_gain = 10000 + (((mt->adc_ge - 512) * 10000) >> 12); in raw_to_mcelsius_v2()
[all …]
/linux-6.12.1/arch/sh/lib/ !
Dmemcpy-sh4.S31 mov r4,r2 ! 5 MT (0 cycles latency)
41 mov r7, r3 ! 5 MT (latency=0) ! RQPO
43 cmp/hi r2,r0 ! 57 MT
46 mov r1,r6 ! 5 MT (latency=0)
50 mov r1, r7 ! 5 MT (latency=0)
58 mov r7,r3 ! 5 MT (latency=0) ! OPQR
60 cmp/hi r2,r0 ! 57 MT
64 mov r1,r6 ! 5 MT (latency=0)
67 mov r1,r7 ! 5 MT (latency=0)
77 cmp/eq r4,r0 ! 54 MT
[all …]
/linux-6.12.1/include/linux/ !
Dmaple_tree.h198 #define mt_lock_is_held(mt) \ argument
199 (!(mt)->ma_external_lock || lock_is_held((mt)->ma_external_lock))
201 #define mt_write_lock_is_held(mt) \ argument
202 (!(mt)->ma_external_lock || \
203 lock_is_held_type((mt)->ma_external_lock, 0))
205 #define mt_set_external_lock(mt, lock) \ argument
206 (mt)->ma_external_lock = &(lock)->dep_map
208 #define mt_on_stack(mt) (mt).ma_external_lock = NULL argument
211 #define mt_lock_is_held(mt) 1 argument
212 #define mt_write_lock_is_held(mt) 1 argument
[all …]
/linux-6.12.1/include/trace/events/ !
Dmmap.h47 TP_PROTO(struct maple_tree *mt, unsigned long start,
50 TP_ARGS(mt, start, end),
53 __field(struct maple_tree *, mt)
59 __entry->mt = mt;
65 __entry->mt,
72 TP_PROTO(struct maple_tree *mt, struct vm_area_struct *vma),
74 TP_ARGS(mt, vma),
77 __field(struct maple_tree *, mt)
84 __entry->mt = mt;
91 __entry->mt, __entry->vma,
[all …]
Dpage_ref.h25 __field(int, mt)
35 __entry->mt = get_pageblock_migratetype(page);
39 TP_printk("pfn=0x%lx flags=%s count=%d mapcount=%d mapping=%p mt=%d val=%d",
43 __entry->mapcount, __entry->mapping, __entry->mt,
73 __field(int, mt)
84 __entry->mt = get_pageblock_migratetype(page);
89 TP_printk("pfn=0x%lx flags=%s count=%d mapcount=%d mapping=%p mt=%d val=%d ret=%d",
93 __entry->mapcount, __entry->mapping, __entry->mt,
/linux-6.12.1/drivers/base/regmap/ !
Dregcache-maple.c19 struct maple_tree *mt = map->cache; in regcache_maple_read() local
20 MA_STATE(mas, mt, reg, reg); in regcache_maple_read()
41 struct maple_tree *mt = map->cache; in regcache_maple_write() local
42 MA_STATE(mas, mt, reg, reg); in regcache_maple_write()
110 struct maple_tree *mt = map->cache; in regcache_maple_drop() local
111 MA_STATE(mas, mt, min, max); in regcache_maple_drop()
241 struct maple_tree *mt = map->cache; in regcache_maple_sync() local
243 MA_STATE(mas, mt, min, max); in regcache_maple_sync()
295 struct maple_tree *mt = map->cache; in regcache_maple_exit() local
296 MA_STATE(mas, mt, 0, UINT_MAX); in regcache_maple_exit()
[all …]
/linux-6.12.1/drivers/video/fbdev/matrox/ !
Dmatroxfb_g450.c238 struct my_timming *mt, const struct output_desc *outd) in computeRegs() argument
253 hvis = ((mt->HDisplay << 1) + 3) & ~3; in computeRegs()
266 mt->mnp = mnp; in computeRegs()
267 mt->pixclock = g450_mnp2f(minfo, mnp); in computeRegs()
271 pixclock = 1000000000U / mt->pixclock; in computeRegs()
276 do_div(piic, mt->pixclock); in computeRegs()
323 mt->interlaced = 1; in computeRegs()
325 mt->HDisplay = hvis & ~7; in computeRegs()
326 mt->HSyncStart = mt->HDisplay + 8; in computeRegs()
327 mt->HSyncEnd = (hlen & ~7) - 8; in computeRegs()
[all …]
Dmatroxfb_maven.c756 struct my_timming* mt, in maven_compute_timming() argument
772 if (maven_find_exact_clocks(mt->HTotal, mt->VTotal, m) == 0) in maven_compute_timming()
775 lmargin = mt->HTotal - mt->HSyncEnd; in maven_compute_timming()
776 slen = mt->HSyncEnd - mt->HSyncStart; in maven_compute_timming()
777 hcrt = mt->HTotal - slen - mt->delay; in maven_compute_timming()
778 umargin = mt->VTotal - mt->VSyncEnd; in maven_compute_timming()
779 vslen = mt->VSyncEnd - mt->VSyncStart; in maven_compute_timming()
781 if (m->hcorr < mt->HTotal) in maven_compute_timming()
783 if (hcrt > mt->HTotal) in maven_compute_timming()
784 hcrt -= mt->HTotal; in maven_compute_timming()
[all …]
Dmatroxfb_crtc2.c65 struct my_timming* mt, in matroxfb_dh_restore() argument
105 if (mt->interlaced) { in matroxfb_dh_restore()
107 mt->VDisplay >>= 1; in matroxfb_dh_restore()
108 mt->VSyncStart >>= 1; in matroxfb_dh_restore()
109 mt->VSyncEnd >>= 1; in matroxfb_dh_restore()
110 mt->VTotal >>= 1; in matroxfb_dh_restore()
112 if ((mt->HTotal & 7) == 2) { in matroxfb_dh_restore()
114 mt->HTotal &= ~7; in matroxfb_dh_restore()
117 mga_outl(0x3C14, ((mt->HDisplay - 8) << 16) | (mt->HTotal - 8)); in matroxfb_dh_restore()
118 mga_outl(0x3C18, ((mt->HSyncEnd - 8) << 16) | (mt->HSyncStart - 8)); in matroxfb_dh_restore()
[all …]
Dmatroxfb_misc.c107 void matroxfb_var2my(struct fb_var_screeninfo* var, struct my_timming* mt) { in matroxfb_var2my() argument
113 mt->pixclock = 1000000000 / pixclock; in matroxfb_var2my()
114 if (mt->pixclock < 1) mt->pixclock = 1; in matroxfb_var2my()
115 mt->mnp = -1; in matroxfb_var2my()
116 mt->dblscan = var->vmode & FB_VMODE_DOUBLE; in matroxfb_var2my()
117 mt->interlaced = var->vmode & FB_VMODE_INTERLACED; in matroxfb_var2my()
118 mt->HDisplay = var->xres; in matroxfb_var2my()
119 mt->HSyncStart = mt->HDisplay + var->right_margin; in matroxfb_var2my()
120 mt->HSyncEnd = mt->HSyncStart + var->hsync_len; in matroxfb_var2my()
121 mt->HTotal = mt->HSyncEnd + var->left_margin; in matroxfb_var2my()
[all …]
/linux-6.12.1/include/linux/input/ !
Dmt.h19 #define INPUT_MT_SEMI_MT 0x0010 /* semi-mt device, finger count handled manually */
22 * struct input_mt_slot - represents the state of an input MT slot
35 * @trkid: stores MT tracking ID for the next contact
36 * @num_slots: number of MT slots the device uses
37 * @slot: MT slot currently being transmitted
70 static inline bool input_mt_is_used(const struct input_mt *mt, in input_mt_is_used() argument
73 return slot->frame == mt->frame; in input_mt_is_used()
80 static inline int input_mt_new_trkid(struct input_mt *mt) in input_mt_new_trkid() argument
82 return mt->trkid++ & TRKID_MAX; in input_mt_new_trkid()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ !
Dmlx5hws_matcher.c233 struct mlx5hws_match_template *mt = matcher->mt; in hws_matcher_create_rtc() local
254 rtc_attr.is_frst_jumbo = mlx5hws_matcher_mt_is_jumbo(mt); in hws_matcher_create_rtc()
262 /* The first mt is used since all share the same definer */ in hws_matcher_create_rtc()
263 rtc_attr.match_definer_0 = mlx5hws_definer_get_id(mt->definer); in hws_matcher_create_rtc()
271 rtc_attr.match_definer_0 = mlx5hws_definer_get_id(mt->definer); in hws_matcher_create_rtc()
615 bool is_jumbo = mlx5hws_matcher_mt_is_jumbo(matcher->mt); in hws_matcher_bind_at()
676 ret = mlx5hws_definer_mt_init(ctx, matcher->mt); in hws_matcher_bind_mt()
703 mlx5hws_definer_mt_uninit(ctx, matcher->mt); in hws_matcher_bind_mt()
711 mlx5hws_definer_mt_uninit(matcher->tbl->ctx, matcher->mt); in hws_matcher_unbind_mt()
866 col_matcher->mt = matcher->mt; in hws_matcher_create_col_matcher()
[all …]
Dmlx5hws_bwc_complex.c11 struct mlx5hws_match_template *mt; in mlx5hws_bwc_match_params_is_complex() local
18 mt = mlx5hws_match_template_create(ctx, in mlx5hws_bwc_match_params_is_complex()
22 if (!mt) { in mlx5hws_bwc_match_params_is_complex()
27 ret = mlx5hws_definer_calc_layout(ctx, mt, &match_layout); in mlx5hws_bwc_match_params_is_complex()
44 mlx5hws_match_template_destroy(mt); in mlx5hws_bwc_match_params_is_complex()
Dmlx5hws_definer.c1493 struct mlx5hws_match_template *mt, in hws_definer_conv_match_params_to_hl() argument
1507 if (mt->match_criteria_enable & MLX5HWS_DEFINER_MATCH_CRITERIA_MISC6) { in hws_definer_conv_match_params_to_hl()
1513 if (mt->match_criteria_enable & MLX5HWS_DEFINER_MATCH_CRITERIA_OUTER) { in hws_definer_conv_match_params_to_hl()
1514 ret = hws_definer_conv_outer(&cd, mt->match_param); in hws_definer_conv_match_params_to_hl()
1519 if (mt->match_criteria_enable & MLX5HWS_DEFINER_MATCH_CRITERIA_INNER) { in hws_definer_conv_match_params_to_hl()
1520 ret = hws_definer_conv_inner(&cd, mt->match_param); in hws_definer_conv_match_params_to_hl()
1525 if (mt->match_criteria_enable & MLX5HWS_DEFINER_MATCH_CRITERIA_MISC) { in hws_definer_conv_match_params_to_hl()
1526 ret = hws_definer_conv_misc(&cd, mt->match_param); in hws_definer_conv_match_params_to_hl()
1531 if (mt->match_criteria_enable & MLX5HWS_DEFINER_MATCH_CRITERIA_MISC2) { in hws_definer_conv_match_params_to_hl()
1532 ret = hws_definer_conv_misc2(&cd, mt->match_param); in hws_definer_conv_match_params_to_hl()
[all …]
/linux-6.12.1/tools/testing/radix-tree/ !
Dmaple.c30 #define RCU_MT_BUG_ON(test, y) {if (y) { test->stop = true; } MT_BUG_ON(test->mt, y); }
33 struct maple_tree *mt; member
50 struct maple_tree *mt; member
92 static noinline void __init check_new_node(struct maple_tree *mt) in check_new_node() argument
100 MA_STATE(mas, mt, 0, 0); in check_new_node()
105 mtree_lock(mt); in check_new_node()
110 MT_BUG_ON(mt, mas_alloc_req(&mas) != 3); in check_new_node()
112 MT_BUG_ON(mt, mas.node != MA_ERROR(-ENOMEM)); in check_new_node()
113 MT_BUG_ON(mt, !mas_nomem(&mas, GFP_KERNEL)); in check_new_node()
115 MT_BUG_ON(mt, mas_allocated(&mas) != 3); in check_new_node()
[all …]
/linux-6.12.1/drivers/input/mouse/ !
Dalps.c17 #include <linux/input/mt.h>
383 * Process bitmap data from semi-mt protocols. Returns the number of
389 * These points are returned in fields->mt when the return value
496 fields->mt[0] = fields->st; in alps_process_bitmap()
497 fields->mt[1] = corner[priv->second_touch]; in alps_process_bitmap()
517 input_mt_assign_slots(dev, slot, f->mt, n, 0); in alps_report_mt_data()
519 alps_set_slot(dev, slot[i], f->mt[i].x, f->mt[i].y); in alps_report_mt_data()
530 /* Use st data when we don't have mt data */ in alps_report_semi_mt_data()
532 f->mt[0].x = f->st.x; in alps_report_semi_mt_data()
533 f->mt[0].y = f->st.y; in alps_report_semi_mt_data()
[all …]
Dalps.h12 #include <linux/input/mt.h>
217 * @x_map: Bitmap of active X positions for MT.
218 * @y_map: Bitmap of active Y positions for MT.
219 * @fingers: Number of fingers for MT.
222 * @mt: position for MT.
239 struct input_mt_pos mt[MAX_TOUCHES]; member
273 * @x_bits: Number of X bits in the MT bitmap.
274 * @y_bits: Number of Y bits in the MT bitmap.
/linux-6.12.1/mm/ !
Dpage_reporting.c116 int mt = get_pageblock_migratetype(page); in page_reporting_drain() local
119 __putback_isolated_page(page, order, mt); in page_reporting_drain()
147 unsigned int order, unsigned int mt, in page_reporting_cycle() argument
151 struct list_head *list = &area->free_list[mt]; in page_reporting_cycle()
263 unsigned int order, mt, leftover, offset = PAGE_REPORTING_CAPACITY; in page_reporting_process_zone() local
278 /* Process each free list starting from lowest order/mt */ in page_reporting_process_zone()
280 for (mt = 0; mt < MIGRATE_TYPES; mt++) { in page_reporting_process_zone()
282 if (is_migrate_isolate(mt)) in page_reporting_process_zone()
285 err = page_reporting_cycle(prdev, zone, order, mt, in page_reporting_process_zone()
/linux-6.12.1/drivers/slimbus/ !
Dqcom-ctrl.c64 #define SLIM_MSG_ASM_FIRST_WORD(l, mt, mc, dt, ad) \ argument
65 ((l) | ((mt) << 5) | ((mc) << 8) | ((dt) << 15) | ((ad) << 16))
212 u8 mc, mt, len; in qcom_slim_handle_rx_irq() local
215 mt = SLIM_HEADER_GET_MT(pkt[0]); in qcom_slim_handle_rx_irq()
223 if (mt == SLIM_MSG_MT_CORE && mc == SLIM_MSG_MC_REPORT_PRESENT) { in qcom_slim_handle_rx_irq()
250 dev_err(ctrl->dev, "unsupported MC,%x MT:%x\n", in qcom_slim_handle_rx_irq()
251 mc, mt); in qcom_slim_handle_rx_irq()
357 *head = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, in qcom_xfer_msg()
361 *head = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, in qcom_xfer_msg()
366 if (slim_tid_txn(txn->mt, txn->mc)) in qcom_xfer_msg()
[all …]
/linux-6.12.1/drivers/gpu/drm/imagination/ !
Dpvr_rogue_cr_defs_client.h64 * X1 MacroTile boundary, left tile X for second column of macrotiles (16MT mode) - 32 pixels across
70 * X2 MacroTile boundary, left tile X for third(16MT) column of macrotiles - 32 pixels across tile
75 * X3 MacroTile boundary, left tile X for fourth column of macrotiles (16MT) - 32 pixels across tile
85 * X1 MacroTile boundary, ltop tile Y for second column of macrotiles (16MT mode) - 32 pixels tile
91 * X2 MacroTile boundary, top tile Y for third(16MT) column of macrotiles - 32 pixels tile height
96 * X3 MacroTile boundary, top tile Y for fourth column of macrotiles (16MT) - 32 pixels tile height
/linux-6.12.1/net/netfilter/ !
Dnft_set_pipapo.c351 * @mt: Mapping table containing bit set specifiers
364 const union nft_pipapo_map_bucket *mt, bool match_only) in pipapo_refill() argument
389 bitmap_set(dst, mt[i].to, mt[i].n); in pipapo_refill()
462 b = pipapo_refill(res_map, f->bsize, f->rules, fill_map, f->mt, in nft_pipapo_lookup()
472 *ext = &f->mt[b].e->ext; in nft_pipapo_lookup()
571 b = pipapo_refill(res_map, f->bsize, f->rules, fill_map, f->mt, in pipapo_get()
577 if (__nft_set_elem_expired(&f->mt[b].e->ext, tstamp)) in pipapo_get()
580 !nft_set_elem_active(&f->mt[b].e->ext, genmask))) in pipapo_get()
583 ret = f->mt[b].e; in pipapo_get()
638 union nft_pipapo_map_bucket *new_mt = NULL, *old_mt = f->mt; in pipapo_realloc_mt()
[all …]

12345678910>>...13