Lines Matching refs:cltp

15221 void rtw_clt_port_init(struct clt_port_t  *cltp)  in rtw_clt_port_init()  argument
15223 cltp->bmp = 0; in rtw_clt_port_init()
15224 cltp->num = 0; in rtw_clt_port_init()
15225 _rtw_spinlock_init(&cltp->lock); in rtw_clt_port_init()
15227 void rtw_clt_port_deinit(struct clt_port_t *cltp) in rtw_clt_port_deinit() argument
15229 _rtw_spinlock_free(&cltp->lock); in rtw_clt_port_deinit()
15234 struct clt_port_t *cltp = &dvobj->clt_port; in _hw_client_port_alloc() local
15239 if (cltp->num > MAX_CLIENT_PORT_NUM) { in _hw_client_port_alloc()
15240 RTW_ERR(ADPT_FMT" cann't alloc client (%d)\n", ADPT_ARG(adapter), cltp->num); in _hw_client_port_alloc()
15251 _enter_critical_bh(&cltp->lock, &irql); in _hw_client_port_alloc()
15253 if (!(cltp->bmp & BIT(i))) in _hw_client_port_alloc()
15259 cltp->bmp |= BIT(i); in _hw_client_port_alloc()
15262 cltp->num++; in _hw_client_port_alloc()
15263 _exit_critical_bh(&cltp->lock, &irql); in _hw_client_port_alloc()
15265 __func__, ADPT_ARG(adapter), adapter->client_id, adapter->client_port, cltp->num); in _hw_client_port_alloc()
15270 struct clt_port_t *cltp = &dvobj->clt_port; in _hw_client_port_free() local
15281 __func__, ADPT_ARG(adapter), adapter->client_id, adapter->client_port, cltp->num); in _hw_client_port_free()
15283 _enter_critical_bh(&cltp->lock, &irql); in _hw_client_port_free()
15285 cltp->bmp &= ~ BIT(adapter->client_id); in _hw_client_port_free()
15289 cltp->num--; in _hw_client_port_free()
15290 if (cltp->num < 0) in _hw_client_port_free()
15291 cltp->num = 0; in _hw_client_port_free()
15292 _exit_critical_bh(&cltp->lock, &irql); in _hw_client_port_free()