Lines Matching refs:nfit_res
1127 struct nfit_test_resource *nfit_res = data; in release_nfit_res() local
1130 list_del(&nfit_res->list); in release_nfit_res()
1133 vfree(nfit_res->buf); in release_nfit_res()
1134 kfree(nfit_res); in release_nfit_res()
1141 struct nfit_test_resource *nfit_res = kzalloc(sizeof(*nfit_res), in __test_alloc() local
1145 if (!buf || !nfit_res) in __test_alloc()
1147 rc = devm_add_action(dev, release_nfit_res, nfit_res); in __test_alloc()
1150 INIT_LIST_HEAD(&nfit_res->list); in __test_alloc()
1152 nfit_res->dev = dev; in __test_alloc()
1153 nfit_res->buf = buf; in __test_alloc()
1154 nfit_res->res.start = *dma; in __test_alloc()
1155 nfit_res->res.end = *dma + size - 1; in __test_alloc()
1156 nfit_res->res.name = "NFIT"; in __test_alloc()
1157 spin_lock_init(&nfit_res->lock); in __test_alloc()
1158 INIT_LIST_HEAD(&nfit_res->requests); in __test_alloc()
1160 list_add(&nfit_res->list, &t->resources); in __test_alloc()
1163 return nfit_res->buf; in __test_alloc()
1167 kfree(nfit_res); in __test_alloc()
1184 struct nfit_test_resource *n, *nfit_res = NULL; in nfit_test_lookup() local
1193 nfit_res = n; in nfit_test_lookup()
1198 nfit_res = n; in nfit_test_lookup()
1203 if (nfit_res) in nfit_test_lookup()
1204 return nfit_res; in nfit_test_lookup()