/linux-master/drivers/dma/ptdma/ |
H A D | ptdma.h | 94 #define QUEUE_SIZE_VAL ((ffs(CMD_Q_LEN) - 2) & \
|
/linux-master/drivers/gpu/drm/ |
H A D | drm_blend.c | 331 BIT((ffs(rotation & DRM_MODE_ROTATE_MASK) + 1)
|
/linux-master/arch/powerpc/platforms/52xx/ |
H A D | media5200.c | 91 * are pending. 'ffs()' is 1 based */ 94 val = ffs((status & enable) >> MEDIA5200_IRQ_SHIFT);
|
/linux-master/drivers/irqchip/ |
H A D | irq-ftintc010.c | 135 irq = ffs(status) - 1;
|
H A D | irq-starfive-jh8100-intc.c | 104 hwirq = ffs(value) - 1;
|
/linux-master/arch/arc/kernel/ |
H A D | mcip.c | 281 if (ffs(destination_bits) == fls(destination_bits))
|
/linux-master/arch/x86/include/asm/ |
H A D | bitops.h | 338 * 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 D | bitops.h | 405 * 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 D | bitops.h | 273 #include <asm-generic/bitops/builtin-ffs.h>
|
/linux-master/arch/alpha/include/asm/ |
H A D | bitops.h | 371 * 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 D | bitops.h | 327 * 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 D | cio.h | 357 return 8 - ffs(mask);
|
/linux-master/arch/m68k/emu/ |
H A D | nfblock.c | 121 dev->bshift = ffs(bsize) - 10;
|
/linux-master/drivers/gpu/drm/i915/ |
H A D | i915_syncmap.c | 371 while ((i = ffs(p->bitmap))) {
|
/linux-master/drivers/net/wwan/t7xx/ |
H A D | t7xx_pcie_mac.c | 259 u32 val = ffs(irq_count) * 2 - 1;
|
/linux-master/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_mqd_manager.c | 110 int xcc_inst = inst + ffs(mm->dev->xcc_mask) - 1;
|
/linux-master/drivers/of/ |
H A D | device.c | 313 addr, ffs(mask) - 1, node, dev_name(dev));
|
/linux-master/drivers/media/platform/samsung/s3c-camif/ |
H A D | camif-capture.c | 735 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 D | gsc-core.c | 417 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 D | rohm-bu27008.c | 816 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 D | rk808-regulator.c | 341 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 D | pata_it821x.c | 624 mode = ffs(buf[51]); 627 mode = ffs(buf[49]);
|
/linux-master/drivers/iio/temperature/ |
H A D | mlx90614.c | 72 #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 D | dz.c | 208 (ffs(DZ_FERR) - ffs(DZ_BREAK));
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_amdkfd.c | 595 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 &
|