Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Dcmd.c148 static u8 xor8_buf(void *buf, size_t offset, int len) in xor8_buf() function
166 if (xor8_buf(block, rsvd0_off, xor_len) != 0xff) in verify_block_sig()
169 if (xor8_buf(block, 0, sizeof(*block)) != 0xff) in verify_block_sig()
180 block->ctrl_sig = ~xor8_buf(block, rsvd0_off, ctrl_xor_len); in calc_block_sig()
181 block->sig = ~xor8_buf(block, 0, sizeof(*block) - 1); in calc_block_sig()
198 ent->lay->sig = ~xor8_buf(ent->lay, 0, sizeof(*ent->lay)); in set_signature()
235 sig = xor8_buf(ent->lay, 0, sizeof(*ent->lay)); in verify_signature()