Lines Matching defs:di
14 static void iwl_pci_print_dev_info(const char *pfx, const struct iwl_dev_info *di)
16 u16 subdevice_mask = GENMASK(di->subdevice_m_h, di->subdevice_m_l);
20 if (di->match_rf_type)
22 " rf_type=%03x", di->rf_type);
27 if (di->match_bw_limit)
29 " bw_limit=%d", di->bw_limit);
34 if (di->match_rf_id)
36 " rf_id=0x%x", di->rf_id);
41 if (di->match_cdb)
43 " cdb=%d", di->cdb);
48 if (di->match_discrete)
51 di->discrete);
57 pfx, di->device, di->subdevice, subdevice_mask, buf);
65 const struct iwl_dev_info *di = &iwl_dev_info_table[idx];
68 ret = iwl_pci_find_dev_info(di->device, di->subdevice,
69 di->rf_type, di->cdb,
70 di->rf_id, di->bw_limit,
71 di->discrete);
73 iwl_pci_print_dev_info("No entry found for: ", di);
76 } else if (ret != di) {
77 iwl_pci_print_dev_info("searched: ", di);
94 const struct iwl_dev_info *di = &iwl_dev_info_table[idx];
97 if (!di->match_discrete)
100 ret = iwl_pci_find_dev_info(di->device, di->subdevice,
101 di->rf_type, di->cdb,
102 di->rf_id, di->bw_limit,
103 !di->discrete);
106 KUNIT_EXPECT_PTR_EQ(test, di->cfg, ret->cfg);
108 KUNIT_EXPECT_NE(test, strcmp(di->name, ret->name), 0);
117 const struct iwl_dev_info *di = &iwl_dev_info_table[idx];
119 KUNIT_ASSERT_TRUE(test, di->name);
163 const struct iwl_dev_info *di = &iwl_dev_info_table[i];
164 u16 subdevice_mask = GENMASK(di->subdevice_m_h,
165 di->subdevice_m_l);
168 if (di->match_bw_limit == 1 && di->bw_limit == 1)
169 KUNIT_EXPECT_NE(test, di->cfg->bw_limit, 0);
172 if (di->subdevice == (u16)IWL_CFG_ANY)
181 KUNIT_EXPECT_EQ(test, (int)di->match_rf_id, 0);
182 KUNIT_EXPECT_EQ(test, (int)di->match_bw_limit, 0);
189 const struct iwl_dev_info *di = &iwl_dev_info_table[i];
191 if (!strstr(di->name, "Killer"))
194 KUNIT_EXPECT_NE(test, di->subdevice, (u16)IWL_CFG_ANY);
272 const struct iwl_dev_info *di;
287 di = iwl_pci_find_dev_info(s->device, s->subdevice,
290 KUNIT_EXPECT_PTR_NE_MSG(test, di, NULL,