commonring 15 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c void brcmf_commonring_register_cb(struct brcmf_commonring *commonring, commonring 22 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->cr_ring_bell = cr_ring_bell; commonring 23 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->cr_update_rptr = cr_update_rptr; commonring 24 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->cr_update_wptr = cr_update_wptr; commonring 25 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->cr_write_rptr = cr_write_rptr; commonring 26 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->cr_write_wptr = cr_write_wptr; commonring 27 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->cr_ctx = ctx; commonring 31 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c void brcmf_commonring_config(struct brcmf_commonring *commonring, u16 depth, commonring 34 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->depth = depth; commonring 35 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->item_len = item_len; commonring 36 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->buf_addr = buf_addr; commonring 37 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (!commonring->inited) { commonring 38 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c spin_lock_init(&commonring->lock); commonring 39 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->inited = true; commonring 41 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->r_ptr = 0; commonring 42 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (commonring->cr_write_rptr) commonring 43 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->cr_write_rptr(commonring->cr_ctx); commonring 44 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->w_ptr = 0; commonring 45 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (commonring->cr_write_wptr) commonring 46 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->cr_write_wptr(commonring->cr_ctx); commonring 47 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->f_ptr = 0; commonring 51 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c void brcmf_commonring_lock(struct brcmf_commonring *commonring) commonring 52 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c __acquires(&commonring->lock) commonring 56 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c spin_lock_irqsave(&commonring->lock, flags); commonring 57 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->flags = flags; commonring 61 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c void brcmf_commonring_unlock(struct brcmf_commonring *commonring) commonring 62 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c __releases(&commonring->lock) commonring 64 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c spin_unlock_irqrestore(&commonring->lock, commonring->flags); commonring 68 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c bool brcmf_commonring_write_available(struct brcmf_commonring *commonring) commonring 74 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (commonring->r_ptr <= commonring->w_ptr) commonring 75 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c available = commonring->depth - commonring->w_ptr + commonring 76 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->r_ptr; commonring 78 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c available = commonring->r_ptr - commonring->w_ptr; commonring 81 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (!commonring->was_full) commonring 83 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (available > commonring->depth / 8) { commonring 84 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->was_full = false; commonring 88 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (commonring->cr_update_rptr) commonring 89 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->cr_update_rptr(commonring->cr_ctx); commonring 97 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (commonring->cr_update_rptr) commonring 98 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->cr_update_rptr(commonring->cr_ctx); commonring 103 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->was_full = true; commonring 108 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c void *brcmf_commonring_reserve_for_write(struct brcmf_commonring *commonring) commonring 115 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (commonring->r_ptr <= commonring->w_ptr) commonring 116 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c available = commonring->depth - commonring->w_ptr + commonring 117 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->r_ptr; commonring 119 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c available = commonring->r_ptr - commonring->w_ptr; commonring 122 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c ret_ptr = commonring->buf_addr + commonring 123 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c (commonring->w_ptr * commonring->item_len); commonring 124 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->w_ptr++; commonring 125 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (commonring->w_ptr == commonring->depth) commonring 126 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->w_ptr = 0; commonring 131 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (commonring->cr_update_rptr) commonring 132 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->cr_update_rptr(commonring->cr_ctx); commonring 137 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->was_full = true; commonring 143 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c brcmf_commonring_reserve_for_write_multiple(struct brcmf_commonring *commonring, commonring 151 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (commonring->r_ptr <= commonring->w_ptr) commonring 152 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c available = commonring->depth - commonring->w_ptr + commonring 153 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->r_ptr; commonring 155 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c available = commonring->r_ptr - commonring->w_ptr; commonring 158 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c ret_ptr = commonring->buf_addr + commonring 159 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c (commonring->w_ptr * commonring->item_len); commonring 161 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (*alloced + commonring->w_ptr > commonring->depth) commonring 162 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c *alloced = commonring->depth - commonring->w_ptr; commonring 163 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->w_ptr += *alloced; commonring 164 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (commonring->w_ptr == commonring->depth) commonring 165 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->w_ptr = 0; commonring 170 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (commonring->cr_update_rptr) commonring 171 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->cr_update_rptr(commonring->cr_ctx); commonring 176 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->was_full = true; commonring 181 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c int brcmf_commonring_write_complete(struct brcmf_commonring *commonring) commonring 185 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c address = commonring->buf_addr; commonring 186 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c address += (commonring->f_ptr * commonring->item_len); commonring 187 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (commonring->f_ptr > commonring->w_ptr) { commonring 188 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c address = commonring->buf_addr; commonring 189 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->f_ptr = 0; commonring 192 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->f_ptr = commonring->w_ptr; commonring 194 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (commonring->cr_write_wptr) commonring 195 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->cr_write_wptr(commonring->cr_ctx); commonring 196 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (commonring->cr_ring_bell) commonring 197 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c return commonring->cr_ring_bell(commonring->cr_ctx); commonring 203 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c void brcmf_commonring_write_cancel(struct brcmf_commonring *commonring, commonring 206 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (commonring->w_ptr == 0) commonring 207 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->w_ptr = commonring->depth - n_items; commonring 209 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->w_ptr -= n_items; commonring 213 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c void *brcmf_commonring_get_read_ptr(struct brcmf_commonring *commonring, commonring 216 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (commonring->cr_update_wptr) commonring 217 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->cr_update_wptr(commonring->cr_ctx); commonring 219 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c *n_items = (commonring->w_ptr >= commonring->r_ptr) ? commonring 220 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c (commonring->w_ptr - commonring->r_ptr) : commonring 221 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c (commonring->depth - commonring->r_ptr); commonring 226 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c return commonring->buf_addr + commonring 227 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c (commonring->r_ptr * commonring->item_len); commonring 231 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c int brcmf_commonring_read_complete(struct brcmf_commonring *commonring, commonring 234 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->r_ptr += n_items; commonring 235 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (commonring->r_ptr == commonring->depth) commonring 236 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c commonring->r_ptr = 0; commonring 238 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c if (commonring->cr_write_rptr) commonring 239 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c return commonring->cr_write_rptr(commonring->cr_ctx); commonring 35 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.h void brcmf_commonring_register_cb(struct brcmf_commonring *commonring, commonring 41 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.h void brcmf_commonring_config(struct brcmf_commonring *commonring, u16 depth, commonring 43 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.h void brcmf_commonring_lock(struct brcmf_commonring *commonring); commonring 44 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.h void brcmf_commonring_unlock(struct brcmf_commonring *commonring); commonring 45 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.h bool brcmf_commonring_write_available(struct brcmf_commonring *commonring); commonring 46 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.h void *brcmf_commonring_reserve_for_write(struct brcmf_commonring *commonring); commonring 48 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.h brcmf_commonring_reserve_for_write_multiple(struct brcmf_commonring *commonring, commonring 50 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.h int brcmf_commonring_write_complete(struct brcmf_commonring *commonring); commonring 51 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.h void brcmf_commonring_write_cancel(struct brcmf_commonring *commonring, commonring 53 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.h void *brcmf_commonring_get_read_ptr(struct brcmf_commonring *commonring, commonring 55 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.h int brcmf_commonring_read_complete(struct brcmf_commonring *commonring, commonring 58 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.h #define brcmf_commonring_n_items(commonring) (commonring->depth) commonring 59 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.h #define brcmf_commonring_len_item(commonring) (commonring->item_len) commonring 430 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct brcmf_commonring *commonring; commonring 436 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring = msgbuf->commonrings[BRCMF_H2D_MSGRING_CONTROL_SUBMIT]; commonring 437 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_lock(commonring); commonring 438 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c ret_ptr = brcmf_commonring_reserve_for_write(commonring); commonring 441 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_unlock(commonring); commonring 465 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c err = brcmf_commonring_write_complete(commonring); commonring 466 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_unlock(commonring); commonring 583 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct brcmf_commonring *commonring; commonring 606 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring = msgbuf->commonrings[BRCMF_H2D_MSGRING_CONTROL_SUBMIT]; commonring 607 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_lock(commonring); commonring 608 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c ret_ptr = brcmf_commonring_reserve_for_write(commonring); commonring 611 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_unlock(commonring); commonring 634 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c err = brcmf_commonring_write_complete(commonring); commonring 635 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_unlock(commonring); commonring 697 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct brcmf_commonring *commonring; commonring 706 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring = msgbuf->flowrings[flowid]; commonring 707 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c if (!brcmf_commonring_write_available(commonring)) commonring 710 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_lock(commonring); commonring 728 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c ret_ptr = brcmf_commonring_reserve_for_write(commonring); commonring 755 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c atomic_inc(&commonring->outstanding_tx); commonring 757 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_write_complete(commonring); commonring 762 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_write_complete(commonring); commonring 763 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_unlock(commonring); commonring 783 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct brcmf_commonring *commonring; commonring 786 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring = msgbuf->flowrings[flowid]; commonring 787 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c if ((force) || (atomic_read(&commonring->outstanding_tx) < commonring 870 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct brcmf_commonring *commonring; commonring 886 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring = msgbuf->flowrings[flowid]; commonring 887 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c atomic_dec(&commonring->outstanding_tx); commonring 897 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct brcmf_commonring *commonring; commonring 908 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring = msgbuf->commonrings[BRCMF_H2D_MSGRING_RXPOST_SUBMIT]; commonring 909 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c ret_ptr = brcmf_commonring_reserve_for_write_multiple(commonring, commonring 925 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_write_cancel(commonring, alloced - i); commonring 935 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_write_cancel(commonring, alloced - i); commonring 962 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c ret_ptr += brcmf_commonring_len_item(commonring); commonring 966 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_write_complete(commonring); commonring 1005 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct brcmf_commonring *commonring; commonring 1016 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring = msgbuf->commonrings[BRCMF_H2D_MSGRING_CONTROL_SUBMIT]; commonring 1017 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_lock(commonring); commonring 1018 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c ret_ptr = brcmf_commonring_reserve_for_write_multiple(commonring, commonring 1023 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_unlock(commonring); commonring 1035 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_write_cancel(commonring, alloced - i); commonring 1045 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_write_cancel(commonring, alloced - i); commonring 1062 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c ret_ptr += brcmf_commonring_len_item(commonring); commonring 1066 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_write_complete(commonring); commonring 1068 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_unlock(commonring); commonring 1329 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct brcmf_commonring *commonring) commonring 1336 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c buf = brcmf_commonring_get_read_ptr(commonring, &count); commonring 1344 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c buf += brcmf_commonring_len_item(commonring); commonring 1347 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_read_complete(commonring, processed); commonring 1353 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_read_complete(commonring, processed); commonring 1355 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c if (commonring->r_ptr == 0) commonring 1365 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct brcmf_commonring *commonring; commonring 1380 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring = msgbuf->flowrings[flowid]; commonring 1383 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c ((qlen) && (atomic_read(&commonring->outstanding_tx) < commonring 1396 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct brcmf_commonring *commonring; commonring 1408 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring = msgbuf->commonrings[BRCMF_H2D_MSGRING_CONTROL_SUBMIT]; commonring 1409 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_lock(commonring); commonring 1410 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c ret_ptr = brcmf_commonring_reserve_for_write(commonring); commonring 1413 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_unlock(commonring); commonring 1433 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c err = brcmf_commonring_write_complete(commonring); commonring 1434 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_commonring_unlock(commonring); commonring 1447 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct brcmf_commonring *commonring; commonring 1452 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring = msgbuf->commonrings[BRCMF_H2D_MSGRING_CONTROL_SUBMIT]; commonring 1454 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring->r_ptr, commonring->w_ptr, commonring->depth); commonring 1455 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring = msgbuf->commonrings[BRCMF_H2D_MSGRING_RXPOST_SUBMIT]; commonring 1457 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring->r_ptr, commonring->w_ptr, commonring->depth); commonring 1458 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring = msgbuf->commonrings[BRCMF_D2H_MSGRING_CONTROL_COMPLETE]; commonring 1460 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring->r_ptr, commonring->w_ptr, commonring->depth); commonring 1461 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring = msgbuf->commonrings[BRCMF_D2H_MSGRING_TX_COMPLETE]; commonring 1463 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring->r_ptr, commonring->w_ptr, commonring->depth); commonring 1464 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring = msgbuf->commonrings[BRCMF_D2H_MSGRING_RX_COMPLETE]; commonring 1466 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring->r_ptr, commonring->w_ptr, commonring->depth); commonring 1477 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c commonring = msgbuf->flowrings[i]; commonring 1481 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c i, commonring->r_ptr, commonring->w_ptr, commonring 275 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_commonring commonring; commonring 925 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_commonring *commonring = &ring->commonring; commonring 930 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_dbg(PCIE, "W r_ptr %d (%d), ring %d\n", commonring->r_ptr, commonring 931 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c commonring->w_ptr, ring->id); commonring 933 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->write_ptr(devinfo, ring->r_idx_addr, commonring->r_ptr); commonring 943 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_commonring *commonring = &ring->commonring; commonring 948 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_dbg(PCIE, "W w_ptr %d (%d), ring %d\n", commonring->w_ptr, commonring 949 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c commonring->r_ptr, ring->id); commonring 951 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo->write_ptr(devinfo, ring->w_idx_addr, commonring->w_ptr); commonring 977 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_commonring *commonring = &ring->commonring; commonring 982 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c commonring->r_ptr = devinfo->read_ptr(devinfo, ring->r_idx_addr); commonring 984 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_dbg(PCIE, "R r_ptr %d (%d), ring %d\n", commonring->r_ptr, commonring 985 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c commonring->w_ptr, ring->id); commonring 995 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_commonring *commonring = &ring->commonring; commonring 1000 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c commonring->w_ptr = devinfo->read_ptr(devinfo, ring->w_idx_addr); commonring 1002 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_dbg(PCIE, "R w_ptr %d (%d), ring %d\n", commonring->w_ptr, commonring 1003 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c commonring->r_ptr, ring->id); commonring 1067 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_commonring_config(&ring->commonring, brcmf_ring_max_item[ring_id], commonring 1071 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_commonring_register_cb(&ring->commonring, commonring 1091 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c dma_buf = ring->commonring.buf_addr; commonring 1093 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c size = ring->commonring.depth * ring->commonring.item_len; commonring 1259 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_commonring_register_cb(&ring->commonring, commonring 1810 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c &devinfo->shared.commonrings[i]->commonring; commonring 1818 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c flowrings[i] = &devinfo->shared.flowrings[i].commonring;