Home
last modified time | relevance | path

Searched refs:left (Results 1 – 25 of 272) sorted by relevance

1234567891011

/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
84 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in node_copy()
85 uint32_t value_size = le32_to_cpu(left->header.value_size); in node_copy()
90 BUG_ON(nr_left + shift > le32_to_cpu(left->header.max_entries)); in node_copy()
91 memcpy(key_ptr(left, nr_left), in node_copy()
94 memcpy(value_ptr(left, nr_left), in node_copy()
100 key_ptr(left, nr_left - shift), in node_copy()
103 value_ptr(left, nr_left - shift), in node_copy()
173 static void shift(struct btree_node *left, struct btree_node *right, int count) in shift() argument
175 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in shift()
[all …]
/drivers/media/common/
Dbtcx-risc.c95 if (win->left < 0) { in btcx_screen_clips()
97 clips[n].c.left = 0; in btcx_screen_clips()
99 clips[n].c.width = -win->left; in btcx_screen_clips()
103 if (win->left + win->width > swidth) { in btcx_screen_clips()
105 clips[n].c.left = swidth - win->left; in btcx_screen_clips()
107 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips()
113 clips[n].c.left = 0; in btcx_screen_clips()
121 clips[n].c.left = 0; in btcx_screen_clips()
137 nx = (win->left + mask) & ~mask; in btcx_align()
139 if (nx + nw > win->left + win->width) in btcx_align()
[all …]
/drivers/net/wireless/hostap/
Dhostap_info.c14 int left) in prism2_info_commtallies16() argument
18 if (left < sizeof(struct hfa384x_comm_tallies)) { in prism2_info_commtallies16()
20 "info frame\n", local->dev->name, left); in prism2_info_commtallies16()
54 int left) in prism2_info_commtallies32() argument
58 if (left < sizeof(struct hfa384x_comm_tallies32)) { in prism2_info_commtallies32()
60 "info frame\n", local->dev->name, left); in prism2_info_commtallies32()
94 int left) in prism2_info_commtallies() argument
97 prism2_info_commtallies32(local, buf, left); in prism2_info_commtallies()
99 prism2_info_commtallies16(local, buf, left); in prism2_info_commtallies()
129 int left) in prism2_info_linkstatus() argument
[all …]
/drivers/firmware/
Dedd.c54 #define left (PAGE_SIZE - (p - buf) - 1) macro
144 p += scnprintf(p, left, "%c", info->params.host_bus_type[i]); in edd_show_host_bus()
146 p += scnprintf(p, left, " "); in edd_show_host_bus()
151 p += scnprintf(p, left, "\tbase_address: %x\n", in edd_show_host_bus()
156 p += scnprintf(p, left, in edd_show_host_bus()
164 p += scnprintf(p, left, in edd_show_host_bus()
169 p += scnprintf(p, left, "\tunknown: %llx\n", in edd_show_host_bus()
190 p += scnprintf(p, left, "%c", info->params.interface_type[i]); in edd_show_interface()
192 p += scnprintf(p, left, " "); in edd_show_interface()
196 p += scnprintf(p, left, "\tdevice: %u lun: %u\n", in edd_show_interface()
[all …]
/drivers/video/
Dsyscopyarea.c33 int left, right; in bitcpy() local
81 left = -shift & (bits - 1); in bitcpy()
92 *dst = comp(*src << left, *dst, first); in bitcpy()
97 *dst = comp(d0 << left | d1 >> right, *dst, in bitcpy()
118 *dst = comp(d0 << left | *dst >> right, *dst, first); in bitcpy()
129 *dst++ = d0 << left | d1 >> right; in bitcpy()
132 *dst++ = d0 << left | d1 >> right; in bitcpy()
135 *dst++ = d0 << left | d1 >> right; in bitcpy()
138 *dst++ = d0 << left | d1 >> right; in bitcpy()
144 *dst++ = d0 << left | d1 >> right; 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 …]
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 …]
Dcfbcopyarea.c52 int left, right; in bitcpy() local
102 left = -shift & (bits - 1); in bitcpy()
116 d0 <<= left; in bitcpy()
121 d0 = d0<<left | d1>>right; in bitcpy()
146 d0 = d0<<left | d1>>right; in bitcpy()
159 FB_WRITEL(d0 << left | d1 >> right, dst++); in bitcpy()
162 FB_WRITEL(d0 << left | d1 >> right, dst++); in bitcpy()
165 FB_WRITEL(d0 << left | d1 >> right, dst++); in bitcpy()
168 FB_WRITEL(d0 << left | d1 >> right, dst++); in bitcpy()
175 d0 = d0 << left | d1 >> right; in bitcpy()
[all …]
Darcfb.c248 unsigned int left, unsigned int right, unsigned int distance) in arcfb_lcd_update_page() argument
256 xindex = left >> 6; in arcfb_lcd_update_page()
263 src = (unsigned char __force *) par->info->screen_base + (left/8) + in arcfb_lcd_update_page()
265 ks108_set_xaddr(par, chipindex, left); in arcfb_lcd_update_page()
269 while (left <= right) { in arcfb_lcd_update_page()
281 left++; 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()
321 static void arcfb_lcd_update_horiz(struct arcfb_par *par, unsigned int left, in arcfb_lcd_update_horiz() argument
332 arcfb_lcd_update_vert(par, upper, lower, left, right); in arcfb_lcd_update_horiz()
[all …]
/drivers/staging/rtl8712/
Dieee80211.c293 int left, count; in r8712_parse_wpa_ie() local
305 left = wpa_ie_len - 8; in r8712_parse_wpa_ie()
307 if (left >= WPA_SELECTOR_LEN) { in r8712_parse_wpa_ie()
310 left -= WPA_SELECTOR_LEN; in r8712_parse_wpa_ie()
311 } else if (left > 0) in r8712_parse_wpa_ie()
314 if (left >= 2) { in r8712_parse_wpa_ie()
317 left -= 2; in r8712_parse_wpa_ie()
318 if (count == 0 || left < count * WPA_SELECTOR_LEN) in r8712_parse_wpa_ie()
323 left -= WPA_SELECTOR_LEN; in r8712_parse_wpa_ie()
325 } else if (left == 1) in r8712_parse_wpa_ie()
[all …]
/drivers/misc/cb710/
Dsgbuf2.c30 size_t len, left = 4; in sg_dwiter_read_buffer() local
35 len = min(miter->length - miter->consumed, left); in sg_dwiter_read_buffer()
38 left -= len; in sg_dwiter_read_buffer()
39 if (!left) in sg_dwiter_read_buffer()
44 memset(addr, 0, left); in sg_dwiter_read_buffer()
106 size_t len, left = 4; in sg_dwiter_write_slow() local
110 len = min(miter->length - miter->consumed, left); in sg_dwiter_write_slow()
113 left -= len; in sg_dwiter_write_slow()
114 if (!left) in sg_dwiter_write_slow()
/drivers/media/platform/omap/
Domap_voutlib.c52 crop->left = ((pix->width - crop->width) >> 1) & ~1; in omap_vout_default_crop()
74 if (try_win.left < 0) { in omap_vout_try_window()
75 try_win.width += try_win.left; in omap_vout_try_window()
76 try_win.left = 0; in omap_vout_try_window()
86 if (try_win.left + try_win.width > fbuf->fmt.width) in omap_vout_try_window()
87 try_win.width = fbuf->fmt.width - try_win.left; in omap_vout_try_window()
176 if (try_crop.left < 0) { in omap_vout_new_crop()
177 try_crop.width += try_crop.left; in omap_vout_new_crop()
178 try_crop.left = 0; in omap_vout_new_crop()
188 if (try_crop.left + try_crop.width > pix->width) in omap_vout_new_crop()
[all …]
/drivers/hid/
Dhid-zpff.c42 int left, right; in zpff_play() local
50 left = effect->u.rumble.strong_magnitude; in zpff_play()
52 dbg_hid("called with 0x%04x 0x%04x\n", left, right); in zpff_play()
54 left = left * 0x7f / 0xffff; in zpff_play()
57 zpff->report->field[2]->value[0] = left; in zpff_play()
59 dbg_hid("running with 0x%02x 0x%02x\n", left, right); in zpff_play()
Dhid-sjoy.c46 u32 left, right; in hid_sjoyff_play() local
48 left = effect->u.rumble.strong_magnitude; in hid_sjoyff_play()
50 dev_dbg(&dev->dev, "called with 0x%08x 0x%08x\n", left, right); in hid_sjoyff_play()
52 left = left * 0xff / 0xffff; in hid_sjoyff_play()
56 sjoyff->report->field[0]->value[2] = left; in hid_sjoyff_play()
57 dev_dbg(&dev->dev, "running with 0x%02x 0x%02x\n", left, right); in hid_sjoyff_play()
Dhid-axff.c49 int left, right; in axff_play() local
52 left = effect->u.rumble.strong_magnitude; in axff_play()
55 dbg_hid("called with 0x%04x 0x%04x", left, right); in axff_play()
57 left = left * 0xff / 0xffff; in axff_play()
63 field_count % 2 ? right : left; in axff_play()
68 dbg_hid("running with 0x%02x 0x%02x", left, right); in axff_play()
Dhid-gaff.c47 int left, right; in hid_gaff_play() local
49 left = effect->u.rumble.strong_magnitude; in hid_gaff_play()
52 dbg_hid("called with 0x%04x 0x%04x", left, right); in hid_gaff_play()
54 left = left * 0xfe / 0xffff; in hid_gaff_play()
61 gaff->report->field[0]->value[4] = left; in hid_gaff_play()
63 dbg_hid("running with 0x%02x 0x%02x", left, right); in hid_gaff_play()
Dhid-lgff.c75 unsigned int left, right; in hid_lgff_play() local
95 left = effect->u.rumble.weak_magnitude; in hid_lgff_play()
97 left = left * 0xff / 0xffff; in hid_lgff_play()
98 CLAMP(left); in hid_lgff_play()
102 report->field[0]->value[2] = left; in hid_lgff_play()
104 dbg_hid("(left, right)=(%04x, %04x)\n", left, right); in hid_lgff_play()
Dhid-pl.c64 int left, right; in hid_plff_play() local
66 left = effect->u.rumble.strong_magnitude; in hid_plff_play()
68 debug("called with 0x%04x 0x%04x", left, right); in hid_plff_play()
70 left = left * plff->maxval / 0xffff; in hid_plff_play()
73 *plff->strong = left; in hid_plff_play()
75 debug("running with 0x%02x 0x%02x", left, right); in hid_plff_play()
Dhid-holtekff.c111 int left, right; in holtekff_play() local
116 left = effect->u.rumble.strong_magnitude; in holtekff_play()
118 dbg_hid("called with 0x%04x 0x%04x\n", left, right); in holtekff_play()
120 if (!left && !right) { in holtekff_play()
125 if (left) in holtekff_play()
131 buf[6] = min(0xf, (left >> 12) + (right >> 12)); in holtekff_play()
/drivers/s390/char/
Draw3270.h249 struct list_head *p, *left; in free_string() local
252 left = free_list; in free_string()
256 left = p; in free_string()
259 if (left->next != free_list) { in free_string()
260 tmp = list_entry(left->next, struct string, list); in free_string()
267 if (left != free_list) { in free_string()
268 tmp = list_entry(left, struct string, list); in free_string()
274 __list_add(&cs->list, left, left->next); in free_string()
/drivers/media/pci/saa7134/
Dsaa7134-alsa.c324 int left, int right, bool force_notify) in snd_saa7134_capsrc_set() argument
337 active = left != 0 || right != 0; in snd_saa7134_capsrc_set()
343 chip->capture_source[0] != left || in snd_saa7134_capsrc_set()
346 chip->capture_source[0] = left; in snd_saa7134_capsrc_set()
401 if (left || right) { in snd_saa7134_capsrc_set()
879 int left, right; in snd_saa7134_volume_put() local
881 left = ucontrol->value.integer.value[0]; in snd_saa7134_volume_put()
882 if (left < 0) in snd_saa7134_volume_put()
883 left = 0; in snd_saa7134_volume_put()
884 if (left > 20) in snd_saa7134_volume_put()
[all …]
/drivers/gpu/drm/qxl/
Dqxl_draw.c75 drawable->self_bitmap_area.left = 0; in make_drawable()
154 rect.left = x; in qxl_draw_opaque_fb()
191 drawable->u.copy.src_area.left = 0; in qxl_draw_opaque_fb()
236 int left, right, top, bottom; in qxl_draw_dirty_fb() local
250 left = clips->x1; in qxl_draw_dirty_fb()
258 left = min_t(int, left, (int)clips_ptr->x1); in qxl_draw_dirty_fb()
264 width = right - left; in qxl_draw_dirty_fb()
266 drawable_rect.left = left; in qxl_draw_dirty_fb()
280 left, top, width, height, depth, stride); in qxl_draw_dirty_fb()
299 drawable->u.copy.src_area.left = 0; in qxl_draw_dirty_fb()
[all …]
/drivers/input/mouse/
Dvsxxxaa.c213 int left, middle, right; in vsxxxaa_handle_REL_packet() local
243 left = buf[0] & 0x04; in vsxxxaa_handle_REL_packet()
251 left ? "L" : "l", middle ? "M" : "m", right ? "R" : "r"); in vsxxxaa_handle_REL_packet()
256 input_report_key(dev, BTN_LEFT, left); in vsxxxaa_handle_REL_packet()
269 int left, middle, right, touch; in vsxxxaa_handle_ABS_packet() local
293 left = buf[0] & 0x02; in vsxxxaa_handle_ABS_packet()
302 left ? "L" : "l", middle ? "M" : "m", in vsxxxaa_handle_ABS_packet()
308 input_report_key(dev, BTN_LEFT, left); in vsxxxaa_handle_ABS_packet()
321 int left, middle, right; in vsxxxaa_handle_POR_packet() local
352 left = buf[0] & 0x04; in vsxxxaa_handle_POR_packet()
[all …]
/drivers/isdn/hardware/avm/
Db1.c156 int i, left; in b1_load_t4file() local
160 left = t4file->len; in b1_load_t4file()
161 while (left > FWBUF_SIZE) { in b1_load_t4file()
174 left -= FWBUF_SIZE; in b1_load_t4file()
177 if (left) { in b1_load_t4file()
179 if (copy_from_user(buf, dp, left)) in b1_load_t4file()
182 memcpy(buf, dp, left); in b1_load_t4file()
184 for (i = 0; i < left; i++) in b1_load_t4file()
199 int i, j, left; in b1_load_config() local
202 left = config->len; in b1_load_config()
[all …]
/drivers/staging/zcache/
Dtmem.h99 static inline int tmem_oid_compare(struct tmem_oid *left, in tmem_oid_compare() argument
104 if (left->oid[2] == right->oid[2]) { in tmem_oid_compare()
105 if (left->oid[1] == right->oid[1]) { in tmem_oid_compare()
106 if (left->oid[0] == right->oid[0]) in tmem_oid_compare()
108 else if (left->oid[0] < right->oid[0]) in tmem_oid_compare()
112 } else if (left->oid[1] < right->oid[1]) in tmem_oid_compare()
116 } else if (left->oid[2] < right->oid[2]) in tmem_oid_compare()

1234567891011