Lines Matching refs:sidx
304 u8 sidx; in plfxlc_op_tx() local
308 for (sidx = 0; sidx < MAX_STA_NUM; sidx++) { in plfxlc_op_tx()
309 if (!(tx->station[sidx].flag & STATION_CONNECTED_FLAG)) in plfxlc_op_tx()
311 if (memcmp(tx->station[sidx].mac, dst_mac, ETH_ALEN)) in plfxlc_op_tx()
319 sidx = STA_BROADCAST_INDEX; in plfxlc_op_tx()
322 if (skb_queue_len(&tx->station[sidx].data_list) > 60) in plfxlc_op_tx()
326 if (skb_queue_len(&tx->station[sidx].data_list) > 256) in plfxlc_op_tx()
328 skb_queue_tail(&tx->station[sidx].data_list, skb); in plfxlc_op_tx()
411 int sidx; in plfxlc_mac_rx() local
454 for (sidx = 0; sidx < MAX_STA_NUM - 1; sidx++) { in plfxlc_mac_rx()
455 if (memcmp(&buffer[10], tx->station[sidx].mac, ETH_ALEN)) in plfxlc_mac_rx()
457 if (tx->station[sidx].flag & STATION_CONNECTED_FLAG) { in plfxlc_mac_rx()
458 tx->station[sidx].flag |= STATION_HEARTBEAT_FLAG; in plfxlc_mac_rx()
463 if (sidx == MAX_STA_NUM - 1) { in plfxlc_mac_rx()
464 for (sidx = 0; sidx < MAX_STA_NUM - 1; sidx++) { in plfxlc_mac_rx()
465 if (tx->station[sidx].flag & STATION_CONNECTED_FLAG) in plfxlc_mac_rx()
467 memcpy(tx->station[sidx].mac, &buffer[10], ETH_ALEN); in plfxlc_mac_rx()
468 tx->station[sidx].flag |= STATION_CONNECTED_FLAG; in plfxlc_mac_rx()
469 tx->station[sidx].flag |= STATION_HEARTBEAT_FLAG; in plfxlc_mac_rx()