| /linux/drivers/platform/cznic/ |
| H A D | turris-omnia-mcu-gpio.c | 101 _DEF_GPIO(OMNIA_CMD_GET_STATUS_WORD, 0, __bf_shf(OMNIA_STS_ ## _name), \ 102 0, __bf_shf(OMNIA_INT_ ## _name), 0, 0) 106 __bf_shf(OMNIA_STS_ ## _name), __bf_shf(OMNIA_CTL_ ## _name), \ 111 __bf_shf(OMNIA_EXT_STS_ ## _name), 0, \ 112 __bf_shf(OMNIA_INT_ ## _name), \ 118 __bf_shf(OMNIA_EXT_STS_ ## _name), 0, \ 119 __bf_shf(OMNIA_INT_ ## _name), \ 125 __bf_shf(OMNIA_EXT_STS_ ## _name), 0, \ 126 __bf_shf(OMNIA_INT_ ## _name), \ 131 __bf_shf(OMNIA_EXT_CTL_ ## _name), \ [all …]
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_reg_defs.h | 42 ((u32)((((typeof(__mask))(__val) << __bf_shf(__mask)) & (__mask)) + \ 45 BUILD_BUG_ON_ZERO(!IS_POWER_OF_2((__mask) + (1ULL << __bf_shf(__mask)))) + \ 46 …BUILD_BUG_ON_ZERO(__builtin_choose_expr(__is_constexpr(__val), (~((__mask) >> __bf_shf(__mask)) & … 59 ((u8)((((typeof(__mask))(__val) << __bf_shf(__mask)) & (__mask)) + \ 62 BUILD_BUG_ON_ZERO(!IS_POWER_OF_2((__mask) + (1ULL << __bf_shf(__mask)))) + \ 63 …BUILD_BUG_ON_ZERO(__builtin_choose_expr(__is_constexpr(__val), (~((__mask) >> __bf_shf(__mask)) & … 102 ((u16)((((typeof(__mask))(__val) << __bf_shf(__mask)) & (__mask)) + \ 105 BUILD_BUG_ON_ZERO(!IS_POWER_OF_2((__mask) + (1ULL << __bf_shf(__mask)))) + \ 106 …BUILD_BUG_ON_ZERO(__builtin_choose_expr(__is_constexpr(__val), (~((__mask) >> __bf_shf(__mask)) & …
|
| /linux/tools/include/linux/ |
| H A D | bitfield.h | 43 #define __bf_shf(x) (__builtin_ffsll(x) - 1) macro 67 ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \ 73 (1ULL << __bf_shf(_mask))); \ 86 (typeof(_mask))((_mask) >> __bf_shf(_mask)); \ 99 !((((typeof(_mask))_val) << __bf_shf(_mask)) & ~(_mask)); \ 113 ((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask); \ 127 (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
|
| /linux/drivers/gpu/drm/bridge/imx/ |
| H A D | imx8mp-hdmi-pai.c | 59 __bf_shf(IEC958_SUBFRAME_PARITY)); in imx8mp_hdmi_pai_enable() 61 __bf_shf(IEC958_SUBFRAME_CHANNEL_STATUS)); in imx8mp_hdmi_pai_enable() 63 __bf_shf(IEC958_SUBFRAME_USER_DATA)); in imx8mp_hdmi_pai_enable() 65 __bf_shf(IEC958_SUBFRAME_VALIDITY)); in imx8mp_hdmi_pai_enable() 67 __bf_shf(IEC958_SUBFRAME_SAMPLE_24_MASK)); in imx8mp_hdmi_pai_enable() 69 __bf_shf(IEC958_SUBFRAME_PREAMBLE_MASK)); in imx8mp_hdmi_pai_enable()
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| H A D | global1.c | 62 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() 81 int bit = __bf_shf(MV88E6185_G1_CTL1_RELOAD_EEPROM); in mv88e6250_g1_eeprom_reload() 389 __bf_shf(MV88E6185_G1_MONITOR_CTL_INGRESS_DEST_MASK); in mv88e6095_g1_set_egress_port() 394 __bf_shf(MV88E6185_G1_MONITOR_CTL_EGRESS_DEST_MASK); in mv88e6095_g1_set_egress_port() 417 reg |= port << __bf_shf(MV88E6185_G1_MONITOR_CTL_ARP_DEST_MASK); in mv88e6095_g1_set_cpu_port() 530 return mv88e6xxx_g1_ctl2_mask(chip, mask, port << __bf_shf(mask)); in mv88e6185_g1_set_cascade_port() 568 int bit = __bf_shf(MV88E6XXX_G1_STATS_OP_BUSY); in mv88e6xxx_g1_stats_wait()
|
| H A D | port.c | 1508 int bit = __bf_shf(MV88E6393X_PORT_EPC_CMD_BUSY); in mv88e6393x_port_epc_wait_ready() 1570 (ptr << __bf_shf(MV88E6390_PORT_IEEE_PRIO_MAP_TABLE_PTR_MASK)) | in mv88e6xxx_port_ieeepmt_write() 1617 *shift = __bf_shf(MV88E6XXX_PORT_POLICY_CTL_DA_MASK); in mv88e6xxx_port_policy_mapping_get_pos() 1621 *shift = __bf_shf(MV88E6XXX_PORT_POLICY_CTL_SA_MASK); in mv88e6xxx_port_policy_mapping_get_pos() 1625 *shift = __bf_shf(MV88E6XXX_PORT_POLICY_CTL_VTU_MASK); in mv88e6xxx_port_policy_mapping_get_pos() 1629 *shift = __bf_shf(MV88E6XXX_PORT_POLICY_CTL_ETYPE_MASK); in mv88e6xxx_port_policy_mapping_get_pos() 1633 *shift = __bf_shf(MV88E6XXX_PORT_POLICY_CTL_PPPOE_MASK); in mv88e6xxx_port_policy_mapping_get_pos() 1637 *shift = __bf_shf(MV88E6XXX_PORT_POLICY_CTL_VBAS_MASK); in mv88e6xxx_port_policy_mapping_get_pos() 1641 *shift = __bf_shf(MV88E6XXX_PORT_POLICY_CTL_OPT82_MASK); in mv88e6xxx_port_policy_mapping_get_pos() 1645 *shift = __bf_shf(MV88E6XXX_PORT_POLICY_CTL_UDP_MASK); in mv88e6xxx_port_policy_mapping_get_pos()
|
| H A D | global2.c | 181 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()
|
| H A D | port_hidden.c | 41 int bit = __bf_shf(MV88E6XXX_PORT_RESERVED_1A_BUSY); in mv88e6xxx_port_hidden_wait()
|
| H A D | global2_avb.c | 34 int bit = __bf_shf(MV88E6352_G2_AVB_CMD_BUSY); in mv88e6xxx_g2_avb_wait()
|
| H A D | global1_atu.c | 114 int bit = __bf_shf(MV88E6XXX_G1_ATU_OP_BUSY); in mv88e6xxx_g1_atu_op_wait()
|
| H A D | global1_vtu.c | 73 int bit = __bf_shf(MV88E6XXX_G1_VTU_OP_BUSY); in mv88e6xxx_g1_vtu_op_wait()
|
| /linux/sound/soc/codecs/ |
| H A D | ssm3515.c | 111 __bf_shf(SSM3515_GEC_ANA_GAIN), 118 __bf_shf(SSM3515_GEC_EDGE), 1, 0), 120 __bf_shf(SSM3515_DAC_HV), 1, 1), 122 __bf_shf(SSM3515_DAC_HPF), 1, 0), 124 __bf_shf(SSM3515_SAI1_DAC_POL), 1, 0),
|
| /linux/arch/arm64/kvm/ |
| H A D | ptdump.c | 49 .val = 0b00UL << __bf_shf(KVM_PTE_LEAF_ATTR_HI_S2_XN), 54 .val = 0b01UL << __bf_shf(KVM_PTE_LEAF_ATTR_HI_S2_XN), 59 .val = 0b10UL << __bf_shf(KVM_PTE_LEAF_ATTR_HI_S2_XN), 64 .val = 0b11UL << __bf_shf(KVM_PTE_LEAF_ATTR_HI_S2_XN),
|
| /linux/include/linux/ |
| H A D | hw_bitfield.h | 32 (((typeof(__mask))(__val) << __bf_shf(__mask)) & (__mask)) | \
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_asm.c | 37 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/drivers/net/dsa/microchip/ |
| H A D | ksz_dcb.c | 102 *shift = __bf_shf(KSZ8_PORT_BASED_PRIO_M); in ksz_get_default_port_prio_reg() 108 *shift = __bf_shf(KSZ9477_PORT_BASED_PRIO_M); in ksz_get_default_port_prio_reg()
|
| /linux/drivers/hwtracing/coresight/ |
| H A D | coresight-etm4x-sysfs.c | 353 config->cfg |= mode << __bf_shf(TRCCONFIGR_COND_MASK); in mode_store() 745 val &= TRCVICTLR_EVENT_MASK >> __bf_shf(TRCVICTLR_EVENT_MASK); in event_vinst_store() 781 config->vinst_ctrl |= val << __bf_shf(TRCVICTLR_EXLEVEL_S_MASK); in s_exlevel_vinst_store() 816 config->vinst_ctrl |= val << __bf_shf(TRCVICTLR_EXLEVEL_NS_MASK); in ns_exlevel_vinst_store() 1247 config->addr_acc[idx] |= val << __bf_shf(TRCACATRn_CONTEXT_MASK); in addr_context_store() 1281 if (val & ~(TRCACATRn_EXLEVEL_MASK >> __bf_shf(TRCACATRn_EXLEVEL_MASK))) in addr_exlevel_s_ns_store() 1288 config->addr_acc[idx] |= val << __bf_shf(TRCACATRn_EXLEVEL_MASK); in addr_exlevel_s_ns_store()
|
| /linux/drivers/usb/typec/tipd/ |
| H A D | tps6598x.h | 15 #define TPS_FIELD_GET(_mask, _reg) ((typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)))
|
| /linux/drivers/iommu/generic_pt/fmt/ |
| H A D | amdv1.h | 138 code = pts->entry >> (__bf_shf(AMDV1PT_FMT_OA) - 1 + in amdv1pt_entry_num_contig_lg2()
|
| /linux/drivers/net/phy/qcom/ |
| H A D | qca808x.c | 275 ss_mask.speed_shift = __bf_shf(QCA808X_SS_SPEED_MASK); in qca808x_read_status()
|
| H A D | qcom-phy-lib.c | 364 ss_mask.speed_shift = __bf_shf(AT803X_SS_SPEED_MASK); in at803x_read_status()
|
| /linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
| H A D | nfp_nsp_eth.c | 577 nfp_eth_set_bit_config(nsp, raw_idx, mask, __bf_shf(mask), \
|
| /linux/drivers/spi/ |
| H A D | spi-dw-core.c | 905 dws->dfs_offset = __bf_shf(DW_PSSI_CTRLR0_DFS32_MASK); in dw_spi_hw_init()
|
| H A D | spi-amlogic-spisg.c | 681 div->shift = __bf_shf(CFG_CLK_DIV); in aml_spisg_clk_init()
|
| /linux/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | mac80211.c | 118 __bf_shf(IEEE80211_EML_CAP_EMLSR_PADDING_DELAY) | \ 120 __bf_shf(IEEE80211_EML_CAP_EMLSR_TRANSITION_DELAY))
|