Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 75) sorted by relevance

123

/drivers/tc/
Dtc.c43 u8 pattern[4]; in tc_bus_add_devices() local
55 err |= tc_preadb(pattern + 0, module + offset + TC_PATTERN0); in tc_bus_add_devices()
56 err |= tc_preadb(pattern + 1, module + offset + TC_PATTERN1); in tc_bus_add_devices()
57 err |= tc_preadb(pattern + 2, module + offset + TC_PATTERN2); in tc_bus_add_devices()
58 err |= tc_preadb(pattern + 3, module + offset + TC_PATTERN3); in tc_bus_add_devices()
62 if (pattern[0] != 0x55 || pattern[1] != 0x00 || in tc_bus_add_devices()
63 pattern[2] != 0xaa || pattern[3] != 0xff) { in tc_bus_add_devices()
67 err |= tc_preadb(pattern + 0, in tc_bus_add_devices()
69 err |= tc_preadb(pattern + 1, in tc_bus_add_devices()
71 err |= tc_preadb(pattern + 2, in tc_bus_add_devices()
[all …]
/drivers/regulator/
Dmax8997.c201 int *reg, int *mask, int *pattern) in max8997_get_enable_register() argument
209 *pattern = 0xC0; in max8997_get_enable_register()
214 *pattern = 0x01; in max8997_get_enable_register()
219 *pattern = 0x01; in max8997_get_enable_register()
224 *pattern = 0x01; in max8997_get_enable_register()
229 *pattern = 0x01; in max8997_get_enable_register()
234 *pattern = 0x01; in max8997_get_enable_register()
239 *pattern = 0x01; in max8997_get_enable_register()
244 *pattern = 0x01; in max8997_get_enable_register()
249 *pattern = 0x01 << (rid - MAX8997_EN32KHZ_AP); in max8997_get_enable_register()
[all …]
Ds5m8767.c178 int mask = 0xc0, pattern = 0xc0; in s5m8767_reg_is_enabled() local
191 return (val & mask) == pattern; in s5m8767_reg_is_enabled()
198 int mask = 0xc0, pattern = 0xc0; in s5m8767_reg_enable() local
204 return s5m_reg_update(s5m8767->iodev, reg, pattern, mask); in s5m8767_reg_enable()
211 int mask = 0xc0, pattern = 0xc0; in s5m8767_reg_disable() local
217 return s5m_reg_update(s5m8767->iodev, reg, ~pattern, mask); in s5m8767_reg_disable()
/drivers/isdn/mISDN/
Ddsp_tones.c235 static struct pattern { struct
240 } pattern[] = { argument
378 struct pattern *pat; in dsp_tone_copy()
388 pat = (struct pattern *)tone->pattern; in dsp_tone_copy()
464 struct pattern *pat = (struct pattern *)tone->pattern; in dsp_tone_timeout()
499 struct pattern *pat; in dsp_tone()
518 while (pattern[i].tone) { in dsp_tone()
519 if (pattern[i].tone == tone) { in dsp_tone()
520 pat = &pattern[i]; in dsp_tone()
533 tonet->pattern = pat; in dsp_tone()
/drivers/leds/
Dleds-lp5523.c155 static int lp5523_load_program(struct lp5523_engine *engine, const u8 *pattern);
199 static const u8 pattern[][LP5523_PROGRAM_LENGTH] = { in lp5523_configure() local
224 ret |= lp5523_load_program(&chip->engines[0], pattern[0]); in lp5523_configure()
225 ret |= lp5523_load_program(&chip->engines[1], pattern[1]); in lp5523_configure()
226 ret |= lp5523_load_program(&chip->engines[2], pattern[2]); in lp5523_configure()
304 static int lp5523_load_program(struct lp5523_engine *engine, const u8 *pattern) in lp5523_load_program() argument
316 LP5523_PROGRAM_LENGTH, pattern); in lp5523_load_program()
547 u8 pattern[LP5523_PROGRAM_LENGTH] = {0}; in lp5523_do_store_load() local
555 pattern[i] = (u8)cmd; in lp5523_do_store_load()
568 ret = lp5523_load_program(engine, pattern); in lp5523_do_store_load()
Dleds-lp5521.c186 static int lp5521_load_program(struct lp5521_engine *eng, const u8 *pattern) in lp5521_load_program() argument
217 pattern); in lp5521_load_program()
357 u8 pattern[LP5521_PROGRAM_LENGTH] = {0}; in lp5521_do_store_load() local
367 pattern[i] = (u8)cmd; in lp5521_do_store_load()
379 ret = lp5521_load_program(engine, pattern); in lp5521_do_store_load()
/drivers/dma/
Ddmatest.c158 static void dmatest_mismatch(u8 actual, u8 pattern, unsigned int index, in dmatest_mismatch() argument
161 u8 diff = actual ^ pattern; in dmatest_mismatch()
162 u8 expected = pattern | (~counter & PATTERN_COUNT_MASK); in dmatest_mismatch()
169 else if ((pattern & PATTERN_COPY) in dmatest_mismatch()
185 unsigned int end, unsigned int counter, u8 pattern, in dmatest_verify() argument
199 expected = pattern | (~counter & PATTERN_COUNT_MASK); in dmatest_verify()
202 dmatest_mismatch(actual, pattern, i, in dmatest_verify()
/drivers/usb/gadget/
Df_sourcesink.c61 static unsigned pattern; variable
62 module_param(pattern, uint, 0);
63 MODULE_PARM_DESC(pattern, "0 = all zeroes, 1 = mod63 ");
255 switch (pattern) { in check_read_data()
287 switch (pattern) { in reinit_write_data()
/drivers/mtd/nand/
Dnand_bbt.c76 ret = memcmp(buf, td->pattern, td->len); in check_pattern_no_oob()
111 if (memcmp(p, td->pattern, td->len)) in check_pattern()
141 if (p[td->offs + i] != td->pattern[i]) in check_short_pattern()
798 memcpy(buf, td->pattern, td->len); in write_bbt()
810 memcpy(&buf[ooboffs + td->offs], td->pattern, td->len); in write_bbt()
1250 .pattern = scan_agand_pattern
1264 .pattern = bbt_pattern
1274 .pattern = mirror_pattern
1284 .pattern = bbt_pattern
1294 .pattern = mirror_pattern
[all …]
Drtc_from4.c122 .pattern = bbt_pattern
132 .pattern = mirror_pattern
Dcafe_nand.c480 .pattern = cafe_bbt_pattern_2048
490 .pattern = cafe_mirror_pattern_2048
506 .pattern = cafe_bbt_pattern_512
516 .pattern = cafe_mirror_pattern_512
/drivers/mmc/host/
Dmmc_spi.c679 u32 pattern; in mmc_spi_writeblock() local
713 pattern = scratch->status[0] << 24; in mmc_spi_writeblock()
714 pattern |= scratch->status[1] << 16; in mmc_spi_writeblock()
715 pattern |= scratch->status[2] << 8; in mmc_spi_writeblock()
716 pattern |= scratch->status[3]; in mmc_spi_writeblock()
719 pattern |= 0xE0000000; in mmc_spi_writeblock()
722 while (pattern & 0x80000000) in mmc_spi_writeblock()
723 pattern <<= 1; in mmc_spi_writeblock()
725 pattern >>= 27; in mmc_spi_writeblock()
727 switch (pattern) { in mmc_spi_writeblock()
/drivers/isdn/hardware/eicon/
Dos_pri.c914 word pattern; in dsp_check_presence() local
920 pattern = READ_WORD(data); in dsp_check_presence()
922 if (pattern != DSP_SIGNATURE_PROBE_WORD) { in dsp_check_presence()
924 dsp, pattern, DSP_SIGNATURE_PROBE_WORD)) in dsp_check_presence()
932 pattern = READ_WORD(data); in dsp_check_presence()
934 if (pattern != (word)~DSP_SIGNATURE_PROBE_WORD) { in dsp_check_presence()
936 dsp, pattern, (word)~DSP_SIGNATURE_PROBE_WORD)) in dsp_check_presence()
/drivers/mtd/onenand/
Donenand_bbt.c40 if (p[i] != td->pattern[i]) in check_short_pattern()
224 .pattern = scan_ff_pattern,
/drivers/net/wireless/brcm80211/brcmfmac/
Ddhd_common.c705 pkt_filter.u.pattern.offset = 0; in brcmf_c_pktfilter_offload_set()
707 pkt_filter.u.pattern.offset = cpu_to_le32((u32)res); in brcmf_c_pktfilter_offload_set()
717 (argv[i], (char *)pkt_filterp->u.pattern.mask_and_pattern); in brcmf_c_pktfilter_offload_set()
727 (char *)&pkt_filterp->u.pattern. in brcmf_c_pktfilter_offload_set()
735 pkt_filter.u.pattern.size_bytes = cpu_to_le32(mask_size); in brcmf_c_pktfilter_offload_set()
/drivers/gpu/drm/nouveau/
Dnouveau_dp.c244 dp_set_training_pattern(struct drm_device *dev, struct dp_state *dp, u8 pattern) in dp_set_training_pattern() argument
248 NV_DEBUG_KMS(dev, "training pattern %d\n", pattern); in dp_set_training_pattern()
250 dp->func->train_set(dev, dp->dcb, pattern); in dp_set_training_pattern()
254 sink_tp |= pattern; in dp_set_training_pattern()
Dnouveau_encoder.h38 void (*train_set)(struct drm_device *, struct dcb_entry *, u8 pattern);
Dnv50_sor.c51 nv50_sor_dp_train_set(struct drm_device *dev, struct dcb_entry *dcb, u8 pattern) in nv50_sor_dp_train_set() argument
54 nv_mask(dev, NV50_SOR_DP_CTRL(or, link), 0x0f000000, pattern << 24); in nv50_sor_dp_train_set()
/drivers/ata/
Dlibata-core.c4182 static int glob_match (const char *text, const char *pattern) in glob_match() argument
4186 if (*text == *pattern || *pattern == '?') { in glob_match()
4187 if (!*pattern++) in glob_match()
4191 if (!*text || *pattern != '[') in glob_match()
4193 while (*++pattern && *pattern != ']' && *text != *pattern) { in glob_match()
4194 if (*pattern == '-' && *(pattern - 1) != '[') in glob_match()
4195 if (*text > *(pattern - 1) && *text < *(pattern + 1)) { in glob_match()
4196 ++pattern; in glob_match()
4200 if (!*pattern || *pattern == ']') in glob_match()
4202 while (*pattern && *pattern++ != ']'); in glob_match()
[all …]
/drivers/staging/vme/
Dvme_bridge.h36 u32 pattern; member
/drivers/scsi/
Dscsi_transport_spi.c641 unsigned int pattern = 0x0000ffff; in spi_dv_device_echo_buffer() local
678 u32 roll = (pattern & 0x80000000) ? 1 : 0; in spi_dv_device_echo_buffer()
680 *word = pattern; in spi_dv_device_echo_buffer()
681 pattern = (pattern << 1) | roll; in spi_dv_device_echo_buffer()
/drivers/net/ethernet/emulex/benet/
Dbe_cmds.h1243 u64 pattern; member
1274 u64 pattern; member
1283 u64 pattern; member
1651 u32 num_pkts, u64 pattern);
1652 extern int be_cmd_ddr_dma_test(struct be_adapter *adapter, u64 pattern,
/drivers/target/iscsi/
Discsi_target_nego.c62 const char *pattern, in extract_param() argument
70 if (!in_buf || !pattern || !out_buf || !type) in extract_param()
73 ptr = strstr(in_buf, pattern); in extract_param()
/drivers/net/ethernet/sgi/
Dioc3-eth.c980 unsigned int pattern = 0x5555; in ioc3_ssram_disc() local
985 *ssram0 = pattern; in ioc3_ssram_disc()
986 *ssram1 = ~pattern & IOC3_SSRAM_DM; in ioc3_ssram_disc()
988 if ((*ssram0 & IOC3_SSRAM_DM) != pattern || in ioc3_ssram_disc()
989 (*ssram1 & IOC3_SSRAM_DM) != (~pattern & IOC3_SSRAM_DM)) { in ioc3_ssram_disc()
/drivers/net/wireless/ath/carl9170/
Dfwcmd.h192 u8 pattern[32]; member

123