Lines Matching defs:bank

109 /* The number of sensing points per bank */
198 /* The number of sensing points per bank */
219 /* The number of sensing points per bank */
258 /* The number of sensing points per bank */
276 /* The number of sensing points per bank */
472 * The MT8173 thermal controller has four banks. Each bank can read up to
474 * temperature sensors. We use each bank to measure a certain area of the
479 * the bank concept wouldn't be necessary here. However, the SVS (Smart
480 * Voltage Scaling) unit makes its decisions based on the same bank
515 * The MT2701 thermal controller has one bank, which can read up to
519 * The thermal core only gets the maximum temperature of this one bank,
520 * so the bank concept wouldn't be necessary here. However, the SVS (Smart
521 * Voltage Scaling) unit makes its decisions based on the same bank
546 * The MT8365 thermal controller has one bank, which can read up to
550 * The thermal core only gets the maximum temperature of this one bank,
551 * so the bank concept wouldn't be necessary here. However, the SVS (Smart
552 * Voltage Scaling) unit makes its decisions based on the same bank
580 * The MT2712 thermal controller has one bank, which can read up to
584 * The thermal core only gets the maximum temperature of this one bank,
585 * so the bank concept wouldn't be necessary here. However, the SVS (Smart
586 * Voltage Scaling) unit makes its decisions based on the same bank
639 * The MT8183 thermal controller has one bank for the current SW framework.
644 * the bank concept wouldn't be necessary here. However, the SVS (Smart
645 * Voltage Scaling) unit makes its decisions based on the same bank
774 * mtk_thermal_get_bank - get bank
775 * @bank: The bank
777 * The bank registers are banked, we have to select a bank in the
780 static void mtk_thermal_get_bank(struct mtk_thermal_bank *bank)
782 struct mtk_thermal *mt = bank->mt;
790 val |= bank->id;
796 * mtk_thermal_put_bank - release bank
797 * @bank: The bank
799 * release a bank previously taken with mtk_thermal_get_bank,
801 static void mtk_thermal_put_bank(struct mtk_thermal_bank *bank)
803 struct mtk_thermal *mt = bank->mt;
810 * mtk_thermal_bank_temperature - get the temperature of a bank
811 * @bank: The bank
813 * The temperature of a bank is considered the maximum temperature of
814 * the sensors associated to the bank.
816 static int mtk_thermal_bank_temperature(struct mtk_thermal_bank *bank)
818 struct mtk_thermal *mt = bank->mt;
823 for (i = 0; i < conf->bank_data[bank->id].num_sensors; i++) {
827 mt, conf->bank_data[bank->id].sensors[i], raw);
855 struct mtk_thermal_bank *bank = &mt->banks[i];
857 mtk_thermal_get_bank(bank);
859 tempmax = max(tempmax, mtk_thermal_bank_temperature(bank));
861 mtk_thermal_put_bank(bank);
877 struct mtk_thermal_bank *bank = &mt->banks[num];
884 bank->id = num;
885 bank->mt = mt;
887 mtk_thermal_get_bank(bank);
979 mtk_thermal_put_bank(bank);