• Home
  • Raw
  • Download

Lines Matching refs:item

348 	struct rej_tmout_entry *item = container_of(delay, struct rej_tmout_entry, timeout);  in rej_tmout_timeout()  local
351 deleted = xa_cmpxchg(item->xa_rej_tmout, item->rem_pv_cm_id, item, NULL, 0); in rej_tmout_timeout()
353 if (deleted != item) in rej_tmout_timeout()
354 pr_debug("deleted(%p) != item(%p)\n", deleted, item); in rej_tmout_timeout()
356 kfree(item); in rej_tmout_timeout()
361 struct rej_tmout_entry *item; in alloc_rej_tmout() local
366 item = xa_load(&sriov->xa_rej_tmout, (unsigned long)rem_pv_cm_id); in alloc_rej_tmout()
368 if (item) { in alloc_rej_tmout()
369 if (xa_err(item)) in alloc_rej_tmout()
370 ret = xa_err(item); in alloc_rej_tmout()
373 mod_delayed_work(system_wq, &item->timeout, CM_CLEANUP_CACHE_TIMEOUT); in alloc_rej_tmout()
378 item = kmalloc(sizeof(*item), GFP_KERNEL); in alloc_rej_tmout()
379 if (!item) in alloc_rej_tmout()
382 INIT_DELAYED_WORK(&item->timeout, rej_tmout_timeout); in alloc_rej_tmout()
383 item->slave = slave; in alloc_rej_tmout()
384 item->rem_pv_cm_id = rem_pv_cm_id; in alloc_rej_tmout()
385 item->xa_rej_tmout = &sriov->xa_rej_tmout; in alloc_rej_tmout()
387 old = xa_cmpxchg(&sriov->xa_rej_tmout, (unsigned long)rem_pv_cm_id, NULL, item, GFP_KERNEL); in alloc_rej_tmout()
392 kfree(item); in alloc_rej_tmout()
396 schedule_delayed_work(&item->timeout, CM_CLEANUP_CACHE_TIMEOUT); in alloc_rej_tmout()
407 struct rej_tmout_entry *item; in lookup_rej_tmout_slave() local
411 item = xa_load(&sriov->xa_rej_tmout, (unsigned long)rem_pv_cm_id); in lookup_rej_tmout_slave()
413 if (!item || xa_err(item)) { in lookup_rej_tmout_slave()
415 rem_pv_cm_id, xa_err(item)); in lookup_rej_tmout_slave()
416 slave = !item ? -ENOENT : xa_err(item); in lookup_rej_tmout_slave()
418 slave = item->slave; in lookup_rej_tmout_slave()
495 struct rej_tmout_entry *item; in rej_tmout_xa_cleanup() local
501 xa_for_each(&sriov->xa_rej_tmout, id, item) { in rej_tmout_xa_cleanup()
502 if (slave < 0 || slave == item->slave) { in rej_tmout_xa_cleanup()
503 mod_delayed_work(system_wq, &item->timeout, 0); in rej_tmout_xa_cleanup()