Searched refs:tswtcl_data (Results 1 - 2 of 2) sorted by relevance
/illumos-gate/usr/src/uts/common/ipp/meters/ |
H A D | tswtcl.c | 54 * Given a packet and the tswtcl_data it belongs to, this routine meters the 56 * the tswtcl_data. 60 tswtcl_process(mblk_t **mpp, tswtcl_data_t *tswtcl_data, argument 71 tswtcl_cfg_t *cfg_parms = tswtcl_data->cfg_parms; 75 atomic_inc_64(&tswtcl_data->epackets); 85 atomic_inc_64(&tswtcl_data->epackets); 94 atomic_inc_64(&tswtcl_data->epackets); 113 /* Update the avg_rate and win_front tswtcl_data */ 114 mutex_enter(&tswtcl_data->tswtcl_lock); 117 bitsinwin = ((uint64_t)tswtcl_data [all...] |
H A D | tswtclddi.c | 106 tswtcl_data_t *tswtcl_data; local 224 tswtcl_data = kmem_zalloc(TSWTCL_DATA_SZ, KM_NOSLEEP); 225 if (tswtcl_data == NULL) { 231 if ((rc = tswtcl_statinit(aid, tswtcl_data)) != 0) { 233 kmem_free(tswtcl_data, TSWTCL_DATA_SZ); 263 tswtcl_data->cfg_parms = cfg_parms; 264 tswtcl_data->avg_rate = cfg_parms->committed_rate; 265 mutex_init(&tswtcl_data->tswtcl_lock, NULL, MUTEX_DEFAULT, 0); 266 tswtcl_data->win_front = gethrtime(); 267 ipp_action_set_ptr(aid, (void *)tswtcl_data); 292 tswtcl_data_t *tswtcl_data; local 466 tswtcl_data_t *tswtcl_data; local 496 tswtcl_data_t *tswtcl_data; local 515 tswtcl_statinit(ipp_action_id_t aid, tswtcl_data_t *tswtcl_data) argument 582 tswtcl_data_t *tswtcl_data = (tswtcl_data_t *)args; local 612 tswtcl_data_t *tswtcl_data; local [all...] |
Completed in 50 milliseconds