Lines Matching refs:ret
86 u8 ret[5]; in dpm_rrp() local
88 ret[0] = RRP_OPCODE; in dpm_rrp()
90 ret[1] = 0; in dpm_rrp()
91 ret[2] = r; in dpm_rrp()
92 i2c_read(I2C_DPM_ADDR, 0, -3, ret, 2); in dpm_rrp()
93 if (ret[1] == DPM_SUCCESS) { /* the DPM returned success as status */ in dpm_rrp()
94 debug("RRP_OPCODE returned success data is %x\n", ret[0]); in dpm_rrp()
95 return ret[0]; in dpm_rrp()
104 u8 ret[5]; in dpm_wrm() local
106 ret[0] = WRM_OPCODE; in dpm_wrm()
107 ret[1] = r; in dpm_wrm()
108 ret[2] = d; in dpm_wrm()
109 i2c_read(I2C_DPM_ADDR, 0, -3, ret, 1); in dpm_wrm()
110 if (ret[0] == DPM_SUCCESS) { /* the DPM returned success as status */ in dpm_wrm()
111 debug("WRM_OPCODE returned success data is %x\n", ret[0]); in dpm_wrm()
112 return ret[0]; in dpm_wrm()
121 u8 ret[7]; in dpm_wrp() local
123 ret[0] = WRP_OPCODE; in dpm_wrp()
125 ret[1] = 0x01; in dpm_wrp()
126 ret[2] = 0x00; in dpm_wrp()
127 ret[3] = 0x00; in dpm_wrp()
128 ret[4] = 0x00; in dpm_wrp()
129 ret[5] = r; in dpm_wrp()
130 ret[6] = d; in dpm_wrp()
131 i2c_read(I2C_DPM_ADDR, 0, -7, ret, 1); in dpm_wrp()
132 if (ret[0] == DPM_SUCCESS) { /* the DPM returned success as status */ in dpm_wrp()
133 debug("WRP_OPCODE returned success data is %x\n", ret[0]); in dpm_wrp()
176 u8 ret; in zm_write_voltage() local
180 ret = zm_write(reg, vid); in zm_write_voltage()
181 if (ret != -1) { in zm_write_voltage()
182 voltage_read = hex_to_1_10mv[ret]; in zm_write_voltage()
195 u8 ret; in zm_read_voltage() local
198 ret = zm_read(reg); in zm_read_voltage()
199 if (ret != -1) { in zm_read_voltage()
200 voltage = hex_to_1_10mv[ret]; in zm_read_voltage()