Home
last modified time | relevance | path

Searched refs:num_slots (Results 1 – 25 of 78) sorted by relevance

1234

/linux-6.6.21/drivers/input/
Dinput-mt.c39 int input_mt_init_slots(struct input_dev *dev, unsigned int num_slots, in input_mt_init_slots() argument
45 if (!num_slots) in input_mt_init_slots()
48 return mt->num_slots != num_slots ? -EINVAL : 0; in input_mt_init_slots()
50 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots()
54 mt->num_slots = num_slots; in input_mt_init_slots()
56 input_set_abs_params(dev, ABS_MT_SLOT, 0, num_slots - 1, 0, 0); in input_mt_init_slots()
70 if (num_slots >= 3) in input_mt_init_slots()
72 if (num_slots >= 4) in input_mt_init_slots()
74 if (num_slots >= 5) in input_mt_init_slots()
83 unsigned int n2 = num_slots * num_slots; in input_mt_init_slots()
[all …]
/linux-6.6.21/block/
Dblk-crypto-profile.c75 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()
369 if (profile->num_slots == 0) { in __blk_crypto_evict_key()
[all …]
/linux-6.6.21/drivers/infiniband/sw/rxe/
Drxe_queue.c60 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-6.6.21/include/linux/
Dblk-crypto-profile.h106 unsigned int num_slots; member
134 unsigned int num_slots);
138 unsigned int num_slots);
Ddlm.h35 int num_slots, int our_slot, uint32_t generation);
/linux-6.6.21/fs/dlm/
Dmember.c62 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()
Drcom.c113 uint32_t num_slots) in set_rcom_config() argument
119 rf->rf_num_slots = cpu_to_le16(num_slots); in set_rcom_config()
234 int num_slots = 0; in receive_rcom_status() local
251 num_slots = ls->ls_num_slots; in receive_rcom_status()
253 len += num_slots * sizeof(struct rcom_slot); in receive_rcom_status()
265 set_rcom_config(ls, (struct rcom_config *)rc->rc_buf, num_slots); in receive_rcom_status()
267 if (!num_slots) in receive_rcom_status()
271 if (ls->ls_num_slots != num_slots) { in receive_rcom_status()
274 num_slots, ls->ls_num_slots); in receive_rcom_status()
Dmember.h26 int dlm_slots_assign(struct dlm_ls *ls, int *num_slots, int *slots_size,
/linux-6.6.21/drivers/iio/adc/
Dad_sigma_delta.c351 if (sigma_delta->num_slots == 1) { in ad_sd_buffer_postenable()
528 return bitmap_weight(mask, indio_dev->masklength) <= sigma_delta->num_slots; in ad_sd_validate_scan_mask()
621 sigma_delta->slots = devm_kcalloc(dev, sigma_delta->num_slots, in devm_ad_sd_setup_buffer_and_trigger()
654 if (!info->num_slots) in ad_sd_init()
655 sigma_delta->num_slots = 1; in ad_sd_init()
657 sigma_delta->num_slots = info->num_slots; in ad_sd_init()
659 if (sigma_delta->num_slots > 1) { in ad_sd_init()
/linux-6.6.21/drivers/gpu/drm/omapdrm/
Dtcm-sita.c154 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-6.6.21/drivers/pci/hotplug/
Dshpchp_hpc.c546 for (i = 0; i < ctrl->num_slots; i++) { in hpc_release_ctlr()
793 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_isr()
898 int rc = -1, num_slots = 0; in shpc_init() local
931 num_slots = tempdword & SLOT_NUM; in shpc_init()
932 ctrl_dbg(ctrl, " num_slots (indirect) %x\n", num_slots); in shpc_init()
934 for (i = 0; i < 9 + num_slots; i++) { in shpc_init()
946 ctrl->mmio_size = 0x24 + 0x4 * num_slots; in shpc_init()
986 ctrl->num_slots = slot_config & SLOT_NUM; in shpc_init()
1003 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_init()
1047 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_init()
/linux-6.6.21/drivers/gpu/drm/nouveau/nvif/
Doutp.c30 u8 start_slot, u8 num_slots, u16 pbn, u16 aligned_pbn) in nvif_outp_dp_mst_vcpi() argument
38 args.num_slots = num_slots; in nvif_outp_dp_mst_vcpi()
45 args.head, args.start_slot, args.num_slots, args.pbn, args.aligned_pbn); in nvif_outp_dp_mst_vcpi()
/linux-6.6.21/include/linux/input/
Dmt.h45 int num_slots; member
76 int input_mt_init_slots(struct input_dev *dev, unsigned int num_slots,
/linux-6.6.21/drivers/gpu/host1x/
Dcdma.c340 if (job->num_slots) { in update_cdma_locked()
343 host1x_pushbuffer_pop(pb, job->num_slots); in update_cdma_locked()
432 job->num_slots); in host1x_cdma_update_sync_queue()
450 for (i = 0; i < job->num_slots; i++) { in host1x_cdma_update_sync_queue()
470 unsigned int next_job = (job->first_get/8 + job->num_slots) in host1x_cdma_update_sync_queue()
675 job->num_slots = cdma->slots_used; in host1x_cdma_end()
/linux-6.6.21/drivers/pci/controller/dwc/
Dpcie-kirin.c84 int num_slots; member
411 i = pcie->num_slots; in kirin_pcie_parse_port()
418 pcie->num_slots++; in kirin_pcie_parse_port()
419 if (pcie->num_slots > MAX_PCI_SLOTS) { in kirin_pcie_parse_port()
554 if (!kirin_pcie->num_slots) in kirin_pcie_add_bus()
558 for (i = 0; i < kirin_pcie->num_slots; i++) { in kirin_pcie_add_bus()
634 for (i = 0; i < kirin_pcie->num_slots; i++) { in kirin_pcie_gpio_request()
/linux-6.6.21/arch/sparc/kernel/
Dcentral.c23 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-6.6.21/include/linux/iio/adc/
Dad_sigma_delta.h64 unsigned int num_slots; member
91 unsigned int num_slots; member
/linux-6.6.21/drivers/gpu/host1x/hw/
Ddebug_hw.c203 job->num_slots, job->num_unpins); in show_channel_gathers()
205 show_gather(o, pb->dma + job->first_get, job->num_slots * 2, cdma, in show_channel_gathers()
/linux-6.6.21/drivers/mmc/host/
Dmmc_hsq.h21 int num_slots; member
Dsdhci-pci-core.c53 for (i = 0; i < chip->num_slots; i++) { in sdhci_pci_init_wakeup()
77 for (i = 0; i < chip->num_slots; i++) { in sdhci_pci_suspend_host()
110 for (i = 0; i < chip->num_slots; i++) { in sdhci_pci_resume_host()
155 for (i = 0; i < chip->num_slots; i++) { in sdhci_pci_runtime_suspend_host()
184 for (i = 0; i < chip->num_slots; i++) { in sdhci_pci_runtime_resume_host()
354 chip->num_slots = 1; in mrst_hc_probe()
1485 for (i = 0; i < chip->num_slots; i++) in jmicron_suspend()
1498 for (i = 0; i < chip->num_slots; i++) in jmicron_resume()
2237 chip->num_slots = slots; in sdhci_pci_probe()
2249 slots = chip->num_slots; /* Quirk may have changed this */ in sdhci_pci_probe()
[all …]
Dmmc_hsq.c328 hsq->num_slots = HSQ_NUM_SLOTS; in mmc_hsq_init()
332 hsq->slot = devm_kcalloc(mmc_dev(mmc), hsq->num_slots, in mmc_hsq_init()
/linux-6.6.21/drivers/gpu/drm/nouveau/include/nvif/
Doutp.h33 u8 start_slot, u8 num_slots, u16 pbn, u16 aligned_pbn);
Dif0012.h118 __u8 num_slots; member
/linux-6.6.21/drivers/dma/ti/
Dedma.c240 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-6.6.21/arch/parisc/include/asm/
Deisa_eeprom.h24 u_int8_t num_slots; /* number of EISA slots in system */ member

1234