Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/kvm/
H A Dmemslot_perf_test.c87 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()
308 data->hva_slots = malloc(sizeof(*data->hva_slots) * data->nslots); in prepare_vm()
[all …]
/openbmc/qemu/hw/pci/
H A Dshpc.c112 #define SHPC_SIZEOF(d) SHPC_SLOT_REG((d)->shpc->nslots)
181 for (slot = 0; slot < shpc->nslots; ++slot) { in shpc_interrupt_update()
218 int nslots = shpc->nslots; in shpc_reset() local
221 pci_set_byte(shpc->config + SHPC_NSLOTS, nslots); in shpc_reset()
222 pci_set_long(shpc->config + SHPC_SLOTS_33, nslots); in shpc_reset()
236 for (i = 0; i < shpc->nslots; ++i) { in shpc_reset()
304 if (target < SHPC_CMD_TRGT_MIN || slot >= shpc->nslots) { in shpc_slot_command()
396 for (i = 0; i < shpc->nslots; ++i) { in shpc_command()
403 for (i = 0; i < shpc->nslots; ++i) { in shpc_command()
417 for (i = 0; i < shpc->nslots; ++i) { in shpc_command()
[all …]
H A Dslotid_cap.c10 int slotid_cap_init(PCIDevice *d, int nslots, in slotid_cap_init() argument
22 if (nslots < 0 || nslots > (PCI_SID_ESR_NSLOTS >> SLOTID_NSLOTS_SHIFT)) { in slotid_cap_init()
34 (nslots << SLOTID_NSLOTS_SHIFT); in slotid_cap_init()
/openbmc/linux/kernel/dma/
H A Dswiotlb.c177 static unsigned int limit_nareas(unsigned int nareas, unsigned long nslots) in limit_nareas() argument
179 if (nslots < nareas * IO_TLB_SEGSIZE) in limit_nareas()
180 return nslots / IO_TLB_SEGSIZE; in limit_nareas()
954 static void inc_used_and_hiwater(struct io_tlb_mem *mem, unsigned int nslots) in inc_used_and_hiwater() argument
958 new_used = atomic_long_add_return(nslots, &mem->total_used); in inc_used_and_hiwater()
967 static void dec_used(struct io_tlb_mem *mem, unsigned int nslots) in dec_used() argument
969 atomic_long_sub(nslots, &mem->total_used); in dec_used()
973 static void inc_used_and_hiwater(struct io_tlb_mem *mem, unsigned int nslots) in inc_used_and_hiwater() argument
976 static void dec_used(struct io_tlb_mem *mem, unsigned int nslots) in dec_used() argument
1007 unsigned int nslots = nr_slots(alloc_size), stride; in swiotlb_area_find_slots() local
[all …]
/openbmc/linux/drivers/dma/ti/
H A Dedma.c723 int i, j, left, nslots; in edma_execute() local
738 nslots = min(MAX_NR_SG, left); in edma_execute()
742 for (i = 0; i < nslots; i++) { in edma_execute()
768 if (i != (nslots - 1)) in edma_execute()
772 edesc->processed += nslots; in edma_execute()
781 edma_link(ecc, echan->slot[nslots - 1], echan->slot[1]); in edma_execute()
783 edma_link(ecc, echan->slot[nslots - 1], in edma_execute()
1020 int i, nslots, ret; in edma_prep_slave_sg() local
1053 nslots = min_t(unsigned, MAX_NR_SG, sg_len); in edma_prep_slave_sg()
1055 for (i = 0; i < nslots; i++) { in edma_prep_slave_sg()
[all …]
/openbmc/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()
/openbmc/qemu/include/hw/pci/
H A Dslotid_cap.h5 int slotid_cap_init(PCIDevice *dev, int nslots,
H A Dshpc.h14 int nslots; member
/openbmc/linux/drivers/virtio/
H A Dvirtio_input.c223 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()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_beacon.c16 for (i = 0; i < dev->beacon_ops->nslots; i++) { in mt76x02_set_beacon_offsets()
H A Dmt76x02_usb_core.c256 .nslots = N_BCN_SLOTS, in mt76x02u_init_beacon_config()
H A Dmt76x02.h64 unsigned int nslots; member
H A Dmt76x02_mmio.c88 .nslots = 8, in mt76x02e_init_beacon_config()
/openbmc/linux/include/linux/
H A Dcdrom.h155 __u8 nslots; member
/openbmc/linux/drivers/cdrom/
H A Dcdrom.c1297 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()
/openbmc/linux/drivers/i3c/
H A Dmaster.c2600 unsigned int nslots = 0; in i3c_generic_ibi_free_pool() local
2606 nslots++; in i3c_generic_ibi_free_pool()
2613 WARN_ON(nslots != pool->num_slots); in i3c_generic_ibi_free_pool()