Home
last modified time | relevance | path

Searched refs:CLASSERT (Results 1 – 25 of 34) sorted by relevance

12

/drivers/staging/lustre/lnet/lnet/
Dapi-ni.c187 CLASSERT(LNET_PROTO_TCP_MAGIC == 0xeebc0ded); in lnet_assert_wire_constants()
188 CLASSERT(LNET_PROTO_TCP_VERSION_MAJOR == 1); in lnet_assert_wire_constants()
189 CLASSERT(LNET_PROTO_TCP_VERSION_MINOR == 0); in lnet_assert_wire_constants()
190 CLASSERT(LNET_MSG_ACK == 0); in lnet_assert_wire_constants()
191 CLASSERT(LNET_MSG_PUT == 1); in lnet_assert_wire_constants()
192 CLASSERT(LNET_MSG_GET == 2); in lnet_assert_wire_constants()
193 CLASSERT(LNET_MSG_REPLY == 3); in lnet_assert_wire_constants()
194 CLASSERT(LNET_MSG_HELLO == 4); in lnet_assert_wire_constants()
197 CLASSERT((int)sizeof(lnet_handle_wire_t) == 16); in lnet_assert_wire_constants()
198 CLASSERT((int)offsetof(lnet_handle_wire_t, wh_interface_cookie) == 0); in lnet_assert_wire_constants()
[all …]
Dacceptor.c151 CLASSERT(sizeof(cr) <= 16); /* not too big to be on the stack */ in lnet_connect()
167 CLASSERT(LNET_PROTO_ACCEPTOR_VERSION == 1); in lnet_connect()
Drouter_proc.c178 CLASSERT(sizeof(loff_t) >= 4); in proc_lnet_routes()
442 CLASSERT(LNET_PROC_HASH_BITS >= LNET_PEER_HASH_BITS); in proc_lnet_peers()
Dconfig.c1226 CLASSERT(LNET_MAX_INTERFACES > 1); in lnet_set_ip_niaddr()
/drivers/staging/lustre/lnet/selftest/
Dmodule.c96 CLASSERT(sizeof(srpc_msg_t) == 160); in lnet_selftest_structure_assertion()
97 CLASSERT(sizeof(srpc_test_reqst_t) == 70); in lnet_selftest_structure_assertion()
98 CLASSERT(offsetof(srpc_msg_t, msg_body.tes_reqst.tsr_concur) == 72); in lnet_selftest_structure_assertion()
99 CLASSERT(offsetof(srpc_msg_t, msg_body.tes_reqst.tsr_ndest) == 78); in lnet_selftest_structure_assertion()
100 CLASSERT(sizeof(srpc_stat_reply_t) == 136); in lnet_selftest_structure_assertion()
101 CLASSERT(sizeof(srpc_stat_reqst_t) == 28); in lnet_selftest_structure_assertion()
/drivers/staging/lustre/lustre/ptlrpc/
Dpack_generic.c537 CLASSERT(offsetof(typeof(*m), lm_padding_2) != 0); in lustre_unpack_msg_v2()
538 CLASSERT(offsetof(typeof(*m), lm_padding_3) != 0); in lustre_unpack_msg_v2()
1668 CLASSERT(offsetof(typeof(*b), pb_padding) != 0); in lustre_swab_ptlrpc_body()
1674 CLASSERT(offsetof(typeof(*b), pb_jobid) != 0); in lustre_swab_ptlrpc_body()
1702 CLASSERT(offsetof(typeof(*ocd), padding1) != 0); in lustre_swab_connect()
1703 CLASSERT(offsetof(typeof(*ocd), padding2) != 0); in lustre_swab_connect()
1704 CLASSERT(offsetof(typeof(*ocd), padding3) != 0); in lustre_swab_connect()
1705 CLASSERT(offsetof(typeof(*ocd), padding4) != 0); in lustre_swab_connect()
1706 CLASSERT(offsetof(typeof(*ocd), padding5) != 0); in lustre_swab_connect()
1707 CLASSERT(offsetof(typeof(*ocd), padding6) != 0); in lustre_swab_connect()
[all …]
Dwiretest.c66 CLASSERT(MTI_NAME_MAXLEN == 64); in lustre_assert_wire_constants()
327 CLASSERT(LDLM_PLAIN == 10); in lustre_assert_wire_constants()
328 CLASSERT(LDLM_EXTENT == 11); in lustre_assert_wire_constants()
329 CLASSERT(LDLM_FLOCK == 12); in lustre_assert_wire_constants()
330 CLASSERT(LDLM_IBITS == 13); in lustre_assert_wire_constants()
331 CLASSERT(LDLM_MAX_TYPE == 14); in lustre_assert_wire_constants()
332 CLASSERT(LUSTRE_RES_ID_SEQ_OFF == 0); in lustre_assert_wire_constants()
333 CLASSERT(LUSTRE_RES_ID_VER_OID_OFF == 1); in lustre_assert_wire_constants()
338 CLASSERT(LUSTRE_RES_ID_QUOTA_SEQ_OFF == 2); in lustre_assert_wire_constants()
339 CLASSERT(LUSTRE_RES_ID_QUOTA_VER_OID_OFF == 3); in lustre_assert_wire_constants()
[all …]
Dpers.c49 CLASSERT(PTLRPC_MAX_BRW_PAGES < LI_POISON); in ptlrpc_fill_bulk_md()
Dclient.c2942 CLASSERT((PTLRPC_BULK_OPS_COUNT & (PTLRPC_BULK_OPS_COUNT - 1)) == 0); in ptlrpc_init_xid()
3099 CLASSERT(sizeof(*args) <= sizeof(req->rq_async_args)); in ptlrpcd_alloc_work()
/drivers/staging/lustre/lustre/mdc/
Dmdc_lib.c145 CLASSERT(sizeof(struct mdt_rec_reint) == sizeof(struct mdt_rec_create)); in mdc_create_pack()
219 CLASSERT(sizeof(struct mdt_rec_reint) == sizeof(struct mdt_rec_create)); in mdc_open_pack()
348 CLASSERT(sizeof(struct mdt_rec_reint) == in mdc_setattr_pack()
385 CLASSERT(sizeof(struct mdt_rec_reint) == sizeof(struct mdt_rec_unlink)); in mdc_unlink_pack()
414 CLASSERT(sizeof(struct mdt_rec_reint) == sizeof(struct mdt_rec_link)); in mdc_link_pack()
442 CLASSERT(sizeof(struct mdt_rec_reint) == sizeof(struct mdt_rec_rename)); in mdc_rename_pack()
Dmdc_request.c394 CLASSERT(sizeof(struct mdt_rec_setxattr) == in mdc_xattr_common()
2641 CLASSERT(sizeof(*ra) <= sizeof(req->rq_async_args)); in mdc_renew_capa()
/drivers/staging/lustre/lustre/obdclass/
Duuid.c75 CLASSERT(ARRAY_SIZE(uuid) == 8); in class_uuid_unparse()
Dcl_lock.c211 CLASSERT(CLM_PHANTOM < CLM_READ); in cl_lock_mode_match()
212 CLASSERT(CLM_READ < CLM_WRITE); in cl_lock_mode_match()
213 CLASSERT(CLM_WRITE < CLM_GROUP); in cl_lock_mode_match()
Dcl_object.c737 CLASSERT(offsetof(struct cl_env, ce_magic) == 0); in cl_env_peek()
/drivers/staging/lustre/lustre/lov/
Dlov_pack.c456 CLASSERT(sizeof(lum) == sizeof(struct lov_mds_md_v3)); in lov_getstripe()
457 CLASSERT(sizeof(lum.lmm_objects[0]) == sizeof(lmmk->lmm_objects[0])); in lov_getstripe()
/drivers/staging/lustre/lustre/llite/
Dsuper25.c111 CLASSERT(sizeof(LUSTRE_VOLATILE_HDR) == LUSTRE_VOLATILE_HDR_LEN + 1); in init_lustre_lite()
Dvvp_dev.c285 CLASSERT(sizeof(pos) == sizeof(__u64)); in vvp_pgcache_id_unpack()
Dlloop.c525 CLASSERT(PAGE_CACHE_SIZE < (1 << (sizeof(unsigned short) * 8))); in loop_set_fd()
/drivers/staging/lustre/lnet/klnds/o2iblnd/
Do2iblnd.c272 CLASSERT (sizeof(msg->ibm_type) == 1); in kiblnd_unpack_msg()
273 CLASSERT (sizeof(msg->ibm_credits) == 1); in kiblnd_unpack_msg()
1288 CLASSERT (IBLND_MSG_SIZE <= PAGE_SIZE); in kiblnd_map_tx_pool()
1291 CLASSERT (PAGE_SIZE % IBLND_MSG_SIZE == 0); in kiblnd_map_tx_pool()
3097 CLASSERT (LNET_MAX_INTERFACES > 1); in kiblnd_startup()
3167 CLASSERT (sizeof(kib_msg_t) <= IBLND_MSG_SIZE); in kiblnd_module_init()
3168 CLASSERT (offsetof(kib_msg_t, ibm_u.get.ibgm_rd.rd_frags[IBLND_MAX_RDMA_FRAGS]) in kiblnd_module_init()
3170 CLASSERT (offsetof(kib_msg_t, ibm_u.putack.ibpam_rd.rd_frags[IBLND_MAX_RDMA_FRAGS]) in kiblnd_module_init()
/drivers/staging/lustre/lustre/osc/
Dosc_request.c284 CLASSERT(sizeof(*aa) <= sizeof(req->rq_async_args)); in osc_getattr_async()
435 CLASSERT (sizeof(*sa) <= sizeof(req->rq_async_args)); in osc_setattr_async_base()
577 CLASSERT (sizeof(*sa) <= sizeof(req->rq_async_args)); in osc_punch_base()
643 CLASSERT(sizeof(*fa) <= sizeof(req->rq_async_args)); in osc_sync_base()
1429 CLASSERT(sizeof(*aa) <= sizeof(req->rq_async_args)); in osc_brw_prep_request()
1994 CLASSERT(sizeof(*aa) <= sizeof(req->rq_async_args)); in osc_build_rpc()
2363 CLASSERT (sizeof(*aa) <= sizeof(req->rq_async_args)); in osc_enqueue_base()
2516 CLASSERT (sizeof(*aa) <= sizeof(req->rq_async_args)); in osc_statfs_async()
2975 CLASSERT(sizeof(*aa) <= sizeof(req->rq_async_args)); in osc_set_info_async()
/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_private.h411 #define CLASSERT(cond) do {switch (42) {case (cond): case 0: break; } } while (0) macro
/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-tcpip.c91 CLASSERT (sizeof(ifr.ifr_name) >= IFNAMSIZ); in libcfs_ipif_query()
/drivers/staging/lustre/lustre/include/
Dlu_object.h1128 CLASSERT(PAGE_CACHE_SIZE >= sizeof (*value)); \
/drivers/staging/lustre/lnet/klnds/socklnd/
Dsocklnd_proto.c461 CLASSERT(sizeof(lnet_magicversion_t) == offsetof(lnet_hdr_t, src_nid)); in ksocknal_send_hello_v1()
Dsocklnd.c2871 CLASSERT (SOCKLND_CONN_NTYPES <= 4); in ksocknal_module_init()
2872 CLASSERT (SOCKLND_CONN_ACK == SOCKLND_CONN_BULK_IN); in ksocknal_module_init()

12