Home
last modified time | relevance | path

Searched refs:n_regs (Results 1 – 25 of 30) sorted by relevance

12

/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dtestmode.c102 int n_regs = ARRAY_SIZE(reg_backup_list); in mt7615_tm_reg_backup_restore() local
107 for (i = 0; i < n_regs; i++) in mt7615_tm_reg_backup_restore()
112 rf_backup_list[i].reg, b[n_regs + i]); in mt7615_tm_reg_backup_restore()
119 b = devm_kzalloc(dev->mt76.dev, 4 * (n_regs + n_rf_regs), in mt7615_tm_reg_backup_restore()
125 for (i = 0; i < n_regs; i++) in mt7615_tm_reg_backup_restore()
128 b[n_regs + i] = mt7615_rf_rr(dev, rf_backup_list[i].wf, in mt7615_tm_reg_backup_restore()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_amdkfd_gfx_v12.c107 uint32_t (**dump)[2], uint32_t *n_regs, uint32_t inst) in hqd_dump_v12() argument
131 *n_regs = i; in hqd_dump_v12()
138 uint32_t (**dump)[2], uint32_t *n_regs) in hqd_sdma_dump_v12() argument
158 *n_regs = i; in hqd_sdma_dump_v12()
H A Damdgpu_amdkfd_gfx_v7.c206 uint32_t (**dump)[2], uint32_t *n_regs, uint32_t inst) in kgd_hqd_dump() argument
234 *n_regs = i; in kgd_hqd_dump()
296 uint32_t (**dump)[2], uint32_t *n_regs) in kgd_hqd_sdma_dump() argument
315 *n_regs = i; in kgd_hqd_sdma_dump()
H A Damdgpu_amdkfd_arcturus.h27 uint32_t (**dump)[2], uint32_t *n_regs);
H A Damdgpu_amdkfd_gfx_v8.c230 uint32_t (**dump)[2], uint32_t *n_regs, uint32_t inst) in kgd_hqd_dump() argument
258 *n_regs = i; in kgd_hqd_dump()
319 uint32_t (**dump)[2], uint32_t *n_regs) in kgd_hqd_sdma_dump() argument
347 *n_regs = i; in kgd_hqd_sdma_dump()
H A Damdgpu_amdkfd_gfx_v10_3.c330 uint32_t (**dump)[2], uint32_t *n_regs, uint32_t inst) in hqd_dump_v10_3() argument
354 *n_regs = i; in hqd_dump_v10_3()
430 uint32_t (**dump)[2], uint32_t *n_regs) in hqd_sdma_dump_v10_3() argument
454 *n_regs = i; in hqd_sdma_dump_v10_3()
H A Damdgpu_amdkfd_gfx_v11.c315 uint32_t (**dump)[2], uint32_t *n_regs, uint32_t inst) in hqd_dump_v11() argument
339 *n_regs = i; in hqd_dump_v11()
415 uint32_t (**dump)[2], uint32_t *n_regs) in hqd_sdma_dump_v11() argument
444 *n_regs = i; in hqd_sdma_dump_v11()
H A Damdgpu_amdkfd_arcturus.c194 uint32_t (**dump)[2], uint32_t *n_regs) in kgd_arcturus_hqd_sdma_dump() argument
218 *n_regs = i; in kgd_arcturus_hqd_sdma_dump()
H A Damdgpu_amdkfd_gfx_v10.c344 uint32_t (**dump)[2], uint32_t *n_regs, uint32_t inst) in kgd_hqd_dump() argument
368 *n_regs = i; in kgd_hqd_dump()
444 uint32_t (**dump)[2], uint32_t *n_regs) in kgd_hqd_sdma_dump() argument
468 *n_regs = i; in kgd_hqd_sdma_dump()
H A Damdgpu_amdkfd_gfx_v9.h40 uint32_t (**dump)[2], uint32_t *n_regs, uint32_t inst);
H A Damdgpu_amdkfd_gfx_v9.c355 uint32_t (**dump)[2], uint32_t *n_regs, uint32_t inst) in kgd_gfx_v9_hqd_dump() argument
379 *n_regs = i; in kgd_gfx_v9_hqd_dump()
455 uint32_t (**dump)[2], uint32_t *n_regs) in kgd_hqd_sdma_dump() argument
479 *n_regs = i; in kgd_hqd_sdma_dump()
H A Damdgpu_amdkfd_gc_9_4_3.c130 uint32_t (**dump)[2], uint32_t *n_regs) in kgd_gfx_v9_4_3_hqd_sdma_dump() argument
160 *n_regs = i; in kgd_gfx_v9_4_3_hqd_sdma_dump()
/linux/drivers/media/i2c/
H A Dtw9900.c70 int n_regs; member
126 .n_regs = ARRAY_SIZE(tw9900_ntsc_regs),
133 .n_regs = ARRAY_SIZE(tw9900_pal_regs),
149 const struct regval *regs, int n_regs) in tw9900_write_array() argument
153 for (i = 0; i < n_regs; i++) { in tw9900_write_array()
287 tw9900->cur_mode->n_regs); in tw9900_s_stream()
/linux/drivers/gpu/drm/amd/include/
H A Dkgd_kfd_interface.h247 uint32_t (**dump)[2], uint32_t *n_regs, uint32_t inst);
251 uint32_t (**dump)[2], uint32_t *n_regs);
/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dtestmode.c337 int n_regs = ARRAY_SIZE(reg_backup_list); in mt7915_tm_reg_backup_restore() local
362 for (i = 0; i < n_regs; i++) in mt7915_tm_reg_backup_restore()
368 b = devm_kzalloc(dev->mt76.dev, 4 * n_regs, GFP_KERNEL); in mt7915_tm_reg_backup_restore()
373 for (i = 0; i < n_regs; i++) in mt7915_tm_reg_backup_restore()
/linux/drivers/net/ethernet/sfc/siena/
H A Dnic.h201 size_t n_regs);
H A Dfarch.c104 size_t n_regs) in efx_farch_test_registers() argument
110 for (i = 0; i < n_regs; ++i) { in efx_farch_test_registers()
/linux/drivers/gpu/drm/xe/
H A Dxe_oa.c633 static void write_cs_mi_lri(struct xe_bb *bb, const struct xe_oa_reg *reg_data, u32 n_regs) in write_cs_mi_lri() argument
639 for (i = 0; i < n_regs; i++) { in write_cs_mi_lri()
641 u32 n_lri = min_t(u32, n_regs - i, in write_cs_mi_lri()
2270 u32 __user *regs, u32 n_regs) in xe_oa_alloc_regs() argument
2276 oa_regs = kmalloc_array(n_regs, sizeof(*oa_regs), GFP_KERNEL); in xe_oa_alloc_regs()
2280 for (i = 0; i < n_regs; i++) { in xe_oa_alloc_regs()
2374 XE_IOCTL_DBG(oa->xe, !arg->n_regs)) in xe_oa_add_config_ioctl()
2393 oa_config->regs_len = arg->n_regs; in xe_oa_add_config_ioctl()
2396 arg->n_regs); in xe_oa_add_config_ioctl()
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_wed_debugfs.c58 const struct reg_dump *regs, int n_regs) in dump_wed_regs() argument
63 for (cur = regs; cur < &regs[n_regs]; cur++) { in dump_wed_regs()
/linux/include/uapi/drm/
H A Dxe_drm.h1671 __u32 n_regs; member
/linux/drivers/gpu/drm/i915/
H A Di915_perf.c2157 u32 n_regs) in write_cs_mi_lri() argument
2161 for (i = 0; i < n_regs; i++) { in write_cs_mi_lri()
2164 n_regs - i, in write_cs_mi_lri()
4501 u32 n_regs) in alloc_oa_regs() argument
4507 if (!n_regs) in alloc_oa_regs()
4515 oa_regs = kmalloc_array(n_regs, sizeof(*oa_regs), GFP_KERNEL); in alloc_oa_regs()
4519 for (i = 0; i < n_regs; i++) { in alloc_oa_regs()
/linux/drivers/net/wireless/realtek/rtw89/
H A Drtw8852b_table.c22861 .n_regs = ARRAY_SIZE(rtw89_8852b_phy_bb_regs),
22867 .n_regs = ARRAY_SIZE(rtw89_8852b_phy_bb_reg_gain),
22873 .n_regs = ARRAY_SIZE(rtw89_8852b_phy_radioa_regs),
22880 .n_regs = ARRAY_SIZE(rtw89_8852b_phy_radiob_regs),
22887 .n_regs = ARRAY_SIZE(rtw89_8852b_phy_nctl_regs),
H A Drtw8852a_table.c51001 .n_regs = ARRAY_SIZE(rtw89_8852a_phy_bb_regs),
51007 .n_regs = ARRAY_SIZE(rtw89_8852a_phy_radioa_regs),
51013 .n_regs = ARRAY_SIZE(rtw89_8852a_phy_radiob_regs),
51019 .n_regs = ARRAY_SIZE(rtw89_8852a_phy_nctl_regs),
H A Dfw.c840 u32 n_regs, i; in rtw89_build_phy_tbl_from_elm() local
873 n_regs = le32_to_cpu(elm->size) / sizeof(tbl->regs[0]); in rtw89_build_phy_tbl_from_elm()
874 regs = kcalloc(n_regs, sizeof(tbl->regs[0]), GFP_KERNEL); in rtw89_build_phy_tbl_from_elm()
878 for (i = 0; i < n_regs; i++) { in rtw89_build_phy_tbl_from_elm()
883 tbl->n_regs = n_regs; in rtw89_build_phy_tbl_from_elm()
H A Drtw8851b_table.c14833 .n_regs = ARRAY_SIZE(rtw89_8851b_phy_bb_regs),
14839 .n_regs = ARRAY_SIZE(rtw89_8851b_phy_bb_reg_gain),
14845 .n_regs = ARRAY_SIZE(rtw89_8851b_phy_radioa_regs),
14852 .n_regs = ARRAY_SIZE(rtw89_8851b_phy_nctl_regs),

12