Lines Matching refs:shaper
330 zpeekl(zatm_dev,uPD98401_IM(zatm_vcc->shaper)+16*i));
791 int shaper; in alloc_shaper() local
796 for (shaper = 0; !((zatm_dev->free_shapers >> shaper) & 1); shaper++); in alloc_shaper()
797 zatm_dev->free_shapers &= ~1 << shaper; in alloc_shaper()
802 zatm_dev->ubr = shaper; in alloc_shaper()
840 zpokel(zatm_dev,(i << uPD98401_IM_I_SHIFT) | m,uPD98401_IM(shaper)); in alloc_shaper()
841 zpokel(zatm_dev,c << uPD98401_PC_C_SHIFT,uPD98401_PC(shaper)); in alloc_shaper()
842 zpokel(zatm_dev,0,uPD98401_X(shaper)); in alloc_shaper()
843 zpokel(zatm_dev,0,uPD98401_Y(shaper)); in alloc_shaper()
844 zpokel(zatm_dev,uPD98401_PS_E,uPD98401_PS(shaper)); in alloc_shaper()
846 return shaper; in alloc_shaper()
850 static void dealloc_shaper(struct atm_dev *dev,int shaper) in dealloc_shaper() argument
856 if (shaper == zatm_dev->ubr) { in dealloc_shaper()
861 zpokel(zatm_dev,zpeekl(zatm_dev,uPD98401_PS(shaper)) & ~uPD98401_PS_E, in dealloc_shaper()
862 uPD98401_PS(shaper)); in dealloc_shaper()
864 zatm_dev->free_shapers |= 1 << shaper; in dealloc_shaper()
904 if (zatm_vcc->shaper != zatm_dev->ubr) { in close_tx()
906 dealloc_shaper(vcc->dev,zatm_vcc->shaper); in close_tx()
938 if (unlimited && zatm_dev->ubr != -1) zatm_vcc->shaper = zatm_dev->ubr; in open_tx_first()
943 if ((zatm_vcc->shaper = alloc_shaper(vcc->dev,&pcr, in open_tx_first()
947 return zatm_vcc->shaper; in open_tx_first()
984 zpokel(zatm_dev,uPD98401_TXVC_L | (zatm_vcc->shaper << in open_tx_second()