• Home
  • Raw
  • Download

Lines Matching refs:shift

47 	unsigned char	shift;		/* shift in bits */  member
83 tmp >>= item->shift; in __mlxsw_item_get16()
86 tmp <<= item->shift; in __mlxsw_item_get16()
96 u16 mask = GENMASK(item->size.bits - 1, 0) << item->shift; in __mlxsw_item_set16()
100 val <<= item->shift; in __mlxsw_item_set16()
116 tmp >>= item->shift; in __mlxsw_item_get32()
119 tmp <<= item->shift; in __mlxsw_item_get32()
129 u32 mask = GENMASK(item->size.bits - 1, 0) << item->shift; in __mlxsw_item_set32()
133 val <<= item->shift; in __mlxsw_item_set32()
149 tmp >>= item->shift; in __mlxsw_item_get64()
152 tmp <<= item->shift; in __mlxsw_item_get64()
161 u64 mask = GENMASK_ULL(item->size.bits - 1, 0) << item->shift; in __mlxsw_item_set64()
165 val <<= item->shift; in __mlxsw_item_set64()
192 __mlxsw_item_bit_array_offset(struct mlxsw_item *item, u16 index, u8 *shift) in __mlxsw_item_bit_array_offset() argument
210 *shift = in_byte_index * item->element_size; in __mlxsw_item_bit_array_offset()
218 u8 shift, tmp; in __mlxsw_item_bit_array_get() local
219 u16 offset = __mlxsw_item_bit_array_offset(item, index, &shift); in __mlxsw_item_bit_array_get()
222 tmp >>= shift; in __mlxsw_item_bit_array_get()
230 u8 shift, tmp; in __mlxsw_item_bit_array_set() local
231 u16 offset = __mlxsw_item_bit_array_offset(item, index, &shift); in __mlxsw_item_bit_array_set()
232 u8 mask = GENMASK(item->element_size - 1, 0) << shift; in __mlxsw_item_bit_array_set()
234 val <<= shift; in __mlxsw_item_bit_array_set()
253 .shift = _shift, \
272 .shift = _shift, \
294 .shift = _shift, \
313 .shift = _shift, \
335 .shift = _shift, \
354 .shift = _shift, \