Home
last modified time | relevance | path

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

/linux/include/rdma/
A 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 + \
/linux/include/linux/
A 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)); \
/linux/drivers/net/ethernet/netronome/nfp/abm/
A 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()
/linux/drivers/phy/socionext/
A Dphy-uniphier-usb3ss.c80 u8 field_mask = GENMASK(p->field.msb, p->field.lsb); in uniphier_u3ssphy_set_param() local
90 val &= ~FIELD_PREP(TESTI_DAT_MASK, field_mask); in uniphier_u3ssphy_set_param()
91 data = field_mask & (p->value << p->field.lsb); in uniphier_u3ssphy_set_param()
A 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()
/linux/drivers/net/ethernet/intel/ice/
A Dice_protocol_type.h218 u16 field_mask[ICE_MAX_CHAIN_WORDS]; member
A Dice_switch.c1327 lkup_exts->field_mask[fv_word_idx] = in ice_get_recp_frm_fw()
3834 u16 *cr = recp[i].lkup_exts.field_mask; in ice_find_recp()
3835 u16 *de = lkup_exts->field_mask; in ice_find_recp()
3922 lkup_exts->field_mask[word] = in ice_fill_valid_words()
3978 grp->mask[grp->n_val_pairs] = lkup_exts->field_mask[j]; in ice_create_first_fit_recp_def()
4429 memcpy(rm->word_masks, lkup_exts->field_mask, in ice_create_recipe_group()
4511 lkup_exts->field_mask[word] = mask; in ice_add_special_words()
/linux/drivers/net/ipa/
A Dipa_reg.h407 u32 size = header_size & field_mask(HDR_LEN_FMASK); in ipa_header_size_encoded()
427 u32 off = offset & field_mask(HDR_OFST_METADATA_FMASK); in ipa_metadata_offset_encoded()
A Dipa_endpoint.c549 offset &= field_mask(HDR_OFST_PKT_SIZE_FMASK); in ipa_endpoint_init_hdr()
/linux/arch/arm64/kvm/vgic/
A Dvgic-mmio-v3.c420 u64 vgic_sanitise_field(u64 reg, u64 field_mask, int field_shift, in vgic_sanitise_field() argument
423 u64 field = (reg & field_mask) >> field_shift; in vgic_sanitise_field()
426 return (reg & ~field_mask) | field; in vgic_sanitise_field()
A Dvgic-mmio.h219 u64 vgic_sanitise_field(u64 reg, u64 field_mask, int field_shift,
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_tc.c2663 u32 field_mask; member
2668 #define OFFLOAD(fw_field, field_bsize, field_mask, field, off, match_field) \ argument
2669 {MLX5_ACTION_IN_FIELD_OUT_ ## fw_field, field_bsize, field_mask, \
2776 unsigned long mask, field_mask; in offload_pedit_fields() local
2802 s_mask = *s_masks_p & f->field_mask; in offload_pedit_fields()
2803 a_mask = *a_masks_p & f->field_mask; in offload_pedit_fields()
2830 *s_masks_p &= ~f->field_mask; in offload_pedit_fields()
2836 if ((*(u32 *)vals_p & f->field_mask) == 0) in offload_pedit_fields()
2839 *a_masks_p &= ~f->field_mask; in offload_pedit_fields()
2876 field_mask = mask_to_le(f->field_mask, f->field_bsize); in offload_pedit_fields()
[all …]
/linux/drivers/media/usb/cx231xx/
A Dcx231xx-core.c1774 u32 cx231xx_set_field(u32 field_mask, u32 data) in cx231xx_set_field() argument
1778 for (temp = field_mask; (temp & 1) == 0; temp >>= 1) in cx231xx_set_field()
A Dcx231xx.h759 u32 cx231xx_set_field(u32 field_mask, u32 data);
/linux/drivers/net/can/spi/mcp251xfd/
A Dmcp251xfd-core.c1282 field_mask(MCP251XFD_OBJ_FLAGS_SEQ_MCP2517FD_MASK); in mcp251xfd_handle_tefif_one()
1284 field_mask(MCP251XFD_OBJ_FLAGS_SEQ_MCP2517FD_MASK); in mcp251xfd_handle_tefif_one()
/linux/drivers/net/ethernet/marvell/octeontx2/af/
A Dmbox.h1073 u64 field_mask; member
A Drvu_nix.c4665 if (req->fields[f] != (reg & req->field_mask)) in rvu_mbox_handler_nix_lso_format_cfg()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_common.c416 lso->field_mask = GENMASK(18, 0); in otx2_setup_udp_segmentation()

Completed in 73 milliseconds