Lines Matching refs:cmd
25 struct cmd_ds_mesh_access *cmd) in lbs_mesh_access() argument
31 cmd->hdr.command = cpu_to_le16(CMD_MESH_ACCESS); in lbs_mesh_access()
32 cmd->hdr.size = cpu_to_le16(sizeof(*cmd)); in lbs_mesh_access()
33 cmd->hdr.result = 0; in lbs_mesh_access()
35 cmd->action = cpu_to_le16(cmd_action); in lbs_mesh_access()
37 ret = lbs_cmd_with_response(priv, CMD_MESH_ACCESS, cmd); in lbs_mesh_access()
44 struct cmd_ds_mesh_config *cmd, in __lbs_mesh_config_send() argument
60 cmd->hdr.command = cpu_to_le16(command); in __lbs_mesh_config_send()
61 cmd->hdr.size = cpu_to_le16(sizeof(struct cmd_ds_mesh_config)); in __lbs_mesh_config_send()
62 cmd->hdr.result = 0; in __lbs_mesh_config_send()
64 cmd->type = cpu_to_le16(type); in __lbs_mesh_config_send()
65 cmd->action = cpu_to_le16(action); in __lbs_mesh_config_send()
67 ret = lbs_cmd_with_response(priv, command, cmd); in __lbs_mesh_config_send()
74 struct cmd_ds_mesh_config *cmd, in lbs_mesh_config_send() argument
82 ret = __lbs_mesh_config_send(priv, cmd, action, type); in lbs_mesh_config_send()
94 struct cmd_ds_mesh_config cmd; in lbs_mesh_config() local
97 memset(&cmd, 0, sizeof(cmd)); in lbs_mesh_config()
98 cmd.channel = cpu_to_le16(chan); in lbs_mesh_config()
99 ie = (struct mrvl_meshie *)cmd.data; in lbs_mesh_config()
117 cmd.length = cpu_to_le16(sizeof(struct mrvl_meshie_val)); in lbs_mesh_config()
128 return __lbs_mesh_config_send(priv, &cmd, action, priv->mesh_tlv); in lbs_mesh_config()
334 struct cmd_ds_mesh_config cmd; in mesh_get_default_parameters() local
337 memset(&cmd, 0, sizeof(struct cmd_ds_mesh_config)); in mesh_get_default_parameters()
338 ret = lbs_mesh_config_send(priv, &cmd, CMD_ACT_MESH_CONFIG_GET, in mesh_get_default_parameters()
344 memcpy(defs, &cmd.data[0], sizeof(struct mrvl_mesh_defaults)); in mesh_get_default_parameters()
380 struct cmd_ds_mesh_config cmd; in bootflag_set() local
384 memset(&cmd, 0, sizeof(cmd)); in bootflag_set()
389 *((__le32 *)&cmd.data[0]) = cpu_to_le32(!!datum); in bootflag_set()
390 cmd.length = cpu_to_le16(sizeof(uint32_t)); in bootflag_set()
391 ret = lbs_mesh_config_send(priv, &cmd, CMD_ACT_MESH_CONFIG_SET, in bootflag_set()
430 struct cmd_ds_mesh_config cmd; in boottime_set() local
434 memset(&cmd, 0, sizeof(cmd)); in boottime_set()
448 cmd.data[0] = datum; in boottime_set()
449 cmd.length = cpu_to_le16(sizeof(uint8_t)); in boottime_set()
450 ret = lbs_mesh_config_send(priv, &cmd, CMD_ACT_MESH_CONFIG_SET, in boottime_set()
489 struct cmd_ds_mesh_config cmd; in channel_set() local
493 memset(&cmd, 0, sizeof(cmd)); in channel_set()
498 *((__le16 *)&cmd.data[0]) = cpu_to_le16(datum); in channel_set()
499 cmd.length = cpu_to_le16(sizeof(uint16_t)); in channel_set()
500 ret = lbs_mesh_config_send(priv, &cmd, CMD_ACT_MESH_CONFIG_SET, in channel_set()
547 struct cmd_ds_mesh_config cmd; in mesh_id_set() local
557 memset(&cmd, 0, sizeof(struct cmd_ds_mesh_config)); in mesh_id_set()
558 ie = (struct mrvl_meshie *) &cmd.data[0]; in mesh_id_set()
563 cmd.length = cpu_to_le16(sizeof(struct mrvl_meshie)); in mesh_id_set()
575 ret = lbs_mesh_config_send(priv, &cmd, CMD_ACT_MESH_CONFIG_SET, in mesh_id_set()
613 struct cmd_ds_mesh_config cmd; in protocol_id_set() local
620 memset(&cmd, 0, sizeof(cmd)); in protocol_id_set()
628 cmd.length = cpu_to_le16(sizeof(struct mrvl_meshie)); in protocol_id_set()
631 ie = (struct mrvl_meshie *) &cmd.data[0]; in protocol_id_set()
636 ret = lbs_mesh_config_send(priv, &cmd, CMD_ACT_MESH_CONFIG_SET, in protocol_id_set()
674 struct cmd_ds_mesh_config cmd; in metric_id_set() local
681 memset(&cmd, 0, sizeof(cmd)); in metric_id_set()
689 cmd.length = cpu_to_le16(sizeof(struct mrvl_meshie)); in metric_id_set()
692 ie = (struct mrvl_meshie *) &cmd.data[0]; in metric_id_set()
697 ret = lbs_mesh_config_send(priv, &cmd, CMD_ACT_MESH_CONFIG_SET, in metric_id_set()
735 struct cmd_ds_mesh_config cmd; in capability_set() local
742 memset(&cmd, 0, sizeof(cmd)); in capability_set()
750 cmd.length = cpu_to_le16(sizeof(struct mrvl_meshie)); in capability_set()
753 ie = (struct mrvl_meshie *) &cmd.data[0]; in capability_set()
758 ret = lbs_mesh_config_send(priv, &cmd, CMD_ACT_MESH_CONFIG_SET, in capability_set()