Lines Matching refs:qp

164 	 * the qp pointer in the security structure is
170 ib_modify_qp(sec->qp,
174 if (sec->qp->event_handler && sec->qp->qp_context) {
175 event.element.qp = sec->qp;
176 sec->qp->event_handler(&event,
177 sec->qp->qp_context);
183 struct ib_qp *qp = shared_qp_sec->qp;
185 if (qp->event_handler && qp->qp_context) {
186 event.element.qp = qp;
187 event.device = qp->device;
188 qp->event_handler(&event,
189 qp->qp_context);
331 static struct ib_ports_pkeys *get_new_pps(const struct ib_qp *qp,
336 struct ib_ports_pkeys *qp_pps = qp->qp_sec->ports_pkeys;
368 new_pps->main.sec = qp->qp_sec;
369 new_pps->alt.sec = qp->qp_sec;
373 int ib_open_shared_qp_security(struct ib_qp *qp, struct ib_device *dev)
375 struct ib_qp *real_qp = qp->real_qp;
378 ret = ib_create_qp_security(qp, dev);
383 if (!qp->qp_sec)
388 qp->qp_sec);
393 if (qp != real_qp)
394 list_add(&qp->qp_sec->shared_qp_list,
399 destroy_qp_security(qp->qp_sec);
406 struct ib_qp *real_qp = sec->qp->real_qp;
415 int ib_create_qp_security(struct ib_qp *qp, struct ib_device *dev)
431 qp->qp_sec = kzalloc(sizeof(*qp->qp_sec), GFP_KERNEL);
432 if (!qp->qp_sec)
435 qp->qp_sec->qp = qp;
436 qp->qp_sec->dev = dev;
437 mutex_init(&qp->qp_sec->mutex);
438 INIT_LIST_HEAD(&qp->qp_sec->shared_qp_list);
439 atomic_set(&qp->qp_sec->error_list_count, 0);
440 init_completion(&qp->qp_sec->error_complete);
441 ret = security_ib_alloc_security(&qp->qp_sec->security);
443 kfree(qp->qp_sec);
444 qp->qp_sec = NULL;
571 int ib_security_modify_qp(struct ib_qp *qp,
579 struct ib_qp *real_qp = qp->real_qp;
726 if (agent->qp->qp_type == IB_QPT_SMI) {
740 if (map->agent.qp->qp_type == IB_QPT_SMI) {