/kernel/linux/linux-6.6/tools/testing/selftests/kvm/ |
H A D | memslot_perf_test.c | 87 uint32_t nslots; member 199 slot = min(gpage / data->pages_per_slot, (uint64_t)data->nslots - 1); in vm_gpa2hva() 205 if (slot == data->nslots - 1) in vm_gpa2hva() 223 TEST_ASSERT(slot < data->nslots, "Too high slot number"); in vm_slot2gpa() 265 slots = data->nslots; in get_max_slots() 280 static bool prepare_vm(struct vm_data *data, int nslots, uint64_t *maxslots, in prepare_vm() argument 299 data->nslots = nslots; in prepare_vm() 300 data->pages_per_slot = data->npages / data->nslots; in prepare_vm() 301 rempages = data->npages % data->nslots; in prepare_vm() 791 test_execute(int nslots, uint64_t *maxslots, unsigned int maxtime, const struct test_data *tdata, uint64_t *nloops, struct timespec *slot_runtime, struct timespec *guest_runtime) test_execute() argument 885 int nslots; global() member [all...] |
/kernel/linux/linux-5.10/kernel/dma/ |
H A D | swiotlb.c | 498 unsigned int nslots = nr_slots(alloc_size), stride; in find_slots() local 502 BUG_ON(!nslots); in find_slots() 514 if (unlikely(nslots > io_tlb_nslabs - io_tlb_used)) in find_slots() 526 * If we find a slot that indicates we have 'nslots' number of in find_slots() 530 if (!iommu_is_span_boundary(index, nslots, in find_slots() 533 if (io_tlb_list[index] >= nslots) in find_slots() 544 for (i = index; i < index + nslots; i++) in find_slots() 554 if (index + nslots < io_tlb_nslabs) in find_slots() 555 io_tlb_index = index + nslots; in find_slots() 558 io_tlb_used += nslots; in find_slots() 623 int i, count, nslots = nr_slots(alloc_size + offset); swiotlb_tbl_unmap_single() local [all...] |
/kernel/linux/linux-6.6/kernel/dma/ |
H A D | swiotlb.c | 167 * @nslots: Total number of slots in the memory pool. 174 static unsigned int limit_nareas(unsigned int nareas, unsigned long nslots) in limit_nareas() argument 176 if (nslots < nareas * IO_TLB_SEGSIZE) in limit_nareas() 177 return nslots / IO_TLB_SEGSIZE; in limit_nareas() 932 static void inc_used_and_hiwater(struct io_tlb_mem *mem, unsigned int nslots) in inc_used_and_hiwater() argument 936 new_used = atomic_long_add_return(nslots, &mem->total_used); in inc_used_and_hiwater() 945 static void dec_used(struct io_tlb_mem *mem, unsigned int nslots) in dec_used() argument 947 atomic_long_sub(nslots, &mem->total_used); in dec_used() 951 static void inc_used_and_hiwater(struct io_tlb_mem *mem, unsigned int nslots) in inc_used_and_hiwater() argument 954 static void dec_used(struct io_tlb_mem *mem, unsigned int nslots) in dec_used() argument 986 unsigned int nslots = nr_slots(alloc_size), stride; swiotlb_area_find_slots() local 1328 int nslots = nr_slots(mem->slots[index].alloc_size + offset); swiotlb_release_slots() local [all...] |
/kernel/linux/linux-5.10/drivers/dma/ti/ |
H A 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; in edma_prep_slave_sg() 1166 int ret, nslots; edma_prep_dma_memcpy() local 1365 int i, ret, nslots; edma_prep_dma_cyclic() local [all...] |
/kernel/linux/linux-6.6/drivers/dma/ti/ |
H A D | edma.c | 724 int i, j, left, nslots; in edma_execute() local 739 nslots = min(MAX_NR_SG, left); in edma_execute() 743 for (i = 0; i < nslots; i++) { in edma_execute() 769 if (i != (nslots - 1)) in edma_execute() 773 edesc->processed += nslots; in edma_execute() 782 edma_link(ecc, echan->slot[nslots - 1], echan->slot[1]); in edma_execute() 784 edma_link(ecc, echan->slot[nslots - 1], in edma_execute() 1021 int i, nslots, ret; in edma_prep_slave_sg() local 1054 nslots = min_t(unsigned, MAX_NR_SG, sg_len); in edma_prep_slave_sg() 1056 for (i = 0; i < nslots; in edma_prep_slave_sg() 1109 int ret, nslots; edma_prep_dma_memcpy() local 1308 int i, ret, nslots; edma_prep_dma_cyclic() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
H A 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()
|
H A 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/ |
H A 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()
|
H A 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()
|
/kernel/linux/linux-5.10/drivers/ide/ |
H A D | ide-cd.c | 1292 static int ide_cdrom_register(ide_drive_t *drive, int nslots) in ide_cdrom_register() argument 1297 ide_debug_log(IDE_DBG_PROBE, "nslots: %d", nslots); in ide_cdrom_register() 1301 devinfo->capacity = nslots; in ide_cdrom_register() 1317 int nslots = 1; in ide_cdrom_probe_capabilities() local 1330 return nslots; in ide_cdrom_probe_capabilities() 1336 return nslots; in ide_cdrom_probe_capabilities() 1376 nslots = 3; in ide_cdrom_probe_capabilities() 1379 nslots = cdrom_number_of_slots(cdi); in ide_cdrom_probe_capabilities() 1380 if (nslots > in ide_cdrom_probe_capabilities() 1520 int nslots; ide_cdrom_setup() local [all...] |
/kernel/linux/linux-6.6/drivers/virtio/ |
H A 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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76x02_beacon.c | 16 for (i = 0; i < dev->beacon_ops->nslots; i++) { in mt76x02_set_beacon_offsets()
|
H A D | mt76x02_usb_core.c | 250 .nslots = N_BCN_SLOTS, in mt76x02u_init_beacon_config()
|
H A D | mt76x02.h | 64 unsigned int nslots; member
|
H A D | mt76x02_mmio.c | 87 .nslots = 8, in mt76x02e_init_beacon_config()
|
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76x02_beacon.c | 16 for (i = 0; i < dev->beacon_ops->nslots; i++) { in mt76x02_set_beacon_offsets()
|
H A D | mt76x02.h | 64 unsigned int nslots; member
|
H A D | mt76x02_usb_core.c | 256 .nslots = N_BCN_SLOTS, in mt76x02u_init_beacon_config()
|
H A D | mt76x02_mmio.c | 88 .nslots = 8, in mt76x02e_init_beacon_config()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | cdrom.h | 153 __u8 nslots; member
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | cdrom.h | 155 __u8 nslots; member
|
/kernel/linux/linux-5.10/drivers/i3c/ |
H A D | master.c | 2299 unsigned int nslots = 0; in i3c_generic_ibi_free_pool() local 2305 nslots++; in i3c_generic_ibi_free_pool() 2312 WARN_ON(nslots != pool->num_slots); in i3c_generic_ibi_free_pool()
|
/kernel/linux/linux-5.10/drivers/cdrom/ |
H A 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()
|
/kernel/linux/linux-6.6/drivers/cdrom/ |
H A D | cdrom.c | 1297 buf->hdr.nslots = 3; in cdrom_read_mech_status() 1347 int nslots = 1; in cdrom_number_of_slots() local 1359 nslots = info->hdr.nslots; in cdrom_number_of_slots() 1362 return nslots; in cdrom_number_of_slots()
|
/kernel/linux/linux-6.6/drivers/i3c/ |
H A D | master.c | 2430 unsigned int nslots = 0; in i3c_generic_ibi_free_pool() local 2436 nslots++; in i3c_generic_ibi_free_pool() 2443 WARN_ON(nslots != pool->num_slots); in i3c_generic_ibi_free_pool()
|