Lines Matching full:rproc

18 struct rproc;
21 struct rproc *rproc; member
33 * the resource can be cached by rproc.
42 static inline bool rproc_has_feature(struct rproc *rproc, unsigned int feature) in rproc_has_feature() argument
44 return test_bit(feature, rproc->features); in rproc_has_feature()
47 static inline int rproc_set_feature(struct rproc *rproc, unsigned int feature) in rproc_set_feature() argument
52 set_bit(feature, rproc->features); in rproc_set_feature()
63 irqreturn_t rproc_vq_interrupt(struct rproc *rproc, int vq_id);
67 struct dentry *rproc_create_trace_file(const char *name, struct rproc *rproc,
69 void rproc_delete_debug_dir(struct rproc *rproc);
70 void rproc_create_debug_dir(struct rproc *rproc);
80 void rproc_coredump_cleanup(struct rproc *rproc);
81 void rproc_coredump(struct rproc *rproc);
86 int rproc_char_device_add(struct rproc *rproc);
87 void rproc_char_device_remove(struct rproc *rproc);
101 static inline int rproc_char_device_add(struct rproc *rproc) in rproc_char_device_add() argument
106 static inline void rproc_char_device_remove(struct rproc *rproc) in rproc_char_device_remove() argument
116 int rproc_trigger_recovery(struct rproc *rproc);
118 int rproc_elf_sanity_check(struct rproc *rproc, const struct firmware *fw);
119 u64 rproc_elf_get_boot_addr(struct rproc *rproc, const struct firmware *fw);
120 int rproc_elf_load_segments(struct rproc *rproc, const struct firmware *fw);
121 int rproc_elf_load_rsc_table(struct rproc *rproc, const struct firmware *fw);
122 struct resource_table *rproc_elf_find_loaded_rsc_table(struct rproc *rproc,
125 rproc_find_carveout_by_name(struct rproc *rproc, const char *name, ...);
126 void rproc_add_rvdev(struct rproc *rproc, struct rproc_vdev *rvdev);
129 static inline int rproc_prepare_device(struct rproc *rproc) in rproc_prepare_device() argument
131 if (rproc->ops->prepare) in rproc_prepare_device()
132 return rproc->ops->prepare(rproc); in rproc_prepare_device()
137 static inline int rproc_unprepare_device(struct rproc *rproc) in rproc_unprepare_device() argument
139 if (rproc->ops->unprepare) in rproc_unprepare_device()
140 return rproc->ops->unprepare(rproc); in rproc_unprepare_device()
145 static inline int rproc_attach_device(struct rproc *rproc) in rproc_attach_device() argument
147 if (rproc->ops->attach) in rproc_attach_device()
148 return rproc->ops->attach(rproc); in rproc_attach_device()
154 int rproc_fw_sanity_check(struct rproc *rproc, const struct firmware *fw) in rproc_fw_sanity_check() argument
156 if (rproc->ops->sanity_check) in rproc_fw_sanity_check()
157 return rproc->ops->sanity_check(rproc, fw); in rproc_fw_sanity_check()
163 u64 rproc_get_boot_addr(struct rproc *rproc, const struct firmware *fw) in rproc_get_boot_addr() argument
165 if (rproc->ops->get_boot_addr) in rproc_get_boot_addr()
166 return rproc->ops->get_boot_addr(rproc, fw); in rproc_get_boot_addr()
172 int rproc_load_segments(struct rproc *rproc, const struct firmware *fw) in rproc_load_segments() argument
174 if (rproc->ops->load) in rproc_load_segments()
175 return rproc->ops->load(rproc, fw); in rproc_load_segments()
180 static inline int rproc_parse_fw(struct rproc *rproc, const struct firmware *fw) in rproc_parse_fw() argument
182 if (rproc->ops->parse_fw) in rproc_parse_fw()
183 return rproc->ops->parse_fw(rproc, fw); in rproc_parse_fw()
189 int rproc_handle_rsc(struct rproc *rproc, u32 rsc_type, void *rsc, int offset, in rproc_handle_rsc() argument
192 if (rproc->ops->handle_rsc) in rproc_handle_rsc()
193 return rproc->ops->handle_rsc(rproc, rsc_type, rsc, offset, in rproc_handle_rsc()
200 struct resource_table *rproc_find_loaded_rsc_table(struct rproc *rproc, in rproc_find_loaded_rsc_table() argument
203 if (rproc->ops->find_loaded_rsc_table) in rproc_find_loaded_rsc_table()
204 return rproc->ops->find_loaded_rsc_table(rproc, fw); in rproc_find_loaded_rsc_table()
210 struct resource_table *rproc_get_loaded_rsc_table(struct rproc *rproc, in rproc_get_loaded_rsc_table() argument
213 if (rproc->ops->get_loaded_rsc_table) in rproc_get_loaded_rsc_table()
214 return rproc->ops->get_loaded_rsc_table(rproc, size); in rproc_get_loaded_rsc_table()