Lines Matching refs:tx_aggr

879 	if (port->tx_aggr.timer_cnxt.is_hold_timer_set) {  in mwifiex_usb_prepare_tx_aggr_skb()
880 del_timer(&port->tx_aggr.timer_cnxt.hold_timer); in mwifiex_usb_prepare_tx_aggr_skb()
881 port->tx_aggr.timer_cnxt.is_hold_timer_set = false; in mwifiex_usb_prepare_tx_aggr_skb()
882 port->tx_aggr.timer_cnxt.hold_tmo_msecs = 0; in mwifiex_usb_prepare_tx_aggr_skb()
885 skb_aggr = mwifiex_alloc_dma_align_buf(port->tx_aggr.aggr_len, in mwifiex_usb_prepare_tx_aggr_skb()
891 while ((skb_tmp = skb_dequeue(&port->tx_aggr.aggr_list))) in mwifiex_usb_prepare_tx_aggr_skb()
894 port->tx_aggr.aggr_num = 0; in mwifiex_usb_prepare_tx_aggr_skb()
895 port->tx_aggr.aggr_len = 0; in mwifiex_usb_prepare_tx_aggr_skb()
902 while ((skb_tmp = skb_dequeue(&port->tx_aggr.aggr_list))) { in mwifiex_usb_prepare_tx_aggr_skb()
907 if (skb_queue_empty(&port->tx_aggr.aggr_list)) { in mwifiex_usb_prepare_tx_aggr_skb()
926 port->tx_aggr.aggr_num--; in mwifiex_usb_prepare_tx_aggr_skb()
927 port->tx_aggr.aggr_len -= (skb_tmp->len + pad); in mwifiex_usb_prepare_tx_aggr_skb()
935 port->tx_aggr.aggr_num = 0; in mwifiex_usb_prepare_tx_aggr_skb()
936 port->tx_aggr.aggr_len = 0; in mwifiex_usb_prepare_tx_aggr_skb()
974 if (port->tx_aggr.aggr_len + skb->len + pad > in mwifiex_usb_aggr_tx_data()
982 if (port->tx_aggr.aggr_len + skb->len + pad + in mwifiex_usb_aggr_tx_data()
985 port->tx_aggr.aggr_num + 2 > in mwifiex_usb_aggr_tx_data()
995 if (port->tx_aggr.aggr_num > 0) { in mwifiex_usb_aggr_tx_data()
997 if (port->tx_aggr.aggr_len + skb->len + pad > in mwifiex_usb_aggr_tx_data()
1020 if (skb_queue_empty(&port->tx_aggr.aggr_list)) { in mwifiex_usb_aggr_tx_data()
1034 skb_queue_tail(&port->tx_aggr.aggr_list, skb); in mwifiex_usb_aggr_tx_data()
1035 port->tx_aggr.aggr_len += (skb->len + pad); in mwifiex_usb_aggr_tx_data()
1036 port->tx_aggr.aggr_num++; in mwifiex_usb_aggr_tx_data()
1045 if (!port->tx_aggr.timer_cnxt.is_hold_timer_set) { in mwifiex_usb_aggr_tx_data()
1046 port->tx_aggr.timer_cnxt.hold_tmo_msecs = in mwifiex_usb_aggr_tx_data()
1049 port->tx_aggr.timer_cnxt.hold_tmo_msecs; in mwifiex_usb_aggr_tx_data()
1050 mod_timer(&port->tx_aggr.timer_cnxt.hold_timer, in mwifiex_usb_aggr_tx_data()
1052 port->tx_aggr.timer_cnxt.is_hold_timer_set = true; in mwifiex_usb_aggr_tx_data()
1054 if (port->tx_aggr.timer_cnxt.hold_tmo_msecs < in mwifiex_usb_aggr_tx_data()
1058 ++port->tx_aggr.timer_cnxt.hold_tmo_msecs; in mwifiex_usb_aggr_tx_data()
1059 mod_timer(&port->tx_aggr.timer_cnxt.hold_timer, in mwifiex_usb_aggr_tx_data()
1106 skb_queue_tail(&port->tx_aggr.aggr_list, skb); in mwifiex_usb_aggr_tx_data()
1107 port->tx_aggr.aggr_len += (skb->len + pad); in mwifiex_usb_aggr_tx_data()
1108 port->tx_aggr.aggr_num++; in mwifiex_usb_aggr_tx_data()
1110 if (!port->tx_aggr.timer_cnxt.is_hold_timer_set) { in mwifiex_usb_aggr_tx_data()
1111 port->tx_aggr.timer_cnxt.hold_tmo_msecs = in mwifiex_usb_aggr_tx_data()
1113 timeout = port->tx_aggr.timer_cnxt.hold_tmo_msecs; in mwifiex_usb_aggr_tx_data()
1114 mod_timer(&port->tx_aggr.timer_cnxt.hold_timer, in mwifiex_usb_aggr_tx_data()
1116 port->tx_aggr.timer_cnxt.is_hold_timer_set = true; in mwifiex_usb_aggr_tx_data()
1243 skb_queue_head_init(&port->tx_aggr.aggr_list); in mwifiex_usb_tx_init()
1257 port->tx_aggr.timer_cnxt.adapter = adapter; in mwifiex_usb_tx_init()
1258 port->tx_aggr.timer_cnxt.port = port; in mwifiex_usb_tx_init()
1259 port->tx_aggr.timer_cnxt.is_hold_timer_set = false; in mwifiex_usb_tx_init()
1260 port->tx_aggr.timer_cnxt.hold_tmo_msecs = 0; in mwifiex_usb_tx_init()
1261 timer_setup(&port->tx_aggr.timer_cnxt.hold_timer, in mwifiex_usb_tx_init()
1353 skb_dequeue(&port->tx_aggr.aggr_list))) in mwifiex_usb_cleanup_tx_aggr()
1356 if (port->tx_aggr.timer_cnxt.hold_timer.function) in mwifiex_usb_cleanup_tx_aggr()
1357 del_timer_sync(&port->tx_aggr.timer_cnxt.hold_timer); in mwifiex_usb_cleanup_tx_aggr()
1358 port->tx_aggr.timer_cnxt.is_hold_timer_set = false; in mwifiex_usb_cleanup_tx_aggr()
1359 port->tx_aggr.timer_cnxt.hold_tmo_msecs = 0; in mwifiex_usb_cleanup_tx_aggr()