Lines Matching refs:ac

24 	struct ap_card *ac = to_ap_card(dev);  in hwtype_show()  local
26 return snprintf(buf, PAGE_SIZE, "%d\n", ac->ap_dev.device_type); in hwtype_show()
34 struct ap_card *ac = to_ap_card(dev); in raw_hwtype_show() local
36 return snprintf(buf, PAGE_SIZE, "%d\n", ac->raw_hwtype); in raw_hwtype_show()
44 struct ap_card *ac = to_ap_card(dev); in depth_show() local
46 return snprintf(buf, PAGE_SIZE, "%d\n", ac->queue_depth); in depth_show()
54 struct ap_card *ac = to_ap_card(dev); in ap_functions_show() local
56 return snprintf(buf, PAGE_SIZE, "0x%08X\n", ac->functions); in ap_functions_show()
65 struct ap_card *ac = to_ap_card(dev); in request_count_show() local
70 req_cnt = atomic_read(&ac->total_request_count); in request_count_show()
79 struct ap_card *ac = to_ap_card(dev); in request_count_store() local
83 for_each_ap_queue(aq, ac) in request_count_store()
86 atomic_set(&ac->total_request_count, 0); in request_count_store()
96 struct ap_card *ac = to_ap_card(dev); in requestq_count_show() local
102 for_each_ap_queue(aq, ac) in requestq_count_show()
113 struct ap_card *ac = to_ap_card(dev); in pendingq_count_show() local
119 for_each_ap_queue(aq, ac) in pendingq_count_show()
163 struct ap_card *ac = to_ap_card(dev); in ap_card_device_release() local
165 if (!list_empty(&ac->list)) { in ap_card_device_release()
167 list_del_init(&ac->list); in ap_card_device_release()
170 kfree(ac); in ap_card_device_release()
176 struct ap_card *ac; in ap_card_create() local
178 ac = kzalloc(sizeof(*ac), GFP_KERNEL); in ap_card_create()
179 if (!ac) in ap_card_create()
181 INIT_LIST_HEAD(&ac->list); in ap_card_create()
182 INIT_LIST_HEAD(&ac->queues); in ap_card_create()
183 ac->ap_dev.device.release = ap_card_device_release; in ap_card_create()
184 ac->ap_dev.device.type = &ap_card_type; in ap_card_create()
185 ac->ap_dev.device_type = comp_type; in ap_card_create()
186 ac->raw_hwtype = raw_type; in ap_card_create()
187 ac->queue_depth = queue_depth; in ap_card_create()
188 ac->functions = functions; in ap_card_create()
189 ac->id = id; in ap_card_create()
190 return ac; in ap_card_create()