Home
last modified time | relevance | path

Searched refs:right (Results 1 – 25 of 129) sorted by relevance

123456

/drivers/video/fbdev/core/
Dsyscopyarea.c33 int left, right; in bitcpy() local
80 right = shift & (bits - 1); in bitcpy()
92 *dst = comp(*src >> right, *dst, first); in bitcpy()
97 *dst = comp(d0 >> right | d1 << left, *dst, in bitcpy()
118 *dst = comp(d0 >> right | d1 << left, *dst, in bitcpy()
130 *dst++ = d0 >> right | d1 << left; in bitcpy()
133 *dst++ = d0 >> right | d1 << left; in bitcpy()
136 *dst++ = d0 >> right | d1 << left; in bitcpy()
139 *dst++ = d0 >> right | d1 << left; in bitcpy()
145 *dst++ = d0 >> right | d1 << left; in bitcpy()
[all …]
Dsysfillrect.c82 unsigned long pat, int left, int right, unsigned n, int bits) in bitfill_unaligned() argument
103 pat = pat << left | pat >> right; in bitfill_unaligned()
111 pat = pat << left | pat >> right; in bitfill_unaligned()
113 pat = pat << left | pat >> right; in bitfill_unaligned()
115 pat = pat << left | pat >> right; in bitfill_unaligned()
117 pat = pat << left | pat >> right; in bitfill_unaligned()
122 pat = pat << left | pat >> right; in bitfill_unaligned()
192 unsigned long pat, int left, int right, unsigned n, in bitfill_unaligned_rev() argument
215 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
223 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
[all …]
Dcfbcopyarea.c111 int const right = -shift & (bits - 1); in bitcpy() local
124 d0 >>= right; in bitcpy()
129 d0 = d0 >> right | d1 << left; in bitcpy()
153 d0 = d0 >> right | d1 << left; in bitcpy()
166 FB_WRITEL(d0 >> right | d1 << left, dst++); in bitcpy()
169 FB_WRITEL(d0 >> right | d1 << left, dst++); in bitcpy()
172 FB_WRITEL(d0 >> right | d1 << left, dst++); in bitcpy()
175 FB_WRITEL(d0 >> right | d1 << left, dst++); in bitcpy()
182 d0 = d0 >> right | d1 << left; in bitcpy()
190 if (m <= bits - right) { in bitcpy()
[all …]
Dcfbfillrect.c93 unsigned long pat, int left, int right, unsigned n, int bits) in bitfill_unaligned() argument
114 pat = pat << left | pat >> right; in bitfill_unaligned()
122 pat = pat << left | pat >> right; in bitfill_unaligned()
124 pat = pat << left | pat >> right; in bitfill_unaligned()
126 pat = pat << left | pat >> right; in bitfill_unaligned()
128 pat = pat << left | pat >> right; in bitfill_unaligned()
133 pat = pat << left | pat >> right; in bitfill_unaligned()
218 int dst_idx, unsigned long pat, int left, int right, in bitfill_unaligned_rev() argument
243 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
252 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
[all …]
/drivers/md/persistent-data/
Ddm-btree-remove.c82 static void node_copy(struct btree_node *left, struct btree_node *right, int shift) in node_copy() argument
86 BUG_ON(value_size != le32_to_cpu(right->header.value_size)); in node_copy()
92 key_ptr(right, 0), in node_copy()
95 value_ptr(right, 0), in node_copy()
98 BUG_ON(shift > le32_to_cpu(right->header.max_entries)); in node_copy()
99 memcpy(key_ptr(right, 0), in node_copy()
102 memcpy(value_ptr(right, 0), in node_copy()
173 static void shift(struct btree_node *left, struct btree_node *right, int count) in shift() argument
176 uint32_t nr_right = le32_to_cpu(right->header.nr_entries); in shift()
178 uint32_t r_max_entries = le32_to_cpu(right->header.max_entries); in shift()
[all …]
Ddm-btree.c549 static void redistribute2(struct btree_node *left, struct btree_node *right) in redistribute2() argument
552 unsigned nr_right = le32_to_cpu(right->header.nr_entries); in redistribute2()
559 copy_entries(left, nr_left, right, 0, delta); in redistribute2()
560 shift_down(right, delta); in redistribute2()
564 shift_up(right, delta); in redistribute2()
565 copy_entries(right, 0, left, target_left, delta); in redistribute2()
569 right->header.nr_entries = cpu_to_le32(target_right); in redistribute2()
577 struct btree_node *right) in redistribute3() argument
581 unsigned nr_right = le32_to_cpu(right->header.nr_entries); in redistribute3()
593 copy_entries(left, nr_left, right, 0, left_short); in redistribute3()
[all …]
/drivers/usb/core/
Dport.c348 static int link_peers(struct usb_port *left, struct usb_port *right) in link_peers() argument
353 if (left->peer == right && right->peer == left) in link_peers()
356 if (left->peer || right->peer) { in link_peers()
358 struct usb_port *rpeer = right->peer; in link_peers()
361 if (left->location && left->location == right->location) in link_peers()
367 dev_name(&left->dev), dev_name(&right->dev), method, in link_peers()
370 dev_name(&right->dev), in link_peers()
375 rc = sysfs_create_link(&left->dev.kobj, &right->dev.kobj, "peer"); in link_peers()
378 rc = sysfs_create_link(&right->dev.kobj, &left->dev.kobj, "peer"); in link_peers()
391 WARN_ON(right->is_superspeed); in link_peers()
[all …]
/drivers/hid/
Dhid-zpff.c30 int left, right; in zpff_play() local
39 right = effect->u.rumble.weak_magnitude; in zpff_play()
40 dbg_hid("called with 0x%04x 0x%04x\n", left, right); in zpff_play()
43 right = right * 0x7f / 0xffff; in zpff_play()
46 zpff->report->field[3]->value[0] = right; in zpff_play()
47 dbg_hid("running with 0x%02x 0x%02x\n", left, right); in zpff_play()
Dhid-sjoy.c34 u32 left, right; in hid_sjoyff_play() local
37 right = effect->u.rumble.weak_magnitude; in hid_sjoyff_play()
38 dev_dbg(&dev->dev, "called with 0x%08x 0x%08x\n", left, right); in hid_sjoyff_play()
41 right = (right != 0); /* on/off only */ in hid_sjoyff_play()
43 sjoyff->report->field[0]->value[1] = right; in hid_sjoyff_play()
45 dev_dbg(&dev->dev, "running with 0x%02x 0x%02x\n", left, right); in hid_sjoyff_play()
Dhid-axff.c37 int left, right; in axff_play() local
41 right = effect->u.rumble.weak_magnitude; in axff_play()
43 dbg_hid("called with 0x%04x 0x%04x", left, right); in axff_play()
46 right = right * 0xff / 0xffff; in axff_play()
51 field_count % 2 ? right : left; in axff_play()
56 dbg_hid("running with 0x%02x 0x%02x", left, right); in axff_play()
Dhid-gaff.c34 int left, right; in hid_gaff_play() local
37 right = effect->u.rumble.weak_magnitude; in hid_gaff_play()
39 dbg_hid("called with 0x%04x 0x%04x", left, right); in hid_gaff_play()
42 right = right * 0xfe / 0xffff; in hid_gaff_play()
46 gaff->report->field[0]->value[2] = right; in hid_gaff_play()
50 dbg_hid("running with 0x%02x 0x%02x", left, right); in hid_gaff_play()
Dhid-lgff.c63 unsigned int left, right; in hid_lgff_play() local
82 right = effect->u.rumble.strong_magnitude; in hid_lgff_play()
84 right = right * 0xff / 0xffff; in hid_lgff_play()
87 CLAMP(right); in hid_lgff_play()
91 report->field[0]->value[3] = right; in hid_lgff_play()
92 dbg_hid("(left, right)=(%04x, %04x)\n", left, right); in hid_lgff_play()
Dhid-pl.c52 int left, right; in hid_plff_play() local
55 right = effect->u.rumble.weak_magnitude; in hid_plff_play()
56 debug("called with 0x%04x 0x%04x", left, right); in hid_plff_play()
59 right = right * plff->maxval / 0xffff; in hid_plff_play()
62 *plff->weak = right; in hid_plff_play()
63 debug("running with 0x%02x 0x%02x", left, right); in hid_plff_play()
Dhid-holtekff.c95 int left, right; in holtekff_play() local
101 right = effect->u.rumble.weak_magnitude; in holtekff_play()
102 dbg_hid("called with 0x%04x 0x%04x\n", left, right); in holtekff_play()
104 if (!left && !right) { in holtekff_play()
111 if (right) in holtekff_play()
115 buf[6] = min(0xf, (left >> 12) + (right >> 12)); in holtekff_play()
Dhid-tmff.c80 int left, right; /* Rumbling */ in tmff_play() local
102 right = tmff_scale_u16(effect->u.rumble.strong_magnitude, in tmff_play()
109 left = right; in tmff_play()
110 right = motor_swap; in tmff_play()
113 dbg_hid("(left,right)=(%08x, %08x)\n", left, right); in tmff_play()
115 ff_field->value[1] = right; in tmff_play()
/drivers/gpu/drm/qxl/
Dqxl_draw.c97 drawable->self_bitmap_area.right = 0; in make_drawable()
141 int left, right, top, bottom; in qxl_draw_dirty_fb() local
164 right = clips->x2; in qxl_draw_dirty_fb()
172 right = max_t(int, right, (int)clips_ptr->x2); in qxl_draw_dirty_fb()
177 width = right - left; in qxl_draw_dirty_fb()
196 drawable_rect.right = right; in qxl_draw_dirty_fb()
231 drawable->u.copy.src_area.right = width; in qxl_draw_dirty_fb()
246 rects[i].right = clips_ptr->x2; in qxl_draw_dirty_fb()
/drivers/input/mouse/
Dvsxxxaa.c200 int left, middle, right; in vsxxxaa_handle_REL_packet() local
232 right = buf[0] & 0x01; in vsxxxaa_handle_REL_packet()
238 left ? "L" : "l", middle ? "M" : "m", right ? "R" : "r"); in vsxxxaa_handle_REL_packet()
245 input_report_key(dev, BTN_RIGHT, right); in vsxxxaa_handle_REL_packet()
256 int left, middle, right, touch; in vsxxxaa_handle_ABS_packet() local
282 right = buf[0] & 0x08; in vsxxxaa_handle_ABS_packet()
290 right ? "R" : "r", touch ? "T" : "t"); in vsxxxaa_handle_ABS_packet()
297 input_report_key(dev, BTN_RIGHT, right); in vsxxxaa_handle_ABS_packet()
308 int left, middle, right; in vsxxxaa_handle_POR_packet() local
341 right = buf[0] & 0x01; in vsxxxaa_handle_POR_packet()
[all …]
Dgpio_mouse.c36 struct gpio_desc *right; member
61 x = gpiod_get_value(gpio->right) - gpiod_get_value(gpio->left); in gpio_mouse_scan()
97 gmouse->right = devm_gpiod_get(dev, "right", GPIOD_IN); in gpio_mouse_probe()
98 if (IS_ERR(gmouse->right)) in gpio_mouse_probe()
99 return PTR_ERR(gmouse->right); in gpio_mouse_probe()
/drivers/video/fbdev/
Darcfb.c248 unsigned int left, unsigned int right, unsigned int distance) in arcfb_lcd_update_page() argument
269 while (left <= right) { in arcfb_lcd_update_page()
300 unsigned int bottom, unsigned int left, unsigned int right) in arcfb_lcd_update_vert() argument
310 arcfb_lcd_update_page(par, upper, left, right, 8); in arcfb_lcd_update_vert()
322 unsigned int right, unsigned int top, unsigned int h) in arcfb_lcd_update_horiz() argument
332 arcfb_lcd_update_vert(par, upper, lower, left, right); in arcfb_lcd_update_horiz()
346 unsigned int left, right, distance, y; in arcfb_lcd_update() local
355 right = min(left + w - 1, ceil64(left)); in arcfb_lcd_update()
358 arcfb_lcd_update_horiz(par, left, right, y, h); in arcfb_lcd_update()
359 distance -= ((right - left) + 1); in arcfb_lcd_update()
[all …]
Damifb.c2606 int shift = dst_idx - src_idx, left, right; in bitcpy() local
2658 right = shift & (BITS_PER_LONG - 1); in bitcpy()
2667 *dst = comp(*src >> right, *dst, first); in bitcpy()
2675 *dst = comp(d0 << left | d1 >> right, *dst, in bitcpy()
2684 *dst = comp(d0 >> right, *dst, first); in bitcpy()
2690 *dst = comp(d0 << left | d1 >> right, *dst, in bitcpy()
2702 *dst++ = d0 << left | d1 >> right; in bitcpy()
2705 *dst++ = d0 << left | d1 >> right; in bitcpy()
2708 *dst++ = d0 << left | d1 >> right; in bitcpy()
2711 *dst++ = d0 << left | d1 >> right; in bitcpy()
[all …]
/drivers/media/pci/saa7134/
Dsaa7134-alsa.c379 int left, int right, bool force_notify) in snd_saa7134_capsrc_set() argument
392 active = left != 0 || right != 0; in snd_saa7134_capsrc_set()
399 chip->capture_source[1] != right; in snd_saa7134_capsrc_set()
402 chip->capture_source[1] = right; in snd_saa7134_capsrc_set()
456 if (left || right) { in snd_saa7134_capsrc_set()
933 int left, right; in snd_saa7134_volume_put() local
940 right = ucontrol->value.integer.value[1]; in snd_saa7134_volume_put()
941 if (right < 0) in snd_saa7134_volume_put()
942 right = 0; in snd_saa7134_volume_put()
943 if (right > 20) in snd_saa7134_volume_put()
[all …]
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_scrn.c58 s32 left, right, top, bottom; member
518 blit->body.destRect.right = clip->x2; in vmw_sou_bo_populate_clip()
611 blit->body.srcRect.right = 0; in vmw_sou_surface_pre_clip()
616 blit->body.destRect.right = 0; in vmw_sou_surface_pre_clip()
634 rect->right = clip->x2; in vmw_sou_surface_clip_rect()
671 blit->body.srcRect.right = src_bb.x2; in vmw_sou_surface_post_clip()
676 blit->body.destRect.right = bb->x2; in vmw_sou_surface_post_clip()
683 rect->right -= bb->x1; in vmw_sou_surface_post_clip()
1048 cmd->body.destRect.right = sdirty->right; in vmw_sou_surface_fifo_commit()
1053 cmd->body.srcRect.right = sdirty->right + trans_x; in vmw_sou_surface_fifo_commit()
[all …]
/drivers/acpi/acpica/
Dnsnames.c199 char c, *left, *right; in acpi_ns_build_normalized_path() local
253 right = full_path + length - 1; in acpi_ns_build_normalized_path()
255 while (left < right) { in acpi_ns_build_normalized_path()
257 *left++ = *right; in acpi_ns_build_normalized_path()
258 *right-- = c; in acpi_ns_build_normalized_path()
/drivers/accessibility/speakup/
DDefaultKeyAssignments19 KeyPad-6 Say Next Word (right one word)
20 InsKeyPad-6 Say from reading cursor to right edge of line.
24 KeyPad-3 Say Next Character (right one letter)
34 InsKeyPad-1 Move reading cursor to right edge of screen (insert end)
/drivers/media/radio/
Dradio-sf16fmr2.c153 int volume, balance, left, right; in fmr2_s_ctrl() local
168 left = right = volume; in fmr2_s_ctrl()
170 right = max(0, right + balance); in fmr2_s_ctrl()
175 tc9154a_set_attenuation(fmr2, abs(right - 68), TC9154A_CHANNEL_RIGHT); in fmr2_s_ctrl()

123456