Lines Matching refs:cmd_buffer
124 u8 *cmd_buffer; member
153 memset(priv->cmd_buffer, 0, CMD_BUFFER_SIZE); in corsairpsu_usb_cmd()
154 priv->cmd_buffer[0] = p0; in corsairpsu_usb_cmd()
155 priv->cmd_buffer[1] = p1; in corsairpsu_usb_cmd()
156 priv->cmd_buffer[2] = p2; in corsairpsu_usb_cmd()
160 ret = hid_hw_output_report(priv->hdev, priv->cmd_buffer, CMD_BUFFER_SIZE); in corsairpsu_usb_cmd()
174 if (p0 != priv->cmd_buffer[0] || p1 != priv->cmd_buffer[1]) in corsairpsu_usb_cmd()
178 memcpy(data, priv->cmd_buffer + 2, REPLY_SIZE); in corsairpsu_usb_cmd()
720 priv->cmd_buffer = devm_kmalloc(&hdev->dev, CMD_BUFFER_SIZE, GFP_KERNEL); in corsairpsu_probe()
721 if (!priv->cmd_buffer) in corsairpsu_probe()
795 memcpy(priv->cmd_buffer, data, min(CMD_BUFFER_SIZE, size)); in corsairpsu_raw_event()