Home
last modified time | relevance | path

Searched refs:pt_state (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/iommu/generic_pt/
H A Dpt_common.h40 static inline void pt_attr_from_entry(const struct pt_state *pts,
50 static inline bool pt_can_have_leaf(const struct pt_state *pts);
58 static inline bool pt_can_have_table(const struct pt_state *pts) in pt_can_have_table()
73 static inline void pt_clear_entries(struct pt_state *pts,
84 static inline bool pt_entry_make_write_dirty(struct pt_state *pts);
99 static inline void pt_entry_make_write_clean(struct pt_state *pts);
109 static inline bool pt_entry_is_write_dirty(const struct pt_state *pts);
124 static inline unsigned int pt_entry_num_contig_lg2(const struct pt_state *pts);
138 static inline pt_oaddr_t pt_entry_oa(const struct pt_state *pts);
147 static inline unsigned int pt_entry_oa_lg2sz(const struct pt_state *pts) in pt_entry_oa_lg2sz()
[all …]
H A Dpt_fmt_defaults.h23 static inline unsigned int pt_table_item_lg2sz(const struct pt_state *pts) in pt_table_item_lg2sz()
47 static inline unsigned int pt_entry_num_contig_lg2(const struct pt_state *pts) in pt_entry_num_contig_lg2()
55 static inline unsigned short pt_contig_count_lg2(const struct pt_state *pts) in pt_contig_count_lg2()
63 static inline bool pt_entry_is_write_dirty(const struct pt_state *pts) in pt_entry_is_write_dirty()
68 static inline void pt_entry_make_write_clean(struct pt_state *pts) in pt_entry_make_write_clean()
87 static inline bool pt_entry_make_write_dirty(struct pt_state *pts) in pt_entry_make_write_dirty()
106 static inline pt_oaddr_t pt_item_oa(const struct pt_state *pts) in pt_item_oa()
115 static inline pt_oaddr_t pt_entry_oa(const struct pt_state *pts) in pt_entry_oa()
148 static inline unsigned short pt_contig_count_lg2(const struct pt_state *pts);
151 static inline pt_vaddr_t pt_possible_sizes(const struct pt_state *pts) in pt_possible_sizes()
[all …]
H A Diommu_pt.h24 static void flush_writes_range(const struct pt_state *pts, in flush_writes_range()
34 static void flush_writes_item(const struct pt_state *pts) in flush_writes_item()
131 static inline unsigned int compute_best_pgsize(struct pt_state *pts, in compute_best_pgsize()
153 struct pt_state pts = pt_init(range, level, table); in __do_iova_to_phys()
207 static void record_dirty(struct pt_state *pts, in record_dirty()
245 struct pt_state pts = pt_init(range, level, table); in __read_and_clear_dirty()
311 struct pt_state pts = pt_init(range, level, table); in __set_dirty()
352 struct pt_state pts = pt_init(range, level, table); in __collect_tables()
415 static inline struct pt_table_p *table_alloc(const struct pt_state *parent_pts, in table_alloc()
418 struct pt_state child_pts = in table_alloc()
[all …]
H A Dpt_defs.h146 struct pt_state { struct
166 static inline bool pt_table_install64(struct pt_state *pts, u64 table_entry) in pt_table_install64() argument
185 static inline bool pt_table_install32(struct pt_state *pts, u32 table_entry) in pt_table_install32()
215 static __always_inline bool pts_feature(const struct pt_state *pts, in pts_feature()
328 static inline bool pt_check_install_leaf_args(struct pt_state *pts,
H A Dkunit_iommu_pt.h20 struct pt_state pts = pt_init(range, level, table); in __count_valids()
/linux/drivers/iommu/generic_pt/fmt/
H A Damdv1.h70 static inline pt_oaddr_t amdv1pt_table_pa(const struct pt_state *pts) in amdv1pt_table_pa()
81 static inline pt_oaddr_t amdv1pt_entry_oa(const struct pt_state *pts) in amdv1pt_entry_oa()
101 static inline bool amdv1pt_can_have_leaf(const struct pt_state *pts) in amdv1pt_can_have_leaf()
112 static inline unsigned int pt_table_item_lg2sz(const struct pt_state *pts);
115 amdv1pt_entry_num_contig_lg2(const struct pt_state *pts) in amdv1pt_entry_num_contig_lg2()
144 static inline unsigned int amdv1pt_num_items_lg2(const struct pt_state *pts) in amdv1pt_num_items_lg2()
156 static inline pt_vaddr_t amdv1pt_possible_sizes(const struct pt_state *pts) in amdv1pt_possible_sizes()
176 static inline enum pt_entry_type amdv1pt_load_entry_raw(struct pt_state *pts) in amdv1pt_load_entry_raw()
195 amdv1pt_install_leaf_entry(struct pt_state *pts, pt_oaddr_t oa, in amdv1pt_install_leaf_entry()
237 static inline bool amdv1pt_install_table(struct pt_state *pts, in amdv1pt_install_table()
[all …]
H A Dvtdss.h62 static inline pt_oaddr_t vtdss_pt_table_pa(const struct pt_state *pts) in vtdss_pt_table_pa()
69 static inline pt_oaddr_t vtdss_pt_entry_oa(const struct pt_state *pts) in vtdss_pt_entry_oa()
76 static inline bool vtdss_pt_can_have_leaf(const struct pt_state *pts) in vtdss_pt_can_have_leaf()
82 static inline unsigned int vtdss_pt_num_items_lg2(const struct pt_state *pts) in vtdss_pt_num_items_lg2()
88 static inline enum pt_entry_type vtdss_pt_load_entry_raw(struct pt_state *pts) in vtdss_pt_load_entry_raw()
104 vtdss_pt_install_leaf_entry(struct pt_state *pts, pt_oaddr_t oa, in vtdss_pt_install_leaf_entry()
124 static inline bool vtdss_pt_install_table(struct pt_state *pts, in vtdss_pt_install_table()
136 static inline void vtdss_pt_attr_from_entry(const struct pt_state *pts, in vtdss_pt_attr_from_entry()
144 static inline bool vtdss_pt_entry_is_write_dirty(const struct pt_state *pts) in vtdss_pt_entry_is_write_dirty()
152 static inline void vtdss_pt_entry_make_write_clean(struct pt_state *pts) in vtdss_pt_entry_make_write_clean()
[all …]
/linux/Documentation/driver-api/
H A Dgeneric_pt.rst85 static inline pt_oaddr_t amdv1pt_entry_oa(const struct pt_state *pts)