Home
last modified time | relevance | path

Searched refs:bit_pos (Results 1 – 25 of 33) sorted by relevance

12

/linux/drivers/soc/qcom/
H A Dqcom-pbs.c35 static int qcom_pbs_wait_for_ack(struct pbs_dev *pbs, u8 bit_pos) in qcom_pbs_wait_for_ack() argument
41 val, val & BIT(bit_pos), DELAY, DELAY * RETRIES); in qcom_pbs_wait_for_ack()
44 dev_err(pbs->dev, "Timeout for PBS ACK/NACK for bit %u\n", bit_pos); in qcom_pbs_wait_for_ack()
50 dev_err(pbs->dev, "NACK from PBS for bit %u\n", bit_pos); in qcom_pbs_wait_for_ack()
54 dev_dbg(pbs->dev, "PBS sequence for bit %u executed!\n", bit_pos); in qcom_pbs_wait_for_ack()
78 u16 bit_pos; in qcom_pbs_trigger_event() local
99 for (bit_pos = 0; bit_pos < 8; bit_pos++) { in qcom_pbs_trigger_event()
100 if (!(bitmap & BIT(bit_pos))) in qcom_pbs_trigger_event()
105 BIT(bit_pos), 0); in qcom_pbs_trigger_event()
111 BIT(bit_pos), BIT(bit_pos)); in qcom_pbs_trigger_event()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_seq64.c176 unsigned long bit_pos = 0; in amdgpu_seq64_alloc() local
179 bit_pos = find_next_zero_bit(adev->seq64.used, in amdgpu_seq64_alloc()
180 adev->seq64.num_sem, bit_pos); in amdgpu_seq64_alloc()
181 if (bit_pos >= adev->seq64.num_sem) in amdgpu_seq64_alloc()
183 if (!test_and_set_bit(bit_pos, adev->seq64.used)) in amdgpu_seq64_alloc()
185 bit_pos++; in amdgpu_seq64_alloc()
188 *va = bit_pos * sizeof(u64) + amdgpu_seq64_get_va_base(adev); in amdgpu_seq64_alloc()
191 *gpu_addr = bit_pos * sizeof(u64) + adev->seq64.gpu_addr; in amdgpu_seq64_alloc()
193 *cpu_addr = bit_pos + adev->seq64.cpu_base_addr; in amdgpu_seq64_alloc()
208 unsigned long bit_pos; in amdgpu_seq64_free() local
[all …]
/linux/fs/f2fs/
H A Ddir.c233 unsigned long bit_pos = 0; in f2fs_find_target_dentry() local
239 while (bit_pos < d->max) { in f2fs_find_target_dentry()
240 if (!test_bit_le(bit_pos, d->bitmap)) { in f2fs_find_target_dentry()
241 bit_pos++; in f2fs_find_target_dentry()
246 de = &d->dentry[bit_pos]; in f2fs_find_target_dentry()
249 bit_pos++; in f2fs_find_target_dentry()
254 bit_pos + GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)) > in f2fs_find_target_dentry()
260 d->filename[bit_pos], in f2fs_find_target_dentry()
272 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); in f2fs_find_target_dentry()
652 unsigned int bit_pos; in f2fs_has_enough_room() local
[all …]
H A Dinline.c491 unsigned long bit_pos = 0; in f2fs_add_inline_entries() local
496 while (bit_pos < d.max) { in f2fs_add_inline_entries()
502 if (!test_bit_le(bit_pos, d.bitmap)) { in f2fs_add_inline_entries()
503 bit_pos++; in f2fs_add_inline_entries()
507 de = &d.dentry[bit_pos]; in f2fs_add_inline_entries()
510 bit_pos++; in f2fs_add_inline_entries()
514 bit_pos + GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)) > in f2fs_add_inline_entries()
525 fname.disk_name.name = d.filename[bit_pos]; in f2fs_add_inline_entries()
536 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); in f2fs_add_inline_entries()
652 unsigned int bit_pos; in f2fs_add_inline_entry() local
[all …]
/linux/arch/sh/drivers/
H A Dheartbeat.c37 new = (1 << hd->bit_pos[bit]); in heartbeat_toggle_bit()
110 hd->bit_pos = default_bit_pos; in heartbeat_drv_probe()
116 hd->mask |= (1 << hd->bit_pos[i]); in heartbeat_drv_probe()
/linux/drivers/platform/x86/intel/telemetry/
H A Ddebugfs.c70 (BUF)[idx] = ((EVTLOG) >> (EVTDAT)[idx].bit_pos) & \
97 u32 bit_pos; member
121 u32 bit_pos; member
147 u32 bit_pos; member
162 u32 bit_pos; member
177 u32 bit_pos; member
204 u32 bit_pos; member
365 conf->pss_idle_data[conf->pss_idle_evts - 1].bit_pos) & in telem_pss_states_show()
624 conf->pss_idle_data[idx].bit_pos) & in telem_soc_states_show()
629 conf->pss_idle_data[idx].bit_pos) & in telem_soc_states_show()
/linux/arch/arm64/kernel/probes/
H A Dsimulate-insn.c87 int bit_pos = ((opcode & (1 << 31)) >> 26) | ((opcode >> 19) & 0x1f); in check_tbz() local
89 return ((get_x_reg(regs, xn) >> bit_pos) & 0x1) == 0; in check_tbz()
95 int bit_pos = ((opcode & (1 << 31)) >> 26) | ((opcode >> 19) & 0x1f); in check_tbnz() local
97 return ((get_x_reg(regs, xn) >> bit_pos) & 0x1) != 0; in check_tbnz()
/linux/drivers/regulator/
H A Dtps65910-regulator.c826 u8 bit_pos = (1 << pmic->ext_sleep_control[id] & 0xFF); in tps65910_set_ext_sleep_config() local
855 TPS65910_EN1_LDO_ASS + regoffs, bit_pos); in tps65910_set_ext_sleep_config()
858 TPS65910_EN1_LDO_ASS + regoffs, bit_pos); in tps65910_set_ext_sleep_config()
868 TPS65910_EN2_LDO_ASS + regoffs, bit_pos); in tps65910_set_ext_sleep_config()
871 TPS65910_EN2_LDO_ASS + regoffs, bit_pos); in tps65910_set_ext_sleep_config()
883 TPS65910_EN3_LDO_ASS + regoffs, bit_pos); in tps65910_set_ext_sleep_config()
886 TPS65910_EN3_LDO_ASS + regoffs, bit_pos); in tps65910_set_ext_sleep_config()
898 TPS65910_SLEEP_KEEP_LDO_ON + regoffs, bit_pos); in tps65910_set_ext_sleep_config()
901 TPS65910_SLEEP_SET_LDO_OFF + regoffs, bit_pos); in tps65910_set_ext_sleep_config()
946 TPS65910_SLEEP_KEEP_LDO_ON + regoffs, bit_pos); in tps65910_set_ext_sleep_config()
[all …]
/linux/drivers/mfd/
H A Dpalmas.c331 int bit_pos, ret; in palmas_ext_control_req_config() local
350 bit_pos = pmic_ddata->sleep_req_info[id].bit_pos; in palmas_ext_control_req_config()
354 reg_add, BIT(bit_pos), BIT(bit_pos)); in palmas_ext_control_req_config()
357 reg_add, BIT(bit_pos), 0); in palmas_ext_control_req_config()
/linux/drivers/cdx/controller/
H A Dmcdi_functions.c217 u8 dev_num, bool enable, int bit_pos) in cdx_mcdi_ctrl_flag_set() argument
231 flags = flags & (u32)(~(BIT(bit_pos))); in cdx_mcdi_ctrl_flag_set()
233 flags |= (1 << bit_pos); in cdx_mcdi_ctrl_flag_set()
/linux/arch/sh/include/asm/
H A Dheartbeat.h11 unsigned char *bit_pos; member
/linux/arch/sh/boards/mach-se/7751/
H A Dsetup.c22 .bit_pos = heartbeat_bit_pos,
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dhwmon.c210 unsigned long bit_pos; in mlx5_hwmon_init_sensors_indexes() local
216 for_each_set_bit(bit_pos, smap, BITS_PER_TYPE(sensor_map)) { in mlx5_hwmon_init_sensors_indexes()
217 hwmon->temp_channel_desc[i].sensor_index = bit_pos; in mlx5_hwmon_init_sensors_indexes()
/linux/arch/sh/boards/mach-se/7721/
H A Dsetup.c20 .bit_pos = heartbeat_bit_pos,
/linux/arch/sh/boards/mach-se/7206/
H A Dsetup.c52 .bit_pos = heartbeat_bit_pos,
/linux/arch/sh/boards/
H A Dboard-polaris.c69 .bit_pos = heartbeat_bit_pos,
/linux/arch/sh/boards/mach-se/770x/
H A Dsetup.c96 .bit_pos = heartbeat_bit_pos,
/linux/drivers/firmware/efi/
H A Dcper.c338 mem->bit_pos); in cper_mem_err_location()
388 cmem->bit_pos = mem->bit_pos; in cper_mem_err_pack()
/linux/sound/soc/tegra/
H A Dtegra210_ahub.c24 unsigned int reg, i, bit_pos = 0; in tegra_ahub_get_value_enum()
38 bit_pos = ffs(reg_val) + in tegra_ahub_get_value_enum()
46 if (bit_pos == e->values[i]) { in tegra_ahub_get_value_enum()
66 unsigned int i, bit_pos, reg_idx = 0, reg_val = 0; in tegra_ahub_put_value_enum()
77 bit_pos = (value - 1) % (8 * val_bytes); in tegra_ahub_put_value_enum()
78 reg_val = BIT(bit_pos); in tegra_ahub_put_value_enum()
23 unsigned int reg, i, bit_pos = 0; tegra_ahub_get_value_enum() local
64 unsigned int i, bit_pos, reg_idx = 0, reg_val = 0; tegra_ahub_put_value_enum() local
/linux/arch/sh/boards/mach-highlander/
H A Dsetup.c138 .bit_pos = heartbeat_bit_pos,
/linux/drivers/pinctrl/
H A Dpinctrl-single.c1159 unsigned mask, bit_pos, val_pos, mask_pos, submask; in pcs_parse_bits_in_pinctrl_entry() local
1183 bit_pos = __ffs(mask); in pcs_parse_bits_in_pinctrl_entry()
1184 pin_num_from_lsb = bit_pos / pcs->bits_per_pin; in pcs_parse_bits_in_pinctrl_entry()
1185 mask_pos = ((pcs->fmask) << bit_pos); in pcs_parse_bits_in_pinctrl_entry()
H A Dpinctrl-rp1.c869 int bit_pos; in rp1_gpio_irq_handler() local
881 for_each_set_bit(bit_pos, &ints, 32) { in rp1_gpio_irq_handler()
882 struct rp1_pin_info *pin = rp1_get_pin(chip, bit_pos); in rp1_gpio_irq_handler()
886 bank->gpio_offset + bit_pos)); in rp1_gpio_irq_handler()
/linux/drivers/usb/gadget/udc/
H A Dfsl_udc_core.c1668 u32 bit_pos; in dtd_complete_irq() local
1674 bit_pos = fsl_readl(&dr_regs->endptcomplete); in dtd_complete_irq()
1675 fsl_writel(bit_pos, &dr_regs->endptcomplete); in dtd_complete_irq()
1677 if (!bit_pos) in dtd_complete_irq()
1686 if (!(bit_pos & bit_mask)) in dtd_complete_irq()
/linux/net/batman-adv/
H A Dbat_iv_ogm.c1720 s32 bit_pos; in batadv_iv_ogm_process_reply() local
1739 bit_pos = if_incoming_seqno - 2; in batadv_iv_ogm_process_reply()
1740 bit_pos -= ntohl(ogm_packet->seqno); in batadv_iv_ogm_process_reply()
1741 batadv_set_bit(orig_ifinfo->bat_iv.bcast_own, bit_pos); in batadv_iv_ogm_process_reply()
/linux/drivers/scsi/lpfc/
H A Dlpfc_ct.c3186 uint32_t bit_pos; in lpfc_fdmi_cmd() local
3272 bit_pos = 0; in lpfc_fdmi_cmd()
3281 func = lpfc_fdmi_hba_action[bit_pos]; in lpfc_fdmi_cmd()
3293 bit_pos++; in lpfc_fdmi_cmd()
3332 bit_pos = 0; in lpfc_fdmi_cmd()
3341 func = lpfc_fdmi_port_action[bit_pos]; in lpfc_fdmi_cmd()
3353 bit_pos++; in lpfc_fdmi_cmd()

12