/linux-6.6.21/lib/ |
D | test_maple_tree.c | 19 #define mt_dump(mt, fmt) do {} while (0) argument 20 #define mt_validate(mt) do {} while (0) argument 57 static int __init mtree_insert_index(struct maple_tree *mt, in mtree_insert_index() argument 60 return mtree_insert(mt, index, xa_mk_value(index & LONG_MAX), gfp); in mtree_insert_index() 63 static void __init mtree_erase_index(struct maple_tree *mt, unsigned long index) in mtree_erase_index() argument 65 MT_BUG_ON(mt, mtree_erase(mt, index) != xa_mk_value(index & LONG_MAX)); in mtree_erase_index() 66 MT_BUG_ON(mt, mtree_load(mt, index) != NULL); in mtree_erase_index() 69 static int __init mtree_test_insert(struct maple_tree *mt, unsigned long index, in mtree_test_insert() argument 72 return mtree_insert(mt, index, ptr, GFP_KERNEL); in mtree_test_insert() 75 static int __init mtree_test_store_range(struct maple_tree *mt, in mtree_test_store_range() argument [all …]
|
D | maple_tree.c | 378 static inline bool mt_is_alloc(struct maple_tree *mt) in mt_is_alloc() argument 380 return (mt->ma_flags & MT_FLAGS_ALLOC_RANGE); in mt_is_alloc() 783 static inline void __rcu **ma_slots(struct maple_node *mn, enum maple_type mt) in ma_slots() argument 785 switch (mt) { in ma_slots() 797 static inline bool mt_write_locked(const struct maple_tree *mt) in mt_write_locked() argument 799 return mt_external_lock(mt) ? mt_write_lock_is_held(mt) : in mt_write_locked() 800 lockdep_is_held(&mt->ma_lock); in mt_write_locked() 803 static inline bool mt_locked(const struct maple_tree *mt) in mt_locked() argument 805 return mt_external_lock(mt) ? mt_lock_is_held(mt) : in mt_locked() 806 lockdep_is_held(&mt->ma_lock); in mt_locked() [all …]
|
/linux-6.6.21/drivers/input/ |
D | input-mt.c | 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() 50 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots() 51 if (!mt) in input_mt_init_slots() 54 mt->num_slots = num_slots; in input_mt_init_slots() 55 mt->flags = flags; in input_mt_init_slots() 84 mt->red = kcalloc(n2, sizeof(*mt->red), GFP_KERNEL); in input_mt_init_slots() 85 if (!mt->red) in input_mt_init_slots() 91 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots() [all …]
|
/linux-6.6.21/drivers/thermal/mediatek/ |
D | auxadc_thermal.c | 307 struct mtk_thermal *mt; member 350 int (*raw_to_mcelsius)(struct mtk_thermal *mt, int sensno, s32 raw); 709 static int raw_to_mcelsius_v1(struct mtk_thermal *mt, int sensno, s32 raw) in raw_to_mcelsius_v1() argument 716 tmp /= mt->conf->cali_val + mt->o_slope; in raw_to_mcelsius_v1() 717 tmp /= 10000 + mt->adc_ge; in raw_to_mcelsius_v1() 718 tmp *= raw - mt->vts[sensno] - 3350; in raw_to_mcelsius_v1() 721 return mt->degc_cali * 500 - tmp; in raw_to_mcelsius_v1() 724 static int raw_to_mcelsius_v2(struct mtk_thermal *mt, int sensno, s32 raw) in raw_to_mcelsius_v2() argument 737 g_gain = 10000 + (((mt->adc_ge - 512) * 10000) >> 12); in raw_to_mcelsius_v2() 738 g_oe = mt->adc_oe - 512; in raw_to_mcelsius_v2() [all …]
|
/linux-6.6.21/drivers/net/ethernet/microchip/vcap/ |
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-6.6.21/include/linux/ |
D | maple_tree.h | 185 #define mt_lock_is_held(mt) \ argument 186 (!(mt)->ma_external_lock || lock_is_held((mt)->ma_external_lock)) 188 #define mt_write_lock_is_held(mt) \ argument 189 (!(mt)->ma_external_lock || \ 190 lock_is_held_type((mt)->ma_external_lock, 0)) 192 #define mt_set_external_lock(mt, lock) \ argument 193 (mt)->ma_external_lock = &(lock)->dep_map 195 #define mt_on_stack(mt) (mt).ma_external_lock = NULL argument 198 #define mt_lock_is_held(mt) 1 argument 199 #define mt_write_lock_is_held(mt) 1 argument [all …]
|
/linux-6.6.21/include/trace/events/ |
D | mmap.h | 47 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 …]
|
D | page_ref.h | 25 __field(int, mt) 35 __entry->mt = get_pageblock_migratetype(page); 43 __entry->mapcount, __entry->mapping, __entry->mt, 73 __field(int, mt) 84 __entry->mt = get_pageblock_migratetype(page); 93 __entry->mapcount, __entry->mapping, __entry->mt,
|
/linux-6.6.21/drivers/video/fbdev/matrox/ |
D | matroxfb_g450.c | 238 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 …]
|
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 …]
|
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 …]
|
D | matroxfb_misc.c | 107 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.6.21/drivers/base/regmap/ |
D | regcache-maple.c | 19 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.6.21/tools/testing/radix-tree/ |
D | maple.c | 29 #define RCU_MT_BUG_ON(test, y) {if (y) { test->stop = true; } MT_BUG_ON(test->mt, y); } 32 struct maple_tree *mt; member 49 struct maple_tree *mt; member 91 static noinline void __init check_new_node(struct maple_tree *mt) in check_new_node() argument 99 MA_STATE(mas, mt, 0, 0); in check_new_node() 104 mtree_lock(mt); in check_new_node() 109 MT_BUG_ON(mt, mas_alloc_req(&mas) != 3); in check_new_node() 111 MT_BUG_ON(mt, mas.node != MA_ERROR(-ENOMEM)); in check_new_node() 112 MT_BUG_ON(mt, !mas_nomem(&mas, GFP_KERNEL)); in check_new_node() 114 MT_BUG_ON(mt, mas_allocated(&mas) != 3); in check_new_node() [all …]
|
/linux-6.6.21/drivers/input/mouse/ |
D | alps.c | 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() 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() 539 alps_set_slot(dev, 0, f->mt[0].x, f->mt[0].y); in alps_report_semi_mt_data() 541 alps_set_slot(dev, 1, f->mt[1].x, f->mt[1].y); in alps_report_semi_mt_data() 969 static void alps_get_finger_coordinate_v7(struct input_mt_pos *mt, in alps_get_finger_coordinate_v7() argument 973 mt[0].x = ((pkt[2] & 0x80) << 4); in alps_get_finger_coordinate_v7() [all …]
|
/linux-6.6.21/net/netfilter/ |
D | nft_set_pipapo.c | 363 union nft_pipapo_map_bucket *mt, bool match_only) in pipapo_refill() argument 387 bitmap_set(dst, mt[i].to, mt[i].n); in pipapo_refill() 460 b = pipapo_refill(res_map, f->bsize, f->rules, fill_map, f->mt, in nft_pipapo_lookup() 470 *ext = &f->mt[b].e->ext; in nft_pipapo_lookup() 563 b = pipapo_refill(res_map, f->bsize, f->rules, fill_map, f->mt, in pipapo_get() 569 if (nft_set_elem_expired(&f->mt[b].e->ext)) in pipapo_get() 572 !nft_set_elem_active(&f->mt[b].e->ext, genmask))) in pipapo_get() 575 ret = f->mt[b].e; in pipapo_get() 624 union nft_pipapo_map_bucket *new_mt, *old_mt = f->mt; in pipapo_resize() 635 goto mt; in pipapo_resize() [all …]
|
D | nft_set_pipapo_avx2.c | 154 union nft_pipapo_map_bucket *mt, bool last) in nft_pipapo_avx2_refill() argument 167 nft_pipapo_avx2_fill(dst, mt[i].to, mt[i].n); \ in nft_pipapo_avx2_refill() 170 ret = mt[i].to; \ in nft_pipapo_avx2_refill() 242 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_4b_2() 318 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_4b_4() 412 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_4b_8() 502 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_4b_12() 637 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_4b_32() 694 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_8b_1() 758 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_8b_2() [all …]
|
/linux-6.6.21/mm/ |
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 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.6.21/include/linux/input/ |
D | mt.h | 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.6.21/drivers/slimbus/ |
D | qcom-ctrl.c | 64 #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() 251 mc, mt); in qcom_slim_handle_rx_irq() 356 *head = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, in qcom_xfer_msg() 360 *head = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, in qcom_xfer_msg() 365 if (slim_tid_txn(txn->mt, txn->mc)) in qcom_xfer_msg() 368 if (slim_ec_txn(txn->mt, txn->mc)) { in qcom_xfer_msg() [all …]
|
D | slimbus.h | 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()
|
D | qcom-ngd-ctrl.c | 95 #define SLIM_MSG_ASM_FIRST_WORD(l, mt, mc, dt, ad) \ argument 96 ((l) | ((mt) << 5) | ((mc) << 8) | ((dt) << 15) | ((ad) << 16)) 605 u8 mc, mt, len; in qcom_slim_ngd_rx() local 607 mt = SLIM_HEADER_GET_MT(buf[0]); in qcom_slim_ngd_rx() 612 mt == SLIM_MSG_MT_SRC_REFERRED_USER) in qcom_slim_ngd_rx() 617 mt == SLIM_MSG_MT_SRC_REFERRED_USER) || in qcom_slim_ngd_rx() 619 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 …]
|
/linux-6.6.21/arch/mips/kernel/ |
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-6.6.21/Documentation/devicetree/bindings/arm/mediatek/ |
D | mediatek,infracfg.yaml | 14 to the system. The clock values can be found in <dt-bindings/clock/mt*-clk.h>, 15 and reset values in <dt-bindings/reset/mt*-reset.h> and 16 <dt-bindings/reset/mt*-resets.h>.
|
/linux-6.6.21/Documentation/driver-api/ |
D | input.rst | 22 .. kernel-doc:: include/linux/input/mt.h 25 .. kernel-doc:: drivers/input/input-mt.c
|