Lines Matching refs:di

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