Home
last modified time | relevance | path

Searched refs:dev_num (Results 1 – 25 of 76) sorted by relevance

1234

/external/u-boot/drivers/ddr/marvell/a38x/
Dddr3_training.c92 static int ddr3_tip_ddr3_training_main_flow(u32 dev_num);
93 static int ddr3_tip_write_odt(u32 dev_num, enum hws_access_type access_type,
95 static int ddr3_tip_ddr3_auto_tune(u32 dev_num);
98 static int odt_test(u32 dev_num, enum hws_algo_type algo_type);
101 int adll_calibration(u32 dev_num, enum hws_access_type access_type,
103 static int ddr3_tip_set_timing(u32 dev_num, enum hws_access_type access_type,
228 static int ddr3_tip_rank_control(u32 dev_num, u32 if_id);
233 int ddr3_tip_tune_training_params(u32 dev_num, in ddr3_tip_tune_training_params() argument
279 int ddr3_tip_configure_cs(u32 dev_num, u32 if_id, u32 cs_num, u32 enable) in ddr3_tip_configure_cs() argument
289 (dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_configure_cs()
[all …]
Dddr3_training_ip_flow.h61 int ddr3_tip_write_leveling_static_config(u32 dev_num, u32 if_id,
64 int ddr3_tip_read_leveling_static_config(u32 dev_num, u32 if_id,
67 int ddr3_tip_if_write(u32 dev_num, enum hws_access_type interface_access,
69 int ddr3_tip_if_polling(u32 dev_num, enum hws_access_type access_type,
72 int ddr3_tip_if_read(u32 dev_num, enum hws_access_type interface_access,
74 int ddr3_tip_bus_read_modify_write(u32 dev_num,
79 int ddr3_tip_bus_read(u32 dev_num, u32 if_id, enum hws_access_type phy_access,
82 int ddr3_tip_bus_write(u32 dev_num, enum hws_access_type e_interface_access,
86 int ddr3_tip_freq_set(u32 dev_num, enum hws_access_type e_access, u32 if_id,
88 int ddr3_tip_adjust_dqs(u32 dev_num);
[all …]
Dddr3_training_ip_prv_if.h23 typedef int (*HWS_TIP_DUNIT_MUX_SELECT_FUNC_PTR)(u8 dev_num, int enable);
25 u8 dev_num, enum hws_access_type interface_access, u32 if_id,
28 u8 dev_num, enum hws_access_type interface_access, u32 if_id,
31 u8 dev_num, enum mv_ddr_freq freq,
34 u8 dev_num, struct ddr3_device_info *info_ptr);
36 u8 dev_num, u32 cs_mask, struct hws_cs_config_info *cs_info);
38 u8 dev_num, u32 if_id, enum mv_ddr_freq freq);
39 typedef int (*HWS_GET_INIT_FREQ)(u8 dev_num, enum mv_ddr_freq *freq);
41 u32 dev_num, enum hws_access_type access_type, u32 dunit_id,
44 u32 dev_num, enum hws_access_type access_type, u32 dunit_id,
[all …]
Dddr3_training_leveling.c22 static int ddr3_tip_dynamic_write_leveling_seq(u32 dev_num);
23 static int ddr3_tip_dynamic_read_leveling_seq(u32 dev_num);
24 static int ddr3_tip_dynamic_per_bit_read_leveling_seq(u32 dev_num);
25 static int ddr3_tip_wl_supp_align_phase_shift(u32 dev_num, u32 if_id,
27 static int ddr3_tip_xsb_compare_test(u32 dev_num, u32 if_id, u32 bus_id,
37 int ddr3_tip_dynamic_read_leveling(u32 dev_num, u32 freq) in ddr3_tip_dynamic_read_leveling() argument
50 u32 octets_per_if_num = ddr3_tip_dev_attr_get(dev_num, MV_ATTR_OCTET_PER_INTERFACE); in ddr3_tip_dynamic_read_leveling()
65 (dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_dynamic_read_leveling()
70 (dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_dynamic_read_leveling()
74 ddr3_tip_reset_fifo_ptr(dev_num); in ddr3_tip_dynamic_read_leveling()
[all …]
Dddr3_debug.c111 int ddr3_tip_reg_dump(u32 dev_num) in ddr3_tip_reg_dump() argument
115 u32 octets_per_if_num = ddr3_tip_dev_attr_get(dev_num, MV_ATTR_OCTET_PER_INTERFACE); in ddr3_tip_reg_dump()
124 (dev_num, ACCESS_TYPE_UNICAST, in ddr3_tip_reg_dump()
142 (dev_num, if_id, in ddr3_tip_reg_dump()
153 (dev_num, if_id, in ddr3_tip_reg_dump()
169 int ddr3_tip_init_config_func(u32 dev_num, in ddr3_tip_init_config_func() argument
175 memcpy(&config_func_info[dev_num], config_func, in ddr3_tip_init_config_func()
192 int ddr3_tip_get_device_info(u32 dev_num, struct ddr3_device_info *info_ptr) in ddr3_tip_get_device_info() argument
194 if (config_func_info[dev_num].tip_get_device_info_func != NULL) { in ddr3_tip_get_device_info()
195 return config_func_info[dev_num]. in ddr3_tip_get_device_info()
[all …]
Dddr3_training_ip_engine.c314 u32 *ddr3_tip_get_buf_ptr(u32 dev_num, enum hws_search_dir search, in ddr3_tip_get_buf_ptr() argument
336 int ddr3_tip_ip_training(u32 dev_num, enum hws_access_type access_type, in ddr3_tip_ip_training() argument
357 u32 octets_per_if_num = ddr3_tip_dev_attr_get(dev_num, MV_ATTR_OCTET_PER_INTERFACE); in ddr3_tip_ip_training()
379 (dev_num, access_type, interface_num, in ddr3_tip_ip_training()
383 (dev_num, access_type, interface_num, in ddr3_tip_ip_training()
388 (dev_num, access_type, interface_num, in ddr3_tip_ip_training()
392 (dev_num, access_type, interface_num, in ddr3_tip_ip_training()
398 ddr3_tip_load_pattern_to_odpg(dev_num, access_type, interface_num, in ddr3_tip_ip_training()
406 (dev_num, access_type, interface_num, direction, in ddr3_tip_ip_training()
414 (dev_num, access_type, interface_num, in ddr3_tip_ip_training()
[all …]
Dddr3_training_pbs.c36 int ddr3_tip_pbs(u32 dev_num, enum pbs_dir pbs_mode) in ddr3_tip_pbs() argument
54 u32 octets_per_if_num = ddr3_tip_dev_attr_get(dev_num, MV_ATTR_OCTET_PER_INTERFACE); in ddr3_tip_pbs()
63 (dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_pbs()
68 (dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_pbs()
75 ddr3_tip_read_adll_value(dev_num, nominal_adll, reg_addr, MASK_ALL_BITS); in ddr3_tip_pbs()
78 ddr3_tip_ip_training(dev_num, ACCESS_TYPE_MULTICAST, in ddr3_tip_pbs()
103 (dev_num, ACCESS_TYPE_MULTICAST, in ddr3_tip_pbs()
190 (dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_pbs()
197 (dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_pbs()
206 ddr3_tip_ip_training(dev_num, ACCESS_TYPE_MULTICAST, in ddr3_tip_pbs()
[all …]
Dddr3_training_centralization.c27 static int ddr3_tip_centralization(u32 dev_num, u32 mode);
32 int ddr3_tip_centralization_rx(u32 dev_num) in ddr3_tip_centralization_rx() argument
34 CHECK_STATUS(ddr3_tip_special_rx(dev_num)); in ddr3_tip_centralization_rx()
35 CHECK_STATUS(ddr3_tip_centralization(dev_num, CENTRAL_RX)); in ddr3_tip_centralization_rx()
43 int ddr3_tip_centralization_tx(u32 dev_num) in ddr3_tip_centralization_tx() argument
45 CHECK_STATUS(ddr3_tip_centralization(dev_num, CENTRAL_TX)); in ddr3_tip_centralization_tx()
53 static int ddr3_tip_centralization(u32 dev_num, u32 mode) in ddr3_tip_centralization() argument
64 u32 octets_per_if_num = ddr3_tip_dev_attr_get(dev_num, MV_ATTR_OCTET_PER_INTERFACE); in ddr3_tip_centralization()
84 (dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_centralization()
88 (dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_centralization()
[all …]
Dddr3_training_hw_algo.c43 int ddr3_tip_write_additional_odt_setting(u32 dev_num, u32 if_id) in ddr3_tip_write_additional_odt_setting() argument
52 u32 octets_per_if_num = ddr3_tip_dev_attr_get(dev_num, MV_ATTR_OCTET_PER_INTERFACE); in ddr3_tip_write_additional_odt_setting()
55 CHECK_STATUS(ddr3_tip_if_write(dev_num, access_type, if_id, in ddr3_tip_write_additional_odt_setting()
58 CHECK_STATUS(ddr3_tip_if_read(dev_num, access_type, if_id, in ddr3_tip_write_additional_odt_setting()
77 (dev_num, if_id, in ddr3_tip_write_additional_odt_setting()
101 CHECK_STATUS(ddr3_tip_if_write(dev_num, access_type, if_id, in ddr3_tip_write_additional_odt_setting()
105 CHECK_STATUS(ddr3_tip_if_write(dev_num, access_type, if_id, in ddr3_tip_write_additional_odt_setting()
113 int get_valid_win_rx(u32 dev_num, u32 if_id, u8 res[4]) in get_valid_win_rx() argument
126 CHECK_STATUS(ddr3_tip_bus_read(dev_num, if_id, in get_valid_win_rx()
147 int ddr3_tip_vref(u32 dev_num) in ddr3_tip_vref() argument
[all …]
Dddr3_training_ip_bist.h35 int ddr3_tip_bist_read_result(u32 dev_num, u32 if_id,
37 int ddr3_tip_bist_activate(u32 dev_num, enum hws_pattern pattern,
44 int hws_ddr3_run_bist(u32 dev_num, enum hws_pattern pattern, u32 *result,
46 int ddr3_tip_run_sweep_test(int dev_num, u32 repeat_num, u32 direction,
48 int ddr3_tip_run_leveling_sweep_test(int dev_num, u32 repeat_num,
50 int ddr3_tip_print_regs(u32 dev_num);
51 int ddr3_tip_reg_dump(u32 dev_num);
52 int run_xsb_test(u32 dev_num, u32 mem_addr, u32 write_type, u32 read_type,
Dddr3_init.h143 int ddr3_tip_enable_init_sequence(u32 dev_num);
152 int ddr3_tip_reg_write(u32 dev_num, u32 reg_addr, u32 data);
153 int ddr3_tip_reg_read(u32 dev_num, u32 reg_addr, u32 *data, u32 reg_mask);
156 int print_adll(u32 dev_num, u32 adll[MAX_INTERFACE_NUM * MAX_BUS_NUM]);
157 int print_ph(u32 dev_num, u32 adll[MAX_INTERFACE_NUM * MAX_BUS_NUM]);
158 int read_phase_value(u32 dev_num, u32 pup_values[MAX_INTERFACE_NUM * MAX_BUS_NUM],
160 int write_leveling_value(u32 dev_num, u32 pup_values[MAX_INTERFACE_NUM * MAX_BUS_NUM],
162 int ddr3_tip_restore_dunit_regs(u32 dev_num);
170 int ddr3_tip_tune_training_params(u32 dev_num,
179 int ddr3_tip_print_pbs_result(u32 dev_num, u32 cs_num, enum pbs_dir pbs_mode);
[all …]
Dmv_ddr_plat.c184 static int ddr3_tip_a38x_set_divider(u8 dev_num, u32 if_id,
190 static u32 ddr3_ctrl_get_junc_temp(u8 dev_num) in ddr3_ctrl_get_junc_temp() argument
224 static int ddr3_tip_a38x_get_freq_config(u8 dev_num, enum mv_ddr_freq freq, in ddr3_tip_a38x_get_freq_config() argument
364 static int ddr3_tip_a38x_select_ddr_controller(u8 dev_num, int enable) in ddr3_tip_a38x_select_ddr_controller() argument
388 static int mv_ddr_sar_freq_get(int dev_num, enum mv_ddr_freq *freq) in mv_ddr_sar_freq_get() argument
482 static int ddr3_tip_a38x_get_medium_freq(int dev_num, enum mv_ddr_freq *freq) in ddr3_tip_a38x_get_medium_freq() argument
559 static int ddr3_tip_a38x_get_device_info(u8 dev_num, struct ddr3_device_info *info_ptr) in ddr3_tip_a38x_get_device_info() argument
639 static int mv_ddr_sw_db_init(u32 dev_num, u32 board_id) in mv_ddr_sw_db_init() argument
659 ddr3_tip_init_config_func(dev_num, &config_func); in mv_ddr_sw_db_init()
661 ddr3_tip_register_dq_table(dev_num, dq_bit_map_2_phy_pin); in mv_ddr_sw_db_init()
[all …]
Dddr3_training_ip_centralization.h9 int ddr3_tip_centralization_tx(u32 dev_num);
10 int ddr3_tip_centralization_rx(u32 dev_num);
11 int ddr3_tip_print_centralization_result(u32 dev_num);
12 int ddr3_tip_special_rx(u32 dev_num);
Dddr3_training_ip_engine.h33 int ddr3_tip_training_ip_test(u32 dev_num, enum hws_training_result result_type,
40 int ddr3_tip_load_pattern_to_mem(u32 dev_num, enum hws_pattern pattern);
41 int ddr3_tip_load_all_pattern_to_mem(u32 dev_num);
42 int ddr3_tip_read_training_result(u32 dev_num, u32 if_id,
52 int ddr3_tip_ip_training(u32 dev_num, enum hws_access_type access_type,
63 int ddr3_tip_ip_training_wrapper(u32 dev_num, enum hws_access_type access_type,
Dddr3_training_ip.h136 int ddr3_tip_register_dq_table(u32 dev_num, u32 *table);
137 int hws_ddr3_tip_select_ddr_controller(u32 dev_num, int enable);
138 int hws_ddr3_tip_init_controller(u32 dev_num,
140 int hws_ddr3_tip_load_topology_map(u32 dev_num,
142 int hws_ddr3_tip_run_alg(u32 dev_num, enum hws_algo_type algo_type);
Dddr3_training_hw_algo.h9 int ddr3_tip_vref(u32 dev_num);
10 int ddr3_tip_write_additional_odt_setting(u32 dev_num, u32 if_id);
11 int ddr3_tip_cmd_addr_init_delay(u32 dev_num, u32 adll_tap);
Dddr3_training_ip_pbs.h36 int ddr3_tip_pbs_rx(u32 dev_num);
37 int ddr3_tip_print_all_pbs_result(u32 dev_num);
38 int ddr3_tip_pbs_tx(u32 dev_num);
Dddr3_training_bist.c12 static int ddr3_tip_bist_operation(u32 dev_num,
20 int ddr3_tip_bist_activate(u32 dev_num, enum hws_pattern pattern, in ddr3_tip_bist_activate() argument
74 int ddr3_tip_bist_read_result(u32 dev_num, u32 if_id, in ddr3_tip_bist_read_result() argument
86 ret = ddr3_tip_if_read(dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_bist_read_result()
92 ret = ddr3_tip_if_read(dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_bist_read_result()
99 ret = ddr3_tip_if_read(dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_bist_read_result()
105 ret = ddr3_tip_if_read(dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_bist_read_result()
118 int hws_ddr3_run_bist(u32 dev_num, enum hws_pattern pattern, u32 *result, in hws_ddr3_run_bist() argument
130 ret = ddr3_tip_bist_activate(dev_num, pattern, in hws_ddr3_run_bist()
141 ret = ddr3_tip_bist_activate(dev_num, pattern, in hws_ddr3_run_bist()
[all …]
/external/ltp/testcases/kernel/uevents/
Duevent01.c32 int pid, fd, dev_num; in verify_uevent() local
53 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in verify_uevent()
55 if (dev_num < 0) in verify_uevent()
59 "change@/devices/virtual/block/loop%i", dev_num); in verify_uevent()
62 "DEVPATH=/devices/virtual/block/loop%i", dev_num); in verify_uevent()
64 snprintf(ev_dev_minor, sizeof(ev_dev_minor), "MINOR=%i", dev_num); in verify_uevent()
65 snprintf(ev_dev_name, sizeof(ev_dev_name), "DEVNAME=loop%i", dev_num); in verify_uevent()
/external/linux-kselftest/tools/testing/selftests/zram/
Dzram_lib.sh40 for i in $(seq 0 $(($dev_num - 1))); do
61 echo "create '$dev_num' zram device(s)"
62 modprobe zram num_devices=$dev_num
70 if [ "$dev_num_created" -ne "$dev_num" ]; then
101 echo "$sys_path = '$max_streams' ($i/$dev_num)"
119 echo "$sys_path = '$alg' ($i/$dev_num)"
135 echo "$sys_path = '$ds' ($i/$dev_num)"
152 echo "$sys_path = '$ds' ($i/$dev_num)"
162 for i in $(seq 0 $(($dev_num - 1))); do
218 for i in $(seq 0 $(($dev_num - 1))); do
/external/ltp/testcases/kernel/device-drivers/zram/
Dzram_lib.sh26 for i in $(seq 0 $(($dev_num - 1))); do
35 tst_res TINFO "create '$dev_num' zram device(s)"
36 modprobe zram num_devices=$dev_num || \
41 if [ "$dev_num_created" -ne "$dev_num" ]; then
70 tst_res TINFO "$sys_path = '$max_streams' ($i/$dev_num)"
96 tst_res TINFO "$sys_path = '$alg' ($i/$dev_num)"
114 tst_res TINFO "$sys_path = '$ds' ($i/$dev_num)"
140 tst_res TINFO "$sys_path = '$ds' ($i/$dev_num)"
152 for i in $(seq 0 $(($dev_num - 1))); do
201 for i in $(seq 0 $(($dev_num - 1))); do
/external/u-boot/include/
Dnetdev.h32 int bcm_sf2_eth_register(bd_t *bis, u8 dev_num);
35 int cs8900_initialize(u8 dev_num, int base_addr);
42 int ep93xx_eth_initialize(u8 dev_num, int base_addr);
44 int ethoc_initialize(u8 dev_num, int base_addr);
51 int ks8851_mll_initialize(u8 dev_num, int base_addr);
52 int lan91c96_initialize(u8 dev_num, int base_addr);
70 int smc91111_initialize(u8 dev_num, int base_addr);
71 int smc911x_initialize(u8 dev_num, int base_addr);
/external/ltp/testcases/kernel/syscalls/ustat/
Dustat01.c20 static dev_t dev_num; variable
26 TEST(tst_syscall(__NR_ustat, (unsigned int)dev_num, &ubuf)); in run()
41 dev_num = buf.st_dev; in setup()
/external/u-boot/drivers/dfu/
Ddfu_mmc.c29 mmc = find_mmc_device(dfu->data.mmc.dev_num); in mmc_block_op()
31 pr_err("Device MMC %d - not found!", dfu->data.mmc.dev_num); in mmc_block_op()
53 dfu->data.mmc.dev_num, in mmc_block_op()
61 dfu->data.mmc.dev_num, blk_start, blk_count, buf); in mmc_block_op()
78 dfu->data.mmc.dev_num, in mmc_block_op()
85 dfu->data.mmc.dev_num, in mmc_block_op()
304 dfu->data.mmc.dev_num = simple_strtoul(devstr, NULL, 10); in dfu_fill_entity_mmc()
322 mmc = find_mmc_device(dfu->data.mmc.dev_num); in dfu_fill_entity_mmc()
325 dfu->data.mmc.dev_num); in dfu_fill_entity_mmc()
/external/u-boot/drivers/mmc/
Dmmc_write.c77 int dev_num = block_dev->devnum; in mmc_berase() local
80 struct mmc *mmc = find_mmc_device(dev_num); in mmc_berase()
87 err = blk_select_hwpart_devnum(IF_TYPE_MMC, dev_num, in mmc_berase()
197 int dev_num = block_dev->devnum; in mmc_bwrite() local
201 struct mmc *mmc = find_mmc_device(dev_num); in mmc_bwrite()
205 err = blk_select_hwpart_devnum(IF_TYPE_MMC, dev_num, block_dev->hwpart); in mmc_bwrite()

1234