Lines Matching refs:pkt_buf
569 u8 pkt_buf[PKT_BUF_SIZE]; in wdt87xx_write_data() local
582 pkt_buf[CMD_REPORT_ID_OFFSET] = VND_REQ_WRITE; in wdt87xx_write_data()
583 pkt_buf[CMD_TYPE_OFFSET] = VND_SET_DATA; in wdt87xx_write_data()
584 put_unaligned_le16(packet_size, &pkt_buf[CMD_INDEX_OFFSET]); in wdt87xx_write_data()
585 put_unaligned_le32(address, &pkt_buf[CMD_LENGTH_OFFSET]); in wdt87xx_write_data()
586 memcpy(&pkt_buf[CMD_DATA_OFFSET], data, packet_size); in wdt87xx_write_data()
588 error = wdt87xx_set_feature(client, pkt_buf, sizeof(pkt_buf)); in wdt87xx_write_data()
646 u8 pkt_buf[PKT_BUF_SIZE]; in wdt87xx_get_checksum() local
674 memset(pkt_buf, 0, sizeof(pkt_buf)); in wdt87xx_get_checksum()
675 pkt_buf[CMD_REPORT_ID_OFFSET] = VND_READ_DATA; in wdt87xx_get_checksum()
676 error = wdt87xx_get_feature(client, pkt_buf, sizeof(pkt_buf)); in wdt87xx_get_checksum()
682 *checksum = get_unaligned_le16(&pkt_buf[CMD_DATA_OFFSET]); in wdt87xx_get_checksum()