Lines Matching refs:rtw_pattern
77 struct rtw_wow_pattern *rtw_pattern) in rtw_wow_pattern_write_cam_ent() argument
85 wdata = rtw_pattern->mask[i * 4]; in rtw_wow_pattern_write_cam_ent()
86 wdata |= rtw_pattern->mask[i * 4 + 1] << 8; in rtw_wow_pattern_write_cam_ent()
87 wdata |= rtw_pattern->mask[i * 4 + 2] << 16; in rtw_wow_pattern_write_cam_ent()
88 wdata |= rtw_pattern->mask[i * 4 + 3] << 24; in rtw_wow_pattern_write_cam_ent()
92 wdata = rtw_pattern->crc; in rtw_wow_pattern_write_cam_ent()
95 switch (rtw_pattern->type) { in rtw_wow_pattern_write_cam_ent()
165 struct rtw_wow_pattern *rtw_pattern) in rtw_wow_pattern_generate() argument
182 memset(rtw_pattern, 0, sizeof(*rtw_pattern)); in rtw_wow_pattern_generate()
187 rtw_pattern->type = RTW_PATTERN_BROADCAST; in rtw_wow_pattern_generate()
189 rtw_pattern->type = RTW_PATTERN_MULTICAST; in rtw_wow_pattern_generate()
191 rtw_pattern->type = RTW_PATTERN_UNICAST; in rtw_wow_pattern_generate()
193 rtw_pattern->type = RTW_PATTERN_INVALID; in rtw_wow_pattern_generate()
224 memcpy(rtw_pattern->mask, mask_hw, RTW_MAX_PATTERN_MASK_SIZE); in rtw_wow_pattern_generate()
238 rtw_pattern->crc = rtw_calc_crc(content, count); in rtw_wow_pattern_generate()
256 struct rtw_wow_pattern *rtw_pattern = rtw_wow->patterns; in rtw_wow_pattern_write() local
260 rtw_wow_pattern_write_cam_ent(rtwdev, i, rtw_pattern + i); in rtw_wow_pattern_write()