33 #include <linux/types.h>
34 #include <linux/slab.h>
49 PDBG(
"%s couldn't allocate memory.\n", __func__);
55 PDBG(
"%s TPT addr 0x%x len %d\n", __func__, m->
addr, m->
len);
58 PDBG(
"%s toectl returned error %d\n", __func__, rc);
65 PDBG(
"TPT %08x: %016llx\n", m->
addr, (
unsigned long long) *data);
81 npages = (len + (1ULL << shift) - 1) >> shift;
82 size = npages *
sizeof(
u64);
86 PDBG(
"%s couldn't allocate memory.\n", __func__);
92 PDBG(
"%s PBL addr 0x%x len %d depth %d\n",
93 __func__, m->addr, m->len, npages);
96 PDBG(
"%s toectl returned error %d\n", __func__, rc);
101 data = (
u64 *)m->buf;
103 PDBG(
"PBL %08x: %016llx\n", m->addr, (
unsigned long long) *data);
111 void cxio_dump_wqe(
union t3_wr *wqe)
119 PDBG(
"WQE %p: %016llx\n", data,
129 int size =
sizeof(*wce);
132 PDBG(
"WCE %p: %016llx\n", data,
139 void cxio_dump_rqt(
struct cxio_rdev *rdev,
u32 hwtid,
int nents)
142 int size = nents * 64;
148 PDBG(
"%s couldn't allocate memory.\n", __func__);
154 PDBG(
"%s RQT addr 0x%x len %d\n", __func__, m->
addr, m->
len);
157 PDBG(
"%s toectl returned error %d\n", __func__, rc);
164 PDBG(
"RQT %08x: %016llx\n", m->
addr, (
unsigned long long) *data);
181 PDBG(
"%s couldn't allocate memory.\n", __func__);
187 PDBG(
"%s TCB %d len %d\n", __func__, m->
addr, m->
len);
190 PDBG(
"%s toectl returned error %d\n", __func__, rc);
197 printk(
"%2u: %08x %08x %08x %08x %08x %08x %08x %08x\n",
199 *(data+2), *(data+3), *(data),*(data+1),
200 *(data+6), *(data+7), *(data+4), *(data+5));