Lines Matching refs:req
572 struct scarlett2_usb_packet *req, in scarlett2_fill_request_header() argument
578 req->cmd = cpu_to_le32(cmd); in scarlett2_fill_request_header()
579 req->size = cpu_to_le16(req_size); in scarlett2_fill_request_header()
580 req->seq = cpu_to_le16(seq); in scarlett2_fill_request_header()
581 req->error = 0; in scarlett2_fill_request_header()
582 req->pad = 0; in scarlett2_fill_request_header()
593 struct scarlett2_usb_packet *req = NULL, *resp = NULL; in scarlett2_usb() local
596 req = kmalloc(req_buf_size, GFP_KERNEL); in scarlett2_usb()
597 if (!req) { in scarlett2_usb()
612 scarlett2_fill_request_header(private, req, cmd, req_size); in scarlett2_usb()
615 memcpy(req->data, req_data, req_size); in scarlett2_usb()
623 req, in scarlett2_usb()
657 if (resp->cmd != req->cmd || in scarlett2_usb()
658 resp->seq != req->seq || in scarlett2_usb()
667 le16_to_cpu(req->cmd), le16_to_cpu(resp->cmd), in scarlett2_usb()
668 le16_to_cpu(req->seq), le16_to_cpu(resp->seq), in scarlett2_usb()
682 kfree(req); in scarlett2_usb()
690 u32 req = cpu_to_le32(SCARLETT2_USB_CONFIG_SAVE); in scarlett2_config_save() local
693 &req, sizeof(u32), in scarlett2_config_save()
719 } __packed req; in scarlett2_usb_set_config() local
728 req.offset = cpu_to_le32(config_item.offset + index * config_item.size); in scarlett2_usb_set_config()
729 req.bytes = cpu_to_le32(config_item.size); in scarlett2_usb_set_config()
730 req.value = cpu_to_le32(value); in scarlett2_usb_set_config()
732 &req, sizeof(u32) * 2 + config_item.size, in scarlett2_usb_set_config()
758 } __packed req; in scarlett2_usb_get() local
760 req.offset = cpu_to_le32(offset); in scarlett2_usb_get()
761 req.size = cpu_to_le32(size); in scarlett2_usb_get()
763 &req, sizeof(req), buf, size); in scarlett2_usb_get()
799 } __packed req; in scarlett2_usb_set_mix() local
805 req.mix_num = cpu_to_le16(mix_num); in scarlett2_usb_set_mix()
808 req.data[i] = cpu_to_le16( in scarlett2_usb_set_mix()
813 &req, (num_mixer_in + 1) * sizeof(u16), in scarlett2_usb_set_mix()
856 } __packed req; in scarlett2_usb_set_mux() local
858 req.pad = 0; in scarlett2_usb_set_mux()
866 req.num = cpu_to_le16(rate); in scarlett2_usb_set_mux()
884 req.data[i] = !port_id in scarlett2_usb_set_mux()
900 &req, (i + 1) * sizeof(u32), in scarlett2_usb_set_mux()
917 } __packed req; in scarlett2_usb_get_meter_levels() local
921 req.pad = 0; in scarlett2_usb_get_meter_levels()
922 req.num_meters = cpu_to_le16(SCARLETT2_NUM_METERS); in scarlett2_usb_get_meter_levels()
923 req.magic = cpu_to_le32(SCARLETT2_USB_METER_LEVELS_GET_MAGIC); in scarlett2_usb_get_meter_levels()
925 &req, sizeof(req), resp, sizeof(resp)); in scarlett2_usb_get_meter_levels()