• Home
  • Raw
  • Download

Lines Matching refs:hw

36 	struct hw *hw;  in src_set_state()  local
38 hw = src->rsc.hw; in src_set_state()
39 hw->src_set_state(src->rsc.ctrl_blk, state); in src_set_state()
46 struct hw *hw; in src_set_bm() local
48 hw = src->rsc.hw; in src_set_bm()
49 hw->src_set_bm(src->rsc.ctrl_blk, bm); in src_set_bm()
56 struct hw *hw; in src_set_sf() local
58 hw = src->rsc.hw; in src_set_sf()
59 hw->src_set_sf(src->rsc.ctrl_blk, sf); in src_set_sf()
66 struct hw *hw; in src_set_pm() local
68 hw = src->rsc.hw; in src_set_pm()
69 hw->src_set_pm(src->rsc.ctrl_blk, pm); in src_set_pm()
76 struct hw *hw; in src_set_rom() local
78 hw = src->rsc.hw; in src_set_rom()
79 hw->src_set_rom(src->rsc.ctrl_blk, rom); in src_set_rom()
86 struct hw *hw; in src_set_vo() local
88 hw = src->rsc.hw; in src_set_vo()
89 hw->src_set_vo(src->rsc.ctrl_blk, vo); in src_set_vo()
96 struct hw *hw; in src_set_st() local
98 hw = src->rsc.hw; in src_set_st()
99 hw->src_set_st(src->rsc.ctrl_blk, st); in src_set_st()
106 struct hw *hw; in src_set_bp() local
108 hw = src->rsc.hw; in src_set_bp()
109 hw->src_set_bp(src->rsc.ctrl_blk, bp); in src_set_bp()
116 struct hw *hw; in src_set_cisz() local
118 hw = src->rsc.hw; in src_set_cisz()
119 hw->src_set_cisz(src->rsc.ctrl_blk, cisz); in src_set_cisz()
126 struct hw *hw; in src_set_ca() local
128 hw = src->rsc.hw; in src_set_ca()
129 hw->src_set_ca(src->rsc.ctrl_blk, ca); in src_set_ca()
136 struct hw *hw; in src_set_sa() local
138 hw = src->rsc.hw; in src_set_sa()
139 hw->src_set_sa(src->rsc.ctrl_blk, sa); in src_set_sa()
146 struct hw *hw; in src_set_la() local
148 hw = src->rsc.hw; in src_set_la()
149 hw->src_set_la(src->rsc.ctrl_blk, la); in src_set_la()
156 struct hw *hw; in src_set_pitch() local
158 hw = src->rsc.hw; in src_set_pitch()
159 hw->src_set_pitch(src->rsc.ctrl_blk, pitch); in src_set_pitch()
166 struct hw *hw; in src_set_clear_zbufs() local
168 hw = src->rsc.hw; in src_set_clear_zbufs()
169 hw->src_set_clear_zbufs(src->rsc.ctrl_blk, 1); in src_set_clear_zbufs()
176 struct hw *hw; in src_commit_write() local
180 hw = src->rsc.hw; in src_commit_write()
184 dirty = hw->src_get_dirty(src->rsc.ctrl_blk) & conj_mask; in src_commit_write()
186 hw->src_commit_write(hw, src->rsc.ops->index(&src->rsc), in src_commit_write()
195 hw->src_set_dirty(src->rsc.ctrl_blk, dirty); in src_commit_write()
196 hw->src_commit_write(hw, src->rsc.ops->index(&src->rsc), in src_commit_write()
206 struct hw *hw; in src_get_ca() local
208 hw = src->rsc.hw; in src_get_ca()
209 return hw->src_get_ca(hw, src->rsc.ops->index(&src->rsc), in src_get_ca()
227 struct hw *hw = src->rsc.hw; in src_default_config_memrd() local
230 hw->src_set_state(src->rsc.ctrl_blk, SRC_STATE_OFF); in src_default_config_memrd()
231 hw->src_set_bm(src->rsc.ctrl_blk, 1); in src_default_config_memrd()
235 hw->src_set_rsr(src->rsc.ctrl_blk, rsr); in src_default_config_memrd()
236 hw->src_set_sf(src->rsc.ctrl_blk, SRC_SF_S16); in src_default_config_memrd()
237 hw->src_set_wr(src->rsc.ctrl_blk, 0); in src_default_config_memrd()
238 hw->src_set_pm(src->rsc.ctrl_blk, 0); in src_default_config_memrd()
239 hw->src_set_rom(src->rsc.ctrl_blk, 0); in src_default_config_memrd()
240 hw->src_set_vo(src->rsc.ctrl_blk, 0); in src_default_config_memrd()
241 hw->src_set_st(src->rsc.ctrl_blk, 0); in src_default_config_memrd()
242 hw->src_set_ilsz(src->rsc.ctrl_blk, src->multi - 1); in src_default_config_memrd()
243 hw->src_set_cisz(src->rsc.ctrl_blk, 0x80); in src_default_config_memrd()
244 hw->src_set_sa(src->rsc.ctrl_blk, 0x0); in src_default_config_memrd()
245 hw->src_set_la(src->rsc.ctrl_blk, 0x1000); in src_default_config_memrd()
246 hw->src_set_ca(src->rsc.ctrl_blk, 0x80); in src_default_config_memrd()
247 hw->src_set_pitch(src->rsc.ctrl_blk, 0x1000000); in src_default_config_memrd()
248 hw->src_set_clear_zbufs(src->rsc.ctrl_blk, 1); in src_default_config_memrd()
251 hw->src_commit_write(hw, src->rsc.ops->index(&src->rsc), in src_default_config_memrd()
256 hw->src_set_pitch(src->rsc.ctrl_blk, 0x1000000); in src_default_config_memrd()
257 hw->src_commit_write(hw, src->rsc.ops->index(&src->rsc), in src_default_config_memrd()
267 struct hw *hw = src->rsc.hw; in src_default_config_memwr() local
269 hw->src_set_state(src->rsc.ctrl_blk, SRC_STATE_OFF); in src_default_config_memwr()
270 hw->src_set_bm(src->rsc.ctrl_blk, 1); in src_default_config_memwr()
271 hw->src_set_rsr(src->rsc.ctrl_blk, 0); in src_default_config_memwr()
272 hw->src_set_sf(src->rsc.ctrl_blk, SRC_SF_S16); in src_default_config_memwr()
273 hw->src_set_wr(src->rsc.ctrl_blk, 1); in src_default_config_memwr()
274 hw->src_set_pm(src->rsc.ctrl_blk, 0); in src_default_config_memwr()
275 hw->src_set_rom(src->rsc.ctrl_blk, 0); in src_default_config_memwr()
276 hw->src_set_vo(src->rsc.ctrl_blk, 0); in src_default_config_memwr()
277 hw->src_set_st(src->rsc.ctrl_blk, 0); in src_default_config_memwr()
278 hw->src_set_ilsz(src->rsc.ctrl_blk, 0); in src_default_config_memwr()
279 hw->src_set_cisz(src->rsc.ctrl_blk, 0x80); in src_default_config_memwr()
280 hw->src_set_sa(src->rsc.ctrl_blk, 0x0); in src_default_config_memwr()
281 hw->src_set_la(src->rsc.ctrl_blk, 0x1000); in src_default_config_memwr()
282 hw->src_set_ca(src->rsc.ctrl_blk, 0x80); in src_default_config_memwr()
283 hw->src_set_pitch(src->rsc.ctrl_blk, 0x1000000); in src_default_config_memwr()
284 hw->src_set_clear_zbufs(src->rsc.ctrl_blk, 1); in src_default_config_memwr()
287 hw->src_commit_write(hw, src->rsc.ops->index(&src->rsc), in src_default_config_memwr()
295 struct hw *hw = src->rsc.hw; in src_default_config_arcrw() local
299 hw->src_set_state(src->rsc.ctrl_blk, SRC_STATE_OFF); in src_default_config_arcrw()
300 hw->src_set_bm(src->rsc.ctrl_blk, 0); in src_default_config_arcrw()
304 hw->src_set_rsr(src->rsc.ctrl_blk, rsr); in src_default_config_arcrw()
305 hw->src_set_sf(src->rsc.ctrl_blk, SRC_SF_F32); in src_default_config_arcrw()
306 hw->src_set_wr(src->rsc.ctrl_blk, 0); in src_default_config_arcrw()
307 hw->src_set_pm(src->rsc.ctrl_blk, 0); in src_default_config_arcrw()
308 hw->src_set_rom(src->rsc.ctrl_blk, 0); in src_default_config_arcrw()
309 hw->src_set_vo(src->rsc.ctrl_blk, 0); in src_default_config_arcrw()
310 hw->src_set_st(src->rsc.ctrl_blk, 0); in src_default_config_arcrw()
311 hw->src_set_ilsz(src->rsc.ctrl_blk, 0); in src_default_config_arcrw()
312 hw->src_set_cisz(src->rsc.ctrl_blk, 0x80); in src_default_config_arcrw()
313 hw->src_set_sa(src->rsc.ctrl_blk, 0x0); in src_default_config_arcrw()
315 hw->src_set_la(src->rsc.ctrl_blk, 0x1000); in src_default_config_arcrw()
317 hw->src_set_ca(src->rsc.ctrl_blk, 0x80); in src_default_config_arcrw()
318 hw->src_set_pitch(src->rsc.ctrl_blk, 0x1000000); in src_default_config_arcrw()
319 hw->src_set_clear_zbufs(src->rsc.ctrl_blk, 1); in src_default_config_arcrw()
321 dirty = hw->src_get_dirty(src->rsc.ctrl_blk); in src_default_config_arcrw()
324 hw->src_set_dirty(src->rsc.ctrl_blk, dirty); in src_default_config_arcrw()
325 hw->src_commit_write(hw, src->rsc.ops->index(&src->rsc), in src_default_config_arcrw()
365 err = rsc_init(&p->rsc, idx + i, SRC, desc->msr, mgr->mgr.hw); in src_rsc_init()
488 struct hw *hw = mgr->mgr.hw; in src_enable_s() local
493 hw->src_mgr_enbs_src(mgr->mgr.ctrl_blk, in src_enable_s()
504 struct hw *hw = mgr->mgr.hw; in src_enable() local
509 hw->src_mgr_enb_src(mgr->mgr.ctrl_blk, in src_enable()
520 struct hw *hw = mgr->mgr.hw; in src_disable() local
525 hw->src_mgr_dsb_src(mgr->mgr.ctrl_blk, in src_disable()
536 struct hw *hw = mgr->mgr.hw; in src_mgr_commit_write() local
538 hw->src_mgr_commit_write(hw, mgr->mgr.ctrl_blk); in src_mgr_commit_write()
543 int src_mgr_create(struct hw *hw, struct src_mgr **rsrc_mgr) in src_mgr_create() argument
553 err = rsc_mgr_init(&src_mgr->mgr, SRC, SRC_RESOURCE_NUM, hw); in src_mgr_create()
558 conj_mask = hw->src_dirty_conj_mask(); in src_mgr_create()
566 src_mgr->card = hw->card; in src_mgr_create()
570 hw->src_mgr_dsb_src(src_mgr->mgr.ctrl_blk, i); in src_mgr_create()
572 hw->src_mgr_commit_write(hw, src_mgr->mgr.ctrl_blk); in src_mgr_create()
672 SRCIMP, desc->msr, mgr->mgr.hw); in srcimp_rsc_init()
779 struct hw *hw = mgr->hw; in srcimp_map_op() local
781 hw->srcimp_mgr_set_imaparc(mgr->ctrl_blk, entry->slot); in srcimp_map_op()
782 hw->srcimp_mgr_set_imapuser(mgr->ctrl_blk, entry->user); in srcimp_map_op()
783 hw->srcimp_mgr_set_imapnxt(mgr->ctrl_blk, entry->next); in srcimp_map_op()
784 hw->srcimp_mgr_set_imapaddr(mgr->ctrl_blk, entry->addr); in srcimp_map_op()
785 hw->srcimp_mgr_commit_write(mgr->hw, mgr->ctrl_blk); in srcimp_map_op()
824 int srcimp_mgr_create(struct hw *hw, struct srcimp_mgr **rsrcimp_mgr) in srcimp_mgr_create() argument
835 err = rsc_mgr_init(&srcimp_mgr->mgr, SRCIMP, SRCIMP_RESOURCE_NUM, hw); in srcimp_mgr_create()
856 srcimp_mgr->card = hw->card; in srcimp_mgr_create()