Home
last modified time | relevance | path

Searched refs:refcnts (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/drivers/pinctrl/sh-pfc/
Dcore.c771 unsigned int *refcnts; in sh_pfc_check_info() local
806 refcnts = kcalloc(info->nr_groups, sizeof(*refcnts), GFP_KERNEL); in sh_pfc_check_info()
807 if (!refcnts) in sh_pfc_check_info()
822 refcnts[k]++; in sh_pfc_check_info()
841 if (!refcnts[i]) { in sh_pfc_check_info()
845 } else if (refcnts[i] > 1) { in sh_pfc_check_info()
847 drvname, info->groups[i].name, refcnts[i]); in sh_pfc_check_info()
852 kfree(refcnts); in sh_pfc_check_info()
/Linux-v5.4/drivers/hwtracing/coresight/
Dcoresight.c1193 atomic_t *refcnts = NULL; in coresight_register() local
1212 refcnts = kcalloc(nr_refcnts, sizeof(*refcnts), GFP_KERNEL); in coresight_register()
1213 if (!refcnts) { in coresight_register()
1218 csdev->refcnt = refcnts; in coresight_register()