Lines Matching refs:shaper
332 zpeekl(zatm_dev,uPD98401_IM(zatm_vcc->shaper)+16*i));
794 int shaper; in alloc_shaper() local
799 for (shaper = 0; !((zatm_dev->free_shapers >> shaper) & 1); shaper++); in alloc_shaper()
800 zatm_dev->free_shapers &= ~1 << shaper; in alloc_shaper()
805 zatm_dev->ubr = shaper; in alloc_shaper()
843 zpokel(zatm_dev,(i << uPD98401_IM_I_SHIFT) | m,uPD98401_IM(shaper)); in alloc_shaper()
844 zpokel(zatm_dev,c << uPD98401_PC_C_SHIFT,uPD98401_PC(shaper)); in alloc_shaper()
845 zpokel(zatm_dev,0,uPD98401_X(shaper)); in alloc_shaper()
846 zpokel(zatm_dev,0,uPD98401_Y(shaper)); in alloc_shaper()
847 zpokel(zatm_dev,uPD98401_PS_E,uPD98401_PS(shaper)); in alloc_shaper()
849 return shaper; in alloc_shaper()
853 static void dealloc_shaper(struct atm_dev *dev,int shaper) in dealloc_shaper() argument
859 if (shaper == zatm_dev->ubr) { in dealloc_shaper()
864 zpokel(zatm_dev,zpeekl(zatm_dev,uPD98401_PS(shaper)) & ~uPD98401_PS_E, in dealloc_shaper()
865 uPD98401_PS(shaper)); in dealloc_shaper()
867 zatm_dev->free_shapers |= 1 << shaper; in dealloc_shaper()
907 if (zatm_vcc->shaper != zatm_dev->ubr) { in close_tx()
909 dealloc_shaper(vcc->dev,zatm_vcc->shaper); in close_tx()
941 if (unlimited && zatm_dev->ubr != -1) zatm_vcc->shaper = zatm_dev->ubr; in open_tx_first()
946 if ((zatm_vcc->shaper = alloc_shaper(vcc->dev,&pcr, in open_tx_first()
950 return zatm_vcc->shaper; in open_tx_first()
987 zpokel(zatm_dev,uPD98401_TXVC_L | (zatm_vcc->shaper << in open_tx_second()