bus/fslmc: remove unused funcs and align names in QBMAN
[dpdk.git] / drivers / bus / fslmc / qbman / qbman_sys.h
index 5dbcaa5..c73d2bf 100644 (file)
 #undef QBMAN_CINH_TRACE
 #undef QBMAN_CENA_TRACE
 
-static inline void word_copy(void *d, const void *s, unsigned int cnt)
-{
-       uint32_t *dd = d;
-       const uint32_t *ss = s;
-
-       while (cnt--)
-               *(dd++) = *(ss++);
-}
-
 /* Currently, the CENA support code expects each 32-bit word to be written in
  * host order, and these are converted to hardware (little-endian) order on
  * command submission. However, 64-bit quantities are must be written (and read)
@@ -226,7 +217,6 @@ static inline void qbman_cena_write_complete_wo_shadow(struct qbman_swp_sys *s,
 #ifdef QBMAN_CENA_TRACE
        pr_info("qbman_cena_write_complete(%p:%d:0x%03x)\n",
                s->addr_cena, s->idx, offset);
-       hexdump(cmd, 64);
 #endif
        dcbf(s->addr_cena + offset);
 }
@@ -260,11 +250,7 @@ static inline void *qbman_cena_read_wo_shadow(struct qbman_swp_sys *s,
 {
 #ifdef QBMAN_CENA_TRACE
        pr_info("qbman_cena_read(%p:%d:0x%03x) %p\n",
-               s->addr_cena, s->idx, offset, shadow);
-#endif
-
-#ifdef QBMAN_CENA_TRACE
-       hexdump(shadow, 64);
+               s->addr_cena, s->idx, offset);
 #endif
        return s->addr_cena + offset;
 }
@@ -371,15 +357,3 @@ static inline void qbman_swp_sys_finish(struct qbman_swp_sys *s)
 {
        free_page((unsigned long)s->cena);
 }
-
-static inline void *
-qbman_cena_write_start_wo_shadow_fast(struct qbman_swp_sys *s,
-                                     uint32_t offset)
-{
-#ifdef QBMAN_CENA_TRACE
-       pr_info("qbman_cena_write_start(%p:%d:0x%03x)\n",
-               s->addr_cena, s->idx, offset);
-#endif
-       QBMAN_BUG_ON(offset & 63);
-       return (s->addr_cena + offset);
-}