Lines Matching defs:hs_cfg
397 int cmd_type, struct mwifiex_ds_hs_cfg *hs_cfg)
404 if (!hs_cfg)
416 if (hs_cfg->is_invoke_hostcmd) {
417 if (hs_cfg->conditions == HS_CFG_CANCEL) {
423 prev_cond = le32_to_cpu(adapter->hs_cfg
425 adapter->hs_cfg.conditions =
426 cpu_to_le32(hs_cfg->conditions);
427 } else if (hs_cfg->conditions) {
428 adapter->hs_cfg.conditions =
429 cpu_to_le32(hs_cfg->conditions);
430 adapter->hs_cfg.gpio = (u8)hs_cfg->gpio;
431 if (hs_cfg->gap)
432 adapter->hs_cfg.gap = (u8)hs_cfg->gap;
433 } else if (adapter->hs_cfg.conditions ==
444 &adapter->hs_cfg,
447 if (hs_cfg->conditions == HS_CFG_CANCEL)
449 adapter->hs_cfg.conditions =
452 adapter->hs_cfg.conditions =
453 cpu_to_le32(hs_cfg->conditions);
454 adapter->hs_cfg.gpio = (u8)hs_cfg->gpio;
455 adapter->hs_cfg.gap = (u8)hs_cfg->gap;
459 hs_cfg->conditions = le32_to_cpu(adapter->hs_cfg.conditions);
460 hs_cfg->gpio = adapter->hs_cfg.gpio;
461 hs_cfg->gap = adapter->hs_cfg.gap;