Home
last modified time | relevance | path

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

/linux-6.6.21/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 + \
/linux-6.6.21/tools/include/linux/
Dbitfield.h139 static __always_inline u64 field_mask(u64 field) in field_mask() function
143 #define field_max(field) ((typeof(field))field_mask(field))
147 if (__builtin_constant_p(v) && (v & ~field_mask(field))) \
149 return to((v & field_mask(field)) * field_multiplier(field)); \
/linux-6.6.21/include/linux/
Dbitfield.h168 static __always_inline u64 field_mask(u64 field) in field_mask() function
172 #define field_max(field) ((typeof(field))field_mask(field))
176 if (__builtin_constant_p(v) && (v & ~field_mask(field))) \
178 return to((v & field_mask(field)) * field_multiplier(field)); \
Dbtf.h208 u32 field_mask, u32 value_size);
Dbpf.h228 u32 field_mask; member
412 return rec->field_mask & type; in btf_record_has_field()
2057 u32 offset, u32 field_mask);
/linux-6.6.21/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()
/linux-6.6.21/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()
/linux-6.6.21/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-tef.c103 field_mask(MCP251XFD_OBJ_FLAGS_SEQ_MCP2517FD_MASK); in mcp251xfd_handle_tefif_one()
105 field_mask(MCP251XFD_OBJ_FLAGS_SEQ_MCP2517FD_MASK); in mcp251xfd_handle_tefif_one()
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_protocol_type.h444 u16 field_mask[ICE_MAX_CHAIN_WORDS]; member
Dice_switch.c2259 lkup_exts->field_mask[fv_word_idx] = in ice_get_recp_frm_fw()
4649 u16 *cr = recp[i].lkup_exts.field_mask; in ice_find_recp()
4650 u16 *de = lkup_exts->field_mask; in ice_find_recp()
4757 lkup_exts->field_mask[word] = in ice_fill_valid_words()
4813 grp->mask[grp->n_val_pairs] = lkup_exts->field_mask[j]; in ice_create_first_fit_recp_def()
5270 memcpy(rm->word_masks, lkup_exts->field_mask, in ice_create_recipe_group()
/linux-6.6.21/arch/arm64/kvm/vgic/
Dvgic-mmio.h222 u64 vgic_sanitise_field(u64 reg, u64 field_mask, int field_shift,
Dvgic-mmio-v3.c429 u64 vgic_sanitise_field(u64 reg, u64 field_mask, int field_shift, in vgic_sanitise_field() argument
432 u64 field = (reg & field_mask) >> field_shift; in vgic_sanitise_field()
435 return (reg & ~field_mask) | field; in vgic_sanitise_field()
/linux-6.6.21/kernel/bpf/
Dbtf.c3371 if (field_mask & field_type && !strcmp(name, field_type_str)) { \
3376 static int btf_get_field_type(const char *name, u32 field_mask, u32 *seen_mask, in btf_get_field_type() argument
3381 if (field_mask & BPF_SPIN_LOCK) { in btf_get_field_type()
3390 if (field_mask & BPF_TIMER) { in btf_get_field_type()
3406 if (field_mask & BPF_KPTR) { in btf_get_field_type()
3420 const struct btf_type *t, u32 field_mask, in btf_find_struct_field() argument
3433 field_mask, &seen_mask, &align, &sz); in btf_find_struct_field()
3488 u32 field_mask, struct btf_field_info *info, in btf_find_datasec_var() argument
3501 field_mask, &seen_mask, &align, &sz); in btf_find_datasec_var()
3554 u32 field_mask, struct btf_field_info *info, in btf_find_field() argument
[all …]
Dsyscall.c495 u32 field_mask) in btf_record_find() argument
499 if (IS_ERR_OR_NULL(rec) || !(rec->field_mask & field_mask)) in btf_record_find()
502 if (!field || !(field->type & field_mask)) in btf_record_find()
1048 for (i = 0; i < sizeof(map->record->field_mask) * 8; i++) { in map_check_btf()
1049 switch (map->record->field_mask & (1 << i)) { in map_check_btf()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c3079 u32 field_mask; member
3084 #define OFFLOAD(fw_field, field_bsize, field_mask, field, off, match_field) \ argument
3085 {MLX5_ACTION_IN_FIELD_OUT_ ## fw_field, field_bsize, field_mask, \
3167 return be32_to_cpu(*(__be32 *)mask) & f->field_mask; in mask_field_get()
3169 return be16_to_cpu(*(__be16 *)mask) & (u16)f->field_mask; in mask_field_get()
3171 return *(u8 *)mask & (u8)f->field_mask; in mask_field_get()
3179 *(__be32 *)mask &= ~cpu_to_be32(f->field_mask); in mask_field_clear()
3182 *(__be16 *)mask &= ~cpu_to_be16((u16)f->field_mask); in mask_field_clear()
3185 *(u8 *)mask &= ~(u8)f->field_mask; in mask_field_clear()
3291 unsigned long field_mask = f->field_mask; in offload_pedit_fields() local
[all …]
/linux-6.6.21/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.h759 u32 cx231xx_set_field(u32 field_mask, u32 data);
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/af/
Dmbox.h1178 u64 field_mask; member
Drvu_nix.c4902 if (req->fields[f] != (reg & req->field_mask)) in rvu_mbox_handler_nix_lso_format_cfg()
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_common.c426 lso->field_mask = GENMASK(18, 0); in otx2_setup_udp_segmentation()