Home
last modified time | relevance | path

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

123

/linux/fs/btrfs/tests/
H A Dinode-tests.c223 struct extent_map *em = NULL; in test_btrfs_get_extent() local
261 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, sectorsize); in test_btrfs_get_extent()
262 if (IS_ERR(em)) { in test_btrfs_get_extent()
263 em = NULL; in test_btrfs_get_extent()
267 if (em->disk_bytenr != EXTENT_MAP_HOLE) { in test_btrfs_get_extent()
268 test_err("expected a hole, got %llu", em->disk_bytenr); in test_btrfs_get_extent()
271 free_extent_map(em); in test_btrfs_get_extent()
281 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, (u64)-1); in test_btrfs_get_extent()
282 if (IS_ERR(em)) { in test_btrfs_get_extent()
286 if (em->disk_bytenr != EXTENT_MAP_INLINE) { in test_btrfs_get_extent()
[all …]
H A Dextent-map-tests.c17 struct extent_map *em; in free_extent_map_tree() local
24 em = rb_entry(node, struct extent_map, rb_node); in free_extent_map_tree()
25 remove_extent_mapping(inode, em); in free_extent_map_tree()
28 if (refcount_read(&em->refs) != 1) { in free_extent_map_tree()
32 em->start, em->len, em->disk_bytenr, in free_extent_map_tree()
33 em->disk_num_bytes, em->offset, in free_extent_map_tree()
34 refcount_read(&em->refs)); in free_extent_map_tree()
36 refcount_set(&em->refs, 1); in free_extent_map_tree()
39 free_extent_map(em); in free_extent_map_tree()
65 struct extent_map *em; in test_case_1() local
[all …]
/linux/fs/btrfs/
H A Dextent_map.c47 struct extent_map *em; in alloc_extent_map() local
48 em = kmem_cache_zalloc(extent_map_cache, GFP_NOFS); in alloc_extent_map()
49 if (!em) in alloc_extent_map()
51 RB_CLEAR_NODE(&em->rb_node); in alloc_extent_map()
52 refcount_set(&em->refs, 1); in alloc_extent_map()
53 INIT_LIST_HEAD(&em->list); in alloc_extent_map()
54 return em; in alloc_extent_map()
61 void free_extent_map(struct extent_map *em) in free_extent_map() argument
63 if (!em) in free_extent_map()
65 if (refcount_dec_and_test(&em->refs)) { in free_extent_map()
[all …]
H A Ddirect-io.c144 struct extent_map *em = NULL; in btrfs_create_dio_extent() local
148 em = btrfs_create_io_em(inode, start, file_extent, type); in btrfs_create_dio_extent()
149 if (IS_ERR(em)) in btrfs_create_dio_extent()
157 if (em) { in btrfs_create_dio_extent()
158 free_extent_map(em); in btrfs_create_dio_extent()
162 em = ERR_CAST(ordered); in btrfs_create_dio_extent()
169 return em; in btrfs_create_dio_extent()
179 struct extent_map *em; in btrfs_new_extent_direct() local
203 em = btrfs_create_dio_extent(inode, dio_data, start, &file_extent, in btrfs_new_extent_direct()
206 if (IS_ERR(em)) in btrfs_new_extent_direct()
[all …]
H A Ddefrag.c622 struct extent_map *em; in defrag_get_extent() local
627 em = alloc_extent_map(); in defrag_get_extent()
628 if (!em) { in defrag_get_extent()
700 em->start = start; in defrag_get_extent()
701 em->disk_bytenr = EXTENT_MAP_HOLE; in defrag_get_extent()
702 em->disk_num_bytes = 0; in defrag_get_extent()
703 em->ram_bytes = 0; in defrag_get_extent()
704 em->offset = 0; in defrag_get_extent()
705 em->len = key.offset - start; in defrag_get_extent()
723 btrfs_extent_item_to_extent_map(inode, &path, fi, em); in defrag_get_extent()
[all …]
H A Dinode.c1161 struct extent_map *em; in submit_one_async_extent() local
1212 em = btrfs_create_io_em(inode, start, &file_extent, BTRFS_ORDERED_COMPRESSED); in submit_one_async_extent()
1213 if (IS_ERR(em)) { in submit_one_async_extent()
1214 ret = PTR_ERR(em); in submit_one_async_extent()
1217 free_extent_map(em); in submit_one_async_extent()
1268 struct extent_map *em; in btrfs_get_extent_allocation_hint() local
1272 em = search_extent_mapping(em_tree, start, num_bytes); in btrfs_get_extent_allocation_hint()
1273 if (em) { in btrfs_get_extent_allocation_hint()
1279 if (em->disk_bytenr >= EXTENT_MAP_LAST_BYTE) { in btrfs_get_extent_allocation_hint()
1280 free_extent_map(em); in btrfs_get_extent_allocation_hint()
[all …]
H A Dfile.c2093 struct extent_map *em; in find_first_non_hole() local
2096 em = btrfs_get_extent(inode, NULL, in find_first_non_hole()
2099 if (IS_ERR(em)) in find_first_non_hole()
2100 return PTR_ERR(em); in find_first_non_hole()
2103 if (em->disk_bytenr == EXTENT_MAP_HOLE) { in find_first_non_hole()
2105 *len = em->start + em->len > *start + *len ? in find_first_non_hole()
2106 0 : *start + *len - em->start - em->len; in find_first_non_hole()
2107 *start = em->start + em->len; in find_first_non_hole()
2109 free_extent_map(em); in find_first_non_hole()
2752 struct extent_map *em; in btrfs_zero_range_check_range_boundary() local
[all …]
H A Dcompression.c424 struct extent_map *em; in add_ra_bio_pages() local
504 em = lookup_extent_mapping(em_tree, cur, page_end + 1 - cur); in add_ra_bio_pages()
512 if (!em || cur < em->start || in add_ra_bio_pages()
513 (cur + fs_info->sectorsize > extent_map_end(em)) || in add_ra_bio_pages()
514 (extent_map_block_start(em) >> SECTOR_SHIFT) != in add_ra_bio_pages()
516 free_extent_map(em); in add_ra_bio_pages()
522 add_size = min(em->start + em->len, page_end + 1) - cur; in add_ra_bio_pages()
523 free_extent_map(em); in add_ra_bio_pages()
576 struct extent_map *em; in btrfs_submit_compressed_read() local
584 em = lookup_extent_mapping(em_tree, file_offset, fs_info->sectorsize); in btrfs_submit_compressed_read()
[all …]
H A Dextent_io.c908 struct extent_map *em; in __get_extent_map() local
914 em = *em_cached; in __get_extent_map()
915 if (extent_map_in_tree(em) && start >= em->start && in __get_extent_map()
916 start < extent_map_end(em)) { in __get_extent_map()
917 refcount_inc(&em->refs); in __get_extent_map()
918 return em; in __get_extent_map()
921 free_extent_map(em); in __get_extent_map()
926 em = btrfs_get_extent(BTRFS_I(inode), folio, start, len); in __get_extent_map()
927 if (!IS_ERR(em)) { in __get_extent_map()
929 refcount_inc(&em->refs); in __get_extent_map()
[all …]
H A Dfile-item.c1276 struct extent_map *em) in btrfs_extent_item_to_extent_map() argument
1289 em->ram_bytes = btrfs_file_extent_ram_bytes(leaf, fi); in btrfs_extent_item_to_extent_map()
1290 em->generation = btrfs_file_extent_generation(leaf, fi); in btrfs_extent_item_to_extent_map()
1295 em->start = extent_start; in btrfs_extent_item_to_extent_map()
1296 em->len = btrfs_file_extent_end(path) - extent_start; in btrfs_extent_item_to_extent_map()
1298 em->disk_bytenr = EXTENT_MAP_HOLE; in btrfs_extent_item_to_extent_map()
1299 em->disk_num_bytes = 0; in btrfs_extent_item_to_extent_map()
1300 em->offset = 0; in btrfs_extent_item_to_extent_map()
1303 em->disk_bytenr = disk_bytenr; in btrfs_extent_item_to_extent_map()
1304 em->disk_num_bytes = btrfs_file_extent_disk_num_bytes(leaf, fi); in btrfs_extent_item_to_extent_map()
[all …]
/linux/net/sched/
H A 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 …]
H A 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 …]
H A 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()
H A 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 …]
H A 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()
/linux/drivers/thermal/
H A Dcpufreq_cooling.c74 struct em_perf_domain *em; member
98 table = em_perf_state_from_pd(cpufreq_cdev->em); in get_level()
116 table = em_perf_state_from_pd(cpufreq_cdev->em); in cpu_freq_to_power()
138 table = em_perf_state_from_pd(cpufreq_cdev->em); in cpu_power_to_freq()
292 table = em_perf_state_from_pd(cpufreq_cdev->em); in cpufreq_state2power()
335 struct em_perf_domain *em) { in em_is_sane() argument
339 if (!em || em_is_artificial(em)) in em_is_sane()
343 if (!cpumask_equal(policy->related_cpus, em_span_cpus(em))) { in em_is_sane()
345 cpumask_pr_args(em_span_cpus(em)), in em_is_sane()
351 if (em_pd_nr_perf_states(em) != nr_levels) { in em_is_sane()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_panic_qr.rs491 let mut em = EncodedMsg { in new() localVariable
501 em.encode(segments); in new()
502 Some(em) in new()
595 em: self, in iter()
603 em: &'a EncodedMsg<'a>, field
613 let em = self.em; in next() localVariable
614 let blocks = em.g1_blocks + em.g2_blocks; in next()
615 let g1_end = em.g1_blocks * em.g1_blk_size; in next()
616 let g2_end = g1_end + em.g2_blocks * em.g2_blk_size; in next()
617 let ec_end = g2_end + em.ec_size * blocks; in next()
[all …]
/linux/Documentation/sphinx-static/
H A Dcustom.css17 div.sphinxsidebarwrapper { padding: 1em 0.4em; }
37 dl.function, dl.struct, dl.enum { margin-top: 2em; background-color: #ecf0f3; }
39 dl.function dt { margin-left: 10em; text-indent: -10em; }
41 div.kernelindent { margin-left: 2em; margin-right: 4em; }
47 text-indent: -1em;
48 margin-left: 1em; }
51 text-indent: -1em;
52 margin-left: 1em;
100 margin-bottom: 1em;
101 padding: .5em;
[all …]
/linux/drivers/block/aoe/
H A Daoechr.c138 struct ErrMsg *em; in aoechr_error() local
146 em = emsgs + emsgs_tail_idx; in aoechr_error()
147 if ((em->flags & EMFL_VALID)) { in aoechr_error()
156 em->msg = mp; in aoechr_error()
157 em->flags |= EMFL_VALID; in aoechr_error()
158 em->len = n; in aoechr_error()
225 struct ErrMsg *em; in aoechr_read() local
236 em = emsgs + emsgs_head_idx; in aoechr_read()
237 if ((em->flags & EMFL_VALID) != 0) in aoechr_read()
258 if (em->len > cnt) { in aoechr_read()
[all …]
/linux/Documentation/sphinx/
H A Dkerneldoc-preamble.sty22 % Width of page number (\@pnumwidth): 1.55em -> 2.7em
23 % Width of chapter number: 1.5em -> 2.4em
24 % Indent of section number: 1.5em -> 2.4em
25 % Width of section number: 2.6em -> 3.2em
26 % Indent of subsection number: 4.1em -> 5.6em
27 % Width of subsection number: 3.5em -> 4.3em
34 \renewcommand*\@pnumwidth{2.7em}
39 \vskip 1.0em \@plus\p@
40 \setlength\@tempdima{2.4em}%
54 \renewcommand*\l@section{\@dottedtocline{1}{2.4em}{3.2em}}
[all …]
/linux/arch/arm/boot/dts/renesas/
H A 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";
/linux/net/bridge/netfilter/
H A 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()
/linux/fs/ocfs2/
H A Dextent_map.c48 static void __ocfs2_extent_map_lookup(struct ocfs2_extent_map *em, in __ocfs2_extent_map_lookup() argument
57 list_for_each_entry(emi, &em->em_list, ei_list) { in __ocfs2_extent_map_lookup()
61 list_move(&emi->ei_list, &em->em_list); in __ocfs2_extent_map_lookup()
104 struct ocfs2_extent_map *em = &oi->ip_extent_map; in ocfs2_extent_map_trunc() local
109 list_for_each_entry_safe(emi, n, &em->em_list, ei_list) { in ocfs2_extent_map_trunc()
113 BUG_ON(em->em_num_items == 0); in ocfs2_extent_map_trunc()
114 em->em_num_items--; in ocfs2_extent_map_trunc()
217 struct ocfs2_extent_map *em = &oi->ip_extent_map; in ocfs2_extent_map_insert_rec() local
230 list_for_each_entry(emi, &em->em_list, ei_list) { in ocfs2_extent_map_insert_rec()
232 list_move(&emi->ei_list, &em->em_list); in ocfs2_extent_map_insert_rec()
[all …]
/linux/include/net/
H A Dpkt_cls.h413 static inline int tcf_em_is_container(struct tcf_ematch *em) in tcf_em_is_container() argument
415 return !em->ops; in tcf_em_is_container()
418 static inline int tcf_em_is_simple(struct tcf_ematch *em) in tcf_em_is_simple() argument
420 return em->flags & TCF_EM_SIMPLE; in tcf_em_is_simple()
423 static inline int tcf_em_is_inverted(struct tcf_ematch *em) in tcf_em_is_inverted() argument
425 return em->flags & TCF_EM_INVERT; in tcf_em_is_inverted()
428 static inline int tcf_em_last_match(struct tcf_ematch *em) in tcf_em_last_match() argument
430 return (em->flags & TCF_EM_REL_MASK) == TCF_EM_REL_END; in tcf_em_last_match()
433 static inline int tcf_em_early_end(struct tcf_ematch *em, int result) in tcf_em_early_end() argument
435 if (tcf_em_last_match(em)) in tcf_em_early_end()
[all …]
/linux/drivers/powercap/
H A Ddtpm_cpu.c122 struct em_perf_domain *em = em_cpu_get(dtpm_cpu->cpu); in update_pd_power_uw() local
126 nr_cpus = cpumask_weight_and(cpu_online_mask, to_cpumask(em->cpus)); in update_pd_power_uw()
129 table = em_perf_state_from_pd(em); in update_pd_power_uw()
134 dtpm->power_max = table[em->nr_perf_states - 1].power; in update_pd_power_uw()

123