Searched refs:field_h (Results 1 – 1 of 1) sorted by relevance
/linux-5.19.10/drivers/infiniband/hw/hns/ |
D | hns_roce_common.h | 58 #define FIELD_LOC(field_type, field_h, field_l) field_type, field_h, field_l argument 60 #define _hr_reg_enable(ptr, field_type, field_h, field_l) \ argument 63 *((__le32 *)_ptr + (field_h) / 32) |= cpu_to_le32( \ 65 BUILD_BUG_ON_ZERO((field_h) != (field_l))); \ 70 #define _hr_reg_clear(ptr, field_type, field_h, field_l) \ argument 73 BUILD_BUG_ON(((field_h) / 32) != ((field_l) / 32)); \ 74 *((__le32 *)_ptr + (field_h) / 32) &= \ 75 ~cpu_to_le32(GENMASK((field_h) % 32, (field_l) % 32)); \ 80 #define _hr_reg_write_bool(ptr, field_type, field_h, field_l, val) \ argument 82 (val) ? _hr_reg_enable(ptr, field_type, field_h, field_l) : \ [all …]
|