__ITEM_NAME
static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
return __mlxsw_item_get8(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
__mlxsw_item_set8(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \
static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
return __mlxsw_item_get8(buf, &__ITEM_NAME(_type, _cname, _iname), \
__mlxsw_item_set8(buf, &__ITEM_NAME(_type, _cname, _iname), \
static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
return __mlxsw_item_get16(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
__mlxsw_item_set16(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \
static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
return __mlxsw_item_get16(buf, &__ITEM_NAME(_type, _cname, _iname), \
__mlxsw_item_set16(buf, &__ITEM_NAME(_type, _cname, _iname), \
static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
return __mlxsw_item_get32(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
__mlxsw_item_set32(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \
static struct mlxsw_item __ITEM_NAME(_type, _cname, local_port) = { \
static struct mlxsw_item __ITEM_NAME(_type, _cname, lp_msb) = { \
local_port = __mlxsw_item_get32(buf, &__ITEM_NAME(_type, _cname, \
lp_msb = __mlxsw_item_get32(buf, &__ITEM_NAME(_type, _cname, lp_msb), \
__mlxsw_item_set32(buf, &__ITEM_NAME(_type, _cname, local_port), 0, \
__mlxsw_item_set32(buf, &__ITEM_NAME(_type, _cname, lp_msb), 0, \
static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
return __mlxsw_item_get32(buf, &__ITEM_NAME(_type, _cname, _iname), \
__mlxsw_item_set32(buf, &__ITEM_NAME(_type, _cname, _iname), \
static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
return __mlxsw_item_get64(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
__mlxsw_item_set64(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \
static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
return __mlxsw_item_get64(buf, &__ITEM_NAME(_type, _cname, _iname), \
__mlxsw_item_set64(buf, &__ITEM_NAME(_type, _cname, _iname), \
static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
&__ITEM_NAME(_type, _cname, _iname), 0); \
&__ITEM_NAME(_type, _cname, _iname), 0); \
return __mlxsw_item_data(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
&__ITEM_NAME(_type, _cname, _iname), index); \
&__ITEM_NAME(_type, _cname, _iname), index); \
&__ITEM_NAME(_type, _cname, _iname), index); \
static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
&__ITEM_NAME(_type, _cname, _iname), \
&__ITEM_NAME(_type, _cname, _iname), \