Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/infiniband/hw/hns/
Dhns_roce_common.h58 #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
64 BIT((field_l) % 32) + \
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)); \
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) : \
83 _hr_reg_clear(ptr, field_type, field_h, field_l); \
[all …]