Lines Matching refs:__ITEM_NAME
262 #define __ITEM_NAME(_type, _cname, _iname) \ macro
271 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
280 return __mlxsw_item_get8(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
285 __mlxsw_item_set8(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \
290 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
302 return __mlxsw_item_get8(buf, &__ITEM_NAME(_type, _cname, _iname), \
309 __mlxsw_item_set8(buf, &__ITEM_NAME(_type, _cname, _iname), \
314 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
323 return __mlxsw_item_get16(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
328 __mlxsw_item_set16(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \
333 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
345 return __mlxsw_item_get16(buf, &__ITEM_NAME(_type, _cname, _iname), \
352 __mlxsw_item_set16(buf, &__ITEM_NAME(_type, _cname, _iname), \
357 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
366 return __mlxsw_item_get32(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
371 __mlxsw_item_set32(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \
378 static struct mlxsw_item __ITEM_NAME(_type, _cname, local_port) = { \
384 static struct mlxsw_item __ITEM_NAME(_type, _cname, lp_msb) = { \
395 local_port = __mlxsw_item_get32(buf, &__ITEM_NAME(_type, _cname, \
397 lp_msb = __mlxsw_item_get32(buf, &__ITEM_NAME(_type, _cname, lp_msb), \
404 __mlxsw_item_set32(buf, &__ITEM_NAME(_type, _cname, local_port), 0, \
406 __mlxsw_item_set32(buf, &__ITEM_NAME(_type, _cname, lp_msb), 0, \
412 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
424 return __mlxsw_item_get32(buf, &__ITEM_NAME(_type, _cname, _iname), \
431 __mlxsw_item_set32(buf, &__ITEM_NAME(_type, _cname, _iname), \
436 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
445 return __mlxsw_item_get64(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
450 __mlxsw_item_set64(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \
455 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
467 return __mlxsw_item_get64(buf, &__ITEM_NAME(_type, _cname, _iname), \
474 __mlxsw_item_set64(buf, &__ITEM_NAME(_type, _cname, _iname), \
479 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
488 &__ITEM_NAME(_type, _cname, _iname), 0); \
494 &__ITEM_NAME(_type, _cname, _iname), 0); \
499 return __mlxsw_item_data(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
504 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
517 &__ITEM_NAME(_type, _cname, _iname), index); \
525 &__ITEM_NAME(_type, _cname, _iname), index); \
531 &__ITEM_NAME(_type, _cname, _iname), index); \
536 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
546 &__ITEM_NAME(_type, _cname, _iname), \
553 &__ITEM_NAME(_type, _cname, _iname), \