Lines Matching refs:cmd_buffer
122 u8 *cmd_buffer; member
151 memset(priv->cmd_buffer, 0, CMD_BUFFER_SIZE); in corsairpsu_usb_cmd()
152 priv->cmd_buffer[0] = p0; in corsairpsu_usb_cmd()
153 priv->cmd_buffer[1] = p1; in corsairpsu_usb_cmd()
154 priv->cmd_buffer[2] = p2; in corsairpsu_usb_cmd()
158 ret = hid_hw_output_report(priv->hdev, priv->cmd_buffer, CMD_BUFFER_SIZE); in corsairpsu_usb_cmd()
172 if (p0 != priv->cmd_buffer[0] || p1 != priv->cmd_buffer[1]) in corsairpsu_usb_cmd()
176 memcpy(data, priv->cmd_buffer + 2, REPLY_SIZE); in corsairpsu_usb_cmd()
693 priv->cmd_buffer = devm_kmalloc(&hdev->dev, CMD_BUFFER_SIZE, GFP_KERNEL); in corsairpsu_probe()
694 if (!priv->cmd_buffer) in corsairpsu_probe()
768 memcpy(priv->cmd_buffer, data, min(CMD_BUFFER_SIZE, size)); in corsairpsu_raw_event()