Lines Matching refs:new_pps
335 struct ib_ports_pkeys *new_pps; in get_new_pps() local
338 new_pps = kzalloc(sizeof(*new_pps), GFP_KERNEL); in get_new_pps()
339 if (!new_pps) in get_new_pps()
343 new_pps->main.port_num = qp_attr->port_num; in get_new_pps()
345 new_pps->main.port_num = qp_pps->main.port_num; in get_new_pps()
348 new_pps->main.pkey_index = qp_attr->pkey_index; in get_new_pps()
350 new_pps->main.pkey_index = qp_pps->main.pkey_index; in get_new_pps()
355 new_pps->main.state = IB_PORT_PKEY_VALID; in get_new_pps()
358 new_pps->alt.port_num = qp_attr->alt_port_num; in get_new_pps()
359 new_pps->alt.pkey_index = qp_attr->alt_pkey_index; in get_new_pps()
360 new_pps->alt.state = IB_PORT_PKEY_VALID; in get_new_pps()
362 new_pps->alt.port_num = qp_pps->alt.port_num; in get_new_pps()
363 new_pps->alt.pkey_index = qp_pps->alt.pkey_index; in get_new_pps()
365 new_pps->alt.state = IB_PORT_PKEY_VALID; in get_new_pps()
368 new_pps->main.sec = qp->qp_sec; in get_new_pps()
369 new_pps->alt.sec = qp->qp_sec; in get_new_pps()
370 return new_pps; in get_new_pps()
578 struct ib_ports_pkeys *new_pps = NULL; in ib_security_modify_qp() local
600 new_pps = get_new_pps(real_qp, in ib_security_modify_qp()
603 if (!new_pps) { in ib_security_modify_qp()
614 ret = port_pkey_list_insert(&new_pps->main); in ib_security_modify_qp()
617 ret = port_pkey_list_insert(&new_pps->alt); in ib_security_modify_qp()
620 ret = check_qp_port_pkey_settings(new_pps, in ib_security_modify_qp()
630 if (new_pps) { in ib_security_modify_qp()
635 tmp_pps = new_pps; in ib_security_modify_qp()
638 real_qp->qp_sec->ports_pkeys = new_pps; in ib_security_modify_qp()