Home
last modified time | relevance | path

Searched refs:em (Results 1 – 25 of 57) sorted by relevance

123

/kernel/linux/linux-5.10/fs/btrfs/tests/
Dinode-tests.c221 struct extent_map *em = NULL; in test_btrfs_get_extent() local
264 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, 0, sectorsize); in test_btrfs_get_extent()
265 if (IS_ERR(em)) { in test_btrfs_get_extent()
266 em = NULL; in test_btrfs_get_extent()
270 if (em->block_start != EXTENT_MAP_HOLE) { in test_btrfs_get_extent()
271 test_err("expected a hole, got %llu", em->block_start); in test_btrfs_get_extent()
274 free_extent_map(em); in test_btrfs_get_extent()
284 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, 0, (u64)-1); in test_btrfs_get_extent()
285 if (IS_ERR(em)) { in test_btrfs_get_extent()
289 if (em->block_start != EXTENT_MAP_HOLE) { in test_btrfs_get_extent()
[all …]
Dextent-map-tests.c15 struct extent_map *em; in free_extent_map_tree() local
20 em = rb_entry(node, struct extent_map, rb_node); in free_extent_map_tree()
21 remove_extent_mapping(em_tree, em); in free_extent_map_tree()
24 if (refcount_read(&em->refs) != 1) { in free_extent_map_tree()
27 em->start, em->len, em->block_start, in free_extent_map_tree()
28 em->block_len, refcount_read(&em->refs)); in free_extent_map_tree()
30 refcount_set(&em->refs, 1); in free_extent_map_tree()
33 free_extent_map(em); in free_extent_map_tree()
56 struct extent_map *em; in test_case_1() local
61 em = alloc_extent_map(); in test_case_1()
[all …]
/kernel/linux/linux-5.10/fs/btrfs/
Dextent_map.c52 struct extent_map *em; in alloc_extent_map() local
53 em = kmem_cache_zalloc(extent_map_cache, GFP_NOFS); in alloc_extent_map()
54 if (!em) in alloc_extent_map()
56 RB_CLEAR_NODE(&em->rb_node); in alloc_extent_map()
57 em->flags = 0; in alloc_extent_map()
58 em->compress_type = BTRFS_COMPRESS_NONE; in alloc_extent_map()
59 em->generation = 0; in alloc_extent_map()
60 refcount_set(&em->refs, 1); in alloc_extent_map()
61 INIT_LIST_HEAD(&em->list); in alloc_extent_map()
62 return em; in alloc_extent_map()
[all …]
Dextent_map.h58 static inline int extent_map_in_tree(const struct extent_map *em) in extent_map_in_tree() argument
60 return !RB_EMPTY_NODE(&em->rb_node); in extent_map_in_tree()
63 static inline u64 extent_map_end(struct extent_map *em) in extent_map_end() argument
65 if (em->start + em->len < em->start) in extent_map_end()
67 return em->start + em->len; in extent_map_end()
70 static inline u64 extent_map_block_end(struct extent_map *em) in extent_map_block_end() argument
72 if (em->block_start + em->block_len < em->block_start) in extent_map_block_end()
74 return em->block_start + em->block_len; in extent_map_block_end()
81 struct extent_map *em, int modified);
82 void remove_extent_mapping(struct extent_map_tree *tree, struct extent_map *em);
[all …]
Dfile.c520 struct extent_map *em; in btrfs_drop_extent_cache() local
549 em = lookup_extent_mapping(em_tree, start, len); in btrfs_drop_extent_cache()
550 if (!em) { in btrfs_drop_extent_cache()
554 flags = em->flags; in btrfs_drop_extent_cache()
555 gen = em->generation; in btrfs_drop_extent_cache()
556 if (skip_pinned && test_bit(EXTENT_FLAG_PINNED, &em->flags)) { in btrfs_drop_extent_cache()
557 if (testend && em->start + em->len >= start + len) { in btrfs_drop_extent_cache()
558 free_extent_map(em); in btrfs_drop_extent_cache()
562 start = em->start + em->len; in btrfs_drop_extent_cache()
564 len = start + len - (em->start + em->len); in btrfs_drop_extent_cache()
[all …]
Dinode.c773 struct extent_map *em; in submit_compressed_extents() local
851 em = create_io_em(inode, async_extent->start, in submit_compressed_extents()
860 if (IS_ERR(em)) in submit_compressed_extents()
863 free_extent_map(em); in submit_compressed_extents()
936 struct extent_map *em; in get_extent_allocation_hint() local
940 em = search_extent_mapping(em_tree, start, num_bytes); in get_extent_allocation_hint()
941 if (em) { in get_extent_allocation_hint()
947 if (em->block_start >= EXTENT_MAP_LAST_BYTE) { in get_extent_allocation_hint()
948 free_extent_map(em); in get_extent_allocation_hint()
949 em = search_extent_mapping(em_tree, 0, 0); in get_extent_allocation_hint()
[all …]
Dvolumes.c1755 struct extent_map *em; in find_next_chunk() local
1763 em = rb_entry(n, struct extent_map, rb_node); in find_next_chunk()
1764 ret = em->start + em->len; in find_next_chunk()
2923 struct extent_map *em; in btrfs_get_chunk_map() local
2927 em = lookup_extent_mapping(em_tree, logical, length); in btrfs_get_chunk_map()
2930 if (!em) { in btrfs_get_chunk_map()
2936 if (em->start > logical || em->start + em->len < logical) { in btrfs_get_chunk_map()
2939 logical, length, em->start, em->start + em->len); in btrfs_get_chunk_map()
2940 free_extent_map(em); in btrfs_get_chunk_map()
2945 return em; in btrfs_get_chunk_map()
[all …]
Dextent_io.c2456 struct extent_map *em; in btrfs_get_io_failure_record() local
2489 em = lookup_extent_mapping(em_tree, start, failrec->len); in btrfs_get_io_failure_record()
2490 if (!em) { in btrfs_get_io_failure_record()
2496 if (em->start > start || em->start + em->len <= start) { in btrfs_get_io_failure_record()
2497 free_extent_map(em); in btrfs_get_io_failure_record()
2498 em = NULL; in btrfs_get_io_failure_record()
2501 if (!em) { in btrfs_get_io_failure_record()
2506 logical = start - em->start; in btrfs_get_io_failure_record()
2507 logical = em->block_start + logical; in btrfs_get_io_failure_record()
2508 if (test_bit(EXTENT_FLAG_COMPRESSED, &em->flags)) { in btrfs_get_io_failure_record()
[all …]
Dfile-item.c1048 struct extent_map *em) in btrfs_extent_item_to_extent_map() argument
1063 em->ram_bytes = btrfs_file_extent_ram_bytes(leaf, fi); in btrfs_extent_item_to_extent_map()
1066 em->start = extent_start; in btrfs_extent_item_to_extent_map()
1067 em->len = extent_end - extent_start; in btrfs_extent_item_to_extent_map()
1068 em->orig_start = extent_start - in btrfs_extent_item_to_extent_map()
1070 em->orig_block_len = btrfs_file_extent_disk_num_bytes(leaf, fi); in btrfs_extent_item_to_extent_map()
1073 em->block_start = EXTENT_MAP_HOLE; in btrfs_extent_item_to_extent_map()
1077 set_bit(EXTENT_FLAG_COMPRESSED, &em->flags); in btrfs_extent_item_to_extent_map()
1078 em->compress_type = compress_type; in btrfs_extent_item_to_extent_map()
1079 em->block_start = bytenr; in btrfs_extent_item_to_extent_map()
[all …]
Dblock-group.c897 u64 group_start, struct extent_map *em) in btrfs_remove_block_group() argument
1155 remove_extent_mapping(em_tree, em); in btrfs_remove_block_group()
1158 free_extent_map(em); in btrfs_remove_block_group()
1174 struct extent_map *em; in btrfs_start_trans_remove_block_group() local
1179 em = lookup_extent_mapping(em_tree, chunk_offset, 1); in btrfs_start_trans_remove_block_group()
1181 ASSERT(em && em->start == chunk_offset); in btrfs_start_trans_remove_block_group()
1202 map = em->map_lookup; in btrfs_start_trans_remove_block_group()
1204 free_extent_map(em); in btrfs_start_trans_remove_block_group()
1544 struct extent_map *em; in read_bg_from_eb() local
1556 em = lookup_extent_mapping(em_tree, key->objectid, key->offset); in read_bg_from_eb()
[all …]
Dcompression.c512 struct extent_map *em; in add_ra_bio_pages() local
561 em = lookup_extent_mapping(em_tree, last_offset, in add_ra_bio_pages()
565 if (!em || last_offset < em->start || in add_ra_bio_pages()
566 (last_offset + PAGE_SIZE > extent_map_end(em)) || in add_ra_bio_pages()
567 (em->block_start >> 9) != cb->orig_bio->bi_iter.bi_sector) { in add_ra_bio_pages()
568 free_extent_map(em); in add_ra_bio_pages()
574 free_extent_map(em); in add_ra_bio_pages()
633 struct extent_map *em; in btrfs_submit_compressed_read() local
643 em = lookup_extent_mapping(em_tree, in btrfs_submit_compressed_read()
647 if (!em) in btrfs_submit_compressed_read()
[all …]
/kernel/linux/linux-5.10/net/sched/
Dematch.c171 struct tcf_ematch *em, struct nlattr *nla, int idx) in tcf_em_validate() argument
202 em->data = ref; in tcf_em_validate()
212 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate()
214 if (em->ops == NULL) { in tcf_em_validate()
220 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate()
221 if (em->ops) { in tcf_em_validate()
226 module_put(em->ops->owner); in tcf_em_validate()
227 em->ops = NULL; in tcf_em_validate()
237 if (em->ops->datalen && data_len < em->ops->datalen) in tcf_em_validate()
240 if (em->ops->change) { in tcf_em_validate()
[all …]
Dem_ipset.c20 struct tcf_ematch *em) in em_ipset_change() argument
32 em->datalen = sizeof(*set); in em_ipset_change()
33 em->data = (unsigned long)kmemdup(data, em->datalen, GFP_KERNEL); in em_ipset_change()
34 if (em->data) in em_ipset_change()
41 static void em_ipset_destroy(struct tcf_ematch *em) in em_ipset_destroy() argument
43 const struct xt_set_info *set = (const void *) em->data; in em_ipset_destroy()
45 ip_set_nfnl_put(em->net, set->index); in em_ipset_destroy()
46 kfree((void *) em->data); in em_ipset_destroy()
50 static int em_ipset_match(struct sk_buff *skb, struct tcf_ematch *em, in em_ipset_match() argument
55 const struct xt_set_info *set = (const void *) em->data; in em_ipset_match()
[all …]
Dem_nbyte.c23 struct tcf_ematch *em) in em_nbyte_change() argument
31 em->datalen = sizeof(*nbyte) + nbyte->len; in em_nbyte_change()
32 em->data = (unsigned long)kmemdup(data, em->datalen, GFP_KERNEL); in em_nbyte_change()
33 if (em->data == 0UL) in em_nbyte_change()
39 static int em_nbyte_match(struct sk_buff *skb, struct tcf_ematch *em, in em_nbyte_match() argument
42 struct nbyte_data *nbyte = (struct nbyte_data *) em->data; in em_nbyte_match()
Dem_ipt.c127 struct tcf_ematch *em) in em_ipt_change() argument
175 em->datalen = sizeof(*im) + mdata_len; in em_ipt_change()
176 em->data = (unsigned long)im; in em_ipt_change()
185 static void em_ipt_destroy(struct tcf_ematch *em) in em_ipt_destroy() argument
187 struct em_ipt_match *im = (void *)em->data; in em_ipt_destroy()
194 .net = em->net, in em_ipt_destroy()
205 static int em_ipt_match(struct sk_buff *skb, struct tcf_ematch *em, in em_ipt_match() argument
208 const struct em_ipt_match *im = (const void *)em->data; in em_ipt_match()
235 indev = dev_get_by_index_rcu(em->net, skb->skb_iif); in em_ipt_match()
238 indev ?: skb->dev, skb->dev, NULL, em->net, NULL); in em_ipt_match()
[all …]
Dem_u32.c17 static int em_u32_match(struct sk_buff *skb, struct tcf_ematch *em, in em_u32_match() argument
20 struct tc_u32_key *key = (struct tc_u32_key *) em->data; in em_u32_match()
Dem_cmp.c21 static int em_cmp_match(struct sk_buff *skb, struct tcf_ematch *em, in em_cmp_match() argument
24 struct tcf_em_cmp *cmp = (struct tcf_em_cmp *) em->data; in em_cmp_match()
/kernel/linux/linux-5.10/drivers/thermal/
Dcpufreq_cooling.c76 struct em_perf_domain *em; member
101 if (freq > cpufreq_cdev->em->table[i].frequency) in get_level()
114 if (freq > cpufreq_cdev->em->table[i].frequency) in cpu_freq_to_power()
118 return cpufreq_cdev->em->table[i + 1].power; in cpu_freq_to_power()
127 if (power >= cpufreq_cdev->em->table[i].power) in cpu_power_to_freq()
131 return cpufreq_cdev->em->table[i].frequency; in cpu_power_to_freq()
278 freq = cpufreq_cdev->em->table[idx].frequency; in cpufreq_state2power()
322 struct em_perf_domain *em) { in em_is_sane() argument
326 if (!em) in em_is_sane()
330 if (!cpumask_equal(policy->related_cpus, em_span_cpus(em))) { in em_is_sane()
[all …]
/kernel/linux/linux-5.10/drivers/block/aoe/
Daoechr.c128 struct ErrMsg *em; in aoechr_error() local
136 em = emsgs + emsgs_tail_idx; in aoechr_error()
137 if ((em->flags & EMFL_VALID)) { in aoechr_error()
148 em->msg = mp; in aoechr_error()
149 em->flags |= EMFL_VALID; in aoechr_error()
150 em->len = n; in aoechr_error()
217 struct ErrMsg *em; in aoechr_read() local
228 em = emsgs + emsgs_head_idx; in aoechr_read()
229 if ((em->flags & EMFL_VALID) != 0) in aoechr_read()
250 if (em->len > cnt) { in aoechr_read()
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Demev2.dtsi159 compatible = "renesas,em-sti";
167 compatible = "renesas,em-uart";
175 compatible = "renesas,em-uart";
183 compatible = "renesas,em-uart";
191 compatible = "renesas,em-uart";
204 compatible = "renesas,em-gio";
217 compatible = "renesas,em-gio";
230 compatible = "renesas,em-gio";
243 compatible = "renesas,em-gio";
256 compatible = "renesas,em-gio";
/kernel/linux/linux-5.10/net/bridge/netfilter/
Debt_among.c206 const struct ebt_entry_match *em = in ebt_among_mt_check() local
212 if (expected_length > em->match_size) in ebt_among_mt_check()
215 if (wormhash_offset_invalid(info->wh_dst_ofs, em->match_size) || in ebt_among_mt_check()
216 wormhash_offset_invalid(info->wh_src_ofs, em->match_size)) in ebt_among_mt_check()
224 if (expected_length > em->match_size) in ebt_among_mt_check()
241 if (em->match_size != EBT_ALIGN(expected_length)) { in ebt_among_mt_check()
243 em->match_size, expected_length, in ebt_among_mt_check()
/kernel/linux/linux-5.10/fs/ocfs2/
Dextent_map.c50 static void __ocfs2_extent_map_lookup(struct ocfs2_extent_map *em, in __ocfs2_extent_map_lookup() argument
59 list_for_each_entry(emi, &em->em_list, ei_list) { in __ocfs2_extent_map_lookup()
63 list_move(&emi->ei_list, &em->em_list); in __ocfs2_extent_map_lookup()
106 struct ocfs2_extent_map *em = &oi->ip_extent_map; in ocfs2_extent_map_trunc() local
111 list_for_each_entry_safe(emi, n, &em->em_list, ei_list) { in ocfs2_extent_map_trunc()
115 BUG_ON(em->em_num_items == 0); in ocfs2_extent_map_trunc()
116 em->em_num_items--; in ocfs2_extent_map_trunc()
219 struct ocfs2_extent_map *em = &oi->ip_extent_map; in ocfs2_extent_map_insert_rec() local
232 list_for_each_entry(emi, &em->em_list, ei_list) { in ocfs2_extent_map_insert_rec()
234 list_move(&emi->ei_list, &em->em_list); in ocfs2_extent_map_insert_rec()
[all …]
/kernel/linux/linux-5.10/include/net/
Dpkt_cls.h368 static inline int tcf_em_is_container(struct tcf_ematch *em) in tcf_em_is_container() argument
370 return !em->ops; in tcf_em_is_container()
373 static inline int tcf_em_is_simple(struct tcf_ematch *em) in tcf_em_is_simple() argument
375 return em->flags & TCF_EM_SIMPLE; in tcf_em_is_simple()
378 static inline int tcf_em_is_inverted(struct tcf_ematch *em) in tcf_em_is_inverted() argument
380 return em->flags & TCF_EM_INVERT; in tcf_em_is_inverted()
383 static inline int tcf_em_last_match(struct tcf_ematch *em) in tcf_em_last_match() argument
385 return (em->flags & TCF_EM_REL_MASK) == TCF_EM_REL_END; in tcf_em_last_match()
388 static inline int tcf_em_early_end(struct tcf_ematch *em, int result) in tcf_em_early_end() argument
390 if (tcf_em_last_match(em)) in tcf_em_early_end()
[all …]
/kernel/linux/linux-5.10/sound/soc/pxa/
DMakefile25 snd-soc-em-x270-objs := em-x270.o
43 obj-$(CONFIG_SND_PXA2XX_SOC_EM_X270) += snd-soc-em-x270.o
/kernel/linux/linux-5.10/include/linux/
Denergy_model.h49 #define em_span_cpus(em) (to_cpumask((em)->cpus)) argument

123