/linux-6.6.21/include/rdma/ |
D | iba.h | 56 #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/ |
D | bitfield.h | 139 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/ |
D | bitfield.h | 168 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)); \
|
D | btf.h | 208 u32 field_mask, u32 value_size);
|
D | bpf.h | 228 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/ |
D | cls.c | 123 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/ |
D | phy-uniphier-usb3ss.c | 82 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()
|
D | phy-uniphier-usb3hs.c | 179 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/ |
D | mcp251xfd-tef.c | 103 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/ |
D | ice_protocol_type.h | 444 u16 field_mask[ICE_MAX_CHAIN_WORDS]; member
|
D | ice_switch.c | 2259 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/ |
D | vgic-mmio.h | 222 u64 vgic_sanitise_field(u64 reg, u64 field_mask, int field_shift,
|
D | vgic-mmio-v3.c | 429 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/ |
D | btf.c | 3371 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 …]
|
D | syscall.c | 495 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/ |
D | en_tc.c | 3079 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/ |
D | cx231xx-core.c | 1776 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()
|
D | cx231xx.h | 759 u32 cx231xx_set_field(u32 field_mask, u32 data);
|
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/af/ |
D | mbox.h | 1178 u64 field_mask; member
|
D | rvu_nix.c | 4902 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/ |
D | otx2_common.c | 426 lso->field_mask = GENMASK(18, 0); in otx2_setup_udp_segmentation()
|