Home
last modified time | relevance | path

Searched refs:total_slots (Results 1 - 13 of 13) sorted by relevance

/kernel/linux/linux-6.6/drivers/firmware/efi/libstub/
H A Drandomalloc.c62 unsigned long total_slots = 0, target_slot; in efi_random_alloc() local
85 total_slots += slots; in efi_random_alloc()
92 total_slots = total_mirrored_slots; in efi_random_alloc()
94 /* find a random number between 0 and total_slots */ in efi_random_alloc()
95 target_slot = (total_slots * (u64)(random_seed & U32_MAX)) >> 32; in efi_random_alloc()
98 * target_slot is now a value in the range [0, total_slots), and so in efi_random_alloc()
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/
H A Drandomalloc.c58 unsigned long total_slots = 0, target_slot; in efi_random_alloc() local
79 total_slots += slots; in efi_random_alloc()
82 /* find a random number between 0 and total_slots */ in efi_random_alloc()
83 target_slot = (total_slots * (u64)(random_seed & U32_MAX)) >> 32; in efi_random_alloc()
86 * target_slot is now a value in the range [0, total_slots), and so in efi_random_alloc()
/kernel/linux/linux-6.6/drivers/input/touchscreen/
H A Dexc3000.c147 int ret, total_slots; in exc3000_handle_mt_event() local
150 total_slots = buf[3]; in exc3000_handle_mt_event()
151 if (!total_slots || total_slots > EXC3000_NUM_SLOTS) { in exc3000_handle_mt_event()
156 if (total_slots > EXC3000_SLOTS_PER_FRAME) { in exc3000_handle_mt_event()
174 while (total_slots > 0) { in exc3000_handle_mt_event()
175 int slots = min(total_slots, EXC3000_SLOTS_PER_FRAME); in exc3000_handle_mt_event()
178 total_slots -= slots; in exc3000_handle_mt_event()
/kernel/linux/linux-5.10/drivers/input/touchscreen/
H A Dexc3000.c194 int slots, total_slots; in exc3000_interrupt() local
203 error = exc3000_read_data(data, buf, &total_slots); in exc3000_interrupt()
216 while (total_slots > 0) { in exc3000_interrupt()
217 slots = min(total_slots, EXC3000_SLOTS_PER_FRAME); in exc3000_interrupt()
219 total_slots -= slots; in exc3000_interrupt()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dstat-shadow.c673 double total_slots; in td_bad_spec() local
680 total_slots = td_total_slots(ctx, cpu, st); in td_bad_spec()
681 if (total_slots) in td_bad_spec()
682 bad_spec = total / total_slots; in td_bad_spec()
689 double total_slots = td_total_slots(ctx, cpu, st); in td_retiring() local
693 if (total_slots) in td_retiring()
694 retiring = ret_slots / total_slots; in td_retiring()
701 double total_slots = td_total_slots(ctx, cpu, st); in td_fe_bound() local
705 if (total_slots) in td_fe_bound()
706 fe_bound = fetch_bub / total_slots; in td_fe_bound()
[all...]
/kernel/linux/linux-5.10/drivers/md/
H A Dmd-cluster.h28 void (*load_bitmaps)(struct mddev *mddev, int total_slots);
H A Dmd-cluster.c798 static int gather_all_resync_info(struct mddev *mddev, int total_slots) in gather_all_resync_info() argument
807 for (i = 0; i < total_slots; i++) { in gather_all_resync_info()
966 static void load_bitmaps(struct mddev *mddev, int total_slots) in load_bitmaps() argument
971 if (gather_all_resync_info(mddev, total_slots)) in load_bitmaps()
/kernel/linux/linux-6.6/drivers/md/
H A Dmd-cluster.h28 void (*load_bitmaps)(struct mddev *mddev, int total_slots);
H A Dmd-cluster.c801 static int gather_all_resync_info(struct mddev *mddev, int total_slots) in gather_all_resync_info() argument
810 for (i = 0; i < total_slots; i++) { in gather_all_resync_info()
970 static void load_bitmaps(struct mddev *mddev, int total_slots) in load_bitmaps() argument
975 if (gather_all_resync_info(mddev, total_slots)) in load_bitmaps()
/kernel/linux/linux-5.10/sound/soc/ti/
H A Ddavinci-mcasp.c962 int total_slots; in mcasp_i2s_hw_param() local
967 total_slots = mcasp->tdm_slots; in mcasp_i2s_hw_param()
981 for (i = 0; i < total_slots; i++) { in mcasp_i2s_hw_param()
989 active_serializers = (channels + total_slots - 1) / total_slots; in mcasp_i2s_hw_param()
993 active_slots = total_slots; in mcasp_i2s_hw_param()
1008 FSXMOD(total_slots), FSXMOD(0x1FF)); in mcasp_i2s_hw_param()
1013 FSRMOD(total_slots), FSRMOD(0x1FF)); in mcasp_i2s_hw_param()
1021 FSXMOD(total_slots), FSXMOD(0x1FF)); in mcasp_i2s_hw_param()
/kernel/linux/linux-6.6/sound/soc/ti/
H A Ddavinci-mcasp.c990 int total_slots; in mcasp_i2s_hw_param() local
995 total_slots = mcasp->tdm_slots; in mcasp_i2s_hw_param()
1008 for (i = 0; i < total_slots; i++) { in mcasp_i2s_hw_param()
1016 active_serializers = DIV_ROUND_UP(channels, total_slots); in mcasp_i2s_hw_param()
1020 active_slots = total_slots; in mcasp_i2s_hw_param()
1035 FSXMOD(total_slots), FSXMOD(0x1FF)); in mcasp_i2s_hw_param()
1040 FSRMOD(total_slots), FSRMOD(0x1FF)); in mcasp_i2s_hw_param()
1048 FSXMOD(total_slots), FSXMOD(0x1FF)); in mcasp_i2s_hw_param()
/kernel/linux/linux-5.10/sound/soc/tegra/
H A Dtegra210_i2s.c38 unsigned int total_slots, in tegra210_i2s_set_slot_ctrl()
42 regmap_write(regmap, TEGRA210_I2S_SLOT_CTRL, total_slots - 1); in tegra210_i2s_set_slot_ctrl()
37 tegra210_i2s_set_slot_ctrl(struct regmap *regmap, unsigned int total_slots, unsigned int tx_slot_mask, unsigned int rx_slot_mask) tegra210_i2s_set_slot_ctrl() argument
/kernel/linux/linux-6.6/sound/soc/tegra/
H A Dtegra210_i2s.c38 unsigned int total_slots, in tegra210_i2s_set_slot_ctrl()
42 regmap_write(regmap, TEGRA210_I2S_SLOT_CTRL, total_slots - 1); in tegra210_i2s_set_slot_ctrl()
37 tegra210_i2s_set_slot_ctrl(struct regmap *regmap, unsigned int total_slots, unsigned int tx_slot_mask, unsigned int rx_slot_mask) tegra210_i2s_set_slot_ctrl() argument

Completed in 16 milliseconds