Lines Matching refs:n_entries

431 	u16 n_entries;  member
471 u16 n_entries; member
642 if (*msgid >= ring->n_entries) { in bcm4377_extract_msgid()
645 ring->ring_id, *msgid, ring->n_entries); in bcm4377_extract_msgid()
696 head = (head + 1) % ring->n_entries; in bcm4377_handle_event()
744 if (pos >= ring->n_entries) { in bcm4377_handle_completion()
833 tail = (tail + 1) % ring->n_entries; in bcm4377_poll_completion_ring()
900 new_head = (head + 1) % ring->n_entries; in bcm4377_enqueue()
910 msgid = bitmap_find_free_region(ring->msgids, ring->n_entries, 0); in bcm4377_enqueue()
993 ring->n_entries * (sizeof(struct bcm4377_completion_ring_entry) + in bcm4377_create_completion_ring()
1000 msg.n_elements = cpu_to_le16(ring->n_entries); in bcm4377_create_completion_ring()
1054 msg.n_elements = cpu_to_le16(ring->n_entries); in bcm4377_create_transfer_ring()
1071 for (i = 0; i < ring->n_entries; ++i) { in bcm4377_create_transfer_ring()
1536 if (ring->n_entries > BCM4377_MAX_RING_SIZE) in bcm4377_alloc_transfer_ring()
1555 ring->n_entries * entry_size, in bcm4377_alloc_transfer_ring()
1562 ring->n_entries, in bcm4377_alloc_transfer_ring()
1571 ring->n_entries * ring->mapped_payload_size, in bcm4377_alloc_transfer_ring()
1588 if (ring->n_entries > BCM4377_MAX_RING_SIZE) in bcm4377_alloc_completion_ring()
1595 ring->n_entries * entry_size, in bcm4377_alloc_completion_ring()
1654 cpu_to_le16(bcm4377->control_ack_ring.n_entries); in bcm4377_init_context()
1663 cpu_to_le16(bcm4377->control_h2d_ring.n_entries); in bcm4377_init_context()
1692 bcm4377->control_ack_ring.n_entries = 32; in bcm4377_prepare_rings()
1697 bcm4377->hci_acl_ack_ring.n_entries = 2 * BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1709 bcm4377->hci_acl_event_ring.n_entries = 2 * BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1715 bcm4377->sco_ack_ring.n_entries = BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1720 bcm4377->sco_event_ring.n_entries = BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1728 bcm4377->control_h2d_ring.n_entries = BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1734 bcm4377->hci_h2d_ring.n_entries = BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1740 bcm4377->hci_d2h_ring.n_entries = BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1747 bcm4377->sco_h2d_ring.n_entries = BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1754 bcm4377->sco_d2h_ring.n_entries = BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1764 bcm4377->acl_h2d_ring.n_entries = BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()
1775 bcm4377->acl_d2h_ring.n_entries = BCM4377_RING_N_ENTRIES; in bcm4377_prepare_rings()