Lines Matching full:packet
38 struct peci_msg packet; in peci_ping() local
42 packet.addr = PECI_HOST_ADDR; in peci_ping()
43 packet.cmd_code = PECI_CMD_PING; in peci_ping()
44 packet.tx_buffer.buf = NULL; in peci_ping()
45 packet.tx_buffer.len = PECI_PING_WR_LEN; in peci_ping()
46 packet.rx_buffer.buf = NULL; in peci_ping()
47 packet.rx_buffer.len = PECI_PING_RD_LEN; in peci_ping()
49 ret = peci_transfer(peci_dev, &packet); in peci_ping()
63 struct peci_msg packet; in peci_get_tjmax() local
72 packet.tx_buffer.buf = peci_req_buf; in peci_get_tjmax()
73 packet.tx_buffer.len = PECI_RD_PKG_WR_LEN; in peci_get_tjmax()
74 packet.rx_buffer.buf = peci_resp_buf; in peci_get_tjmax()
75 packet.rx_buffer.len = PECI_RD_PKG_LEN_DWORD; in peci_get_tjmax()
79 packet.addr = PECI_HOST_ADDR; in peci_get_tjmax()
80 packet.cmd_code = PECI_CMD_RD_PKG_CFG0; in peci_get_tjmax()
82 ret = peci_transfer(peci_dev, &packet); in peci_get_tjmax()
85 printk("%02x\n", packet.rx_buffer.buf[i]); in peci_get_tjmax()
88 peci_resp = packet.rx_buffer.buf[0]; in peci_get_tjmax()
89 rx_fcs = packet.rx_buffer.buf[PECI_RD_PKG_LEN_DWORD]; in peci_get_tjmax()
95 *tjmax = packet.rx_buffer.buf[3]; in peci_get_tjmax()
104 struct peci_msg packet = {0}; in peci_get_temp() local
109 packet.tx_buffer.buf = NULL; in peci_get_temp()
110 packet.tx_buffer.len = PECI_GET_TEMP_WR_LEN; in peci_get_temp()
111 packet.rx_buffer.buf = peci_resp_buf; in peci_get_temp()
112 packet.rx_buffer.len = PECI_GET_TEMP_RD_LEN; in peci_get_temp()
114 packet.addr = PECI_HOST_ADDR; in peci_get_temp()
115 packet.cmd_code = PECI_CMD_GET_TEMP0; in peci_get_temp()
117 ret = peci_transfer(peci_dev, &packet); in peci_get_temp()
123 rx_fcs = packet.rx_buffer.buf[PECI_GET_TEMP_RD_LEN]; in peci_get_temp()
125 printk("Temp bytes: %02x", packet.rx_buffer.buf[0]); in peci_get_temp()
126 printk("%02x\n", packet.rx_buffer.buf[1]); in peci_get_temp()
128 raw_cpu_temp = (int16_t)(packet.rx_buffer.buf[0] | in peci_get_temp()
129 (int16_t)((packet.rx_buffer.buf[1] << 8) & 0xFF00)); in peci_get_temp()