Lines Matching defs:pattern
3155 * @frame: The pattern frame bit.
3173 * hw_set_wol_frame - program Wake-on-LAN pattern
3177 * @mask: Mask to ignore certain bytes in the pattern.
3179 * @pattern: The frame data.
3181 * This routine is used to program Wake-on-LAN pattern.
3184 const u8 *mask, uint frame_size, const u8 *pattern)
3207 data[to++] = pattern[from];
3234 * hw_add_wol_arp - add ARP pattern
3238 * This routine is used to add ARP pattern for waking up the host.
3243 u8 pattern[42] = {
3253 memcpy(&pattern[38], ip_addr, 4);
3254 hw_set_wol_frame(hw, 3, 6, mask, 42, pattern);
3258 * hw_add_wol_bcast - add broadcast pattern
3261 * This routine is used to add broadcast pattern for waking up the host.
3266 static const u8 pattern[] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
3268 hw_set_wol_frame(hw, 2, 1, mask, ETH_ALEN, pattern);
3272 * hw_add_wol_mcast - add multicast pattern
3275 * This routine is used to add multicast pattern for waking up the host.
3284 u8 pattern[] = { 0x33, 0x33, 0xFF, 0x00, 0x00, 0x00 };
3286 memcpy(&pattern[3], &hw->override_addr[3], 3);
3287 hw_set_wol_frame(hw, 1, 1, mask, 6, pattern);
3291 * hw_add_wol_ucast - add unicast pattern
3294 * This routine is used to add unicast pattern to wakeup the host.