Home
last modified time | relevance | path

Searched refs:bit_num (Results 1 – 18 of 18) sorted by relevance

/linux-6.6.21/include/linux/mfd/
Dtps65090.h134 uint8_t bit_num) in tps65090_set_bits() argument
138 return regmap_update_bits(tps->rmap, reg, BIT(bit_num), ~0u); in tps65090_set_bits()
142 uint8_t bit_num) in tps65090_clr_bits() argument
146 return regmap_update_bits(tps->rmap, reg, BIT(bit_num), 0u); in tps65090_clr_bits()
/linux-6.6.21/drivers/infiniband/hw/bnxt_re/
Dqplib_res.c648 u32 bit_num; in bnxt_qplib_alloc_pd() local
652 bit_num = find_first_bit(pdt->tbl, pdt->max); in bnxt_qplib_alloc_pd()
653 if (bit_num == pdt->max) { in bnxt_qplib_alloc_pd()
659 clear_bit(bit_num, pdt->tbl); in bnxt_qplib_alloc_pd()
660 pd->id = bit_num; in bnxt_qplib_alloc_pd()
719 u32 bit_num; in bnxt_qplib_alloc_dpi() local
725 bit_num = find_first_bit(dpit->tbl, dpit->max); in bnxt_qplib_alloc_dpi()
726 if (bit_num == dpit->max) { in bnxt_qplib_alloc_dpi()
732 clear_bit(bit_num, dpit->tbl); in bnxt_qplib_alloc_dpi()
733 dpit->app_tbl[bit_num] = app; in bnxt_qplib_alloc_dpi()
[all …]
/linux-6.6.21/include/sound/
Dhda_register.h243 #define AZX_REG_MASK(bit_num, offset) \ argument
244 (((1 << (bit_num)) - 1) << (offset))
/linux-6.6.21/drivers/gpu/drm/hisilicon/kirin/
Dkirin_drm_ade.c94 static void ade_update_reload_bit(void __iomem *base, u32 bit_num, u32 val) in ade_update_reload_bit() argument
98 bit_ofst = bit_num % 32; in ade_update_reload_bit()
99 reg_num = bit_num / 32; in ade_update_reload_bit()
105 static u32 ade_read_reload_bit(void __iomem *base, u32 bit_num) in ade_read_reload_bit() argument
109 bit_ofst = bit_num % 32; in ade_read_reload_bit()
110 reg_num = bit_num / 32; in ade_read_reload_bit()
/linux-6.6.21/drivers/input/rmi4/
Drmi_f30.c105 unsigned int bit_num = button & 0x07; in rmi_f30_report_button() local
107 bool key_down = !(f30->data_regs[reg_num] & BIT(bit_num)); in rmi_f30_report_button()
/linux-6.6.21/drivers/gpu/drm/amd/amdkfd/
Dkfd_device.c1171 unsigned int bit_num, in kfd_gtt_sa_calc_gpu_addr() argument
1174 return start_addr + bit_num * chunk_size; in kfd_gtt_sa_calc_gpu_addr()
1178 unsigned int bit_num, in kfd_gtt_sa_calc_cpu_addr() argument
1181 return (uint32_t *) ((uint64_t) start_addr + bit_num * chunk_size); in kfd_gtt_sa_calc_cpu_addr()
/linux-6.6.21/drivers/gpu/drm/mediatek/
Dmtk_dpi.c79 enum mtk_dpi_out_bit_num bit_num; member
604 mtk_dpi_config_bit_num(dpi, dpi->bit_num); in mtk_dpi_set_display_mode()
692 dpi->bit_num = MTK_DPI_OUT_BIT_NUM_8BITS; in mtk_dpi_bridge_atomic_check()
Dmtk_hdmi.c451 enum hdmi_audio_sample_size bit_num) in mtk_hdmi_hw_aud_set_bit_num() argument
455 switch (bit_num) { in mtk_hdmi_hw_aud_set_bit_num()
/linux-6.6.21/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_prs.c210 static void mvpp2_prs_sram_bits_set(struct mvpp2_prs_entry *pe, int bit_num, in mvpp2_prs_sram_bits_set() argument
213 pe->sram[MVPP2_BIT_TO_WORD(bit_num)] |= (val << (MVPP2_BIT_IN_WORD(bit_num))); in mvpp2_prs_sram_bits_set()
217 static void mvpp2_prs_sram_bits_clear(struct mvpp2_prs_entry *pe, int bit_num, in mvpp2_prs_sram_bits_clear() argument
220 pe->sram[MVPP2_BIT_TO_WORD(bit_num)] &= ~(val << (MVPP2_BIT_IN_WORD(bit_num))); in mvpp2_prs_sram_bits_clear()
/linux-6.6.21/drivers/video/fbdev/via/
Dhw.c969 int bit_num = 0; in viafb_load_reg() local
983 shift_next_reg = bit_num; in viafb_load_reg()
987 get_bit = (timing_value & (BIT0 << bit_num)); in viafb_load_reg()
990 bit_num++; in viafb_load_reg()
/linux-6.6.21/sound/soc/codecs/
Dcs35l56.c492 int bit_num; in cs35l56_make_tdm_config_word() local
496 for_each_set_bit(bit_num, &mask, 32) { in cs35l56_make_tdm_config_word()
498 reg_val |= bit_num << channel_shift; in cs35l56_make_tdm_config_word()
/linux-6.6.21/drivers/pinctrl/mvebu/
Dpinctrl-armada-37xx.c631 u32 bit_num = pin_idx % GPIO_PER_REG; in armada_37xx_edge_both_irq_swap_pol() local
639 if ((p ^ l) & (1 << bit_num)) { in armada_37xx_edge_both_irq_swap_pol()
650 p ^= 1 << bit_num; in armada_37xx_edge_both_irq_swap_pol()
/linux-6.6.21/drivers/net/ethernet/amd/
Damd8111e.c1322 int bit_num; in amd8111e_set_multicast_list() local
1351 bit_num = (ether_crc_le(ETH_ALEN, ha->addr) >> 26) & 0x3f; in amd8111e_set_multicast_list()
1352 mc_filter[bit_num >> 5] |= 1 << (bit_num & 31); in amd8111e_set_multicast_list()
/linux-6.6.21/drivers/net/ethernet/smsc/
Dsmsc9420.c1012 u32 bit_num = smsc9420_hash(ha->addr); in smsc9420_set_multicast_list() local
1013 u32 mask = 1 << (bit_num & 0x1F); in smsc9420_set_multicast_list()
1015 if (bit_num & 0x20) in smsc9420_set_multicast_list()
/linux-6.6.21/drivers/misc/
Dxilinx_sdfec.c252 u32 reg_offset, u32 bit_num, in update_bool_config_from_reg() argument
256 u32 bit_mask = 1 << bit_num; in update_bool_config_from_reg()
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/mvm/
Dmac80211.c1951 u8 bit_num = ppe_pos_bit % 8; in iwl_mvm_he_get_ppe_val() local
1955 if (bit_num <= 5) in iwl_mvm_he_get_ppe_val()
1956 return (ppe[byte_num] >> bit_num) & in iwl_mvm_he_get_ppe_val()
1965 residue_bits = 8 - bit_num; in iwl_mvm_he_get_ppe_val()
1970 res += (ppe[byte_num] >> bit_num) & (BIT(residue_bits) - 1); in iwl_mvm_he_get_ppe_val()
/linux-6.6.21/drivers/net/wireless/realtek/rtw89/
Dpci.c3332 static u16 gray_code_to_bin(u16 gray_code, u32 bit_num) in gray_code_to_bin() argument
3337 for (bit_idx = 0; bit_idx < bit_num; bit_idx++) { in gray_code_to_bin()
3339 if (bit_num - bit_idx > 1) in gray_code_to_bin()
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c8110 unsigned int bit_num; in hclge_update_desc_vfid() local
8117 bit_num = vfid % 32; in hclge_update_desc_vfid()
8119 desc[1].data[word_num] &= cpu_to_le32(~(1 << bit_num)); in hclge_update_desc_vfid()
8121 desc[1].data[word_num] |= cpu_to_le32(1 << bit_num); in hclge_update_desc_vfid()
8124 bit_num = vfid % 32; in hclge_update_desc_vfid()
8126 desc[2].data[word_num] &= cpu_to_le32(~(1 << bit_num)); in hclge_update_desc_vfid()
8128 desc[2].data[word_num] |= cpu_to_le32(1 << bit_num); in hclge_update_desc_vfid()