Lines Matching refs:buff
299 static void fm10k_get_reg_q(struct fm10k_hw *hw, u32 *buff, int i) in fm10k_get_reg_q() argument
303 buff[idx++] = fm10k_read_reg(hw, FM10K_RDBAL(i)); in fm10k_get_reg_q()
304 buff[idx++] = fm10k_read_reg(hw, FM10K_RDBAH(i)); in fm10k_get_reg_q()
305 buff[idx++] = fm10k_read_reg(hw, FM10K_RDLEN(i)); in fm10k_get_reg_q()
306 buff[idx++] = fm10k_read_reg(hw, FM10K_TPH_RXCTRL(i)); in fm10k_get_reg_q()
307 buff[idx++] = fm10k_read_reg(hw, FM10K_RDH(i)); in fm10k_get_reg_q()
308 buff[idx++] = fm10k_read_reg(hw, FM10K_RDT(i)); in fm10k_get_reg_q()
309 buff[idx++] = fm10k_read_reg(hw, FM10K_RXQCTL(i)); in fm10k_get_reg_q()
310 buff[idx++] = fm10k_read_reg(hw, FM10K_RXDCTL(i)); in fm10k_get_reg_q()
311 buff[idx++] = fm10k_read_reg(hw, FM10K_RXINT(i)); in fm10k_get_reg_q()
312 buff[idx++] = fm10k_read_reg(hw, FM10K_SRRCTL(i)); in fm10k_get_reg_q()
313 buff[idx++] = fm10k_read_reg(hw, FM10K_QPRC(i)); in fm10k_get_reg_q()
314 buff[idx++] = fm10k_read_reg(hw, FM10K_QPRDC(i)); in fm10k_get_reg_q()
315 buff[idx++] = fm10k_read_reg(hw, FM10K_QBRC_L(i)); in fm10k_get_reg_q()
316 buff[idx++] = fm10k_read_reg(hw, FM10K_QBRC_H(i)); in fm10k_get_reg_q()
317 buff[idx++] = fm10k_read_reg(hw, FM10K_TDBAL(i)); in fm10k_get_reg_q()
318 buff[idx++] = fm10k_read_reg(hw, FM10K_TDBAH(i)); in fm10k_get_reg_q()
319 buff[idx++] = fm10k_read_reg(hw, FM10K_TDLEN(i)); in fm10k_get_reg_q()
320 buff[idx++] = fm10k_read_reg(hw, FM10K_TPH_TXCTRL(i)); in fm10k_get_reg_q()
321 buff[idx++] = fm10k_read_reg(hw, FM10K_TDH(i)); in fm10k_get_reg_q()
322 buff[idx++] = fm10k_read_reg(hw, FM10K_TDT(i)); in fm10k_get_reg_q()
323 buff[idx++] = fm10k_read_reg(hw, FM10K_TXDCTL(i)); in fm10k_get_reg_q()
324 buff[idx++] = fm10k_read_reg(hw, FM10K_TXQCTL(i)); in fm10k_get_reg_q()
325 buff[idx++] = fm10k_read_reg(hw, FM10K_TXINT(i)); in fm10k_get_reg_q()
326 buff[idx++] = fm10k_read_reg(hw, FM10K_QPTC(i)); in fm10k_get_reg_q()
327 buff[idx++] = fm10k_read_reg(hw, FM10K_QBTC_L(i)); in fm10k_get_reg_q()
328 buff[idx++] = fm10k_read_reg(hw, FM10K_QBTC_H(i)); in fm10k_get_reg_q()
329 buff[idx++] = fm10k_read_reg(hw, FM10K_TQDLOC(i)); in fm10k_get_reg_q()
330 buff[idx++] = fm10k_read_reg(hw, FM10K_TX_SGLORT(i)); in fm10k_get_reg_q()
331 buff[idx++] = fm10k_read_reg(hw, FM10K_PFVTCTL(i)); in fm10k_get_reg_q()
339 static void fm10k_get_reg_vsi(struct fm10k_hw *hw, u32 *buff, int i) in fm10k_get_reg_vsi() argument
343 buff[idx++] = fm10k_read_reg(hw, FM10K_MRQC(i)); in fm10k_get_reg_vsi()
345 buff[idx++] = fm10k_read_reg(hw, FM10K_RSSRK(i, j)); in fm10k_get_reg_vsi()
347 buff[idx++] = fm10k_read_reg(hw, FM10K_RETA(i, j)); in fm10k_get_reg_vsi()
357 u32 *buff = p; in fm10k_get_regs() local
365 *(buff++) = fm10k_read_reg(hw, FM10K_CTRL); in fm10k_get_regs()
366 *(buff++) = fm10k_read_reg(hw, FM10K_CTRL_EXT); in fm10k_get_regs()
367 *(buff++) = fm10k_read_reg(hw, FM10K_GCR); in fm10k_get_regs()
368 *(buff++) = fm10k_read_reg(hw, FM10K_GCR_EXT); in fm10k_get_regs()
371 *(buff++) = fm10k_read_reg(hw, FM10K_DGLORTMAP(i)); in fm10k_get_regs()
372 *(buff++) = fm10k_read_reg(hw, FM10K_DGLORTDEC(i)); in fm10k_get_regs()
376 fm10k_get_reg_vsi(hw, buff, i); in fm10k_get_regs()
377 buff += FM10K_REGS_LEN_VSI; in fm10k_get_regs()
380 *(buff++) = fm10k_read_reg(hw, FM10K_DMA_CTRL); in fm10k_get_regs()
381 *(buff++) = fm10k_read_reg(hw, FM10K_DMA_CTRL2); in fm10k_get_regs()
384 fm10k_get_reg_q(hw, buff, i); in fm10k_get_regs()
385 buff += FM10K_REGS_LEN_Q; in fm10k_get_regs()
388 *(buff++) = fm10k_read_reg(hw, FM10K_TPH_CTRL); in fm10k_get_regs()
391 *(buff++) = fm10k_read_reg(hw, FM10K_INT_MAP(i)); in fm10k_get_regs()
395 *(buff++) = fm10k_read_reg(hw, FM10K_ITR(i)); in fm10k_get_regs()
400 *(buff++) = fm10k_read_reg(hw, FM10K_VFCTRL); in fm10k_get_regs()
401 *(buff++) = fm10k_read_reg(hw, FM10K_VFINT_MAP); in fm10k_get_regs()
402 *(buff++) = fm10k_read_reg(hw, FM10K_VFSYSTIME); in fm10k_get_regs()
406 *(buff++) = fm10k_read_reg(hw, FM10K_VFITR(i)); in fm10k_get_regs()
408 fm10k_get_reg_vsi(hw, buff, 0); in fm10k_get_regs()
409 buff += FM10K_REGS_LEN_VSI; in fm10k_get_regs()
413 fm10k_get_reg_q(hw, buff, i); in fm10k_get_regs()
415 memset(buff, 0, sizeof(u32) * FM10K_REGS_LEN_Q); in fm10k_get_regs()
416 buff += FM10K_REGS_LEN_Q; in fm10k_get_regs()