Lines Matching refs:n_entries

404  * n_entries: number of entries inside this ring
428 u16 n_entries;
458 * n_entries: number of entries in this ring
468 u16 n_entries;
632 if (*msgid >= ring->n_entries) {
635 ring->ring_id, *msgid, ring->n_entries);
686 head = (head + 1) % ring->n_entries;
719 bitmap_release_region(ring->msgids, msgid, ring->n_entries);
734 if (pos >= ring->n_entries) {
823 tail = (tail + 1) % ring->n_entries;
890 new_head = (head + 1) % ring->n_entries;
900 msgid = bitmap_find_free_region(ring->msgids, ring->n_entries, 0);
983 ring->n_entries * (sizeof(struct bcm4377_completion_ring_entry) +
990 msg.n_elements = cpu_to_le16(ring->n_entries);
1044 msg.n_elements = cpu_to_le16(ring->n_entries);
1061 for (i = 0; i < ring->n_entries; ++i) {
1518 if (ring->n_entries > BCM4377_MAX_RING_SIZE)
1537 ring->n_entries * entry_size,
1544 ring->n_entries,
1553 ring->n_entries * ring->mapped_payload_size,
1570 if (ring->n_entries > BCM4377_MAX_RING_SIZE)
1577 ring->n_entries * entry_size,
1636 cpu_to_le16(bcm4377->control_ack_ring.n_entries);
1645 cpu_to_le16(bcm4377->control_h2d_ring.n_entries);
1674 bcm4377->control_ack_ring.n_entries = 32;
1679 bcm4377->hci_acl_ack_ring.n_entries = 2 * BCM4377_RING_N_ENTRIES;
1691 bcm4377->hci_acl_event_ring.n_entries = 2 * BCM4377_RING_N_ENTRIES;
1697 bcm4377->sco_ack_ring.n_entries = BCM4377_RING_N_ENTRIES;
1702 bcm4377->sco_event_ring.n_entries = BCM4377_RING_N_ENTRIES;
1710 bcm4377->control_h2d_ring.n_entries = BCM4377_RING_N_ENTRIES;
1716 bcm4377->hci_h2d_ring.n_entries = BCM4377_RING_N_ENTRIES;
1722 bcm4377->hci_d2h_ring.n_entries = BCM4377_RING_N_ENTRIES;
1729 bcm4377->sco_h2d_ring.n_entries = BCM4377_RING_N_ENTRIES;
1736 bcm4377->sco_d2h_ring.n_entries = BCM4377_RING_N_ENTRIES;
1746 bcm4377->acl_h2d_ring.n_entries = BCM4377_RING_N_ENTRIES;
1757 bcm4377->acl_d2h_ring.n_entries = BCM4377_RING_N_ENTRIES;