Lines Matching refs:ac
25 struct ap_card *ac = to_ap_card(dev); in hwtype_show() local
27 return sysfs_emit(buf, "%d\n", ac->ap_dev.device_type); in hwtype_show()
35 struct ap_card *ac = to_ap_card(dev); in raw_hwtype_show() local
37 return sysfs_emit(buf, "%d\n", ac->raw_hwtype); in raw_hwtype_show()
45 struct ap_card *ac = to_ap_card(dev); in depth_show() local
47 return sysfs_emit(buf, "%d\n", ac->queue_depth); in depth_show()
55 struct ap_card *ac = to_ap_card(dev); in ap_functions_show() local
57 return sysfs_emit(buf, "0x%08X\n", ac->functions); in ap_functions_show()
66 struct ap_card *ac = to_ap_card(dev); in request_count_show() local
71 req_cnt = atomic64_read(&ac->total_request_count); in request_count_show()
82 struct ap_card *ac = to_ap_card(dev); in request_count_store() local
86 if (ac == aq->card) in request_count_store()
89 atomic64_set(&ac->total_request_count, 0); in request_count_store()
102 struct ap_card *ac = to_ap_card(dev); in requestq_count_show() local
107 if (ac == aq->card) in requestq_count_show()
121 struct ap_card *ac = to_ap_card(dev); in pendingq_count_show() local
126 if (ac == aq->card) in pendingq_count_show()
145 struct ap_card *ac = to_ap_card(dev); in config_show() local
147 return sysfs_emit(buf, "%d\n", ac->config ? 1 : 0); in config_show()
155 struct ap_card *ac = to_ap_card(dev); in config_store() local
160 if (cfg && !ac->config) in config_store()
161 rc = sclp_ap_configure(ac->id); in config_store()
162 else if (!cfg && ac->config) in config_store()
163 rc = sclp_ap_deconfigure(ac->id); in config_store()
167 ac->config = cfg ? true : false; in config_store()
169 ap_send_config_uevent(&ac->ap_dev, ac->config); in config_store()
179 struct ap_card *ac = to_ap_card(dev); in chkstop_show() local
181 return sysfs_emit(buf, "%d\n", ac->chkstop ? 1 : 0); in chkstop_show()
189 struct ap_card *ac = to_ap_card(dev); in max_msg_size_show() local
191 return sysfs_emit(buf, "%u\n", ac->maxmsgsize); in max_msg_size_show()
227 struct ap_card *ac = to_ap_card(dev); in ap_card_device_release() local
229 kfree(ac); in ap_card_device_release()
235 struct ap_card *ac; in ap_card_create() local
237 ac = kzalloc(sizeof(*ac), GFP_KERNEL); in ap_card_create()
238 if (!ac) in ap_card_create()
240 ac->ap_dev.device.release = ap_card_device_release; in ap_card_create()
241 ac->ap_dev.device.type = &ap_card_type; in ap_card_create()
242 ac->ap_dev.device_type = comp_type; in ap_card_create()
243 ac->raw_hwtype = raw_type; in ap_card_create()
244 ac->queue_depth = queue_depth; in ap_card_create()
245 ac->functions = functions; in ap_card_create()
246 ac->id = id; in ap_card_create()
247 ac->maxmsgsize = ml > 0 ? in ap_card_create()
250 return ac; in ap_card_create()