Lines Matching refs:tx_aggr
884 if (port->tx_aggr.timer_cnxt.is_hold_timer_set) { in mwifiex_usb_prepare_tx_aggr_skb()
885 del_timer(&port->tx_aggr.timer_cnxt.hold_timer); in mwifiex_usb_prepare_tx_aggr_skb()
886 port->tx_aggr.timer_cnxt.is_hold_timer_set = false; in mwifiex_usb_prepare_tx_aggr_skb()
887 port->tx_aggr.timer_cnxt.hold_tmo_msecs = 0; in mwifiex_usb_prepare_tx_aggr_skb()
890 skb_aggr = mwifiex_alloc_dma_align_buf(port->tx_aggr.aggr_len, in mwifiex_usb_prepare_tx_aggr_skb()
896 while ((skb_tmp = skb_dequeue(&port->tx_aggr.aggr_list))) in mwifiex_usb_prepare_tx_aggr_skb()
899 port->tx_aggr.aggr_num = 0; in mwifiex_usb_prepare_tx_aggr_skb()
900 port->tx_aggr.aggr_len = 0; in mwifiex_usb_prepare_tx_aggr_skb()
907 while ((skb_tmp = skb_dequeue(&port->tx_aggr.aggr_list))) { in mwifiex_usb_prepare_tx_aggr_skb()
912 if (skb_queue_empty(&port->tx_aggr.aggr_list)) { in mwifiex_usb_prepare_tx_aggr_skb()
931 port->tx_aggr.aggr_num--; in mwifiex_usb_prepare_tx_aggr_skb()
932 port->tx_aggr.aggr_len -= (skb_tmp->len + pad); in mwifiex_usb_prepare_tx_aggr_skb()
940 port->tx_aggr.aggr_num = 0; in mwifiex_usb_prepare_tx_aggr_skb()
941 port->tx_aggr.aggr_len = 0; in mwifiex_usb_prepare_tx_aggr_skb()
979 if (port->tx_aggr.aggr_len + skb->len + pad > in mwifiex_usb_aggr_tx_data()
987 if (port->tx_aggr.aggr_len + skb->len + pad + in mwifiex_usb_aggr_tx_data()
990 port->tx_aggr.aggr_num + 2 > in mwifiex_usb_aggr_tx_data()
1000 if (port->tx_aggr.aggr_num > 0) { in mwifiex_usb_aggr_tx_data()
1002 if (port->tx_aggr.aggr_len + skb->len + pad > in mwifiex_usb_aggr_tx_data()
1025 if (skb_queue_empty(&port->tx_aggr.aggr_list)) { in mwifiex_usb_aggr_tx_data()
1039 skb_queue_tail(&port->tx_aggr.aggr_list, skb); in mwifiex_usb_aggr_tx_data()
1040 port->tx_aggr.aggr_len += (skb->len + pad); in mwifiex_usb_aggr_tx_data()
1041 port->tx_aggr.aggr_num++; in mwifiex_usb_aggr_tx_data()
1050 if (!port->tx_aggr.timer_cnxt.is_hold_timer_set) { in mwifiex_usb_aggr_tx_data()
1051 port->tx_aggr.timer_cnxt.hold_tmo_msecs = in mwifiex_usb_aggr_tx_data()
1054 port->tx_aggr.timer_cnxt.hold_tmo_msecs; in mwifiex_usb_aggr_tx_data()
1055 mod_timer(&port->tx_aggr.timer_cnxt.hold_timer, in mwifiex_usb_aggr_tx_data()
1057 port->tx_aggr.timer_cnxt.is_hold_timer_set = true; in mwifiex_usb_aggr_tx_data()
1059 if (port->tx_aggr.timer_cnxt.hold_tmo_msecs < in mwifiex_usb_aggr_tx_data()
1063 ++port->tx_aggr.timer_cnxt.hold_tmo_msecs; in mwifiex_usb_aggr_tx_data()
1064 mod_timer(&port->tx_aggr.timer_cnxt.hold_timer, in mwifiex_usb_aggr_tx_data()
1111 skb_queue_tail(&port->tx_aggr.aggr_list, skb); in mwifiex_usb_aggr_tx_data()
1112 port->tx_aggr.aggr_len += (skb->len + pad); in mwifiex_usb_aggr_tx_data()
1113 port->tx_aggr.aggr_num++; in mwifiex_usb_aggr_tx_data()
1115 if (!port->tx_aggr.timer_cnxt.is_hold_timer_set) { in mwifiex_usb_aggr_tx_data()
1116 port->tx_aggr.timer_cnxt.hold_tmo_msecs = in mwifiex_usb_aggr_tx_data()
1118 timeout = port->tx_aggr.timer_cnxt.hold_tmo_msecs; in mwifiex_usb_aggr_tx_data()
1119 mod_timer(&port->tx_aggr.timer_cnxt.hold_timer, in mwifiex_usb_aggr_tx_data()
1121 port->tx_aggr.timer_cnxt.is_hold_timer_set = true; in mwifiex_usb_aggr_tx_data()
1248 skb_queue_head_init(&port->tx_aggr.aggr_list); in mwifiex_usb_tx_init()
1262 port->tx_aggr.timer_cnxt.adapter = adapter; in mwifiex_usb_tx_init()
1263 port->tx_aggr.timer_cnxt.port = port; in mwifiex_usb_tx_init()
1264 port->tx_aggr.timer_cnxt.is_hold_timer_set = false; in mwifiex_usb_tx_init()
1265 port->tx_aggr.timer_cnxt.hold_tmo_msecs = 0; in mwifiex_usb_tx_init()
1266 timer_setup(&port->tx_aggr.timer_cnxt.hold_timer, in mwifiex_usb_tx_init()
1358 skb_dequeue(&port->tx_aggr.aggr_list))) in mwifiex_usb_cleanup_tx_aggr()
1361 if (port->tx_aggr.timer_cnxt.hold_timer.function) in mwifiex_usb_cleanup_tx_aggr()
1362 del_timer_sync(&port->tx_aggr.timer_cnxt.hold_timer); in mwifiex_usb_cleanup_tx_aggr()
1363 port->tx_aggr.timer_cnxt.is_hold_timer_set = false; in mwifiex_usb_cleanup_tx_aggr()
1364 port->tx_aggr.timer_cnxt.hold_tmo_msecs = 0; in mwifiex_usb_cleanup_tx_aggr()