Home
last modified time | relevance | path

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

/drivers/pci/host/
Dpci-keystone-dw.c78 u32 *bit_pos) in update_reg_offset_bit_pos() argument
81 *bit_pos = offset >> 3; in update_reg_offset_bit_pos()
127 u32 offset, reg_offset, bit_pos; in ks_dw_pcie_msi_irq_ack() local
136 update_reg_offset_bit_pos(offset, &reg_offset, &bit_pos); in ks_dw_pcie_msi_irq_ack()
139 BIT(bit_pos)); in ks_dw_pcie_msi_irq_ack()
145 u32 reg_offset, bit_pos; in ks_dw_pcie_msi_set_irq() local
148 update_reg_offset_bit_pos(irq, &reg_offset, &bit_pos); in ks_dw_pcie_msi_set_irq()
150 BIT(bit_pos)); in ks_dw_pcie_msi_set_irq()
155 u32 reg_offset, bit_pos; in ks_dw_pcie_msi_clear_irq() local
158 update_reg_offset_bit_pos(irq, &reg_offset, &bit_pos); in ks_dw_pcie_msi_clear_irq()
[all …]
/drivers/scsi/cxlflash/
Dvlun.c159 u64 bit_pos = -1; in find_free_range() local
166 bit_pos = find_first_bit(lam, num_bits); in find_free_range()
170 __func__, bit_pos, bali->lun_alloc_map[i], in find_free_range()
175 clear_bit(bit_pos, lam); in find_free_range()
179 return bit_pos; in find_free_range()
190 u64 bit_pos = -1; in ba_alloc() local
207 bit_pos = find_free_range(bali->free_curr_idx, in ba_alloc()
209 if (bit_pos == -1) { in ba_alloc()
210 bit_pos = find_free_range(bali->free_low_idx, in ba_alloc()
213 if (bit_pos == -1) { in ba_alloc()
[all …]
/drivers/usb/gadget/udc/
Dmv_udc_core.c136 u32 bit_pos; in process_ep_req() local
189 bit_pos = 1 << curr_req->ep->ep_num; in process_ep_req()
191 bit_pos = 1 << (16 + curr_req->ep->ep_num); in process_ep_req()
195 while (readl(&udc->op_regs->epstatus) & bit_pos) in process_ep_req()
261 u32 bit_pos, direction; in queue_dtd() local
269 bit_pos = 1 << (((direction == EP_DIR_OUT) ? 0 : 16) + ep->ep_num); in queue_dtd()
280 if (readl(&udc->op_regs->epprime) & bit_pos) in queue_dtd()
291 epstatus = readl(&udc->op_regs->epstatus) & bit_pos; in queue_dtd()
334 writel(bit_pos, &udc->op_regs->epprime); in queue_dtd()
447 u32 bit_pos, epctrlx, direction; in mv_ep_enable() local
[all …]
Dfsl_udc_core.c1677 u32 bit_pos; in dtd_complete_irq() local
1683 bit_pos = fsl_readl(&dr_regs->endptcomplete); in dtd_complete_irq()
1684 fsl_writel(bit_pos, &dr_regs->endptcomplete); in dtd_complete_irq()
1686 if (!bit_pos) in dtd_complete_irq()
1695 if (!(bit_pos & bit_mask)) in dtd_complete_irq()
Dmv_u3d_core.c1608 u32 tmp, bit_pos; in mv_u3d_irq_process_tr_complete() local
1625 bit_pos = 1 << (ep_num + 16 * direction); in mv_u3d_irq_process_tr_complete()
1627 if (!(bit_pos & tmp)) in mv_u3d_irq_process_tr_complete()
/drivers/block/drbd/
Ddrbd_proc.c216 unsigned long bit_pos; in drbd_syncer_progress() local
220 bit_pos = bm_bits - device->ov_left; in drbd_syncer_progress()
224 bit_pos = device->bm_resync_fo; in drbd_syncer_progress()
229 (int)(bit_pos / (bm_bits/100+1)), in drbd_syncer_progress()
230 (unsigned long long)bit_pos * BM_SECT_PER_BIT, in drbd_syncer_progress()
/drivers/platform/x86/
Dintel_telemetry_debugfs.c87 (BUF)[idx] = ((EVTLOG) >> (EVTDAT)[idx].bit_pos) & \
120 u32 bit_pos; member
144 u32 bit_pos; member
170 u32 bit_pos; member
185 u32 bit_pos; member
200 u32 bit_pos; member
227 u32 bit_pos; member
389 conf->pss_idle_data[conf->pss_idle_evts - 1].bit_pos) & in telem_pss_states_show()
681 conf->pss_idle_data[idx].bit_pos) & in telem_soc_states_show()
686 conf->pss_idle_data[idx].bit_pos) & in telem_soc_states_show()
/drivers/regulator/
Dtps65910-regulator.c830 u8 bit_pos = (1 << pmic->ext_sleep_control[id] & 0xFF); in tps65910_set_ext_sleep_config() local
859 TPS65910_EN1_LDO_ASS + regoffs, bit_pos); in tps65910_set_ext_sleep_config()
862 TPS65910_EN1_LDO_ASS + regoffs, bit_pos); in tps65910_set_ext_sleep_config()
872 TPS65910_EN2_LDO_ASS + regoffs, bit_pos); in tps65910_set_ext_sleep_config()
875 TPS65910_EN2_LDO_ASS + regoffs, bit_pos); in tps65910_set_ext_sleep_config()
887 TPS65910_EN3_LDO_ASS + regoffs, bit_pos); in tps65910_set_ext_sleep_config()
890 TPS65910_EN3_LDO_ASS + regoffs, bit_pos); in tps65910_set_ext_sleep_config()
902 TPS65910_SLEEP_KEEP_LDO_ON + regoffs, bit_pos); in tps65910_set_ext_sleep_config()
905 TPS65910_SLEEP_SET_LDO_OFF + regoffs, bit_pos); in tps65910_set_ext_sleep_config()
951 TPS65910_SLEEP_KEEP_LDO_ON + regoffs, bit_pos); in tps65910_set_ext_sleep_config()
[all …]
Dpalmas-regulator.c322 .bit_pos = _pos, \
358 .bit_pos = _pos, \
/drivers/mfd/
Dpalmas.c335 int bit_pos, ret; in palmas_ext_control_req_config() local
354 bit_pos = pmic_ddata->sleep_req_info[id].bit_pos; in palmas_ext_control_req_config()
358 reg_add, BIT(bit_pos), BIT(bit_pos)); in palmas_ext_control_req_config()
361 reg_add, BIT(bit_pos), 0); in palmas_ext_control_req_config()
/drivers/pinctrl/sh-pfc/
Dcore.c255 unsigned int bit_pos; in sh_pfc_get_config_reg() local
262 for (bit_pos = 0; bit_pos < r_width; bit_pos += curr_width) { in sh_pfc_get_config_reg()
/drivers/firmware/efi/
Dcper.c237 mem->bit_pos); in cper_mem_err_location()
285 cmem->bit_pos = mem->bit_pos; in cper_mem_err_pack()
/drivers/mtd/nand/
Datmel_nand.c805 int byte_pos, bit_pos, sector_size, pos; in pmecc_correct_data() local
814 bit_pos = tmp % 8; in pmecc_correct_data()
821 *(buf + byte_pos) ^= (1 << bit_pos); in pmecc_correct_data()
825 pos, bit_pos, err_byte, *(buf + byte_pos)); in pmecc_correct_data()
833 ecc[tmp] ^= (1 << bit_pos); in pmecc_correct_data()
838 pos, bit_pos, err_byte, ecc[tmp]); in pmecc_correct_data()
Domap2.c1372 u32 bit_pos, byte_pos, error_max, pos; in omap_elm_correct_data() local
1482 bit_pos = pos % 8; in omap_elm_correct_data()
1491 data[byte_pos] ^= 1 << bit_pos; in omap_elm_correct_data()
1497 1 << bit_pos; in omap_elm_correct_data()
1502 byte_pos, bit_pos); in omap_elm_correct_data()
/drivers/scsi/lpfc/
Dlpfc_ct.c2481 uint32_t bit_pos; in lpfc_fdmi_cmd() local
2563 bit_pos = 0; in lpfc_fdmi_cmd()
2572 func = lpfc_fdmi_hba_action[bit_pos]; in lpfc_fdmi_cmd()
2582 bit_pos++; in lpfc_fdmi_cmd()
2608 bit_pos = 0; in lpfc_fdmi_cmd()
2617 func = lpfc_fdmi_port_action[bit_pos]; in lpfc_fdmi_cmd()
2627 bit_pos++; in lpfc_fdmi_cmd()
/drivers/pinctrl/
Dpinctrl-single.c1273 unsigned mask, bit_pos, val_pos, mask_pos, submask; in pcs_parse_bits_in_pinctrl_entry() local
1283 bit_pos = __ffs(mask); in pcs_parse_bits_in_pinctrl_entry()
1284 pin_num_from_lsb = bit_pos / pcs->bits_per_pin; in pcs_parse_bits_in_pinctrl_entry()
1285 mask_pos = ((pcs->fmask) << bit_pos); in pcs_parse_bits_in_pinctrl_entry()
/drivers/net/ethernet/cavium/thunder/
Dnicvf_queues.c32 u64 reg, int bit_pos, int bits, int val) in nicvf_poll_reg() argument
39 bit_mask = (bit_mask << bit_pos); in nicvf_poll_reg()
43 if (((reg_val & bit_mask) >> bit_pos) == val) in nicvf_poll_reg()
/drivers/edac/
Dghes_edac.c306 p += sprintf(p, "bit_pos:%d ", mem_err->bit_pos); in ghes_edac_report_mem_error()