| /linux/drivers/soc/qcom/ |
| H A D | qcom-pbs.c | 35 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/fs/f2fs/ |
| H A D | dir.c | 232 unsigned long bit_pos = 0; in f2fs_find_target_dentry() local 238 while (bit_pos < d->max) { in f2fs_find_target_dentry() 239 if (!test_bit_le(bit_pos, d->bitmap)) { in f2fs_find_target_dentry() 240 bit_pos++; in f2fs_find_target_dentry() 245 de = &d->dentry[bit_pos]; in f2fs_find_target_dentry() 248 bit_pos++; in f2fs_find_target_dentry() 254 d->filename[bit_pos], in f2fs_find_target_dentry() 266 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); in f2fs_find_target_dentry() 645 unsigned int bit_pos; in f2fs_has_enough_room() local 650 bit_pos = f2fs_room_for_filename(d.bitmap, slots, d.max); in f2fs_has_enough_room() [all …]
|
| H A D | inline.c | 488 unsigned long bit_pos = 0; in f2fs_add_inline_entries() local 493 while (bit_pos < d.max) { in f2fs_add_inline_entries() 499 if (!test_bit_le(bit_pos, d.bitmap)) { in f2fs_add_inline_entries() 500 bit_pos++; in f2fs_add_inline_entries() 504 de = &d.dentry[bit_pos]; in f2fs_add_inline_entries() 507 bit_pos++; in f2fs_add_inline_entries() 516 fname.disk_name.name = d.filename[bit_pos]; in f2fs_add_inline_entries() 527 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); in f2fs_add_inline_entries() 642 unsigned int bit_pos; in f2fs_add_inline_entry() local 656 bit_pos = f2fs_room_for_filename(d.bitmap, slots, d.max); in f2fs_add_inline_entry() [all …]
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_seq64.c | 176 unsigned long bit_pos; in amdgpu_seq64_alloc() local 178 bit_pos = find_first_zero_bit(adev->seq64.used, adev->seq64.num_sem); in amdgpu_seq64_alloc() 179 if (bit_pos >= adev->seq64.num_sem) in amdgpu_seq64_alloc() 182 __set_bit(bit_pos, adev->seq64.used); in amdgpu_seq64_alloc() 184 *va = bit_pos * sizeof(u64) + amdgpu_seq64_get_va_base(adev); in amdgpu_seq64_alloc() 187 *gpu_addr = bit_pos * sizeof(u64) + adev->seq64.gpu_addr; in amdgpu_seq64_alloc() 189 *cpu_addr = bit_pos + adev->seq64.cpu_base_addr; in amdgpu_seq64_alloc() 204 unsigned long bit_pos; in amdgpu_seq64_free() local 206 bit_pos = (va - amdgpu_seq64_get_va_base(adev)) / sizeof(u64); in amdgpu_seq64_free() 207 if (bit_pos < adev->seq64.num_sem) in amdgpu_seq64_free() [all …]
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_dmac_flt.c | 79 int otx2_dmacflt_add(struct otx2_nic *pf, const u8 *mac, u32 bit_pos) in otx2_dmacflt_add() argument 86 dmacindex = &pf->flow_cfg->bmap_to_dmacindex[bit_pos]; in otx2_dmacflt_add() 135 u32 bit_pos) in otx2_dmacflt_remove() argument 137 u32 dmacindex = pf->flow_cfg->bmap_to_dmacindex[bit_pos]; in otx2_dmacflt_remove() 182 int otx2_dmacflt_update(struct otx2_nic *pf, u8 *mac, u32 bit_pos) in otx2_dmacflt_update() argument 198 req->index = pf->flow_cfg->bmap_to_dmacindex[bit_pos]; in otx2_dmacflt_update() 213 pf->flow_cfg->bmap_to_dmacindex[bit_pos] = rsp->index; in otx2_dmacflt_update()
|
| /linux/drivers/block/drbd/ |
| H A D | drbd_proc.c | 193 unsigned long bit_pos; in drbd_syncer_progress() local 197 bit_pos = bm_bits - device->ov_left; in drbd_syncer_progress() 201 bit_pos = device->bm_resync_fo; in drbd_syncer_progress() 206 (int)(bit_pos / (bm_bits/100+1)), in drbd_syncer_progress() 207 (unsigned long long)bit_pos * BM_SECT_PER_BIT, in drbd_syncer_progress()
|
| /linux/drivers/platform/x86/intel/telemetry/ |
| H A D | debugfs.c | 70 (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/sh/drivers/ |
| H A D | heartbeat.c | 37 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/regulator/ |
| H A D | tps65910-regulator.c | 826 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/arch/arm64/kernel/probes/ |
| H A D | simulate-insn.c | 87 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/mfd/ |
| H A D | palmas.c | 331 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/pci/controller/dwc/ |
| H A D | pci-keystone.c | 161 u32 bit_pos; in ks_pcie_msi_irq_ack() local 167 bit_pos = irq >> 3; in ks_pcie_msi_irq_ack() 170 BIT(bit_pos)); in ks_pcie_msi_irq_ack() 201 u32 bit_pos; in ks_pcie_msi_mask() local 209 bit_pos = irq >> 3; in ks_pcie_msi_mask() 212 BIT(bit_pos)); in ks_pcie_msi_mask() 225 u32 bit_pos; in ks_pcie_msi_unmask() local 233 bit_pos = irq >> 3; in ks_pcie_msi_unmask() 236 BIT(bit_pos)); in ks_pcie_msi_unmask()
|
| /linux/drivers/cdx/controller/ |
| H A D | mcdi_functions.c | 217 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/include/linux/ |
| H A D | cper.h | 478 u16 bit_pos; member 498 u16 bit_pos; member 518 u16 bit_pos; member
|
| /linux/arch/sh/include/asm/ |
| H A D | heartbeat.h | 11 unsigned char *bit_pos; member
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | hwmon.c | 210 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/7751/ |
| H A D | setup.c | 22 .bit_pos = heartbeat_bit_pos,
|
| /linux/arch/sh/boards/mach-se/7721/ |
| H A D | setup.c | 20 .bit_pos = heartbeat_bit_pos,
|
| /linux/arch/sh/boards/mach-se/7206/ |
| H A D | setup.c | 52 .bit_pos = heartbeat_bit_pos,
|
| /linux/arch/sh/boards/ |
| H A D | board-polaris.c | 69 .bit_pos = heartbeat_bit_pos,
|
| /linux/sound/soc/codecs/ |
| H A D | cs35l34.c | 272 unsigned int reg, bit_pos; in cs35l34_set_tdm_slot() local 325 bit_pos = slot - ((slot / 8) * (8)); in cs35l34_set_tdm_slot() 327 1 << bit_pos, 1 << bit_pos); in cs35l34_set_tdm_slot()
|
| H A D | cs35l33.c | 552 unsigned int reg, bit_pos, i; in cs35l33_set_tdm_slot() local 622 bit_pos = slot - ((slot / 8) * (8)); in cs35l33_set_tdm_slot() 624 1 << bit_pos, 1 << bit_pos); in cs35l33_set_tdm_slot()
|
| /linux/drivers/firmware/efi/ |
| H A D | cper.c | 338 mem->bit_pos); in cper_mem_err_location() 388 cmem->bit_pos = mem->bit_pos; in cper_mem_err_pack()
|
| /linux/arch/sh/boards/mach-se/770x/ |
| H A D | setup.c | 96 .bit_pos = heartbeat_bit_pos,
|
| /linux/sound/soc/tegra/ |
| H A D | tegra210_ahub.c | 23 unsigned int reg, i, bit_pos = 0; in tegra_ahub_get_value_enum() local 37 bit_pos = ffs(reg_val) + in tegra_ahub_get_value_enum() 45 if (bit_pos == e->values[i]) { in tegra_ahub_get_value_enum() 64 unsigned int i, bit_pos, reg_idx = 0, reg_val = 0; in tegra_ahub_put_value_enum() local 73 bit_pos = (value - 1) % (8 * cmpnt->val_bytes); in tegra_ahub_put_value_enum() 74 reg_val = BIT(bit_pos); in tegra_ahub_put_value_enum()
|