D | packer.c | 39 static u64 value_read(int offset, int size, void *structure) in value_read() argument 42 case 1: return *(u8 *) (structure + offset); in value_read() 43 case 2: return be16_to_cpup((__be16 *) (structure + offset)); in value_read() 44 case 4: return be32_to_cpup((__be32 *) (structure + offset)); in value_read() 45 case 8: return be64_to_cpup((__be64 *) (structure + offset)); in value_read() 53 * ib_pack - Pack a structure into a buffer 54 * @desc:Array of structure field descriptions 56 * @structure:Structure to pack from 59 * ib_pack() packs a list of structure fields into a buffer, 64 void *structure, in ib_pack() argument [all …]
|