/linux-4.4.14/drivers/usb/gadget/function/ |
D | f_fs.c | 45 static void ffs_data_get(struct ffs_data *ffs); 46 static void ffs_data_put(struct ffs_data *ffs); 51 static void ffs_data_opened(struct ffs_data *ffs); 52 static void ffs_data_closed(struct ffs_data *ffs); 56 __ffs_data_got_descs(struct ffs_data *ffs, char *data, size_t len); 58 __ffs_data_got_strings(struct ffs_data *ffs, char *data, size_t len); 68 struct ffs_data *ffs; member 85 ffs_setup_state_clear_cancelled(struct ffs_data *ffs) in ffs_setup_state_clear_cancelled() argument 88 cmpxchg(&ffs->setup_state, FFS_SETUP_CANCELLED, FFS_NO_SETUP); in ffs_setup_state_clear_cancelled() 128 struct ffs_data *ffs; member [all …]
|
D | u_fs.h | 51 int (*ffs_ready_callback)(struct ffs_data *ffs); 52 void (*ffs_closed_callback)(struct ffs_data *ffs);
|
/linux-4.4.14/fs/xfs/libxfs/ |
D | xfs_bit.h | 56 return ffs(v) - 1; in xfs_lowbit32() 66 n = ffs(w); in xfs_lowbit64() 70 n = ffs(w); in xfs_lowbit64()
|
D | xfs_bit.c | 117 return result + ffs(tmp) - 1; in xfs_next_bit()
|
/linux-4.4.14/tools/usb/ |
D | Makefile | 9 all: testusb ffs-test 14 $(RM) testusb ffs-test
|
/linux-4.4.14/Documentation/usb/ |
D | functionfs.txt | 44 $ mkdir /dev/ffs-mtp && mount -t functionfs mtp /dev/ffs-mtp 45 $ ( cd /dev/ffs-mtp && mtp-daemon ) & 46 $ mkdir /dev/ffs-hid && mount -t functionfs hid /dev/ffs-hid 47 $ ( cd /dev/ffs-hid && hid-daemon ) &
|
/linux-4.4.14/arch/sparc/lib/ |
D | ffs.S | 8 ENTRY(ffs) 66 ENDPROC(ffs) 70 .word ffs
|
D | Makefile | 42 lib-$(CONFIG_SPARC64) += mcount.o ipcsum.o xor.o hweight.o ffs.o
|
/linux-4.4.14/arch/unicore32/include/asm/ |
D | bitops.h | 36 #define ffs(x) ({ unsigned long __t = (x); fls(__t & -__t); }) macro 37 #define __ffs(x) (ffs(x) - 1)
|
/linux-4.4.14/drivers/infiniband/hw/mthca/ |
D | mthca_profile.c | 116 profile[i].log_num = max(ffs(profile[i].num) - 1, 0); in mthca_make_profile() 217 init_hca->log_mc_entry_sz = ffs(MTHCA_MGM_ENTRY_SIZE) - 1; in mthca_make_profile() 231 init_hca->mtt_seg_sz = ffs(dev->limits.mtt_seg_size) - 7; in mthca_make_profile() 245 init_hca->log_uarc_sz = ffs(request->uarc_size) - 13; in mthca_make_profile() 246 init_hca->log_uar_sz = ffs(request->num_uar) - 1; in mthca_make_profile()
|
D | mthca_allocator.c | 85 if (num != 1 << (ffs(num) - 1)) in mthca_alloc_init()
|
D | mthca_eq.c | 535 eq_context->logsize_usrpage = cpu_to_be32((ffs(eq->nent) - 1) << 24); in mthca_create_eq()
|
/linux-4.4.14/arch/x86/boot/ |
D | a20.c | 25 int ffs = MAX_8042_FF; in empty_8042() local 33 if (!--ffs) in empty_8042()
|
/linux-4.4.14/arch/arc/include/asm/ |
D | bitops.h | 284 #define ffs(x) ({ unsigned long __t = (x); fls(__t & -__t); }) macro 294 return ffs(word) - 1; in __ffs() 331 static inline __attribute__ ((const)) int ffs(unsigned long x) in ffs() function
|
/linux-4.4.14/drivers/irqchip/ |
D | irq-bcm2835.c | 211 return MAKE_HWIRQ(bank, ffs(stat) - 1); in armctrl_translate_bank() 216 return MAKE_HWIRQ(bank, shortcuts[ffs(stat >> SHORTCUT_SHIFT) - 1]); in armctrl_translate_shortcut() 226 return MAKE_HWIRQ(0, ffs(stat & BANK0_HWIRQ_MASK) - 1); in get_next_armctrl_hwirq()
|
D | irq-digicolor.c | 44 hwirq = ffs(status) - 1; in digicolor_handle_irq() 48 hwirq = ffs(status) - 1 + 32; in digicolor_handle_irq()
|
D | irq-bcm2836.c | 170 u32 ipi = ffs(mbox_val) - 1; in bcm2836_arm_irqchip_handle_irq() 176 u32 hwirq = ffs(stat) - 1; in bcm2836_arm_irqchip_handle_irq()
|
D | irq-versatile-fpga.c | 79 unsigned int irq = ffs(status) - 1; in fpga_irq_handle() 98 irq = ffs(status) - 1; in handle_one_fpga()
|
D | irq-moxart.c | 54 hwirq = ffs(irqstat) - 1; in handle_irq()
|
D | irq-sa11x0.c | 147 ffs(mask) - 1, regs); in sa1100_handle_irq()
|
D | irq-or1k-pic.c | 109 hwirq = ffs(mfspr(SPR_PICSR) >> first); in pic_get_irq()
|
D | irq-vic.c | 220 irq = ffs(stat) - 1; in handle_one_vic() 237 hwirq = ffs(stat) - 1; in vic_handle_irq_cascaded()
|
D | irq-dw-apb-ictl.c | 42 u32 hwirq = ffs(stat) - 1; in dw_apb_ictl_handler()
|
D | irq-brcmstb-l2.c | 73 irq = ffs(status) - 1; in brcmstb_l2_intc_irq_handle()
|
/linux-4.4.14/include/asm-generic/bitops/ |
D | builtin-ffs.h | 12 static __always_inline int ffs(int x) in ffs() function
|
D | ffs.h | 12 static inline int ffs(int x) in ffs() function
|
/linux-4.4.14/arch/openrisc/include/asm/bitops/ |
D | ffs.h | 17 static inline int ffs(int x) in ffs() function
|
/linux-4.4.14/arch/cris/include/asm/ |
D | bitops.h | 33 #define ffs(x) kernel_ffs(x) macro
|
/linux-4.4.14/arch/c6x/include/asm/ |
D | bitops.h | 76 static inline int ffs(int x) in ffs() function
|
/linux-4.4.14/include/linux/ |
D | count_zeros.h | 52 return ffs(x); in count_trailing_zeros()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/dispnv04/ |
D | dac.c | 347 '@' + ffs(dcb->or)); in nv17_dac_detect() 423 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv04_dac_commit() 432 uint32_t *dac_users = &nv04_display(dev)->dac_users[ffs(dcb->or) - 1]; in nv04_dac_update_dacclk() 457 (nv04_display(dev)->dac_users[ffs(dcb->or) - 1] & ~(1 << dcb->index)); in nv04_dac_in_use() 546 nv_encoder->or = ffs(entry->or) - 1; in nv04_dac_create()
|
D | tvnv04.c | 177 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv04_tv_commit() 234 nv_encoder->or = ffs(entry->or) - 1; in nv04_tv_create()
|
D | tvnv17.c | 193 '@' + ffs(dcb->or)); in nv17_tv_detect() 603 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv17_tv_commit() 817 tv_enc->base.or = ffs(entry->or) - 1; in nv17_tv_create()
|
D | dfp.c | 481 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv04_dfp_commit() 707 nv_encoder->or = ffs(entry->or) - 1; in nv04_dfp_create()
|
/linux-4.4.14/drivers/regulator/ |
D | rk808-regulator.c | 108 val >>= ffs(rdev->desc->vsel_mask) - 1; in rk808_buck1_2_get_voltage_sel_regmap() 125 old_sel >>= ffs(mask) - 1; in rk808_buck1_2_i2c_set_voltage_sel() 135 val = old_sel << (ffs(mask) - 1); in rk808_buck1_2_i2c_set_voltage_sel() 148 sel <<= ffs(mask) - 1; in rk808_buck1_2_i2c_set_voltage_sel() 188 sel <<= ffs(rdev->desc->vsel_mask) - 1; in rk808_buck1_2_set_voltage_sel()
|
D | helpers.c | 125 val >>= ffs(rdev->desc->vsel_mask) - 1; in regulator_get_voltage_sel_regmap() 145 sel <<= ffs(rdev->desc->vsel_mask) - 1; in regulator_set_voltage_sel_regmap()
|
D | as3722-regulator.c | 549 val >>= ffs(mask) - 1; in as3722_sd016_get_current_limit() 591 ret <<= ffs(mask) - 1; in as3722_sd016_set_current_limit() 675 val = ext_pwr_ctrl << (ffs(as3722_reg_lookup[id].sleep_ctrl_mask) - 1); in as3722_extreg_init()
|
D | ab8500.c | 490 voltage_shift = ffs(info->voltage_mask) - 1; in ab8500_regulator_get_voltage_sel() 552 voltage_shift = ffs(info->voltage_mask) - 1; in ab8540_aux3_regulator_get_voltage_sel() 569 voltage_shift = ffs(info->voltage_mask) - 1; in ab8500_regulator_set_voltage_sel() 602 int voltage_shift = ffs(info->voltage_mask) - 1; in ab8540_aux3_regulator_set_voltage_sel()
|
D | axp20x-regulator.c | 321 workmode <<= ffs(mask) - 1; in axp20x_set_dcdc_workmode()
|
D | ltc3589.c | 119 shift = ffs(rdev->desc->apply_bit) - 1; in ltc3589_set_ramp_delay()
|
D | da9062-regulator.c | 309 sel <<= ffs(rdev->desc->vsel_mask) - 1; in da9062_set_suspend_voltage()
|
D | da9063-regulator.c | 367 sel <<= ffs(rdev->desc->vsel_mask) - 1; in da9063_set_suspend_voltage()
|
/linux-4.4.14/drivers/usb/gadget/legacy/ |
D | g_ffs.c | 145 static int functionfs_ready_callback(struct ffs_data *ffs); 146 static void functionfs_closed_callback(struct ffs_data *ffs); 280 static int functionfs_ready_callback(struct ffs_data *ffs) in functionfs_ready_callback() argument 304 static void functionfs_closed_callback(struct ffs_data *ffs) in functionfs_closed_callback() argument
|
/linux-4.4.14/arch/sparc/kernel/ |
D | sparc_ksyms_64.c | 48 EXPORT_SYMBOL(ffs);
|
/linux-4.4.14/drivers/clk/ |
D | clk-mux.c | 57 val = ffs(val) - 1; in clk_mux_get_parent() 131 width = fls(mask) - ffs(mask) + 1; in clk_register_mux_table()
|
/linux-4.4.14/Documentation/ABI/testing/ |
D | configfs-usb-gadget-ffs | 1 What: /config/usb-gadget/gadget/functions/ffs.name
|
/linux-4.4.14/arch/sparc/include/asm/ |
D | bitops_64.h | 33 int ffs(int x);
|
/linux-4.4.14/arch/m68k/include/asm/ |
D | bitops.h | 464 static inline int ffs(int x) in ffs() function 486 static inline int ffs(int x) in ffs() function 495 #define __ffs(x) (ffs(x) - 1)
|
/linux-4.4.14/drivers/macintosh/ |
D | via-macii.c | 211 next_device = ffs(autopoll_devs & ~device_mask) - 1; in macii_queue_poll() 213 next_device = ffs(autopoll_devs) - 1; in macii_queue_poll() 298 ADB_READREG(ffs(autopoll_devs) - 1, 0)); in macii_autopoll()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | gf119.c | 241 const int or = ffs(outp->or) - 1; in gf119_disp_intr_unk2_2_tu() 332 addr = 0x612280 + (ffs(outp->info.or) - 1) * 0x800; in gf119_disp_intr_unk2_2() 335 addr = 0x612300 + (ffs(outp->info.or) - 1) * 0x800; in gf119_disp_intr_unk2_2() 372 nvkm_debug(subdev, "supervisor %d\n", ffs(disp->super)); in gf119_disp_intr_supervisor() 467 int chid = ffs(stat) - 1; in gf119_disp_intr()
|
D | nv50.c | 491 const int or = ffs(outp->or) - 1; in nv50_disp_intr_unk20_2_dp() 638 u32 soff = (ffs(outp->info.or) - 1) * 0x08; in nv50_disp_intr_unk20_2() 665 oreg = 0x614280 + (ffs(outp->info.or) - 1) * 0x800; in nv50_disp_intr_unk20_2() 673 oreg = 0x614300 + (ffs(outp->info.or) - 1) * 0x800; in nv50_disp_intr_unk20_2() 678 oreg = 0x614380 + (ffs(outp->info.or) - 1) * 0x800; in nv50_disp_intr_unk20_2() 703 const int or = ffs(outp->or) - 1; in nv50_disp_intr_unk40_0_tmds()
|
D | outp.c | 67 outp->or = ffs(outp->info.or) - 1; in nvkm_output_ctor()
|
D | conn.c | 94 if ((info->hpd = ffs(info->hpd))) { in nvkm_connector_ctor()
|
D | sorgf119.c | 30 return (ffs(outp->base.info.or) - 1) * 0x800; in gf119_sor_soff()
|
D | sorgm204.c | 32 return (ffs(outp->base.info.or) - 1) * 0x800; in gm204_sor_soff()
|
D | sorg94.c | 32 return (ffs(outp->base.info.or) - 1) * 0x800; in g94_sor_soff()
|
D | rootnv50.c | 101 head = ffs((mask >> 8) & 0x0f) - 1; in nv50_disp_root_mthd_()
|
/linux-4.4.14/arch/mips/sni/ |
D | pcit.c | 187 irq = ffs((pending >> 16) & 0x7f); in pcit_hwint1() 200 irq = ffs((pending >> 16) & 0x3f); in pcit_hwint0()
|
D | a20r.c | 211 irq = ffs(((cause & status) >> 8) & 0xf8); in a20r_hwint()
|
D | pcimt.c | 271 irq = PCIMT_IRQ_INT2 + ffs(pend) - 1; in pcimt_hwint3()
|
D | rm200.c | 463 irq = ffs(stat & mask & 0x1f); in sni_rm200_hwint()
|
/linux-4.4.14/drivers/clk/sunxi/ |
D | clk-sun6i-ar100.c | 75 shift = ffs(div) - 1; in ar100_determine_rate() 149 shift = ffs(div) - 1; in ar100_set_rate()
|
/linux-4.4.14/arch/mips/pmcs-msp71xx/ |
D | msp_irq_slp.c | 105 do_IRQ(ffs(pending) + intbase - 1); in msp_slp_irq_dispatch()
|
D | msp_irq_per.c | 127 do_IRQ(ffs(pending) + MSP_PER_INTBASE - 1); in msp_per_irq_dispatch()
|
D | msp_irq_cic.c | 208 do_IRQ(ffs(pending) + MSP_CIC_INTBASE - 1); in msp_cic_irq_dispatch()
|
/linux-4.4.14/arch/arm/include/asm/ |
D | bitops.h | 294 static inline int ffs(int x) in ffs() function 305 return ffs(x) - 1; in __ffs()
|
/linux-4.4.14/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_mqd_manager_cik.c | 183 m->cp_hqd_pq_control |= ffs(q->queue_size / sizeof(unsigned int)) in update_mqd() 218 m->sdma_rlc_rb_cntl = ffs(q->queue_size / sizeof(unsigned int)) << in update_mqd_sdma() 374 m->cp_hqd_pq_control |= ffs(q->queue_size / sizeof(unsigned int)) in update_mqd_hiq()
|
D | kfd_mqd_manager_vi.c | 117 ffs(q->queue_size / sizeof(unsigned int)) - 1 - 1; in __update_mqd() 141 ffs(q->eop_ring_buffer_size / sizeof(unsigned int)) - 1 - 1; in __update_mqd()
|
D | kfd_dbgdev.c | 807 first_vmid_to_scan = ffs(dev->shared_resources.compute_vmid_bitmap) - 1; in dbgdev_wave_reset_wavefronts()
|
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/linux/ |
D | linux-obdo.c | 72 dst->i_blkbits = ffs(src->o_blksize) - 1; in obdo_refresh_inode()
|
/linux-4.4.14/arch/mips/loongson64/lemote-2f/ |
D | irq.c | 45 irq = ffs(isr) - 1; in mach_i8259_irq()
|
/linux-4.4.14/arch/mips/mm/ |
D | c-octeon.c | 203 c->icache.waybit = ffs(icache_size / c->icache.ways) - 1; in probe_octeon() 212 c->dcache.waybit = ffs(dcache_size / c->dcache.ways) - 1; in probe_octeon()
|
/linux-4.4.14/drivers/input/misc/ |
D | axp20x-pek.c | 90 val >>= ffs(axp20x_ea->mask) - 1; in axp20x_show_ext_attr() 135 idx <<= ffs(axp20x_ea->mask) - 1; in axp20x_store_ext_attr()
|
/linux-4.4.14/drivers/mtd/devices/ |
D | pmc551.c | 669 msize = (1 << (ffs(msize) - 1)) << 20; in init_pmc551() 678 asize = (1 << (ffs(asize) - 1)) << 20; in init_pmc551() 762 ffs(priv->asize >> 20) - 1); in init_pmc551() 767 | (ffs(priv->asize >> 20) - 1) << 4); in init_pmc551()
|
/linux-4.4.14/drivers/clk/ti/ |
D | mux.c | 57 val = ffs(val) - 1; in ti_clk_mux_get_parent() 77 index = (1 << ffs(index)); in ti_clk_mux_set_parent()
|
/linux-4.4.14/drivers/media/platform/exynos4-is/ |
D | fimc-m2m.c | 310 mod_x = ffs(variant->min_inp_pixsize) - 1; in fimc_try_fmt_mplane() 313 mod_x = ffs(variant->min_out_pixsize) - 1; in fimc_try_fmt_mplane() 323 mod_y = ffs(variant->min_vsize_align) - 1; in fimc_try_fmt_mplane() 462 halign = ffs(fimc->variant->min_vsize_align) - 1; in fimc_m2m_try_crop() 468 ffs(min_size) - 1, in fimc_m2m_try_crop()
|
D | fimc-capture.c | 222 unsigned int plane = ffs(f->fmt->mdataplanes) - 1; in fimc_capture_irq_handler() 644 ffs(var->min_out_pixsize) - 1, in fimc_capture_try_format() 679 max_sc_h = min(SCALER_MAX_HRATIO, 1 << (ffs(sink->width) - 3)); in fimc_capture_try_selection() 680 max_sc_v = min(SCALER_MAX_VRATIO, 1 << (ffs(sink->height) - 1)); in fimc_capture_try_selection() 711 v4l_bound_align_image(&r->width, min_w, max_w, ffs(min_sz) - 1, in fimc_capture_try_selection()
|
D | fimc-lite.c | 577 ffs(dd->out_width_align) - 1, in fimc_lite_subdev_try_fmt() 737 ffs(dd->out_width_align) - 1, in fimc_lite_try_fmt()
|
/linux-4.4.14/arch/hexagon/include/asm/ |
D | bitops.h | 235 static inline long ffs(int x) in ffs() function
|
/linux-4.4.14/arch/xtensa/include/asm/ |
D | bitops.h | 62 static inline int ffs(unsigned long x) in ffs() function
|
/linux-4.4.14/arch/powerpc/sysdev/ |
D | uic.c | 217 src = 32 - ffs(msr); in uic_irq_cascade() 331 src = 32 - ffs(msr); in uic_get_irq()
|
D | fsl_msi.c | 313 intr_index = ffs(msir_value) - 1; in fsl_msi_cascade()
|
/linux-4.4.14/drivers/bus/ |
D | brcmstb_gisb.c | 177 return gdev->master_names[ffs(mask) - 1]; in brcmstb_gisb_master_to_str() 332 first = ffs(gdev->valid_mask) - 1; in brcmstb_gisb_arb_probe()
|
/linux-4.4.14/arch/mn10300/include/asm/ |
D | bitops.h | 215 int ffs(int x) in ffs() function
|
/linux-4.4.14/arch/parisc/include/asm/ |
D | bitops.h | 174 static __inline__ int ffs(int x) in ffs() function
|
/linux-4.4.14/arch/arc/lib/ |
D | strcmp-archs.S | 55 ffs r0, r4
|
/linux-4.4.14/drivers/video/fbdev/omap2/ |
D | vrfb.c | 130 for (i = ffs(map); i; i = ffs(map)) { in omap_vrfb_restore_context()
|
/linux-4.4.14/arch/mips/loongson64/common/ |
D | mem.c | 34 if (bit != ffs(memsize + highmemsize)) in prom_init_memory()
|
/linux-4.4.14/arch/avr32/include/asm/ |
D | bitops.h | 291 static inline int ffs(unsigned long word) in ffs() function
|
/linux-4.4.14/arch/blackfin/include/asm/ |
D | ipipe.h | 156 return ffs(ul) - 1; in __ipipe_ffnz()
|
/linux-4.4.14/arch/s390/include/asm/ |
D | cio.h | 306 return 8 - ffs(mask); in pathmask_to_pos()
|
D | bitops.h | 401 static inline int ffs(int word) in ffs() function
|
/linux-4.4.14/drivers/pci/host/ |
D | pci-xgene-msi.c | 320 msir_index = ffs(grp_select) - 1; in xgene_msi_isr() 328 intr_index = ffs(msir_val) - 1; in xgene_msi_isr()
|
D | pci-dra7xx.c | 222 generic_handle_irq(irq_find_mapping(pp->irq_domain, ffs(reg))); in dra7xx_pcie_msi_irq_handler()
|
/linux-4.4.14/fs/squashfs/ |
D | xz_wrapper.c | 74 n = ffs(opts->dict_size) - 1; in squashfs_xz_comp_opts()
|
/linux-4.4.14/arch/x86/include/asm/ |
D | bitops.h | 396 static inline int ffs(int x) in ffs() function
|
/linux-4.4.14/drivers/media/platform/exynos-gsc/ |
D | gsc-core.c | 419 mod_x = ffs(variant->pix_align->org_w) - 1; in gsc_try_fmt_mplane() 421 mod_y = ffs(variant->pix_align->org_h) - 1; in gsc_try_fmt_mplane() 423 mod_y = ffs(variant->pix_align->org_h) - 2; in gsc_try_fmt_mplane() 558 mod_x = ffs(variant->pix_align->target_w) - 1; in gsc_try_crop() 560 mod_y = ffs(variant->pix_align->target_h) - 1; in gsc_try_crop()
|
/linux-4.4.14/arch/mips/pnx833x/common/ |
D | interrupts.c | 115 while ((pin = ffs(mask & 0xffff))) { in pic_dispatch()
|
/linux-4.4.14/arch/frv/include/asm/ |
D | bitops.h | 235 int ffs(int x) in ffs() function
|
/linux-4.4.14/drivers/iio/accel/ |
D | mma9551_core.c | 58 #define MMA9551_RSC_OFFSET(mask) (3 - (ffs(mask) - 1) / 8) 59 #define MMA9551_RSC_VAL(mask) (mask >> (((ffs(mask) - 1) / 8) * 8))
|
D | mma9553.c | 79 #define MMA9553_STATUS_TO_BITNUM(bit) (ffs(bit) - 9) 205 return (val & mask) >> (ffs(mask) - 1); in mma9553_get_bits() 210 return (current_val & ~mask) | (val << (ffs(mask) - 1)); in mma9553_set_bits()
|
D | bma180.c | 168 u8 reg_val = (ret & ~mask) | (val << (ffs(mask) - 1)); in bma180_set_bits()
|
/linux-4.4.14/drivers/media/platform/s3c-camif/ |
D | camif-capture.c | 756 sc_hrmax = min(SCALER_MAX_RATIO, 1 << (ffs(crop->width) - 3)); in __camif_video_try_format() 757 sc_vrmax = min(SCALER_MAX_RATIO, 1 << (ffs(crop->height) - 1)); in __camif_video_try_format() 765 ffs(pix_lim->out_width_align) - 1, in __camif_video_try_format() 1284 ffs(pix_lim->out_width_align) - 1, in __camif_subdev_try_format() 1290 ffs(pix_lim->out_width_align) - 1, in __camif_subdev_try_format() 1418 ffs(pix_lim->win_hor_offset_align) - 1, in __camif_try_crop() 1422 ffs(pix_lim->win_hor_offset_align), in __camif_try_crop()
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | bitops.h | 226 static __inline__ int ffs(int x) in ffs() function
|
/linux-4.4.14/drivers/scsi/ |
D | sim710.c | 196 scsi_id = ffs(val) - 1; in sim710_eisa_probe()
|
/linux-4.4.14/drivers/memory/ |
D | tegra20-mc.c | 196 while ((bit = ffs(mask)) != 0) { in tegra20_mc_isr()
|
/linux-4.4.14/arch/alpha/kernel/ |
D | core_cia.c | 863 tmp = ffs(tmp); in cia_decode_pci_error() 1039 i = ffs(syn) - 1; in cia_decode_ecc_error() 1118 switch (ffs(cia->cia_err & 0xfff) - 1) { in cia_decode_mchk()
|
/linux-4.4.14/arch/m68k/emu/ |
D | nfblock.c | 119 dev->bshift = ffs(bsize) - 10; in nfhd_init_one()
|
/linux-4.4.14/arch/powerpc/platforms/52xx/ |
D | media5200.c | 98 val = ffs((status & enable) >> MEDIA5200_IRQ_SHIFT); in media5200_irq_cascade()
|
D | mpc52xx_pic.c | 508 irq = ffs(status) - 1; in mpc52xx_get_irq()
|
/linux-4.4.14/arch/um/os-Linux/ |
D | signal.c | 167 while ((sig = ffs(pending)) != 0){ in hard_handler()
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
D | i915_gem_fence.c | 141 pitch_val = ffs(pitch_val) - 1; in i915_write_fence_reg() 173 pitch_val = ffs(pitch_val) - 1; in i830_write_fence_reg()
|
D | intel_dsi_pll.c | 205 n = ffs(n) - 1; in dsi_calc_mnp()
|
/linux-4.4.14/drivers/infiniband/hw/qib/ |
D | qib_pcie.c | 579 rc_mps = ffs(pcie_get_mps(parent)) - 8; in qib_tune_pcie_caps() 582 ep_mps = ffs(pcie_get_mps(dd->pcidev)) - 8; in qib_tune_pcie_caps()
|
/linux-4.4.14/arch/alpha/include/asm/ |
D | bitops.h | 358 static inline int ffs(int word) in ffs() function
|
/linux-4.4.14/arch/arm64/kernel/ |
D | setup.c | 143 fs[i] = affinity ? ffs(affinity) - 1 : 0; in smp_build_mpidr_hash()
|
/linux-4.4.14/arch/mips/kernel/ |
D | mips-cm.c | 389 tag_ecc ? (unsigned long)ffs(tag_way_bits) - 1 : in mips_cm_error_report()
|
D | traps.c | 722 (ffs(FPU_CSR_ALL_X) - ffs(FPU_CSR_ALL_E)); in process_fpemu_return()
|
/linux-4.4.14/arch/arc/kernel/ |
D | mcip.c | 286 int cpu = ffs(distri); in idu_irq_xlate()
|
/linux-4.4.14/arch/powerpc/perf/ |
D | mpc7450-pmu.c | 301 pmc = ffs(pmc_avail); in mpc7450_compute_mmcr()
|
/linux-4.4.14/fs/ntfs/ |
D | super.c | 773 vol->sector_size_bits = ffs(vol->sector_size) - 1; in parse_ntfs_boot_sector() 786 sectors_per_cluster_bits = ffs(b->bpb.sectors_per_cluster) - 1; in parse_ntfs_boot_sector() 793 vol->cluster_size_bits = ffs(vol->cluster_size) - 1; in parse_ntfs_boot_sector() 809 (ffs(clusters_per_mft_record) - 1); in parse_ntfs_boot_sector() 818 vol->mft_record_size_bits = ffs(vol->mft_record_size) - 1; in parse_ntfs_boot_sector() 849 (ffs(clusters_per_index_record) - 1); in parse_ntfs_boot_sector() 859 vol->index_record_size_bits = ffs(vol->index_record_size) - 1; in parse_ntfs_boot_sector()
|
D | inode.c | 890 ffs(ni->itype.index.block_size) - 1; in ntfs_read_locked_inode() 1111 ffs(ni->itype. in ntfs_read_locked_inode() 1394 ffs(ni->itype.compressed. in ntfs_read_locked_attr_inode() 1602 ni->itype.index.block_size_bits = ffs(ni->itype.index.block_size) - 1; in ntfs_read_locked_index_inode()
|
/linux-4.4.14/drivers/ata/ |
D | pata_it821x.c | 621 mode = ffs(buf[51]); in it821x_display_disk() 624 mode = ffs(buf[49]); in it821x_display_disk()
|
/linux-4.4.14/net/ipv4/netfilter/ |
D | ipt_CLUSTERIP.c | 602 idx->bit = ffs(local_nodes); in clusterip_seq_start() 618 idx->bit = ffs(idx->val); in clusterip_seq_next()
|
/linux-4.4.14/drivers/platform/x86/ |
D | dell-laptop.c | 1398 state->mode_bit = ffs(buffer->output[1] & 0xFFFF); in kbd_get_state() 1555 ffs(kbd_info.modes & ~BIT(KBD_MODE_BIT_OFF)); in kbd_init_info() 2039 return ffs(num) - 1; in kbd_led_level_get() 2068 kbd_set_token_bit(ffs(num) - 1); in kbd_led_level_set()
|
/linux-4.4.14/drivers/input/keyboard/ |
D | mpr121_touchkey.c | 108 key_num = ffs(reg ^ mpr121->statusbits) - 1; in mpr_touchkey_interrupt()
|
/linux-4.4.14/arch/mips/paravirt/ |
D | paravirt-irq.c | 363 ip = ffs(pending) - 1 - STATUSB_IP0; in plat_irq_dispatch()
|
/linux-4.4.14/drivers/mtd/spi-nor/ |
D | spi-nor.c | 408 int shift = ffs(mask) - 1; in stm_get_locked_range() 464 u8 shift = ffs(mask) - 1, pow, val; in stm_lock() 514 u8 shift = ffs(mask) - 1, pow, val; in stm_unlock()
|
/linux-4.4.14/drivers/tty/serial/ |
D | dz.c | 211 (ffs(DZ_FERR) - ffs(DZ_BREAK)); in dz_receive_chars()
|
/linux-4.4.14/arch/xtensa/kernel/ |
D | ptrace.c | 108 wmask = ((rotws ? WSBITS + 1 - ffs(rotws) : 0) << 4) | in ptrace_setregs()
|
/linux-4.4.14/arch/mips/include/asm/ |
D | bitops.h | 611 static inline int ffs(int word) in ffs() function
|
/linux-4.4.14/drivers/dma/ipu/ |
D | ipu_irq.c | 287 while ((line = ffs(status))) { in ipu_irq_handler()
|
/linux-4.4.14/drivers/dma/ |
D | at_xdmac.c | 304 csize = ffs(maxburst) - 1; in at_xdmac_csize() 558 csize = ffs(atchan->sconfig.src_maxburst) - 1; in at_xdmac_compute_chan_conf() 564 dwidth = ffs(atchan->sconfig.src_addr_width) - 1; in at_xdmac_compute_chan_conf() 581 csize = ffs(atchan->sconfig.dst_maxburst) - 1; in at_xdmac_compute_chan_conf() 587 dwidth = ffs(atchan->sconfig.dst_addr_width) - 1; in at_xdmac_compute_chan_conf()
|
D | dma-jz4780.c | 220 int ord = ffs(val) - 1; in jz4780_dma_transfer_size()
|
/linux-4.4.14/drivers/video/fbdev/core/ |
D | sysfillrect.c | 289 dst += dst_idx >> (ffs(bits) - 1); in sys_fillrect()
|
D | cfbfillrect.c | 325 dst += dst_idx >> (ffs(bits) - 1); in cfb_fillrect()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_dcb.c | 354 app.priority = ffs(fwap->user_prio_map) - 1; in cxgb4_dcb_handle_fw_update() 1019 app->priority = ffs(prio) - 1; in cxgb4_ieee_getapp() 1152 ffs(pcmd.u.dcb.app_priority.user_prio_map) - 1; in cxgb4_getpeerapp_tbl()
|
/linux-4.4.14/drivers/scsi/fcoe/ |
D | fcoe.c | 1956 prio = ffs(entry->app.priority) - 1; in fcoe_dcb_app_notification() 2296 fcoe->priority = ffs(up) ? ffs(up) - 1 : 0; in fcoe_dcb_create() 2297 ctlr->priority = ffs(fup) ? ffs(fup) - 1 : fcoe->priority; in fcoe_dcb_create()
|
/linux-4.4.14/drivers/clk/mediatek/ |
D | clk-pll.c | 101 val |= (ffs(postdiv) - 1) << pll->data->pd_shift; in mtk_pll_set_rate_regs()
|
/linux-4.4.14/fs/affs/ |
D | bitmap.c | 205 bit = ffs(tmp & mask) - 1; in affs_alloc_block()
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_dcb_nl.c | 400 adapter->fcoe.up = ffs(up) - 1; in ixgbe_dcbnl_set_all() 707 ffs(app_mask) - 1 : IXGBE_FCOE_DEFTC; in ixgbe_dcbnl_ieee_delapp()
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
D | pcie.c | 490 rc_mps = ffs(pcie_get_mps(parent)) - 8; in tune_pcie_caps() 493 ep_mps = ffs(pcie_get_mps(dd->pcidev)) - 8; in tune_pcie_caps()
|
/linux-4.4.14/sound/soc/codecs/ |
D | ab8500-codec.c | 2300 slot = ffs(tx_mask); in ab8500_codec_set_dai_tdm_slot() 2307 slot = ffs(tx_mask); in ab8500_codec_set_dai_tdm_slot() 2341 slot = ffs(rx_mask); in ab8500_codec_set_dai_tdm_slot() 2347 slot = ffs(rx_mask); in ab8500_codec_set_dai_tdm_slot()
|
/linux-4.4.14/drivers/md/bcache/ |
D | bset.c | 388 j >>= ffs(j); in inorder_prev() 434 shift = ffs(j); in __inorder_to_tree() 562 : tree_to_prev_bkey(t, j >> ffs(j)); in make_bfloat()
|
/linux-4.4.14/drivers/extcon/ |
D | extcon-arizona.c | 976 WARN_ON(ffs(lvl) - 1 >= info->num_micd_ranges); in arizona_micd_detect() 977 if (lvl && ffs(lvl) - 1 < info->num_micd_ranges) { in arizona_micd_detect() 978 key = info->micd_ranges[ffs(lvl) - 1].key; in arizona_micd_detect()
|
/linux-4.4.14/drivers/media/rc/ |
D | ttusbir.c | 151 b = ffs(v) - 1; in ttusbir_process_ir_data()
|
/linux-4.4.14/drivers/mtd/nand/bcm47xxnflash/ |
D | ops_bcm4706.c | 432 tbits = ffs(chipsize); /* find first bit set */ in bcm47xxnflash_ops_bcm4706_init()
|
/linux-4.4.14/arch/avr32/mach-at32ap/ |
D | pio.c | 300 i = ffs(isr) - 1; in gpio_irq_handler()
|
/linux-4.4.14/drivers/spmi/ |
D | spmi-pmic-arb.c | 439 id = ffs(status) - 1; in periph_interrupt() 465 id = ffs(status) - 1; in pmic_arb_chained_irq()
|
/linux-4.4.14/fs/hfs/ |
D | btree.c | 118 tree->node_size_shift = ffs(size) - 1; in hfs_btree_open()
|
/linux-4.4.14/drivers/gpio/ |
D | gpio-mpc8xxx.c | 207 32 - ffs(mask))); in mpc8xxx_gpio_irq_cascade()
|
/linux-4.4.14/arch/ia64/sn/pci/ |
D | tioca_provider.c | 408 ps_shift = ffs(ps) - 1; in tioca_dma_mapped()
|
/linux-4.4.14/drivers/rtc/ |
D | rtc-max77802.c | 92 tm->tm_wday = ffs(data[RTC_WEEKDAY] & 0xff) - 1; in max77802_rtc_data_to_tm()
|
D | rtc-max77686.c | 89 tm->tm_wday = ffs(data[RTC_WEEKDAY] & 0x7f) - 1; in max77686_rtc_data_to_tm()
|
D | rtc-rv8803.c | 145 tm->tm_wday = ffs(date[RV8803_WEEK] & 0x7f); in rv8803_get_time()
|
D | rtc-s5m.c | 127 tm->tm_wday = ffs(data[RTC_WEEKDAY] & 0x7f); in s5m8767_data_to_tm()
|
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/ |
D | main.c | 198 idx = ffs(~dev->wcid_mask[i]); in mt76_wcid_alloc()
|
/linux-4.4.14/drivers/mfd/ |
D | htc-egpio.c | 130 return ei->irq_start + ffs(readval) - 1; in htc_egpio_get_wakeup_irq()
|
/linux-4.4.14/fs/hfsplus/ |
D | btree.c | 236 tree->node_size_shift = ffs(size) - 1; in hfs_btree_open()
|
/linux-4.4.14/drivers/media/i2c/ |
D | mt9p031.c | 420 xbin = 1 << (ffs(xskip) - 1); in mt9p031_set_params() 421 ybin = 1 << (ffs(yskip) - 1); in mt9p031_set_params()
|
/linux-4.4.14/drivers/mtd/nand/brcmnand/ |
D | brcmnand.c | 1737 block_size = ffs(cfg->block_size) - ffs(BRCMNAND_MIN_BLOCKSIZE); in brcmnand_set_cfg() 1761 page_size = ffs(cfg->page_size) - ffs(BRCMNAND_MIN_PAGESIZE); in brcmnand_set_cfg()
|
/linux-4.4.14/drivers/video/fbdev/omap2/dss/ |
D | dispc-compat.c | 89 seq_printf(s, "%-20s %10d\n", #x, stats.irqs[ffs(DISPC_IRQ_##x)-1]); in dispc_dump_irqs()
|
D | dsi.c | 1575 seq_printf(s, "%-20s %10d\n", #x, stats.dsi_irqs[ffs(DSI_IRQ_##x)-1]); in dsi_dump_dsidev_irqs() 1599 stats.vc_irqs[0][ffs(DSI_VC_IRQ_##x)-1], \ in dsi_dump_dsidev_irqs() 1600 stats.vc_irqs[1][ffs(DSI_VC_IRQ_##x)-1], \ in dsi_dump_dsidev_irqs() 1601 stats.vc_irqs[2][ffs(DSI_VC_IRQ_##x)-1], \ in dsi_dump_dsidev_irqs() 1602 stats.vc_irqs[3][ffs(DSI_VC_IRQ_##x)-1]); in dsi_dump_dsidev_irqs() 1618 stats.cio_irqs[ffs(DSI_CIO_IRQ_##x)-1]); in dsi_dump_dsidev_irqs()
|
/linux-4.4.14/kernel/ |
D | softirq.c | 261 while ((softirq_bit = ffs(pending))) { in __do_softirq()
|
/linux-4.4.14/drivers/net/can/c_can/ |
D | c_can.c | 687 while ((idx = ffs(pend))) { in c_can_do_tx() 760 while ((obj = ffs(pend)) && quota > 0) { in c_can_read_objects()
|
/linux-4.4.14/drivers/mtd/ |
D | mtdcore.c | 417 mtd->erasesize_shift = ffs(mtd->erasesize) - 1; in add_mtd_device() 422 mtd->writesize_shift = ffs(mtd->writesize) - 1; in add_mtd_device()
|
D | mtd_blkdevs.c | 550 tr->blkshift = ffs(tr->blksize) - 1; in register_mtd_blktrans()
|
/linux-4.4.14/drivers/iio/adc/ |
D | ti_am335x_adc.c | 117 STEPCONFIG_AVG(ffs(adc_dev->step_avg[i]) - 1) | in tiadc_step_config()
|
/linux-4.4.14/drivers/block/rsxx/ |
D | dma.c | 875 card->_stripe.upper_shift = ffs(card->n_targets) - 1; in rsxx_dma_stripe_setup() 878 card->_stripe.target_shift = ffs(stripe_size8) - 1; in rsxx_dma_stripe_setup()
|
/linux-4.4.14/drivers/gpu/drm/gma500/ |
D | psb_intel_display.c | 347 ffs((dpll & in psb_intel_crtc_clock_get()
|
D | cdv_intel_display.c | 887 ffs((dpll & in cdv_intel_crtc_clock_get()
|
/linux-4.4.14/drivers/clk/mmp/ |
D | clk-mix.c | 70 return ffs(val) - 1; in _get_mux()
|
/linux-4.4.14/drivers/misc/lis3lv02d/ |
D | lis3lv02d.c | 230 shift = ffs(lis3->odr_mask) - 1; in lis3lv02d_get_odr() 257 shift = ffs(lis3->odr_mask) - 1; in lis3lv02d_set_odr()
|
/linux-4.4.14/drivers/mmc/core/ |
D | core.c | 1532 bit = ffs(ocr) - 1; in mmc_select_voltage() 1908 card->erase_shift = ffs(card->erase_size) - 1; in mmc_init_erase() 1929 card->erase_shift = ffs(card->ssr.au) - 1; in mmc_init_erase()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/ |
D | nv50_display.c | 1711 nv_encoder->or = ffs(dcbe->or) - 1; in nv50_dac_create() 2108 nv_encoder->or = ffs(dcbe->or) - 1; in nv50_sor_create() 2301 nv_encoder->or = ffs(dcbe->or) - 1; in nv50_pior_create() 2591 ffs(dcbe->or) - 1, ret); in nv50_display_create()
|
D | nouveau_bios.c | 649 switch (ffs(dcbent->or)) { in run_tmds_table() 1524 ((1 << (ffs(entry->or) - 1)) * 3 == entry->or); in parse_dcb20_entry()
|
/linux-4.4.14/drivers/gpu/drm/rcar-du/ |
D | rcar_du_kms.c | 332 unsigned int index = ffs(groups) - 1; in rcar_du_atomic_check()
|
/linux-4.4.14/drivers/mmc/host/ |
D | bfin_sdh.c | 138 data_ctl |= ((ffs(data->blksz) - 1) << 4); in sdh_setup_data()
|
D | moxart-mmc.c | 377 blksz_bits = ffs(data->blksz) - 1; in moxart_prepare_data()
|
D | mtk-sd.c | 352 tv |= ((val) << (ffs((unsigned int)field) - 1)); in sdr_set_field() 360 *val = ((tv & field) >> (ffs((unsigned int)field) - 1)); in sdr_get_field()
|
/linux-4.4.14/drivers/mtd/nand/ |
D | mxc_nand.c | 1029 config1 |= NFC_V2_CONFIG1_PPB(ffs(pages_per_block) - 6); in preset_v2() 1100 ffs(mtd->erasesize / mtd->writesize) - 6, in preset_v3()
|
D | nandsim.c | 692 ns->geom.secshift = ffs(ns->geom.secsz) - 1; in init_nandsim() 782 printk("bits in OOB size: %u\n", ffs(ns->geom.oobsz) - 1); in init_nandsim() 2362 chip->chip_shift = ffs(nsmtd->erasesize) + overridesize - 1; in ns_init_module()
|
D | nand_base.c | 3901 chip->page_shift = ffs(mtd->writesize) - 1; in nand_get_flash_type() 3906 ffs(mtd->erasesize) - 1; in nand_get_flash_type() 3908 chip->chip_shift = ffs((unsigned)chip->chipsize) - 1; in nand_get_flash_type() 3910 chip->chip_shift = ffs((unsigned)(chip->chipsize >> 32)); in nand_get_flash_type()
|
/linux-4.4.14/drivers/scsi/aic7xxx/aicasm/ |
D | aicasm_gram.y | 484 enum_increment = 0x01 << (ffs($3.value) - 1); 506 enum_increment = 0x01 << (ffs($3.value) - 1);
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/ |
D | en_rx.c | 375 ring->log_stride = ffs(ring->stride) - 1; in mlx4_en_create_rx_ring() 445 ring->log_stride = ffs(ring->stride) - 1; in mlx4_en_activate_rx_rings()
|
/linux-4.4.14/drivers/media/platform/sti/bdisp/ |
D | bdisp-v4l2.c | 779 ffs(format->w_align) - 1, in bdisp_try_fmt() 782 ffs(format->h_align) - 1, in bdisp_try_fmt()
|
/linux-4.4.14/drivers/firewire/ |
D | ohci.c | 2110 i = ffs(iso_event) - 1; in irq_handler() 2122 i = ffs(iso_event) - 1; in irq_handler() 2957 index = ffs(*mask) - 1; in ohci_allocate_iso_context() 2969 index = *channels & 1ULL << channel ? ffs(*mask) - 1 : -1; in ohci_allocate_iso_context() 2981 index = !ohci->mc_allocated ? ffs(*mask) - 1 : -1; in ohci_allocate_iso_context()
|
/linux-4.4.14/net/sched/ |
D | cls_flow.c | 314 key = ffs(keymask) - 1; in flow_classify()
|
/linux-4.4.14/arch/ia64/kernel/ |
D | palinfo.c | 155 value >>= i = begin = ffs(value) - 1; in bitregister_process()
|
/linux-4.4.14/drivers/net/can/mscan/ |
D | mscan.c | 211 buf_id = ffs(i) - 1; in mscan_start_xmit()
|
/linux-4.4.14/virt/kvm/arm/ |
D | vgic-v2-emul.c | 172 target = ffs((val >> shift) & 0xffU); in vgic_set_target_reg()
|
/linux-4.4.14/arch/arm/kernel/ |
D | setup.c | 567 fs[i] = affinity ? ffs(affinity) - 1 : 0; in smp_build_mpidr_hash()
|
/linux-4.4.14/fs/xfs/ |
D | xfs_super.c | 273 iosizelog = ffs(iosize) - 1; in xfs_parseargs() 1517 sb->s_blocksize_bits = ffs(sb->s_blocksize) - 1; in xfs_fs_fill_super()
|
/linux-4.4.14/Documentation/DocBook/ |
D | kernel-api.xml.db | 111 API---ffs 113 API-ffs
|
/linux-4.4.14/drivers/pinctrl/ |
D | pinctrl-single.c | 648 shift = ffs(func->conf[i].mask) - 1; in pcs_pinconf_set() 1018 shift = ffs(value[1]) - 1; in pcs_add_conf2()
|
/linux-4.4.14/fs/ubifs/ |
D | debug.c | 2553 unsigned int from, to, ffs = chance(1, 2); in corrupt_data() local 2561 ffs ? "0xFFs" : "random data"); in corrupt_data() 2563 if (ffs) in corrupt_data()
|
/linux-4.4.14/drivers/scsi/aic94xx/ |
D | aic94xx_scb.c | 334 sas_phy->sas_prim = ffs(cont); in asd_primitive_rcvd_tasklet()
|
/linux-4.4.14/net/mac80211/ |
D | rate.c | 564 s8 baserate = basic_rates ? ffs(basic_rates) - 1 : 0; in rate_fixup_ratelist()
|
/linux-4.4.14/drivers/staging/rdma/amso1100/ |
D | c2_provider.c | 462 shift = ffs(c2mr->umem->page_size) - 1; in c2_reg_user_mr()
|
/linux-4.4.14/fs/fat/ |
D | inode.c | 1577 sbi->cluster_bits = ffs(sbi->cluster_size) - 1; in fat_fill_super() 1633 sbi->dir_per_block_bits = ffs(sbi->dir_per_block) - 1; in fat_fill_super()
|