Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/kvm/
Dmax_guest_memory_test.c170 uint64_t max_gpa, gpa, slot_size, max_mem, i; in main() local
183 slot_size = 2 * size_1gb; in main()
204 slot_size = atoi(optarg) * size_1gb; in main()
205 TEST_ASSERT(slot_size > 0, "slot size must be >0"); in main()
223 TEST_ASSERT(max_gpa > (4 * slot_size), "MAXPHYADDR <4gb "); in main()
225 fd = kvm_memfd_alloc(slot_size, hugepages); in main()
226 mem = mmap(NULL, slot_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
229 TEST_ASSERT(!madvise(mem, slot_size, MADV_NOHUGEPAGE), "madvise() failed"); in main()
232 for (i = 0; i < slot_size; i += vm->page_size) in main()
237 gpa = start_gpa + ((slot - first_slot) * slot_size); in main()
[all …]
/linux-6.1.9/drivers/net/ethernet/litex/
Dlitex_liteeth.c44 u32 slot_size; member
78 memcpy_fromio(data, priv->rx_base + rx_slot * priv->slot_size, len); in liteeth_rx()
171 if (unlikely(skb->len > priv->slot_size)) { in liteeth_start_xmit()
182 txbuffer = priv->tx_base + priv->tx_slot * priv->slot_size; in liteeth_start_xmit()
220 err = of_property_read_u32(np, "litex,slot-size", &priv->slot_size); in liteeth_setup_slots()
223 priv->slot_size = 0x800; in liteeth_setup_slots()
265 priv->tx_base = buf_base + priv->num_rx_slots * priv->slot_size; in liteeth_probe()
281 netdev->irq, priv->num_tx_slots, priv->num_rx_slots, priv->slot_size); in liteeth_probe()
/linux-6.1.9/sound/soc/codecs/
Dtas2780.c157 int slot_size; in tas2780_set_bitwidth() local
165 slot_size = TAS2780_TDM_CFG2_RXS_16BITS; in tas2780_set_bitwidth()
172 slot_size = TAS2780_TDM_CFG2_RXS_24BITS; in tas2780_set_bitwidth()
179 slot_size = TAS2780_TDM_CFG2_RXS_32BITS; in tas2780_set_bitwidth()
193 TAS2780_TDM_CFG2_RXS_MASK, slot_size); in tas2780_set_bitwidth()
377 int slot_size; in tas2780_set_dai_tdm_slot() local
406 slot_size = TAS2780_TDM_CFG2_RXS_16BITS; in tas2780_set_dai_tdm_slot()
409 slot_size = TAS2780_TDM_CFG2_RXS_24BITS; in tas2780_set_dai_tdm_slot()
412 slot_size = TAS2780_TDM_CFG2_RXS_32BITS; in tas2780_set_dai_tdm_slot()
420 TAS2780_TDM_CFG2_RXS_MASK, slot_size); in tas2780_set_dai_tdm_slot()
Dtas2764.c435 int slot_size; in tas2764_set_dai_tdm_slot() local
461 slot_size = TAS2764_TDM_CFG2_RXS_16BITS; in tas2764_set_dai_tdm_slot()
464 slot_size = TAS2764_TDM_CFG2_RXS_24BITS; in tas2764_set_dai_tdm_slot()
467 slot_size = TAS2764_TDM_CFG2_RXS_32BITS; in tas2764_set_dai_tdm_slot()
475 slot_size); in tas2764_set_dai_tdm_slot()
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/
Dmt76x02_beacon.c17 val = i * dev->beacon_ops->slot_size; in mt76x02_set_beacon_offsets()
28 int beacon_len = dev->beacon_ops->slot_size; in mt76x02_write_beacon()
57 int bcn_len = dev->beacon_ops->slot_size; in mt76x02_mac_set_beacon()
Dmt76x02.h65 unsigned int slot_size; member
Dmt76x02_usb_core.c257 .slot_size = (8192 / N_BCN_SLOTS) & ~63, in mt76x02u_init_beacon_config()
Dmt76x02_mmio.c89 .slot_size = 1024, in mt76x02e_init_beacon_config()
/linux-6.1.9/drivers/tc/
Dtc.c36 resource_size_t slotsize = tbus->info.slot_size << 20; in tc_bus_add_devices()
162 if (tc_bus.info.slot_size) { in tc_init()
172 (tc_bus.info.slot_size << 20) * in tc_init()
/linux-6.1.9/include/linux/
Dtc.h53 s32 slot_size; /* Slot size in megabytes. */ member
/linux-6.1.9/drivers/hsi/clients/
Dcmt_speech.c107 unsigned int slot_size; member
888 hi->slot_size = L1_CACHE_ALIGN(hi->buf_size); in cs_hsi_data_enable()
891 hi->slot_size, hi->buf_size, L1_CACHE_BYTES); in cs_hsi_data_enable()
899 hi->rx_offsets[i] = data_start + i * hi->slot_size; in cs_hsi_data_enable()
906 (i + hi->mmap_cfg->rx_bufs) * hi->slot_size; in cs_hsi_data_enable()
957 hi->slot_size = 0; in cs_hsi_buf_config()
/linux-6.1.9/sound/soc/stm/
Dstm32_sai_sub.c596 int slotr, slotr_mask, slot_size; in stm32_sai_set_dai_tdm_slot() local
608 slot_size = SAI_SLOT_SIZE_16; in stm32_sai_set_dai_tdm_slot()
611 slot_size = SAI_SLOT_SIZE_32; in stm32_sai_set_dai_tdm_slot()
614 slot_size = SAI_SLOT_SIZE_AUTO; in stm32_sai_set_dai_tdm_slot()
618 slotr = SAI_XSLOTR_SLOTSZ_SET(slot_size) | in stm32_sai_set_dai_tdm_slot()
/linux-6.1.9/net/sched/
Dsch_qfq.c229 u64 slot_size = (u64)maxlen * inv_w; in qfq_calc_index() local
233 size_map = slot_size >> min_slot_shift; in qfq_calc_index()
238 index -= !(slot_size - (1ULL << (index + min_slot_shift - 1))); in qfq_calc_index()
/linux-6.1.9/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_core.h307 int slot_size; member
Dvchiq_core.c2142 slot_zero->slot_size = VCHIQ_SLOT_SIZE; in vchiq_init_slots()
/linux-6.1.9/drivers/media/platform/amphion/
Dvpu_malone.c218 u32 slot_size; member
632 iface->udata_buffer[instance].slot_size = params->udata.size; in vpu_malone_set_params()
/linux-6.1.9/drivers/net/wireless/ath/wil6210/
Dwmi.h1952 __le32 slot_size; member