Lines Matching refs:cmd
26 struct cmd_ds_mesh_access *cmd) in lbs_mesh_access() argument
30 cmd->hdr.command = cpu_to_le16(CMD_MESH_ACCESS); in lbs_mesh_access()
31 cmd->hdr.size = cpu_to_le16(sizeof(*cmd)); in lbs_mesh_access()
32 cmd->hdr.result = 0; in lbs_mesh_access()
34 cmd->action = cpu_to_le16(cmd_action); in lbs_mesh_access()
36 ret = lbs_cmd_with_response(priv, CMD_MESH_ACCESS, cmd); in lbs_mesh_access()
42 struct cmd_ds_mesh_config *cmd, in __lbs_mesh_config_send() argument
56 cmd->hdr.command = cpu_to_le16(command); in __lbs_mesh_config_send()
57 cmd->hdr.size = cpu_to_le16(sizeof(struct cmd_ds_mesh_config)); in __lbs_mesh_config_send()
58 cmd->hdr.result = 0; in __lbs_mesh_config_send()
60 cmd->type = cpu_to_le16(type); in __lbs_mesh_config_send()
61 cmd->action = cpu_to_le16(action); in __lbs_mesh_config_send()
63 ret = lbs_cmd_with_response(priv, command, cmd); in __lbs_mesh_config_send()
69 struct cmd_ds_mesh_config *cmd, in lbs_mesh_config_send() argument
77 ret = __lbs_mesh_config_send(priv, cmd, action, type); in lbs_mesh_config_send()
90 struct cmd_ds_mesh_config cmd; in lbs_mesh_config() local
93 memset(&cmd, 0, sizeof(cmd)); in lbs_mesh_config()
94 cmd.channel = cpu_to_le16(chan); in lbs_mesh_config()
95 ie = (struct mrvl_meshie *)cmd.data; in lbs_mesh_config()
120 cmd.length = cpu_to_le16(sizeof(struct mrvl_meshie_val)); in lbs_mesh_config()
131 return __lbs_mesh_config_send(priv, &cmd, action, priv->mesh_tlv); in lbs_mesh_config()
338 struct cmd_ds_mesh_config cmd; in mesh_get_default_parameters() local
341 memset(&cmd, 0, sizeof(struct cmd_ds_mesh_config)); in mesh_get_default_parameters()
342 ret = lbs_mesh_config_send(priv, &cmd, CMD_ACT_MESH_CONFIG_GET, in mesh_get_default_parameters()
348 memcpy(defs, &cmd.data[0], sizeof(struct mrvl_mesh_defaults)); in mesh_get_default_parameters()
384 struct cmd_ds_mesh_config cmd; in bootflag_set() local
388 memset(&cmd, 0, sizeof(cmd)); in bootflag_set()
393 *((__le32 *)&cmd.data[0]) = cpu_to_le32(!!datum); in bootflag_set()
394 cmd.length = cpu_to_le16(sizeof(uint32_t)); in bootflag_set()
395 ret = lbs_mesh_config_send(priv, &cmd, CMD_ACT_MESH_CONFIG_SET, in bootflag_set()
434 struct cmd_ds_mesh_config cmd; in boottime_set() local
438 memset(&cmd, 0, sizeof(cmd)); in boottime_set()
452 cmd.data[0] = datum; in boottime_set()
453 cmd.length = cpu_to_le16(sizeof(uint8_t)); in boottime_set()
454 ret = lbs_mesh_config_send(priv, &cmd, CMD_ACT_MESH_CONFIG_SET, in boottime_set()
493 struct cmd_ds_mesh_config cmd; in channel_set() local
497 memset(&cmd, 0, sizeof(cmd)); in channel_set()
502 *((__le16 *)&cmd.data[0]) = cpu_to_le16(datum); in channel_set()
503 cmd.length = cpu_to_le16(sizeof(uint16_t)); in channel_set()
504 ret = lbs_mesh_config_send(priv, &cmd, CMD_ACT_MESH_CONFIG_SET, in channel_set()
551 struct cmd_ds_mesh_config cmd; in mesh_id_set() local
561 memset(&cmd, 0, sizeof(struct cmd_ds_mesh_config)); in mesh_id_set()
562 ie = (struct mrvl_meshie *) &cmd.data[0]; in mesh_id_set()
567 cmd.length = cpu_to_le16(sizeof(struct mrvl_meshie)); in mesh_id_set()
579 ret = lbs_mesh_config_send(priv, &cmd, CMD_ACT_MESH_CONFIG_SET, in mesh_id_set()
617 struct cmd_ds_mesh_config cmd; in protocol_id_set() local
624 memset(&cmd, 0, sizeof(cmd)); in protocol_id_set()
632 cmd.length = cpu_to_le16(sizeof(struct mrvl_meshie)); in protocol_id_set()
635 ie = (struct mrvl_meshie *) &cmd.data[0]; in protocol_id_set()
640 ret = lbs_mesh_config_send(priv, &cmd, CMD_ACT_MESH_CONFIG_SET, in protocol_id_set()
678 struct cmd_ds_mesh_config cmd; in metric_id_set() local
685 memset(&cmd, 0, sizeof(cmd)); in metric_id_set()
693 cmd.length = cpu_to_le16(sizeof(struct mrvl_meshie)); in metric_id_set()
696 ie = (struct mrvl_meshie *) &cmd.data[0]; in metric_id_set()
701 ret = lbs_mesh_config_send(priv, &cmd, CMD_ACT_MESH_CONFIG_SET, in metric_id_set()
739 struct cmd_ds_mesh_config cmd; in capability_set() local
746 memset(&cmd, 0, sizeof(cmd)); in capability_set()
754 cmd.length = cpu_to_le16(sizeof(struct mrvl_meshie)); in capability_set()
757 ie = (struct mrvl_meshie *) &cmd.data[0]; in capability_set()
762 ret = lbs_mesh_config_send(priv, &cmd, CMD_ACT_MESH_CONFIG_SET, in capability_set()