Home
last modified time | relevance | path

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

1234567

/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/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()
Dledtrig-pattern.c309 static DEVICE_ATTR_RW(pattern);
365 u32 *pattern; in pattern_init() local
368 pattern = led_get_default_pattern(led_cdev, &size); in pattern_init()
369 if (!pattern) in pattern_init()
377 err = pattern_trig_store_patterns(led_cdev, NULL, pattern, size, false); in pattern_init()
383 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/leds/
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 …]
Dled-core.c328 u32 *pattern; in led_get_default_pattern() local
335 pattern = kcalloc(count, sizeof(*pattern), GFP_KERNEL); in led_get_default_pattern()
336 if (!pattern) in led_get_default_pattern()
339 if (fwnode_property_read_u32_array(fwnode, "led-pattern", pattern, count)) { in led_get_default_pattern()
340 kfree(pattern); in led_get_default_pattern()
346 return pattern; in led_get_default_pattern()
/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/i915/gem/selftests/
Di915_gem_dmabuf.c85 u32 pattern[] = { 0, 0xaa, 0xcc, 0x55, 0xff }; in igt_dmabuf_import() local
128 for (i = 0; i < ARRAY_SIZE(pattern); i++) { in igt_dmabuf_import()
129 memset(dma_map, pattern[i], PAGE_SIZE); in igt_dmabuf_import()
130 if (memchr_inv(obj_map, pattern[i], PAGE_SIZE)) { in igt_dmabuf_import()
132 pr_err("imported vmap not all set to %x!\n", pattern[i]); in igt_dmabuf_import()
138 for (i = 0; i < ARRAY_SIZE(pattern); i++) { in igt_dmabuf_import()
139 memset(obj_map, pattern[i], PAGE_SIZE); in igt_dmabuf_import()
140 if (memchr_inv(dma_map, pattern[i], PAGE_SIZE)) { in igt_dmabuf_import()
142 pr_err("exported vmap not all set to %x!\n", pattern[i]); in igt_dmabuf_import()
/drivers/staging/comedi/drivers/ni_routing/tools/
Dcsv_collection.py15 def __init__(self, pattern, skip_commented_lines=True, strip_lines=True): argument
17 self.pattern = pattern
27 for fname in glob.glob(pattern):
Dconvert_csv_to_c.py228 def __init__(self, pattern='csv/device_routes/*.csv'): argument
229 super(DeviceRoutes,self).__init__(pattern)
419 def __init__(self, pattern='csv/route_values/*.csv'): argument
420 super(RouteValues,self).__init__(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.c301 const uint8_t *pattern) in set_dp_phy_pattern_80bit_custom() argument
320 ((pattern[1] & 0x03) << 8) | pattern[0]; in set_dp_phy_pattern_80bit_custom()
322 ((pattern[2] & 0x0f) << 6) | ((pattern[1] >> 2) & 0x3f); in set_dp_phy_pattern_80bit_custom()
324 ((pattern[3] & 0x3f) << 4) | ((pattern[2] >> 4) & 0x0f); in set_dp_phy_pattern_80bit_custom()
326 (pattern[4] << 2) | ((pattern[3] >> 6) & 0x03); in set_dp_phy_pattern_80bit_custom()
328 ((pattern[6] & 0x03) << 8) | pattern[5]; in set_dp_phy_pattern_80bit_custom()
330 ((pattern[7] & 0x0f) << 6) | ((pattern[6] >> 2) & 0x3f); in set_dp_phy_pattern_80bit_custom()
332 ((pattern[8] & 0x3f) << 4) | ((pattern[7] >> 4) & 0x0f); in set_dp_phy_pattern_80bit_custom()
334 (pattern[9] << 2) | ((pattern[8] >> 6) & 0x03); in set_dp_phy_pattern_80bit_custom()
/drivers/gpu/drm/amd/display/dc/dce/
Ddce_link_encoder.c332 const uint8_t *pattern) in set_dp_phy_pattern_80bit_custom() argument
351 ((pattern[1] & 0x03) << 8) | pattern[0]; in set_dp_phy_pattern_80bit_custom()
353 ((pattern[2] & 0x0f) << 6) | ((pattern[1] >> 2) & 0x3f); in set_dp_phy_pattern_80bit_custom()
355 ((pattern[3] & 0x3f) << 4) | ((pattern[2] >> 4) & 0x0f); in set_dp_phy_pattern_80bit_custom()
357 (pattern[4] << 2) | ((pattern[3] >> 6) & 0x03); in set_dp_phy_pattern_80bit_custom()
359 ((pattern[6] & 0x03) << 8) | pattern[5]; in set_dp_phy_pattern_80bit_custom()
361 ((pattern[7] & 0x0f) << 6) | ((pattern[6] >> 2) & 0x3f); in set_dp_phy_pattern_80bit_custom()
363 ((pattern[8] & 0x3f) << 4) | ((pattern[7] >> 4) & 0x0f); in set_dp_phy_pattern_80bit_custom()
365 (pattern[9] << 2) | ((pattern[8] >> 6) & 0x03); in set_dp_phy_pattern_80bit_custom()
/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dsorgm107.c27 gm107_sor_dp_pattern(struct nvkm_ior *sor, int pattern) in gm107_sor_dp_pattern() argument
31 const u32 data = 0x01010101 * pattern; in gm107_sor_dp_pattern()
50 .pattern = gm107_sor_dp_pattern,
Dsorgf119.c91 gf119_sor_dp_pattern(struct nvkm_ior *sor, int pattern) in gf119_sor_dp_pattern() argument
95 nvkm_mask(device, 0x61c110 + soff, 0x0f0f0f0f, 0x01010101 * pattern); in gf119_sor_dp_pattern()
170 .pattern = gf119_sor_dp_pattern,
/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 …]
Dxilinx-vip.c104 const char *pattern = "mono"; in xvip_of_get_format() local
119 of_property_read_string(node, "xlnx,cfa-pattern", &pattern); in xvip_of_get_format()
128 strcmp(pattern, format->pattern)) in xvip_of_get_format()
/drivers/iio/adc/
Dad7780.c55 unsigned int pattern; member
191 ((raw_sample & chip_info->pattern_mask) != chip_info->pattern)) in ad7780_postprocess_sample()
216 .pattern = AD7170_PATTERN_GOOD,
222 .pattern = AD7170_PATTERN_GOOD,
228 .pattern = AD7780_PATTERN_GOOD,
234 .pattern = AD7780_PATTERN_GOOD,
/drivers/usb/gadget/legacy/
Dzero.c233 module_param_named(pattern, gzero_options.pattern, uint, S_IRUGO|S_IWUSR);
234 MODULE_PARM_DESC(pattern, "0 = all zeroes, 1 = mod63, 2 = none");
290 ss_opts->pattern = gzero_options.pattern; in zero_bind()
/drivers/usb/gadget/function/
Dg_zero.h18 unsigned pattern; member
31 unsigned pattern; member
Df_sourcesink.c43 unsigned pattern; member
470 if (ss->pattern == 2) in check_read_data()
474 switch (ss->pattern) { in check_read_data()
508 switch (ss->pattern) { in reinit_write_data()
538 if (ss->pattern != 2) in source_sink_complete()
614 else if (ss->pattern != 2) in source_sink_start_ep()
849 ss->pattern = ss_opts->pattern; in source_sink_alloc_func()
894 result = sprintf(page, "%u\n", opts->pattern); in f_ss_opts_pattern_show()
922 opts->pattern = num; in f_ss_opts_pattern_store()
929 CONFIGFS_ATTR(f_ss_opts_, pattern);
/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dclock.c232 u8 pattern = 0; in mlx5_extts_configure() local
260 pattern = !!(rq->extts.flags & PTP_FALLING_EDGE); in mlx5_extts_configure()
271 MLX5_SET(mtpps_reg, in, pattern, pattern); in mlx5_extts_configure()
298 u8 pattern = 0; in mlx5_perout_configure() local
320 pattern = MLX5_OUT_PATTERN_PERIODIC; in mlx5_perout_configure()
350 MLX5_SET(mtpps_reg, in, pattern, pattern); in mlx5_perout_configure()
/drivers/media/i2c/adv748x/
Dadv748x-hdmi.c634 u8 pattern; in adv748x_hdmi_s_ctrl() local
657 pattern = ctrl->val; in adv748x_hdmi_s_ctrl()
660 if (pattern) { in adv748x_hdmi_s_ctrl()
661 pattern--; in adv748x_hdmi_s_ctrl()
662 pattern |= ADV748X_CP_PAT_GEN_EN; in adv748x_hdmi_s_ctrl()
665 ret = cp_write(state, ADV748X_CP_PAT_GEN, pattern); in adv748x_hdmi_s_ctrl()
/drivers/net/wireless/ath/ath10k/
Dwow.c106 old->pattern, ETH_HLEN - old->pkt_offset); in ath10k_wow_convert_8023_to_80211()
151 memcpy((u8 *)new->pattern, in ath10k_wow_convert_8023_to_80211()
160 memcpy((u8 *)new->pattern + new->pattern_len, in ath10k_wow_convert_8023_to_80211()
161 (void *)old->pattern + ETH_HLEN - old->pkt_offset, in ath10k_wow_convert_8023_to_80211()
331 new_pattern.pattern = ath_pattern; in ath10k_vif_wow_set_wakeups()
355 new_pattern.pattern, in ath10k_vif_wow_set_wakeups()

1234567