• Home
  • Raw
  • Download

Lines Matching refs:iter

44 static void mcp251xfd_dump_header(struct mcp251xfd_dump_iter *iter,  in mcp251xfd_dump_header()  argument
48 struct mcp251xfd_dump_object_header *hdr = iter->hdr; in mcp251xfd_dump_header()
51 len = data_end - iter->data; in mcp251xfd_dump_header()
57 hdr->offset = cpu_to_le32(iter->data - iter->start); in mcp251xfd_dump_header()
60 iter->hdr++; in mcp251xfd_dump_header()
61 iter->data += len; in mcp251xfd_dump_header()
65 struct mcp251xfd_dump_iter *iter) in mcp251xfd_dump_registers() argument
68 struct mcp251xfd_dump_object_reg *reg = iter->data; in mcp251xfd_dump_registers()
98 mcp251xfd_dump_header(iter, MCP251XFD_DUMP_OBJECT_TYPE_REG, reg); in mcp251xfd_dump_registers()
101 static void mcp251xfd_dump_ring(struct mcp251xfd_dump_iter *iter, in mcp251xfd_dump_ring() argument
106 struct mcp251xfd_dump_object_reg *reg = iter->data; in mcp251xfd_dump_ring()
114 mcp251xfd_dump_header(iter, object_type, reg); in mcp251xfd_dump_ring()
118 struct mcp251xfd_dump_iter *iter) in mcp251xfd_dump_tef_ring() argument
147 mcp251xfd_dump_ring(iter, MCP251XFD_DUMP_OBJECT_TYPE_TEF, in mcp251xfd_dump_tef_ring()
152 struct mcp251xfd_dump_iter *iter, in mcp251xfd_dump_rx_ring_one() argument
180 mcp251xfd_dump_ring(iter, MCP251XFD_DUMP_OBJECT_TYPE_RX, in mcp251xfd_dump_rx_ring_one()
185 struct mcp251xfd_dump_iter *iter) in mcp251xfd_dump_rx_ring() argument
191 mcp251xfd_dump_rx_ring_one(priv, iter, rx_ring); in mcp251xfd_dump_rx_ring()
195 struct mcp251xfd_dump_iter *iter) in mcp251xfd_dump_tx_ring() argument
223 mcp251xfd_dump_ring(iter, MCP251XFD_DUMP_OBJECT_TYPE_TX, in mcp251xfd_dump_tx_ring()
228 struct mcp251xfd_dump_iter *iter) in mcp251xfd_dump_end() argument
230 struct mcp251xfd_dump_object_header *hdr = iter->hdr; in mcp251xfd_dump_end()
238 iter->hdr = NULL; in mcp251xfd_dump_end()
243 struct mcp251xfd_dump_iter iter; in mcp251xfd_dump() local
263 file_size += sizeof(*iter.hdr) * obj_num; in mcp251xfd_dump()
266 iter.start = __vmalloc(file_size, GFP_KERNEL | __GFP_NOWARN | in mcp251xfd_dump()
268 if (!iter.start) { in mcp251xfd_dump()
274 iter.hdr = iter.start; in mcp251xfd_dump()
275 iter.data = &iter.hdr[obj_num]; in mcp251xfd_dump()
277 mcp251xfd_dump_registers(priv, &iter); in mcp251xfd_dump()
278 mcp251xfd_dump_tef_ring(priv, &iter); in mcp251xfd_dump()
279 mcp251xfd_dump_rx_ring(priv, &iter); in mcp251xfd_dump()
280 mcp251xfd_dump_tx_ring(priv, &iter); in mcp251xfd_dump()
281 mcp251xfd_dump_end(priv, &iter); in mcp251xfd_dump()
283 dev_coredumpv(&priv->spi->dev, iter.start, in mcp251xfd_dump()
284 iter.data - iter.start, GFP_KERNEL); in mcp251xfd_dump()