Home
last modified time | relevance | path

Searched refs:cksum_type (Results 1 – 2 of 2) sorted by relevance

/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dobd_cksum.h40 static inline unsigned char cksum_obd2cfs(cksum_type_t cksum_type) in cksum_obd2cfs() argument
42 switch (cksum_type) { in cksum_obd2cfs()
50 CERROR("Unknown checksum type (%x)!!!\n", cksum_type); in cksum_obd2cfs()
67 static inline u32 cksum_type_pack(cksum_type_t cksum_type) in cksum_type_pack() argument
72 if (cksum_type & OBD_CKSUM_CRC32) { in cksum_type_pack()
79 if (cksum_type & OBD_CKSUM_CRC32C) { in cksum_type_pack()
86 if (cksum_type & OBD_CKSUM_ADLER) { in cksum_type_pack()
93 if (unlikely(cksum_type && !(cksum_type & (OBD_CKSUM_CRC32C | in cksum_type_pack()
96 CWARN("unknown cksum type %x\n", cksum_type); in cksum_type_pack()
/linux-4.1.27/drivers/staging/lustre/lustre/osc/
Dosc_request.c1185 cksum_type_t cksum_type) in osc_checksum_bulk() argument
1192 unsigned char cfs_alg = cksum_obd2cfs(cksum_type); in osc_checksum_bulk()
1390 cksum_type_t cksum_type = cli->cl_cksum_type; in osc_brw_prep_request() local
1396 body->oa.o_flags |= cksum_type_pack(cksum_type); in osc_brw_prep_request()
1401 cksum_type); in osc_brw_prep_request()
1406 oa->o_flags |= cksum_type_pack(cksum_type); in osc_brw_prep_request()
1455 cksum_type_t cksum_type; in check_write_checksum() local
1462 cksum_type = cksum_type_unpack(oa->o_valid & OBD_MD_FLFLAGS ? in check_write_checksum()
1465 cksum_type); in check_write_checksum()
1467 if (cksum_type != client_cksum_type) in check_write_checksum()
[all …]