Home
last modified time | relevance | path

Searched refs:__bf_shf (Results 1 – 17 of 17) sorted by relevance

/linux-6.3-rc2/include/linux/
A Dbitfield.h45 #define __bf_shf(x) (__builtin_ffsll(x) - 1) macro
69 ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \
75 (1ULL << __bf_shf(_mask))); \
88 (typeof(_mask))((_mask) >> __bf_shf(_mask)); \
101 !((((typeof(_mask))_val) << __bf_shf(_mask)) & ~(_mask)); \
115 ((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask); \
137 BUILD_BUG_ON_ZERO(~((_mask) >> __bf_shf(_mask)) & (_val)) + \
139 __BF_CHECK_POW2((_mask) + (1ULL << __bf_shf(_mask))) + \
141 (((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask)) \
155 (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
/linux-6.3-rc2/tools/include/linux/
A Dbitfield.h42 #define __bf_shf(x) (__builtin_ffsll(x) - 1) macro
66 ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \
72 (1ULL << __bf_shf(_mask))); \
85 (typeof(_mask))((_mask) >> __bf_shf(_mask)); \
98 !((((typeof(_mask))_val) << __bf_shf(_mask)) & ~(_mask)); \
112 ((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask); \
126 (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
/linux-6.3-rc2/drivers/gpu/drm/i915/
A Di915_reg_defs.h71 ((u32)((((typeof(__mask))(__val) << __bf_shf(__mask)) & (__mask)) + \
74 BUILD_BUG_ON_ZERO(!IS_POWER_OF_2((__mask) + (1ULL << __bf_shf(__mask)))) + \
75 …BUILD_BUG_ON_ZERO(__builtin_choose_expr(__is_constexpr(__val), (~((__mask) >> __bf_shf(__mask)) & …
/linux-6.3-rc2/drivers/net/dsa/mv88e6xxx/
A Dglobal1.c62 int bit = __bf_shf(MV88E6352_G1_STS_PPU_STATE); in mv88e6352_g1_wait_ppu_polling()
69 int bit = __bf_shf(MV88E6XXX_G1_STS_INIT_READY); in mv88e6xxx_g1_wait_init_ready()
331 __bf_shf(MV88E6185_G1_MONITOR_CTL_INGRESS_DEST_MASK); in mv88e6095_g1_set_egress_port()
336 __bf_shf(MV88E6185_G1_MONITOR_CTL_EGRESS_DEST_MASK); in mv88e6095_g1_set_egress_port()
359 reg |= port << __bf_shf(MV88E6185_G1_MONITOR_CTL_ARP_DEST_MASK); in mv88e6095_g1_set_cpu_port()
472 return mv88e6xxx_g1_ctl2_mask(chip, mask, port << __bf_shf(mask)); in mv88e6185_g1_set_cascade_port()
511 int bit = __bf_shf(MV88E6XXX_G1_STATS_OP_BUSY); in mv88e6xxx_g1_stats_wait()
A Dport.c1521 int bit = __bf_shf(MV88E6393X_PORT_EPC_CMD_BUSY); in mv88e6393x_port_epc_wait_ready()
1583 (ptr << __bf_shf(MV88E6390_PORT_IEEE_PRIO_MAP_TABLE_PTR_MASK)) | in mv88e6xxx_port_ieeepmt_write()
1630 *shift = __bf_shf(MV88E6XXX_PORT_POLICY_CTL_DA_MASK); in mv88e6xxx_port_policy_mapping_get_pos()
1634 *shift = __bf_shf(MV88E6XXX_PORT_POLICY_CTL_SA_MASK); in mv88e6xxx_port_policy_mapping_get_pos()
1638 *shift = __bf_shf(MV88E6XXX_PORT_POLICY_CTL_VTU_MASK); in mv88e6xxx_port_policy_mapping_get_pos()
1642 *shift = __bf_shf(MV88E6XXX_PORT_POLICY_CTL_ETYPE_MASK); in mv88e6xxx_port_policy_mapping_get_pos()
1646 *shift = __bf_shf(MV88E6XXX_PORT_POLICY_CTL_PPPOE_MASK); in mv88e6xxx_port_policy_mapping_get_pos()
1650 *shift = __bf_shf(MV88E6XXX_PORT_POLICY_CTL_VBAS_MASK); in mv88e6xxx_port_policy_mapping_get_pos()
1654 *shift = __bf_shf(MV88E6XXX_PORT_POLICY_CTL_OPT82_MASK); in mv88e6xxx_port_policy_mapping_get_pos()
1658 *shift = __bf_shf(MV88E6XXX_PORT_POLICY_CTL_UDP_MASK); in mv88e6xxx_port_policy_mapping_get_pos()
A Dport_hidden.c41 int bit = __bf_shf(MV88E6XXX_PORT_RESERVED_1A_BUSY); in mv88e6xxx_port_hidden_wait()
A Dglobal2.c181 int bit = __bf_shf(MV88E6XXX_G2_IRL_CMD_BUSY); in mv88e6xxx_g2_irl_wait()
218 int bit = __bf_shf(MV88E6XXX_G2_PVT_ADDR_BUSY); in mv88e6xxx_g2_pvt_op_wait()
345 int bit = __bf_shf(MV88E6XXX_G2_EEPROM_CMD_BUSY); in mv88e6xxx_g2_eeprom_wait()
352 bit = __bf_shf(MV88E6XXX_G2_EEPROM_CMD_RUNNING); in mv88e6xxx_g2_eeprom_wait()
616 int bit = __bf_shf(MV88E6XXX_G2_SMI_PHY_CMD_BUSY); in mv88e6xxx_g2_smi_phy_wait()
649 dev <<= __bf_shf(MV88E6XXX_G2_SMI_PHY_CMD_DEV_ADDR_MASK); in mv88e6xxx_g2_smi_phy_access()
A Dglobal2_avb.c34 int bit = __bf_shf(MV88E6352_G2_AVB_CMD_BUSY); in mv88e6xxx_g2_avb_wait()
A Dglobal1_atu.c114 int bit = __bf_shf(MV88E6XXX_G1_ATU_OP_BUSY); in mv88e6xxx_g1_atu_op_wait()
A Dglobal1_vtu.c73 int bit = __bf_shf(MV88E6XXX_G1_VTU_OP_BUSY); in mv88e6xxx_g1_vtu_op_wait()
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/
A Dnfp_asm.c37 return (addr_hi * ((OP_BR_ADDR_LO >> __bf_shf(OP_BR_ADDR_LO)) + 1)) | in br_get_offset()
45 addr_lo = offset & (OP_BR_ADDR_LO >> __bf_shf(OP_BR_ADDR_LO)); in br_set_offset()
/linux-6.3-rc2/drivers/usb/typec/tipd/
A Dtps6598x.h15 #define TPS_FIELD_GET(_mask, _reg) ((typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)))
/linux-6.3-rc2/drivers/hwtracing/coresight/
A Dcoresight-etm4x-sysfs.c351 config->cfg |= mode << __bf_shf(TRCCONFIGR_COND_MASK); in mode_store()
743 val &= TRCVICTLR_EVENT_MASK >> __bf_shf(TRCVICTLR_EVENT_MASK); in event_vinst_store()
779 config->vinst_ctrl |= val << __bf_shf(TRCVICTLR_EXLEVEL_S_MASK); in s_exlevel_vinst_store()
814 config->vinst_ctrl |= val << __bf_shf(TRCVICTLR_EXLEVEL_NS_MASK); in ns_exlevel_vinst_store()
1245 config->addr_acc[idx] |= val << __bf_shf(TRCACATRn_CONTEXT_MASK); in addr_context_store()
1279 if (val & ~(TRCACATRn_EXLEVEL_MASK >> __bf_shf(TRCACATRn_EXLEVEL_MASK))) in addr_exlevel_s_ns_store()
1286 config->addr_acc[idx] |= val << __bf_shf(TRCACATRn_EXLEVEL_MASK); in addr_exlevel_s_ns_store()
A Dcoresight-etm4x-core.c1285 return etm4_get_access_type(config) << __bf_shf(TRCVICTLR_EXLEVEL_MASK); in etm4_get_victlr_access_type()
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/nfpcore/
A Dnfp_nsp_eth.c538 nfp_eth_set_bit_config(nsp, raw_idx, mask, __bf_shf(mask), \
/linux-6.3-rc2/drivers/spi/
A Dspi-dw-core.c875 dws->dfs_offset = __bf_shf(DW_PSSI_CTRLR0_DFS32_MASK); in dw_spi_hw_init()
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/bpf/
A Djit.c147 addr_lo = addr & (OP_BR_ADDR_LO >> __bf_shf(OP_BR_ADDR_LO)); in __emit_br()
192 addr_lo = addr & (OP_BR_BIT_ADDR_LO >> __bf_shf(OP_BR_BIT_ADDR_LO)); in __emit_br_bit()

Completed in 51 milliseconds