Lines Matching refs:name_len
163 static struct crush_name_node *alloc_crush_name(size_t name_len) in alloc_crush_name() argument
167 cn = kmalloc(sizeof(*cn) + name_len + 1, GFP_NOIO); in alloc_crush_name()
192 u32 name_len; in DEFINE_RB_FUNCS() local
195 ceph_decode_32_safe(p, end, name_len, e_inval); in DEFINE_RB_FUNCS()
196 ceph_decode_need(p, end, name_len, e_inval); in DEFINE_RB_FUNCS()
198 cn = alloc_crush_name(name_len); in DEFINE_RB_FUNCS()
203 memcpy(cn->cn_name, *p, name_len); in DEFINE_RB_FUNCS()
204 cn->cn_name[name_len] = '\0'; in DEFINE_RB_FUNCS()
205 *p += name_len; in DEFINE_RB_FUNCS()
2144 dest->name = kmalloc(src->name_len + 1, in ceph_oid_copy()
2149 memcpy(dest->name, src->name, src->name_len + 1); in ceph_oid_copy()
2150 dest->name_len = src->name_len; in ceph_oid_copy()
2165 oid->name_len = len; in oid_printf_vargs()
2202 oid->name_len = len; in oid_aprintf_vargs()
2403 oid->name_len); in __ceph_object_locator_to_pg()
2410 size_t total = nsl + 1 + oid->name_len; in __ceph_object_locator_to_pg()
2416 memcpy(buf + nsl + 1, oid->name, oid->name_len); in __ceph_object_locator_to_pg()
2891 size_t name_len) in alloc_crush_loc() argument
2895 loc = kmalloc(sizeof(*loc) + type_name_len + name_len + 2, GFP_NOIO); in alloc_crush_loc()
2930 size_t type_name_len, name_len; in DEFINE_RB_FUNCS2() local
2943 name_len = strlen(name); in DEFINE_RB_FUNCS2()
2944 if (name_len == 0) in DEFINE_RB_FUNCS2()
2947 loc = alloc_crush_loc(type_name_len, name_len); in DEFINE_RB_FUNCS2()
2956 memcpy(loc->cl_loc.cl_name, name, name_len); in DEFINE_RB_FUNCS2()
2957 loc->cl_loc.cl_name[name_len] = '\0'; in DEFINE_RB_FUNCS2()