Searched refs:ffs (Results 101 - 125 of 465) sorted by relevance

1234567891011>>

/linux-master/drivers/dma/ptdma/
H A Dptdma.h94 #define QUEUE_SIZE_VAL ((ffs(CMD_Q_LEN) - 2) & \
/linux-master/drivers/gpu/drm/
H A Ddrm_blend.c331 BIT((ffs(rotation & DRM_MODE_ROTATE_MASK) + 1)
/linux-master/arch/powerpc/platforms/52xx/
H A Dmedia5200.c91 * are pending. 'ffs()' is 1 based */
94 val = ffs((status & enable) >> MEDIA5200_IRQ_SHIFT);
/linux-master/drivers/irqchip/
H A Dirq-ftintc010.c135 irq = ffs(status) - 1;
H A Dirq-starfive-jh8100-intc.c104 hwirq = ffs(value) - 1;
/linux-master/arch/arc/kernel/
H A Dmcip.c281 if (ffs(destination_bits) == fls(destination_bits))
/linux-master/arch/x86/include/asm/
H A Dbitops.h338 * ffs - find first set bit in word
341 * This is defined the same way as the libc and compiler builtin ffs
344 * ffs(value) returns 0 if value is 0 or the position of the first
348 #define ffs(x) (__builtin_constant_p(x) ? __builtin_ffs(x) : variable_ffs(x)) macro
355 * ffs, but returns the position of the most significant set bit.
/linux-master/arch/mips/include/asm/
H A Dbitops.h405 * This is defined the same way as ffs.
454 * ffs - find first bit set.
458 * the libc and compiler builtin ffs routines, therefore
459 * differs in spirit from the below ffz (man ffs).
461 static inline int ffs(int word) function
/linux-master/arch/powerpc/include/asm/
H A Dbitops.h273 #include <asm-generic/bitops/builtin-ffs.h>
/linux-master/arch/alpha/include/asm/
H A Dbitops.h371 * ffs: find first bit set. This is defined the same way as
372 * the libc and compiler builtin ffs routines, therefore
376 static inline int ffs(int word) function
/linux-master/arch/s390/include/asm/
H A Dbitops.h327 * ffs - find first bit set
331 * compiler builtin ffs routines (man ffs).
333 static inline int ffs(int word) function
374 * This is defined the same way as ffs.
H A Dcio.h357 return 8 - ffs(mask);
/linux-master/arch/m68k/emu/
H A Dnfblock.c121 dev->bshift = ffs(bsize) - 10;
/linux-master/drivers/gpu/drm/i915/
H A Di915_syncmap.c371 while ((i = ffs(p->bitmap))) {
/linux-master/drivers/net/wwan/t7xx/
H A Dt7xx_pcie_mac.c259 u32 val = ffs(irq_count) * 2 - 1;
/linux-master/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_mqd_manager.c110 int xcc_inst = inst + ffs(mm->dev->xcc_mask) - 1;
/linux-master/drivers/of/
H A Ddevice.c313 addr, ffs(mask) - 1, node, dev_name(dev));
/linux-master/drivers/media/platform/samsung/s3c-camif/
H A Dcamif-capture.c735 sc_hrmax = min(SCALER_MAX_RATIO, 1 << (ffs(crop->width) - 3));
736 sc_vrmax = min(SCALER_MAX_RATIO, 1 << (ffs(crop->height) - 1));
744 ffs(pix_lim->out_width_align) - 1,
1265 ffs(pix_lim->out_width_align) - 1,
1271 ffs(pix_lim->out_width_align) - 1,
1399 ffs(pix_lim->win_hor_offset_align) - 1,
1403 ffs(pix_lim->win_hor_offset_align),
/linux-master/drivers/media/platform/samsung/exynos-gsc/
H A Dgsc-core.c417 mod_x = ffs(variant->pix_align->org_w) - 1;
419 mod_y = ffs(variant->pix_align->org_h) - 1;
421 mod_y = ffs(variant->pix_align->org_h) - 2;
555 mod_x = ffs(variant->pix_align->target_w) - 1;
557 mod_y = ffs(variant->pix_align->target_h) - 1;
/linux-master/drivers/iio/light/
H A Drohm-bu27008.c816 val >>= ffs(data->cd->int_time_mask) - 1;
825 sel <<= ffs(data->cd->int_time_mask) - 1;
987 chan_sel <<= ffs(data->cd->chan_sel_mask) - 1;
1035 chan_sel = BU27008_BLUE2_IR3 << (ffs(data->cd->chan_sel_mask) - 1);
1377 chan_sel <<= ffs(data->cd->chan_sel_mask) - 1;
/linux-master/drivers/regulator/
H A Drk808-regulator.c341 regval = ramp_value << (ffs(rdev->desc->ramp_mask) - 1);
411 val >>= ffs(rdev->desc->vsel_mask) - 1;
428 old_sel >>= ffs(mask) - 1;
438 val = old_sel << (ffs(mask) - 1);
451 sel <<= ffs(mask) - 1;
491 sel <<= ffs(rdev->desc->vsel_mask) - 1;
/linux-master/drivers/ata/
H A Dpata_it821x.c624 mode = ffs(buf[51]);
627 mode = ffs(buf[49]);
/linux-master/drivers/iio/temperature/
H A Dmlx90614.c72 #define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1))
73 #define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask))
/linux-master/drivers/tty/serial/
H A Ddz.c208 (ffs(DZ_FERR) - ffs(DZ_BREAK));
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_amdkfd.c595 int num_lanes_shift = (is_min ? ffs(adev->pm.pcie_mlw_mask) :
597 int gen_speed_shift = (is_min ? ffs(adev->pm.pcie_gen_mask &

Completed in 809 milliseconds

1234567891011>>