Home
last modified time | relevance | path

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

12

/drivers/input/
Dinput-mt.c38 int input_mt_init_slots(struct input_dev *dev, unsigned int num_slots, in input_mt_init_slots() argument
44 if (!num_slots) in input_mt_init_slots()
47 return mt->num_slots != num_slots ? -EINVAL : 0; in input_mt_init_slots()
49 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots()
53 mt->num_slots = num_slots; in input_mt_init_slots()
55 input_set_abs_params(dev, ABS_MT_SLOT, 0, num_slots - 1, 0, 0); in input_mt_init_slots()
69 if (num_slots >= 3) in input_mt_init_slots()
71 if (num_slots >= 4) in input_mt_init_slots()
73 if (num_slots >= 5) in input_mt_init_slots()
82 unsigned int n2 = num_slots * num_slots; in input_mt_init_slots()
[all …]
/drivers/infiniband/sw/rxe/
Drxe_queue.c85 unsigned int num_slots; in rxe_queue_init() local
107 num_slots = *num_elem + 1; in rxe_queue_init()
108 num_slots = roundup_pow_of_two(num_slots); in rxe_queue_init()
109 q->index_mask = num_slots - 1; in rxe_queue_init()
111 buf_size = sizeof(struct rxe_queue_buf) + num_slots * elem_size; in rxe_queue_init()
122 *num_elem = num_slots - 1; in rxe_queue_init()
/drivers/pci/hotplug/
Dshpchp_hpc.c568 for (i = 0; i < ctrl->num_slots; i++) { in hpc_release_ctlr()
815 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_isr()
921 int rc = -1, num_slots = 0; in shpc_init() local
954 num_slots = tempdword & SLOT_NUM; in shpc_init()
955 ctrl_dbg(ctrl, " num_slots (indirect) %x\n", num_slots); in shpc_init()
957 for (i = 0; i < 9 + num_slots; i++) { in shpc_init()
969 ctrl->mmio_size = 0x24 + 0x4 * num_slots; in shpc_init()
1009 ctrl->num_slots = slot_config & SLOT_NUM; in shpc_init()
1026 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_init()
1070 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_init()
/drivers/gpu/drm/omapdrm/
Dtcm-sita.c162 static s32 sita_reserve_1d(struct tcm *tcm, u32 num_slots, in sita_reserve_1d() argument
169 ret = r2l_b2t_1d(num_slots, &pos, tcm->bitmap, tcm->map_size); in sita_reserve_1d()
173 area->p1.x = (pos + num_slots - 1) % tcm->width; in sita_reserve_1d()
174 area->p1.y = (pos + num_slots - 1) / tcm->width; in sita_reserve_1d()
/drivers/gpu/drm/
Ddrm_dp_mst_topology.c2423 if (vcpi->num_slots) { in drm_dp_update_payload_part1()
2433 req_payload.num_slots = vcpi->num_slots; in drm_dp_update_payload_part1()
2437 req_payload.num_slots = 0; in drm_dp_update_payload_part1()
2442 if (payload->num_slots != req_payload.num_slots) { in drm_dp_update_payload_part1()
2445 if (req_payload.num_slots) { in drm_dp_update_payload_part1()
2448 payload->num_slots = req_payload.num_slots; in drm_dp_update_payload_part1()
2451 } else if (payload->num_slots) { in drm_dp_update_payload_part1()
2452 payload->num_slots = 0; in drm_dp_update_payload_part1()
2462 cur_slots += req_payload.num_slots; in drm_dp_update_payload_part1()
2480 mgr->proposed_vcpis[j]->num_slots) { in drm_dp_update_payload_part1()
[all …]
/drivers/gpu/host1x/
Dcdma.c347 if (job->num_slots) { in update_cdma_locked()
350 host1x_pushbuffer_pop(pb, job->num_slots); in update_cdma_locked()
436 job->num_slots); in host1x_cdma_update_sync_queue()
615 job->num_slots = cdma->slots_used; in host1x_cdma_end()
/drivers/staging/wusbcore/
Dwusbhc.c175 uint8_t num_slots, interval; in wusb_dnts_store() local
178 result = sscanf(buf, "%hhu %hhu", &num_slots, &interval); in wusb_dnts_store()
183 wusbhc->dnts_num_slots = num_slots; in wusb_dnts_store()
/drivers/mmc/host/
Dsdhci-pci-core.c50 for (i = 0; i < chip->num_slots; i++) { in sdhci_pci_init_wakeup()
74 for (i = 0; i < chip->num_slots; i++) { in sdhci_pci_suspend_host()
107 for (i = 0; i < chip->num_slots; i++) { in sdhci_pci_resume_host()
152 for (i = 0; i < chip->num_slots; i++) { in sdhci_pci_runtime_suspend_host()
181 for (i = 0; i < chip->num_slots; i++) { in sdhci_pci_runtime_resume_host()
332 chip->num_slots = 1; in mrst_hc_probe()
1334 for (i = 0; i < chip->num_slots; i++) in jmicron_suspend()
1347 for (i = 0; i < chip->num_slots; i++) in jmicron_resume()
2132 chip->num_slots = slots; in sdhci_pci_probe()
2144 slots = chip->num_slots; /* Quirk may have changed this */ in sdhci_pci_probe()
[all …]
Dcqhci.c193 cq_host->desc_size = cq_host->slot_sz * cq_host->num_slots; in cqhci_host_alloc_tdl()
233 for (; i < (cq_host->num_slots); i++) in cqhci_host_alloc_tdl()
778 for_each_set_bit(tag, &comp_status, cq_host->num_slots) { in cqhci_irq()
985 for (i = 0; i < cq_host->num_slots; i++) in cqhci_recover_mrqs()
1117 cq_host->num_slots = NUM_SLOTS; in cqhci_init()
1126 cq_host->slot = devm_kcalloc(mmc_dev(mmc), cq_host->num_slots, in cqhci_init()
Dsdhci-pci.h179 int num_slots; /* Slots on controller */ member
Dcqhci.h158 int num_slots; member
/drivers/dma/ti/
Dedma.c249 unsigned num_slots; member
468 if (slot >= ecc->num_slots) in edma_write_slot()
477 if (slot >= ecc->num_slots) in edma_read_slot()
515 ecc->num_slots, in edma_alloc_slot()
517 if (slot == ecc->num_slots) in edma_alloc_slot()
522 } else if (slot >= ecc->num_slots) { in edma_alloc_slot()
536 if (slot >= ecc->num_slots) in edma_free_slot()
558 if (from >= ecc->num_slots || to >= ecc->num_slots) in edma_link()
2004 ecc->num_slots = BIT(value + 4); in edma_setup_from_hw()
2015 dev_dbg(dev, "num_slots: %u\n", ecc->num_slots); in edma_setup_from_hw()
[all …]
/drivers/i3c/
Dmaster.c1836 ibireq.num_slots = olddev->ibi->num_slots; in i3c_master_add_i3c_dev_locked()
2221 unsigned int num_slots; member
2250 WARN_ON(nslots != pool->num_slots); in i3c_generic_ibi_free_pool()
2284 pool->slots = kcalloc(req->num_slots, sizeof(*slot), GFP_KERNEL); in i3c_generic_ibi_alloc_pool()
2291 pool->payload_buf = kcalloc(req->num_slots, in i3c_generic_ibi_alloc_pool()
2299 for (i = 0; i < req->num_slots; i++) { in i3c_generic_ibi_alloc_pool()
2308 pool->num_slots++; in i3c_generic_ibi_alloc_pool()
2614 ibi->num_slots = req->num_slots; in i3c_dev_request_ibi_locked()
Ddevice.c144 if (!req->handler || !req->num_slots) in i3c_device_request_ibi()
/drivers/gpu/drm/nouveau/include/nvif/
Dcl5070.h95 __u8 num_slots; member
/drivers/parisc/
Deisa_enumerator.c494 for (i=0;i<eh->num_slots;i++) { in eisa_enumerator()
514 return eh->num_slots; in eisa_enumerator()
/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Drootnv50.c256 args->v0.num_slots, args->v0.pbn, in nv50_disp_root_mthd_()
262 args->v0.num_slots, in nv50_disp_root_mthd_()
/drivers/dma/
Diop-adma.c256 iop_adma_alloc_slots(struct iop_adma_chan *iop_chan, int num_slots, in iop_adma_alloc_slots() argument
301 if (slots_found == num_slots) { in iop_adma_alloc_slots()
305 while (num_slots) { in iop_adma_alloc_slots()
314 if (num_slots != slots_per_op) in iop_adma_alloc_slots()
320 iter->slot_cnt = num_slots; in iop_adma_alloc_slots()
329 num_slots -= slots_per_op; in iop_adma_alloc_slots()
Diop-adma.h285 int num_slots) in iop_desc_is_aligned() argument
288 return (desc->idx & (num_slots - 1)) ? 0 : 1; in iop_desc_is_aligned()
/drivers/i3c/master/
Di3c-master-cdns.c397 unsigned int num_slots; member
1289 if (id >= master->ibi.num_slots || (ibir & IBIR_ERROR)) in cdns_i3c_master_handle_ibi()
1454 for (i = 0; i < master->ibi.num_slots; i++) { in cdns_i3c_master_request_ibi()
1463 if (i < master->ibi.num_slots) in cdns_i3c_master_request_ibi()
1592 master->ibi.num_slots = CONF_STATUS1_IBI_HW_RES(val); in cdns_i3c_master_probe()
1593 master->ibi.slots = devm_kcalloc(&pdev->dev, master->ibi.num_slots, in cdns_i3c_master_probe()
/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_helpers.c148 if (mst_mgr->payloads[i].num_slots == 0) in get_payload_table()
162 sa->slot_count = mst_mgr->payloads[i].num_slots; in get_payload_table()
/drivers/net/ethernet/ibm/
Dibmveth.h126 u64 num_slots; member
/drivers/gpu/host1x/hw/
Ddebug_hw.c203 job->num_slots, job->num_unpins); in show_channel_gathers()
/drivers/misc/cardreader/
Drts5209.c249 pcr->num_slots = 2; in rts5209_init_params()
Drts5229.c240 pcr->num_slots = 2; in rts5229_init_params()

12