Lines Matching defs:qid
300 static bool ap_queue_info(ap_qid_t qid, int *q_type,
307 if (AP_QID_CARD(qid) > ap_max_adapter_id ||
308 AP_QID_QUEUE(qid) > ap_max_domain_id)
312 status = ap_test_queue(qid, ap_apft_available(), &info);
591 AP_QID_CARD(to_ap_queue(dev)->qid) == (int)(long) data)
607 card = AP_QID_CARD(to_ap_queue(dev)->qid);
608 queue = AP_QID_QUEUE(to_ap_queue(dev)->qid);
686 card = AP_QID_CARD(to_ap_queue(dev)->qid);
687 queue = AP_QID_QUEUE(to_ap_queue(dev)->qid);
701 to_ap_queue(dev)->qid);
749 struct ap_queue *ap_get_qdev(ap_qid_t qid)
756 if (aq->qid == qid) {
1226 static int ap_get_compatible_type(ap_qid_t qid, int rawtype, unsigned int func)
1233 AP_QID_CARD(qid), AP_QID_QUEUE(qid), rawtype);
1250 status = ap_qact(qid, 0, &apinfo);
1258 AP_QID_CARD(qid), AP_QID_QUEUE(qid), rawtype);
1261 AP_QID_CARD(qid), AP_QID_QUEUE(qid),
1277 * matches for the queue device with a given qid
1281 return is_queue_dev(dev) && to_ap_queue(dev)->qid == (int)(long) data;
1291 && AP_QID_QUEUE(to_ap_queue(dev)->qid) == (int)(long) data;
1314 ap_qid_t qid;
1327 qid = AP_MKQID(ac->id, dom);
1329 (void *)(long) qid,
1342 if (!ap_queue_info(qid, &type, &func, &depth, &decfg)) {
1354 aq = ap_queue_create(qid, ac->ap_dev.device_type);
1435 ap_qid_t qid;
1467 qid = AP_MKQID(ap, dom);
1468 if (ap_queue_info(qid, &type, &func, &depth, &decfg))
1530 comp_type = ap_get_compatible_type(qid, type, func);