patterns         3719 drivers/char/pcmcia/synclink_cs.c 	static unsigned char patterns[] =
patterns         3721 drivers/char/pcmcia/synclink_cs.c 	static unsigned int count = ARRAY_SIZE(patterns);
patterns         3730 drivers/char/pcmcia/synclink_cs.c 		write_reg(info, XAD1, patterns[i]);
patterns         3731 drivers/char/pcmcia/synclink_cs.c 		write_reg(info, XAD2, patterns[(i + 1) % count]);
patterns         3732 drivers/char/pcmcia/synclink_cs.c 		if ((read_reg(info, XAD1) != patterns[i]) ||
patterns         3733 drivers/char/pcmcia/synclink_cs.c 		    (read_reg(info, XAD2) != patterns[(i + 1) % count])) {
patterns          366 drivers/leds/leds-lp5562.c 	ptn = chip->pdata->patterns + (mode - 1);
patterns          411 drivers/leds/leds-lp5562.c 	struct lp55xx_predef_pattern *ptn = chip->pdata->patterns;
patterns           26 drivers/leds/trigger/ledtrig-pattern.c 	struct led_pattern patterns[MAX_PATTERNS];
patterns           42 drivers/leds/trigger/ledtrig-pattern.c 	if (!data->is_indefinite && data->curr == data->patterns)
patterns           45 drivers/leds/trigger/ledtrig-pattern.c 	if (data->next == data->patterns + data->npatterns - 1)
patterns           46 drivers/leds/trigger/ledtrig-pattern.c 		data->next = data->patterns;
patterns          128 drivers/leds/trigger/ledtrig-pattern.c 		return led_cdev->pattern_set(led_cdev, data->patterns,
patterns          137 drivers/leds/trigger/ledtrig-pattern.c 	data->curr = data->patterns;
patterns          138 drivers/leds/trigger/ledtrig-pattern.c 	data->next = data->patterns + 1;
patterns          212 drivers/leds/trigger/ledtrig-pattern.c 				   data->patterns[i].brightness,
patterns          213 drivers/leds/trigger/ledtrig-pattern.c 				   data->patterns[i].delta_t);
patterns          231 drivers/leds/trigger/ledtrig-pattern.c 				&data->patterns[data->npatterns].brightness,
patterns          232 drivers/leds/trigger/ledtrig-pattern.c 				&data->patterns[data->npatterns].delta_t, &cr);
patterns          251 drivers/leds/trigger/ledtrig-pattern.c 		data->patterns[data->npatterns].brightness = buf[i];
patterns          252 drivers/leds/trigger/ledtrig-pattern.c 		data->patterns[data->npatterns].delta_t = buf[i + 1];
patterns         2188 drivers/mtd/nand/raw/nand_base.c 			pattern = &parser->patterns[i];
patterns         2209 drivers/mtd/nand/raw/nand_base.c 			pattern = &parser->patterns[best_pattern];
patterns          352 drivers/mtd/ubi/io.c static uint8_t patterns[] = {0xa5, 0x5a, 0x0};
patterns          368 drivers/mtd/ubi/io.c 	patt_count = ARRAY_SIZE(patterns);
patterns          391 drivers/mtd/ubi/io.c 		memset(ubi->peb_buf, patterns[i], ubi->peb_size);
patterns          396 drivers/mtd/ubi/io.c 		memset(ubi->peb_buf, ~patterns[i], ubi->peb_size);
patterns          401 drivers/mtd/ubi/io.c 		err = ubi_check_pattern(ubi->peb_buf, patterns[i],
patterns          405 drivers/mtd/ubi/io.c 				patterns[i], pnum);
patterns           16 drivers/net/ethernet/intel/i40e/i40e_diag.c 	static const u32 patterns[] = {
patterns           23 drivers/net/ethernet/intel/i40e/i40e_diag.c 	for (i = 0; i < ARRAY_SIZE(patterns); i++) {
patterns           24 drivers/net/ethernet/intel/i40e/i40e_diag.c 		pat = patterns[i];
patterns          345 drivers/net/ethernet/intel/ice/ice_ethtool.c 	static const u32 patterns[] = {
patterns          353 drivers/net/ethernet/intel/ice/ice_ethtool.c 	for (i = 0; i < ARRAY_SIZE(patterns); ++i) {
patterns          354 drivers/net/ethernet/intel/ice/ice_ethtool.c 		u32 pattern = patterns[i] & mask;
patterns          177 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	const struct mlxsw_sp_acl_tcam_pattern *patterns;
patterns          316 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 			     const struct mlxsw_sp_acl_tcam_pattern *patterns,
patterns          323 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 	vgroup->patterns = patterns;
patterns          597 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c 		pattern = &vgroup->patterns[i];
patterns          271 drivers/net/wireless/ath/ath10k/wow.c 	const struct cfg80211_pkt_pattern *patterns = wowlan->patterns;
patterns          328 drivers/net/wireless/ath/ath10k/wow.c 		struct cfg80211_pkt_pattern old_pattern = patterns[i];
patterns          333 drivers/net/wireless/ath/ath10k/wow.c 		if (patterns[i].pattern_len > WOW_MAX_PATTERN_SIZE)
patterns          336 drivers/net/wireless/ath/ath10k/wow.c 		for (j = 0; j < patterns[i].pattern_len; j++)
patterns          337 drivers/net/wireless/ath/ath10k/wow.c 			if (patterns[i].mask[j / 8] & BIT(j % 8))
patterns          343 drivers/net/wireless/ath/ath10k/wow.c 			if (patterns[i].pkt_offset < ETH_HLEN)
patterns         1923 drivers/net/wireless/ath/ath6kl/cfg80211.c 		for (pos = 0; pos < wow->patterns[i].pattern_len; pos++) {
patterns         1924 drivers/net/wireless/ath/ath6kl/cfg80211.c 			if (wow->patterns[i].mask[pos / 8] & (0x1 << (pos % 8)))
patterns         1935 drivers/net/wireless/ath/ath6kl/cfg80211.c 				wow->patterns[i].pattern_len,
patterns         1937 drivers/net/wireless/ath/ath6kl/cfg80211.c 				wow->patterns[i].pattern, mask);
patterns          142 drivers/net/wireless/ath/ath9k/wow.c 	struct cfg80211_pkt_pattern *patterns = wowlan->patterns;
patterns          149 drivers/net/wireless/ath/ath9k/wow.c 		mask_len = DIV_ROUND_UP(patterns[i].pattern_len, 8);
patterns          152 drivers/net/wireless/ath/ath9k/wow.c 		memcpy(wow_pattern, patterns[i].pattern, patterns[i].pattern_len);
patterns          153 drivers/net/wireless/ath/ath9k/wow.c 		memcpy(wow_mask, patterns[i].mask, mask_len);
patterns          159 drivers/net/wireless/ath/ath9k/wow.c 						 patterns[i].pattern_len);
patterns         3689 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	if ((wowl->patterns) && (wowl->n_patterns)) {
patterns         3693 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 				(u8 *)wowl->patterns[i].pattern,
patterns         3694 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 				wowl->patterns[i].pattern_len,
patterns         3695 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 				(u8 *)wowl->patterns[i].mask,
patterns         3696 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 				wowl->patterns[i].pkt_offset);
patterns         3768 drivers/net/wireless/intel/iwlwifi/dvm/commands.h 	struct iwlagn_wowlan_pattern patterns[];
patterns         1012 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 	cmd.len[0] = struct_size(pattern_cmd, patterns, wowlan->n_patterns);
patterns         1021 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 		int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8);
patterns         1023 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 		memcpy(&pattern_cmd->patterns[i].mask,
patterns         1024 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 			wowlan->patterns[i].mask, mask_len);
patterns         1025 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 		memcpy(&pattern_cmd->patterns[i].pattern,
patterns         1026 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 			wowlan->patterns[i].pattern,
patterns         1027 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 			wowlan->patterns[i].pattern_len);
patterns         1028 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 		pattern_cmd->patterns[i].mask_size = mask_len;
patterns         1029 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 		pattern_cmd->patterns[i].pattern_size =
patterns         1030 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 			wowlan->patterns[i].pattern_len;
patterns          239 drivers/net/wireless/intel/iwlwifi/fw/api/d3.h 	struct iwl_wowlan_pattern_v1 patterns[];
patterns          359 drivers/net/wireless/intel/iwlwifi/fw/api/d3.h 	struct iwl_wowlan_pattern_v2 patterns[];
patterns          401 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 	cmd.len[0] = struct_size(pattern_cmd, patterns, wowlan->n_patterns);
patterns          410 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8);
patterns          412 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		memcpy(&pattern_cmd->patterns[i].mask,
patterns          413 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		       wowlan->patterns[i].mask, mask_len);
patterns          414 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		memcpy(&pattern_cmd->patterns[i].pattern,
patterns          415 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		       wowlan->patterns[i].pattern,
patterns          416 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		       wowlan->patterns[i].pattern_len);
patterns          417 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		pattern_cmd->patterns[i].mask_size = mask_len;
patterns          418 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		pattern_cmd->patterns[i].pattern_size =
patterns          419 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 			wowlan->patterns[i].pattern_len;
patterns          451 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8);
patterns          453 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		pattern_cmd->patterns[i].pattern_type =
patterns          456 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		memcpy(&pattern_cmd->patterns[i].u.bitmask.mask,
patterns          457 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		       wowlan->patterns[i].mask, mask_len);
patterns          458 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		memcpy(&pattern_cmd->patterns[i].u.bitmask.pattern,
patterns          459 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		       wowlan->patterns[i].pattern,
patterns          460 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		       wowlan->patterns[i].pattern_len);
patterns          461 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		pattern_cmd->patterns[i].u.bitmask.mask_size = mask_len;
patterns          462 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		pattern_cmd->patterns[i].u.bitmask.pattern_size =
patterns          463 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 			wowlan->patterns[i].pattern_len;
patterns         3321 drivers/net/wireless/marvell/mwifiex/cfg80211.c 		if (!mwifiex_is_pattern_supported(&wowlan->patterns[i],
patterns         3329 drivers/net/wireless/marvell/mwifiex/cfg80211.c 		if (!wowlan->patterns[i].pkt_offset) {
patterns         3347 drivers/net/wireless/marvell/mwifiex/cfg80211.c 			wowlan->patterns[i].pkt_offset;
patterns         3643 drivers/net/wireless/marvell/mwifiex/cfg80211.c 		if (!mwifiex_is_pattern_supported(&crule->patterns[i],
patterns         3651 drivers/net/wireless/marvell/mwifiex/cfg80211.c 		if (!crule->patterns[i].pkt_offset) {
patterns         3673 drivers/net/wireless/marvell/mwifiex/cfg80211.c 		param->offset = crule->patterns[i].pkt_offset;
patterns         2672 drivers/net/wireless/quantenna/qtnfmac/commands.c 		if (wowl->n_patterns && wowl->patterns) {
patterns         2677 drivers/net/wireless/quantenna/qtnfmac/commands.c 					wowl->patterns[count].pattern,
patterns         2678 drivers/net/wireless/quantenna/qtnfmac/commands.c 					wowl->patterns[count].pattern_len);
patterns          422 drivers/net/wireless/realtek/rtlwifi/core.c 	struct cfg80211_pkt_pattern *patterns = wow->patterns;
patterns          436 drivers/net/wireless/realtek/rtlwifi/core.c 		if (patterns[i].pattern_len < 0 ||
patterns          437 drivers/net/wireless/realtek/rtlwifi/core.c 		    patterns[i].pattern_len > MAX_WOL_PATTERN_SIZE) {
patterns          442 drivers/net/wireless/realtek/rtlwifi/core.c 		pattern_os = patterns[i].pattern;
patterns          443 drivers/net/wireless/realtek/rtlwifi/core.c 		mask_len = DIV_ROUND_UP(patterns[i].pattern_len, 8);
patterns          444 drivers/net/wireless/realtek/rtlwifi/core.c 		mask_os = patterns[i].mask;
patterns          447 drivers/net/wireless/realtek/rtlwifi/core.c 			       patterns[i].pattern_len);
patterns          507 drivers/net/wireless/realtek/rtlwifi/core.c 		for (j = 12; j < patterns[i].pattern_len; j++) {
patterns         1575 drivers/net/wireless/ti/wlcore/main.c 		ret = wl1271_validate_wowlan_pattern(&wow->patterns[i]);
patterns         1595 drivers/net/wireless/ti/wlcore/main.c 		p = &wow->patterns[i];
patterns         4929 drivers/tty/synclink_gt.c 	static unsigned short patterns[] =
patterns         4931 drivers/tty/synclink_gt.c 	static unsigned int count = ARRAY_SIZE(patterns);
patterns         4936 drivers/tty/synclink_gt.c 		wr_reg16(info, TIR, patterns[i]);
patterns         4937 drivers/tty/synclink_gt.c 		wr_reg16(info, BDR, patterns[(i+1)%count]);
patterns         4938 drivers/tty/synclink_gt.c 		if ((rd_reg16(info, TIR) != patterns[i]) ||
patterns         4939 drivers/tty/synclink_gt.c 		    (rd_reg16(info, BDR) != patterns[(i+1)%count])) {
patterns          841 include/linux/mtd/rawnand.h 	const struct nand_op_parser_pattern *patterns;
patterns          847 include/linux/mtd/rawnand.h 		.patterns = (const struct nand_op_parser_pattern[]) { __VA_ARGS__ },		\
patterns           71 include/linux/platform_data/leds-lp55xx.h 	struct lp55xx_predef_pattern *patterns;
patterns         2708 include/net/cfg80211.h 	struct cfg80211_pkt_pattern *patterns;
patterns         2727 include/net/cfg80211.h 	struct cfg80211_pkt_pattern *patterns;
patterns            7 mm/memtest.c   static u64 patterns[] __initdata = {
patterns           93 mm/memtest.c   		memtest_pattern = ARRAY_SIZE(patterns);
patterns          110 mm/memtest.c   		idx = i % ARRAY_SIZE(patterns);
patterns          111 mm/memtest.c   		do_one_pass(patterns[idx], start, end);
patterns          127 net/wireless/core.h 		kfree(rdev->wiphy.wowlan_config->patterns[i].mask);
patterns          128 net/wireless/core.h 	kfree(rdev->wiphy.wowlan_config->patterns);
patterns         11154 net/wireless/nl80211.c 		pat_len = wowlan->patterns[i].pattern_len;
patterns         11156 net/wireless/nl80211.c 			    wowlan->patterns[i].mask) ||
patterns         11158 net/wireless/nl80211.c 			    wowlan->patterns[i].pattern) ||
patterns         11160 net/wireless/nl80211.c 				wowlan->patterns[i].pkt_offset))
patterns         11645 net/wireless/nl80211.c 		new_triggers.patterns = kcalloc(n_patterns,
patterns         11646 net/wireless/nl80211.c 						sizeof(new_triggers.patterns[0]),
patterns         11648 net/wireless/nl80211.c 		if (!new_triggers.patterns)
patterns         11685 net/wireless/nl80211.c 			new_triggers.patterns[i].pkt_offset = pkt_offset;
patterns         11692 net/wireless/nl80211.c 			new_triggers.patterns[i].mask = mask_pat;
patterns         11696 net/wireless/nl80211.c 			new_triggers.patterns[i].pattern = mask_pat;
patterns         11697 net/wireless/nl80211.c 			new_triggers.patterns[i].pattern_len = pat_len;
patterns         11750 net/wireless/nl80211.c 		kfree(new_triggers.patterns[i].mask);
patterns         11751 net/wireless/nl80211.c 	kfree(new_triggers.patterns);
patterns         11797 net/wireless/nl80211.c 			pat_len = rule->patterns[j].pattern_len;
patterns         11800 net/wireless/nl80211.c 				    rule->patterns[j].mask) ||
patterns         11802 net/wireless/nl80211.c 				    rule->patterns[j].pattern) ||
patterns         11804 net/wireless/nl80211.c 					rule->patterns[j].pkt_offset))
patterns         11857 net/wireless/nl80211.c 			kfree(rule->patterns[j].mask);
patterns         11858 net/wireless/nl80211.c 		kfree(rule->patterns);
patterns         11899 net/wireless/nl80211.c 	new_rule->patterns = kcalloc(n_patterns, sizeof(new_rule->patterns[0]),
patterns         11901 net/wireless/nl80211.c 	if (!new_rule->patterns)
patterns         11935 net/wireless/nl80211.c 		new_rule->patterns[i].pkt_offset = pkt_offset;
patterns         11941 net/wireless/nl80211.c 		new_rule->patterns[i].mask = mask_pat;
patterns         11946 net/wireless/nl80211.c 		new_rule->patterns[i].pattern = mask_pat;
patterns         11947 net/wireless/nl80211.c 		new_rule->patterns[i].pattern_len = pat_len;
patterns         12016 net/wireless/nl80211.c 			kfree(tmp_rule->patterns[j].mask);
patterns         12017 net/wireless/nl80211.c 		kfree(tmp_rule->patterns);