Defined in 2 files as a function:
- drivers/net/wireless/broadcom/b43/dma.c, line 592 (as a function)
- drivers/net/wireless/broadcom/b43legacy/dma.c, line 419 (as a function)
Referenced in 2 files:
Smatch caller information:
drivers/net/wireless/broadcom/b43/dma.c alloc_initial_descbuffers() -> setup_rx_descbuffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->descbase | 1-ptr_max |
| PARAM_VALUE | 0 | ring->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->dev->__init_status.counter | s32min-0,2-s32max |
| PARAM_VALUE | 0 | ring->dev->__using_pio_transfers | 0 |
| PARAM_VALUE | 0 | ring->dev->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->dev->dfq_valid | 0 |
| PARAM_VALUE | 0 | ring->dev->dfsentry | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ring->dev->fw.hdr_format | 0-2 |
| PARAM_VALUE | 0 | ring->dev->fw.pcm.data | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ring->dev->fw.rev | 297-u16max |
| PARAM_VALUE | 0 | ring->dev->fw.ucode.data | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->dev->irq_mask | 939885156,939887204 |
| PARAM_VALUE | 0 | ring->dev->irq_reason | 0 |
| PARAM_VALUE | 0 | ring->dev->noisecalc.nr_samples | 0 |
| PARAM_VALUE | 0 | ring->dev->phy.chandef | 1-u64max |
| PARAM_VALUE | 0 | ring->dev->phy.channel | 0-u16max |
| PARAM_VALUE | 0 | ring->dev->phy.do_full_init | 0 |
| PARAM_VALUE | 0 | ring->dev->phy.ops | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->dev->phy.phy_locked | 0 |
| PARAM_VALUE | 0 | ring->dev->phy.radio_locked | 0 |
| PARAM_VALUE | 0 | ring->dev->phy.radio_on | 1 |
| PARAM_VALUE | 0 | ring->dev->phy.txerr_cnt.counter | 1000 |
| PARAM_VALUE | 0 | ring->dev->radio_hw_enable | 1 |
| PARAM_VALUE | 0 | ring->dev->stats.link_noise | 0 |
| PARAM_VALUE | 0 | ring->dev->use_pio | 0 |
| PARAM_VALUE | 0 | ring->dev->wl | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->index | 0-4 |
| PARAM_VALUE | 0 | ring->meta | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->meta->skb | (-12) |
| PARAM_VALUE | 0 | ring->nr_slots | 256 |
| PARAM_VALUE | 0 | ring->ops | 1362240483246256128,6414408299913576448 |
| PARAM_VALUE | 0 | ring->ops->idx2desc | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->tx | 0 |
| PARAM_VALUE | 0 | ring->type | 30,32,64 |
| PARAM_VALUE | 1 | desc | 4096-ptr_max |
| PARAM_VALUE | 2 | meta | 4096-ptr_max |
| PARAM_VALUE | 3 | gfp_flags | 3264 |
| BUF_SIZE | 0 | ring | 6264 |
| BUF_SIZE | 0 | ring | 6264 |
| BUF_SIZE | 0 | ring->ops | 56 |
| BUF_SIZE | 0 | ring->txhdr_cache | (-1),106,110,118 |
| DATA_SOURCE | 0 | ring | $0 |
| BIT_INFO | 0 | ring->ops | 0x1004860000888000,0xffffffffffffffff |
| HARD_MAX | 0 | ring->index | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | ring->dev->fw.patch | 0-u16max |
| HOST_DATA | 0 | ring->dev->phy.analog | 0-15[c] |
| HOST_DATA | 0 | ring->dev->phy.gmode | 0-1 |
| HOST_DATA | 0 | ring->dev->phy.radio_rev | 0-255 |
| HOST_DATA | 0 | ring->dev->phy.radio_ver | 0-u16max |
| HOST_DATA | 0 | ring->dev->phy.supports_2ghz | 0-1 |
| HOST_DATA | 0 | ring->dev->phy.supports_5ghz | 0-1 |
| HOST_DATA | 0 | ring->dev->phy.type | 2,4-5,7[c] |
| LOCK2 | &wl->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct b43_wl)->mutex |
drivers/net/wireless/broadcom/b43/dma.c dma_rx() -> setup_rx_descbuffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->dev->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->ops->get_current_rxslot | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->ops->idx2desc | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->ops->set_current_rxslot | 4096-ptr_max |
| PARAM_VALUE | 1 | desc | 4096-ptr_max |
| PARAM_VALUE | 2 | meta | 4096-ptr_max |
| PARAM_VALUE | 2 | meta->skb | 4096-ptr_max |
| PARAM_VALUE | 3 | gfp_flags | 2080 |
| DATA_SOURCE | 0 | ring | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->wl->mutex | ||
| HALF_LOCKED2 | &wl->mutex | ||
| TYPE_LOCK | (struct b43_wl)->mutex |
drivers/net/wireless/broadcom/b43legacy/dma.c alloc_initial_descbuffers() -> setup_rx_descbuffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->descbase | 1-ptr_max |
| PARAM_VALUE | 0 | ring->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->dev->__using_pio | 0 |
| PARAM_VALUE | 0 | ring->dev->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->dev->dfq_valid | 0 |
| PARAM_VALUE | 0 | ring->dev->dfsentry->txstatlog.end | (-2147483643)-99 |
| PARAM_VALUE | 0 | ring->dev->dma.translation | 0,1073741824,2147483648 |
| PARAM_VALUE | 0 | ring->dev->fw.pcm | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ring->dev->fw.rev | 0-296 |
| PARAM_VALUE | 0 | ring->dev->fw.ucode | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->dev->irq_mask | 939887205 |
| PARAM_VALUE | 0 | ring->dev->irq_reason | 0 |
| PARAM_VALUE | 0 | ring->dev->mac_suspended | 1 |
| PARAM_VALUE | 0 | ring->dev->noisecalc.channel_at_start | 0 |
| PARAM_VALUE | 0 | ring->dev->noisecalc.nr_samples | 0 |
| PARAM_VALUE | 0 | ring->dev->phy._lo_pairs | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->dev->phy.aci_hw_rssi | 0 |
| PARAM_VALUE | 0 | ring->dev->phy.antenna_diversity | 3,u16max |
| PARAM_VALUE | 0 | ring->dev->phy.calibrated | 1 |
| PARAM_VALUE | 0 | ring->dev->phy.idle_tssi | (-128)-(-2),1-127 |
| PARAM_VALUE | 0 | ring->dev->phy.initval | u16max |
| PARAM_VALUE | 0 | ring->dev->phy.interfmode | 0-2 |
| PARAM_VALUE | 0 | ring->dev->phy.lofcal | u16max |
| PARAM_VALUE | 0 | ring->dev->phy.max_lb_gain | 0 |
| PARAM_VALUE | 0 | ring->dev->phy.trsw_rx_gain | 0 |
| PARAM_VALUE | 0 | ring->dev->phy.tssi2dbm | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->dev->phy.txctl2 | 0-15,u16max |
| PARAM_VALUE | 0 | ring->dev->phy.txerr_cnt.counter | 1000 |
| PARAM_VALUE | 0 | ring->dev->phy.txpwr_offset | 0 |
| PARAM_VALUE | 0 | ring->dev->phy.type | 1-2 |
| PARAM_VALUE | 0 | ring->dev->radio_hw_enable | 1 |
| PARAM_VALUE | 0 | ring->dev->stats.last_rx | 0 |
| PARAM_VALUE | 0 | ring->dev->stats.last_tx | 0 |
| PARAM_VALUE | 0 | ring->dev->stats.link_noise | 0 |
| PARAM_VALUE | 0 | ring->dev->wl | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->index | 0-5 |
| PARAM_VALUE | 0 | ring->meta | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->nr_slots | 64,128 |
| PARAM_VALUE | 0 | ring->tx | 0 |
| PARAM_VALUE | 0 | ring->type | 30,32 |
| PARAM_VALUE | 1 | desc | 4096-ptr_max |
| PARAM_VALUE | 2 | meta | 4096-ptr_max |
| PARAM_VALUE | 3 | gfp_flags | 3264 |
| BUF_SIZE | 0 | ring | 96 |
| BUF_SIZE | 0 | ring->dev | (-1),24,1864,5184 |
| BUF_SIZE | 0 | ring->meta | 1536,3072 |
| BUF_SIZE | 0 | ring->txhdr_cache | (-1),82 |
| DATA_SOURCE | 0 | ring | $0 |
| DATA_SOURCE | 1 | desc | r op32_idx2desc |
| FUZZY_MAX | 0 | ring->dev->phy.type | 2 |
| FUZZY_MAX | 0 | ring->nr_slots | 128 |
| BIT_INFO | 0 | ring->nr_slots | 0x0,0xc0 |
| HARD_MAX | 0 | ring->index | 5 |
| HARD_MAX | 0 | ring->nr_slots | 128 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | ring->dev->fw.patch | 0-u16max |
| HOST_DATA | 0 | ring->dev->fw.rev | 0-296 |
| HOST_DATA | 0 | ring->dev->phy.analog | 0-15[c] |
| HOST_DATA | 0 | ring->dev->phy.nrssislope | (-4194304)-(-128),128-4194304[c] |
| HOST_DATA | 0 | ring->dev->phy.radio_manuf | 0-4095 |
| HOST_DATA | 0 | ring->dev->phy.radio_off_context.rfover | 0-u16max |
| HOST_DATA | 0 | ring->dev->phy.radio_off_context.rfoverval | 0-u16max |
| HOST_DATA | 0 | ring->dev->phy.radio_rev | 0-15 |
| HOST_DATA | 0 | ring->dev->phy.radio_ver | 0-u16max[c] |
| HOST_DATA | 0 | ring->dev->phy.rev | 0-8 |
| HOST_DATA | 0 | ring->dev->phy.savedpctlreg | u16max |
| NO_OVERFLOW_SIMPLE | 0 | ring->dev->led_assoc.led_dev.blink_brightness | |
| NO_OVERFLOW_SIMPLE | 0 | ring->dev->led_radio.led_dev.blink_brightness | |
| NO_OVERFLOW_SIMPLE | 0 | ring->dev->led_rx.led_dev.blink_brightness | |
| NO_OVERFLOW_SIMPLE | 0 | ring->dev->led_tx.led_dev.blink_brightness | |
| NO_OVERFLOW_SIMPLE | 0 | ring->nr_slots | |
| LOCK2 | &wl->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct b43legacy_wl)->mutex |
drivers/net/wireless/broadcom/b43legacy/dma.c dma_rx() -> setup_rx_descbuffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->dev->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->index | s32min-2,4-s32max |
| PARAM_VALUE | 0 | ring->rx_buffersize | 1-u16max |
| PARAM_VALUE | 2 | meta | 4096-ptr_max |
| PARAM_VALUE | 2 | meta->skb | 4096-ptr_max |
| PARAM_VALUE | 3 | gfp_flags | 2080 |
| CAPPED_DATA | 0 | ring->dev->dev | 1 |
| DATA_SOURCE | 0 | ring | $0 |
| DATA_SOURCE | 1 | desc | r op32_idx2desc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dev->wl->irq_lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct b43legacy_wl)->irq_lock |