/drivers/infiniband/core/ |
D | addr.c | 61 void (*callback)(int status, struct sockaddr *src_addr, 195 int rdma_addr_size(const struct sockaddr *addr) in rdma_addr_size() 212 int ret = rdma_addr_size((struct sockaddr *) addr); in rdma_addr_size_in6() 220 int ret = rdma_addr_size((struct sockaddr *) addr); in rdma_addr_size_kss() 246 rdma_find_ndev_for_src_ip_rcu(struct net *net, const struct sockaddr *src_in) in rdma_find_ndev_for_src_ip_rcu() 275 int rdma_translate_ip(const struct sockaddr *addr, in rdma_translate_ip() 364 const struct sockaddr *dst_in, u32 seq) in fetch_ha() 384 static int addr4_resolve(struct sockaddr *src_sock, in addr4_resolve() 385 const struct sockaddr *dst_sock, in addr4_resolve() 417 static int addr6_resolve(struct sockaddr *src_sock, in addr6_resolve() [all …]
|
D | cma.c | 72 static void cma_iboe_set_mgid(struct sockaddr *addr, union ib_gid *mgid, 438 static struct sockaddr *cma_src_addr(struct rdma_id_private *id_priv) in cma_src_addr() 440 return (struct sockaddr *)&id_priv->id.route.addr.src_addr; in cma_src_addr() 443 static inline struct sockaddr *cma_dst_addr(struct rdma_id_private *id_priv) in cma_dst_addr() 445 return (struct sockaddr *)&id_priv->id.route.addr.dst_addr; in cma_dst_addr() 468 static int compare_netdev_and_ip(int ifindex_a, struct sockaddr *sa, in compare_netdev_and_ip() 474 struct sockaddr *sb = cma_dst_addr(id_priv); in compare_netdev_and_ip() 542 node_from_ndev_ip(struct rb_root *root, int ifindex, struct sockaddr *sa) in node_from_ndev_ip() 668 static int cma_translate_addr(struct sockaddr *addr, struct rdma_dev_addr *dev_addr) in cma_translate_addr() 770 rdma_ip2gid((struct sockaddr *)&id_priv->id.route.addr.src_addr, in cma_acquire_dev_by_src_ip() [all …]
|
D | ucma.c | 643 ret = rdma_bind_addr(ctx->cm_id, (struct sockaddr *) &cmd.addr); in ucma_bind_ip() 669 ret = rdma_bind_addr(ctx->cm_id, (struct sockaddr *) &cmd.addr); in ucma_bind() 695 ret = rdma_resolve_addr(ctx->cm_id, (struct sockaddr *) &cmd.src_addr, in ucma_resolve_ip() 696 (struct sockaddr *) &cmd.dst_addr, cmd.timeout_ms); in ucma_resolve_ip() 723 ret = rdma_resolve_addr(ctx->cm_id, (struct sockaddr *) &cmd.src_addr, in ucma_resolve_addr() 724 (struct sockaddr *) &cmd.dst_addr, cmd.timeout_ms); in ucma_resolve_addr() 787 rdma_ip2gid((struct sockaddr *)&route->addr.dst_addr, in ucma_copy_iboe_route() 789 rdma_ip2gid((struct sockaddr *)&route->addr.src_addr, in ucma_copy_iboe_route() 823 struct sockaddr *addr; in ucma_query_route() 838 addr = (struct sockaddr *) &ctx->cm_id->route.addr.src_addr; in ucma_query_route() [all …]
|
D | roce_gid_mgmt.c | 285 struct sockaddr *addr) in update_gid_ip() 369 (struct sockaddr *)&sin_iter->ip); in enum_netdev_ipv4_ips() 414 rdma_ip2gid((struct sockaddr *)&sin6_iter->sin6, &gid); in enum_netdev_ipv6_ips() 818 struct sockaddr *sa, struct net_device *ndev) in addr_event() 868 return addr_event(this, event, (struct sockaddr *)&in, ndev); in inetaddr_event() 882 return addr_event(this, event, (struct sockaddr *)&in6, ndev); in inet6addr_event()
|
D | iwpm_util.c | 489 void iwpm_print_sockaddr(struct sockaddr_storage *sockaddr, char *msg) in iwpm_print_sockaddr() argument 494 switch (sockaddr->ss_family) { in iwpm_print_sockaddr() 496 sockaddr_v4 = (struct sockaddr_in *)sockaddr; in iwpm_print_sockaddr() 503 sockaddr_v6 = (struct sockaddr_in6 *)sockaddr; in iwpm_print_sockaddr()
|
D | core_priv.h | 328 int rdma_resolve_ip_route(struct sockaddr *src_addr, 329 const struct sockaddr *dst_addr,
|
D | iwpm_util.h | 252 void iwpm_print_sockaddr(struct sockaddr_storage *sockaddr, char *msg);
|
/drivers/xen/ |
D | pvcalls-front.h | 7 int pvcalls_front_connect(struct socket *sock, struct sockaddr *addr, 10 struct sockaddr *addr,
|
/drivers/infiniband/hw/mlx5/ |
D | macsec.c | 81 const struct sockaddr *addr, u16 gid_idx) in mlx5_macsec_save_roce_gid() 109 mlx5_macsec_add_roce_sa_rules(data->fs_id, (struct sockaddr *)&gid->addr, in handle_macsec_gids() 276 rdma_gid2ip((struct sockaddr *)&addr, &attr->gid); in mlx5r_add_gid_macsec_operations() 277 ret = mlx5_macsec_add_roce_rule(ndev, (struct sockaddr *)&addr, attr->index, in mlx5r_add_gid_macsec_operations() 283 mlx5_macsec_save_roce_gid(macsec_device, (struct sockaddr *)&addr, attr->index); in mlx5r_add_gid_macsec_operations()
|
/drivers/target/iscsi/ |
D | iscsi_target_login.c | 816 struct sockaddr_storage *sockaddr) in iscsit_setup_np() argument 840 ret = sock_create(sockaddr->ss_family, np->np_sock_type, in iscsit_setup_np() 851 memcpy(&np->np_sockaddr, sockaddr, in iscsit_setup_np() 854 if (sockaddr->ss_family == AF_INET6) in iscsit_setup_np() 866 ret = kernel_bind(sock, (struct sockaddr *)&np->np_sockaddr, len); in iscsit_setup_np() 887 struct sockaddr_storage *sockaddr) in iscsi_target_setup_login_socket() argument 896 rc = t->iscsit_setup_np(np, sockaddr); in iscsi_target_setup_login_socket() 925 (struct sockaddr *)&sock_in6, 1); in iscsit_accept_np() 939 (struct sockaddr *)&sock_in6, 0); in iscsit_accept_np() 955 (struct sockaddr *)&sock_in, 1); in iscsit_accept_np() [all …]
|
D | iscsi_target_tpg.c | 423 struct sockaddr_storage *sockaddr, in iscsit_tpg_check_network_portal() argument 438 match = iscsit_check_np_match(sockaddr, np, in iscsit_tpg_check_network_portal() 455 struct sockaddr_storage *sockaddr, in iscsit_tpg_add_network_portal() argument 463 if (iscsit_tpg_check_network_portal(tpg->tpg_tiqn, sockaddr, in iscsit_tpg_add_network_portal() 466 " different TPG on %s\n", sockaddr, in iscsit_tpg_add_network_portal() 479 np = iscsit_add_np(sockaddr, network_transport); in iscsit_tpg_add_network_portal()
|
/drivers/net/ethernet/freescale/enetc/ |
D | enetc_vf.c | 49 struct sockaddr *saddr) in enetc_msg_vsi_set_primary_mac_addr() 67 memcpy(&cmd->mac, saddr, sizeof(struct sockaddr)); in enetc_msg_vsi_set_primary_mac_addr() 80 struct sockaddr *saddr = addr; in enetc_vf_set_mac_addr()
|
/drivers/infiniband/hw/erdma/ |
D | erdma_cm.h | 144 return s->ops->getname(s, (struct sockaddr *)a, 1); in getname_peer() 149 return s->ops->getname(s, (struct sockaddr *)a, 0); in getname_local()
|
D | erdma_cm.c | 986 static int kernel_bindconnect(struct socket *s, struct sockaddr *laddr, in kernel_bindconnect() 987 int laddrlen, struct sockaddr *raddr, in kernel_bindconnect() 1006 struct sockaddr *laddr = (struct sockaddr *)&id->m_local_addr; in erdma_connect() 1007 struct sockaddr *raddr = (struct sockaddr *)&id->m_remote_addr; in erdma_connect() 1312 ret = s->ops->bind(s, (struct sockaddr *)laddr, in erdma_create_listen()
|
/drivers/infiniband/sw/siw/ |
D | siw_cm.h | 97 return s->ops->getname(s, (struct sockaddr *)a, 1); in getname_peer() 102 return s->ops->getname(s, (struct sockaddr *)a, 0); in getname_local()
|
D | siw_cm.c | 1317 static int kernel_bindconnect(struct socket *s, struct sockaddr *laddr, in kernel_bindconnect() 1318 struct sockaddr *raddr, bool afonly) in kernel_bindconnect() 1350 struct sockaddr *laddr = (struct sockaddr *)&id->local_addr, in siw_connect() 1351 *raddr = (struct sockaddr *)&id->remote_addr; in siw_connect() 1375 raddr = (struct sockaddr *)&id->m_remote_addr; in siw_connect() 1804 rv = s->ops->bind(s, (struct sockaddr *)laddr, in siw_create_listen() 1822 rv = s->ops->bind(s, (struct sockaddr *)laddr, in siw_create_listen()
|
/drivers/infiniband/ulp/rtrs/ |
D | rtrs-srv-sysfs.c | 51 sockaddr_to_str((struct sockaddr *)&srv_path->s.dst_addr, str, in rtrs_srv_disconnect_store() 104 cnt = sockaddr_to_str((struct sockaddr *)&srv_path->s.dst_addr, in rtrs_srv_src_addr_show() 120 len = sockaddr_to_str((struct sockaddr *)&srv_path->s.src_addr, page, in rtrs_srv_dst_addr_show()
|
D | rtrs.c | 482 int sockaddr_to_str(const struct sockaddr *addr, char *buf, size_t len) in sockaddr_to_str() 514 cnt = sockaddr_to_str((struct sockaddr *)addr->src, in rtrs_addr_to_str() 517 sockaddr_to_str((struct sockaddr *)addr->dst, in rtrs_addr_to_str()
|
/drivers/infiniband/ulp/srp/ |
D | ib_srp.h | 247 struct sockaddr sa; 253 struct sockaddr sa;
|
/drivers/infiniband/sw/rxe/ |
D | rxe_av.c | 109 rdma_gid2ip((struct sockaddr *)&av->sgid_addr, &sgid_attr->gid); in rxe_av_fill_ip_info() 110 rdma_gid2ip((struct sockaddr *)&av->dgid_addr, in rxe_av_fill_ip_info()
|
/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_ah.c | 135 rdma_gid2ip((struct sockaddr *)&sgid_addr, sgid); in set_av_attr() 137 rdma_gid2ip((struct sockaddr*)&dgid_addr, &ib_grh->dgid); in set_av_attr()
|
/drivers/infiniband/ulp/iser/ |
D | iscsi_iser.h | 522 struct sockaddr *src_addr, 523 struct sockaddr *dst_addr,
|
/drivers/net/wireguard/ |
D | peer.h | 23 struct sockaddr addr;
|
/drivers/scsi/be2iscsi/ |
D | be_iscsi.h | 66 struct sockaddr *dst_addr,
|
/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_netdev.c | 146 struct sockaddr saddr; in opa_vnic_process_vema_config() 205 struct sockaddr *sa = addr; in opa_vnic_set_mac_addr()
|