Lines Matching refs:n_entries

428 	u16 n_entries;  member
468 u16 n_entries; member
631 if (*msgid >= ring->n_entries) { in bcm4377_extract_msgid()
634 ring->ring_id, *msgid, ring->n_entries); in bcm4377_extract_msgid()
685 head = (head + 1) % ring->n_entries; in bcm4377_handle_event()
718 bitmap_release_region(ring->msgids, msgid, ring->n_entries); in bcm4377_handle_ack()
733 if (pos >= ring->n_entries) { in bcm4377_handle_completion()
822 tail = (tail + 1) % ring->n_entries; in bcm4377_poll_completion_ring()
889 new_head = (head + 1) % ring->n_entries; in bcm4377_enqueue()
899 msgid = bitmap_find_free_region(ring->msgids, ring->n_entries, 0); in bcm4377_enqueue()
982 ring->n_entries * (sizeof(struct bcm4377_completion_ring_entry) + in bcm4377_create_completion_ring()
989 msg.n_elements = cpu_to_le16(ring->n_entries); in bcm4377_create_completion_ring()
1043 msg.n_elements = cpu_to_le16(ring->n_entries); in bcm4377_create_transfer_ring()
1060 for (i = 0; i < ring->n_entries; ++i) { in bcm4377_create_transfer_ring()
1517 if (ring->n_entries > BCM4377_MAX_RING_SIZE) in bcm4377_alloc_transfer_ring()
1536 ring->n_entries * entry_size, in bcm4377_alloc_transfer_ring()
1543 ring->n_entries, in bcm4377_alloc_transfer_ring()
1552 ring->n_entries * ring->mapped_payload_size, in bcm4377_alloc_transfer_ring()
1569 if (ring->n_entries > BCM4377_MAX_RING_SIZE) in bcm4377_alloc_completion_ring()
1576 ring->n_entries * entry_size, in bcm4377_alloc_completion_ring()
1635 cpu_to_le16(bcm4377->control_ack_ring.n_entries); in bcm4377_init_context()
1644 cpu_to_le16(bcm4377->control_h2d_ring.n_entries); in bcm4377_init_context()
1673 bcm4377->control_ack_ring.n_entries = 32; in bcm4377_prepare_rings()
1678 bcm4377->hci_acl_ack_ring.n_entries = 2 * BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1690 bcm4377->hci_acl_event_ring.n_entries = 2 * BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1696 bcm4377->sco_ack_ring.n_entries = BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1701 bcm4377->sco_event_ring.n_entries = BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1709 bcm4377->control_h2d_ring.n_entries = BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1715 bcm4377->hci_h2d_ring.n_entries = BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1721 bcm4377->hci_d2h_ring.n_entries = BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1728 bcm4377->sco_h2d_ring.n_entries = BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1735 bcm4377->sco_d2h_ring.n_entries = BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1745 bcm4377->acl_h2d_ring.n_entries = BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1756 bcm4377->acl_d2h_ring.n_entries = BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()