• Home
  • Raw
  • Download

Lines Matching refs:da

666 	struct nfs4_pnfs_ds_addr *da;  in destroy_ds()  local
675 da = list_first_entry(&ds->ds_addrs, in destroy_ds()
678 list_del_init(&da->da_node); in destroy_ds()
679 kfree(da->da_remotestr); in destroy_ds()
680 kfree(da); in destroy_ds()
705 struct nfs4_pnfs_ds_addr *da; in nfs4_pnfs_remotestr() local
711 list_for_each_entry(da, dsaddrs, da_node) { in nfs4_pnfs_remotestr()
712 len += strlen(da->da_remotestr) + 1; /* string plus comma */ in nfs4_pnfs_remotestr()
722 list_for_each_entry(da, dsaddrs, da_node) { in nfs4_pnfs_remotestr()
723 size_t ll = strlen(da->da_remotestr); in nfs4_pnfs_remotestr()
728 memcpy(p, da->da_remotestr, ll); in nfs4_pnfs_remotestr()
840 struct nfs4_pnfs_ds_addr *da; in _nfs4_pnfs_v3_ds_connect() local
848 list_for_each_entry(da, &ds->ds_addrs, da_node) { in _nfs4_pnfs_v3_ds_connect()
850 __func__, ds->ds_remotestr, da->da_remotestr); in _nfs4_pnfs_v3_ds_connect()
856 .dstaddr = (struct sockaddr *)&da->da_addr, in _nfs4_pnfs_v3_ds_connect()
857 .addrlen = da->da_addrlen, in _nfs4_pnfs_v3_ds_connect()
866 (struct sockaddr *)&da->da_addr, in _nfs4_pnfs_v3_ds_connect()
867 da->da_addrlen, IPPROTO_TCP, in _nfs4_pnfs_v3_ds_connect()
894 struct nfs4_pnfs_ds_addr *da; in _nfs4_pnfs_v4_ds_connect() local
899 list_for_each_entry(da, &ds->ds_addrs, da_node) { in _nfs4_pnfs_v4_ds_connect()
901 __func__, ds->ds_remotestr, da->da_remotestr); in _nfs4_pnfs_v4_ds_connect()
907 .dstaddr = (struct sockaddr *)&da->da_addr, in _nfs4_pnfs_v4_ds_connect()
908 .addrlen = da->da_addrlen, in _nfs4_pnfs_v4_ds_connect()
931 (struct sockaddr *)&da->da_addr, in _nfs4_pnfs_v4_ds_connect()
932 da->da_addrlen, IPPROTO_TCP, in _nfs4_pnfs_v4_ds_connect()
1021 struct nfs4_pnfs_ds_addr *da = NULL; in nfs4_decode_mp_ds_addr() local
1092 da = kzalloc(sizeof(*da), gfp_flags); in nfs4_decode_mp_ds_addr()
1093 if (unlikely(!da)) in nfs4_decode_mp_ds_addr()
1096 INIT_LIST_HEAD(&da->da_node); in nfs4_decode_mp_ds_addr()
1098 if (!rpc_pton(net, buf, portstr-buf, (struct sockaddr *)&da->da_addr, in nfs4_decode_mp_ds_addr()
1099 sizeof(da->da_addr))) { in nfs4_decode_mp_ds_addr()
1108 switch (da->da_addr.ss_family) { in nfs4_decode_mp_ds_addr()
1110 ((struct sockaddr_in *)&da->da_addr)->sin_port = port; in nfs4_decode_mp_ds_addr()
1111 da->da_addrlen = sizeof(struct sockaddr_in); in nfs4_decode_mp_ds_addr()
1117 ((struct sockaddr_in6 *)&da->da_addr)->sin6_port = port; in nfs4_decode_mp_ds_addr()
1118 da->da_addrlen = sizeof(struct sockaddr_in6); in nfs4_decode_mp_ds_addr()
1127 __func__, da->da_addr.ss_family); in nfs4_decode_mp_ds_addr()
1139 da->da_remotestr = kzalloc(len, gfp_flags); in nfs4_decode_mp_ds_addr()
1142 if (da->da_remotestr) in nfs4_decode_mp_ds_addr()
1143 snprintf(da->da_remotestr, len, "%s%s%s:%u", startsep, in nfs4_decode_mp_ds_addr()
1146 dprintk("%s: Parsed DS addr %s\n", __func__, da->da_remotestr); in nfs4_decode_mp_ds_addr()
1149 return da; in nfs4_decode_mp_ds_addr()
1152 kfree(da); in nfs4_decode_mp_ds_addr()