Lines Matching refs:fieldPattern
596 static void closeFieldPattern (rxData_t * pRxData, rxDataFilterFieldPattern_t * fieldPattern, TI_UINT8 * fieldPatterns, TI_UINT8 * lenFieldPatterns)
598 fieldPatterns[*lenFieldPatterns] = fieldPattern->offset;
599 *lenFieldPatterns += sizeof(fieldPattern->offset);
601 fieldPatterns[*lenFieldPatterns] = fieldPattern->length;
602 *lenFieldPatterns += sizeof(fieldPattern->length);
604 fieldPatterns[*lenFieldPatterns] = fieldPattern->flag;
605 *lenFieldPatterns += sizeof(fieldPattern->flag);
607 os_memoryCopy(pRxData->hOs, fieldPatterns + *lenFieldPatterns, fieldPattern->pattern, fieldPattern->length);
608 *lenFieldPatterns += fieldPattern->length;
611 if ((fieldPattern->flag & RX_DATA_FILTER_FLAG_USE_BIT_MASK) == RX_DATA_FILTER_FLAG_USE_BIT_MASK)
613 os_memoryCopy(pRxData->hOs, fieldPatterns + *lenFieldPatterns, fieldPattern->mask, fieldPattern->length);
614 *lenFieldPatterns += fieldPattern->length;
617 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));
645 rxDataFilterFieldPattern_t fieldPattern;
664 closeFieldPattern(hRxData, &fieldPattern, fieldPatterns, lenFieldPatterns);
688 fieldPattern.offset = request->offset + maskIter;
689 fieldPattern.length = 0;
692 fieldPattern.flag = RX_DATA_FILTER_FLAG_NO_BIT_MASK;
695 if (fieldPattern.offset < RX_DATA_FILTER_ETHERNET_HEADER_BOUNDARY)
697 fieldPattern.flag |= RX_DATA_FILTER_FLAG_ETHERNET_HEADER;
701 fieldPattern.flag |= RX_DATA_FILTER_FLAG_IP_HEADER;
702 fieldPattern.offset -= RX_DATA_FILTER_ETHERNET_HEADER_BOUNDARY;
705 TRACE2(pRxData->hReport, REPORT_SEVERITY_INFORMATION, ": offset = %d, flag = %d.\n", fieldPattern.offset, fieldPattern.flag);
717 fieldPattern.pattern[fieldPattern.length++] = request->pattern[patternIter++];
720 if (fieldPattern.offset + fieldPattern.length >= RX_DATA_FILTER_FILTER_BOUNDARY)
740 closeFieldPattern (hRxData, &fieldPattern, fieldPatterns, lenFieldPatterns);