Lines Matching refs:s

34 static inline void word_copy(void *d, const void *s, unsigned int cnt)  in word_copy()  argument
37 const uint32_t *ss = s; in word_copy()
48 static inline void u64_to_le32_copy(void *d, const uint64_t *s, in u64_to_le32_copy() argument
52 const uint32_t *ss = (const uint32_t *)s; in u64_to_le32_copy()
69 static inline void u64_from_le32_copy(uint64_t *d, const void *s, in u64_from_le32_copy() argument
72 const uint32_t *ss = s; in u64_from_le32_copy()
128 static inline void qbman_cinh_write(struct qbman_swp_sys *s, uint32_t offset, in qbman_cinh_write() argument
131 __raw_writel(val, s->addr_cinh + offset); in qbman_cinh_write()
134 s->addr_cinh, offset, val); in qbman_cinh_write()
138 static inline uint32_t qbman_cinh_read(struct qbman_swp_sys *s, uint32_t offset) in qbman_cinh_read() argument
140 uint32_t reg = __raw_readl(s->addr_cinh + offset); in qbman_cinh_read()
144 s->addr_cinh, offset, reg); in qbman_cinh_read()
149 static inline void *qbman_cena_write_start(struct qbman_swp_sys *s, in qbman_cena_write_start() argument
152 void *shadow = s->cena + offset; in qbman_cena_write_start()
156 s->addr_cena, offset, shadow); in qbman_cena_write_start()
163 static inline void qbman_cena_write_complete(struct qbman_swp_sys *s, in qbman_cena_write_complete() argument
171 s->addr_cena, offset, shadow); in qbman_cena_write_complete()
176 __raw_writel(shadow[loop], s->addr_cinh + in qbman_cena_write_complete()
179 __raw_writel(shadow[loop], s->addr_cena + in qbman_cena_write_complete()
184 static inline void *qbman_cena_read(struct qbman_swp_sys *s, uint32_t offset) in qbman_cena_read() argument
186 uint32_t *shadow = s->cena + offset; in qbman_cena_read()
191 s->addr_cena, offset, shadow); in qbman_cena_read()
196 shadow[loop] = __raw_readl(s->addr_cinh + offset in qbman_cena_read()
199 shadow[loop] = __raw_readl(s->addr_cena + offset in qbman_cena_read()
208 static inline void qbman_cena_invalidate_prefetch(struct qbman_swp_sys *s, in qbman_cena_invalidate_prefetch() argument
251 static inline int qbman_swp_sys_init(struct qbman_swp_sys *s, in qbman_swp_sys_init() argument
257 s->addr_cena = d->cena_bar; in qbman_swp_sys_init()
258 s->addr_cinh = d->cinh_bar; in qbman_swp_sys_init()
259 s->cena = (void *)valloc(CONFIG_SYS_PAGE_SIZE); in qbman_swp_sys_init()
260 if (!s->cena) { in qbman_swp_sys_init()
264 memset((void *)s->cena, 0x00, CONFIG_SYS_PAGE_SIZE); in qbman_swp_sys_init()
271 reg = qbman_cinh_read(s, QBMAN_CINH_SWP_CFG); in qbman_swp_sys_init()
279 qbman_cinh_write(s, QBMAN_CINH_SWP_CFG, reg); in qbman_swp_sys_init()
280 reg = qbman_cinh_read(s, QBMAN_CINH_SWP_CFG); in qbman_swp_sys_init()
283 free(s->cena); in qbman_swp_sys_init()
289 static inline void qbman_swp_sys_finish(struct qbman_swp_sys *s) in qbman_swp_sys_finish() argument
291 free((void *)s->cena); in qbman_swp_sys_finish()