/drivers/android/ |
D | dbitmap.h | 27 unsigned int nbits; member 33 return !!dmap->nbits; in dbitmap_enabled() 38 dmap->nbits = 0; in dbitmap_free() 47 if (dmap->nbits <= NBITS_MIN) in dbitmap_shrink_nbits() 56 bit = find_last_bit(dmap->map, dmap->nbits); in dbitmap_shrink_nbits() 57 if (bit < (dmap->nbits >> 2)) in dbitmap_shrink_nbits() 58 return dmap->nbits >> 1; in dbitmap_shrink_nbits() 61 if (bit == dmap->nbits) in dbitmap_shrink_nbits() 69 dbitmap_replace(struct dbitmap *dmap, unsigned long *new, unsigned int nbits) in dbitmap_replace() argument 71 bitmap_copy(new, dmap->map, min(dmap->nbits, nbits)); in dbitmap_replace() [all …]
|
/drivers/soc/tegra/fuse/ |
D | fuse-tegra30.c | 141 .nbits = 32, 147 .nbits = 32, 153 .nbits = 32, 159 .nbits = 32, 165 .nbits = 32, 171 .nbits = 32, 177 .nbits = 32, 183 .nbits = 32, 189 .nbits = 32, 195 .nbits = 32, [all …]
|
/drivers/regulator/ |
D | da903x-regulator.c | 309 #define DA903x_LDO(_pmic, _id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument 324 .vol_nbits = (nbits), \ 329 #define DA903x_DVC(_pmic, _id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ argument 344 .vol_nbits = (nbits), \ 351 #define DA9034_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument 352 DA903x_LDO(DA9034, _id, min, max, step, vreg, shift, nbits, ereg, ebit) 354 #define DA9030_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument 355 DA903x_LDO(DA9030, _id, min, max, step, vreg, shift, nbits, ereg, ebit) 357 #define DA9030_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ argument 358 DA903x_DVC(DA9030, _id, min, max, step, vreg, nbits, ureg, ubit, \ [all …]
|
D | tps6586x-regulator.c | 109 #define TPS6586X_REGULATOR(_id, _ops, _pin_name, vdata, vreg, shift, nbits, \ argument 123 .vsel_mask = ((1 << (nbits)) - 1) << (shift), \ 133 uv_step, vreg, shift, nbits, ereg0, \ argument 148 .vsel_mask = ((1 << (nbits)) - 1) << (shift), \ 157 #define TPS6586X_LDO(_id, _pname, vdata, vreg, shift, nbits, \ argument 160 TPS6586X_REGULATOR(_id, rw, _pname, vdata, vreg, shift, nbits, \ 165 shift, nbits, ereg0, ebit0, ereg1, ebit1) \ argument 168 min_uv, uv_step, vreg, shift, nbits, \ 172 #define TPS6586X_FIXED_LDO(_id, _pname, vdata, vreg, shift, nbits, \ argument 175 TPS6586X_REGULATOR(_id, ro, _pname, vdata, vreg, shift, nbits, \ [all …]
|
/drivers/net/ethernet/tehuti/ |
D | tehuti.h | 127 #define BITS_MASK(nbits) ((1<<nbits)-1) argument 128 #define GET_BITS_SHIFT(x, nbits, nshift) (((x)>>nshift)&BITS_MASK(nbits)) argument 129 #define BITS_SHIFT_MASK(nbits, nshift) (BITS_MASK(nbits)<<nshift) argument 130 #define BITS_SHIFT_VAL(x, nbits, nshift) (((x)&BITS_MASK(nbits))<<nshift) argument 131 #define BITS_SHIFT_CLEAR(x, nbits, nshift) \ argument 132 ((x)&(~BITS_SHIFT_MASK(nbits, nshift)))
|
/drivers/firmware/efi/libstub/ |
D | find.c | 34 unsigned long _find_next_bit(const unsigned long *addr, unsigned long nbits, unsigned long start) in _find_next_bit() argument 36 return FIND_NEXT_BIT(addr[idx], /* nop */, nbits, start); in _find_next_bit() 39 unsigned long _find_next_zero_bit(const unsigned long *addr, unsigned long nbits, in _find_next_zero_bit() argument 42 return FIND_NEXT_BIT(~addr[idx], /* nop */, nbits, start); in _find_next_zero_bit()
|
/drivers/media/usb/pwc/ |
D | pwc-dec23.c | 298 pdec->nbits = 7; /* More bits, mean more bits to encode the stream, but better quality */ in pwc_dec23_init() 300 pdec->nbits = 8; in pwc_dec23_init() 302 pdec->nbits = 6; in pwc_dec23_init() 312 pdec->nbits = 7; in pwc_dec23_init() 314 pdec->nbits = 8; in pwc_dec23_init() 316 pdec->nbits = 6; in pwc_dec23_init() 324 shift = 8 - pdec->nbits; in pwc_dec23_init() 496 __get_nbits(pdec, pdec->nbits, primary_color); in decode_block() 542 unsigned int nbits, col1; in decode_block() local 550 nbits = ptable8004[offset1 * 2]; in decode_block() [all …]
|
D | pwc-dec23.h | 25 unsigned int nbitsmask, nbits; /* Number of bits of a color in the compressed stream */ member
|
/drivers/net/wireless/broadcom/brcm80211/include/ |
D | brcmu_utils.h | 44 #define NBITVAL(nbits) (1 << (nbits)) argument 45 #define MAXBITVAL(nbits) ((1 << (nbits)) - 1) argument 46 #define NBITMASK(nbits) MAXBITVAL(nbits) argument
|
/drivers/pci/controller/cadence/ |
D | pcie-cadence.c | 36 int nbits = ilog2(sz); in cdns_pcie_set_outbound_region() local 39 if (nbits < 8) in cdns_pcie_set_outbound_region() 40 nbits = 8; in cdns_pcie_set_outbound_region() 43 addr0 = CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_NBITS(nbits) | in cdns_pcie_set_outbound_region() 96 addr0 = CDNS_PCIE_AT_OB_REGION_CPU_ADDR0_NBITS(nbits) | in cdns_pcie_set_outbound_region()
|
D | pcie-cadence.h | 148 #define CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_NBITS(nbits) \ argument 149 (((nbits) - 1) & CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_NBITS_MASK) 188 #define CDNS_PCIE_AT_OB_REGION_CPU_ADDR0_NBITS(nbits) \ argument 189 (((nbits) - 1) & CDNS_PCIE_AT_OB_REGION_CPU_ADDR0_NBITS_MASK) 199 #define CDNS_PCIE_AT_IB_RP_BAR_ADDR0_NBITS(nbits) \ argument 200 (((nbits) - 1) & CDNS_PCIE_AT_IB_RP_BAR_ADDR0_NBITS_MASK)
|
/drivers/nvmem/ |
D | core.c | 55 int nbits; member 478 cell->nbits = info->nbits; in nvmem_cell_info_to_nvmem_cell_entry_nodup() 481 if (cell->nbits) in nvmem_cell_info_to_nvmem_cell_entry_nodup() 482 cell->bytes = DIV_ROUND_UP(cell->nbits + cell->bit_offset, in nvmem_cell_info_to_nvmem_cell_entry_nodup() 724 info.nbits = be32_to_cpup(addr); in nvmem_add_cells_from_dt() 1586 extra = cell->bytes - DIV_ROUND_UP(cell->nbits, BITS_PER_BYTE); in nvmem_shift_read_buffer_in_place() 1591 if (cell->nbits % BITS_PER_BYTE) in nvmem_shift_read_buffer_in_place() 1592 *p &= GENMASK((cell->nbits % BITS_PER_BYTE) - 1, 0); in nvmem_shift_read_buffer_in_place() 1607 if (cell->bit_offset || cell->nbits) in __nvmem_cell_read() 1661 int i, rc, nbits, bit_offset = cell->bit_offset; in nvmem_cell_prepare_write_buffer() local [all …]
|
D | mtk-efuse.c | 59 if (cell->nbits <= 3 && in mtk_efuse_fixup_cell_info()
|
/drivers/gpu/drm/ |
D | drm_print.c | 241 const char * const bits[], unsigned int nbits) in drm_print_bits() argument 246 if (WARN_ON_ONCE(nbits > BITS_PER_TYPE(value))) in drm_print_bits() 247 nbits = BITS_PER_TYPE(value); in drm_print_bits() 249 for_each_set_bit(i, &value, nbits) { in drm_print_bits()
|
/drivers/vfio/ |
D | iova_bitmap.c | 415 unsigned int nbits = min(BITS_PER_PAGE - offset, in iova_bitmap_set() local 423 bitmap_set(kaddr, offset, nbits); in iova_bitmap_set() 425 cur_bit += nbits; in iova_bitmap_set()
|
/drivers/pinctrl/bcm/ |
D | pinctrl-iproc-gpio.c | 447 unsigned int bit, nbits = 0; in iproc_pinconf_disable_map_create() local 451 nbits++; in iproc_pinconf_disable_map_create() 453 if (!nbits) in iproc_pinconf_disable_map_create() 460 chip->pinconf_disable = devm_kcalloc(chip->dev, nbits, in iproc_pinconf_disable_map_create() 466 chip->nr_pinconf_disable = nbits; in iproc_pinconf_disable_map_create() 469 nbits = 0; in iproc_pinconf_disable_map_create() 471 chip->pinconf_disable[nbits++] = iproc_pinconf_disable_map[bit]; in iproc_pinconf_disable_map_create()
|
/drivers/spi/ |
D | spi-pic32-sqi.c | 267 u32 nbits; in pic32_sqi_one_transfer() local 275 nbits = xfer->rx_nbits; in pic32_sqi_one_transfer() 279 nbits = xfer->tx_nbits; in pic32_sqi_one_transfer() 284 if (nbits & SPI_NBITS_QUAD) in pic32_sqi_one_transfer() 286 else if (nbits & SPI_NBITS_DUAL) in pic32_sqi_one_transfer()
|
D | spi-sun6i.c | 283 unsigned int tx_len = 0, rx_len = 0, nbits = 0; in sun6i_spi_transfer_one() local 438 nbits = tfr->tx_nbits; in sun6i_spi_transfer_one() 440 nbits = tfr->rx_nbits; in sun6i_spi_transfer_one() 443 switch (nbits) { in sun6i_spi_transfer_one()
|
D | spi-armada-3700.c | 596 unsigned int nbits = 0, byte_len; in a3700_spi_transfer_one_fifo() local 607 nbits = xfer->tx_nbits; in a3700_spi_transfer_one_fifo() 609 nbits = xfer->rx_nbits; in a3700_spi_transfer_one_fifo() 611 a3700_spi_pin_mode_set(a3700_spi, nbits, xfer->rx_buf ? true : false); in a3700_spi_transfer_one_fifo()
|
/drivers/mfd/ |
D | twl4030-irq.c | 81 #define SIH_INITIALIZER(modname, nbits) \ argument 84 .bits = nbits, \ 85 .bytes_ixr = DIV_ROUND_UP(nbits, 8), \ 87 .bytes_edr = DIV_ROUND_UP((2*(nbits)), 8), \
|
/drivers/crypto/aspeed/ |
D | aspeed-acry.c | 253 int nbits, ndw; in aspeed_acry_rsa_ctx_copy() local 268 nbits = nbytes * 8; in aspeed_acry_rsa_ctx_copy() 270 nbits -= count_leading_zeros(src[0]) - (BITS_PER_LONG - 8); in aspeed_acry_rsa_ctx_copy() 296 return nbits; in aspeed_acry_rsa_ctx_copy()
|
/drivers/crypto/ |
D | img-hash.c | 466 unsigned long long nbits; in img_hash_hw_init() local 473 nbits = (u64)hdev->req->nbytes << 3; in img_hash_hw_init() 474 u = nbits >> 32; in img_hash_hw_init() 475 l = nbits; in img_hash_hw_init() 483 dev_dbg(hdev->dev, "hw initialized, nbits: %llx\n", nbits); in img_hash_hw_init()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | alloc.c | 80 u32 start, u32 nbits, in find_aligned_range() argument 88 while ((start < nbits) && (test_bit(start, bitmap) || in find_aligned_range() 92 if (start >= nbits) in find_aligned_range() 96 if (end > nbits) in find_aligned_range()
|
/drivers/firmware/cirrus/ |
D | cs_dsp.c | 3353 int cs_dsp_chunk_write(struct cs_dsp_chunk *ch, int nbits, u32 val) in cs_dsp_chunk_write() argument 3357 nwrite = min(CS_DSP_DATA_WORD_BITS - ch->cachebits, nbits); in cs_dsp_chunk_write() 3360 ch->cache |= val >> (nbits - nwrite); in cs_dsp_chunk_write() 3362 nbits -= nwrite; in cs_dsp_chunk_write() 3376 if (nbits) in cs_dsp_chunk_write() 3377 return cs_dsp_chunk_write(ch, nbits, val); in cs_dsp_chunk_write() 3412 int cs_dsp_chunk_read(struct cs_dsp_chunk *ch, int nbits) in cs_dsp_chunk_read() argument 3430 nread = min(ch->cachebits, nbits); in cs_dsp_chunk_read() 3431 nbits -= nread; in cs_dsp_chunk_read() 3437 if (nbits) in cs_dsp_chunk_read() [all …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum.h | 397 unsigned int nbits; member 404 unsigned int nbits = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_port_bitmap_init() local 406 ports_bm->nbits = nbits; in mlxsw_sp_port_bitmap_init() 407 ports_bm->bitmap = bitmap_zalloc(nbits, GFP_KERNEL); in mlxsw_sp_port_bitmap_init()
|