Searched refs:container_of (Results 1 - 25 of 87) sorted by relevance

1234

/freebsd-10.1-release/sys/dev/cxgb/ulp/iw_cxgb/
H A Diw_cxgb_ib_intfc.h14 #undef container_of macro
H A Diw_cxgb_provider.h42 #ifndef container_of
43 #define container_of(p, stype, field) ((stype *)(((uint8_t *)(p)) - offsetof(stype, field))) macro
48 return container_of(ibpd, struct iwch_pd, ibpd);
83 return container_of(ibmr, struct iwch_mr, ibmr);
96 return container_of(ibmw, struct iwch_mw, ibmw);
111 return container_of(ibcq, struct iwch_cq, ibcq);
177 return container_of(ibqp, struct iwch_qp, ibqp);
194 return container_of(c, struct iwch_ucontext, ibucontext);
H A Diw_cxgb.h115 #ifndef container_of
116 #define container_of(p, stype, field) ((stype *)(((uint8_t *)(p)) - offsetof(stype, field))) macro
121 return container_of(ibdev, struct iwch_dev, ibdev);
/freebsd-10.1-release/sys/ofed/drivers/infiniband/hw/mthca/
H A Dmthca_provider.h300 return container_of(ibucontext, struct mthca_ucontext, ibucontext);
305 return container_of(ibmr, struct mthca_fmr, ibmr);
310 return container_of(ibmr, struct mthca_mr, ibmr);
315 return container_of(ibpd, struct mthca_pd, ibpd);
320 return container_of(ibah, struct mthca_ah, ibah);
325 return container_of(ibcq, struct mthca_cq, ibcq);
330 return container_of(ibsrq, struct mthca_srq, ibsrq);
335 return container_of(ibqp, struct mthca_qp, ibqp);
340 return container_of(qp, struct mthca_sqp, qp);
/freebsd-10.1-release/sys/dev/drm2/ttm/
H A Dttm_agp_backend.c52 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm);
85 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm);
98 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm);
/freebsd-10.1-release/sys/dev/drm/
H A Ddrm_hashtab.h42 #define drm_hash_entry(_ptr, _type, _member) container_of(_ptr, _type, _member)
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-10.1-release/sys/dev/drm2/
H A Ddrm_hashtab.h42 #define drm_hash_entry(_ptr, _type, _member) container_of(_ptr, _type, _member)
H A Ddrm_crtc.h702 #define obj_to_crtc(x) container_of(x, struct drm_crtc, base)
703 #define obj_to_connector(x) container_of(x, struct drm_connector, base)
704 #define obj_to_encoder(x) container_of(x, struct drm_encoder, base)
705 #define obj_to_mode(x) container_of(x, struct drm_display_mode, base)
706 #define obj_to_fb(x) container_of(x, struct drm_framebuffer, base)
707 #define obj_to_property(x) container_of(x, struct drm_property, base)
708 #define obj_to_blob(x) container_of(x, struct drm_property_blob, base)
709 #define obj_to_plane(x) container_of(x, struct drm_plane, base)
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-10.1-release/sys/ofed/include/linux/
H A Ddevice.h111 cs = container_of(attr, struct class_attribute_string, attr);
176 dattr = container_of(attr, struct class_attribute, attr);
179 error = dattr->show(container_of(kobj, struct class, kobj),
191 dattr = container_of(attr, struct class_attribute, attr);
194 error = dattr->store(container_of(kobj, struct class, kobj),
204 class = container_of(kobj, struct class, kobj);
242 dev = container_of(kobj, struct device, kobj);
256 dattr = container_of(attr, struct device_attribute, attr);
259 error = dattr->show(container_of(kobj, struct device, kobj),
271 dattr = container_of(att
[all...]
H A Dcdev.h56 cdev = container_of(kobj, struct linux_cdev, kobj);
67 cdev = container_of(kobj, struct linux_cdev, kobj);
H A Drbtree.h63 #define rb_entry(ptr, type, member) container_of(ptr, type, member)
/freebsd-10.1-release/sys/ofed/drivers/infiniband/hw/mlx4/
H A Dmlx4_ib.h565 return container_of(ibdev, struct mlx4_ib_dev, ib_dev);
570 return container_of(ibucontext, struct mlx4_ib_ucontext, ibucontext);
575 return container_of(ibpd, struct mlx4_ib_pd, ibpd);
580 return container_of(ibxrcd, struct mlx4_ib_xrcd, ibxrcd);
585 return container_of(ibcq, struct mlx4_ib_cq, ibcq);
590 return container_of(mcq, struct mlx4_ib_cq, mcq);
595 return container_of(ibmr, struct mlx4_ib_mr, ibmr);
600 return container_of(ibfrpl, struct mlx4_ib_fast_reg_page_list, ibfrpl);
605 return container_of(ibfmr, struct mlx4_ib_fmr, ibfmr);
609 return container_of(ibq
[all...]
H A Dsysfs.c52 container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry);
79 container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry);
136 container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry);
163 container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry);
399 struct mlx4_port *p = container_of(kobj, struct mlx4_port, kobj);
423 container_of(attr, struct port_attribute, attr);
424 struct mlx4_port *p = container_of(kobj, struct mlx4_port, kobj);
436 container_of(attr, struct port_attribute, attr);
437 struct mlx4_port *p = container_of(kobj, struct mlx4_port, kobj);
464 container_of(att
[all...]
/freebsd-10.1-release/sys/ofed/drivers/infiniband/core/
H A Dsysfs.c75 container_of(attr, struct port_attribute, attr);
76 struct ib_port *p = container_of(kobj, struct ib_port, kobj);
267 container_of(attr, struct port_table_attribute, attr);
286 container_of(attr, struct port_table_attribute, attr);
301 container_of(attr, struct port_table_attribute, attr);
462 struct ib_port *p = container_of(kobj, struct ib_port, kobj);
487 struct ib_device *dev = container_of(device, struct ib_device, dev);
497 struct ib_device *dev = container_of(device, struct ib_device, dev);
651 struct ib_device *dev = container_of(device, struct ib_device, dev);
665 struct ib_device *dev = container_of(devic
[all...]
H A Diwcm.c175 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
182 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
266 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
332 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
397 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
420 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
458 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
496 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
549 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
646 cm_id_priv = container_of(cm_i
[all...]
H A Duverbs_main.c132 container_of(ref, struct ib_uverbs_device, ref);
140 container_of(ref, struct ib_uverbs_event_file, ref);
216 container_of(uobj, struct ib_uqp_object, uevent.uobject);
229 container_of(uobj, struct ib_uevent_object, uobject);
241 container_of(uobj, struct ib_ucq_object, uobject);
264 container_of(uobj, struct ib_uxrcd_object, uobject);
294 container_of(ref, struct ib_uverbs_file, ref);
434 uobj = container_of(cq->uobject, struct ib_ucq_object, uobject);
486 struct ib_ucq_object *uobj = container_of(event->element.cq->uobject,
498 uobj = container_of(even
[all...]
H A Dmad.c582 mad_agent_priv = container_of(mad_agent,
587 mad_snoop_priv = container_of(mad_agent,
865 send_wr->cur_seg = container_of(send_wr->rmpp_list.next,
882 mad_agent_priv = container_of(mad_agent, struct ib_mad_agent_private,
967 mad_send_wr = container_of(send_buf, struct ib_mad_send_wr_private,
999 mad_agent_priv = container_of(send_buf->mad_agent,
1001 mad_send_wr = container_of(send_buf, struct ib_mad_send_wr_private,
1081 mad_send_wr = container_of(send_buf,
1174 mad_recv_wc = container_of(mad_recv_buf, struct ib_mad_recv_wc,
1176 mad_priv_hdr = container_of(mad_recv_w
[all...]
H A Dsa_query.c515 struct ib_sa_sm_ah *sm_ah = container_of(kref, struct ib_sa_sm_ah, ref);
524 container_of(work, struct ib_sa_port, update_task);
578 container_of(handler, typeof(*sa_dev), event_handler);
787 container_of(sa_query, struct ib_sa_path_query, sa_query);
801 kfree(container_of(sa_query, struct ib_sa_path_query, sa_query));
876 container_of(sa_query, struct ib_sa_service_query, sa_query);
890 kfree(container_of(sa_query, struct ib_sa_service_query, sa_query));
999 container_of(sa_query, struct ib_sa_mcmember_query, sa_query);
1013 kfree(container_of(sa_query, struct ib_sa_mcmember_query, sa_query));
1090 container_of(sa_quer
[all...]
/freebsd-10.1-release/sys/dev/drm2/i915/
H A Dintel_drv.h202 #define to_intel_crtc(x) container_of(x, struct intel_crtc, base)
203 #define to_intel_connector(x) container_of(x, struct intel_connector, base)
204 #define to_intel_encoder(x) container_of(x, struct intel_encoder, base)
205 #define to_intel_framebuffer(x) container_of(x, struct intel_framebuffer, base)
206 #define to_intel_plane(x) container_of(x, struct intel_plane, base)
/freebsd-10.1-release/contrib/ofed/librdmacm/src/
H A Dcma.c164 #define container_of(ptr, type, field) \ macro
447 id_priv = container_of(id, struct cma_id_private, id);
485 id_priv = container_of(id, struct cma_id_private, id);
538 id_priv = container_of(id, struct cma_id_private, id);
562 id_priv = container_of(id, struct cma_id_private, id);
585 id_priv = container_of(id, struct cma_id_private, id);
611 id_priv = container_of(id, struct cma_id_private, id);
805 id_priv = container_of(id, struct cma_id_private, id);
874 id_priv = container_of(id, struct cma_id_private, id);
905 id_priv = container_of(i
[all...]
/freebsd-10.1-release/sys/dev/cxgbe/iw_cxgbe/
H A Diw_cxgbe.h231 return container_of(ibdev, struct c4iw_dev, ibdev);
236 return container_of(rdev, struct c4iw_dev, rdev);
315 return container_of(ibpd, struct c4iw_pd, ibpd);
346 return container_of(ibmr, struct c4iw_mr, ibmr);
358 return container_of(ibmw, struct c4iw_mw, ibmw);
372 return container_of(ibpl, struct c4iw_fr_page_list, ibpl);
387 return container_of(ibcq, struct c4iw_cq, ibcq);
443 return container_of(ibqp, struct c4iw_qp, ibqp);
456 return container_of(c, struct c4iw_ucontext, ibucontext);
/freebsd-10.1-release/sys/ofed/drivers/net/mlx4/
H A Dsense.c94 struct mlx4_sense *sense = container_of(delay, struct mlx4_sense,
/freebsd-10.1-release/sys/dev/cxgb/
H A Dcxgb_adapter.h544 #define container_of(p, stype, field) ((stype *)(((uint8_t *)(p)) - offsetof(stype, field))) macro
549 return container_of(q, struct sge_qset, fl[qidx]);
555 return container_of(q, struct sge_qset, rspq);
561 return container_of(q, struct sge_qset, txq[qidx]);
564 #undef container_of macro

Completed in 133 milliseconds

1234