Home
last modified time | relevance | path

Searched refs:container_of (Results 1 – 25 of 149) sorted by relevance

123456

/freebsd-12.1/sys/dev/mthca/
H A Dmthca_provider.h303 return container_of(ibucontext, struct mthca_ucontext, ibucontext); in to_mucontext()
308 return container_of(ibmr, struct mthca_fmr, ibmr); in to_mfmr()
313 return container_of(ibmr, struct mthca_mr, ibmr); in to_mmr()
318 return container_of(ibpd, struct mthca_pd, ibpd); in to_mpd()
323 return container_of(ibah, struct mthca_ah, ibah); in to_mah()
328 return container_of(ibcq, struct mthca_cq, ibcq); in to_mcq()
333 return container_of(ibsrq, struct mthca_srq, ibsrq); in to_msrq()
338 return container_of(ibqp, struct mthca_qp, ibqp); in to_mqp()
343 return container_of(qp, struct mthca_sqp, qp); in to_msqp()
/freebsd-12.1/sys/ofed/drivers/infiniband/core/
H A Dib_sysfs.c107 container_of(attr, struct port_attribute, attr); in port_attr_show()
108 struct ib_port *p = container_of(kobj, struct ib_port, kobj); in port_attr_show()
124 container_of(attr, struct port_attribute, attr); in gid_attr_show()
125 struct ib_port *p = container_of(kobj, struct gid_attr_group, in gid_attr_show()
360 container_of(attr, struct port_table_attribute, attr); in _show_port_gid_attr()
382 container_of(attr, struct port_table_attribute, attr); in show_port_gid()
410 container_of(attr, struct port_table_attribute, attr); in show_port_pkey()
489 container_of(attr, struct port_table_attribute, attr); in show_pma_counter()
795 hsa = container_of(attr, struct hw_stats_attribute, attr); in show_hw_stats()
797 dev = container_of((struct device *)kobj, in show_hw_stats()
[all …]
H A Dib_umem_rbtree.c55 container_of(n, struct ib_umem_odp, interval_tree); in node_start()
68 container_of(n, struct ib_umem_odp, interval_tree); in node_last()
93 umem = container_of(node, struct ib_umem_odp, interval_tree); in rbt_ib_umem_for_each_in_range()
H A Dib_iwcm.c185 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id); in add_ref()
193 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id); in rem_ref()
272 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id); in iw_cm_disconnect()
337 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id); in destroy_cm_id()
408 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id); in iw_destroy_cm_id()
444 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id); in iw_cm_listen()
487 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id); in iw_cm_reject()
525 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id); in iw_cm_accept()
580 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id); in iw_cm_connect()
666 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id); in cm_conn_req_handler()
[all …]
H A Dib_uverbs_main.c163 container_of(kobj, struct ib_uverbs_device, kobj); in ib_uverbs_release_dev()
176 container_of(ref, struct ib_uverbs_event_file, ref); in ib_uverbs_release_event_file()
266 container_of(uobj, struct ib_uqp_object, uevent.uobject); in ib_uverbs_cleanup_ucontext()
289 container_of(uobj, struct ib_uwq_object, uevent.uobject); in ib_uverbs_cleanup_ucontext()
300 container_of(uobj, struct ib_uevent_object, uobject); in ib_uverbs_cleanup_ucontext()
312 container_of(uobj, struct ib_ucq_object, uobject); in ib_uverbs_cleanup_ucontext()
332 container_of(uobj, struct ib_uxrcd_object, uobject); in ib_uverbs_cleanup_ucontext()
361 container_of(ref, struct ib_uverbs_file, ref); in ib_uverbs_release_file()
592 uobj = container_of(event->element.qp->uobject, in ib_uverbs_qp_event_handler()
614 uobj = container_of(event->element.srq->uobject, in ib_uverbs_srq_event_handler()
[all …]
H A Dib_sa_query.c505 container_of(work, struct ib_sa_port, update_task); in update_sm_ah()
563 container_of(handler, typeof(*sa_dev), event_handler); in ib_sa_event()
856 container_of(sa_query, struct ib_sa_path_query, sa_query); in ib_sa_path_rec_callback()
874 kfree(container_of(sa_query, struct ib_sa_path_query, sa_query)); in ib_sa_path_rec_release()
978 container_of(sa_query, struct ib_sa_service_query, sa_query); in ib_sa_service_rec_callback()
992 kfree(container_of(sa_query, struct ib_sa_service_query, sa_query)); in ib_sa_service_rec_release()
1101 container_of(sa_query, struct ib_sa_mcmember_query, sa_query); in ib_sa_mcmember_rec_callback()
1115 kfree(container_of(sa_query, struct ib_sa_mcmember_query, sa_query)); in ib_sa_mcmember_rec_release()
1193 container_of(sa_query, struct ib_sa_guidinfo_query, sa_query); in ib_sa_guidinfo_rec_callback()
1207 kfree(container_of(sa_query, struct ib_sa_guidinfo_query, sa_query)); in ib_sa_guidinfo_rec_release()
[all …]
H A Dib_mad.c620 mad_agent_priv = container_of(mad_agent, in ib_unregister_mad_agent()
625 mad_snoop_priv = container_of(mad_agent, in ib_unregister_mad_agent()
976 send_wr->cur_seg = container_of(send_wr->rmpp_list.next, in alloc_send_rmpp_list()
1138 mad_agent_priv = container_of(send_buf->mad_agent, in ib_free_send_mad()
1230 mad_send_wr = container_of(send_buf, in ib_post_send_mad()
1325 mad_priv_hdr = container_of(mad_recv_wc, in ib_free_recv_mad()
2188 container_of(wc->wr_cqe, struct ib_mad_list_head, cqe); in ib_mad_recv_done()
2475 mad_list = container_of(qp_info->overflow_list.next, in ib_mad_send_done()
2477 queued_send_wr = container_of(mad_list, in ib_mad_send_done()
2513 mad_send_wr = container_of(mad_list, in mark_sends_for_retry()
[all …]
/freebsd-12.1/sys/arm/nvidia/drm2/
H A Dtegra_fb.c52 fb = container_of(drm_fb, struct tegra_fb, drm_fb); in fb_destroy()
70 fb = container_of(drm_fb, struct tegra_fb, drm_fb); in fb_create_handle()
137 fb = container_of(helper, struct tegra_fb, fb_helper); in tegra_fb_probe()
138 drm = container_of(drm_dev, struct tegra_drm, drm_dev); in tegra_fb_probe()
208 drm = container_of(drm_dev, struct tegra_drm, drm_dev); in tegra_drm_fb_getinfo()
234 drm = container_of(drm_dev, struct tegra_drm, drm_dev); in tegra_drm_fb_init()
304 planes[i] = container_of(gem_obj, struct tegra_bo, gem_obj); in tegra_drm_fb_create()
327 drm = container_of(drm_dev, struct tegra_drm, drm_dev); in tegra_drm_fb_destroy()
H A Dtegra_dc.c332 output = container_of(encoder, struct tegra_drm_encoder, in dc_setup_clk()
520 fb = container_of(drm_fb, struct tegra_fb, drm_fb); in dc_plane_update()
521 crtc = container_of(drm_crtc, struct tegra_crtc, drm_crtc); in dc_plane_update()
654 crtc = container_of(drm_crtc, struct tegra_crtc, drm_crtc); in dc_crtc_mode_set()
656 fb = container_of(drm_crtc->fb, struct tegra_fb, drm_fb); in dc_crtc_mode_set()
727 crtc = container_of(drm_crtc, struct tegra_crtc, drm_crtc); in dc_crtc_mode_set_base()
728 fb = container_of(drm_crtc->fb, struct tegra_fb, drm_fb); in dc_crtc_mode_set_base()
748 crtc = container_of(drm_crtc, struct tegra_crtc, drm_crtc); in dc_crtc_prepare()
889 fb = container_of(drm_crtc->fb, struct tegra_fb, drm_fb); in dc_finish_page_flip()
955 fb = container_of(drm_crtc->fb, struct tegra_fb, drm_fb); in dc_page_flip()
[all …]
H A Dtegra_drm_subr.c58 output = container_of(connector, struct tegra_drm_encoder, in tegra_drm_connector_get_modes()
89 output = container_of(connector, struct tegra_drm_encoder, in tegra_drm_connector_best_encoder()
102 output = container_of(connector, struct tegra_drm_encoder, in tegra_drm_connector_detect()
/freebsd-12.1/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib.h423 return container_of(wr, struct mlx5_umr_wr, wr); in umr_wr()
696 return container_of(mcq, struct mlx5_ib_cq, mcq); in to_mibcq()
711 return container_of(ibcq, struct mlx5_ib_cq, ibcq); in to_mcq()
726 return container_of(mmkey, struct mlx5_ib_mr, mmkey); in to_mibmr()
731 return container_of(ibpd, struct mlx5_ib_pd, ibpd); in to_mpd()
741 return container_of(ibqp, struct mlx5_ib_qp, ibqp); in to_mqp()
746 return container_of(ibwq, struct mlx5_ib_rwq, ibwq); in to_mrwq()
756 return container_of(msrq, struct mlx5_ib_srq, msrq); in to_mibsrq()
761 return container_of(ibmr, struct mlx5_ib_mr, ibmr); in to_mmr()
766 return container_of(ibmw, struct mlx5_ib_mw, ibmw); in to_mmw()
[all …]
/freebsd-12.1/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib.h646 return container_of(ibpd, struct mlx4_ib_pd, ibpd); in to_mpd()
656 return container_of(ibcq, struct mlx4_ib_cq, ibcq); in to_mcq()
661 return container_of(mcq, struct mlx4_ib_cq, mcq); in to_mibcq()
666 return container_of(ibmr, struct mlx4_ib_mr, ibmr); in to_mmr()
671 return container_of(ibmw, struct mlx4_ib_mw, ibmw); in to_mmw()
676 return container_of(ibfmr, struct mlx4_ib_fmr, ibfmr); in to_mfmr()
686 return container_of(ibqp, struct mlx4_ib_qp, ibqp); in to_mqp()
691 return container_of(mqp, struct mlx4_ib_qp, mqp); in to_mibqp()
696 return container_of(ibsrq, struct mlx4_ib_srq, ibsrq); in to_msrq()
701 return container_of(msrq, struct mlx4_ib_srq, msrq); in to_mibsrq()
[all …]
H A Dmlx4_ib_sysfs.c50 container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry); in show_admin_alias_guid()
75 container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry); in store_admin_alias_guid()
405 container_of(attr, struct port_attribute, attr); in port_attr_show()
418 container_of(attr, struct port_attribute, attr); in port_attr_store()
446 container_of(attr, struct port_table_attribute, attr); in show_port_pkey()
463 container_of(attr, struct port_table_attribute, attr); in store_port_pkey()
547 container_of(attr, struct mlx4_port, smi_enabled); in sysfs_show_smi_enabled()
563 container_of(attr, struct mlx4_port, enable_smi_admin); in sysfs_show_enable_smi_admin()
579 container_of(attr, struct mlx4_port, enable_smi_admin); in sysfs_store_enable_smi_admin()
753 mport = container_of(p, struct mlx4_port, kobj); in register_one_pkey_tree()
[all …]
/freebsd-12.1/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_dim.c62 struct net_dim *dim = container_of(work, struct net_dim, work); in mlx5e_dim_work()
63 struct mlx5e_rq *rq = container_of(dim, struct mlx5e_rq, dim); in mlx5e_dim_work()
64 struct mlx5e_channel *c = container_of(rq, struct mlx5e_channel, rq); in mlx5e_dim_work()
/freebsd-12.1/sys/dev/drm2/i915/
H A Dintel_drv.h299 #define to_intel_crtc(x) container_of(x, struct intel_crtc, base)
300 #define to_intel_connector(x) container_of(x, struct intel_connector, base)
301 #define to_intel_encoder(x) container_of(x, struct intel_encoder, base)
302 #define to_intel_framebuffer(x) container_of(x, struct intel_framebuffer, base)
303 #define to_intel_plane(x) container_of(x, struct intel_plane, base)
553 container_of(encoder, struct intel_digital_port, base.base); in enc_to_intel_dp()
560 return container_of(encoder, struct intel_digital_port, base.base); in enc_to_dig_port()
566 return container_of(intel_dp, struct intel_digital_port, dp); in dp_to_dig_port()
572 return container_of(intel_hdmi, struct intel_digital_port, hdmi); in hdmi_to_dig_port()
/freebsd-12.1/sys/dev/mlx5/mlx5_core/
H A Dmlx5_fw.c475 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_component_query()
485 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_lock()
506 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_component_update()
517 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_block_download()
527 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_component_verify()
537 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_activate()
549 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_query_state()
567 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_cancel()
576 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_release()
H A Dmlx5_health.c143 container_of(work, struct mlx5_core_dev, priv.health.work_cmd_completion); in mlx5_trigger_cmd_completions()
372 dwork = container_of(work, struct delayed_work, work); in health_recover()
373 health = container_of(dwork, struct mlx5_core_health, recover_work); in health_recover()
374 priv = container_of(health, struct mlx5_priv, health); in health_recover()
375 dev = container_of(priv, struct mlx5_core_dev, priv); in health_recover()
425 health = container_of(work, struct mlx5_core_health, work); in health_care()
426 priv = container_of(health, struct mlx5_priv, health); in health_care()
427 dev = container_of(priv, struct mlx5_core_dev, priv); in health_care()
548 dev = container_of(work, struct mlx5_core_dev, priv.health.work_watchdog); in health_watchdog()
/freebsd-12.1/sys/dev/drm2/ttm/
H A Dttm_agp_backend.c53 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm); in ttm_agp_bind()
78 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm); in ttm_agp_unbind()
86 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm); in ttm_agp_destroy()
/freebsd-12.1/sys/ofed/include/rdma/
H A Drdma_vt.h406 return container_of(ibpd, struct rvt_pd, ibpd); in ibpd_to_rvtpd()
411 return container_of(ibah, struct rvt_ah, ibah); in ibah_to_rvtah()
416 return container_of(ibdev, struct rvt_dev_info, ibdev); in ib_to_rvt()
421 return container_of(ibsrq, struct rvt_srq, ibsrq); in ibsrq_to_rvtsrq()
426 return container_of(ibqp, struct rvt_qp, ibqp); in ibqp_to_rvtqp()
/freebsd-12.1/contrib/ofed/librdmacm/
H A Dcma.c586 id_priv = container_of(id, struct cma_id_private, id); in rdma_destroy_id()
628 id_priv = container_of(id, struct cma_id_private, id); in ucma_query_addr()
661 id_priv = container_of(id, struct cma_id_private, id); in ucma_query_gid()
722 id_priv = container_of(id, struct cma_id_private, id); in ucma_query_path()
754 id_priv = container_of(id, struct cma_id_private, id); in ucma_query_route()
803 id_priv = container_of(id, struct cma_id_private, id); in rdma_bind_addr2()
832 id_priv = container_of(id, struct cma_id_private, id); in rdma_bind_addr()
848 id_priv = container_of(id, struct cma_id_private, id); in ucma_complete()
881 id_priv = container_of(id, struct cma_id_private, id); in rdma_resolve_addr2()
917 id_priv = container_of(id, struct cma_id_private, id); in rdma_resolve_addr()
[all …]
/freebsd-12.1/contrib/ofed/libmlx4/
H A Dmlx4.h311 return container_of(ibdev, struct mlx4_device, verbs_dev); in to_mdev()
331 return container_of(container_of(ibsrq, struct verbs_srq, srq), in to_msrq()
337 return container_of(container_of(ibqp, struct verbs_qp, qp), in to_mqp()
/freebsd-12.1/sys/dev/drm2/
H A Ddrm_crtc.h830 #define obj_to_crtc(x) container_of(x, struct drm_crtc, base)
831 #define obj_to_connector(x) container_of(x, struct drm_connector, base)
832 #define obj_to_encoder(x) container_of(x, struct drm_encoder, base)
833 #define obj_to_mode(x) container_of(x, struct drm_display_mode, base)
834 #define obj_to_fb(x) container_of(x, struct drm_framebuffer, base)
835 #define obj_to_property(x) container_of(x, struct drm_property, base)
836 #define obj_to_blob(x) container_of(x, struct drm_property_blob, base)
837 #define obj_to_plane(x) container_of(x, struct drm_plane, base)
/freebsd-12.1/sys/dev/cxgbe/iw_cxgbe/
H A Diw_cxgbe.h275 return container_of(ibdev, struct c4iw_dev, ibdev); in to_c4iw_dev()
280 return container_of(rdev, struct c4iw_dev, rdev); in rdev_to_c4iw_dev()
366 return container_of(ibpd, struct c4iw_pd, ibpd); in to_c4iw_pd()
401 return container_of(ibmr, struct c4iw_mr, ibmr); in to_c4iw_mr()
413 return container_of(ibmw, struct c4iw_mw, ibmw); in to_c4iw_mw()
428 return container_of(ibcq, struct c4iw_cq, ibcq); in to_c4iw_cq()
488 return container_of(ibqp, struct c4iw_qp, ibqp); in to_c4iw_qp()
502 return container_of(c, struct c4iw_ucontext, ibucontext); in to_c4iw_ucontext()
/freebsd-12.1/sys/dev/drm/
H A Ddrm_linux_list.h42 #define list_entry(ptr, type, member) container_of(ptr,type,member)
43 #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
/freebsd-12.1/sys/dev/cxgb/
H A Dcxgb_adapter.h546 #define container_of(p, stype, field) ((stype *)(((uint8_t *)(p)) - offsetof(stype, field))) macro
551 return container_of(q, struct sge_qset, fl[qidx]); in fl_to_qset()
557 return container_of(q, struct sge_qset, rspq); in rspq_to_qset()
563 return container_of(q, struct sge_qset, txq[qidx]); in txq_to_qset()
566 #undef container_of

123456