Home
last modified time | relevance | path

Searched refs:field_mask (Results 1 – 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/include/rdma/
Diba.h56 #define _IBA_SET(field_struct, field_offset, field_mask, num_bits, ptr, value) \ argument
59 _iba_set##num_bits((void *)_ptr + (field_offset), field_mask, \
60 FIELD_PREP(field_mask, value)); \
84 #define _IBA_GET(field_struct, field_offset, field_mask, num_bits, ptr) \ argument
88 field_mask, _iba_get##num_bits((const void *)_ptr + \
/kernel/linux/linux-5.10/include/linux/
Dbitfield.h122 static __always_inline u64 field_mask(u64 field) in field_mask() function
126 #define field_max(field) ((typeof(field))field_mask(field))
130 if (__builtin_constant_p(v) && (v & ~field_mask(field))) \
132 return to((v & field_mask(field)) * field_multiplier(field)); \
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/abm/
Dcls.c123 u32 field_mask; in nfp_abm_update_band_map() local
128 field_mask = (1 << bits_per_prio) - 1; in nfp_abm_update_band_map()
144 *word &= ~(field_mask << offset); in nfp_abm_update_band_map()
/kernel/linux/linux-5.10/drivers/phy/socionext/
Dphy-uniphier-usb3ss.c82 u8 field_mask = GENMASK(p->field.msb, p->field.lsb); in uniphier_u3ssphy_set_param() local
92 val &= ~field_mask; in uniphier_u3ssphy_set_param()
93 data = field_mask & (p->value << p->field.lsb); in uniphier_u3ssphy_set_param()
Dphy-uniphier-usb3hs.c179 u32 field_mask = GENMASK(p->field.msb, p->field.lsb); in uniphier_u3hsphy_set_param() local
193 val &= ~FIELD_PREP(HSPHY_CFG1_DAT_MASK, field_mask); in uniphier_u3hsphy_set_param()
194 data = field_mask & (p->value << p->field.lsb); in uniphier_u3hsphy_set_param()
/kernel/linux/linux-5.10/arch/arm64/kvm/vgic/
Dvgic-mmio.h219 u64 vgic_sanitise_field(u64 reg, u64 field_mask, int field_shift,
Dvgic-mmio-v3.c413 u64 vgic_sanitise_field(u64 reg, u64 field_mask, int field_shift, in vgic_sanitise_field() argument
416 u64 field = (reg & field_mask) >> field_shift; in vgic_sanitise_field()
419 return (reg & ~field_mask) | field; in vgic_sanitise_field()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c2747 u32 field_mask; member
2752 #define OFFLOAD(fw_field, field_bsize, field_mask, field, off, match_field) \ argument
2753 {MLX5_ACTION_IN_FIELD_OUT_ ## fw_field, field_bsize, field_mask, \
2860 unsigned long mask, field_mask; in offload_pedit_fields() local
2886 s_mask = *s_masks_p & f->field_mask; in offload_pedit_fields()
2887 a_mask = *a_masks_p & f->field_mask; in offload_pedit_fields()
2912 *s_masks_p &= ~f->field_mask; in offload_pedit_fields()
2918 if ((*(u32 *)vals_p & f->field_mask) == 0) in offload_pedit_fields()
2921 *a_masks_p &= ~f->field_mask; in offload_pedit_fields()
2957 field_mask = mask_to_le(f->field_mask, f->field_bsize); in offload_pedit_fields()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/
Dmbox.h691 u64 field_mask; member
Drvu_nix.c3412 if (req->fields[f] != (reg & req->field_mask)) in rvu_mbox_handler_nix_lso_format_cfg()
/kernel/linux/linux-5.10/drivers/media/usb/cx231xx/
Dcx231xx-core.c1776 u32 cx231xx_set_field(u32 field_mask, u32 data) in cx231xx_set_field() argument
1780 for (temp = field_mask; (temp & 1) == 0; temp >>= 1) in cx231xx_set_field()
Dcx231xx.h761 u32 cx231xx_set_field(u32 field_mask, u32 data);
/kernel/linux/linux-5.10/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-core.c1230 field_mask(MCP251XFD_OBJ_FLAGS_SEQ_MCP2517FD_MASK); in mcp251xfd_handle_tefif_one()
1232 field_mask(MCP251XFD_OBJ_FLAGS_SEQ_MCP2517FD_MASK); in mcp251xfd_handle_tefif_one()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_common.c374 lso->field_mask = GENMASK(18, 0); in otx2_setup_udp_segmentation()