Lines Matching refs:pf
2337 * This is used for the pointer fixup list (pf) which is created and consumed
2393 struct binder_ptr_fixup *pf =
2406 * We copy up to the fixup (pointed to by pf)
2408 copy_size = pf ? min(bytes_left, (size_t)pf->offset - offset)
2418 BUG_ON(!pf);
2420 if (pf->skip_size) {
2427 bytes_copied += pf->skip_size;
2429 /* apply the fixup indicated by pf */
2433 pf->offset,
2434 &pf->fixup_data,
2435 sizeof(pf->fixup_data));
2436 bytes_copied += sizeof(pf->fixup_data);
2438 list_del(&pf->node);
2439 kfree(pf);
2440 pf = list_first_entry_or_null(pf_head,
2447 list_for_each_entry_safe(pf, tmppf, pf_head, node) {
2448 BUG_ON(pf->skip_size == 0);
2449 list_del(&pf->node);
2450 kfree(pf);
2469 struct binder_ptr_fixup *pf, *tmppf;
2475 list_for_each_entry_safe(pf, tmppf, pf_head, node) {
2476 list_del(&pf->node);
2477 kfree(pf);
2545 struct binder_ptr_fixup *pf = kzalloc(sizeof(*pf), GFP_KERNEL);
2548 if (!pf)
2551 pf->offset = offset;
2552 pf->fixup_data = fixup;
2553 pf->skip_size = skip_size;
2554 INIT_LIST_HEAD(&pf->node);
2560 if (tmppf->offset < pf->offset) {
2561 list_add(&pf->node, &tmppf->node);
2569 list_add(&pf->node, pf_head);