Lines Matching refs:cmd_base
53 union sfh_cmd_base cmd_base; in amd_start_sensor_v2() local
55 cmd_base.ul = 0; in amd_start_sensor_v2()
56 cmd_base.cmd_v2.cmd_id = ENABLE_SENSOR; in amd_start_sensor_v2()
57 cmd_base.cmd_v2.intr_disable = 1; in amd_start_sensor_v2()
58 cmd_base.cmd_v2.period = info.period; in amd_start_sensor_v2()
59 cmd_base.cmd_v2.sensor_id = info.sensor_idx; in amd_start_sensor_v2()
60 cmd_base.cmd_v2.length = 16; in amd_start_sensor_v2()
63 cmd_base.cmd_v2.mem_type = USE_C2P_REG; in amd_start_sensor_v2()
66 writel(cmd_base.ul, privdata->mmio + AMD_C2P_MSG0); in amd_start_sensor_v2()
71 union sfh_cmd_base cmd_base; in amd_stop_sensor_v2() local
73 cmd_base.ul = 0; in amd_stop_sensor_v2()
74 cmd_base.cmd_v2.cmd_id = DISABLE_SENSOR; in amd_stop_sensor_v2()
75 cmd_base.cmd_v2.intr_disable = 1; in amd_stop_sensor_v2()
76 cmd_base.cmd_v2.period = 0; in amd_stop_sensor_v2()
77 cmd_base.cmd_v2.sensor_id = sensor_idx; in amd_stop_sensor_v2()
78 cmd_base.cmd_v2.length = 16; in amd_stop_sensor_v2()
81 writel(cmd_base.ul, privdata->mmio + AMD_C2P_MSG0); in amd_stop_sensor_v2()
86 union sfh_cmd_base cmd_base; in amd_stop_all_sensor_v2() local
88 cmd_base.cmd_v2.cmd_id = STOP_ALL_SENSORS; in amd_stop_all_sensor_v2()
89 cmd_base.cmd_v2.intr_disable = 1; in amd_stop_all_sensor_v2()
90 cmd_base.cmd_v2.period = 0; in amd_stop_all_sensor_v2()
91 cmd_base.cmd_v2.sensor_id = 0; in amd_stop_all_sensor_v2()
93 writel(cmd_base.ul, privdata->mmio + AMD_C2P_MSG0); in amd_stop_all_sensor_v2()
143 union sfh_cmd_base cmd_base; in amd_start_sensor() local
146 memset(&cmd_base, 0, sizeof(cmd_base)); in amd_start_sensor()
147 cmd_base.s.cmd_id = ENABLE_SENSOR; in amd_start_sensor()
148 cmd_base.s.period = info.period; in amd_start_sensor()
149 cmd_base.s.sensor_id = info.sensor_idx; in amd_start_sensor()
158 writel(cmd_base.ul, privdata->mmio + AMD_C2P_MSG0); in amd_start_sensor()
163 union sfh_cmd_base cmd_base; in amd_stop_sensor() local
166 memset(&cmd_base, 0, sizeof(cmd_base)); in amd_stop_sensor()
167 cmd_base.s.cmd_id = DISABLE_SENSOR; in amd_stop_sensor()
168 cmd_base.s.period = 0; in amd_stop_sensor()
169 cmd_base.s.sensor_id = sensor_idx; in amd_stop_sensor()
172 writel(cmd_base.ul, privdata->mmio + AMD_C2P_MSG0); in amd_stop_sensor()
177 union sfh_cmd_base cmd_base; in amd_stop_all_sensors() local
180 memset(&cmd_base, 0, sizeof(cmd_base)); in amd_stop_all_sensors()
181 cmd_base.s.cmd_id = STOP_ALL_SENSORS; in amd_stop_all_sensors()
182 cmd_base.s.period = 0; in amd_stop_all_sensors()
183 cmd_base.s.sensor_id = 0; in amd_stop_all_sensors()
185 writel(cmd_base.ul, privdata->mmio + AMD_C2P_MSG0); in amd_stop_all_sensors()