/Linux-v6.1/lib/ |
D | test_maple_tree.c | 34 int mtree_insert_index(struct maple_tree *mt, unsigned long index, gfp_t gfp) in mtree_insert_index() argument 36 return mtree_insert(mt, index, xa_mk_value(index & LONG_MAX), gfp); in mtree_insert_index() 39 static void mtree_erase_index(struct maple_tree *mt, unsigned long index) in mtree_erase_index() argument 41 MT_BUG_ON(mt, mtree_erase(mt, index) != xa_mk_value(index & LONG_MAX)); in mtree_erase_index() 42 MT_BUG_ON(mt, mtree_load(mt, index) != NULL); in mtree_erase_index() 45 static int mtree_test_insert(struct maple_tree *mt, unsigned long index, in mtree_test_insert() argument 48 return mtree_insert(mt, index, ptr, GFP_KERNEL); in mtree_test_insert() 51 static int mtree_test_store_range(struct maple_tree *mt, unsigned long start, in mtree_test_store_range() argument 54 return mtree_store_range(mt, start, end, ptr, GFP_KERNEL); in mtree_test_store_range() 57 static int mtree_test_store(struct maple_tree *mt, unsigned long start, in mtree_test_store() argument [all …]
|
D | maple_tree.c | 351 static inline bool mt_is_alloc(struct maple_tree *mt) in mt_is_alloc() argument 353 return (mt->ma_flags & MT_FLAGS_ALLOC_RANGE); in mt_is_alloc() 426 struct maple_tree *mt) in mte_parent_enum() argument 439 if (mt_is_alloc(mt)) in mte_parent_enum() 784 static inline void __rcu **ma_slots(struct maple_node *mn, enum maple_type mt) in ma_slots() argument 786 switch (mt) { in ma_slots() 798 static inline bool mt_locked(const struct maple_tree *mt) in mt_locked() argument 800 return mt_external_lock(mt) ? mt_lock_is_held(mt) : in mt_locked() 801 lockdep_is_held(&mt->ma_lock); in mt_locked() 804 static inline void *mt_slot(const struct maple_tree *mt, in mt_slot() argument [all …]
|
/Linux-v6.1/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-v6.1/include/linux/ |
D | maple_tree.h | 188 #define mt_lock_is_held(mt) lock_is_held(mt->ma_external_lock) argument 189 #define mt_set_external_lock(mt, lock) \ argument 190 (mt)->ma_external_lock = &(lock)->dep_map 193 #define mt_lock_is_held(mt) 1 argument 194 #define mt_set_external_lock(mt, lock) do { } while (0) argument 251 #define mtree_lock(mt) spin_lock((&(mt)->ma_lock)) argument 252 #define mtree_unlock(mt) spin_unlock((&(mt)->ma_lock)) argument 304 void *mtree_load(struct maple_tree *mt, unsigned long index); 306 int mtree_insert(struct maple_tree *mt, unsigned long index, 308 int mtree_insert_range(struct maple_tree *mt, unsigned long first, [all …]
|
/Linux-v6.1/drivers/thermal/ |
D | mtk_thermal.c | 256 struct mtk_thermal *mt; member 561 static int raw_to_mcelsius_v1(struct mtk_thermal *mt, int sensno, s32 raw) in raw_to_mcelsius_v1() argument 568 tmp /= mt->conf->cali_val + mt->o_slope; in raw_to_mcelsius_v1() 569 tmp /= 10000 + mt->adc_ge; in raw_to_mcelsius_v1() 570 tmp *= raw - mt->vts[sensno] - 3350; in raw_to_mcelsius_v1() 573 return mt->degc_cali * 500 - tmp; in raw_to_mcelsius_v1() 576 static int raw_to_mcelsius_v2(struct mtk_thermal *mt, int sensno, s32 raw) in raw_to_mcelsius_v2() argument 589 g_gain = 10000 + (((mt->adc_ge - 512) * 10000) >> 12); in raw_to_mcelsius_v2() 590 g_oe = mt->adc_oe - 512; in raw_to_mcelsius_v2() 591 format_1 = mt->vts[VTS2] + 3105 - g_oe; in raw_to_mcelsius_v2() [all …]
|
/Linux-v6.1/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-v6.1/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-v6.1/tools/testing/radix-tree/ |
D | maple.c | 28 #define RCU_MT_BUG_ON(test, y) {if (y) { test->stop = true; } MT_BUG_ON(test->mt, y); } 31 struct maple_tree *mt; member 61 static noinline void check_new_node(struct maple_tree *mt) in check_new_node() argument 69 MA_STATE(mas, mt, 0, 0); in check_new_node() 72 mtree_lock(mt); in check_new_node() 77 MT_BUG_ON(mt, mas_alloc_req(&mas) != 3); in check_new_node() 79 MT_BUG_ON(mt, mas.node != MA_ERROR(-ENOMEM)); in check_new_node() 80 MT_BUG_ON(mt, !mas_nomem(&mas, GFP_KERNEL)); in check_new_node() 82 MT_BUG_ON(mt, mas_allocated(&mas) != 3); in check_new_node() 84 MT_BUG_ON(mt, not_empty(mn)); in check_new_node() [all …]
|
/Linux-v6.1/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-v6.1/net/netfilter/ |
D | nft_set_pipapo.c | 366 union nft_pipapo_map_bucket *mt, bool match_only) in pipapo_refill() argument 390 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() 571 !nft_set_elem_active(&f->mt[b].e->ext, genmask))) in pipapo_get() 574 ret = f->mt[b].e; in pipapo_get() 623 union nft_pipapo_map_bucket *new_mt, *old_mt = f->mt; in pipapo_resize() 634 goto mt; in pipapo_resize() [all …]
|
D | nft_set_pipapo_avx2.c | 157 union nft_pipapo_map_bucket *mt, bool last) in nft_pipapo_avx2_refill() argument 170 nft_pipapo_avx2_fill(dst, mt[i].to, mt[i].n); \ in nft_pipapo_avx2_refill() 173 ret = mt[i].to; \ in nft_pipapo_avx2_refill() 245 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_4b_2() 321 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_4b_4() 415 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_4b_8() 505 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_4b_12() 640 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_4b_32() 697 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_8b_1() 761 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_8b_2() [all …]
|
/Linux-v6.1/mm/ |
D | page_reporting.c | 84 int mt = get_pageblock_migratetype(page); in page_reporting_drain() local 87 __putback_isolated_page(page, order, mt); in page_reporting_drain() 115 unsigned int order, unsigned int mt, in page_reporting_cycle() argument 119 struct list_head *list = &area->free_list[mt]; in page_reporting_cycle() 231 unsigned int order, mt, leftover, offset = PAGE_REPORTING_CAPACITY; in page_reporting_process_zone() local 248 for (mt = 0; mt < MIGRATE_TYPES; mt++) { in page_reporting_process_zone() 250 if (is_migrate_isolate(mt)) in page_reporting_process_zone() 253 err = page_reporting_cycle(prdev, zone, order, mt, in page_reporting_process_zone()
|
/Linux-v6.1/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-v6.1/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() 793 if (txn->mt == SLIM_MSG_MT_CORE && in qcom_slim_ngd_xfer_msg() 813 if (txn->mt == SLIM_MSG_MT_CORE && in qcom_slim_ngd_xfer_msg() 817 txn->mt = SLIM_MSG_MT_DEST_REFERRED_USER; in qcom_slim_ngd_xfer_msg() [all …]
|
/Linux-v6.1/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 68 obj-$(CONFIG_MIPS_VPE_LOADER_MT) += vpe-mt.o 71 obj-$(CONFIG_MIPS_VPE_APSP_API_MT) += rtlx-mt.o
|
/Linux-v6.1/Documentation/driver-api/ |
D | input.rst | 22 .. kernel-doc:: include/linux/input/mt.h 25 .. kernel-doc:: drivers/input/input-mt.c
|
/Linux-v6.1/arch/arm/mm/ |
D | mm.h | 64 #define VM_ARM_MTYPE(mt) ((mt) << 20) argument
|
/Linux-v6.1/arch/arm/include/asm/ |
D | mpu.h | 70 #define PMSAv8_MAIR(attr, mt) ((attr) << ((mt) * 8)) argument
|
/Linux-v6.1/drivers/edac/ |
D | dmc520_edac.c | 294 enum mem_type mt = MEM_UNKNOWN; in dmc520_get_mtype() local 303 mt = MEM_DDR3; in dmc520_get_mtype() 307 mt = MEM_DDR4; in dmc520_get_mtype() 311 return mt; in dmc520_get_mtype() 450 enum mem_type mt; in dmc520_init_csrow() local 455 mt = dmc520_get_mtype(pvt); in dmc520_init_csrow() 466 dimm->mtype = mt; in dmc520_init_csrow()
|