Home
last modified time | relevance | path

Searched refs:nslots (Results 1 – 13 of 13) sorted by relevance

/linux/tools/testing/selftests/kvm/
H A Dmemslot_perf_test.c88 u32 nslots; member
204 slot = min(gpage / data->pages_per_slot, (u64)data->nslots - 1); in vm_gpa2hva()
210 if (slot == data->nslots - 1) in vm_gpa2hva()
228 TEST_ASSERT(slot < data->nslots, "Too high slot number"); in vm_slot2gpa()
270 slots = data->nslots; in get_max_slots()
285 static bool prepare_vm(struct vm_data *data, int nslots, u64 *maxslots, in prepare_vm()
304 data->nslots = nslots; in prepare_vm()
305 data->pages_per_slot = data->npages / data->nslots; in prepare_vm()
306 rempages = data->npages % data->nslots; in prepare_vm()
284 prepare_vm(struct vm_data * data,int nslots,u64 * maxslots,void * guest_code,u64 mem_size,struct timespec * slot_runtime) prepare_vm() argument
800 test_execute(int nslots,u64 * maxslots,unsigned int maxtime,const struct test_data * tdata,u64 * nloops,struct timespec * slot_runtime,struct timespec * guest_runtime) test_execute() argument
894 int nslots; global() member
[all...]
/linux/kernel/dma/
H A Dswiotlb.c176 static unsigned int limit_nareas(unsigned int nareas, unsigned long nslots) in limit_nareas() argument
178 if (nslots < nareas * IO_TLB_SEGSIZE) in limit_nareas()
179 return nslots / IO_TLB_SEGSIZE; in limit_nareas()
189 unsigned int nslots) in inc_used_and_hiwater_real() argument
193 new_used = atomic_long_add_return(nslots, &mem->total_used); in inc_used_and_hiwater_real()
202 static void dec_used_real(struct io_tlb_mem *mem, unsigned int nslots) in dec_used_real() argument
204 atomic_long_sub(nslots, &mem->total_used); in dec_used_real()
208 unsigned int nslots) in inc_used_and_hiwater_nop() argument
211 static void dec_used_nop(struct io_tlb_mem *mem, unsigned int nslots) in dec_used_nop() argument
219 unsigned int nslots) in inc_used_and_hiwater() argument
[all …]
/linux/drivers/dma/ti/
H A Dedma.c724 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; i++) { in edma_prep_slave_sg()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_u32.c361 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 Dcxgb4_filter.c445 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/drivers/virtio/
H A Dvirtio_input.c227 int abs, err, nslots; in virtinput_probe() local
314 nslots = input_abs_get_max(vi->idev, ABS_MT_SLOT) + 1; in virtinput_probe()
315 err = input_mt_init_slots(vi->idev, nslots, 0); in virtinput_probe()
/linux/include/linux/
H A Dcdrom.h155 __u8 nslots; member
/linux/kernel/bpf/
H A Dstates.c851 int i, nslots; in stack_arg_safe() local
853 nslots = max(old->out_stack_arg_cnt, cur->out_stack_arg_cnt); in stack_arg_safe()
854 for (i = 0; i < nslots; i++) { in stack_arg_safe()
H A Ddiagnostics.c1589 u32 nslots = state->allocated_stack / BPF_REG_SIZE; in reg_to_target() local
1609 end = (unsigned long)(state->stack + nslots); in reg_to_target()
1610 if (nslots && addr >= start && addr < end) { in reg_to_target()
H A Dverifier.c9553 int i, nslots = state->out_stack_arg_cnt; in invalidate_outgoing_stack_args() local
9555 for (i = 0; i < nslots; i++) { in invalidate_outgoing_stack_args()
/linux/net/xfrm/
H A Dxfrm_iptfs.c1478 const u32 nslots = xtfs->cfg.reorder_win_size + 1; in __reorder_future_shifts() local
1561 beyond = distance - (nslots - 1); in __reorder_future_shifts()
1603 xtfs->w_savedlen = nslots - 1; in __reorder_future_shifts()
1624 const u32 nslots = xtfs->cfg.reorder_win_size + 1; in iptfs_input_reorder() local
1640 else if ((inseq - wantseq) < nslots) in iptfs_input_reorder()
/linux/drivers/cdrom/
H A Dcdrom.c1316 buf->hdr.nslots = 3; in cdrom_read_mech_status()
1366 int nslots = 1; in cdrom_number_of_slots() local
1378 nslots = info->hdr.nslots; in cdrom_number_of_slots()
1381 return nslots; in cdrom_number_of_slots()
/linux/sound/soc/codecs/
H A Dcs42l43.c585 int *slots, unsigned int nslots) in cs42l43_mask_to_slots() argument
591 if (i == nslots) { in cs42l43_mask_to_slots()