/kernel/linux/linux-6.6/lib/ |
H A D | test_maple_tree.c | 19 #define mt_dump(mt, fmt) do {} while (0) 20 #define mt_validate(mt) do {} while (0) 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, unsigne argument 75 mtree_test_store_range(struct maple_tree *mt, unsigned long start, unsigned long end, void *ptr) mtree_test_store_range() argument 81 mtree_test_store(struct maple_tree *mt, unsigned long start, void *ptr) mtree_test_store() argument 87 mtree_test_insert_range(struct maple_tree *mt, unsigned long start, unsigned long end, void *ptr) mtree_test_insert_range() argument 93 mtree_test_load(struct maple_tree *mt, unsigned long index) mtree_test_load() argument 98 mtree_test_erase(struct maple_tree *mt, unsigned long index) mtree_test_erase() argument 104 check_mtree_alloc_range(struct maple_tree *mt, unsigned long start, unsigned long end, unsigned long size, unsigned long expected, int eret, void *ptr) check_mtree_alloc_range() argument 121 check_mtree_alloc_rrange(struct maple_tree *mt, unsigned long start, unsigned long end, unsigned long size, unsigned long expected, int eret, void *ptr) check_mtree_alloc_rrange() argument 139 check_load(struct maple_tree *mt, unsigned long index, void *ptr) check_load() argument 149 check_store_range(struct maple_tree *mt, unsigned long start, unsigned long end, void *ptr, int expected) check_store_range() argument 165 check_insert_range(struct maple_tree *mt, unsigned long start, unsigned long end, void *ptr, int expected) check_insert_range() argument 181 check_insert(struct maple_tree *mt, unsigned long index, void *ptr) check_insert() argument 190 check_dup_insert(struct maple_tree *mt, unsigned long index, void *ptr) check_dup_insert() argument 200 check_index_load(struct maple_tree *mt, unsigned long index) check_index_load() argument 221 check_rev_seq(struct maple_tree *mt, unsigned long max, bool verbose) check_rev_seq() argument 254 check_seq(struct maple_tree *mt, unsigned long max, bool verbose) check_seq() argument 283 check_lb_not_empty(struct maple_tree *mt) check_lb_not_empty() argument 302 check_lower_bound_split(struct maple_tree *mt) check_lower_bound_split() argument 308 check_upper_bound_split(struct maple_tree *mt) check_upper_bound_split() argument 333 check_mid_split(struct maple_tree *mt) check_mid_split() argument 342 check_rev_find(struct maple_tree *mt) check_rev_find() argument 381 check_find(struct maple_tree *mt) check_find() argument 598 check_find_2(struct maple_tree *mt) check_find_2() argument 643 check_alloc_rev_range(struct maple_tree *mt) check_alloc_rev_range() argument 817 check_alloc_range(struct maple_tree *mt) check_alloc_range() argument 983 check_ranges(struct maple_tree *mt) check_ranges() argument 1316 check_next_entry(struct maple_tree *mt) check_next_entry() argument 1340 check_prev_entry(struct maple_tree *mt) check_prev_entry() argument 1384 check_root_expand(struct maple_tree *mt) check_root_expand() argument 1474 check_gap_combining(struct maple_tree *mt) check_gap_combining() argument 1671 check_node_overwrite(struct maple_tree *mt) check_node_overwrite() argument 1684 bench_slot_store(struct maple_tree *mt) bench_slot_store() argument 1700 bench_node_store(struct maple_tree *mt) bench_node_store() argument 1719 bench_awalk(struct maple_tree *mt) bench_awalk() argument 1736 bench_walk(struct maple_tree *mt) bench_walk() argument 1753 bench_mt_for_each(struct maple_tree *mt) bench_mt_for_each() argument 1777 bench_mas_for_each(struct maple_tree *mt) bench_mas_for_each() argument 1807 bench_mas_prev(struct maple_tree *mt) bench_mas_prev() argument 1837 check_forking(struct maple_tree *mt) check_forking() argument 1880 check_iteration(struct maple_tree *mt) check_iteration() argument 1947 check_mas_store_gfp(struct maple_tree *mt) check_mas_store_gfp() argument 1980 bench_forking(struct maple_tree *mt) bench_forking() argument 2026 next_prev_test(struct maple_tree *mt) next_prev_test() argument 2208 check_spanning_relatives(struct maple_tree *mt) check_spanning_relatives() argument 2221 check_fuzzer(struct maple_tree *mt) check_fuzzer() argument 2618 check_dup_gaps(struct maple_tree *mt, unsigned long nr_entries, bool zero_start, unsigned long gap) check_dup_gaps() argument 2662 check_dup(struct maple_tree *mt) check_dup() argument 2750 check_bnode_min_spanning(struct maple_tree *mt) check_bnode_min_spanning() argument 2769 check_empty_area_window(struct maple_tree *mt) check_empty_area_window() argument 2854 check_empty_area_fill(struct maple_tree *mt) check_empty_area_fill() argument 3046 check_state_handling(struct maple_tree *mt) check_state_handling() argument [all...] |
H A 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() 779 * @mt: The maple node type 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 809 mt_slot(const struct maple_tree *mt, void __rcu **slots, unsigned char offset) mt_slot() argument 815 mt_slot_locked(struct maple_tree *mt, void __rcu **slots, unsigned char offset) mt_slot_locked() argument 859 mt_root_locked(struct maple_tree *mt) mt_root_locked() argument 875 ma_meta(struct maple_node *mn, enum maple_type mt) ma_meta() argument 893 ma_set_meta(struct maple_node *mn, enum maple_type mt, unsigned char offset, unsigned char end) ma_set_meta() argument 910 mt_clear_meta(struct maple_tree *mt, struct maple_node *mn, enum maple_type type) mt_clear_meta() argument 946 ma_meta_end(struct maple_node *mn, enum maple_type mt) ma_meta_end() argument 959 ma_meta_gap(struct maple_node *mn, enum maple_type mt) ma_meta_gap() argument 971 ma_set_meta_gap(struct maple_node *mn, enum maple_type mt, unsigned char offset) ma_set_meta_gap() argument 1494 enum maple_type mt; mas_leaf_max_gap() local 1574 ma_max_gap(struct maple_node *node, unsigned long *gaps, enum maple_type mt, unsigned char *off) ma_max_gap() argument 1602 enum maple_type mt; mas_max_gap() local 1772 enum maple_type mt; global() variable 1946 enum maple_type mt; mas_mab_cp() local 2000 mas_leaf_set_meta(struct ma_state *mas, struct maple_node *node, unsigned long *pivots, enum maple_type mt, unsigned char end) mas_leaf_set_meta() argument 2027 enum maple_type mt = mte_node_type(mas->node); mab_mas_cp() local 2077 mas_bulk_rebalance(struct ma_state *mas, unsigned char end, enum maple_type mt) mas_bulk_rebalance() argument 3051 enum maple_type mt = mte_node_type(mas->node); mas_destroy_rebalance() local 4361 enum maple_type mt; mas_prev_node() local 4527 enum maple_type mt; mas_next_node() local 5028 enum maple_type mt; mas_empty_area() local 5140 mte_dead_leaves(struct maple_enode *enode, struct maple_tree *mt, void __rcu **slots) mte_dead_leaves() argument 5235 mte_destroy_descend(struct maple_enode **enode, struct maple_tree *mt, struct maple_enode *prev, unsigned char offset) mte_destroy_descend() argument 5265 mt_destroy_walk(struct maple_enode *enode, struct maple_tree *mt, bool free) mt_destroy_walk() argument 5327 mte_destroy_walk(struct maple_enode *enode, struct maple_tree *mt) mte_destroy_walk() argument 5761 mt_next(struct maple_tree *mt, unsigned long index, unsigned long max) mt_next() argument 5884 mt_prev(struct maple_tree *mt, unsigned long index, unsigned long min) mt_prev() argument 6239 mtree_load(struct maple_tree *mt, unsigned long index) mtree_load() argument 6281 mtree_store_range(struct maple_tree *mt, unsigned long index, unsigned long last, void *entry, gfp_t gfp) mtree_store_range() argument 6318 mtree_store(struct maple_tree *mt, unsigned long index, void *entry, gfp_t gfp) mtree_store() argument 6336 mtree_insert_range(struct maple_tree *mt, unsigned long first, unsigned long last, void *entry, gfp_t gfp) mtree_insert_range() argument 6371 mtree_insert(struct maple_tree *mt, unsigned long index, void *entry, gfp_t gfp) mtree_insert() argument 6378 mtree_alloc_range(struct maple_tree *mt, unsigned long *startp, void *entry, unsigned long size, unsigned long min, unsigned long max, gfp_t gfp) mtree_alloc_range() argument 6416 mtree_alloc_rrange(struct maple_tree *mt, unsigned long *startp, void *entry, unsigned long size, unsigned long min, unsigned long max, gfp_t gfp) mtree_alloc_rrange() argument 6464 mtree_erase(struct maple_tree *mt, unsigned long index) mtree_erase() argument 6485 __mt_destroy(struct maple_tree *mt) __mt_destroy() argument 6503 mtree_destroy(struct maple_tree *mt) mtree_destroy() argument 6527 mt_find(struct maple_tree *mt, unsigned long *index, unsigned long max) mt_find() argument 6587 mt_find_after(struct maple_tree *mt, unsigned long *index, unsigned long max) mt_find_after() argument 6757 mt_dump_range64(const struct maple_tree *mt, void *entry, unsigned long min, unsigned long max, unsigned int depth, enum mt_dump_format format) mt_dump_range64() argument 6812 mt_dump_arange64(const struct maple_tree *mt, void *entry, unsigned long min, unsigned long max, unsigned int depth, enum mt_dump_format format) mt_dump_arange64() argument 6871 mt_dump_node(const struct maple_tree *mt, void *entry, unsigned long min, unsigned long max, unsigned int depth, enum mt_dump_format format) mt_dump_node() argument 6906 mt_dump(const struct maple_tree *mt, enum mt_dump_format format) mt_dump() argument 6927 enum maple_type mt = mte_node_type(mas->node); mas_validate_gaps() local 7161 mt_validate_nulls(struct maple_tree *mt) mt_validate_nulls() argument 7203 mt_validate(struct maple_tree *mt) mt_validate() argument [all...] |
/kernel/linux/linux-6.6/drivers/input/ |
H A D | input-mt.c | 8 #include <linux/input/mt.h> 28 * @flags: mt tasks to handle in core 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 in input_mt_init_slots() 138 struct input_mt *mt = dev->mt; input_mt_report_slot_state() local 198 struct input_mt *mt = dev->mt; input_mt_report_pointer_emulation() local 259 __input_mt_drop_unused(struct input_dev *dev, struct input_mt *mt) __input_mt_drop_unused() argument 282 struct input_mt *mt = dev->mt; input_mt_drop_unused() local 305 struct input_mt *mt = dev->mt; input_mt_release_slots() local 332 struct input_mt *mt = dev->mt; input_mt_sync_frame() local 403 input_mt_set_matrix(struct input_mt *mt, const struct input_mt_pos *pos, int num_pos, int mu) input_mt_set_matrix() argument 426 input_mt_set_slots(struct input_mt *mt, int *slots, int num_pos) input_mt_set_slots() argument 484 struct input_mt *mt = dev->mt; input_mt_assign_slots() local 517 struct input_mt *mt = dev->mt; input_mt_get_slot_by_key() local [all...] |
/kernel/linux/linux-5.10/drivers/input/ |
H A D | input-mt.c | 8 #include <linux/input/mt.h> 27 * @flags: mt tasks to handle in core 41 struct input_mt *mt = dev->mt; in input_mt_init_slots() local 46 if (mt) in input_mt_init_slots() 47 return mt->num_slots != num_slots ? -EINVAL : 0; in input_mt_init_slots() 49 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots() 50 if (!mt) in input_mt_init_slots() 53 mt in input_mt_init_slots() 137 struct input_mt *mt = dev->mt; input_mt_report_slot_state() local 197 struct input_mt *mt = dev->mt; input_mt_report_pointer_emulation() local 258 __input_mt_drop_unused(struct input_dev *dev, struct input_mt *mt) __input_mt_drop_unused() argument 278 struct input_mt *mt = dev->mt; input_mt_drop_unused() local 297 struct input_mt *mt = dev->mt; input_mt_sync_frame() local 363 input_mt_set_matrix(struct input_mt *mt, const struct input_mt_pos *pos, int num_pos, int mu) input_mt_set_matrix() argument 386 input_mt_set_slots(struct input_mt *mt, int *slots, int num_pos) input_mt_set_slots() argument 444 struct input_mt *mt = dev->mt; input_mt_assign_slots() local 477 struct input_mt *mt = dev->mt; input_mt_get_slot_by_key() local [all...] |
/kernel/linux/linux-6.6/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, in argument 757 raw_to_mcelsius_v3(struct mtk_thermal *mt, int sensno, s32 raw) raw_to_mcelsius_v3() argument 782 struct mtk_thermal *mt = bank->mt; mtk_thermal_get_bank() local 803 struct mtk_thermal *mt = bank->mt; mtk_thermal_put_bank() local 818 struct mtk_thermal *mt = bank->mt; mtk_thermal_bank_temperature() local 850 struct mtk_thermal *mt = thermal_zone_device_priv(tz); mtk_read_temp() local 873 mtk_thermal_init_bank(struct mtk_thermal *mt, int num, u32 apmixed_phys_base, u32 auxadc_phys_base, int ctrl_id) mtk_thermal_init_bank() argument 992 mtk_thermal_extract_efuse_v1(struct mtk_thermal *mt, u32 *buf) mtk_thermal_extract_efuse_v1() argument 1037 mtk_thermal_extract_efuse_v2(struct mtk_thermal *mt, u32 *buf) mtk_thermal_extract_efuse_v2() argument 1054 mtk_thermal_extract_efuse_v3(struct mtk_thermal *mt, u32 *buf) mtk_thermal_extract_efuse_v3() argument 1073 mtk_thermal_get_calibration_data(struct device *dev, struct mtk_thermal *mt) mtk_thermal_get_calibration_data() argument 1168 mtk_thermal_turn_on_buffer(struct mtk_thermal *mt, void __iomem *apmixed_base) mtk_thermal_turn_on_buffer() argument 1183 mtk_thermal_release_periodic_ts(struct mtk_thermal *mt, void __iomem *auxadc_base) mtk_thermal_release_periodic_ts() argument 1198 struct mtk_thermal *mt; mtk_thermal_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/thermal/ |
H A D | mtk_thermal.c | 254 struct mtk_thermal *mt; member 552 * @mt: The thermal controller 559 static int raw_to_mcelsius_v1(struct mtk_thermal *mt, int sensno, s32 raw) in raw_to_mcelsius_v1() argument 566 tmp /= mt->conf->cali_val + mt->o_slope; in raw_to_mcelsius_v1() 567 tmp /= 10000 + mt->adc_ge; in raw_to_mcelsius_v1() 568 tmp *= raw - mt->vts[sensno] - 3350; in raw_to_mcelsius_v1() 571 return mt->degc_cali * 500 - tmp; in raw_to_mcelsius_v1() 574 static int raw_to_mcelsius_v2(struct mtk_thermal *mt, int sensno, s32 raw) in raw_to_mcelsius_v2() argument 587 g_gain = 10000 + (((mt in raw_to_mcelsius_v2() 613 struct mtk_thermal *mt = bank->mt; mtk_thermal_get_bank() local 634 struct mtk_thermal *mt = bank->mt; mtk_thermal_put_bank() local 649 struct mtk_thermal *mt = bank->mt; mtk_thermal_bank_temperature() local 682 struct mtk_thermal *mt = data; mtk_read_temp() local 705 mtk_thermal_init_bank(struct mtk_thermal *mt, int num, u32 apmixed_phys_base, u32 auxadc_phys_base, int ctrl_id) mtk_thermal_init_bank() argument 826 mtk_thermal_extract_efuse_v1(struct mtk_thermal *mt, u32 *buf) mtk_thermal_extract_efuse_v1() argument 871 mtk_thermal_extract_efuse_v2(struct mtk_thermal *mt, u32 *buf) mtk_thermal_extract_efuse_v2() argument 888 mtk_thermal_get_calibration_data(struct device *dev, struct mtk_thermal *mt) mtk_thermal_get_calibration_data() argument 975 mtk_thermal_release_periodic_ts(struct mtk_thermal *mt, void __iomem *auxadc_base) mtk_thermal_release_periodic_ts() argument 990 struct mtk_thermal *mt; mtk_thermal_probe() local 1102 struct mtk_thermal *mt = platform_get_drvdata(pdev); mtk_thermal_remove() local [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | maple_tree.h | 185 #define mt_lock_is_held(mt) \ 186 (!(mt)->ma_external_lock || lock_is_held((mt)->ma_external_lock)) 188 #define mt_write_lock_is_held(mt) \ 189 (!(mt)->ma_external_lock || \ 190 lock_is_held_type((mt)->ma_external_lock, 0)) 192 #define mt_set_external_lock(mt, lock) \ 193 (mt)->ma_external_lock = &(lock)->dep_map 195 #define mt_on_stack(mt) (mt) 340 mtree_empty(const struct maple_tree *mt) mtree_empty() argument 602 mt_external_lock(const struct maple_tree *mt) mt_external_lock() argument 617 mt_init_flags(struct maple_tree *mt, unsigned int flags) mt_init_flags() argument 633 mt_init(struct maple_tree *mt) mt_init() argument 638 mt_in_rcu(struct maple_tree *mt) mt_in_rcu() argument 650 mt_clear_in_rcu(struct maple_tree *mt) mt_clear_in_rcu() argument 669 mt_set_in_rcu(struct maple_tree *mt) mt_set_in_rcu() argument 684 mt_height(const struct maple_tree *mt) mt_height() argument [all...] |
/kernel/linux/linux-6.6/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() 137 struct flow_match_ports mt; vcap_tc_flower_handler_portnum_usage() local 175 struct flow_match_vlan mt; vcap_tc_flower_handler_cvlan_usage() local 217 struct flow_match_vlan mt; vcap_tc_flower_handler_vlan_usage() local 252 struct flow_match_tcp mt; vcap_tc_flower_handler_tcp_usage() local 328 struct flow_match_arp mt; vcap_tc_flower_handler_arp_usage() local 391 struct flow_match_ip mt; vcap_tc_flower_handler_ip_usage() local [all...] |
/kernel/linux/linux-6.6/include/trace/events/ |
H A 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 [all...] |
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,
|
/kernel/linux/linux-6.6/drivers/base/regmap/ |
H A 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, in regcache_maple_exit() 318 struct maple_tree *mt = map->cache; regcache_maple_insert_block() local 346 struct maple_tree *mt; regcache_maple_init() local [all...] |
/kernel/linux/linux-5.10/drivers/video/fbdev/matrox/ |
H A D | matroxfb_g450.c | 238 struct my_timming *mt, const struct output_desc *outd) in computeRegs() 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 in computeRegs() 237 computeRegs(struct matrox_fb_info *minfo, struct mavenregs *r, struct my_timming *mt, const struct output_desc *outd) computeRegs() argument 521 matroxfb_g450_compute(void* md, struct my_timming* mt) matroxfb_g450_compute() argument 578 g450_dvi_compute(void* md, struct my_timming* mt) g450_dvi_compute() argument [all...] |
H A D | matroxfb_maven.c | 756 struct my_timming* mt, in maven_compute_timming() 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 in maven_compute_timming() 755 maven_compute_timming(struct maven_data* md, struct my_timming* mt, struct mavenregs* m) maven_compute_timming() argument 1148 maven_out_compute(void* md, struct my_timming* mt) maven_out_compute() argument [all...] |
H A D | matroxfb_crtc2.c | 65 struct my_timming* mt, in matroxfb_dh_restore() 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 in matroxfb_dh_restore() 64 matroxfb_dh_restore(struct matroxfb_dh_fb_info* m2info, struct my_timming* mt, int mode, unsigned int pos) matroxfb_dh_restore() argument 344 struct my_timming mt; matroxfb_dh_set_par() local [all...] |
/kernel/linux/linux-6.6/drivers/video/fbdev/matrox/ |
H A D | matroxfb_g450.c | 238 struct my_timming *mt, const struct output_desc *outd) in computeRegs() 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 in computeRegs() 237 computeRegs(struct matrox_fb_info *minfo, struct mavenregs *r, struct my_timming *mt, const struct output_desc *outd) computeRegs() argument 521 matroxfb_g450_compute(void* md, struct my_timming* mt) matroxfb_g450_compute() argument 578 g450_dvi_compute(void* md, struct my_timming* mt) g450_dvi_compute() argument [all...] |
H A D | matroxfb_maven.c | 756 struct my_timming* mt, in maven_compute_timming() 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 in maven_compute_timming() 755 maven_compute_timming(struct maven_data* md, struct my_timming* mt, struct mavenregs* m) maven_compute_timming() argument 1148 maven_out_compute(void* md, struct my_timming* mt) maven_out_compute() argument [all...] |
H A D | matroxfb_crtc2.c | 65 struct my_timming* mt, in matroxfb_dh_restore() 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 in matroxfb_dh_restore() 64 matroxfb_dh_restore(struct matroxfb_dh_fb_info* m2info, struct my_timming* mt, int mode, unsigned int pos) matroxfb_dh_restore() argument 344 struct my_timming mt; matroxfb_dh_set_par() local [all...] |
/kernel/linux/linux-6.6/tools/testing/radix-tree/ |
H A 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_allocate in check_new_node() 465 check_erase(struct maple_tree *mt, unsigned long index, void *ptr) check_erase() argument 475 check_erase_testset(struct maple_tree *mt) check_erase_testset() argument 979 check_erase2_testset(struct maple_tree *mt, const unsigned long *set, unsigned long size) check_erase2_testset() argument 1124 check_erase2_sets(struct maple_tree *mt) check_erase2_sets() argument 34586 rcu_stress_rev(struct maple_tree *mt, struct rcu_test_struct2 *test, int count, struct rcu_reader_struct *test_reader) rcu_stress_rev() argument 34645 rcu_stress_fwd(struct maple_tree *mt, struct rcu_test_struct2 *test, int count, struct rcu_reader_struct *test_reader) rcu_stress_fwd() argument 34713 rcu_stress(struct maple_tree *mt, bool forward) rcu_stress() argument 34790 struct maple_tree *mt; /* the maple tree */ global() member 34932 run_check_rcu(struct maple_tree *mt, struct rcu_test_struct *vals) run_check_rcu() argument 34984 run_check_rcu_slot_store(struct maple_tree *mt) run_check_rcu_slot_store() argument 35029 run_check_rcu_slowread(struct maple_tree *mt, struct rcu_test_struct *vals) run_check_rcu_slowread() argument 35070 check_rcu_simulated(struct maple_tree *mt) check_rcu_simulated() argument 35231 check_rcu_threaded(struct maple_tree *mt) check_rcu_threaded() argument 35380 check_dfs_preorder(struct maple_tree *mt) check_dfs_preorder() argument 35448 check_prealloc(struct maple_tree *mt) check_prealloc() argument 35581 check_spanning_write(struct maple_tree *mt) check_spanning_write() argument 35749 check_null_expand(struct maple_tree *mt) check_null_expand() argument 35810 check_nomem(struct maple_tree *mt) check_nomem() argument 35845 check_locky(struct maple_tree *mt) check_locky() argument [all...] |
/kernel/linux/linux-5.10/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[ in alps_report_semi_mt_data() 969 alps_get_finger_coordinate_v7(struct input_mt_pos *mt, unsigned char *pkt, unsigned char pkt_id) alps_get_finger_coordinate_v7() argument 1014 alps_get_mt_count(struct input_mt_pos *mt) alps_get_mt_count() argument [all...] |
/kernel/linux/linux-6.6/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[ in alps_report_semi_mt_data() 969 alps_get_finger_coordinate_v7(struct input_mt_pos *mt, unsigned char *pkt, unsigned char pkt_id) alps_get_finger_coordinate_v7() argument 1014 alps_get_mt_count(struct input_mt_pos *mt) alps_get_mt_count() argument [all...] |
/kernel/linux/linux-5.10/mm/ |
H A D | page_reporting.c | 79 int mt = get_pageblock_migratetype(page); in page_reporting_drain() local 82 __putback_isolated_page(page, order, mt); in page_reporting_drain() 110 unsigned int order, unsigned int mt, in page_reporting_cycle() 114 struct list_head *list = &area->free_list[mt]; in page_reporting_cycle() 226 unsigned int order, mt, leftover, offset = PAGE_REPORTING_CAPACITY; in page_reporting_process_zone() local 241 /* Process each free list starting from lowest order/mt */ in page_reporting_process_zone() 243 for (mt = 0; mt < MIGRATE_TYPES; mt++) { in page_reporting_process_zone() 245 if (is_migrate_isolate(mt)) in page_reporting_process_zone() 109 page_reporting_cycle(struct page_reporting_dev_info *prdev, struct zone *zone, unsigned int order, unsigned int mt, struct scatterlist *sgl, unsigned int *offset) page_reporting_cycle() argument [all...] |
/kernel/linux/linux-6.6/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() 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() 146 page_reporting_cycle(struct page_reporting_dev_info *prdev, struct zone *zone, unsigned int order, unsigned int mt, struct scatterlist *sgl, unsigned int *offset) page_reporting_cycle() argument [all...] |
/kernel/linux/linux-5.10/include/trace/events/ |
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,
|
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nft_set_pipapo.c | 351 * @mt: Mapping table containing bit set specifiers 363 union nft_pipapo_map_bucket *mt, bool match_only) in pipapo_refill() 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[ in pipapo_get() 362 pipapo_refill(unsigned long *map, int len, int rules, unsigned long *dst, union nft_pipapo_map_bucket *mt, bool match_only) pipapo_refill() argument 1472 pipapo_unmap(union nft_pipapo_map_bucket *mt, int rules, int start, int n, int to_offset, bool is_last) global() argument [all...] |
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nft_set_pipapo.c | 351 * @mt: Mapping table containing bit set specifiers 363 union nft_pipapo_map_bucket *mt, bool match_only) in pipapo_refill() 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[ in pipapo_get() 362 pipapo_refill(unsigned long *map, int len, int rules, unsigned long *dst, union nft_pipapo_map_bucket *mt, bool match_only) pipapo_refill() argument 1471 pipapo_unmap(union nft_pipapo_map_bucket *mt, int rules, int start, int n, int to_offset, bool is_last) global() argument [all...] |