Home
last modified time | relevance | path

Searched refs:regs_num (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.10/drivers/clk/sprd/
Dpll.c19 (pll->factors[member].shift / (8 * sizeof(pll->regs_num)))
22 (pll->factors[member].shift % (8 * sizeof(pll->regs_num)))
44 if (WARN_ON(index >= pll->regs_num)) in sprd_pll_read()
60 if (WARN_ON(index >= pll->regs_num)) in sprd_pll_write()
102 u32 i, mask, regs_num = pll->regs_num; in _sprd_pll_recalc_rate() local
107 cfg = kcalloc(regs_num, sizeof(*cfg), GFP_KERNEL); in _sprd_pll_recalc_rate()
111 for (i = 0; i < regs_num; i++) in _sprd_pll_recalc_rate()
154 u32 regs_num = pll->regs_num, i = 0; in _sprd_pll_set_rate() local
158 cfg = kcalloc(regs_num, sizeof(*cfg), GFP_KERNEL); in _sprd_pll_set_rate()
216 for (i = 0; i < regs_num; i++) { in _sprd_pll_set_rate()
Dpll.h52 u32 regs_num; member
69 .regs_num = _regs_num, \
/Linux-v5.10/drivers/media/i2c/
Ds5k4ecgx.c329 int err, i, regs_num; in s5k4ecgx_load_firmware() local
338 regs_num = get_unaligned_le32(fw->data); in s5k4ecgx_load_firmware()
341 S5K4ECGX_FIRMWARE, fw->size, regs_num); in s5k4ecgx_load_firmware()
343 regs_num++; /* Add header */ in s5k4ecgx_load_firmware()
344 if (fw->size != regs_num * FW_RECORD_SIZE + FW_CRC_SIZE) { in s5k4ecgx_load_firmware()
348 crc_file = get_unaligned_le32(fw->data + regs_num * FW_RECORD_SIZE); in s5k4ecgx_load_firmware()
349 crc = crc32_le(~0, fw->data, regs_num * FW_RECORD_SIZE); in s5k4ecgx_load_firmware()
356 for (i = 1; i < regs_num; i++) { in s5k4ecgx_load_firmware()
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c10725 static int hclge_get_32_bit_regs(struct hclge_dev *hdev, u32 regs_num, in hclge_get_32_bit_regs() argument
10739 if (regs_num == 0) in hclge_get_32_bit_regs()
10743 cmd_num = DIV_ROUND_UP(regs_num + nodata_num, in hclge_get_32_bit_regs()
10769 regs_num--; in hclge_get_32_bit_regs()
10770 if (!regs_num) in hclge_get_32_bit_regs()
10779 static int hclge_get_64_bit_regs(struct hclge_dev *hdev, u32 regs_num, in hclge_get_64_bit_regs() argument
10793 if (regs_num == 0) in hclge_get_64_bit_regs()
10797 cmd_num = DIV_ROUND_UP(regs_num + nodata_len, in hclge_get_64_bit_regs()
10823 regs_num--; in hclge_get_64_bit_regs()
10824 if (!regs_num) in hclge_get_64_bit_regs()