Lines Matching refs:cmd_buffer
128 u8 *cmd_buffer; member
165 memset(priv->cmd_buffer, 0, CMD_BUFFER_SIZE); in corsairpsu_usb_cmd()
166 priv->cmd_buffer[0] = p0; in corsairpsu_usb_cmd()
167 priv->cmd_buffer[1] = p1; in corsairpsu_usb_cmd()
168 priv->cmd_buffer[2] = p2; in corsairpsu_usb_cmd()
172 ret = hid_hw_output_report(priv->hdev, priv->cmd_buffer, CMD_BUFFER_SIZE); in corsairpsu_usb_cmd()
186 if (p0 != priv->cmd_buffer[0] || p1 != priv->cmd_buffer[1]) in corsairpsu_usb_cmd()
190 memcpy(data, priv->cmd_buffer + 2, REPLY_SIZE); in corsairpsu_usb_cmd()
782 priv->cmd_buffer = devm_kmalloc(&hdev->dev, CMD_BUFFER_SIZE, GFP_KERNEL); in corsairpsu_probe()
783 if (!priv->cmd_buffer) in corsairpsu_probe()
857 memcpy(priv->cmd_buffer, data, min(CMD_BUFFER_SIZE, size)); in corsairpsu_raw_event()