Lines Matching refs:m
42 struct ch_mem_range *m; in cxio_dump_tpt() local
47 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); in cxio_dump_tpt()
48 if (!m) { in cxio_dump_tpt()
52 m->mem_id = MEM_PMRX; in cxio_dump_tpt()
53 m->addr = (stag>>8) * 32 + rdev->rnic_info.tpt_base; in cxio_dump_tpt()
54 m->len = size; in cxio_dump_tpt()
55 PDBG("%s TPT addr 0x%x len %d\n", __func__, m->addr, m->len); in cxio_dump_tpt()
56 rc = rdev->t3cdev_p->ctl(rdev->t3cdev_p, RDMA_GET_MEM, m); in cxio_dump_tpt()
59 kfree(m); in cxio_dump_tpt()
63 data = (u64 *)m->buf; in cxio_dump_tpt()
65 PDBG("TPT %08x: %016llx\n", m->addr, (unsigned long long) *data); in cxio_dump_tpt()
68 m->addr += 8; in cxio_dump_tpt()
70 kfree(m); in cxio_dump_tpt()
75 struct ch_mem_range *m; in cxio_dump_pbl() local
84 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); in cxio_dump_pbl()
85 if (!m) { in cxio_dump_pbl()
89 m->mem_id = MEM_PMRX; in cxio_dump_pbl()
90 m->addr = pbl_addr; in cxio_dump_pbl()
91 m->len = size; in cxio_dump_pbl()
93 __func__, m->addr, m->len, npages); in cxio_dump_pbl()
94 rc = rdev->t3cdev_p->ctl(rdev->t3cdev_p, RDMA_GET_MEM, m); in cxio_dump_pbl()
97 kfree(m); in cxio_dump_pbl()
101 data = (u64 *)m->buf; in cxio_dump_pbl()
103 PDBG("PBL %08x: %016llx\n", m->addr, (unsigned long long) *data); in cxio_dump_pbl()
106 m->addr += 8; in cxio_dump_pbl()
108 kfree(m); in cxio_dump_pbl()
141 struct ch_mem_range *m; in cxio_dump_rqt() local
146 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); in cxio_dump_rqt()
147 if (!m) { in cxio_dump_rqt()
151 m->mem_id = MEM_PMRX; in cxio_dump_rqt()
152 m->addr = ((hwtid)<<10) + rdev->rnic_info.rqt_base; in cxio_dump_rqt()
153 m->len = size; in cxio_dump_rqt()
154 PDBG("%s RQT addr 0x%x len %d\n", __func__, m->addr, m->len); in cxio_dump_rqt()
155 rc = rdev->t3cdev_p->ctl(rdev->t3cdev_p, RDMA_GET_MEM, m); in cxio_dump_rqt()
158 kfree(m); in cxio_dump_rqt()
162 data = (u64 *)m->buf; in cxio_dump_rqt()
164 PDBG("RQT %08x: %016llx\n", m->addr, (unsigned long long) *data); in cxio_dump_rqt()
167 m->addr += 8; in cxio_dump_rqt()
169 kfree(m); in cxio_dump_rqt()
174 struct ch_mem_range *m; in cxio_dump_tcb() local
179 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); in cxio_dump_tcb()
180 if (!m) { in cxio_dump_tcb()
184 m->mem_id = MEM_CM; in cxio_dump_tcb()
185 m->addr = hwtid * size; in cxio_dump_tcb()
186 m->len = size; in cxio_dump_tcb()
187 PDBG("%s TCB %d len %d\n", __func__, m->addr, m->len); in cxio_dump_tcb()
188 rc = rdev->t3cdev_p->ctl(rdev->t3cdev_p, RDMA_GET_MEM, m); in cxio_dump_tcb()
191 kfree(m); in cxio_dump_tcb()
195 data = (u32 *)m->buf; in cxio_dump_tcb()
198 m->addr, in cxio_dump_tcb()
203 m->addr += 32; in cxio_dump_tcb()
205 kfree(m); in cxio_dump_tcb()