| /Linux-v5.15/tools/testing/selftests/kvm/ |
| D | memslot_perf_test.c | 94 uint32_t nslots; member 195 slot = min(gpage / data->pages_per_slot, (uint64_t)data->nslots - 1); in vm_gpa2hva() 201 if (slot == data->nslots - 1) in vm_gpa2hva() 217 TEST_ASSERT(slot < data->nslots, "Too high slot number"); in vm_slot2gpa() 235 static bool prepare_vm(struct vm_data *data, int nslots, uint64_t *maxslots, in prepare_vm() argument 249 TEST_ASSERT(nslots > 1 || nslots == -1, in prepare_vm() 251 if (nslots != -1) in prepare_vm() 252 max_mem_slots = min(max_mem_slots, (uint32_t)nslots); in prepare_vm() 259 data->nslots = max_mem_slots - 1; in prepare_vm() 260 data->pages_per_slot = mempages / data->nslots; in prepare_vm() [all …]
|
| /Linux-v5.15/kernel/dma/ |
| D | swiotlb.c | 471 unsigned int nslots = nr_slots(alloc_size), stride; in swiotlb_find_slots() local 476 BUG_ON(!nslots); in swiotlb_find_slots() 488 if (unlikely(nslots > mem->nslabs - mem->used)) in swiotlb_find_slots() 505 if (!iommu_is_span_boundary(index, nslots, in swiotlb_find_slots() 508 if (mem->slots[index].list >= nslots) in swiotlb_find_slots() 519 for (i = index; i < index + nslots; i++) { in swiotlb_find_slots() 532 if (index + nslots < mem->nslabs) in swiotlb_find_slots() 533 mem->index = index + nslots; in swiotlb_find_slots() 536 mem->used += nslots; in swiotlb_find_slots() 593 int nslots = nr_slots(mem->slots[index].alloc_size + offset); in swiotlb_release_slots() local [all …]
|
| /Linux-v5.15/drivers/dma/ti/ |
| D | edma.c | 781 int i, j, left, nslots; in edma_execute() local 796 nslots = min(MAX_NR_SG, left); in edma_execute() 800 for (i = 0; i < nslots; i++) { in edma_execute() 826 if (i != (nslots - 1)) in edma_execute() 830 edesc->processed += nslots; in edma_execute() 839 edma_link(ecc, echan->slot[nslots - 1], echan->slot[1]); in edma_execute() 841 edma_link(ecc, echan->slot[nslots - 1], in edma_execute() 1078 int i, nslots, ret; in edma_prep_slave_sg() local 1111 nslots = min_t(unsigned, MAX_NR_SG, sg_len); in edma_prep_slave_sg() 1113 for (i = 0; i < nslots; i++) { in edma_prep_slave_sg() [all …]
|
| /Linux-v5.15/drivers/net/ethernet/chelsio/cxgb4/ |
| D | cxgb4_tc_u32.c | 361 u8 nslots; in cxgb4_delete_knode() local 405 nslots = 0; in cxgb4_delete_knode() 407 nslots++; in cxgb4_delete_knode() 410 nslots += 2; in cxgb4_delete_knode() 413 filter_id += nslots; in cxgb4_delete_knode()
|
| D | cxgb4_filter.c | 445 static bool cxgb4_filter_prio_in_range(struct tid_info *t, u32 idx, u8 nslots, in cxgb4_filter_prio_in_range() argument 535 prev_fe = &prev_tab[prev_ftid & ~(nslots - 1)]; in cxgb4_filter_prio_in_range()
|
| /Linux-v5.15/drivers/virtio/ |
| D | virtio_input.c | 223 int abs, err, nslots; in virtinput_probe() local 310 nslots = input_abs_get_max(vi->idev, ABS_MT_SLOT) + 1; in virtinput_probe() 311 err = input_mt_init_slots(vi->idev, nslots, 0); in virtinput_probe()
|
| /Linux-v5.15/drivers/net/wireless/mediatek/mt76/ |
| D | mt76x02_beacon.c | 16 for (i = 0; i < dev->beacon_ops->nslots; i++) { in mt76x02_set_beacon_offsets()
|
| D | mt76x02.h | 64 unsigned int nslots; member
|
| D | mt76x02_usb_core.c | 250 .nslots = N_BCN_SLOTS, in mt76x02u_init_beacon_config()
|
| D | mt76x02_mmio.c | 87 .nslots = 8, in mt76x02e_init_beacon_config()
|
| /Linux-v5.15/include/linux/ |
| D | cdrom.h | 155 __u8 nslots; member
|
| /Linux-v5.15/drivers/cdrom/ |
| D | cdrom.c | 1312 buf->hdr.nslots = 3; in cdrom_read_mech_status() 1363 int nslots = 1; in cdrom_number_of_slots() local 1375 nslots = info->hdr.nslots; in cdrom_number_of_slots() 1378 return nslots; in cdrom_number_of_slots()
|
| /Linux-v5.15/drivers/i3c/ |
| D | master.c | 2293 unsigned int nslots = 0; in i3c_generic_ibi_free_pool() local 2299 nslots++; in i3c_generic_ibi_free_pool() 2306 WARN_ON(nslots != pool->num_slots); in i3c_generic_ibi_free_pool()
|