Lines Matching refs:cm_info
43 qedr_fill_sockaddr4(const struct qed_iwarp_cm_info *cm_info, in qedr_fill_sockaddr4() argument
52 laddr->sin_port = htons(cm_info->local_port); in qedr_fill_sockaddr4()
53 raddr->sin_port = htons(cm_info->remote_port); in qedr_fill_sockaddr4()
55 laddr->sin_addr.s_addr = htonl(cm_info->local_ip[0]); in qedr_fill_sockaddr4()
56 raddr->sin_addr.s_addr = htonl(cm_info->remote_ip[0]); in qedr_fill_sockaddr4()
60 qedr_fill_sockaddr6(const struct qed_iwarp_cm_info *cm_info, in qedr_fill_sockaddr6() argument
71 laddr6->sin6_port = htons(cm_info->local_port); in qedr_fill_sockaddr6()
72 raddr6->sin6_port = htons(cm_info->remote_port); in qedr_fill_sockaddr6()
76 htonl(cm_info->local_ip[i]); in qedr_fill_sockaddr6()
78 htonl(cm_info->remote_ip[i]); in qedr_fill_sockaddr6()
124 params->cm_info->ip_version == QED_TCP_IPV4) in qedr_iw_mpa_request()
125 qedr_fill_sockaddr4(params->cm_info, &event); in qedr_iw_mpa_request()
127 qedr_fill_sockaddr6(params->cm_info, &event); in qedr_iw_mpa_request()
130 event.private_data = (void *)params->cm_info->private_data; in qedr_iw_mpa_request()
131 event.private_data_len = (u8)params->cm_info->private_data_len; in qedr_iw_mpa_request()
132 event.ord = params->cm_info->ord; in qedr_iw_mpa_request()
133 event.ird = params->cm_info->ird; in qedr_iw_mpa_request()
150 if (params->cm_info) { in qedr_iw_issue_event()
151 event.ird = params->cm_info->ird; in qedr_iw_issue_event()
152 event.ord = params->cm_info->ord; in qedr_iw_issue_event()
160 params->cm_info->private_data_len; in qedr_iw_issue_event()
162 (void *)params->cm_info->private_data; in qedr_iw_issue_event()
536 struct qed_iwarp_cm_info *cm_info; in qedr_iw_connect() local
582 cm_info = &in_params.cm_info; in qedr_iw_connect()
583 memset(cm_info->local_ip, 0, sizeof(cm_info->local_ip)); in qedr_iw_connect()
584 memset(cm_info->remote_ip, 0, sizeof(cm_info->remote_ip)); in qedr_iw_connect()
588 cm_info->ip_version = QED_TCP_IPV4; in qedr_iw_connect()
590 cm_info->remote_ip[0] = ntohl(raddr->sin_addr.s_addr); in qedr_iw_connect()
591 cm_info->local_ip[0] = ntohl(laddr->sin_addr.s_addr); in qedr_iw_connect()
592 cm_info->remote_port = ntohs(raddr->sin_port); in qedr_iw_connect()
593 cm_info->local_port = ntohs(laddr->sin_port); in qedr_iw_connect()
594 cm_info->vlan = qedr_iw_get_vlan_ipv4(dev, cm_info->local_ip); in qedr_iw_connect()
603 in_params.cm_info.ip_version = QED_TCP_IPV6; in qedr_iw_connect()
606 cm_info->remote_ip[i] = in qedr_iw_connect()
608 cm_info->local_ip[i] = in qedr_iw_connect()
612 cm_info->local_port = ntohs(laddr6->sin6_port); in qedr_iw_connect()
613 cm_info->remote_port = ntohs(raddr6->sin6_port); in qedr_iw_connect()
618 cm_info->vlan = qedr_iw_get_vlan_ipv6(cm_info->local_ip); in qedr_iw_connect()
631 cm_info->ord = conn_param->ord; in qedr_iw_connect()
632 cm_info->ird = conn_param->ird; in qedr_iw_connect()
633 cm_info->private_data = conn_param->private_data; in qedr_iw_connect()
634 cm_info->private_data_len = conn_param->private_data_len; in qedr_iw_connect()