Lines Matching refs:addr
7 struct ceph_entity_addr *addr) in ceph_decode_entity_addr_versioned() argument
22 ceph_decode_copy_safe(p, end, &addr->type, sizeof(addr->type), bad); in ceph_decode_entity_addr_versioned()
24 ceph_decode_copy_safe(p, end, &addr->nonce, sizeof(addr->nonce), bad); in ceph_decode_entity_addr_versioned()
27 if (addr_len > sizeof(addr->in_addr)) in ceph_decode_entity_addr_versioned()
30 memset(&addr->in_addr, 0, sizeof(addr->in_addr)); in ceph_decode_entity_addr_versioned()
32 ceph_decode_copy_safe(p, end, &addr->in_addr, addr_len, bad); in ceph_decode_entity_addr_versioned()
34 addr->in_addr.ss_family = in ceph_decode_entity_addr_versioned()
35 le16_to_cpu((__force __le16)addr->in_addr.ss_family); in ceph_decode_entity_addr_versioned()
47 struct ceph_entity_addr *addr) in ceph_decode_entity_addr_legacy() argument
58 addr->type = CEPH_ENTITY_ADDR_TYPE_LEGACY; in ceph_decode_entity_addr_legacy()
59 ceph_decode_copy_safe(p, end, &addr->nonce, sizeof(addr->nonce), bad); in ceph_decode_entity_addr_legacy()
60 memset(&addr->in_addr, 0, sizeof(addr->in_addr)); in ceph_decode_entity_addr_legacy()
61 ceph_decode_copy_safe(p, end, &addr->in_addr, in ceph_decode_entity_addr_legacy()
62 sizeof(addr->in_addr), bad); in ceph_decode_entity_addr_legacy()
63 addr->in_addr.ss_family = in ceph_decode_entity_addr_legacy()
64 be16_to_cpu((__force __be16)addr->in_addr.ss_family); in ceph_decode_entity_addr_legacy()
71 ceph_decode_entity_addr(void **p, void *end, struct ceph_entity_addr *addr) in ceph_decode_entity_addr() argument
77 return ceph_decode_entity_addr_versioned(p, end, addr); in ceph_decode_entity_addr()
79 return ceph_decode_entity_addr_legacy(p, end, addr); in ceph_decode_entity_addr()