Lines Matching refs:accel_info
6065 struct acceleration_info accel_info = accel_info;
6071 status = get_acceleration_info (s, &accel_info);
6073 if (accel_info.table_count == 0) {
6078 if (accel_info.target_speed > accel_info.start_speed ||
6079 accel_info.target_speed == 0 ||
6080 accel_info.total_steps <= accel_info.stable_steps) {
6085 if (accel_info.ability != 0) {
6091 table_data = malloc (accel_info.total_steps + 1000);
6098 set_triple (scmd.transferlen, accel_info.total_steps);
6108 uint16_t accel_steps = (uint16_t) (accel_info.total_steps - accel_info.stable_steps + 1);
6115 uint16_t now_count = accel_info.start_speed;
6120 table_data [i++] = (uint8_t) accel_info.start_speed;
6122 while (now_count != accel_info.target_speed)
6125 accel_info.target_speed) * mid;
6140 for (i = accel_steps; i < accel_info.total_steps; i++)
6144 table_data, accel_info.total_steps);
6152 for (i = 0; i < accel_info.total_steps; i++)
6156 if (((table_total * accel_info.table_units) % accel_info.base_units) == 0)
6159 add_count = (int) ((accel_info.base_units -
6160 ((table_total*accel_info.table_units) % accel_info.base_units))
6161 / accel_info.table_units);
6168 for (i = 0; i < accel_info.total_steps - 1 && add_count > 0; i++)
6180 table_data, accel_info.total_steps);
6183 for (i = 0; i < accel_info.total_steps; i++) {
6190 table_data, accel_info.total_steps);
6193 (char*) table_data, accel_info.total_steps,
6203 } while (table < accel_info.table_count);