Lines Matching refs:__ITEM_NAME

258 #define __ITEM_NAME(_type, _cname, _iname)					\  macro
267 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
276 return __mlxsw_item_get8(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
281 __mlxsw_item_set8(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \
286 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
298 return __mlxsw_item_get8(buf, &__ITEM_NAME(_type, _cname, _iname), \
305 __mlxsw_item_set8(buf, &__ITEM_NAME(_type, _cname, _iname), \
310 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
319 return __mlxsw_item_get16(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
324 __mlxsw_item_set16(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \
329 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
341 return __mlxsw_item_get16(buf, &__ITEM_NAME(_type, _cname, _iname), \
348 __mlxsw_item_set16(buf, &__ITEM_NAME(_type, _cname, _iname), \
353 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
362 return __mlxsw_item_get32(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
367 __mlxsw_item_set32(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \
374 static struct mlxsw_item __ITEM_NAME(_type, _cname, local_port) = { \
380 static struct mlxsw_item __ITEM_NAME(_type, _cname, lp_msb) = { \
391 local_port = __mlxsw_item_get32(buf, &__ITEM_NAME(_type, _cname, \
393 lp_msb = __mlxsw_item_get32(buf, &__ITEM_NAME(_type, _cname, lp_msb), \
400 __mlxsw_item_set32(buf, &__ITEM_NAME(_type, _cname, local_port), 0, \
402 __mlxsw_item_set32(buf, &__ITEM_NAME(_type, _cname, lp_msb), 0, \
408 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
420 return __mlxsw_item_get32(buf, &__ITEM_NAME(_type, _cname, _iname), \
427 __mlxsw_item_set32(buf, &__ITEM_NAME(_type, _cname, _iname), \
432 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
441 return __mlxsw_item_get64(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
446 __mlxsw_item_set64(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \
451 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
463 return __mlxsw_item_get64(buf, &__ITEM_NAME(_type, _cname, _iname), \
470 __mlxsw_item_set64(buf, &__ITEM_NAME(_type, _cname, _iname), \
475 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
484 &__ITEM_NAME(_type, _cname, _iname), 0); \
490 &__ITEM_NAME(_type, _cname, _iname), 0); \
495 return __mlxsw_item_data(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
500 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
513 &__ITEM_NAME(_type, _cname, _iname), index); \
521 &__ITEM_NAME(_type, _cname, _iname), index); \
527 &__ITEM_NAME(_type, _cname, _iname), index); \
532 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
542 &__ITEM_NAME(_type, _cname, _iname), \
549 &__ITEM_NAME(_type, _cname, _iname), \