Home
last modified time | relevance | path

Searched refs:tmp_res (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/drivers/xen/
H A Dunpopulated-alloc.c37 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, ret); in fill_list()
79 kfree(tmp_res); in fill_list()
[all …]
/openbmc/linux/arch/arm/xen/
H A Denlighten.c317 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()
/openbmc/linux/drivers/pci/
H A Dof.c288 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 Dsetup-bus.c370 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()
/openbmc/linux/drivers/scsi/aic94xx/
H A Daic94xx_tmf.c164 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()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-mlxbf.c1072 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()
/openbmc/linux/drivers/staging/media/atomisp/i2c/ov5693/
H A Datomisp-ov5693.c1287 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()
/openbmc/linux/drivers/net/bonding/
H A Dbond_main.c4772 int tmp_res; in bond_change_mtu() local
4777 tmp_res = dev_set_mtu(rollback_slave->dev, bond_dev->mtu); in bond_change_mtu()
4778 if (tmp_res) in bond_change_mtu()
4780 tmp_res); in bond_change_mtu()
4843 int tmp_res; in bond_set_mac_address() local
4848 tmp_res = dev_set_mac_address(rollback_slave->dev, in bond_set_mac_address()
4850 if (tmp_res) { in bond_set_mac_address()
4852 __func__, tmp_res); in bond_set_mac_address()