Lines Matching refs:loc_addr
80 memcpy(cm_info->loc_addr, cm_node->loc_addr, sizeof(cm_info->loc_addr)); in irdma_get_addr_info()
103 laddr->sin_addr.s_addr = htonl(cm_node->loc_addr[0]); in irdma_fill_sockaddr4()
125 cm_node->loc_addr); in irdma_fill_sockaddr6()
246 memcpy(event->cm_info.loc_addr, cm_node->loc_addr, in irdma_create_event()
247 sizeof(event->cm_info.loc_addr)); in irdma_create_event()
253 event, type, event->cm_info.loc_addr, in irdma_create_event()
501 iph->saddr = htonl(cm_node->loc_addr[0]); in irdma_form_uda_cm_frame()
532 cm_node->loc_addr); in irdma_form_uda_cm_frame()
608 cm_node->loc_port, cm_node->rem_addr, cm_node->loc_addr); in irdma_send_reset()
1480 memcpy(listen_addr, listen_node->loc_addr, sizeof(listen_addr)); in irdma_find_listener()
1524 child_listen_node->loc_addr, in irdma_del_multiple_qhash()
1530 child_listen_node->loc_addr, in irdma_del_multiple_qhash()
1535 memcpy(cm_info->loc_addr, child_listen_node->loc_addr, in irdma_del_multiple_qhash()
1536 sizeof(cm_info->loc_addr)); in irdma_del_multiple_qhash()
1558 static u8 irdma_iw_get_vlan_prio(u32 *loc_addr, u8 prio, bool ipv4) in irdma_iw_get_vlan_prio() argument
1564 ndev = ip_dev_find(&init_net, htonl(loc_addr[0])); in irdma_iw_get_vlan_prio()
1569 irdma_copy_ip_htonl(laddr6.in6_u.u6_addr32, loc_addr); in irdma_iw_get_vlan_prio()
1698 irdma_copy_ip_ntohl(child_listen_node->loc_addr, in irdma_add_mqh_6()
1700 memcpy(cm_info->loc_addr, child_listen_node->loc_addr, in irdma_add_mqh_6()
1701 sizeof(cm_info->loc_addr)); in irdma_add_mqh_6()
1704 irdma_iw_get_vlan_prio(child_listen_node->loc_addr, in irdma_add_mqh_6()
1788 child_listen_node->loc_addr[0] = in irdma_add_mqh_4()
1790 memcpy(cm_info->loc_addr, child_listen_node->loc_addr, in irdma_add_mqh_4()
1791 sizeof(cm_info->loc_addr)); in irdma_add_mqh_4()
1794 irdma_iw_get_vlan_prio(child_listen_node->loc_addr, in irdma_add_mqh_4()
1922 memcpy(nfo.loc_addr, listener->loc_addr, sizeof(nfo.loc_addr)); in irdma_dec_refcnt_listen()
1945 listener->loc_port, listener->loc_addr, listener, in irdma_dec_refcnt_listen()
2097 u32 *loc_addr, u16 vlan_id) in irdma_find_node() argument
2106 !memcmp(cm_node->loc_addr, loc_addr, sizeof(cm_node->loc_addr)) && in irdma_find_node()
2144 bool irdma_ipv4_is_lpb(u32 loc_addr, u32 rem_addr) in irdma_ipv4_is_lpb() argument
2146 return ipv4_is_loopback(htonl(rem_addr)) || (loc_addr == rem_addr); in irdma_ipv4_is_lpb()
2154 bool irdma_ipv6_is_lpb(u32 *loc_addr, u32 *rem_addr) in irdma_ipv6_is_lpb() argument
2160 return !memcmp(loc_addr, rem_addr, 16) || ipv6_addr_loopback(&raddr6); in irdma_ipv6_is_lpb()
2182 ah_info.src_ip_addr[0] = cm_node->loc_addr[0]; in irdma_cm_create_ah()
2188 memcpy(ah_info.src_ip_addr, cm_node->loc_addr, in irdma_cm_create_ah()
2266 irdma_iw_get_vlan_prio(cm_info->loc_addr, in irdma_make_cm_node()
2276 memcpy(cm_node->loc_addr, cm_info->loc_addr, sizeof(cm_node->loc_addr)); in irdma_make_cm_node()
2303 cm_node->tcp_cntxt.loc_seq_num = secure_tcp_seq(htonl(cm_node->loc_addr[0]), in irdma_make_cm_node()
2310 htonl(cm_node->loc_addr[0]), htonl(cm_node->loc_addr[1]), in irdma_make_cm_node()
2311 htonl(cm_node->loc_addr[2]), htonl(cm_node->loc_addr[3]) in irdma_make_cm_node()
2324 irdma_ipv4_is_lpb(cm_node->loc_addr[0], cm_node->rem_addr[0])) || in irdma_make_cm_node()
2326 irdma_ipv6_is_lpb(cm_node->loc_addr, cm_node->rem_addr))) { in irdma_make_cm_node()
2337 cm_info->loc_addr[0], in irdma_make_cm_node()
2342 cm_info->loc_addr, in irdma_make_cm_node()
2514 cm_node->loc_addr); in irdma_handle_rst_pkt()
2955 irdma_find_listener(cm_core, cm_info->loc_addr, cm_info->ipv4, in irdma_make_listen_node()
2972 memcpy(listener->loc_addr, cm_info->loc_addr, in irdma_make_listen_node()
2973 sizeof(listener->loc_addr)); in irdma_make_listen_node()
3179 cm_info.loc_addr[0] = ntohl(iph->daddr); in irdma_receive_ilq()
3185 irdma_copy_ip_ntohl(cm_info.loc_addr, in irdma_receive_ilq()
3195 cm_info.loc_port, cm_info.loc_addr, cm_info.vlan_id); in irdma_receive_ilq()
3205 cm_info.loc_addr, in irdma_receive_ilq()
3363 tcp_info->local_ipaddr[3] = cm_node->loc_addr[0]; in irdma_init_tcp_ctx()
3373 memcpy(tcp_info->local_ipaddr, cm_node->loc_addr, in irdma_init_tcp_ctx()
3663 cm_node->vlan_id = irdma_get_vlan_ipv4(cm_node->loc_addr); in irdma_accept()
3666 irdma_get_vlan_mac_ipv6(cm_node->loc_addr, &cm_node->vlan_id, in irdma_accept()
3772 cm_node->loc_addr, cm_node, cm_id, ibqp->qp_num); in irdma_accept()
3857 memset(cm_info.loc_addr, 0, sizeof(cm_info.loc_addr)); in irdma_connect()
3859 cm_info.loc_addr[0] = ntohl(laddr->sin_addr.s_addr); in irdma_connect()
3863 cm_info.vlan_id = irdma_get_vlan_ipv4(cm_info.loc_addr); in irdma_connect()
3869 irdma_copy_ip_ntohl(cm_info.loc_addr, in irdma_connect()
3875 irdma_get_vlan_mac_ipv6(cm_info.loc_addr, &cm_info.vlan_id, in irdma_connect()
3886 cm_info.user_pri = irdma_iw_get_vlan_prio(cm_info.loc_addr, in irdma_connect()
3938 cm_node->loc_addr, cm_node, cm_id, ibqp->qp_num); in irdma_connect()
3987 cm_info.loc_addr[0] = ntohl(laddr->sin_addr.s_addr); in irdma_create_listen()
3991 cm_info.vlan_id = irdma_get_vlan_ipv4(cm_info.loc_addr); in irdma_create_listen()
4001 irdma_copy_ip_ntohl(cm_info.loc_addr, in irdma_create_listen()
4005 irdma_get_vlan_mac_ipv6(cm_info.loc_addr, in irdma_create_listen()
4045 irdma_iw_get_vlan_prio(cm_info.loc_addr, in irdma_create_listen()
4068 cm_listen_node->loc_port, cm_listen_node->loc_addr, in irdma_create_listen()
4122 !memcmp(cm_node->loc_addr, ipaddr, nfo->ipv4 ? 4 : 16))) && in irdma_teardown_list_prep()
4348 if (!memcmp(child_listen_node->loc_addr, ipaddr, ipv4 ? 4 : 16)) in irdma_qhash_ctrl()
4361 memcpy(child_listen_node->loc_addr, ipaddr, ipv4 ? 4 : 16); in irdma_qhash_ctrl()
4364 memcpy(nfo->loc_addr, child_listen_node->loc_addr, in irdma_qhash_ctrl()
4365 sizeof(nfo->loc_addr)); in irdma_qhash_ctrl()
4408 (memcmp(listen_node->loc_addr, ipaddr, ipv4 ? 4 : 16) && in irdma_if_notify()
4409 memcmp(listen_node->loc_addr, ip_zero, ipv4 ? 4 : 16))) in irdma_if_notify()
4412 memcpy(nfo.loc_addr, listen_node->loc_addr, in irdma_if_notify()
4413 sizeof(nfo.loc_addr)); in irdma_if_notify()
4419 } else if (memcmp(listen_node->loc_addr, ip_zero, in irdma_if_notify()