Searched refs:cfs_size_round (Results 1 – 15 of 15) sorted by relevance
49 size = cfs_size_round(offsetof(struct update, u_bufs[0])); in update_size()51 size += cfs_size_round(update->u_lens[i]); in update_size()65 ptr = (char *)update + cfs_size_round(offsetof(struct update, in update_param_buf()69 ptr += cfs_size_round(update->u_lens[i]); in update_param_buf()83 size = cfs_size_round(offsetof(struct update_buf, ub_bufs[0])); in update_buf_size()103 ptr = (char *)buf + cfs_size_round(offsetof(struct update_buf, in update_buf_get()130 ptr = (char *)reply + cfs_size_round(offsetof(struct update_reply, in update_get_buf_internal()134 ptr += cfs_size_round(reply->ur_lens[i]); in update_get_buf_internal()
53 cfs_size_round(offsetof (struct lustre_cfg, lcfg_buflens[(count)]))169 offset += cfs_size_round(lcfg->lcfg_buflens[i]); in lustre_cfg_buf()201 cfs_size_round(lcfg->lcfg_buflens[index]) - 1); in lustre_cfg_string()219 len += cfs_size_round(buflens[i]); in lustre_cfg_len()221 return cfs_size_round(len); in lustre_cfg_len()
180 int len = cfs_size_round(sizeof(struct obd_ioctl_data)); in obd_ioctl_packlen()181 len += cfs_size_round(data->ioc_inllen1); in obd_ioctl_packlen()182 len += cfs_size_round(data->ioc_inllen2); in obd_ioctl_packlen()183 len += cfs_size_round(data->ioc_inllen3); in obd_ioctl_packlen()184 len += cfs_size_round(data->ioc_inllen4); in obd_ioctl_packlen()
352 return cfs_size_round(len); in llog_data_len()
148 len += cfs_size_round(data->ioc_inllen1); in libcfs_ioctl_packlen()149 len += cfs_size_round(data->ioc_inllen2); in libcfs_ioctl_packlen()201 data->ioc_bulk[cfs_size_round(data->ioc_inllen1) + in libcfs_ioctl_is_invalid()
477 static inline int cfs_size_round(int val) in cfs_size_round() function504 return (size_t)cfs_size_round((int)strlen(fset) + 1); in cfs_round_strlen()524 ptr += cfs_size_round(len); \531 ptr += cfs_size_round(len); \540 ptr += cfs_size_round(len + 1); \
757 #define CR_MAXSIZE cfs_size_round(2*NAME_MAX + 1 + \1103 static inline int cfs_size_round (int val) in cfs_size_round() function1114 cfs_size_round(strlen(hal-> \ in hai_zero()1122 cfs_size_round(hai->hai_len)); in hai_next()1131 sz = sizeof(*hal) + cfs_size_round(strlen(hal->hal_fsname) + 1); in hal_size()1134 sz += cfs_size_round(hai->hai_len); in hal_size()
136 offset += cfs_size_round(data->ioc_inllen1); in obd_ioctl_getdata()141 offset += cfs_size_round(data->ioc_inllen2); in obd_ioctl_getdata()146 offset += cfs_size_round(data->ioc_inllen3); in obd_ioctl_getdata()
87 cfs_size_round(data->ioc_inllen1); in libcfs_ioctl_getdata()
105 /* for mockup below */ 2 * cfs_size_round(sizeof(*hai)); in mdc_kuc_write()
1200 keylen = cfs_size_round(sizeof(KEY_FID2PATH)) + sizeof(*gf); in mdc_ioc_fid2path()1205 memcpy(key + cfs_size_round(sizeof(KEY_FID2PATH)), gf, sizeof(*gf)); in mdc_ioc_fid2path()
57 return cfs_size_round(offsetof(struct lustre_msg_v2, in lustre_msg_hdr_size_v2()143 size += cfs_size_round(lengths[i]); in lustre_msg_size_v2()423 offset += cfs_size_round(m->lm_buflens[i]); in lustre_msg_buf_v2()456 tail_len += cfs_size_round(msg->lm_buflens[n]); in lustre_shrink_msg_v2()552 required_len += cfs_size_round(m->lm_buflens[i]); in lustre_unpack_msg_v2()
2262 size += cfs_size_round(fmt->rf_fields[loc].d[i]-> in req_capsule_fmt_size()2434 cfs_size_round(rs->rs_msg->lm_buflens[offset]) - from; in req_capsule_server_grow()
691 LASSERT(cfs_size_round(buflen) == buflen); in llog_write_rec()
2140 return cfs_size_round(sizeof(*oap)); in osc_prep_async_page()