Home
last modified time | relevance | path

Searched refs:slot_count (Results 1 – 21 of 21) sorted by relevance

/linux/drivers/md/dm-vdo/indexer/
H A Dopen-chapter.c58 static inline size_t slots_size(size_t slot_count) in slots_size() argument
60 return sizeof(struct open_chapter_zone_slot) * slot_count; in slots_size()
69 size_t slot_count = (1 << bits_per(capacity * LOAD_RATIO)); in uds_make_open_chapter() local
71 result = vdo_allocate_extended(struct open_chapter_zone, slot_count, in uds_make_open_chapter()
77 open_chapter->slot_count = slot_count; in uds_make_open_chapter()
96 memset(open_chapter->slots, 0, slots_size(open_chapter->slot_count)); in uds_reset_open_chapter()
103 unsigned int slot_count = open_chapter->slot_count; in probe_chapter_slots() local
104 unsigned int slot = uds_name_to_hash_slot(name, slot_count); in probe_chapter_slots()
131 slot = (slot + attempts++) % slot_count; in probe_chapter_slots()
H A Dhash-utils.h61 unsigned int slot_count) in uds_name_to_hash_slot() argument
63 return (unsigned int) (uds_extract_chapter_index_bytes(name) % slot_count); in uds_name_to_hash_slot()
H A Dopen-chapter.h41 unsigned int slot_count; member
/linux/drivers/i2c/
H A Di2c-smbus.c377 int n, slot_count = 0, dimm_count = 0; in i2c_register_spd() local
384 while ((handle = dmi_memdev_handle(slot_count)) != 0xffff) { in i2c_register_spd()
385 slot_count++; in i2c_register_spd()
420 slot_count = min(slot_count, 8); in i2c_register_spd()
457 for (n = 0; n < slot_count && dimm_count; n++) { in i2c_register_spd()
/linux/drivers/pci/hotplug/
H A Dibmphp_ebda.c63 static struct controller *alloc_ebda_hpc(u32 slot_count, u32 bus_count) in alloc_ebda_hpc() argument
73 slots = kcalloc(slot_count, sizeof(struct ebda_hpc_slot), GFP_KERNEL); in alloc_ebda_hpc()
116 debug("%s - slot_count = %x\n", __func__, ptr->slot_count); in print_bus_info()
197 for (index = 0; index < hpc_ptr->slot_count; index++) { in print_ebda_hpc()
721 hpc_ptr->slot_count = slot_num; in ebda_rsrc_controller()
748 bus_info_ptr1->slot_count += 1; in ebda_rsrc_controller()
761 bus_info_ptr2->slot_count += 1; in ebda_rsrc_controller()
842 for (index = 0; index < hpc_ptr->slot_count; index++) { in ebda_rsrc_controller()
H A Dibmphp_core.c97 u8 slot_count = 0; in get_max_slots() local
101 slot_count = max(slot_count, slot_cur->number); in get_max_slots()
103 return slot_count; in get_max_slots()
H A Dibmphp.h241 u8 slot_count; member
721 u8 slot_count; member
/linux/include/media/
H A Ddvb_ca_en50221.h133 int slot_count);
/linux/sound/soc/generic/
H A Dsimple-card-utils.c185 dai->tdm_width_map[i].slot_count = *p++; in simple_util_parse_tdm_width_map()
434 int slot_width, slot_count; in simple_set_tdm() local
441 slot_count = simple_dai->slots; in simple_set_tdm()
449 slot_count = simple_dai->tdm_width_map[i].slot_count; in simple_set_tdm()
457 slot_count, in simple_set_tdm()
/linux/drivers/virt/nitro_enclaves/
H A Dne_pci_dev.h269 u64 slot_count; member
/linux/drivers/gpu/drm/amd/display/dc/link/
H A Dlink_dpms.c1279 work_table[i].slot_count = proposed_table->stream_allocations[i].slot_count; in update_mst_stream_alloc_table()
1288 work_table[i].slot_count = in update_mst_stream_alloc_table()
1289 proposed_table->stream_allocations[i].slot_count; in update_mst_stream_alloc_table()
1403 link->mst_stream_alloc_table.stream_allocations[i].slot_count); in deallocate_mst_payload()
1483 link->mst_stream_alloc_table.stream_allocations[i].slot_count); in allocate_mst_payload()
1579 proposed_table->stream_allocations[0].slot_count = req_slot_count; in write_128b_132b_sst_payload_allocation_table()
1707 proposed_table.stream_allocations[0].slot_count); in update_sst_payload()
1806 link->mst_stream_alloc_table.stream_allocations[i].slot_count); in link_reduce_mst_payload()
1873 link->mst_stream_alloc_table.stream_allocations[i].slot_count); in link_increase_mst_payload()
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_helpers.c199 dc_alloc->slot_count = target_payload->time_slots; in fill_dc_mst_payload_table_from_drm()
207 dc_alloc->slot_count = 0; in fill_dc_mst_payload_table_from_drm()
218 if (dc_alloc->vcp_id > 0 && dc_alloc->slot_count > 0) { in fill_dc_mst_payload_table_from_drm()
220 sa->slot_count = dc_alloc->slot_count; in fill_dc_mst_payload_table_from_drm()
/linux/drivers/gpu/drm/panthor/
H A Dpanthor_mmu.h51 u32 slot_count);
H A Dpanthor_mmu.c2668 u32 slot_count) in panthor_vm_prepare_mapped_bos_resvs() argument
2673 ret = drm_gpuvm_prepare_vm(&vm->base, exec, slot_count); in panthor_vm_prepare_mapped_bos_resvs()
2677 return drm_gpuvm_prepare_objects(&vm->base, exec, slot_count); in panthor_vm_prepare_mapped_bos_resvs()
H A Dpanthor_sched.c492 u32 slot_count; member
3319 if (queue->profiling.seqno == queue->profiling.slot_count) in queue_run_job()
3527 queue->profiling.slot_count = in group_create_queue()
3532 queue->profiling.slot_count * in group_create_queue()
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_linecards.c1509 u8 slot_count; in mlxsw_linecards_init() local
1519 NULL, &slot_count); in mlxsw_linecards_init()
1520 if (!slot_count) in mlxsw_linecards_init()
1523 linecards = vzalloc(struct_size(linecards, linecards, slot_count)); in mlxsw_linecards_init()
1526 linecards->count = slot_count; in mlxsw_linecards_init()
/linux/drivers/gpu/drm/imagination/
H A Dpvr_device.h290 u32 slot_count; member
/linux/fs/btrfs/
H A Dioctl.c2921 u64 slot_count = 0; in btrfs_ioctl_space_info() local
2946 slot_count++; in btrfs_ioctl_space_info()
2954 slot_count++; in btrfs_ioctl_space_info()
2958 space_args.total_spaces = slot_count; in btrfs_ioctl_space_info()
2962 slot_count = min_t(u64, space_args.space_slots, slot_count); in btrfs_ioctl_space_info()
2964 alloc_size = sizeof(*dest) * slot_count; in btrfs_ioctl_space_info()
2982 if (!slot_count) in btrfs_ioctl_space_info()
3003 slot_count--; in btrfs_ioctl_space_info()
3005 if (!slot_count) in btrfs_ioctl_space_info()
3014 if (slot_count) { in btrfs_ioctl_space_info()
/linux/lib/
H A Dmaple_tree.c1645 unsigned char slot_count) in mab_middle_node() argument
1649 if (size >= 2 * slot_count) in mab_middle_node()
1652 if (!b_node->slot[split] && (size >= 2 * slot_count - 1)) in mab_middle_node()
1667 unsigned char split, unsigned char slot_count) in mab_no_null_split() argument
1674 if ((split < slot_count - 1) && in mab_no_null_split()
1697 unsigned char slot_count = mt_slots[bn->type]; in mab_calc_split() local
1712 if (unlikely(mab_middle_node(bn, split, slot_count))) { in mab_calc_split()
1720 split = mab_no_null_split(bn, split, slot_count); in mab_calc_split()
1723 *mid_split = mab_no_null_split(bn, *mid_split, slot_count); in mab_calc_split()
2161 unsigned char slot_count = mt_slots[b_node->type]; in mas_mab_to_node() local
[all …]
/linux/sound/soc/codecs/
H A Dcs35l45.c765 cs35l45->slot_count, slot_multiple); in cs35l45_asp_hw_params()
780 cs35l45->slot_count = slots; in cs35l45_asp_set_tdm_slot()
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddc_types.h1037 uint8_t slot_count; member