Lines Matching refs:cmd
866 struct i2400m_cmd_enter_power_save *cmd; in i2400m_cmd_enter_powersave() local
870 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in i2400m_cmd_enter_powersave()
871 if (cmd == NULL) in i2400m_cmd_enter_powersave()
873 cmd->hdr.type = cpu_to_le16(I2400M_MT_CMD_ENTER_POWERSAVE); in i2400m_cmd_enter_powersave()
874 cmd->hdr.length = cpu_to_le16(sizeof(*cmd) - sizeof(cmd->hdr)); in i2400m_cmd_enter_powersave()
875 cmd->hdr.version = cpu_to_le16(I2400M_L3L4_VERSION); in i2400m_cmd_enter_powersave()
876 cmd->tlv.type = cpu_to_le16(I2400M_TLV_TYPE_WAKEUP_MODE); in i2400m_cmd_enter_powersave()
877 cmd->tlv.length = cpu_to_le16(sizeof(cmd->val)); in i2400m_cmd_enter_powersave()
878 cmd->val = cpu_to_le32(I2400M_WAKEUP_ENABLED); in i2400m_cmd_enter_powersave()
880 ack_skb = i2400m_msg_to_dev(i2400m, cmd, sizeof(*cmd)); in i2400m_cmd_enter_powersave()
899 kfree(cmd); in i2400m_cmd_enter_powersave()
930 struct i2400m_l3l4_hdr *cmd; in i2400m_get_device_info() local
938 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in i2400m_get_device_info()
939 if (cmd == NULL) in i2400m_get_device_info()
941 cmd->type = cpu_to_le16(I2400M_MT_GET_DEVICE_INFO); in i2400m_get_device_info()
942 cmd->length = 0; in i2400m_get_device_info()
943 cmd->version = cpu_to_le16(I2400M_L3L4_VERSION); in i2400m_get_device_info()
945 ack_skb = i2400m_msg_to_dev(i2400m, cmd, sizeof(*cmd)); in i2400m_get_device_info()
970 kfree(cmd); in i2400m_get_device_info()
977 kfree(cmd); in i2400m_get_device_info()
1012 struct i2400m_l3l4_hdr *cmd; in i2400m_firmware_check() local
1021 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in i2400m_firmware_check()
1022 if (cmd == NULL) in i2400m_firmware_check()
1024 cmd->type = cpu_to_le16(I2400M_MT_GET_LM_VERSION); in i2400m_firmware_check()
1025 cmd->length = 0; in i2400m_firmware_check()
1026 cmd->version = cpu_to_le16(I2400M_L3L4_VERSION); in i2400m_firmware_check()
1028 ack_skb = i2400m_msg_to_dev(i2400m, cmd, sizeof(*cmd)); in i2400m_firmware_check()
1074 kfree(cmd); in i2400m_firmware_check()
1096 struct i2400m_l3l4_hdr *cmd; in i2400m_cmd_exit_idle() local
1100 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in i2400m_cmd_exit_idle()
1101 if (cmd == NULL) in i2400m_cmd_exit_idle()
1103 cmd->type = cpu_to_le16(I2400M_MT_CMD_EXIT_IDLE); in i2400m_cmd_exit_idle()
1104 cmd->length = 0; in i2400m_cmd_exit_idle()
1105 cmd->version = cpu_to_le16(I2400M_L3L4_VERSION); in i2400m_cmd_exit_idle()
1107 ack_skb = i2400m_msg_to_dev(i2400m, cmd, sizeof(*cmd)); in i2400m_cmd_exit_idle()
1118 kfree(cmd); in i2400m_cmd_exit_idle()
1144 struct i2400m_l3l4_hdr *cmd; in i2400m_cmd_get_state() local
1150 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in i2400m_cmd_get_state()
1151 if (cmd == NULL) in i2400m_cmd_get_state()
1153 cmd->type = cpu_to_le16(I2400M_MT_GET_STATE); in i2400m_cmd_get_state()
1154 cmd->length = 0; in i2400m_cmd_get_state()
1155 cmd->version = cpu_to_le16(I2400M_L3L4_VERSION); in i2400m_cmd_get_state()
1157 ack_skb = i2400m_msg_to_dev(i2400m, cmd, sizeof(*cmd)); in i2400m_cmd_get_state()
1177 kfree(cmd); in i2400m_cmd_get_state()
1199 struct i2400m_l3l4_hdr *cmd; in i2400m_set_init_config() local
1220 buf = kzalloc(sizeof(*cmd) + argsize, GFP_KERNEL); in i2400m_set_init_config()
1223 cmd = buf; in i2400m_set_init_config()
1224 cmd->type = cpu_to_le16(I2400M_MT_SET_INIT_CONFIG); in i2400m_set_init_config()
1225 cmd->length = cpu_to_le16(argsize); in i2400m_set_init_config()
1226 cmd->version = cpu_to_le16(I2400M_L3L4_VERSION); in i2400m_set_init_config()
1229 itr = buf + sizeof(*cmd); in i2400m_set_init_config()
1238 ack_skb = i2400m_msg_to_dev(i2400m, buf, sizeof(*cmd) + argsize); in i2400m_set_init_config()
1288 } *cmd; in i2400m_set_idle_timeout() local
1297 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in i2400m_set_idle_timeout()
1298 if (cmd == NULL) in i2400m_set_idle_timeout()
1300 cmd->hdr.type = cpu_to_le16(I2400M_MT_GET_STATE); in i2400m_set_idle_timeout()
1301 cmd->hdr.length = cpu_to_le16(sizeof(*cmd) - sizeof(cmd->hdr)); in i2400m_set_idle_timeout()
1302 cmd->hdr.version = cpu_to_le16(I2400M_L3L4_VERSION); in i2400m_set_idle_timeout()
1304 cmd->cit.hdr.type = in i2400m_set_idle_timeout()
1306 cmd->cit.hdr.length = cpu_to_le16(sizeof(cmd->cit.timeout)); in i2400m_set_idle_timeout()
1307 cmd->cit.timeout = cpu_to_le32(msecs); in i2400m_set_idle_timeout()
1309 ack_skb = i2400m_msg_to_dev(i2400m, cmd, sizeof(*cmd)); in i2400m_set_idle_timeout()
1327 kfree(cmd); in i2400m_set_idle_timeout()