Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Ditem.h258 #define __ITEM_NAME(_type, _cname, _iname) \ argument
259 mlxsw_##_type##_##_cname##_##_iname##_item
266 #define MLXSW_ITEM8(_type, _cname, _iname, _offset, _shift, _sizebits) \ argument
267 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
271 .name = #_type "_" #_cname "_" #_iname, \
273 static inline u8 mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf) \
275 return __mlxsw_item_get8(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
277 static inline void mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, u8 val)\
279 __mlxsw_item_set8(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \
282 #define MLXSW_ITEM8_INDEXED(_type, _cname, _iname, _offset, _shift, _sizebits, \ argument
[all …]