Home
last modified time | relevance | path

Searched refs:sort (Results 1 – 25 of 40) sorted by relevance

12

/drivers/net/wireless/ath/ath9k/
Dcalib.c27 int16_t sort[ATH9K_NF_CAL_HIST_MAX]; in ath9k_hw_get_nf_hist_mid() local
31 sort[i] = nfCalBuffer[i]; in ath9k_hw_get_nf_hist_mid()
35 if (sort[j] > sort[j - 1]) { in ath9k_hw_get_nf_hist_mid()
36 nfval = sort[j]; in ath9k_hw_get_nf_hist_mid()
37 sort[j] = sort[j - 1]; in ath9k_hw_get_nf_hist_mid()
38 sort[j - 1] = nfval; in ath9k_hw_get_nf_hist_mid()
42 nfval = sort[(ATH9K_NF_CAL_HIST_MAX - 1) >> 1]; in ath9k_hw_get_nf_hist_mid()
/drivers/net/ethernet/mellanox/mlx4/
Dqp.c797 int sort[MLX4_NUM_QP_REGION]; in mlx4_init_qp_table() local
802 sort[i] = i; in mlx4_init_qp_table()
806 if (dev->caps.reserved_qps_cnt[sort[j]] > in mlx4_init_qp_table()
807 dev->caps.reserved_qps_cnt[sort[j - 1]]) in mlx4_init_qp_table()
808 swap(sort[j], sort[j - 1]); in mlx4_init_qp_table()
813 last_base -= dev->caps.reserved_qps_cnt[sort[i]]; in mlx4_init_qp_table()
814 dev->caps.reserved_qps_base[sort[i]] = last_base; in mlx4_init_qp_table()
816 dev->caps.reserved_qps_cnt[sort[i]]; in mlx4_init_qp_table()
/drivers/power/supply/
Dtwl4030_madc_battery.c222 sort(pdata->charging, pdata->charging_size, in twl4030_madc_battery_probe()
225 sort(pdata->discharging, pdata->discharging_size, in twl4030_madc_battery_probe()
/drivers/staging/xgifb/
DTODO8 - sort out dup ids with SiS driver
/drivers/net/wireless/ath/ath5k/
Dphy.c1568 s16 sort[ATH5K_NF_CAL_HIST_MAX]; in ath5k_hw_get_median_noise_floor() local
1572 memcpy(sort, ah->ah_nfcal_hist.nfval, sizeof(sort)); in ath5k_hw_get_median_noise_floor()
1575 if (sort[j] > sort[j - 1]) { in ath5k_hw_get_median_noise_floor()
1576 tmp = sort[j]; in ath5k_hw_get_median_noise_floor()
1577 sort[j] = sort[j - 1]; in ath5k_hw_get_median_noise_floor()
1578 sort[j - 1] = tmp; in ath5k_hw_get_median_noise_floor()
1584 "cal %d:%d\n", i, sort[i]); in ath5k_hw_get_median_noise_floor()
1586 return sort[(ATH5K_NF_CAL_HIST_MAX - 1) / 2]; in ath5k_hw_get_median_noise_floor()
/drivers/firmware/efi/
Dfake_mem.c130 sort(fake_mems, nr_fake_mem, sizeof(struct efi_mem_range), in setup_fake_mem()
/drivers/staging/ccree/
DTODO23 11. Sort out FIPS mode: bake tests into testmgr, sort out behaviour on error,
/drivers/firmware/efi/libstub/
DMakefile40 arm-deps-$(CONFIG_ARM64) += sort.c
Darm-stub.c354 sort(memory_map, map_size / desc_size, desc_size, cmp_mem_desc, in efi_get_virtmap()
/drivers/input/touchscreen/
Dti_am335x_tsc.c250 sort(yvals, creads, sizeof(unsigned int), in titsc_read_coordinates()
252 sort(xvals, creads, sizeof(unsigned int), in titsc_read_coordinates()
/drivers/sh/intc/
Dcore.c267 sort(d->prio, hw->nr_prio_regs, sizeof(*d->prio), in register_intc_controller()
280 sort(d->sense, hw->nr_sense_regs, sizeof(*d->sense), in register_intc_controller()
/drivers/gpu/drm/
Ddrm_blend.c343 sort(states, n, sizeof(*states), drm_atomic_state_zpos_cmp, NULL); in drm_atomic_helper_crtc_normalize_zpos()
/drivers/of/
Dof_reserved_mem.c235 sort(reserved_mem, reserved_mem_count, sizeof(reserved_mem[0]), in __rmem_check_for_overlap()
/drivers/acpi/
Dfan.c321 sort(fan->fps, fan->fps_count, sizeof(*fan->fps), in acpi_fan_get_fps()
/drivers/md/bcache/
Dsysfs.c541 sysfs_print_time_stats(&c->sort.time, btree_sort, ms, us); in SHOW()
818 sort(p, n, sizeof(uint16_t), cmp, NULL); in SHOW()
Dbcache.h626 struct bset_sort_state sort; member
Dbtree.c169 bch_btree_sort(&b->keys, &b->c->sort); in bch_btree_init_next()
171 bch_btree_sort_lazy(&b->keys, &b->c->sort); in bch_btree_init_next()
262 bch_btree_sort_and_fix_extents(&b->keys, iter, &b->c->sort); in bch_btree_node_read_done()
1124 bch_btree_sort_into(&b->keys, &n->keys, &b->c->sort); in btree_node_alloc_replacement()
/drivers/net/wireless/intersil/p54/
Deeprom.c395 sort(list->channels, list->entries, sizeof(struct p54_channel_entry), in p54_generate_channel_lists()
591 sort(entry, entries, sizeof(*entry), p54_compare_rssichan, NULL); in p54_parse_rssical()
/drivers/clk/tegra/
Dclk-emc.c459 sort(tegra->timings, tegra->num_timings, sizeof(struct emc_timing), in load_timings_from_dt()
/drivers/char/agp/
DKconfig12 as a sort of "AGP driver" for the motherboard's chipset.
/drivers/regulator/
Dvctrl-regulator.c369 sort(vctrl->vtable, rdesc->n_voltages, in vctrl_init_vtable()
/drivers/scsi/
Deata.c2060 static void sort(unsigned long sk[], unsigned int da[], unsigned int n, in sort() function
2165 sort(sl, il, n_ready, rev); in reorder()
2185 sort(pl, il, n_ready, 0); in reorder()
/drivers/net/wireless/intel/iwlwifi/mvm/
Dtt.c599 sort(cmd.thresholds, idx, sizeof(s16), compare_temps, NULL); in iwl_mvm_send_temp_report_ths_cmd()
/drivers/acpi/nfit/
Dcore.c1890 sort(&info->mapping[0], nr, sizeof(struct nfit_set_info_map), in acpi_nfit_init_interleave_set()
1895 sort(&info2->mapping[0], nr, sizeof(struct nfit_set_info_map2), in acpi_nfit_init_interleave_set()
1900 sort(&info->mapping[0], nr, sizeof(struct nfit_set_info_map), in acpi_nfit_init_interleave_set()
/drivers/memory/tegra/
Dtegra124-emc.c979 sort(emc->timings, emc->num_timings, sizeof(*timing), cmp_timings, in tegra_emc_load_timings_from_dt()

12