_cname 258 drivers/net/ethernet/mellanox/mlxsw/item.h #define __ITEM_NAME(_type, _cname, _iname) \ _cname 259 drivers/net/ethernet/mellanox/mlxsw/item.h mlxsw_##_type##_##_cname##_##_iname##_item _cname 266 drivers/net/ethernet/mellanox/mlxsw/item.h #define MLXSW_ITEM8(_type, _cname, _iname, _offset, _shift, _sizebits) \ _cname 267 drivers/net/ethernet/mellanox/mlxsw/item.h static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \ _cname 271 drivers/net/ethernet/mellanox/mlxsw/item.h .name = #_type "_" #_cname "_" #_iname, \ _cname 273 drivers/net/ethernet/mellanox/mlxsw/item.h static inline u8 mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf) \ _cname 275 drivers/net/ethernet/mellanox/mlxsw/item.h return __mlxsw_item_get8(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \ _cname 277 drivers/net/ethernet/mellanox/mlxsw/item.h static inline void mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, u8 val)\ _cname 279 drivers/net/ethernet/mellanox/mlxsw/item.h __mlxsw_item_set8(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \ _cname 282 drivers/net/ethernet/mellanox/mlxsw/item.h #define MLXSW_ITEM8_INDEXED(_type, _cname, _iname, _offset, _shift, _sizebits, \ _cname 284 drivers/net/ethernet/mellanox/mlxsw/item.h static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \ _cname 291 drivers/net/ethernet/mellanox/mlxsw/item.h .name = #_type "_" #_cname "_" #_iname, \ _cname 294 drivers/net/ethernet/mellanox/mlxsw/item.h mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf, unsigned short index)\ _cname 296 drivers/net/ethernet/mellanox/mlxsw/item.h return __mlxsw_item_get8(buf, &__ITEM_NAME(_type, _cname, _iname), \ _cname 300 drivers/net/ethernet/mellanox/mlxsw/item.h mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, unsigned short index, \ _cname 303 drivers/net/ethernet/mellanox/mlxsw/item.h __mlxsw_item_set8(buf, &__ITEM_NAME(_type, _cname, _iname), \ _cname 307 drivers/net/ethernet/mellanox/mlxsw/item.h #define MLXSW_ITEM16(_type, _cname, _iname, _offset, _shift, _sizebits) \ _cname 308 drivers/net/ethernet/mellanox/mlxsw/item.h static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \ _cname 312 drivers/net/ethernet/mellanox/mlxsw/item.h .name = #_type "_" #_cname "_" #_iname, \ _cname 314 drivers/net/ethernet/mellanox/mlxsw/item.h static inline u16 mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf) \ _cname 316 drivers/net/ethernet/mellanox/mlxsw/item.h return __mlxsw_item_get16(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \ _cname 318 drivers/net/ethernet/mellanox/mlxsw/item.h static inline void mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, u16 val)\ _cname 320 drivers/net/ethernet/mellanox/mlxsw/item.h __mlxsw_item_set16(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \ _cname 323 drivers/net/ethernet/mellanox/mlxsw/item.h #define MLXSW_ITEM16_INDEXED(_type, _cname, _iname, _offset, _shift, _sizebits, \ _cname 325 drivers/net/ethernet/mellanox/mlxsw/item.h static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \ _cname 332 drivers/net/ethernet/mellanox/mlxsw/item.h .name = #_type "_" #_cname "_" #_iname, \ _cname 335 drivers/net/ethernet/mellanox/mlxsw/item.h mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf, unsigned short index)\ _cname 337 drivers/net/ethernet/mellanox/mlxsw/item.h return __mlxsw_item_get16(buf, &__ITEM_NAME(_type, _cname, _iname), \ _cname 341 drivers/net/ethernet/mellanox/mlxsw/item.h mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, unsigned short index, \ _cname 344 drivers/net/ethernet/mellanox/mlxsw/item.h __mlxsw_item_set16(buf, &__ITEM_NAME(_type, _cname, _iname), \ _cname 348 drivers/net/ethernet/mellanox/mlxsw/item.h #define MLXSW_ITEM32(_type, _cname, _iname, _offset, _shift, _sizebits) \ _cname 349 drivers/net/ethernet/mellanox/mlxsw/item.h static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \ _cname 353 drivers/net/ethernet/mellanox/mlxsw/item.h .name = #_type "_" #_cname "_" #_iname, \ _cname 355 drivers/net/ethernet/mellanox/mlxsw/item.h static inline u32 mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf) \ _cname 357 drivers/net/ethernet/mellanox/mlxsw/item.h return __mlxsw_item_get32(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \ _cname 359 drivers/net/ethernet/mellanox/mlxsw/item.h static inline void mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, u32 val)\ _cname 361 drivers/net/ethernet/mellanox/mlxsw/item.h __mlxsw_item_set32(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \ _cname 364 drivers/net/ethernet/mellanox/mlxsw/item.h #define MLXSW_ITEM32_INDEXED(_type, _cname, _iname, _offset, _shift, _sizebits, \ _cname 366 drivers/net/ethernet/mellanox/mlxsw/item.h static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \ _cname 373 drivers/net/ethernet/mellanox/mlxsw/item.h .name = #_type "_" #_cname "_" #_iname, \ _cname 376 drivers/net/ethernet/mellanox/mlxsw/item.h mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf, unsigned short index)\ _cname 378 drivers/net/ethernet/mellanox/mlxsw/item.h return __mlxsw_item_get32(buf, &__ITEM_NAME(_type, _cname, _iname), \ _cname 382 drivers/net/ethernet/mellanox/mlxsw/item.h mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, unsigned short index, \ _cname 385 drivers/net/ethernet/mellanox/mlxsw/item.h __mlxsw_item_set32(buf, &__ITEM_NAME(_type, _cname, _iname), \ _cname 389 drivers/net/ethernet/mellanox/mlxsw/item.h #define MLXSW_ITEM64(_type, _cname, _iname, _offset, _shift, _sizebits) \ _cname 390 drivers/net/ethernet/mellanox/mlxsw/item.h static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \ _cname 394 drivers/net/ethernet/mellanox/mlxsw/item.h .name = #_type "_" #_cname "_" #_iname, \ _cname 396 drivers/net/ethernet/mellanox/mlxsw/item.h static inline u64 mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf) \ _cname 398 drivers/net/ethernet/mellanox/mlxsw/item.h return __mlxsw_item_get64(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \ _cname 400 drivers/net/ethernet/mellanox/mlxsw/item.h static inline void mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, u64 val)\ _cname 402 drivers/net/ethernet/mellanox/mlxsw/item.h __mlxsw_item_set64(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \ _cname 405 drivers/net/ethernet/mellanox/mlxsw/item.h #define MLXSW_ITEM64_INDEXED(_type, _cname, _iname, _offset, _shift, \ _cname 407 drivers/net/ethernet/mellanox/mlxsw/item.h static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \ _cname 414 drivers/net/ethernet/mellanox/mlxsw/item.h .name = #_type "_" #_cname "_" #_iname, \ _cname 417 drivers/net/ethernet/mellanox/mlxsw/item.h mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf, unsigned short index)\ _cname 419 drivers/net/ethernet/mellanox/mlxsw/item.h return __mlxsw_item_get64(buf, &__ITEM_NAME(_type, _cname, _iname), \ _cname 423 drivers/net/ethernet/mellanox/mlxsw/item.h mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, unsigned short index, \ _cname 426 drivers/net/ethernet/mellanox/mlxsw/item.h __mlxsw_item_set64(buf, &__ITEM_NAME(_type, _cname, _iname), \ _cname 430 drivers/net/ethernet/mellanox/mlxsw/item.h #define MLXSW_ITEM_BUF(_type, _cname, _iname, _offset, _sizebytes) \ _cname 431 drivers/net/ethernet/mellanox/mlxsw/item.h static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \ _cname 434 drivers/net/ethernet/mellanox/mlxsw/item.h .name = #_type "_" #_cname "_" #_iname, \ _cname 437 drivers/net/ethernet/mellanox/mlxsw/item.h mlxsw_##_type##_##_cname##_##_iname##_memcpy_from(const char *buf, char *dst) \ _cname 440 drivers/net/ethernet/mellanox/mlxsw/item.h &__ITEM_NAME(_type, _cname, _iname), 0); \ _cname 443 drivers/net/ethernet/mellanox/mlxsw/item.h mlxsw_##_type##_##_cname##_##_iname##_memcpy_to(char *buf, const char *src) \ _cname 446 drivers/net/ethernet/mellanox/mlxsw/item.h &__ITEM_NAME(_type, _cname, _iname), 0); \ _cname 449 drivers/net/ethernet/mellanox/mlxsw/item.h mlxsw_##_type##_##_cname##_##_iname##_data(char *buf) \ _cname 451 drivers/net/ethernet/mellanox/mlxsw/item.h return __mlxsw_item_data(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \ _cname 454 drivers/net/ethernet/mellanox/mlxsw/item.h #define MLXSW_ITEM_BUF_INDEXED(_type, _cname, _iname, _offset, _sizebytes, \ _cname 456 drivers/net/ethernet/mellanox/mlxsw/item.h static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \ _cname 461 drivers/net/ethernet/mellanox/mlxsw/item.h .name = #_type "_" #_cname "_" #_iname, \ _cname 464 drivers/net/ethernet/mellanox/mlxsw/item.h mlxsw_##_type##_##_cname##_##_iname##_memcpy_from(const char *buf, \ _cname 469 drivers/net/ethernet/mellanox/mlxsw/item.h &__ITEM_NAME(_type, _cname, _iname), index); \ _cname 472 drivers/net/ethernet/mellanox/mlxsw/item.h mlxsw_##_type##_##_cname##_##_iname##_memcpy_to(char *buf, \ _cname 477 drivers/net/ethernet/mellanox/mlxsw/item.h &__ITEM_NAME(_type, _cname, _iname), index); \ _cname 480 drivers/net/ethernet/mellanox/mlxsw/item.h mlxsw_##_type##_##_cname##_##_iname##_data(char *buf, unsigned short index) \ _cname 483 drivers/net/ethernet/mellanox/mlxsw/item.h &__ITEM_NAME(_type, _cname, _iname), index); \ _cname 486 drivers/net/ethernet/mellanox/mlxsw/item.h #define MLXSW_ITEM_BIT_ARRAY(_type, _cname, _iname, _offset, _sizebytes, \ _cname 488 drivers/net/ethernet/mellanox/mlxsw/item.h static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \ _cname 492 drivers/net/ethernet/mellanox/mlxsw/item.h .name = #_type "_" #_cname "_" #_iname, \ _cname 495 drivers/net/ethernet/mellanox/mlxsw/item.h mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf, u16 index) \ _cname 498 drivers/net/ethernet/mellanox/mlxsw/item.h &__ITEM_NAME(_type, _cname, _iname), \ _cname 502 drivers/net/ethernet/mellanox/mlxsw/item.h mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, u16 index, u8 val) \ _cname 505 drivers/net/ethernet/mellanox/mlxsw/item.h &__ITEM_NAME(_type, _cname, _iname), \