Lines Matching refs:ac
25 struct ap_card *ac = to_ap_card(dev);
27 return scnprintf(buf, PAGE_SIZE, "%d\n", ac->ap_dev.device_type);
35 struct ap_card *ac = to_ap_card(dev);
37 return scnprintf(buf, PAGE_SIZE, "%d\n", ac->raw_hwtype);
45 struct ap_card *ac = to_ap_card(dev);
47 return scnprintf(buf, PAGE_SIZE, "%d\n", ac->queue_depth);
55 struct ap_card *ac = to_ap_card(dev);
57 return scnprintf(buf, PAGE_SIZE, "0x%08X\n", ac->functions);
66 struct ap_card *ac = to_ap_card(dev);
71 req_cnt = atomic64_read(&ac->total_request_count);
82 struct ap_card *ac = to_ap_card(dev);
86 if (ac == aq->card)
89 atomic64_set(&ac->total_request_count, 0);
102 struct ap_card *ac = to_ap_card(dev);
107 if (ac == aq->card)
121 struct ap_card *ac = to_ap_card(dev);
126 if (ac == aq->card)
146 struct ap_card *ac = to_ap_card(dev);
148 return scnprintf(buf, PAGE_SIZE, "%d\n", ac->config ? 1 : 0);
156 struct ap_card *ac = to_ap_card(dev);
161 if (cfg && !ac->config)
162 rc = sclp_ap_configure(ac->id);
163 else if (!cfg && ac->config)
164 rc = sclp_ap_deconfigure(ac->id);
168 ac->config = cfg ? true : false;
204 struct ap_card *ac = to_ap_card(dev);
206 kfree(ac);
212 struct ap_card *ac;
214 ac = kzalloc(sizeof(*ac), GFP_KERNEL);
215 if (!ac)
217 ac->ap_dev.device.release = ap_card_device_release;
218 ac->ap_dev.device.type = &ap_card_type;
219 ac->ap_dev.device_type = comp_type;
220 ac->raw_hwtype = raw_type;
221 ac->queue_depth = queue_depth;
222 ac->functions = functions;
223 ac->id = id;
224 return ac;