Lines Matching defs:cfg

24 #define _IS_A(cfg, _struct) __builtin_types_compatible_p(typeof(cfg),	\
27 #define _TRANS_CFG_MARKER(cfg) \
28 (__builtin_choose_expr(_IS_A(cfg, iwl_cfg_trans_params), \
30 __builtin_choose_expr(_IS_A(cfg, iwl_cfg), 0, _invalid_type)))
31 #define _ASSIGN_CFG(cfg) (_TRANS_CFG_MARKER(cfg) + (kernel_ulong_t)&(cfg))
33 #define IWL_PCI_DEVICE(dev, subdev, cfg) \
36 .driver_data = _ASSIGN_CFG(cfg)
557 { .device = (_device), .subdevice = (_subdevice), .cfg = &(_cfg), \
1372 const struct iwl_cfg *cfg;
1379 * at the same time. The cfg is used to compare with the old
1380 * full cfg structs.
1382 cfg = (void *)(ent->driver_data & ~TRANS_CFG_MARKER);
1444 iwl_trans->cfg = dev_info->cfg;
1453 * Note that because we already pass the cfg to the transport above,
1457 if (cfg == &iwl7265_2ac_cfg)
1459 else if (cfg == &iwl7265_2n_cfg)
1461 else if (cfg == &iwl7265_n_cfg)
1465 iwl_trans->cfg = cfg_7265d;
1474 if (iwl_trans->cfg == &iwl_ax201_cfg_qu_hr)
1475 iwl_trans->cfg = &iwl_ax201_cfg_qu_c0_hr_b0;
1476 else if (iwl_trans->cfg == &killer1650s_2ax_cfg_qu_b0_hr_b0)
1477 iwl_trans->cfg = &killer1650s_2ax_cfg_qu_c0_hr_b0;
1478 else if (iwl_trans->cfg == &killer1650i_2ax_cfg_qu_b0_hr_b0)
1479 iwl_trans->cfg = &killer1650i_2ax_cfg_qu_c0_hr_b0;
1484 if (iwl_trans->cfg == &iwl_ax201_cfg_qu_hr)
1485 iwl_trans->cfg = &iwl_ax201_cfg_quz_hr;
1486 else if (iwl_trans->cfg == &killer1650s_2ax_cfg_qu_b0_hr_b0)
1487 iwl_trans->cfg = &iwl_ax1650s_cfg_quz_hr;
1488 else if (iwl_trans->cfg == &killer1650i_2ax_cfg_qu_b0_hr_b0)
1489 iwl_trans->cfg = &iwl_ax1650i_cfg_quz_hr;
1494 * If we didn't set the cfg yet, the PCI ID table entry should have
1497 if (!iwl_trans->cfg) {
1505 iwl_trans->cfg = cfg;
1508 /* if we don't have a name yet, copy name from the old cfg */
1510 iwl_trans->name = iwl_trans->cfg->name;
1515 if (WARN_ON(!iwl_trans->cfg->num_rbds)) {
1519 trans_pcie->num_rx_bufs = iwl_trans->cfg->num_rbds;
1727 const struct iwl_cfg *cfg;
1729 cfg = (void *)(id->driver_data & ~TRANS_CFG_MARKER);
1732 cfg->name, cfg->fw_name_pre, cfg->trans.device_family,
1733 iwl_device_family_name(cfg->trans.device_family));
1749 else if (dev_info->cfg && dev_info->cfg->name)
1750 name = dev_info->cfg->name;
1756 name, dev_info->cfg->fw_name_pre, dev_info->cfg->trans.device_family,
1757 iwl_device_family_name(dev_info->cfg->trans.device_family));