Home
last modified time | relevance | path

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

/Linux-v5.4/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()
101 u32 i, mask, regs_num = pll->regs_num; in _sprd_pll_recalc_rate() local
106 cfg = kcalloc(regs_num, sizeof(*cfg), GFP_KERNEL); in _sprd_pll_recalc_rate()
110 for (i = 0; i < regs_num; i++) in _sprd_pll_recalc_rate()
153 u32 regs_num = pll->regs_num, i = 0; in _sprd_pll_set_rate() local
157 cfg = kcalloc(regs_num, sizeof(*cfg), GFP_KERNEL); in _sprd_pll_set_rate()
215 for (i = 0; i < regs_num; i++) { in _sprd_pll_set_rate()
Dpll.h52 u32 regs_num; member
68 .regs_num = _regs_num, \
/Linux-v5.4/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.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c9631 static int hclge_get_32_bit_regs(struct hclge_dev *hdev, u32 regs_num, in hclge_get_32_bit_regs() argument
9645 if (regs_num == 0) in hclge_get_32_bit_regs()
9649 cmd_num = DIV_ROUND_UP(regs_num + nodata_num, in hclge_get_32_bit_regs()
9675 regs_num--; in hclge_get_32_bit_regs()
9676 if (!regs_num) in hclge_get_32_bit_regs()
9685 static int hclge_get_64_bit_regs(struct hclge_dev *hdev, u32 regs_num, in hclge_get_64_bit_regs() argument
9699 if (regs_num == 0) in hclge_get_64_bit_regs()
9703 cmd_num = DIV_ROUND_UP(regs_num + nodata_len, in hclge_get_64_bit_regs()
9729 regs_num--; in hclge_get_64_bit_regs()
9730 if (!regs_num) in hclge_get_64_bit_regs()