* 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
| 201 | * through an address/data register pair. |
| 202 | */ |
| 203 | void 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 |
no test coverage detected