/drivers/soc/tegra/fuse/ |
D | fuse-tegra.c | 101 .nbits = 32, 107 .nbits = 32, 113 .nbits = 32, 119 .nbits = 32, 125 .nbits = 32, 131 .nbits = 2, 137 .nbits = 32, 143 .nbits = 32, 149 .nbits = 32, 155 .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/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/nvmem/ |
D | core.c | 52 int nbits; member 376 cell->nbits = info->nbits; in nvmem_cell_info_to_nvmem_cell_nodup() 378 if (cell->nbits) in nvmem_cell_info_to_nvmem_cell_nodup() 379 cell->bytes = DIV_ROUND_UP(cell->nbits + cell->bit_offset, in nvmem_cell_info_to_nvmem_cell_nodup() 572 cell->nbits = be32_to_cpup(addr); in nvmem_add_cells_from_of() 575 if (cell->nbits) in nvmem_add_cells_from_of() 577 cell->nbits + cell->bit_offset, in nvmem_add_cells_from_of() 1235 extra = cell->bytes - DIV_ROUND_UP(cell->nbits, BITS_PER_BYTE); in nvmem_shift_read_buffer_in_place() 1240 if (cell->nbits % BITS_PER_BYTE) in nvmem_shift_read_buffer_in_place() 1241 *p &= GENMASK((cell->nbits % BITS_PER_BYTE) - 1, 0); in nvmem_shift_read_buffer_in_place() [all …]
|
/drivers/pci/controller/cadence/ |
D | pcie-cadence.c | 35 int nbits = ilog2(sz); in cdns_pcie_set_outbound_region() local 38 if (nbits < 8) in cdns_pcie_set_outbound_region() 39 nbits = 8; in cdns_pcie_set_outbound_region() 42 addr0 = CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_NBITS(nbits) | in cdns_pcie_set_outbound_region() 95 addr0 = CDNS_PCIE_AT_OB_REGION_CPU_ADDR0_NBITS(nbits) | in cdns_pcie_set_outbound_region()
|
D | pcie-cadence.h | 133 #define CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_NBITS(nbits) \ argument 134 (((nbits) - 1) & CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_NBITS_MASK) 173 #define CDNS_PCIE_AT_OB_REGION_CPU_ADDR0_NBITS(nbits) \ argument 174 (((nbits) - 1) & CDNS_PCIE_AT_OB_REGION_CPU_ADDR0_NBITS_MASK) 184 #define CDNS_PCIE_AT_IB_RP_BAR_ADDR0_NBITS(nbits) \ argument 185 (((nbits) - 1) & CDNS_PCIE_AT_IB_RP_BAR_ADDR0_NBITS_MASK)
|
/drivers/gpu/drm/ |
D | drm_print.c | 218 const char * const bits[], unsigned int nbits) in drm_print_bits() argument 223 if (WARN_ON_ONCE(nbits > BITS_PER_TYPE(value))) in drm_print_bits() 224 nbits = BITS_PER_TYPE(value); in drm_print_bits() 226 for_each_set_bit(i, &value, nbits) { in drm_print_bits()
|
/drivers/pinctrl/bcm/ |
D | pinctrl-iproc-gpio.c | 424 unsigned int bit, nbits = 0; in iproc_pinconf_disable_map_create() local 428 nbits++; in iproc_pinconf_disable_map_create() 430 if (!nbits) in iproc_pinconf_disable_map_create() 437 chip->pinconf_disable = devm_kcalloc(chip->dev, nbits, in iproc_pinconf_disable_map_create() 443 chip->nr_pinconf_disable = nbits; in iproc_pinconf_disable_map_create() 446 nbits = 0; in iproc_pinconf_disable_map_create() 448 chip->pinconf_disable[nbits++] = iproc_pinconf_disable_map[bit]; in iproc_pinconf_disable_map_create()
|
/drivers/s390/crypto/ |
D | vfio_ap_ops.c | 512 unsigned long nbits = matrix_mdev->matrix.aqm_max + 1; in vfio_ap_mdev_verify_queues_reserved_for_apid() local 514 if (find_first_bit_inv(matrix_mdev->matrix.aqm, nbits) >= nbits) in vfio_ap_mdev_verify_queues_reserved_for_apid() 517 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm, nbits) { in vfio_ap_mdev_verify_queues_reserved_for_apid() 700 unsigned long nbits = matrix_mdev->matrix.apm_max + 1; in vfio_ap_mdev_verify_queues_reserved_for_apqi() local 702 if (find_first_bit_inv(matrix_mdev->matrix.apm, nbits) >= nbits) in vfio_ap_mdev_verify_queues_reserved_for_apqi() 705 for_each_set_bit_inv(apid, matrix_mdev->matrix.apm, nbits) { in vfio_ap_mdev_verify_queues_reserved_for_apqi()
|
/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-armada-3700.c | 597 unsigned int nbits = 0, byte_len; in a3700_spi_transfer_one_fifo() local 608 nbits = xfer->tx_nbits; in a3700_spi_transfer_one_fifo() 610 nbits = xfer->rx_nbits; in a3700_spi_transfer_one_fifo() 612 a3700_spi_pin_mode_set(a3700_spi, nbits, xfer->rx_buf ? true : false); in a3700_spi_transfer_one_fifo()
|
D | spi-dw-core.c | 381 u16 nbits; in dw_spi_poll_transfer() local 385 nbits = dws->n_bytes * BITS_PER_BYTE; in dw_spi_poll_transfer() 390 delay.value = nbits * (dws->rx_len - dws->tx_len); in dw_spi_poll_transfer()
|
D | spi-loopback-test.c | 543 unsigned long long nbits = (unsigned long long)BITS_PER_BYTE * in spi_test_check_elapsed_time() local 549 estimated_time += div_u64(nbits * NSEC_PER_SEC, xfer->speed_hz); in spi_test_check_elapsed_time()
|
D | spi-zynqmp-gqspi.c | 560 static void zynqmp_qspi_fillgenfifo(struct zynqmp_qspi *xqspi, u8 nbits, in zynqmp_qspi_fillgenfifo() argument 584 genfifoentry |= zynqmp_qspi_selectspimode(xqspi, nbits); in zynqmp_qspi_fillgenfifo()
|
/drivers/mfd/ |
D | twl4030-irq.c | 80 #define SIH_INITIALIZER(modname, nbits) \ argument 83 .bits = nbits, \ 84 .bytes_ixr = DIV_ROUND_UP(nbits, 8), \ 86 .bytes_edr = DIV_ROUND_UP((2*(nbits)), 8), \
|
/drivers/crypto/ |
D | img-hash.c | 465 unsigned long long nbits; in img_hash_hw_init() local 472 nbits = (u64)hdev->req->nbytes << 3; in img_hash_hw_init() 473 u = nbits >> 32; in img_hash_hw_init() 474 l = nbits; in img_hash_hw_init() 482 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/of/ |
D | base.c | 2103 unsigned int nbits) in of_alias_get_alias_list() argument 2109 bitmap_zero(bitmap, nbits); in of_alias_get_alias_list() 2126 if (app->id >= nbits) { in of_alias_get_alias_list() 2128 __func__, app->id, nbits); in of_alias_get_alias_list()
|
/drivers/edac/ |
D | skx_base.c | 531 static int skx_bits(u64 addr, int nbits, u8 *bits) in skx_bits() argument 535 for (i = 0; i < nbits; i++) in skx_bits()
|
/drivers/vfio/ |
D | vfio_iommu_type1.c | 1069 unsigned long nbits = dma->size >> pgshift; in update_user_bitmap() local 1080 bitmap_set(dma->bitmap, 0, nbits); in update_user_bitmap() 1084 nbits + shift); in update_user_bitmap() 1095 DIRTY_BITMAP_BYTES(nbits + shift))) in update_user_bitmap()
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | cxgb2.c | 1193 static void bit_bang(struct adapter *adapter, int bitdata, int nbits) in bit_bang() argument 1204 for (i = (nbits - 1); i > -1; i--) { in bit_bang()
|