MCPcopy Create free account
hub / github.com/F-Stack/f-stack / t4_write_indirect

Function t4_write_indirect

dpdk/drivers/net/cxgbe/base/t4_hw.c:203–211  ·  view source on GitHub ↗

* t4_write_indirect - write indirectly addressed registers * @adap: the adapter * @addr_reg: register holding the indirect addresses * @data_reg: register holding the value for the indirect registers * @vals: values to write * @nregs: how many indirect registers to write * @start_idx: address of first indirect register to write * * Writes a sequential block of registers that are accessed i

Source from the content-addressed store, hash-verified

201 * through an address/data register pair.
202 */
203void t4_write_indirect(struct adapter *adap, unsigned int addr_reg,
204 unsigned int data_reg, const u32 *vals,
205 unsigned int nregs, unsigned int start_idx)
206{
207 while (nregs--) {
208 t4_write_reg(adap, addr_reg, start_idx++);
209 t4_write_reg(adap, data_reg, *vals++);
210 }
211}
212
213/**
214 * t4_report_fw_error - report firmware error

Callers 1

t4_clr_port_statsFunction · 0.85

Calls 1

t4_write_regFunction · 0.85

Tested by

no test coverage detected