• Home
  • Raw
  • Download

Lines Matching refs:adapter

1793 	struct s390_io_adapter *adapter;  in register_io_adapter()  local
1804 adapter = kzalloc(sizeof(*adapter), GFP_KERNEL); in register_io_adapter()
1805 if (!adapter) in register_io_adapter()
1808 INIT_LIST_HEAD(&adapter->maps); in register_io_adapter()
1809 init_rwsem(&adapter->maps_lock); in register_io_adapter()
1810 atomic_set(&adapter->nr_maps, 0); in register_io_adapter()
1811 adapter->id = adapter_info.id; in register_io_adapter()
1812 adapter->isc = adapter_info.isc; in register_io_adapter()
1813 adapter->maskable = adapter_info.maskable; in register_io_adapter()
1814 adapter->masked = false; in register_io_adapter()
1815 adapter->swap = adapter_info.swap; in register_io_adapter()
1816 dev->kvm->arch.adapters[adapter->id] = adapter; in register_io_adapter()
1824 struct s390_io_adapter *adapter = get_io_adapter(kvm, id); in kvm_s390_mask_adapter() local
1826 if (!adapter || !adapter->maskable) in kvm_s390_mask_adapter()
1828 ret = adapter->masked; in kvm_s390_mask_adapter()
1829 adapter->masked = masked; in kvm_s390_mask_adapter()
1835 struct s390_io_adapter *adapter = get_io_adapter(kvm, id); in kvm_s390_adapter_map() local
1839 if (!adapter || !addr) in kvm_s390_adapter_map()
1858 down_write(&adapter->maps_lock); in kvm_s390_adapter_map()
1859 if (atomic_inc_return(&adapter->nr_maps) < MAX_S390_ADAPTER_MAPS) { in kvm_s390_adapter_map()
1860 list_add_tail(&map->list, &adapter->maps); in kvm_s390_adapter_map()
1866 up_write(&adapter->maps_lock); in kvm_s390_adapter_map()
1875 struct s390_io_adapter *adapter = get_io_adapter(kvm, id); in kvm_s390_adapter_unmap() local
1879 if (!adapter || !addr) in kvm_s390_adapter_unmap()
1882 down_write(&adapter->maps_lock); in kvm_s390_adapter_unmap()
1883 list_for_each_entry_safe(map, tmp, &adapter->maps, list) { in kvm_s390_adapter_unmap()
1886 atomic_dec(&adapter->nr_maps); in kvm_s390_adapter_unmap()
1893 up_write(&adapter->maps_lock); in kvm_s390_adapter_unmap()
1920 struct s390_io_adapter *adapter; in modify_io_adapter() local
1926 adapter = get_io_adapter(dev->kvm, req.id); in modify_io_adapter()
1927 if (!adapter) in modify_io_adapter()
2022 static struct s390_map_info *get_map_info(struct s390_io_adapter *adapter, in get_map_info() argument
2027 if (!adapter) in get_map_info()
2030 list_for_each_entry(map, &adapter->maps, list) { in get_map_info()
2038 struct s390_io_adapter *adapter, in adapter_indicators_set() argument
2046 info = get_map_info(adapter, adapter_int->ind_addr); in adapter_indicators_set()
2050 bit = get_ind_bit(info->addr, adapter_int->ind_offset, adapter->swap); in adapter_indicators_set()
2055 info = get_map_info(adapter, adapter_int->summary_addr); in adapter_indicators_set()
2062 adapter->swap); in adapter_indicators_set()
2080 struct s390_io_adapter *adapter; in set_adapter_int() local
2085 adapter = get_io_adapter(kvm, e->adapter.adapter_id); in set_adapter_int()
2086 if (!adapter) in set_adapter_int()
2088 down_read(&adapter->maps_lock); in set_adapter_int()
2089 ret = adapter_indicators_set(kvm, adapter, &e->adapter); in set_adapter_int()
2090 up_read(&adapter->maps_lock); in set_adapter_int()
2091 if ((ret > 0) && !adapter->masked) { in set_adapter_int()
2095 .parm64 = (adapter->isc << 27) | 0x80000000, in set_adapter_int()
2112 e->adapter.summary_addr = ue->u.adapter.summary_addr; in kvm_set_routing_entry()
2113 e->adapter.ind_addr = ue->u.adapter.ind_addr; in kvm_set_routing_entry()
2114 e->adapter.summary_offset = ue->u.adapter.summary_offset; in kvm_set_routing_entry()
2115 e->adapter.ind_offset = ue->u.adapter.ind_offset; in kvm_set_routing_entry()
2116 e->adapter.adapter_id = ue->u.adapter.adapter_id; in kvm_set_routing_entry()