Lines Matching refs:im
275 static inline u32 get_spmr(immap_t *im) in get_spmr() argument
277 u32 res = in_be32(&im->clk.spmr); in get_spmr()
288 static inline u32 get_sccr(immap_t *im) in get_sccr() argument
290 u32 res = in_be32(&im->clk.sccr); in get_sccr()
301 static inline u32 get_lcrr(immap_t *im) in get_lcrr() argument
303 u32 res = in_be32(&im->im_lbc.lcrr); in get_lcrr()
314 static inline u32 get_pci_sync_in(immap_t *im) in get_pci_sync_in() argument
318 clkin_div = (get_spmr(im) & SPMR_CKID) >> SPMR_CKID_SHIFT; in get_pci_sync_in()
328 static inline u32 get_csb_clk(immap_t *im) in get_csb_clk() argument
332 spmf = (get_spmr(im) & SPMR_SPMF) >> SPMR_SPMF_SHIFT; in get_csb_clk()
343 static inline uint spmr_field(immap_t *im, u32 mask) in spmr_field() argument
348 return (get_spmr(im) & mask) >> shift; in spmr_field()
358 static inline uint sccr_field(immap_t *im, u32 mask) in sccr_field() argument
363 return (get_sccr(im) & mask) >> shift; in sccr_field()
373 static inline uint lcrr_field(immap_t *im, u32 mask) in lcrr_field() argument
378 return (get_lcrr(im) & mask) >> shift; in lcrr_field()