flex
const struct flex *flex, unsigned int count)
*cs++ = offset + flex->offset * sizeof(u32);
*cs++ = flex->value;
} while (flex++, --count);
const struct flex *flex, unsigned int count)
*cs++ = i915_mmio_reg_offset(flex->reg);
*cs++ = flex->value;
} while (flex++, --count);
const struct flex *flex, unsigned int count)
err = gen8_store_flex(rq, ce, flex, count);
const struct flex *flex, unsigned int count,
err = gen8_load_flex(rq, ce, flex, count);
struct flex *flex, unsigned int count)
flex->value = intel_sseu_make_rpcs(ce->engine->gt, &ce->sseu);
err = gen8_modify_context(ce, flex, count);
struct flex regs_context[] = {
struct flex regs_lri[] = {
struct flex *regs,
struct flex regs[] = {
struct iavf_flex_word *flex;
flex = &fltr->flex_words[cnt++];
flex->word = value & IAVF_USERDEF_FLEX_WORD_M;
flex->offset = FIELD_GET(IAVF_USERDEF_FLEX_OFFS_M, value);
if (flex->offset > IAVF_USERDEF_FLEX_MAX_OFFS_VAL)
bool flex)
if (flex) {
bool flex)
if (flex)
bool flex = rx_ring->rxdid == VIRTCHNL_RXDID_2_FLEX_SQ_NIC;
if (!iavf_is_descriptor_done(qw1, flex))
fields = iavf_extract_rx_fields(rx_ring, rx_desc, flex);
iavf_process_skb_fields(rx_ring, rx_desc, skb, fields.ptype, flex);
static bool iavf_is_descriptor_done(u64 qw1, bool flex)
if (flex)
} flex;
} flex;
} flex;
u8 flex;
u8 flex[6];
} flex;
bool flex;
rule->flex = true;
rule->flex = false;
static void igc_flex_filter_add_field(struct igc_flex_filter *flex,
memcpy(&flex->data[offset], src, len);
flex->mask[idx / 8] |= BIT(idx % 8);
flex->mask[idx / 8] |= BIT(idx % 8);
struct igc_flex_filter flex = { };
flex.index = index;
flex.length = 32;
flex.rx_queue = rule->action;
igc_flex_filter_add_field(&flex, &filter->dst_addr, 0,
igc_flex_filter_add_field(&flex, &filter->src_addr, 6,
igc_flex_filter_add_field(&flex, &vlan_etype, 12,
igc_flex_filter_add_field(&flex, &filter->vlan_tci, 14,
igc_flex_filter_add_field(&flex, &etype, eth_offset,
igc_flex_filter_add_field(&flex, &filter->user_data,
ret = igc_write_flex_filter_ll(adapter, &flex);
if (rule->flex) {
if (rule->flex) {
u32 fdirm = 0, fdirtcpm = 0, flex = 0;
flex = rd32(wx, TXGBE_RDB_FDIR_FLEX_CFG(index));
flex &= ~(TXGBE_RDB_FDIR_FLEX_CFG_FIELD0 << (offset * 8));
flex |= (TXGBE_RDB_FDIR_FLEX_CFG_BASE_MAC |
flex |= TXGBE_RDB_FDIR_FLEX_CFG_MSK << (offset * 8);
wr32(wx, TXGBE_RDB_FDIR_FLEX_CFG(index), flex);
u32 flex = 0;
flex = rd32(wx, TXGBE_RDB_FDIR_FLEX_CFG(index));
flex &= ~(TXGBE_RDB_FDIR_FLEX_CFG_FIELD0 << (offset * 8));
flex |= (TXGBE_RDB_FDIR_FLEX_CFG_BASE_MAC |
wr32(wx, TXGBE_RDB_FDIR_FLEX_CFG(index), flex);
bool flex;
flex = is_flex_arr(btf, acc - 1, a);
if (!flex && access_idx >= a->nelems)
bool flex;
flex = is_flex_arr(targ_btf, targ_acc - 1, a);
if (!flex && local_acc->idx >= a->nelems)