Lines Matching defs:buffer
16 * buffer and a lower level internal interface
63 * This is the command buffer passed to the SMU hardware
78 u32 __iomem *db_buf; /* doorbell buffer */
84 struct smu_cmd_buf *cmd_buf; /* command buffer virtual */
85 u32 cmd_buf_abs; /* command buffer absolute */
125 DPRINTK("SMU: data buffer: %8ph\n", cmd->data_buf);
127 /* Fill the SMU command buffer */
193 * flush the entire buffer for now as we haven't read the
209 printk(KERN_WARNING "SMU: reply buffer too small,"
210 "got %d bytes for a %d bytes buffer\n",
298 if (data_len > sizeof(scmd->buffer))
304 cmd->data_buf = scmd->buffer;
305 cmd->reply_len = sizeof(scmd->buffer);
306 cmd->reply_buf = scmd->buffer;
312 scmd->buffer[i] = (u8)va_arg(list, int);
395 time->tm_sec = bcd2hex(cmd.buffer[0]);
396 time->tm_min = bcd2hex(cmd.buffer[1]);
397 time->tm_hour = bcd2hex(cmd.buffer[2]);
398 time->tm_wday = bcd2hex(cmd.buffer[3]);
399 time->tm_mday = bcd2hex(cmd.buffer[4]);
400 time->tm_mon = bcd2hex(cmd.buffer[5]) - 1;
401 time->tm_year = bcd2hex(cmd.buffer[6]) + 100;
489 printk(KERN_ERR "SMU: Command buffer allocation failed !\n");
549 /* Doorbell buffer is currently hard-coded, I didn't find a proper
555 printk(KERN_ERR "SMU: Can't map doorbell buffer pointer !\n");
973 addr = *((u16 *)cmd.buffer);
974 len = cmd.buffer[3] << 2;
976 * for "sdb-partition-XX" that we append at the end of the buffer
1079 u8 buffer[SMU_MAX_DATA];
1153 if (copy_from_user(pp->buffer, buf + sizeof(hdr), hdr.data_len)) {
1161 pp->cmd.data_buf = pp->buffer;
1162 pp->cmd.reply_buf = pp->buffer;
1220 if (size && copy_to_user(buf + sizeof(hdr), pp->buffer, size))