/linux/lib/ |
H A D | test_maple_tree.c | 19 #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 …]
|
H A D | maple_tree.c | 209 static void mt_set_height(struct maple_tree *mt, unsigned char height) in mt_set_height() argument 211 unsigned int new_flags = mt->ma_flags; in mt_set_height() 214 MT_BUG_ON(mt, height > MAPLE_HEIGHT_MAX); in mt_set_height() 216 mt->ma_flags = new_flags; in mt_set_height() 224 static inline unsigned int mt_attr(struct maple_tree *mt) in mt_attr() argument 226 return mt->ma_flags & ~MT_FLAGS_HEIGHT_MASK; in mt_attr() 390 static __always_inline bool mt_is_alloc(struct maple_tree *mt) in mt_is_alloc() argument 392 return (mt->ma_flags & MT_FLAGS_ALLOC_RANGE); in mt_is_alloc() 700 * @mt: The maple node type 704 static inline void __rcu **ma_slots(struct maple_node *mn, enum maple_type mt) in ma_slots() argument [all …]
|
/linux/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_tc.c | 68 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/drivers/thermal/mediatek/ |
H A D | auxadc_thermal.c | 307 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/arch/sh/lib/ |
H A D | memcpy-sh4.S | 31 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/include/linux/ |
H A D | maple_tree.h | 197 #define mt_lock_is_held(mt) \ argument 198 (!(mt)->ma_external_lock || lock_is_held((mt)->ma_external_lock)) 200 #define mt_write_lock_is_held(mt) \ argument 201 (!(mt)->ma_external_lock || \ 202 lock_is_held_type((mt)->ma_external_lock, 0)) 204 #define mt_set_external_lock(mt, lock) \ argument 205 (mt)->ma_external_lock = &(lock)->dep_map 207 #define mt_on_stack(mt) (mt).ma_external_lock = NULL argument 209 #define mt_lock_is_held(mt) 1 argument 210 #define mt_write_lock_is_held(mt) 1 argument [all …]
|
/linux/include/trace/events/ |
H A D | mmap.h | 53 __field(struct maple_tree *, mt) 58 __entry->mt = &mm->mm_mt; 62 __entry->mt
|
H A D | page_ref.h | 25 __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/drivers/video/fbdev/matrox/ |
H A D | matroxfb_maven.c | 756 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 …]
|
H A D | matroxfb_crtc2.c | 65 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 …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
H A D | matcher.c | 472 struct mlx5hws_match_template *mt = matcher->mt; in hws_matcher_create_rtc() local 484 rtc_attr.is_frst_jumbo = mlx5hws_matcher_mt_is_jumbo(mt); in hws_matcher_create_rtc() 493 /* The first mt is used since all share the same definer */ in hws_matcher_create_rtc() 494 rtc_attr.match_definer_0 = mlx5hws_definer_get_id(mt->definer); in hws_matcher_create_rtc() 506 mlx5hws_definer_get_id(mt->definer); in hws_matcher_create_rtc() 631 bool is_jumbo = mlx5hws_matcher_mt_is_jumbo(matcher->mt); in hws_matcher_bind_at() 664 for (i = 0; i < matcher->mt->fc_sz; i++) { in hws_matcher_set_ip_version_match() 665 switch (matcher->mt->fc[i].fname) { in hws_matcher_set_ip_version_match() 693 ret = mlx5hws_definer_mt_init(ctx, matcher->mt); in hws_matcher_bind_mt() 738 mlx5hws_definer_mt_uninit(ctx, matcher->mt); in hws_matcher_bind_mt() [all …]
|
H A D | rule.c | 55 struct mlx5hws_match_template *mt, in hws_rule_init_dep_wqe() argument 165 struct mlx5hws_match_template *mt = rule->matcher->mt; in hws_rule_save_delete_info() local 166 bool is_jumbo = mlx5hws_matcher_mt_is_jumbo(mt); in hws_rule_save_delete_info() 293 struct mlx5hws_match_template *mt = &rule->matcher->mt[mt_idx]; in hws_rule_create_hws() local 294 bool is_jumbo = mlx5hws_matcher_mt_is_jumbo(mt); in hws_rule_create_hws() 323 hws_rule_init_dep_wqe(dep_wqe, rule, mt, attr); in hws_rule_create_hws() 367 mlx5hws_definer_create_tag(match_param, mt->fc, mt->fc_sz, in hws_rule_create_hws() 448 bool is_jumbo = mlx5hws_matcher_mt_is_jumbo(rule->matcher->mt); in hws_rule_destroy_hws() 574 bool is_jumbo = mlx5hws_matcher_mt_is_jumbo(rule->matcher->mt); in mlx5hws_rule_move_hws_remove() 611 bool is_jumbo = mlx5hws_matcher_mt_is_jumbo(rule->matcher->mt); in mlx5hws_rule_move_hws_add()
|
H A D | matcher.h | 64 struct mlx5hws_match_template *mt; member 86 mlx5hws_matcher_mt_is_jumbo(struct mlx5hws_match_template *mt) in mlx5hws_matcher_mt_is_jumbo() argument 88 return mlx5hws_definer_is_jumbo(mt->definer); in mlx5hws_matcher_mt_is_jumbo()
|
/linux/drivers/input/mouse/ |
H A D | alps.c | 17 #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 …]
|
H A D | alps.h | 12 #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/scripts/gdb/linux/ |
H A D | mapletree.py | 35 def __init__(self, mt, first, end): argument 36 if mt.type == maple_tree_root_type.get_type().pointer(): 37 self.tree = mt.dereference() 38 elif mt.type != maple_tree_root_type.get_type(): 40 .format(maple_tree_root_type.get_type().pointer(), mt.type)) 41 self.tree = mt 194 def mt_slot(mt, slots, offset): argument 227 def mtree_load(mt, index): argument 230 mas = Mas(mt, index, index)
|
/linux/Documentation/devicetree/bindings/clock/ |
H A D | mediatek,infracfg.yaml | 14 to the system. The clock values can be found in <dt-bindings/clock/mt*-clk.h> 15 and <dt-bindings/clock/mediatek,mt*-infracfg.h>, and reset values in 16 <dt-bindings/reset/mt*-reset.h>, <dt-bindings/reset/mt*-resets.h> and 17 <dt-bindings/reset/mediatek,mt*-infracfg.h>.
|
/linux/mm/ |
H A D | page_reporting.c | 116 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/tools/testing/radix-tree/ |
H A D | maple.c | 24 #define RCU_MT_BUG_ON(test, y) {if (y) { test->stop = true; } MT_BUG_ON(test->mt, y); } 27 struct maple_tree *mt; member 44 struct maple_tree *mt; member 63 static noinline void __init check_erase(struct maple_tree *mt, unsigned long index, in check_erase() argument 66 MT_BUG_ON(mt, mtree_test_erase(mt, index) != ptr); in check_erase() 69 #define erase_check_load(mt, i) check_load(mt, set[i], entry[i%2]) argument 70 #define erase_check_insert(mt, i) check_insert(mt, set[i], entry[i%2]) argument 71 #define erase_check_erase(mt, i) check_erase(mt, set[i], entry[i%2]) argument 73 static noinline void __init check_erase_testset(struct maple_tree *mt) in check_erase_testset() argument 91 void *entry[2] = { ptr, mt }; in check_erase_testset() [all …]
|
/linux/drivers/gpu/drm/imagination/ |
H A D | pvr_rogue_cr_defs_client.h | 64 * 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/net/netfilter/ |
H A D | nft_set_pipapo.c | 351 * @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() 465 b = pipapo_refill(res_map, f->bsize, f->rules, fill_map, f->mt, in pipapo_get_slow() 478 e = f->mt[b].e; in pipapo_get_slow() 624 union nft_pipapo_map_bucket *new_mt = NULL, *old_mt = f->mt; in pipapo_realloc_mt() 668 f->mt = new_mt; in pipapo_realloc_mt() 729 goto mt; in pipapo_resize() 760 mt: in pipapo_resize() 1182 f->mt[map[i].to + j].to = map[i + 1].to; [all …]
|
/linux/drivers/slimbus/ |
H A D | qcom-ngd-ctrl.c | 94 #define SLIM_MSG_ASM_FIRST_WORD(l, mt, mc, dt, ad) \ argument 95 ((l) | ((mt) << 5) | ((mc) << 8) | ((dt) << 15) | ((ad) << 16)) 604 u8 mc, mt, len; in qcom_slim_ngd_rx() local 606 mt = SLIM_HEADER_GET_MT(buf[0]); in qcom_slim_ngd_rx() 611 mt == SLIM_MSG_MT_SRC_REFERRED_USER) in qcom_slim_ngd_rx() 616 mt == SLIM_MSG_MT_SRC_REFERRED_USER) || in qcom_slim_ngd_rx() 618 mt == SLIM_MSG_MT_SRC_REFERRED_USER)) { in qcom_slim_ngd_rx() 800 if (txn->mt == SLIM_MSG_MT_CORE && in qcom_slim_ngd_xfer_msg() 820 if (txn->mt == SLIM_MSG_MT_CORE && in qcom_slim_ngd_xfer_msg() 824 txn->mt = SLIM_MSG_MT_DEST_REFERRED_USER; in qcom_slim_ngd_xfer_msg() [all …]
|
H A D | slimbus.h | 25 * BYTE 0: MT[7:5] RL[4:0] 115 * @mt: Header field. Message type. 116 * @mc: Header field. LSB is message code for type mt. 129 u8 mt; member 436 static inline bool slim_tid_txn(u8 mt, u8 mc) in slim_tid_txn() argument 438 return (mt == SLIM_MSG_MT_CORE && in slim_tid_txn() 445 static inline bool slim_ec_txn(u8 mt, u8 mc) in slim_ec_txn() argument 447 return (mt == SLIM_MSG_MT_CORE && in slim_ec_txn()
|
/linux/arch/mips/kernel/ |
H A D | Makefile | 58 obj-$(CONFIG_MIPS_MT) += mips-mt.o 59 obj-$(CONFIG_MIPS_MT_FPAFF) += mips-mt-fpaff.o 60 obj-$(CONFIG_MIPS_MT_SMP) += smp-mt.o 66 obj-$(CONFIG_MIPS_VPE_LOADER_MT) += vpe-mt.o 68 obj-$(CONFIG_MIPS_VPE_APSP_API_MT) += rtlx-mt.o
|
/linux/rust/helpers/ |
H A D | maple_tree.c | 5 void rust_helper_mt_init_flags(struct maple_tree *mt, unsigned int flags) in rust_helper_mt_init_flags() argument 7 mt_init_flags(mt, flags); in rust_helper_mt_init_flags()
|