Home
last modified time | relevance | path

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

/linux-4.4.14/fs/f2fs/
Ddir.c111 unsigned long bit_pos = 0; in find_target_dentry() local
118 while (bit_pos < d->max) { in find_target_dentry()
119 if (!test_bit_le(bit_pos, d->bitmap)) { in find_target_dentry()
120 bit_pos++; in find_target_dentry()
125 de = &d->dentry[bit_pos]; in find_target_dentry()
128 de_name.name = d->filename[bit_pos]; in find_target_dentry()
148 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); in find_target_dentry()
496 unsigned int bit_pos) in f2fs_update_dentry() argument
502 de = &d->dentry[bit_pos]; in f2fs_update_dentry()
505 memcpy(d->filename[bit_pos], name->name, name->len); in f2fs_update_dentry()
[all …]
Dinline.c436 unsigned int bit_pos; in f2fs_add_inline_entry() local
450 bit_pos = room_for_filename(&dentry_blk->dentry_bitmap, in f2fs_add_inline_entry()
452 if (bit_pos >= NR_INLINE_DENTRY) { in f2fs_add_inline_entry()
473 f2fs_update_dentry(ino, mode, &d, name, name_hash, bit_pos); in f2fs_add_inline_entry()
503 unsigned int bit_pos; in f2fs_delete_inline_entry() local
510 bit_pos = dentry - inline_dentry->dentry; in f2fs_delete_inline_entry()
512 test_and_clear_bit_le(bit_pos + i, in f2fs_delete_inline_entry()
529 unsigned int bit_pos = 2; in f2fs_empty_inline_dir() local
537 bit_pos = find_next_bit_le(&dentry_blk->dentry_bitmap, in f2fs_empty_inline_dir()
539 bit_pos); in f2fs_empty_inline_dir()
[all …]
/linux-4.4.14/drivers/pci/host/
Dpci-keystone-dw.c62 u32 *bit_pos) in update_reg_offset_bit_pos() argument
65 *bit_pos = offset >> 3; in update_reg_offset_bit_pos()
100 u32 offset, reg_offset, bit_pos; in ks_dw_pcie_msi_irq_ack() local
109 update_reg_offset_bit_pos(offset, &reg_offset, &bit_pos); in ks_dw_pcie_msi_irq_ack()
111 writel(BIT(bit_pos), in ks_dw_pcie_msi_irq_ack()
118 u32 reg_offset, bit_pos; in ks_dw_pcie_msi_set_irq() local
121 update_reg_offset_bit_pos(irq, &reg_offset, &bit_pos); in ks_dw_pcie_msi_set_irq()
122 writel(BIT(bit_pos), in ks_dw_pcie_msi_set_irq()
128 u32 reg_offset, bit_pos; in ks_dw_pcie_msi_clear_irq() local
131 update_reg_offset_bit_pos(irq, &reg_offset, &bit_pos); in ks_dw_pcie_msi_clear_irq()
[all …]
/linux-4.4.14/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 …]
/linux-4.4.14/drivers/usb/gadget/udc/
Dmv_udc_core.c136 u32 bit_pos; in process_ep_req() local
190 bit_pos = 1 << curr_req->ep->ep_num; in process_ep_req()
192 bit_pos = 1 << (16 + curr_req->ep->ep_num); in process_ep_req()
196 while (readl(&udc->op_regs->epstatus) & bit_pos) in process_ep_req()
262 u32 bit_pos, direction; in queue_dtd() local
270 bit_pos = 1 << (((direction == EP_DIR_OUT) ? 0 : 16) + ep->ep_num); in queue_dtd()
281 if (readl(&udc->op_regs->epprime) & bit_pos) in queue_dtd()
292 epstatus = readl(&udc->op_regs->epstatus) & bit_pos; in queue_dtd()
335 writel(bit_pos, &udc->op_regs->epprime); in queue_dtd()
451 u32 bit_pos, epctrlx, direction; in mv_ep_enable() local
[all …]
Dfsl_udc_core.c1671 u32 bit_pos; in dtd_complete_irq() local
1677 bit_pos = fsl_readl(&dr_regs->endptcomplete); in dtd_complete_irq()
1678 fsl_writel(bit_pos, &dr_regs->endptcomplete); in dtd_complete_irq()
1680 if (!bit_pos) in dtd_complete_irq()
1689 if (!(bit_pos & bit_mask)) in dtd_complete_irq()
Dmv_u3d_core.c1625 u32 tmp, bit_pos; in mv_u3d_irq_process_tr_complete() local
1642 bit_pos = 1 << (ep_num + 16 * direction); in mv_u3d_irq_process_tr_complete()
1644 if (!(bit_pos & tmp)) in mv_u3d_irq_process_tr_complete()
/linux-4.4.14/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()
/linux-4.4.14/arch/sh/drivers/
Dheartbeat.c40 new = (1 << hd->bit_pos[bit]); in heartbeat_toggle_bit()
113 hd->bit_pos = default_bit_pos; in heartbeat_drv_probe()
119 hd->mask |= (1 << hd->bit_pos[i]); in heartbeat_drv_probe()
/linux-4.4.14/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, \
/linux-4.4.14/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()
/linux-4.4.14/include/linux/
Dcper.h356 __u16 bit_pos; member
376 __u16 bit_pos; member
396 __u16 bit_pos; member
/linux-4.4.14/lib/xz/
Dxz_dec_bcj.c204 uint32_t bit_pos; in bcj_ia64() local
224 for (slot = 0, bit_pos = 5; slot < 3; ++slot, bit_pos += 41) { in bcj_ia64()
228 byte_pos = bit_pos >> 3; in bcj_ia64()
229 bit_res = bit_pos & 7; in bcj_ia64()
/linux-4.4.14/arch/sh/include/asm/
Dheartbeat.h10 unsigned char *bit_pos; member
/linux-4.4.14/arch/sh/boards/mach-se/7751/
Dsetup.c21 .bit_pos = heartbeat_bit_pos,
/linux-4.4.14/drivers/pinctrl/sh-pfc/
Dcore.c238 unsigned int bit_pos; in sh_pfc_get_config_reg() local
245 for (bit_pos = 0; bit_pos < r_width; bit_pos += curr_width) { in sh_pfc_get_config_reg()
/linux-4.4.14/arch/sh/boards/mach-se/7206/
Dsetup.c51 .bit_pos = heartbeat_bit_pos,
/linux-4.4.14/arch/sh/boards/mach-se/7721/
Dsetup.c24 .bit_pos = heartbeat_bit_pos,
/linux-4.4.14/arch/sh/boards/
Dboard-polaris.c68 .bit_pos = heartbeat_bit_pos,
Dboard-sh7757lcr.c39 .bit_pos = heartbeat_bit_pos,
/linux-4.4.14/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()
/linux-4.4.14/arch/sh/boards/mach-se/770x/
Dsetup.c94 .bit_pos = heartbeat_bit_pos,
/linux-4.4.14/arch/sh/boards/mach-highlander/
Dsetup.c141 .bit_pos = heartbeat_bit_pos,
/linux-4.4.14/drivers/mtd/nand/
Domap2.c1350 u32 bit_pos, byte_pos, error_max, pos; in omap_elm_correct_data() local
1460 bit_pos = pos % 8; in omap_elm_correct_data()
1469 data[byte_pos] ^= 1 << bit_pos; in omap_elm_correct_data()
1475 1 << bit_pos; in omap_elm_correct_data()
1480 byte_pos, bit_pos); in omap_elm_correct_data()
Datmel_nand.c808 int byte_pos, bit_pos, sector_size, pos; in pmecc_correct_data() local
817 bit_pos = tmp % 8; in pmecc_correct_data()
824 *(buf + byte_pos) ^= (1 << bit_pos); in pmecc_correct_data()
828 pos, bit_pos, err_byte, *(buf + byte_pos)); in pmecc_correct_data()
834 ecc[tmp] ^= (1 << bit_pos); in pmecc_correct_data()
838 pos, bit_pos, err_byte, ecc[tmp]); in pmecc_correct_data()
/linux-4.4.14/net/batman-adv/
Dbat_iv_ogm.c1650 s32 bit_pos; in batadv_iv_ogm_process() local
1671 bit_pos = if_incoming_seqno - 2; in batadv_iv_ogm_process()
1672 bit_pos -= ntohl(ogm_packet->seqno); in batadv_iv_ogm_process()
1673 batadv_set_bit(word, bit_pos); in batadv_iv_ogm_process()
/linux-4.4.14/drivers/pinctrl/
Dpinctrl-single.c1266 unsigned mask, bit_pos, val_pos, mask_pos, submask; in pcs_parse_bits_in_pinctrl_entry() local
1276 bit_pos = __ffs(mask); in pcs_parse_bits_in_pinctrl_entry()
1277 pin_num_from_lsb = bit_pos / pcs->bits_per_pin; in pcs_parse_bits_in_pinctrl_entry()
1278 mask_pos = ((pcs->fmask) << bit_pos); in pcs_parse_bits_in_pinctrl_entry()
/linux-4.4.14/drivers/net/ethernet/cavium/thunder/
Dnicvf_queues.c31 u64 reg, int bit_pos, int bits, int val) in nicvf_poll_reg() argument
38 bit_mask = (bit_mask << bit_pos); in nicvf_poll_reg()
42 if (((reg_val & bit_mask) >> bit_pos) == val) in nicvf_poll_reg()
/linux-4.4.14/drivers/edac/
Dghes_edac.c306 p += sprintf(p, "bit_pos:%d ", mem_err->bit_pos); in ghes_edac_report_mem_error()
/linux-4.4.14/arch/sh/boards/mach-ecovec24/
Dsetup.c90 .bit_pos = led_pos,
/linux-4.4.14/include/linux/mfd/
Dpalmas.h103 int bit_pos; member