Lines Matching refs:rsp

404 static void rndis_queue_rsp(struct net_buf *rsp)  in rndis_queue_rsp()  argument
410 LOG_DBG("Queued response pkt %p", rsp); in rndis_queue_rsp()
412 k_fifo_put(&rndis_tx_queue, rsp); in rndis_queue_rsp()
445 struct rndis_init_cmd_complete *rsp; in rndis_init_handle() local
456 rsp = net_buf_add(buf, sizeof(*rsp)); in rndis_init_handle()
457 rsp->status = sys_cpu_to_le32(RNDIS_CMD_STATUS_SUCCESS); in rndis_init_handle()
458 rsp->type = sys_cpu_to_le32(RNDIS_CMD_INITIALIZE_COMPLETE); in rndis_init_handle()
459 rsp->len = sys_cpu_to_le32(sizeof(*rsp)); in rndis_init_handle()
460 rsp->req_id = cmd->req_id; in rndis_init_handle()
462 rsp->major_ver = sys_cpu_to_le32(RNDIS_MAJOR_VERSION); in rndis_init_handle()
463 rsp->minor_ver = sys_cpu_to_le32(RNDIS_MINOR_VERSION); in rndis_init_handle()
465 rsp->flags = sys_cpu_to_le32(RNDIS_FLAG_CONNECTIONLESS); in rndis_init_handle()
466 rsp->medium = sys_cpu_to_le32(RNDIS_MEDIUM_WIRED_ETHERNET); in rndis_init_handle()
467 rsp->max_packets = sys_cpu_to_le32(1); in rndis_init_handle()
468 rsp->max_transfer_size = sys_cpu_to_le32(RNDIS_BUF_SIZE); in rndis_init_handle()
470 rsp->pkt_align_factor = sys_cpu_to_le32(0); in rndis_init_handle()
471 (void)memset(rsp->__reserved, 0, sizeof(rsp->__reserved)); in rndis_init_handle()
506 struct rndis_query_cmd_complete *rsp; in rndis_query_handle() local
524 rsp = net_buf_add(buf, sizeof(*rsp)); in rndis_query_handle()
525 rsp->type = sys_cpu_to_le32(RNDIS_CMD_QUERY_COMPLETE); in rndis_query_handle()
526 rsp->req_id = cmd->req_id; in rndis_query_handle()
529 rsp->buf_offset = sys_cpu_to_le32(16); in rndis_query_handle()
615 buf_len = buf->len - sizeof(*rsp); in rndis_query_handle()
618 rsp->status = sys_cpu_to_le32(RNDIS_CMD_STATUS_SUCCESS); in rndis_query_handle()
620 rsp->status = sys_cpu_to_le32(RNDIS_CMD_STATUS_NOT_SUPP); in rndis_query_handle()
624 rsp->buf_len = sys_cpu_to_le32(buf_len); in rndis_query_handle()
626 rsp->len = sys_cpu_to_le32(buf_len + sizeof(*rsp)); in rndis_query_handle()
629 buf_len, rsp->len, buf->len); in rndis_query_handle()
642 struct rndis_set_cmd_complete *rsp; in rndis_set_handle() local
674 rsp = net_buf_add(buf, sizeof(*rsp)); in rndis_set_handle()
675 rsp->type = sys_cpu_to_le32(RNDIS_CMD_SET_COMPLETE); in rndis_set_handle()
676 rsp->len = sys_cpu_to_le32(sizeof(*rsp)); in rndis_set_handle()
677 rsp->req_id = cmd->req_id; /* same endianness */ in rndis_set_handle()
683 rsp->status = RNDIS_CMD_STATUS_INVALID_DATA; in rndis_set_handle()
691 rsp->status = sys_cpu_to_le32(RNDIS_CMD_STATUS_SUCCESS); in rndis_set_handle()
696 rsp->status = sys_cpu_to_le32(RNDIS_CMD_STATUS_SUCCESS); in rndis_set_handle()
700 rsp->status = sys_cpu_to_le32(RNDIS_CMD_STATUS_NOT_SUPP); in rndis_set_handle()
714 struct rndis_reset_cmd_complete *rsp; in rndis_reset_handle() local
725 rsp = net_buf_add(buf, sizeof(*rsp)); in rndis_reset_handle()
726 rsp->type = sys_cpu_to_le32(RNDIS_CMD_RESET_COMPLETE); in rndis_reset_handle()
727 rsp->len = sys_cpu_to_le32(sizeof(*rsp)); in rndis_reset_handle()
728 rsp->status = sys_cpu_to_le32(RNDIS_CMD_STATUS_SUCCESS); in rndis_reset_handle()
729 rsp->addr_reset = sys_cpu_to_le32(1); in rndis_reset_handle()
742 struct rndis_keepalive_cmd_complete *rsp; in rndis_keepalive_handle() local
753 rsp = net_buf_add(buf, sizeof(*rsp)); in rndis_keepalive_handle()
754 rsp->type = sys_cpu_to_le32(RNDIS_CMD_KEEPALIVE_COMPLETE); in rndis_keepalive_handle()
755 rsp->len = sys_cpu_to_le32(sizeof(*rsp)); in rndis_keepalive_handle()
756 rsp->req_id = cmd->req_id; /* same order */ in rndis_keepalive_handle()
757 rsp->status = sys_cpu_to_le32(RNDIS_CMD_STATUS_SUCCESS); in rndis_keepalive_handle()