Searched refs:cm_id_priv (Results 1 - 4 of 4) sorted by relevance

/freebsd-9.3-release/sys/contrib/rdma/
H A Drdma_iwcm.c124 static struct iwcm_work *get_work(struct iwcm_id_private *cm_id_priv) argument
128 if (TAILQ_EMPTY(&cm_id_priv->work_free_list))
130 work = TAILQ_FIRST(&cm_id_priv->work_free_list);
131 TAILQ_REMOVE(&cm_id_priv->work_free_list, work, free_list);
140 static void dealloc_work_entries(struct iwcm_id_private *cm_id_priv) argument
144 TAILQ_FOREACH_SAFE(e, &cm_id_priv->work_free_list, free_list, tmp)
148 static int alloc_work_entries(struct iwcm_id_private *cm_id_priv, int count) argument
152 PANIC_IF(!TAILQ_EMPTY(&cm_id_priv->work_free_list));
156 dealloc_work_entries(cm_id_priv);
159 work->cm_id = cm_id_priv;
182 free_cm_id(struct iwcm_id_private *cm_id_priv) argument
193 iwcm_deref_id(struct iwcm_id_private *cm_id_priv) argument
210 struct iwcm_id_private *cm_id_priv; local
219 struct iwcm_id_private *cm_id_priv; local
235 struct iwcm_id_private *cm_id_priv; local
298 struct iwcm_id_private *cm_id_priv; local
363 struct iwcm_id_private *cm_id_priv; local
426 struct iwcm_id_private *cm_id_priv; local
449 struct iwcm_id_private *cm_id_priv; local
485 struct iwcm_id_private *cm_id_priv; local
522 struct iwcm_id_private *cm_id_priv; local
574 struct iwcm_id_private *cm_id_priv; local
643 struct iwcm_id_private *cm_id_priv; local
713 cm_conn_est_handler(struct iwcm_id_private *cm_id_priv, struct iw_cm_event *iw_event) argument
742 cm_conn_rep_handler(struct iwcm_id_private *cm_id_priv, struct iw_cm_event *iw_event) argument
783 cm_disconnect_handler(struct iwcm_id_private *cm_id_priv, struct iw_cm_event *iw_event) argument
804 cm_close_handler(struct iwcm_id_private *cm_id_priv, struct iw_cm_event *iw_event) argument
832 process_event(struct iwcm_id_private *cm_id_priv, struct iw_cm_event *iw_event) argument
873 struct iwcm_id_private *cm_id_priv = work->cm_id; local
925 struct iwcm_id_private *cm_id_priv; local
962 iwcm_init_qp_init_attr(struct iwcm_id_private *cm_id_priv, struct ib_qp_attr *qp_attr, int *qp_attr_mask) argument
988 iwcm_init_qp_rts_attr(struct iwcm_id_private *cm_id_priv, struct ib_qp_attr *qp_attr, int *qp_attr_mask) argument
1015 struct iwcm_id_private *cm_id_priv; local
[all...]
/freebsd-9.3-release/sys/ofed/drivers/infiniband/core/
H A Diwcm.c89 static struct iwcm_work *get_work(struct iwcm_id_private *cm_id_priv) argument
93 if (list_empty(&cm_id_priv->work_free_list))
95 work = list_entry(cm_id_priv->work_free_list.next, struct iwcm_work,
106 static void dealloc_work_entries(struct iwcm_id_private *cm_id_priv) argument
110 list_for_each_safe(e, tmp, &cm_id_priv->work_free_list)
114 static int alloc_work_entries(struct iwcm_id_private *cm_id_priv, int count) argument
118 BUG_ON(!list_empty(&cm_id_priv->work_free_list));
122 dealloc_work_entries(cm_id_priv);
125 work->cm_id = cm_id_priv;
148 static void free_cm_id(struct iwcm_id_private *cm_id_priv) argument
159 iwcm_deref_id(struct iwcm_id_private *cm_id_priv) argument
173 struct iwcm_id_private *cm_id_priv; local
180 struct iwcm_id_private *cm_id_priv; local
196 struct iwcm_id_private *cm_id_priv; local
260 struct iwcm_id_private *cm_id_priv; local
327 struct iwcm_id_private *cm_id_priv; local
394 struct iwcm_id_private *cm_id_priv; local
415 struct iwcm_id_private *cm_id_priv; local
453 struct iwcm_id_private *cm_id_priv; local
490 struct iwcm_id_private *cm_id_priv; local
543 struct iwcm_id_private *cm_id_priv; local
613 struct iwcm_id_private *cm_id_priv; local
682 cm_conn_est_handler(struct iwcm_id_private *cm_id_priv, struct iw_cm_event *iw_event) argument
712 cm_conn_rep_handler(struct iwcm_id_private *cm_id_priv, struct iw_cm_event *iw_event) argument
752 cm_disconnect_handler(struct iwcm_id_private *cm_id_priv, struct iw_cm_event *iw_event) argument
774 cm_close_handler(struct iwcm_id_private *cm_id_priv, struct iw_cm_event *iw_event) argument
803 process_event(struct iwcm_id_private *cm_id_priv, struct iw_cm_event *iw_event) argument
844 struct iwcm_id_private *cm_id_priv = work->cm_id; local
899 struct iwcm_id_private *cm_id_priv; local
937 iwcm_init_qp_init_attr(struct iwcm_id_private *cm_id_priv, struct ib_qp_attr *qp_attr, int *qp_attr_mask) argument
963 iwcm_init_qp_rts_attr(struct iwcm_id_private *cm_id_priv, struct ib_qp_attr *qp_attr, int *qp_attr_mask) argument
991 struct iwcm_id_private *cm_id_priv; local
[all...]
H A Dcm.c255 static inline void cm_deref_id(struct cm_id_private *cm_id_priv) argument
257 if (atomic_dec_and_test(&cm_id_priv->refcount))
258 complete(&cm_id_priv->comp);
261 static int cm_alloc_msg(struct cm_id_private *cm_id_priv, argument
268 mad_agent = cm_id_priv->av.port->mad_agent;
269 ah = ib_create_ah(mad_agent->qp->pd, &cm_id_priv->av.ah_attr);
273 m = ib_create_send_mad(mad_agent, cm_id_priv->id.remote_cm_qpn,
274 cm_id_priv->av.pkey_index,
284 m->retries = cm_id_priv->max_cm_retries;
286 atomic_inc(&cm_id_priv
339 cm_set_private_data(struct cm_id_private *cm_id_priv, void *private_data, u8 private_data_len) argument
391 cm_alloc_id(struct cm_id_private *cm_id_priv) argument
420 struct cm_id_private *cm_id_priv; local
436 struct cm_id_private *cm_id_priv; local
505 cm_insert_listen(struct cm_id_private *cm_id_priv) argument
549 struct cm_id_private *cm_id_priv; local
660 cm_insert_remote_sidr(struct cm_id_private *cm_id_priv) argument
694 cm_reject_sidr_req(struct cm_id_private *cm_id_priv, enum ib_cm_sidr_status status) argument
708 struct cm_id_private *cm_id_priv; local
737 cm_dequeue_work(struct cm_id_private *cm_id_priv) argument
808 cm_enter_timewait(struct cm_id_private *cm_id_priv) argument
830 cm_reset_to_idle(struct cm_id_private *cm_id_priv) argument
846 struct cm_id_private *cm_id_priv; local
937 struct cm_id_private *cm_id_priv, *cur_cm_id_priv; local
985 cm_form_tid(struct cm_id_private *cm_id_priv, enum cm_msg_sequence msg_seq) argument
1007 cm_format_req(struct cm_req_msg *req_msg, struct cm_id_private *cm_id_priv, struct ib_cm_req_param *param) argument
1123 struct cm_id_private *cm_id_priv; local
1298 cm_format_req_event(struct cm_work *work, struct cm_id_private *cm_id_priv, struct ib_cm_id *listen_id) argument
1332 cm_process_work(struct cm_id_private *cm_id_priv, struct cm_work *work) argument
1355 cm_format_mra(struct cm_mra_msg *mra_msg, struct cm_id_private *cm_id_priv, enum cm_msg_response msg_mraed, u8 service_timeout, const void *private_data, u8 private_data_len) argument
1370 cm_format_rej(struct cm_rej_msg *rej_msg, struct cm_id_private *cm_id_priv, enum ib_cm_rej_reason reason, void *ari, u8 ari_length, const void *private_data, u8 private_data_len) argument
1411 cm_dup_req_handler(struct cm_work *work, struct cm_id_private *cm_id_priv) argument
1454 cm_match_req(struct cm_work *work, struct cm_id_private *cm_id_priv) argument
1540 struct cm_id_private *cm_id_priv, *listen_cm_id_priv; local
1631 cm_format_rep(struct cm_rep_msg *rep_msg, struct cm_id_private *cm_id_priv, struct ib_cm_rep_param *param) argument
1658 struct cm_id_private *cm_id_priv; local
1704 cm_format_rtu(struct cm_rtu_msg *rtu_msg, struct cm_id_private *cm_id_priv, const void *private_data, u8 private_data_len) argument
1721 struct cm_id_private *cm_id_priv; local
1791 struct cm_id_private *cm_id_priv; local
1834 struct cm_id_private *cm_id_priv; local
1921 struct cm_id_private *cm_id_priv; local
1953 struct cm_id_private *cm_id_priv; local
1991 cm_format_dreq(struct cm_dreq_msg *dreq_msg, struct cm_id_private *cm_id_priv, const void *private_data, u8 private_data_len) argument
2010 struct cm_id_private *cm_id_priv; local
2051 cm_format_drep(struct cm_drep_msg *drep_msg, struct cm_id_private *cm_id_priv, const void *private_data, u8 private_data_len) argument
2068 struct cm_id_private *cm_id_priv; local
2139 struct cm_id_private *cm_id_priv; local
2209 struct cm_id_private *cm_id_priv; local
2252 struct cm_id_private *cm_id_priv; local
2322 struct cm_id_private *cm_id_priv; local
2355 struct cm_id_private *cm_id_priv; local
2415 struct cm_id_private *cm_id_priv; local
2504 struct cm_id_private *cm_id_priv; local
2581 cm_format_lap(struct cm_lap_msg *lap_msg, struct cm_id_private *cm_id_priv, struct ib_sa_path_rec *alternate_path, const void *private_data, u8 private_data_len) argument
2617 struct cm_id_private *cm_id_priv; local
2665 cm_format_path_from_lap(struct cm_id_private *cm_id_priv, struct ib_sa_path_rec *path, struct cm_lap_msg *lap_msg) argument
2691 struct cm_id_private *cm_id_priv; local
2763 cm_format_apr(struct cm_apr_msg *apr_msg, struct cm_id_private *cm_id_priv, enum ib_cm_apr_status status, void *info, u8 info_length, const void *private_data, u8 private_data_len) argument
2792 struct cm_id_private *cm_id_priv; local
2831 struct cm_id_private *cm_id_priv; local
2875 struct cm_id_private *cm_id_priv; local
2910 cm_format_sidr_req(struct cm_sidr_req_msg *sidr_req_msg, struct cm_id_private *cm_id_priv, struct ib_cm_sidr_req_param *param) argument
2928 struct cm_id_private *cm_id_priv; local
2998 struct cm_id_private *cm_id_priv, *cur_cm_id_priv; local
3054 cm_format_sidr_rep(struct cm_sidr_rep_msg *sidr_rep_msg, struct cm_id_private *cm_id_priv, struct ib_cm_sidr_rep_param *param) argument
3077 struct cm_id_private *cm_id_priv; local
3138 struct cm_id_private *cm_id_priv; local
3166 struct cm_id_private *cm_id_priv; local
3311 struct cm_id_private *cm_id_priv; local
3360 struct cm_id_private *cm_id_priv; local
3465 cm_init_qp_init_attr(struct cm_id_private *cm_id_priv, struct ib_qp_attr *qp_attr, int *qp_attr_mask) argument
3501 cm_init_qp_rtr_attr(struct cm_id_private *cm_id_priv, struct ib_qp_attr *qp_attr, int *qp_attr_mask) argument
3547 cm_init_qp_rts_attr(struct cm_id_private *cm_id_priv, struct ib_qp_attr *qp_attr, int *qp_attr_mask) argument
3604 struct cm_id_private *cm_id_priv; local
[all...]
/freebsd-9.3-release/contrib/ofed/libibcm/src/
H A Dcm.c229 static void ib_cm_free_id(struct cm_id_private *cm_id_priv) argument
231 pthread_cond_destroy(&cm_id_priv->cond);
232 pthread_mutex_destroy(&cm_id_priv->mut);
233 free(cm_id_priv);
239 struct cm_id_private *cm_id_priv; local
241 cm_id_priv = malloc(sizeof *cm_id_priv);
242 if (!cm_id_priv)
245 memset(cm_id_priv, 0, sizeof *cm_id_priv);
263 struct cm_id_private *cm_id_priv; local
293 struct cm_id_private *cm_id_priv; local
823 struct cm_id_private *cm_id_priv; local
1000 struct cm_id_private *cm_id_priv; local
[all...]

Completed in 104 milliseconds