Home
last modified time | relevance | path

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

/linux/include/rdma/
H 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/tools/include/linux/
H A 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/include/linux/
H A Dbitfield.h169 static __always_inline u64 field_mask(u64 field) in field_mask() function
173 #define field_max(field) ((typeof(field))field_mask(field))
177 if (__builtin_constant_p(v) && (v & ~field_mask(field))) \
179 return to((v & field_mask(field)) * field_multiplier(field)); \
H A Dbtf.h224 u32 field_mask, u32 value_size);
H A Dbpf.h239 u32 field_mask; member
433 return rec->field_mask & type; in btf_record_has_field()
2245 u32 offset, u32 field_mask);
/linux/drivers/net/ethernet/netronome/nfp/abm/
H 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/
H A 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()
H 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/crypto/intel/qat/qat_common/
H A Dadf_gen4_pm_debugfs.c28 .field_mask = _mask_, \
41 u32 field_mask; member
127 field_get(table[i].field_mask, in pm_scnprint_table()
/linux/drivers/platform/cznic/
H A Dturris-omnia-mcu-gpio.c464 unsigned long *field, *field_mask; in omnia_gpio_set_multiple() local
470 field_mask = &ctl_mask; in omnia_gpio_set_multiple()
474 field_mask = &ext_ctl_mask; in omnia_gpio_set_multiple()
477 field = field_mask = NULL; in omnia_gpio_set_multiple()
484 __set_bit(bit, field_mask); in omnia_gpio_set_multiple()
/linux/kernel/bpf/
H A Dbtf.c3459 if (field_mask & field_type && !strcmp(name, field_type_str)) { \
3465 u32 field_mask, u32 *seen_mask, in btf_get_field_type() argument
3471 if (field_mask & BPF_SPIN_LOCK) { in btf_get_field_type()
3480 if (field_mask & BPF_TIMER) { in btf_get_field_type()
3489 if (field_mask & BPF_WORKQUEUE) { in btf_get_field_type()
3505 if (field_mask & BPF_KPTR && !__btf_type_is_struct(var_type)) { in btf_get_field_type()
3563 const struct btf_type *t, u32 field_mask,
3575 u32 field_mask, struct btf_field_info *info, in btf_find_nested_struct() argument
3584 ret = btf_find_struct_field(btf, t, field_mask, info, info_cnt, level); in btf_find_nested_struct()
3611 u32 field_mask, u32 *seen_mask, in btf_find_field_one() argument
[all …]
H A Dsyscall.c528 u32 field_mask) in btf_record_find() argument
532 if (IS_ERR_OR_NULL(rec) || !(rec->field_mask & field_mask)) in btf_record_find()
535 if (!field || !(field->type & field_mask)) in btf_record_find()
1121 for (i = 0; i < sizeof(map->record->field_mask) * 8; i++) { in map_check_btf()
1122 switch (map->record->field_mask & (1 << i)) { in map_check_btf()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_protocol_type.h460 u16 field_mask[ICE_MAX_CHAIN_WORDS]; member
H A Dice_switch.c2397 lkup_exts->field_mask[fv_word_idx] = lkup_mask; in ice_get_recp_frm_fw()
4750 u16 *cr = recp[i].lkup_exts.field_mask; in ice_find_recp()
4751 u16 *de = lkup_exts->field_mask; in ice_find_recp()
4858 lkup_exts->field_mask[word] = in ice_fill_valid_words()
5371 memcpy(rm->word_masks, lkup_exts->field_mask, sizeof(rm->word_masks)); in ice_add_adv_recipe()
/linux/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-tef.c78 field_mask(MCP251XFD_OBJ_FLAGS_SEQ_MCP2517FD_MASK); in mcp251xfd_handle_tefif_one()
/linux/arch/arm64/kvm/vgic/
H A Dvgic-mmio.h222 u64 vgic_sanitise_field(u64 reg, u64 field_mask, int field_shift,
H A Dvgic-mmio-v3.c404 u64 vgic_sanitise_field(u64 reg, u64 field_mask, int field_shift, in vgic_sanitise_field() argument
407 u64 field = (reg & field_mask) >> field_shift; in vgic_sanitise_field()
410 return (reg & ~field_mask) | field; in vgic_sanitise_field()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.c3198 u32 field_mask; member
3203 #define OFFLOAD(fw_field, field_bsize, field_mask, field, off, match_field) \ argument
3204 {MLX5_ACTION_IN_FIELD_OUT_ ## fw_field, field_bsize, field_mask, \
3286 return be32_to_cpu(*(__be32 *)mask) & f->field_mask; in mask_field_get()
3288 return be16_to_cpu(*(__be16 *)mask) & (u16)f->field_mask; in mask_field_get()
3290 return *(u8 *)mask & (u8)f->field_mask; in mask_field_get()
3298 *(__be32 *)mask &= ~cpu_to_be32(f->field_mask); in mask_field_clear()
3301 *(__be16 *)mask &= ~cpu_to_be16((u16)f->field_mask); in mask_field_clear()
3304 *(u8 *)mask &= ~(u8)f->field_mask; in mask_field_clear()
3410 unsigned long field_mask = f->field_mask; in offload_pedit_fields() local
[all …]
/linux/drivers/media/usb/cx231xx/
H A Dcx231xx-core.c1775 u32 cx231xx_set_field(u32 field_mask, u32 data) in cx231xx_set_field() argument
1779 for (temp = field_mask; (temp & 1) == 0; temp >>= 1) in cx231xx_set_field()
H A Dcx231xx.h762 u32 cx231xx_set_field(u32 field_mask, u32 data);
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dmbox.h1199 u64 field_mask; member
H A Drvu_nix.c5371 if (req->fields[f] != (reg & req->field_mask)) in rvu_mbox_handler_nix_lso_format_cfg()