Lines Matching refs:fieldPattern
601 static void closeFieldPattern (rxData_t * pRxData, rxDataFilterFieldPattern_t * fieldPattern, TI_UINT8 * fieldPatterns, TI_UINT8 * lenFieldPatterns)
603 //fieldPatterns[*lenFieldPatterns] = fieldPattern->offset;
604 os_memoryCopy(pRxData->hOs, fieldPatterns + *lenFieldPatterns, (TI_UINT8 *)&fieldPattern->offset, sizeof(fieldPattern->offset));
605 *lenFieldPatterns += sizeof(fieldPattern->offset);
607 fieldPatterns[*lenFieldPatterns] = fieldPattern->length;
608 *lenFieldPatterns += sizeof(fieldPattern->length);
610 fieldPatterns[*lenFieldPatterns] = fieldPattern->flag;
611 *lenFieldPatterns += sizeof(fieldPattern->flag);
613 os_memoryCopy(pRxData->hOs, fieldPatterns + *lenFieldPatterns, fieldPattern->pattern, fieldPattern->length);
614 *lenFieldPatterns += fieldPattern->length;
617 if ((fieldPattern->flag & RX_DATA_FILTER_FLAG_USE_BIT_MASK) == RX_DATA_FILTER_FLAG_USE_BIT_MASK)
619 os_memoryCopy(pRxData->hOs, fieldPatterns + *lenFieldPatterns, fieldPattern->mask, fieldPattern->length);
620 *lenFieldPatterns += fieldPattern->length;
623 TRACE3(pRxData->hReport, REPORT_SEVERITY_INFORMATION, ": Closed field pattern, length = %d, total length = %d, pattern bit mask = %d.\n", fieldPattern->length, *lenFieldPatterns, ((fieldPattern->flag & RX_DATA_FILTER_FLAG_USE_BIT_MASK) == RX_DATA_FILTER_FLAG_USE_BIT_MASK));
651 rxDataFilterFieldPattern_t fieldPattern;
670 closeFieldPattern(hRxData, &fieldPattern, fieldPatterns, lenFieldPatterns);
694 fieldPattern.offset = request->offset + maskIter;
695 fieldPattern.length = 0;
698 fieldPattern.flag = RX_DATA_FILTER_FLAG_NO_BIT_MASK;
701 if (fieldPattern.offset < RX_DATA_FILTER_ETHERNET_HEADER_BOUNDARY)
703 fieldPattern.flag |= RX_DATA_FILTER_FLAG_ETHERNET_HEADER;
707 fieldPattern.flag |= RX_DATA_FILTER_FLAG_IP_HEADER;
708 fieldPattern.offset -= RX_DATA_FILTER_ETHERNET_HEADER_BOUNDARY;
711 TRACE2(pRxData->hReport, REPORT_SEVERITY_INFORMATION, ": offset = %d, flag = %d.\n", fieldPattern.offset, fieldPattern.flag);
723 fieldPattern.pattern[fieldPattern.length++] = request->pattern[patternIter++];
726 if (fieldPattern.offset + fieldPattern.length >= RX_DATA_FILTER_FILTER_BOUNDARY)
746 closeFieldPattern (hRxData, &fieldPattern, fieldPatterns, lenFieldPatterns);