Lines Matching defs:queue

75 /* Hashtable of all queue devices on the AP bus */
353 * ap_queue_info(): Check and get AP queue info.
357 * -1 invalid APQN, TAPQ error or AP queue status which
825 int rc, card, queue, devres, drvres;
829 queue = AP_QID_QUEUE(to_ap_queue(dev)->qid);
832 test_bit_inv(queue, ap_perms.aqm);
837 AP_DBF_DBG("%s reprobing queue=%02x.%04x\n",
838 __func__, card, queue);
841 AP_DBF_WARN("%s reprobing queue=%02x.%04x failed\n",
842 __func__, card, queue);
858 * @queue: the APQI of the queue to check
865 int ap_owned_by_def_drv(int card, int queue)
869 if (card < 0 || card >= AP_DEVICES || queue < 0 || queue >= AP_DOMAINS)
873 test_bit_inv(queue, ap_perms.aqm))
895 int card, queue, rc = 0;
900 for (queue = 0; !rc && queue < AP_DOMAINS; queue++)
901 if (test_bit_inv(queue, aqm) &&
902 test_bit_inv(queue, ap_perms.aqm))
913 int card, queue, devres, drvres, rc = -ENODEV;
926 queue = AP_QID_QUEUE(to_ap_queue(dev)->qid);
929 test_bit_inv(queue, ap_perms.aqm);
936 /* Add queue/card to list of active queues/cards */
965 /* prepare ap queue device removal */
973 /* now do the ap queue device remove */
977 /* Remove queue/card from list of active queues/cards */
1679 AP_DBF_WARN("%s queue=%02x.%04x unsupported type %d\n",
1705 AP_DBF_WARN("%s queue=%02x.%04x unable to map type %d\n",
1709 AP_DBF_INFO("%s queue=%02x.%04x map type %d to %d\n",
1726 * matches for the queue device with a given qid
1735 * matches any queue device with given queue id
1788 * Remove card device and associated queue devices.
1814 * to the existing queue devices. Also take care of the config
1815 * and error state for the queue devices.
1826 AP_DBF_INFO("%s(%d,%d) not in config anymore, rm queue dev\n",
1838 AP_DBF_INFO("%s(%d,%d) queue_info() failed, rm queue dev\n",
1848 /* if no queue device exists, create a new one */
1863 /* register queue device */
1873 AP_DBF_INFO("%s(%d,%d) new (decfg) queue dev created\n",
1876 AP_DBF_INFO("%s(%d,%d) new (chkstop) queue dev created\n",
1879 /* nudge the queue's state machine */
1881 AP_DBF_INFO("%s(%d,%d) new queue dev created\n",
1886 /* handle state changes on already existing queue device */
1897 AP_DBF_DBG("%s(%d,%d) queue dev checkstop on\n",
1908 AP_DBF_DBG("%s(%d,%d) queue dev checkstop off\n",
1914 /* config off this queue device */
1921 AP_DBF_DBG("%s(%d,%d) queue dev config off\n",
1928 /* config on this queue device */
1933 AP_DBF_DBG("%s(%d,%d) queue dev config on\n",
1943 /* re-init (with reset) the queue device */
1945 AP_DBF_INFO("%s(%d,%d) queue dev reinit enforced\n",
1977 AP_DBF_INFO("%s(%d) ap not in config any more, rm card and queue devs\n",
2002 AP_DBF_INFO("%s(%d) no type info (no APQN found), rm card and queue devs\n",
2015 AP_DBF_INFO("%s(%d) no valid type (0) info, rm card and queue devs\n",
2028 AP_DBF_INFO("%s(%d) hwtype %d changed, rm card and queue devs\n",
2035 AP_DBF_INFO("%s(%d) functions 0x%08x changed, rm card and queue devs\n",
2116 /* Verify the domains and the queue devices for this card */
2170 /* check if there is at least one queue available with default domain */
2179 AP_DBF_INFO("%s no queue device with default domain %d available\n",