dma.c (e981b060767b3c4ac9393ad8d2558d648e35dfcb) | dma.c (a180a13081708b78d42232c6d922ce3de63f12e0) |
---|---|
1/* 2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com> 4 * 5 * Permission to use, copy, modify, and distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * --- 363 unchanged lines hidden (view full) --- 372/** 373 * ath5k_hw_update_tx_triglevel - Update tx trigger level 374 * 375 * @ah: The &struct ath5k_hw 376 * @increase: Flag to force increase of trigger level 377 * 378 * This function increases/decreases the tx trigger level for the tx fifo 379 * buffer (aka FIFO threshold) that is used to indicate when PCU flushes | 1/* 2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com> 4 * 5 * Permission to use, copy, modify, and distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * --- 363 unchanged lines hidden (view full) --- 372/** 373 * ath5k_hw_update_tx_triglevel - Update tx trigger level 374 * 375 * @ah: The &struct ath5k_hw 376 * @increase: Flag to force increase of trigger level 377 * 378 * This function increases/decreases the tx trigger level for the tx fifo 379 * buffer (aka FIFO threshold) that is used to indicate when PCU flushes |
380 * the buffer and transmits it's data. Lowering this results sending small | 380 * the buffer and transmits its data. Lowering this results sending small |
381 * frames more quickly but can lead to tx underruns, raising it a lot can 382 * result other problems (i think bmiss is related). Right now we start with 383 * the lowest possible (64Bytes) and if we get tx underrun we increase it using | 381 * frames more quickly but can lead to tx underruns, raising it a lot can 382 * result other problems (i think bmiss is related). Right now we start with 383 * the lowest possible (64Bytes) and if we get tx underrun we increase it using |
384 * the increase flag. Returns -EIO if we have have reached maximum/minimum. | 384 * the increase flag. Returns -EIO if we have reached maximum/minimum. |
385 * 386 * XXX: Link this with tx DMA size ? 387 * XXX: Use it to save interrupts ? 388 * TODO: Needs testing, i think it's related to bmiss... 389 */ 390int ath5k_hw_update_tx_triglevel(struct ath5k_hw *ah, bool increase) 391{ 392 u32 trigger_level, imr; --- 298 unchanged lines hidden --- | 385 * 386 * XXX: Link this with tx DMA size ? 387 * XXX: Use it to save interrupts ? 388 * TODO: Needs testing, i think it's related to bmiss... 389 */ 390int ath5k_hw_update_tx_triglevel(struct ath5k_hw *ah, bool increase) 391{ 392 u32 trigger_level, imr; --- 298 unchanged lines hidden --- |