Lines Matching refs:rdev_map

265 static int rtq2208_init_irq_mask(struct rtq2208_rdev_map *rdev_map, unsigned int *buck_masks)  in rtq2208_init_irq_mask()  argument
272 ret = regmap_bulk_write(rdev_map->regmap, RTQ2208_REG_FLT_RECORDBUCK_CB, buck_clr_masks, 5); in rtq2208_init_irq_mask()
274 return dev_err_probe(rdev_map->dev, ret, "Failed to clr buck irqs\n"); in rtq2208_init_irq_mask()
277 ret = regmap_bulk_write(rdev_map->regmap, RTQ2208_REG_GLOBAL_INT1, sts_clr_masks, 2); in rtq2208_init_irq_mask()
279 return dev_err_probe(rdev_map->dev, ret, "Failed to clr general irqs\n"); in rtq2208_init_irq_mask()
282 ret = regmap_bulk_write(rdev_map->regmap, RTQ2208_REG_FLT_MASKBUCK_CB, buck_masks, 5); in rtq2208_init_irq_mask()
284 return dev_err_probe(rdev_map->dev, ret, "Failed to unmask buck irqs\n"); in rtq2208_init_irq_mask()
287 return regmap_bulk_write(rdev_map->regmap, RTQ2208_REG_GLOBAL_INT1_MASK, sts_masks, 2); in rtq2208_init_irq_mask()
294 struct rtq2208_rdev_map *rdev_map = devid; in rtq2208_irq_handler() local
297 if (!rdev_map) in rtq2208_irq_handler()
301 ret = regmap_bulk_read(rdev_map->regmap, RTQ2208_REG_FLT_RECORDBUCK_CB, in rtq2208_irq_handler()
306 ret = regmap_bulk_read(rdev_map->regmap, RTQ2208_REG_GLOBAL_INT1, in rtq2208_irq_handler()
312 ret = regmap_bulk_write(rdev_map->regmap, RTQ2208_REG_FLT_RECORDBUCK_CB, in rtq2208_irq_handler()
317 ret = regmap_bulk_write(rdev_map->regmap, RTQ2208_REG_GLOBAL_INT1, in rtq2208_irq_handler()
323 if (!rdev_map->rdev[i]) in rtq2208_irq_handler()
326 rdev = rdev_map->rdev[i]; in rtq2208_irq_handler()
572 struct rtq2208_rdev_map *rdev_map; in rtq2208_probe() local
577 rdev_map = devm_kzalloc(dev, sizeof(struct rtq2208_rdev_map), GFP_KERNEL); in rtq2208_probe()
578 if (!rdev_map) in rtq2208_probe()
590 rdev_map->regmap = regmap; in rtq2208_probe()
591 rdev_map->dev = dev; in rtq2208_probe()
608 rdev_map->rdev[idx] = rdev; in rtq2208_probe()
612 ret = rtq2208_init_irq_mask(rdev_map, buck_masks); in rtq2208_probe()
618 IRQF_ONESHOT, dev_name(dev), rdev_map); in rtq2208_probe()