/kernel/linux/linux-6.6/drivers/xen/ |
H A D | unpopulated-alloc.c | 37 struct resource *res, *tmp_res = NULL; in fill_list() local 65 tmp_res = kzalloc(sizeof(*tmp_res), GFP_KERNEL); in fill_list() 66 if (!tmp_res) { in fill_list() 71 tmp_res->name = res->name; in fill_list() 72 tmp_res->start = res->start; in fill_list() 73 tmp_res->end = res->end; in fill_list() 74 tmp_res->flags = res->flags; in fill_list() 76 ret = request_resource(&iomem_resource, tmp_res); in fill_list() 78 pr_err("Cannot request resource %pR (%d)\n", tmp_res, re in fill_list() [all...] |
/kernel/linux/linux-6.6/arch/arm/xen/ |
H A D | enlighten.c | 317 struct resource *regs, *tmp_res; in arch_xen_unpopulated_init() local 386 tmp_res = kzalloc(sizeof(*tmp_res), GFP_KERNEL); in arch_xen_unpopulated_init() 387 if (!tmp_res) { in arch_xen_unpopulated_init() 392 tmp_res->name = "Unavailable space"; in arch_xen_unpopulated_init() 393 tmp_res->start = start; in arch_xen_unpopulated_init() 394 tmp_res->end = end; in arch_xen_unpopulated_init() 396 rc = insert_resource(&xen_resource, tmp_res); in arch_xen_unpopulated_init() 398 pr_err("Cannot insert resource %pR (%d)\n", tmp_res, rc); in arch_xen_unpopulated_init() 399 kfree(tmp_res); in arch_xen_unpopulated_init() [all...] |
/kernel/linux/linux-5.10/drivers/pci/ |
H A D | of.c | 266 struct resource *res, tmp_res; in devm_of_pci_get_host_bridge_resources() local 320 err = of_pci_range_to_resource(&range, dev_node, &tmp_res); in devm_of_pci_get_host_bridge_resources() 324 res = devm_kmemdup(dev, &tmp_res, sizeof(tmp_res), GFP_KERNEL); in devm_of_pci_get_host_bridge_resources() 369 err = of_pci_range_to_resource(&range, dev_node, &tmp_res); in devm_of_pci_get_host_bridge_resources() 373 res = devm_kmemdup(dev, &tmp_res, sizeof(tmp_res), GFP_KERNEL); in devm_of_pci_get_host_bridge_resources()
|
H A D | setup-bus.c | 373 struct pci_dev_resource *dev_res, *tmp_res, *dev_res2; in __assign_resources_sorted() local 390 list_for_each_entry_safe(dev_res, tmp_res, head, list) { in __assign_resources_sorted() 447 list_for_each_entry_safe(dev_res, tmp_res, head, list) in __assign_resources_sorted()
|
/kernel/linux/linux-6.6/drivers/pci/ |
H A D | of.c | 288 struct resource *res, tmp_res; in devm_of_pci_get_host_bridge_resources() local 342 err = of_pci_range_to_resource(&range, dev_node, &tmp_res); in devm_of_pci_get_host_bridge_resources() 346 res = devm_kmemdup(dev, &tmp_res, sizeof(tmp_res), GFP_KERNEL); in devm_of_pci_get_host_bridge_resources() 392 err = of_pci_range_to_resource(&range, dev_node, &tmp_res); in devm_of_pci_get_host_bridge_resources() 396 res = devm_kmemdup(dev, &tmp_res, sizeof(tmp_res), GFP_KERNEL); in devm_of_pci_get_host_bridge_resources()
|
H A D | setup-bus.c | 370 struct pci_dev_resource *dev_res, *tmp_res, *dev_res2; in __assign_resources_sorted() local 387 list_for_each_entry_safe(dev_res, tmp_res, head, list) { in __assign_resources_sorted() 444 list_for_each_entry_safe(dev_res, tmp_res, head, list) in __assign_resources_sorted()
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
H A D | i2c-mlxbf.c | 1047 struct mlxbf_i2c_resource *tmp_res; in mlxbf_i2c_init_resource() local 1053 tmp_res = devm_kzalloc(dev, sizeof(struct mlxbf_i2c_resource), in mlxbf_i2c_init_resource() 1055 if (!tmp_res) in mlxbf_i2c_init_resource() 1058 tmp_res->params = platform_get_resource(pdev, IORESOURCE_MEM, type); in mlxbf_i2c_init_resource() 1059 if (!tmp_res->params) { in mlxbf_i2c_init_resource() 1060 devm_kfree(dev, tmp_res); in mlxbf_i2c_init_resource() 1064 tmp_res->io = devm_ioremap_resource(dev, tmp_res->params); in mlxbf_i2c_init_resource() 1065 if (IS_ERR(tmp_res->io)) { in mlxbf_i2c_init_resource() 1066 devm_kfree(dev, tmp_res); in mlxbf_i2c_init_resource() [all...] |
/kernel/linux/linux-5.10/drivers/scsi/aic94xx/ |
H A D | aic94xx_tmf.c | 164 int res, tmp_res, i; in asd_I_T_nexus_reset() local 183 tmp_res = asd_clear_nexus_I_T(dev, NEXUS_PHASE_RESUME); in asd_I_T_nexus_reset() 184 if (tmp_res == TC_RESUME) in asd_I_T_nexus_reset() 193 "Failed to resume nexus after reset 0x%x\n", tmp_res); in asd_I_T_nexus_reset()
|
/kernel/linux/linux-6.6/drivers/scsi/aic94xx/ |
H A D | aic94xx_tmf.c | 164 int res, tmp_res, i; in asd_I_T_nexus_reset() local 183 tmp_res = asd_clear_nexus_I_T(dev, NEXUS_PHASE_RESUME); in asd_I_T_nexus_reset() 184 if (tmp_res == TC_RESUME) in asd_I_T_nexus_reset() 193 "Failed to resume nexus after reset 0x%x\n", tmp_res); in asd_I_T_nexus_reset()
|
/kernel/linux/linux-6.6/drivers/i2c/busses/ |
H A D | i2c-mlxbf.c | 1072 struct mlxbf_i2c_resource *tmp_res; in mlxbf_i2c_init_resource() local 1078 tmp_res = devm_kzalloc(dev, sizeof(struct mlxbf_i2c_resource), in mlxbf_i2c_init_resource() 1080 if (!tmp_res) in mlxbf_i2c_init_resource() 1083 tmp_res->io = devm_platform_get_and_ioremap_resource(pdev, type, &tmp_res->params); in mlxbf_i2c_init_resource() 1084 if (IS_ERR(tmp_res->io)) { in mlxbf_i2c_init_resource() 1085 devm_kfree(dev, tmp_res); in mlxbf_i2c_init_resource() 1086 return PTR_ERR(tmp_res->io); in mlxbf_i2c_init_resource() 1089 tmp_res->type = type; in mlxbf_i2c_init_resource() 1091 *res = tmp_res; in mlxbf_i2c_init_resource() [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/i2c/ |
H A D | atomisp-gc2235.c | 710 struct gc2235_resolution *tmp_res = NULL; in nearest_resolution_index() local 713 tmp_res = &gc2235_res[i]; in nearest_resolution_index() 714 dist = distance(tmp_res, w, h); in nearest_resolution_index()
|
H A D | atomisp-gc0310.c | 923 struct gc0310_resolution *tmp_res = NULL; in nearest_resolution_index() local 926 tmp_res = &gc0310_res[i]; in nearest_resolution_index() 927 dist = distance(tmp_res, w, h); in nearest_resolution_index()
|
H A D | atomisp-ov2722.c | 823 struct ov2722_resolution *tmp_res = NULL; in nearest_resolution_index() local 826 tmp_res = &ov2722_res[i]; in nearest_resolution_index() 827 dist = distance(tmp_res, w, h); in nearest_resolution_index()
|
H A D | atomisp-ov2680.c | 881 struct ov2680_resolution *tmp_res = NULL; in nearest_resolution_index() local 884 tmp_res = &ov2680_res[i]; in nearest_resolution_index() 885 dist = distance(tmp_res, w, h); in nearest_resolution_index()
|
H A D | atomisp-mt9m114.c | 622 const struct mt9m114_res_struct *tmp_res = NULL; in nearest_resolution_index() local 625 tmp_res = &mt9m114_res[i]; in nearest_resolution_index() 626 dist = distance(tmp_res, w, h); in nearest_resolution_index()
|
/kernel/linux/linux-5.10/drivers/net/bonding/ |
H A D | bond_main.c | 4172 int tmp_res; in bond_change_mtu() local 4177 tmp_res = dev_set_mtu(rollback_slave->dev, bond_dev->mtu); in bond_change_mtu() 4178 if (tmp_res) in bond_change_mtu() 4180 tmp_res); in bond_change_mtu() 4243 int tmp_res; in bond_set_mac_address() local 4248 tmp_res = dev_set_mac_address(rollback_slave->dev, in bond_set_mac_address() 4250 if (tmp_res) { in bond_set_mac_address() 4252 __func__, tmp_res); in bond_set_mac_address()
|
/kernel/linux/linux-6.6/drivers/net/bonding/ |
H A D | bond_main.c | 4718 int tmp_res; in bond_change_mtu() local 4723 tmp_res = dev_set_mtu(rollback_slave->dev, bond_dev->mtu); in bond_change_mtu() 4724 if (tmp_res) in bond_change_mtu() 4726 tmp_res); in bond_change_mtu() 4789 int tmp_res; in bond_set_mac_address() local 4794 tmp_res = dev_set_mac_address(rollback_slave->dev, in bond_set_mac_address() 4796 if (tmp_res) { in bond_set_mac_address() 4798 __func__, tmp_res); in bond_set_mac_address()
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/i2c/ov5693/ |
H A D | atomisp-ov5693.c | 1514 struct ov5693_resolution *tmp_res = NULL; in nearest_resolution_index() local 1517 tmp_res = &ov5693_res[i]; in nearest_resolution_index() 1518 dist = distance(tmp_res, w, h); in nearest_resolution_index()
|
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/i2c/ov5693/ |
H A D | atomisp-ov5693.c | 1287 struct ov5693_resolution *tmp_res = NULL; in nearest_resolution_index() local 1290 tmp_res = &ov5693_res[i]; in nearest_resolution_index() 1291 dist = distance(tmp_res, w, h); in nearest_resolution_index()
|