Lines Matching refs:cltp

16295 void rtw_clt_port_init(struct clt_port_t  *cltp)  in rtw_clt_port_init()  argument
16297 cltp->bmp = 0; in rtw_clt_port_init()
16298 cltp->num = 0; in rtw_clt_port_init()
16299 _rtw_spinlock_init(&cltp->lock); in rtw_clt_port_init()
16301 void rtw_clt_port_deinit(struct clt_port_t *cltp) in rtw_clt_port_deinit() argument
16303 _rtw_spinlock_free(&cltp->lock); in rtw_clt_port_deinit()
16308 struct clt_port_t *cltp = &dvobj->clt_port; in _hw_client_port_alloc() local
16313 if (cltp->num > MAX_CLIENT_PORT_NUM) { in _hw_client_port_alloc()
16314 RTW_ERR(ADPT_FMT" cann't alloc client (%d)\n", ADPT_ARG(adapter), cltp->num); in _hw_client_port_alloc()
16325 _enter_critical_bh(&cltp->lock, &irql); in _hw_client_port_alloc()
16327 if (!(cltp->bmp & BIT(i))) in _hw_client_port_alloc()
16333 cltp->bmp |= BIT(i); in _hw_client_port_alloc()
16336 cltp->num++; in _hw_client_port_alloc()
16337 _exit_critical_bh(&cltp->lock, &irql); in _hw_client_port_alloc()
16339 __func__, ADPT_ARG(adapter), adapter->client_id, adapter->client_port, cltp->num); in _hw_client_port_alloc()
16344 struct clt_port_t *cltp = &dvobj->clt_port; in _hw_client_port_free() local
16355 __func__, ADPT_ARG(adapter), adapter->client_id, adapter->client_port, cltp->num); in _hw_client_port_free()
16357 _enter_critical_bh(&cltp->lock, &irql); in _hw_client_port_free()
16359 cltp->bmp &= ~ BIT(adapter->client_id); in _hw_client_port_free()
16363 cltp->num--; in _hw_client_port_free()
16364 if (cltp->num < 0) in _hw_client_port_free()
16365 cltp->num = 0; in _hw_client_port_free()
16366 _exit_critical_bh(&cltp->lock, &irql); in _hw_client_port_free()