| /linux/block/ |
| H A D | blk-crypto-profile.c | 75 unsigned int num_slots) in blk_crypto_profile_init() argument 91 if (num_slots == 0) in blk_crypto_profile_init() 96 profile->slots = kvcalloc(num_slots, sizeof(profile->slots[0]), in blk_crypto_profile_init() 101 profile->num_slots = num_slots; in blk_crypto_profile_init() 106 for (slot = 0; slot < num_slots; slot++) { in blk_crypto_profile_init() 114 slot_hashtable_size = roundup_pow_of_two(num_slots); in blk_crypto_profile_init() 157 unsigned int num_slots) in devm_blk_crypto_profile_init() argument 159 int err = blk_crypto_profile_init(profile, num_slots); in devm_blk_crypto_profile_init() 262 if (profile->num_slots == 0) in blk_crypto_get_keyslot() 371 if (profile->num_slots == 0) { in __blk_crypto_evict_key() [all …]
|
| /linux/drivers/infiniband/sw/rxe/ |
| H A D | rxe_queue.c | 60 unsigned int num_slots; in rxe_queue_init() local 83 num_slots = *num_elem + 1; in rxe_queue_init() 84 num_slots = roundup_pow_of_two(num_slots); in rxe_queue_init() 85 q->index_mask = num_slots - 1; in rxe_queue_init() 87 buf_size = sizeof(struct rxe_queue_buf) + num_slots * elem_size; in rxe_queue_init() 98 *num_elem = num_slots - 1; in rxe_queue_init()
|
| /linux/fs/dlm/ |
| H A D | member.c | 62 static void log_slots(struct dlm_ls *ls, uint32_t gen, int num_slots, in log_slots() argument 85 for (i = 0; i < num_slots; i++) { in log_slots() 94 log_rinfo(ls, "generation %u slots %d%s", gen, num_slots, line); in log_slots() 104 int i, num_slots; in dlm_slots_copy_in() local 117 num_slots = le16_to_cpu(rf->rf_num_slots); in dlm_slots_copy_in() 118 if (!num_slots) in dlm_slots_copy_in() 123 log_slots(ls, gen, num_slots, ro0, NULL, 0); in dlm_slots_copy_in() 126 for (i = 0, ro = ro0; i < num_slots; i++, ro++) { in dlm_slots_copy_in() 160 int dlm_slots_assign(struct dlm_ls *ls, int *num_slots, int *slots_size, in dlm_slots_assign() argument 282 *num_slots = num; in dlm_slots_assign()
|
| H A D | rcom.c | 112 uint32_t num_slots) in set_rcom_config() argument 118 rf->rf_num_slots = cpu_to_le16(num_slots); in set_rcom_config() 233 int num_slots = 0; in receive_rcom_status() local 250 num_slots = ls->ls_num_slots; in receive_rcom_status() 252 len += num_slots * sizeof(struct rcom_slot); in receive_rcom_status() 264 set_rcom_config(ls, (struct rcom_config *)rc->rc_buf, num_slots); in receive_rcom_status() 266 if (!num_slots) in receive_rcom_status() 270 if (ls->ls_num_slots != num_slots) { in receive_rcom_status() 273 num_slots, ls->ls_num_slots); in receive_rcom_status()
|
| H A D | member.h | 26 int dlm_slots_assign(struct dlm_ls *ls, int *num_slots, int *slots_size,
|
| H A D | recover.c | 173 int num_slots, slots_size; in dlm_recover_members_wait() local 189 rv = dlm_slots_assign(ls, &num_slots, &slots_size, &slots, &gen); in dlm_recover_members_wait() 193 ls->ls_num_slots = num_slots; in dlm_recover_members_wait()
|
| /linux/include/linux/ |
| H A D | blk-crypto-profile.h | 168 unsigned int num_slots; member 196 unsigned int num_slots); 200 unsigned int num_slots);
|
| H A D | dlm.h | 35 int num_slots, int our_slot, uint32_t generation);
|
| /linux/drivers/pci/hotplug/ |
| H A D | shpchp_hpc.c | 545 for (i = 0; i < ctrl->num_slots; i++) { in shpchp_release_ctlr() 792 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_isr() 875 int rc = -1, num_slots = 0; in shpc_init() local 908 num_slots = tempdword & SLOT_NUM; in shpc_init() 909 ctrl_dbg(ctrl, " num_slots (indirect) %x\n", num_slots); in shpc_init() 911 for (i = 0; i < 9 + num_slots; i++) { in shpc_init() 923 ctrl->mmio_size = 0x24 + 0x4 * num_slots; in shpc_init() 961 ctrl->num_slots = slot_config & SLOT_NUM; in shpc_init() 978 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_init() 1022 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_init()
|
| /linux/drivers/gpu/drm/omapdrm/ |
| H A D | tcm-sita.c | 154 static s32 sita_reserve_1d(struct tcm *tcm, u32 num_slots, in sita_reserve_1d() argument 161 ret = r2l_b2t_1d(num_slots, &pos, tcm->bitmap, tcm->map_size); in sita_reserve_1d() 165 area->p1.x = (pos + num_slots - 1) % tcm->width; in sita_reserve_1d() 166 area->p1.y = (pos + num_slots - 1) / tcm->width; in sita_reserve_1d()
|
| /linux/drivers/iio/adc/ |
| H A D | ad_sigma_delta.c | 476 if (sigma_delta->num_slots == 1) { in ad_sd_buffer_postenable() 680 return bitmap_weight(mask, iio_get_masklength(indio_dev)) <= sigma_delta->num_slots; in ad_sd_validate_scan_mask() 806 sigma_delta->slots = devm_kcalloc(dev, sigma_delta->num_slots, in devm_ad_sd_setup_buffer_and_trigger() 856 if (!info->num_slots) in ad_sd_init() 857 sigma_delta->num_slots = 1; in ad_sd_init() 859 sigma_delta->num_slots = info->num_slots; in ad_sd_init() 861 if (sigma_delta->num_slots > 1) { in ad_sd_init()
|
| H A D | ad4695.c | 632 u32 bit, num_xfer, num_slots; in ad4695_buffer_preenable() local 644 num_slots = 1; in ad4695_buffer_preenable() 667 AD4695_REG_AS_SLOT(num_slots), in ad4695_buffer_preenable() 672 num_slots++; in ad4695_buffer_preenable() 706 if (num_slots < 2) { in ad4695_buffer_preenable() 724 AD4695_REG_AS_SLOT(num_slots), in ad4695_buffer_preenable() 729 num_slots++; in ad4695_buffer_preenable() 763 ret = ad4695_enter_advanced_sequencer_mode(st, num_slots); in ad4695_buffer_preenable() 818 u8 num_slots = 0; in ad4695_offload_buffer_postenable() local 829 ret = regmap_write(st->regmap, AD4695_REG_AS_SLOT(num_slots), in ad4695_offload_buffer_postenable() [all …]
|
| /linux/arch/sparc/kernel/ |
| H A D | central.c | 23 int num_slots; member 100 p->num_slots = clock_board_calc_nslots(p); in clock_board_probe() 121 p->num_slots); in clock_board_probe()
|
| /linux/drivers/pci/controller/dwc/ |
| H A D | pcie-kirin.c | 82 int num_slots; member 408 i = pcie->num_slots; in kirin_pcie_parse_port() 421 if (pcie->num_slots + 1 >= MAX_PCI_SLOTS) in kirin_pcie_parse_port() 425 pcie->num_slots++; in kirin_pcie_parse_port() 544 if (!kirin_pcie->num_slots) in kirin_pcie_add_bus() 548 for (i = 0; i < kirin_pcie->num_slots; i++) { in kirin_pcie_add_bus()
|
| /linux/include/linux/iio/adc/ |
| H A D | ad_sigma_delta.h | 80 unsigned int num_slots; member 109 unsigned int num_slots; member
|
| /linux/drivers/i3c/master/ |
| H A D | adi-i3c-master.c | 108 unsigned int num_slots; member 707 for (id = 0; id < master->ibi.num_slots; id++) { in adi_i3c_master_handle_ibi() 713 if (id == master->ibi.num_slots) in adi_i3c_master_handle_ibi() 870 for (i = 0; i < master->ibi.num_slots; i++) { in adi_i3c_master_request_ibi() 879 if (i < master->ibi.num_slots) in adi_i3c_master_request_ibi() 980 master->ibi.num_slots = 15; in adi_i3c_master_probe() 981 master->ibi.slots = devm_kcalloc(&pdev->dev, master->ibi.num_slots, in adi_i3c_master_probe()
|
| /linux/drivers/mmc/host/ |
| H A D | mmc_hsq.h | 32 int num_slots; member
|
| H A D | cqhci-core.c | 206 cq_host->desc_size = cq_host->slot_sz * cq_host->num_slots; in cqhci_host_alloc_tdl() 245 for (; i < (cq_host->num_slots); i++) in cqhci_host_alloc_tdl() 854 for_each_set_bit(tag, &comp_status, cq_host->num_slots) { in cqhci_irq() 1056 for (i = 0; i < cq_host->num_slots; i++) in cqhci_recover_mrqs() 1188 cq_host->num_slots = NUM_SLOTS; in cqhci_init() 1197 cq_host->slot = devm_kcalloc(mmc_dev(mmc), cq_host->num_slots, in cqhci_init()
|
| H A D | mmc_hsq.c | 349 hsq->num_slots = HSQ_NUM_SLOTS; in mmc_hsq_init() 353 hsq->slot = devm_kcalloc(mmc_dev(mmc), hsq->num_slots, in mmc_hsq_init()
|
| H A D | sdhci-pci.h | 185 int num_slots; /* Slots on controller */ member
|
| /linux/drivers/dma/ti/ |
| H A D | edma.c | 240 unsigned num_slots; member 423 if (slot >= ecc->num_slots) in edma_write_slot() 432 if (slot >= ecc->num_slots) in edma_read_slot() 470 ecc->num_slots, in edma_alloc_slot() 472 if (slot == ecc->num_slots) in edma_alloc_slot() 477 } else if (slot >= ecc->num_slots) { in edma_alloc_slot() 491 if (slot >= ecc->num_slots) in edma_free_slot() 513 if (from >= ecc->num_slots || to >= ecc->num_slots) in edma_link() 2038 ecc->num_slots = BIT(value + 4); in edma_setup_from_hw() 2049 dev_dbg(dev, "num_slots: %u\n", ecc->num_slots); in edma_setup_from_hw() [all …]
|
| /linux/arch/parisc/include/asm/ |
| H A D | eisa_eeprom.h | 24 u_int8_t num_slots; /* number of EISA slots in system */ member
|
| /linux/drivers/parisc/ |
| H A D | eisa_enumerator.c | 494 for (i=0;i<eh->num_slots;i++) { in eisa_enumerator() 514 return eh->num_slots; in eisa_enumerator()
|
| /linux/drivers/i3c/ |
| H A D | master.c | 2161 ibireq.num_slots = olddev->ibi->num_slots; in i3c_master_add_i3c_dev_locked() 2670 unsigned int num_slots; member 2699 WARN_ON(nslots != pool->num_slots); in i3c_generic_ibi_free_pool() 2733 pool->slots = kcalloc(req->num_slots, sizeof(*slot), GFP_KERNEL); in i3c_generic_ibi_alloc_pool() 2740 pool->payload_buf = kcalloc(req->num_slots, in i3c_generic_ibi_alloc_pool() 2748 for (i = 0; i < req->num_slots; i++) { in i3c_generic_ibi_alloc_pool() 2757 pool->num_slots++; in i3c_generic_ibi_alloc_pool() 3096 ibi->num_slots = req->num_slots; in i3c_dev_request_ibi_locked()
|
| /linux/drivers/gpu/drm/nouveau/include/nvif/ |
| H A D | outp.h | 115 u8 start_slot, u8 num_slots, u16 pbn, u16 aligned_pbn);
|