Home
last modified time | relevance | path

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

123456789

/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_ptrn.c80 struct mlx5dr_ptrn_obj *pattern; in dr_ptrn_alloc_pattern() local
97 pattern = kzalloc(sizeof(*pattern), GFP_KERNEL); in dr_ptrn_alloc_pattern()
98 if (!pattern) in dr_ptrn_alloc_pattern()
101 pattern->data = kzalloc(num_of_actions * DR_MODIFY_ACTION_SIZE * in dr_ptrn_alloc_pattern()
102 sizeof(*pattern->data), GFP_KERNEL); in dr_ptrn_alloc_pattern()
103 if (!pattern->data) in dr_ptrn_alloc_pattern()
106 memcpy(pattern->data, data, num_of_actions * DR_MODIFY_ACTION_SIZE); in dr_ptrn_alloc_pattern()
107 pattern->chunk = chunk; in dr_ptrn_alloc_pattern()
108 pattern->index = index; in dr_ptrn_alloc_pattern()
109 pattern->num_of_actions = num_of_actions; in dr_ptrn_alloc_pattern()
[all …]
/drivers/tc/
Dtc.c44 u8 pattern[4]; in tc_bus_add_devices() local
56 err |= tc_preadb(pattern + 0, module + offset + TC_PATTERN0); in tc_bus_add_devices()
57 err |= tc_preadb(pattern + 1, module + offset + TC_PATTERN1); in tc_bus_add_devices()
58 err |= tc_preadb(pattern + 2, module + offset + TC_PATTERN2); in tc_bus_add_devices()
59 err |= tc_preadb(pattern + 3, module + offset + TC_PATTERN3); in tc_bus_add_devices()
63 if (pattern[0] != 0x55 || pattern[1] != 0x00 || in tc_bus_add_devices()
64 pattern[2] != 0xaa || pattern[3] != 0xff) { in tc_bus_add_devices()
68 err |= tc_preadb(pattern + 0, in tc_bus_add_devices()
70 err |= tc_preadb(pattern + 1, in tc_bus_add_devices()
72 err |= tc_preadb(pattern + 2, in tc_bus_add_devices()
[all …]
/drivers/leds/
Dleds-el15203000.c140 struct led_pattern *pattern, in el15203000_pattern_set_S() argument
146 pattern[0].delta_t != 4000 || pattern[0].brightness != 0 || in el15203000_pattern_set_S()
147 pattern[1].delta_t != 4000 || pattern[1].brightness != 1) in el15203000_pattern_set_S()
156 static bool is_cascade(const struct led_pattern *pattern, u32 len, in is_cascade() argument
170 if (pattern[i].delta_t != EL_PATTERN_DELAY_MSEC || in is_cascade()
171 pattern[i].brightness != t) in is_cascade()
180 static bool is_bounce(const struct led_pattern *pattern, u32 len, bool inv) in is_bounce() argument
185 return is_cascade(pattern, EL_PATTERN_HALF_LEN, inv, false) && in is_bounce()
186 is_cascade(pattern + EL_PATTERN_HALF_LEN, in is_bounce()
191 struct led_pattern *pattern, in el15203000_pattern_set_P() argument
[all …]
Dleds-sc27xx-bltc.c172 struct led_pattern *pattern, in sc27xx_led_pattern_set() argument
191 sc27xx_led_clamp_align_delta_t(&pattern[0].delta_t); in sc27xx_led_pattern_set()
194 pattern[0].delta_t / SC27XX_LEDS_STEP); in sc27xx_led_pattern_set()
198 sc27xx_led_clamp_align_delta_t(&pattern[1].delta_t); in sc27xx_led_pattern_set()
201 pattern[1].delta_t / SC27XX_LEDS_STEP); in sc27xx_led_pattern_set()
205 sc27xx_led_clamp_align_delta_t(&pattern[2].delta_t); in sc27xx_led_pattern_set()
208 (pattern[2].delta_t / SC27XX_LEDS_STEP) << in sc27xx_led_pattern_set()
213 sc27xx_led_clamp_align_delta_t(&pattern[3].delta_t); in sc27xx_led_pattern_set()
216 (pattern[3].delta_t / SC27XX_LEDS_STEP) << in sc27xx_led_pattern_set()
223 (pattern[1].brightness << SC27XX_DUTY_SHIFT) | in sc27xx_led_pattern_set()
[all …]
Dleds-cht-wcove.c290 struct led_pattern *pattern, in cht_wc_leds_pattern_set() argument
296 pattern[0].brightness != 0 || pattern[1].brightness != 1 || in cht_wc_leds_pattern_set()
297 pattern[0].delta_t != pattern[1].delta_t || in cht_wc_leds_pattern_set()
298 (pattern[0].delta_t != 250 && pattern[0].delta_t != 500 && in cht_wc_leds_pattern_set()
299 pattern[0].delta_t != 1000 && pattern[0].delta_t != 2000)) in cht_wc_leds_pattern_set()
302 delay_off = pattern[0].delta_t; in cht_wc_leds_pattern_set()
303 delay_on = pattern[1].delta_t; in cht_wc_leds_pattern_set()
Dled-core.c379 u32 *pattern; in led_get_default_pattern() local
386 pattern = kcalloc(count, sizeof(*pattern), GFP_KERNEL); in led_get_default_pattern()
387 if (!pattern) in led_get_default_pattern()
390 if (fwnode_property_read_u32_array(fwnode, "led-pattern", pattern, count)) { in led_get_default_pattern()
391 kfree(pattern); in led_get_default_pattern()
397 return pattern; in led_get_default_pattern()
/drivers/gpu/drm/amd/display/dc/link/accessories/
Dlink_dp_cts.c670 enum dpcd_phy_test_patterns pattern; in dp_set_test_pattern() local
753 pattern = PHY_TEST_PATTERN_NONE; in dp_set_test_pattern()
756 pattern = PHY_TEST_PATTERN_D10_2; in dp_set_test_pattern()
759 pattern = PHY_TEST_PATTERN_SYMBOL_ERROR; in dp_set_test_pattern()
762 pattern = PHY_TEST_PATTERN_PRBS7; in dp_set_test_pattern()
765 pattern = PHY_TEST_PATTERN_80BIT_CUSTOM; in dp_set_test_pattern()
768 pattern = PHY_TEST_PATTERN_CP2520_1; in dp_set_test_pattern()
771 pattern = PHY_TEST_PATTERN_CP2520_2; in dp_set_test_pattern()
774 pattern = PHY_TEST_PATTERN_CP2520_3; in dp_set_test_pattern()
777 pattern = PHY_TEST_PATTERN_128b_132b_TPS1; in dp_set_test_pattern()
[all …]
/drivers/leds/trigger/
Dledtrig-timer.c80 u32 *pattern; in pattern_init() local
83 pattern = led_get_default_pattern(led_cdev, &size); in pattern_init()
84 if (!pattern) in pattern_init()
94 led_cdev->blink_delay_on = pattern[0]; in pattern_init()
95 led_cdev->blink_delay_off = pattern[1]; in pattern_init()
99 kfree(pattern); in pattern_init()
Dledtrig-oneshot.c132 u32 *pattern; in pattern_init() local
135 pattern = led_get_default_pattern(led_cdev, &size); in pattern_init()
136 if (!pattern) in pattern_init()
146 led_cdev->blink_delay_on = pattern[0]; in pattern_init()
147 led_cdev->blink_delay_off = pattern[1]; in pattern_init()
148 kfree(pattern); in pattern_init()
153 kfree(pattern); in pattern_init()
/drivers/regulator/
Dmax8997-regulator.c169 int *reg, int *mask, int *pattern) in max8997_get_enable_register() argument
177 *pattern = 0xC0; in max8997_get_enable_register()
182 *pattern = 0x01; in max8997_get_enable_register()
187 *pattern = 0x01; in max8997_get_enable_register()
192 *pattern = 0x01; in max8997_get_enable_register()
197 *pattern = 0x01; in max8997_get_enable_register()
202 *pattern = 0x01; in max8997_get_enable_register()
207 *pattern = 0x01; in max8997_get_enable_register()
212 *pattern = 0x01; in max8997_get_enable_register()
217 *pattern = 0x01 << (rid - MAX8997_EN32KHZ_AP); in max8997_get_enable_register()
[all …]
/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()
498 struct pattern *pat; in dsp_tone()
517 while (pattern[i].tone) { in dsp_tone()
518 if (pattern[i].tone == tone) { in dsp_tone()
519 pat = &pattern[i]; in dsp_tone()
532 tonet->pattern = pat; in dsp_tone()
/drivers/gpu/drm/tegra/
Ddp.c456 train->pattern = DP_TRAINING_PATTERN_DISABLE; in drm_dp_link_train_init()
471 u8 values[4], pattern = 0; in drm_dp_link_apply_training() local
511 if (link->train.pattern != DP_TRAINING_PATTERN_DISABLE) in drm_dp_link_apply_training()
512 pattern |= DP_LINK_SCRAMBLING_DISABLE; in drm_dp_link_apply_training()
514 pattern |= link->train.pattern; in drm_dp_link_apply_training()
516 err = drm_dp_dpcd_writeb(aux, DP_TRAINING_PATTERN_SET, pattern); in drm_dp_link_apply_training()
529 switch (link->train.pattern) { in drm_dp_link_train_wait()
626 link->train.pattern = DP_TRAINING_PATTERN_1; in drm_dp_link_clock_recovery()
683 link->train.pattern = DP_TRAINING_PATTERN_3; in drm_dp_link_channel_equalization()
685 link->train.pattern = DP_TRAINING_PATTERN_2; in drm_dp_link_channel_equalization()
[all …]
/drivers/comedi/drivers/ni_routing/tools/
Dcsv_collection.py14 def __init__(self, pattern, skip_commented_lines=True, strip_lines=True): argument
16 self.pattern = pattern
26 for fname in glob.glob(pattern):
/drivers/i2c/busses/
Di2c-gpio.c107 u32 pattern, u8 pattern_size) in i2c_gpio_incomplete_transfer() argument
122 setsda(bit_data, (pattern >> i) & 1); in i2c_gpio_incomplete_transfer()
134 u32 pattern; in fops_incomplete_addr_phase_set() local
140 pattern = (addr << 2) | 3; in fops_incomplete_addr_phase_set()
142 i2c_gpio_incomplete_transfer(priv, pattern, 9); in fops_incomplete_addr_phase_set()
151 u32 pattern; in fops_incomplete_write_byte_set() local
157 pattern = (addr << 2) | 1; in fops_incomplete_write_byte_set()
159 pattern = (pattern << 9) | 1; in fops_incomplete_write_byte_set()
161 i2c_gpio_incomplete_transfer(priv, pattern, 18); in fops_incomplete_write_byte_set()
/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_link_encoder.c298 const uint8_t *pattern) in set_dp_phy_pattern_80bit_custom() argument
317 ((pattern[1] & 0x03) << 8) | pattern[0]; in set_dp_phy_pattern_80bit_custom()
319 ((pattern[2] & 0x0f) << 6) | ((pattern[1] >> 2) & 0x3f); in set_dp_phy_pattern_80bit_custom()
321 ((pattern[3] & 0x3f) << 4) | ((pattern[2] >> 4) & 0x0f); in set_dp_phy_pattern_80bit_custom()
323 (pattern[4] << 2) | ((pattern[3] >> 6) & 0x03); in set_dp_phy_pattern_80bit_custom()
325 ((pattern[6] & 0x03) << 8) | pattern[5]; in set_dp_phy_pattern_80bit_custom()
327 ((pattern[7] & 0x0f) << 6) | ((pattern[6] >> 2) & 0x3f); in set_dp_phy_pattern_80bit_custom()
329 ((pattern[8] & 0x3f) << 4) | ((pattern[7] >> 4) & 0x0f); in set_dp_phy_pattern_80bit_custom()
331 (pattern[9] << 2) | ((pattern[8] >> 6) & 0x03); in set_dp_phy_pattern_80bit_custom()
/drivers/input/mouse/
Delan_i2c.h84 int (*get_version)(struct i2c_client *client, u8 pattern, bool iap,
86 int (*get_sm_version)(struct i2c_client *client, u8 pattern,
109 int (*get_report_features)(struct i2c_client *client, u8 pattern,
116 int (*get_pattern)(struct i2c_client *client, u8 *pattern);
Delan_i2c_i2c.c249 static int elan_i2c_get_pattern(struct i2c_client *client, u8 *pattern) in elan_i2c_get_pattern() argument
265 *pattern = val[0] == 0xFF && val[1] == 0xFF ? 0 : val[1]; in elan_i2c_get_pattern()
271 u8 pattern, bool iap, u8 *version) in elan_i2c_get_version() argument
279 else if (pattern == 0) in elan_i2c_get_version()
291 if (pattern >= 0x01) in elan_i2c_get_version()
298 static int elan_i2c_get_sm_version(struct i2c_client *client, u8 pattern, in elan_i2c_get_sm_version() argument
304 if (pattern >= 0x01) { in elan_i2c_get_sm_version()
718 static int elan_i2c_get_report_features(struct i2c_client *client, u8 pattern, in elan_i2c_get_report_features() argument
723 *report_len = pattern <= 0x01 ? in elan_i2c_get_report_features()
/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_dmabuf.c348 u32 pattern[] = { 0, 0xaa, 0xcc, 0x55, 0xff }; in igt_dmabuf_import() local
392 for (i = 0; i < ARRAY_SIZE(pattern); i++) { in igt_dmabuf_import()
393 memset(dma_map, pattern[i], PAGE_SIZE); in igt_dmabuf_import()
394 if (memchr_inv(obj_map, pattern[i], PAGE_SIZE)) { in igt_dmabuf_import()
396 pr_err("imported vmap not all set to %x!\n", pattern[i]); in igt_dmabuf_import()
402 for (i = 0; i < ARRAY_SIZE(pattern); i++) { in igt_dmabuf_import()
403 memset(obj_map, pattern[i], PAGE_SIZE); in igt_dmabuf_import()
404 if (memchr_inv(dma_map, pattern[i], PAGE_SIZE)) { in igt_dmabuf_import()
406 pr_err("exported vmap not all set to %x!\n", pattern[i]); in igt_dmabuf_import()
/drivers/media/platform/xilinx/
Dxilinx-tpg.c103 struct v4l2_ctrl *pattern; member
132 bool passthrough, bool pattern) in __xtpg_update_pattern_control() argument
134 u32 pattern_mask = (1 << (xtpg->pattern->maximum + 1)) - 1; in __xtpg_update_pattern_control()
148 if (pattern) in __xtpg_update_pattern_control()
151 __v4l2_ctrl_modify_range(xtpg->pattern, 0, xtpg->pattern->maximum, in __xtpg_update_pattern_control()
152 pattern_mask, pattern ? 9 : 0); in __xtpg_update_pattern_control()
156 bool passthrough, bool pattern) in xtpg_update_pattern_control() argument
159 __xtpg_update_pattern_control(xtpg, passthrough, pattern); in xtpg_update_pattern_control()
219 XTPG_PATTERN_MASK, xtpg->pattern->cur.val); in xtpg_s_stream()
225 passthrough = xtpg->pattern->cur.val == 0; in xtpg_s_stream()
[all …]
/drivers/leds/rgb/
Dleds-qcom-lpg.c219 static int lpg_lut_store(struct lpg *lpg, struct led_pattern *pattern, in lpg_lut_store() argument
232 val = pattern[i].brightness; in lpg_lut_store()
767 struct led_pattern *pattern; in lpg_pattern_set() local
798 pattern = kcalloc(len / 2, sizeof(*pattern), GFP_KERNEL); in lpg_pattern_set()
799 if (!pattern) in lpg_pattern_set()
808 pattern[i / 2].brightness = led_pattern[i].brightness; in lpg_pattern_set()
809 pattern[i / 2].delta_t = led_pattern[i].delta_t; in lpg_pattern_set()
843 brightness_a = pattern[i].brightness; in lpg_pattern_set()
844 brightness_b = pattern[len - i - 1].brightness; in lpg_pattern_set()
862 delta_t = pattern[1].delta_t; in lpg_pattern_set()
[all …]
/drivers/gpu/drm/amd/display/dc/link/protocols/
Dlink_dp_training.h48 enum dc_dp_training_pattern pattern,
76 enum dc_dp_training_pattern pattern,
169 enum dc_dp_training_pattern pattern);
173 enum dc_dp_training_pattern pattern);
Dlink_dp_training.c181 enum dc_dp_training_pattern pattern) in dp_initialize_scrambling_data_symbols() argument
185 switch (pattern) { in dp_initialize_scrambling_data_symbols()
199 __func__, pattern); in dp_initialize_scrambling_data_symbols()
208 enum dc_dp_training_pattern pattern) in dp_training_pattern_to_dpcd_training_pattern() argument
213 switch (pattern) { in dp_training_pattern_to_dpcd_training_pattern()
250 __func__, pattern); in dp_training_pattern_to_dpcd_training_pattern()
768 enum dc_dp_training_pattern pattern = DP_TRAINING_PATTERN_SEQUENCE_2; in decide_eq_training_pattern() local
778 pattern = DP_TRAINING_PATTERN_SEQUENCE_4; in decide_eq_training_pattern()
781 pattern = DP_TRAINING_PATTERN_SEQUENCE_3; in decide_eq_training_pattern()
783 pattern = DP_TRAINING_PATTERN_SEQUENCE_2; in decide_eq_training_pattern()
[all …]
/drivers/iio/adc/
Dad7780.c55 unsigned int pattern; member
191 ((raw_sample & chip_info->pattern_mask) != chip_info->pattern)) in ad7780_postprocess_sample()
236 .pattern = AD7170_PATTERN_GOOD,
242 .pattern = AD7170_PATTERN_GOOD,
248 .pattern = AD7780_PATTERN_GOOD,
254 .pattern = AD7780_PATTERN_GOOD,
/drivers/gpu/drm/amd/display/dc/dce/
Ddce_link_encoder.c368 const uint8_t *pattern) in set_dp_phy_pattern_80bit_custom() argument
387 ((pattern[1] & 0x03) << 8) | pattern[0]; in set_dp_phy_pattern_80bit_custom()
389 ((pattern[2] & 0x0f) << 6) | ((pattern[1] >> 2) & 0x3f); in set_dp_phy_pattern_80bit_custom()
391 ((pattern[3] & 0x3f) << 4) | ((pattern[2] >> 4) & 0x0f); in set_dp_phy_pattern_80bit_custom()
393 (pattern[4] << 2) | ((pattern[3] >> 6) & 0x03); in set_dp_phy_pattern_80bit_custom()
395 ((pattern[6] & 0x03) << 8) | pattern[5]; in set_dp_phy_pattern_80bit_custom()
397 ((pattern[7] & 0x0f) << 6) | ((pattern[6] >> 2) & 0x3f); in set_dp_phy_pattern_80bit_custom()
399 ((pattern[8] & 0x3f) << 4) | ((pattern[7] >> 4) & 0x0f); in set_dp_phy_pattern_80bit_custom()
401 (pattern[9] << 2) | ((pattern[8] >> 6) & 0x03); in set_dp_phy_pattern_80bit_custom()
/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dgm107.c32 gm107_sor_dp_pattern(struct nvkm_ior *sor, int pattern) in gm107_sor_dp_pattern() argument
38 switch (pattern) { in gm107_sor_dp_pattern()
60 .pattern = gm107_sor_dp_pattern,

123456789