Lines Matching defs:buffer
16 * buffer and a lower level internal interface
64 * This is the command buffer passed to the SMU hardware
79 u32 __iomem *db_buf; /* doorbell buffer */
85 struct smu_cmd_buf *cmd_buf; /* command buffer virtual */
86 u32 cmd_buf_abs; /* command buffer absolute */
126 DPRINTK("SMU: data buffer: %8ph\n", cmd->data_buf);
128 /* Fill the SMU command buffer */
194 * flush the entire buffer for now as we haven't read the
210 printk(KERN_WARNING "SMU: reply buffer too small,"
211 "got %d bytes for a %d bytes buffer\n",
299 if (data_len > sizeof(scmd->buffer))
305 cmd->data_buf = scmd->buffer;
306 cmd->reply_len = sizeof(scmd->buffer);
307 cmd->reply_buf = scmd->buffer;
313 scmd->buffer[i] = (u8)va_arg(list, int);
396 time->tm_sec = bcd2hex(cmd.buffer[0]);
397 time->tm_min = bcd2hex(cmd.buffer[1]);
398 time->tm_hour = bcd2hex(cmd.buffer[2]);
399 time->tm_wday = bcd2hex(cmd.buffer[3]);
400 time->tm_mday = bcd2hex(cmd.buffer[4]);
401 time->tm_mon = bcd2hex(cmd.buffer[5]) - 1;
402 time->tm_year = bcd2hex(cmd.buffer[6]) + 100;
490 printk(KERN_ERR "SMU: Command buffer allocation failed !\n");
548 /* Doorbell buffer is currently hard-coded, I didn't find a proper
554 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))