@@ -222,14 +222,14 @@ static int pwr_reg_rdwr(u16 *addr, u8 *data, u32 count, u32 op, u32 id)
222
222
}
223
223
224
224
/**
225
- * intel_scu_ipc_ioread8 - read a word via the SCU
226
- * @addr: register on SCU
227
- * @data: return pointer for read byte
225
+ * intel_scu_ipc_ioread8 - read a word via the SCU
226
+ * @addr: Register on SCU
227
+ * @data: Return pointer for read byte
228
228
*
229
- * Read a single register. Returns 0 on success or an error code. All
230
- * locking between SCU accesses is handled for the caller.
229
+ * Read a single register. Returns % 0 on success or an error code. All
230
+ * locking between SCU accesses is handled for the caller.
231
231
*
232
- * This function may sleep.
232
+ * This function may sleep.
233
233
*/
234
234
int intel_scu_ipc_ioread8 (u16 addr , u8 * data )
235
235
{
@@ -238,14 +238,14 @@ int intel_scu_ipc_ioread8(u16 addr, u8 *data)
238
238
EXPORT_SYMBOL (intel_scu_ipc_ioread8 );
239
239
240
240
/**
241
- * intel_scu_ipc_iowrite8 - write a byte via the SCU
242
- * @addr: register on SCU
243
- * @data: byte to write
241
+ * intel_scu_ipc_iowrite8 - write a byte via the SCU
242
+ * @addr: Register on SCU
243
+ * @data: Byte to write
244
244
*
245
- * Write a single register. Returns 0 on success or an error code. All
246
- * locking between SCU accesses is handled for the caller.
245
+ * Write a single register. Returns % 0 on success or an error code. All
246
+ * locking between SCU accesses is handled for the caller.
247
247
*
248
- * This function may sleep.
248
+ * This function may sleep.
249
249
*/
250
250
int intel_scu_ipc_iowrite8 (u16 addr , u8 data )
251
251
{
@@ -254,17 +254,17 @@ int intel_scu_ipc_iowrite8(u16 addr, u8 data)
254
254
EXPORT_SYMBOL (intel_scu_ipc_iowrite8 );
255
255
256
256
/**
257
- * intel_scu_ipc_readvv - read a set of registers
258
- * @addr: register list
259
- * @data: bytes to return
260
- * @len: length of array
257
+ * intel_scu_ipc_readvv - read a set of registers
258
+ * @addr: Register list
259
+ * @data: Bytes to return
260
+ * @len: Length of array
261
261
*
262
- * Read registers. Returns 0 on success or an error code. All
263
- * locking between SCU accesses is handled for the caller.
262
+ * Read registers. Returns % 0 on success or an error code. All locking
263
+ * between SCU accesses is handled for the caller.
264
264
*
265
- * The largest array length permitted by the hardware is 5 items.
265
+ * The largest array length permitted by the hardware is 5 items.
266
266
*
267
- * This function may sleep.
267
+ * This function may sleep.
268
268
*/
269
269
int intel_scu_ipc_readv (u16 * addr , u8 * data , int len )
270
270
{
@@ -273,18 +273,17 @@ int intel_scu_ipc_readv(u16 *addr, u8 *data, int len)
273
273
EXPORT_SYMBOL (intel_scu_ipc_readv );
274
274
275
275
/**
276
- * intel_scu_ipc_writev - write a set of registers
277
- * @addr: register list
278
- * @data: bytes to write
279
- * @len: length of array
276
+ * intel_scu_ipc_writev - write a set of registers
277
+ * @addr: Register list
278
+ * @data: Bytes to write
279
+ * @len: Length of array
280
280
*
281
- * Write registers. Returns 0 on success or an error code. All
282
- * locking between SCU accesses is handled for the caller.
281
+ * Write registers. Returns % 0 on success or an error code. All locking
282
+ * between SCU accesses is handled for the caller.
283
283
*
284
- * The largest array length permitted by the hardware is 5 items.
285
- *
286
- * This function may sleep.
284
+ * The largest array length permitted by the hardware is 5 items.
287
285
*
286
+ * This function may sleep.
288
287
*/
289
288
int intel_scu_ipc_writev (u16 * addr , u8 * data , int len )
290
289
{
@@ -293,19 +292,18 @@ int intel_scu_ipc_writev(u16 *addr, u8 *data, int len)
293
292
EXPORT_SYMBOL (intel_scu_ipc_writev );
294
293
295
294
/**
296
- * intel_scu_ipc_update_register - r/m/w a register
297
- * @addr: register address
298
- * @bits: bits to update
299
- * @mask: mask of bits to update
295
+ * intel_scu_ipc_update_register - r/m/w a register
296
+ * @addr: Register address
297
+ * @bits: Bits to update
298
+ * @mask: Mask of bits to update
300
299
*
301
- * Read-modify-write power control unit register. The first data argument
302
- * must be register value and second is mask value
303
- * mask is a bitmap that indicates which bits to update.
304
- * 0 = masked. Don't modify this bit, 1 = modify this bit.
305
- * returns 0 on success or an error code.
300
+ * Read-modify-write power control unit register. The first data argument
301
+ * must be register value and second is mask value mask is a bitmap that
302
+ * indicates which bits to update. %0 = masked. Don't modify this bit, %1 =
303
+ * modify this bit. returns %0 on success or an error code.
306
304
*
307
- * This function may sleep. Locking between SCU accesses is handled
308
- * for the caller.
305
+ * This function may sleep. Locking between SCU accesses is handled
306
+ * for the caller.
309
307
*/
310
308
int intel_scu_ipc_update_register (u16 addr , u8 bits , u8 mask )
311
309
{
@@ -315,16 +313,16 @@ int intel_scu_ipc_update_register(u16 addr, u8 bits, u8 mask)
315
313
EXPORT_SYMBOL (intel_scu_ipc_update_register );
316
314
317
315
/**
318
- * intel_scu_ipc_simple_command - send a simple command
319
- * @cmd: command
320
- * @sub: sub type
316
+ * intel_scu_ipc_simple_command - send a simple command
317
+ * @cmd: Command
318
+ * @sub: Sub type
321
319
*
322
- * Issue a simple command to the SCU. Do not use this interface if
323
- * you must then access data as any data values may be overwritten
324
- * by another SCU access by the time this function returns.
320
+ * Issue a simple command to the SCU. Do not use this interface if you must
321
+ * then access data as any data values may be overwritten by another SCU
322
+ * access by the time this function returns.
325
323
*
326
- * This function may sleep. Locking for SCU accesses is handled for
327
- * the caller.
324
+ * This function may sleep. Locking for SCU accesses is handled for the
325
+ * caller.
328
326
*/
329
327
int intel_scu_ipc_simple_command (int cmd , int sub )
330
328
{
@@ -344,16 +342,16 @@ int intel_scu_ipc_simple_command(int cmd, int sub)
344
342
EXPORT_SYMBOL (intel_scu_ipc_simple_command );
345
343
346
344
/**
347
- * intel_scu_ipc_command - command with data
348
- * @cmd: command
349
- * @sub: sub type
350
- * @in: input data
351
- * @inlen: input length in dwords
352
- * @out: output data
353
- * @outlein: output length in dwords
345
+ * intel_scu_ipc_command - command with data
346
+ * @cmd: Command
347
+ * @sub: Sub type
348
+ * @in: Input data
349
+ * @inlen: Input length in dwords
350
+ * @out: Output data
351
+ * @outlen: Output length in dwords
354
352
*
355
- * Issue a command to the SCU which involves data transfers. Do the
356
- * data copies under the lock but leave it for the caller to interpret
353
+ * Issue a command to the SCU which involves data transfers. Do the
354
+ * data copies under the lock but leave it for the caller to interpret.
357
355
*/
358
356
int intel_scu_ipc_command (int cmd , int sub , u32 * in , int inlen ,
359
357
u32 * out , int outlen )
0 commit comments