Lines Matching refs:ba
573 struct buffAdd *ba; in init_shared_mem() local
796 ring->ba = kmalloc(size, GFP_KERNEL); in init_shared_mem()
797 if (!ring->ba) in init_shared_mem()
805 ring->ba[j] = kmalloc(size, GFP_KERNEL); in init_shared_mem()
806 if (!ring->ba[j]) in init_shared_mem()
810 ba = &ring->ba[j][k]; in init_shared_mem()
812 ba->ba_0_org = kmalloc(size, GFP_KERNEL); in init_shared_mem()
813 if (!ba->ba_0_org) in init_shared_mem()
816 tmp = (unsigned long)ba->ba_0_org; in init_shared_mem()
819 ba->ba_0 = (void *)tmp; in init_shared_mem()
822 ba->ba_1_org = kmalloc(size, GFP_KERNEL); in init_shared_mem()
823 if (!ba->ba_1_org) in init_shared_mem()
826 tmp = (unsigned long)ba->ba_1_org; in init_shared_mem()
829 ba->ba_1 = (void *)tmp; in init_shared_mem()
962 if (!ring->ba[j]) in free_shared_mem()
965 struct buffAdd *ba = &ring->ba[j][k]; in free_shared_mem() local
966 kfree(ba->ba_0_org); in free_shared_mem()
969 kfree(ba->ba_1_org); in free_shared_mem()
974 kfree(ring->ba[j]); in free_shared_mem()
978 kfree(ring->ba); in free_shared_mem()
2462 struct buffAdd *ba; in fill_rx_buffers() local
2561 ba = &ring->ba[block_no][off]; in fill_rx_buffers()
2572 ba->ba_0, BUF0_LEN, in fill_rx_buffers()
2601 ba->ba_1, in fill_rx_buffers()
6748 struct buffAdd *ba, in set_rxd_buffer_pointer() argument
6812 dma_map_single(&sp->pdev->dev, ba->ba_0, in set_rxd_buffer_pointer()
6825 dma_map_single(&sp->pdev->dev, ba->ba_1, in set_rxd_buffer_pointer()
6869 struct buffAdd *ba = NULL; in rxd_owner_bit_reset() local
6890 ba = &ring->ba[j][k]; in rxd_owner_bit_reset()
6891 if (set_rxd_buffer_pointer(sp, rxdp, ba, &skb, in rxd_owner_bit_reset()
7372 struct buffAdd *ba = &ring_data->ba[get_block][get_off]; in rx_osm_handler() local
7373 memcpy(buff, ba->ba_0, buf0_len); in rx_osm_handler()