Lines Matching refs:dr
219 struct ntb_msi_devres *dr = data; in ntb_msi_write_msg() local
221 WARN_ON(ntb_msi_set_desc(dr->ntb, entry, dr->msi_desc)); in ntb_msi_write_msg()
223 if (dr->ntb->msi->desc_changed) in ntb_msi_write_msg()
224 dr->ntb->msi->desc_changed(dr->ntb->ctx); in ntb_msi_write_msg()
229 struct ntb_msi_devres *dr = res; in ntbm_msi_callback_release() local
231 dr->entry->write_msi_msg = NULL; in ntbm_msi_callback_release()
232 dr->entry->write_msi_msg_data = NULL; in ntbm_msi_callback_release()
238 struct ntb_msi_devres *dr; in ntbm_msi_setup_callback() local
240 dr = devres_alloc(ntbm_msi_callback_release, in ntbm_msi_setup_callback()
242 if (!dr) in ntbm_msi_setup_callback()
245 dr->ntb = ntb; in ntbm_msi_setup_callback()
246 dr->entry = entry; in ntbm_msi_setup_callback()
247 dr->msi_desc = msi_desc; in ntbm_msi_setup_callback()
249 devres_add(&ntb->dev, dr); in ntbm_msi_setup_callback()
251 dr->entry->write_msi_msg = ntb_msi_write_msg; in ntbm_msi_setup_callback()
252 dr->entry->write_msi_msg_data = dr; in ntbm_msi_setup_callback()
327 struct ntb_msi_devres *dr = res; in ntbm_msi_callback_match() local
329 return dr->ntb == ntb && dr->entry == data; in ntbm_msi_callback_match()