Lines Matching refs:msec
65 static inline void pt_msec_init(struct pt_mapped_section *msec, in pt_msec_init() argument
70 if (!msec) in pt_msec_init()
73 msec->section = section; in pt_msec_init()
74 msec->vaddr = vaddr; in pt_msec_init()
75 msec->offset = offset; in pt_msec_init()
76 msec->size = size; in pt_msec_init()
79 msec->asid = *asid; in pt_msec_init()
81 pt_asid_init(&msec->asid); in pt_msec_init()
85 static inline void pt_msec_fini(struct pt_mapped_section *msec) in pt_msec_fini() argument
87 (void) msec; in pt_msec_fini()
93 static inline uint64_t pt_msec_begin(const struct pt_mapped_section *msec) in pt_msec_begin() argument
95 if (!msec) in pt_msec_begin()
98 return msec->vaddr; in pt_msec_begin()
102 static inline uint64_t pt_msec_end(const struct pt_mapped_section *msec) in pt_msec_end() argument
104 if (!msec) in pt_msec_end()
107 return msec->vaddr + msec->size; in pt_msec_end()
111 static inline uint64_t pt_msec_offset(const struct pt_mapped_section *msec) in pt_msec_offset() argument
113 if (!msec) in pt_msec_offset()
116 return msec->offset; in pt_msec_offset()
120 static inline uint64_t pt_msec_size(const struct pt_mapped_section *msec) in pt_msec_size() argument
122 if (!msec) in pt_msec_size()
125 return msec->size; in pt_msec_size()
130 pt_msec_section(const struct pt_mapped_section *msec) in pt_msec_section() argument
132 return msec->section; in pt_msec_section()
137 pt_msec_asid(const struct pt_mapped_section *msec) in pt_msec_asid() argument
139 if (!msec) in pt_msec_asid()
142 return &msec->asid; in pt_msec_asid()
146 static inline uint64_t pt_msec_map(const struct pt_mapped_section *msec, in pt_msec_map() argument
149 return (offset - msec->offset) + msec->vaddr; in pt_msec_map()
153 static inline uint64_t pt_msec_unmap(const struct pt_mapped_section *msec, in pt_msec_unmap() argument
156 return (vaddr - msec->vaddr) + msec->offset; in pt_msec_unmap()
167 static inline int pt_msec_read(const struct pt_mapped_section *msec, in pt_msec_read() argument
174 if (!msec) in pt_msec_read()
182 mbegin = pt_msec_begin(msec); in pt_msec_read()
183 mend = pt_msec_end(msec); in pt_msec_read()
193 section = pt_msec_section(msec); in pt_msec_read()
194 offset = pt_msec_unmap(msec, begin); in pt_msec_read()