Home
last modified time | relevance | path

Searched refs:left (Results 1 – 200 of 743) sorted by relevance

1234

/linux-4.1.27/scripts/kconfig/
Dexpr.c24 e->left.sym = sym; in expr_alloc_symbol()
32 e->left.expr = ce; in expr_alloc_one()
40 e->left.expr = e1; in expr_alloc_two()
49 e->left.sym = s1; in expr_alloc_comp()
79 e->left = org->left; in expr_copy()
82 e->left.expr = expr_copy(org->left.expr); in expr_copy()
86 e->left.sym = org->left.sym; in expr_copy()
92 e->left.expr = expr_copy(org->left.expr); in expr_copy()
114 expr_free(e->left.expr); in expr_free()
121 expr_free(e->left.expr); in expr_free()
[all …]
Dexpr.h42 union expr_data left, right; member
50 for (e = (l); e && (s = e->right.sym); e = e->left.expr)
224 return !e || (e->type == E_SYMBOL && e->left.sym == &symbol_yes); in expr_is_yes()
229 return e && (e->type == E_SYMBOL && e->left.sym == &symbol_no); in expr_is_no()
Dmenu.c89 e->left.expr = menu_check_dep(e->left.expr); in menu_check_dep()
93 e->left.expr = menu_check_dep(e->left.expr); in menu_check_dep()
98 if (e->left.sym == &symbol_mod) in menu_check_dep()
272 if (!menu_validate_number(sym, prop->expr->left.sym) || in sym_check_prop()
410 for (ep = &prop->expr; *ep; ep = &(*ep)->left.expr) in menu_finalize()
/linux-4.1.27/arch/parisc/math-emu/
Dsfsub.c55 register unsigned int left, right, result, extent; in sgl_fsub() local
63 left = *leftptr; in sgl_fsub()
68 Sgl_xortointp1(left,right,/*to*/save); in sgl_fsub()
73 if ((result_exponent = Sgl_exponent(left)) == SGL_INFINITY_EXPONENT) in sgl_fsub()
75 if (Sgl_iszero_mantissa(left)) in sgl_fsub()
93 *dstptr = left; in sgl_fsub()
102 if (Sgl_isone_signaling(left)) in sgl_fsub()
108 Sgl_set_quiet(left); in sgl_fsub()
126 *dstptr = left; in sgl_fsub()
163 Sgl_copytoint_exponentmantissa(left,signless_upper_left); in sgl_fsub()
[all …]
Dsfadd.c55 register unsigned int left, right, result, extent; in sgl_fadd() local
65 left = *leftptr; in sgl_fadd()
70 Sgl_xortointp1(left,right,/*to*/save); in sgl_fadd()
75 if ((result_exponent = Sgl_exponent(left)) == SGL_INFINITY_EXPONENT) in sgl_fadd()
77 if (Sgl_iszero_mantissa(left)) in sgl_fadd()
95 *dstptr = left; in sgl_fadd()
104 if (Sgl_isone_signaling(left)) in sgl_fadd()
110 Sgl_set_quiet(left); in sgl_fadd()
128 *dstptr = left; in sgl_fadd()
164 Sgl_copytoint_exponentmantissa(left,signless_upper_left); in sgl_fadd()
[all …]
Dsfcmp.c55 register unsigned int left, right; in sgl_fcmp() local
59 left = *leftptr; in sgl_fcmp()
65 if( (Sgl_exponent(left) == SGL_INFINITY_EXPONENT) in sgl_fcmp()
71 if( ( (Sgl_exponent(left) == SGL_INFINITY_EXPONENT) in sgl_fcmp()
72 && Sgl_isnotzero_mantissa(left) in sgl_fcmp()
73 && (Exception(cond) || Sgl_isone_signaling(left))) in sgl_fcmp()
89 else if( ((Sgl_exponent(left) == SGL_INFINITY_EXPONENT) in sgl_fcmp()
90 && Sgl_isnotzero_mantissa(left)) in sgl_fcmp()
103 Sgl_xortointp1(left,right,xorresult); in sgl_fcmp()
108 if( Sgl_iszero_exponentmantissa(left) in sgl_fcmp()
[all …]
Dhppa.h28 #define Shiftdouble(left,right,amount,dest) \ argument
30 dest = ((left) << (32-(amount))) | ((unsigned int)(right) >> (amount))
33 #define Variableshiftdouble(left,right,amount,dest) \ argument
36 else dest = ((((unsigned) left)&0x7fffffff) << (32-(amount))) | \
40 #define Variable_shift_double(left,right,amount,dest) \ argument
42 dest = (left << (32-(amount))) | ((unsigned) right >> (amount))
Dsgl_float.h63 #define Sgl_leftshiftby1_withextent(left,right,result) \ argument
64 Shiftdouble(Sall(left),Extall(right),31,Sall(result))
66 #define Sgl_rightshiftby1_withextent(left,right,dst) \ argument
67 Shiftdouble(Sall(left),Extall(right),1,Extall(right))
239 #define Sgl_subtract_withextension(left,right,extent,result) \ argument
241 Sgl_subtract(left,right,result); \
248 #define Sgl_xortointp1(left,right,result) \ argument
249 result = Sall(left) XOR Sall(right);
251 #define Sgl_xorfromintp1(left,right,result) \ argument
252 Sall(result) = left XOR Sall(right)
[all …]
Ddbl_float.h421 #define Dbl_xortointp1(left,right,result) \ argument
422 result = Dallp1(left) XOR Dallp1(right)
424 #define Dbl_xorfromintp1(left,right,result) \ argument
425 Dallp1(result) = left XOR Dallp1(right)
427 #define Dbl_swap_lower(left,right) \ argument
428 Dallp2(left) = Dallp2(left) XOR Dallp2(right); \
429 Dallp2(right) = Dallp2(left) XOR Dallp2(right); \
430 Dallp2(left) = Dallp2(left) XOR Dallp2(right)
720 #define Dblext_xortointp1(left,right,result) Dbl_xortointp1(left,right,result) argument
722 #define Dblext_xorfromintp1(left,right,result) \ argument
[all …]
/linux-4.1.27/net/sunrpc/
Dsysctl.c82 size_t left, len; in proc_dodebug() local
89 left = *lenp; in proc_dodebug()
92 if (!access_ok(VERIFY_READ, buffer, left)) in proc_dodebug()
95 while (left && __get_user(c, p) >= 0 && isspace(c)) in proc_dodebug()
96 left--, p++; in proc_dodebug()
97 if (!left) in proc_dodebug()
100 if (left > sizeof(tmpbuf) - 1) in proc_dodebug()
102 if (copy_from_user(tmpbuf, p, left)) in proc_dodebug()
104 tmpbuf[left] = '\0'; in proc_dodebug()
106 for (s = tmpbuf, value = 0; '0' <= *s && *s <= '9'; s++, left--) in proc_dodebug()
[all …]
/linux-4.1.27/include/linux/
Duidgid.h60 static inline bool uid_eq(kuid_t left, kuid_t right) in uid_eq() argument
62 return __kuid_val(left) == __kuid_val(right); in uid_eq()
65 static inline bool gid_eq(kgid_t left, kgid_t right) in gid_eq() argument
67 return __kgid_val(left) == __kgid_val(right); in gid_eq()
70 static inline bool uid_gt(kuid_t left, kuid_t right) in uid_gt() argument
72 return __kuid_val(left) > __kuid_val(right); in uid_gt()
75 static inline bool gid_gt(kgid_t left, kgid_t right) in gid_gt() argument
77 return __kgid_val(left) > __kgid_val(right); in gid_gt()
80 static inline bool uid_gte(kuid_t left, kuid_t right) in uid_gte() argument
82 return __kuid_val(left) >= __kuid_val(right); in uid_gte()
[all …]
Dprojid.h35 static inline bool projid_eq(kprojid_t left, kprojid_t right) in projid_eq() argument
37 return __kprojid_val(left) == __kprojid_val(right); in projid_eq()
40 static inline bool projid_lt(kprojid_t left, kprojid_t right) in projid_lt() argument
42 return __kprojid_val(left) < __kprojid_val(right); in projid_lt()
Dinterval_tree_generic.h113 ITSTRUCT *left = rb_entry(node->ITRB.rb_left, \
115 if (start <= left->ITSUBTREE) { \
124 node = left; \
Dgpio_mouse.h50 int left; member
/linux-4.1.27/arch/x86/crypto/
Ddes3_ede-asm_64.S101 #define initial_permutation(left, right) \ argument
102 do_permutation(left##d, right##d, 4, 0x0f0f0f0f); \
103 do_permutation(left##d, right##d, 16, 0x0000ffff); \
104 do_permutation(right##d, left##d, 2, 0x33333333); \
105 do_permutation(right##d, left##d, 8, 0x00ff00ff); \
107 movl left##d, RW0d; \
111 xorl RW0d, left##d; \
113 roll $1, left##d; \
115 expand_to_64bits(left, RT3);
117 #define final_permutation(left, right) \ argument
[all …]
/linux-4.1.27/fs/quota/
Dkqid.c12 bool qid_eq(struct kqid left, struct kqid right) in qid_eq() argument
14 if (left.type != right.type) in qid_eq()
16 switch(left.type) { in qid_eq()
18 return uid_eq(left.uid, right.uid); in qid_eq()
20 return gid_eq(left.gid, right.gid); in qid_eq()
22 return projid_eq(left.projid, right.projid); in qid_eq()
36 bool qid_lt(struct kqid left, struct kqid right) in qid_lt() argument
38 if (left.type < right.type) in qid_lt()
40 if (left.type > right.type) in qid_lt()
42 switch (left.type) { in qid_lt()
[all …]
/linux-4.1.27/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 …]
Ddm-btree.c429 struct dm_block *left, *right, *parent; in btree_split_sibling() local
433 left = shadow_current(s); in btree_split_sibling()
439 ln = dm_block_data(left); in btree_split_sibling()
464 location = cpu_to_le64(dm_block_location(left)); in btree_split_sibling()
479 s->nodes[1] = left; in btree_split_sibling()
481 unlock_block(s->info, left); in btree_split_sibling()
514 struct dm_block *left, *right, *new_parent; in btree_split_beneath() local
520 r = new_block(s->info, &left); in btree_split_beneath()
526 unlock_block(s->info, left); in btree_split_beneath()
531 ln = dm_block_data(left); in btree_split_beneath()
[all …]
/linux-4.1.27/drivers/media/pci/bt8xx/
Dbtcx-risc.c91 if (win->left < 0) { in btcx_screen_clips()
93 clips[n].c.left = 0; in btcx_screen_clips()
95 clips[n].c.width = -win->left; in btcx_screen_clips()
99 if (win->left + win->width > swidth) { in btcx_screen_clips()
101 clips[n].c.left = swidth - win->left; in btcx_screen_clips()
103 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips()
109 clips[n].c.left = 0; in btcx_screen_clips()
117 clips[n].c.left = 0; in btcx_screen_clips()
133 nx = (win->left + mask) & ~mask; in btcx_align()
135 if (nx + nw > win->left + win->width) in btcx_align()
[all …]
/linux-4.1.27/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 …]
Dhostap_ap.c1564 int len, left; in handle_assoc() local
1572 left = len = skb->len - IEEE80211_MGMT_HDR_LEN; in handle_assoc()
1596 pos++; left -= 2; in handle_assoc()
1598 pos++; left -= 2; in handle_assoc()
1602 pos++; pos++; pos++; left -= 6; in handle_assoc()
1606 if (left >= 2) { in handle_assoc()
1611 u++; left--; in handle_assoc()
1613 u++; left--; in handle_assoc()
1615 if (ileft > left || ileft > MAX_SSID_LEN) { in handle_assoc()
1629 left -= ileft; in handle_assoc()
[all …]
Dhostap_proc.c308 int start_bytes, left, copy, copied; in prism2_io_debug_proc_read() local
319 left = count; in prism2_io_debug_proc_read()
326 left -= copy; in prism2_io_debug_proc_read()
327 if (left > 0) in prism2_io_debug_proc_read()
328 memcpy(&page[copy], local->io_debug, left); in prism2_io_debug_proc_read()
331 left); in prism2_io_debug_proc_read()
/linux-4.1.27/Documentation/sound/oss/
DWaveArtist11 0y34 select mono source, y=0 = left, y=1 = right
16 00 | 0 | 0 0 1 1 | left line mixer gain | left aux1 mixer gain |lmute|
18 01 | 0 | 0 1 0 1 | left aux2 mixer gain | right 2 left mic gain |mmute|
20 02 | 0 | 0 1 1 1 | left mic mixer gain | left mic | left mixer gain |dith |
22 03 | 0 | 1 0 0 1 | left mixer input select |lrfg | left ADC gain |
26 05 | 0 | 1 1 0 1 | right aux2 mixer gain | left 2 right mic gain |test |
32 08 | 1 | 0 0 1 1 | mono mixer gain |right ADC mux sel|left ADC mux sel |
34 09 | 1 | 0 1 0 1 |loopb|left linout|loop|ADCch|TxFch|OffCD|test |loopb|loopb|osamp|
36 0a | 0 | left PCM channel volume |
40 0c | 0 | left FM channel volume |
[all …]
/linux-4.1.27/drivers/usb/core/
Dport.c191 static int link_peers(struct usb_port *left, struct usb_port *right) in link_peers() argument
196 if (left->peer == right && right->peer == left) in link_peers()
199 if (left->peer || right->peer) { in link_peers()
200 struct usb_port *lpeer = left->peer; in link_peers()
204 if (left->location && left->location == right->location) in link_peers()
210 dev_name(&left->dev), dev_name(&right->dev), method, in link_peers()
211 dev_name(&left->dev), in link_peers()
218 rc = sysfs_create_link(&left->dev.kobj, &right->dev.kobj, "peer"); in link_peers()
221 rc = sysfs_create_link(&right->dev.kobj, &left->dev.kobj, "peer"); in link_peers()
223 sysfs_remove_link(&left->dev.kobj, "peer"); in link_peers()
[all …]
/linux-4.1.27/sound/oss/
Dpas2_mixer.c80 int left = left_vol * div / 100; in mixer_output() local
86 left |= mixer; in mixer_output()
92 mix_write(left, 0x078B); in mixer_output()
97 mix_write(left, 0x078B); in mixer_output()
117 int left, right, devmask, changed, i, mixer = 0; in pas_mixer_set() local
119 left = level & 0x7f; in pas_mixer_set()
132 levels[whichDev] = mixer_output(right, left, 63, 0x01, 0); in pas_mixer_set()
140 levels[whichDev] = mixer_output(right, left, 12, 0x03, 0); in pas_mixer_set()
143 levels[whichDev] = mixer_output(right, left, 12, 0x04, 0); in pas_mixer_set()
147 levels[whichDev] = mixer_output(right, left, 31, 0x10 | 0x00, mixer); in pas_mixer_set()
[all …]
Dsb_mixer.c273 int sb_common_mixer_set(sb_devc * devc, int dev, int left, int right) in sb_common_mixer_set() argument
287 oss_change_bits(devc, &val, dev, LEFT_CHN, left); in sb_common_mixer_set()
299 return left | (left << 8); /* in sb_common_mixer_set()
311 return left | (right << 8); in sb_common_mixer_set()
314 static int smw_mixer_set(sb_devc * devc, int dev, int left, int right) in smw_mixer_set() argument
321 sb_setmixer(devc, 0x0b, 96 - (96 * left / 100)); /* 96=mute, 0=max */ in smw_mixer_set()
327 devc->levels[dev] = left | (right << 8); in smw_mixer_set()
347 sb_setmixer(devc, reg, (24 - (24 * left / 100)) | 0x20); /* 24=mute, 0=max */ in smw_mixer_set()
351 devc->levels[dev] = left | (right << 8); in smw_mixer_set()
352 return left | (right << 8); in smw_mixer_set()
[all …]
Dpss.c401 static void set_master_volume(struct pss_confdata *devc, int left, int right) in set_master_volume() argument
415 pss_write(devc, log_scale[left] | 0x0000); in set_master_volume()
463 unsigned int left, volume; in set_volume_mono() local
467 left = volume & 0xff; in set_volume_mono()
468 if (left > 100) in set_volume_mono()
469 left = 100; in set_volume_mono()
470 *aleft = left; in set_volume_mono()
478 unsigned int left, right, volume; in set_volume_stereo() local
482 left = volume & 0xff; in set_volume_stereo()
483 if (left > 100) in set_volume_stereo()
[all …]
Dsb_ess.c1666 int ess_mixer_set(sb_devc *devc, int dev, int left, int right) argument
1669 sb_common_mixer_set (devc, dev + ES_REC_MIXER_RECDIFF, left, right);
1671 return sb_common_mixer_set (devc, dev, left, right);
1681 int left, right, value; local
1684 left = value & 0x000000ff;
1687 sb_common_mixer_set(devc, dev, left, right);
1693 int value, left, right; local
1712 left = value & 0x000000ff;
1715 left = 0;
1718 sb_common_mixer_set(devc, i + ES_REC_MIXER_RECDIFF, left, right);
/linux-4.1.27/drivers/video/fbdev/core/
Dsyscopyarea.c33 int left, right; in bitcpy() local
81 left = -shift & (bits - 1); in bitcpy()
89 *dst = comp(*src << left, *dst, first); in bitcpy()
97 *dst = comp(d0 >> right | d1 << left, *dst, in bitcpy()
112 *dst = comp(d0 << left, *dst, first); 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()
[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.c110 int const left = shift & (bits - 1); in bitcpy() local
121 d0 <<= left; in bitcpy()
129 d0 = d0 >> right | d1 << left; in bitcpy()
146 d0 <<= 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()
[all …]
/linux-4.1.27/drivers/media/platform/soc_camera/
Dsoc_scale_crop.c35 return r1->left > r2->left || r1->top > r2->top || in is_inside()
36 r1->left + r1->width < r2->left + r2->width || in is_inside()
75 if (rect->left > subrect->left) in update_subrect()
76 subrect->left = rect->left; in update_subrect()
77 else if (rect->left + rect->width > in update_subrect()
78 subrect->left + subrect->width) in update_subrect()
79 subrect->left = rect->left + rect->width - in update_subrect()
118 rect->width, rect->height, rect->left, rect->top); in soc_camera_client_s_crop()
126 cam_rect->left, cam_rect->top, in soc_camera_client_s_crop()
127 rect->width, rect->height, rect->left, rect->top); in soc_camera_client_s_crop()
[all …]
Dsoc_camera_platform.c81 a->c.left = 0; in soc_camera_platform_g_crop()
95 a->bounds.left = 0; in soc_camera_platform_cropcap()
/linux-4.1.27/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 …]
Ddmi-id.c92 ssize_t l, left; in get_modalias() local
97 p = buffer + 3; left = buffer_size - 4; in get_modalias()
99 for (f = fields; f->prefix && left > 0; f++) { in get_modalias()
111 l = scnprintf(p, left, ":%s%s", f->prefix, t); in get_modalias()
115 left -= l; in get_modalias()
/linux-4.1.27/tools/perf/util/
Dsort.c64 sort__thread_cmp(struct hist_entry *left, struct hist_entry *right) in sort__thread_cmp() argument
66 return right->thread->tid - left->thread->tid; in sort__thread_cmp()
89 sort__comm_cmp(struct hist_entry *left, struct hist_entry *right) in sort__comm_cmp() argument
92 return comm__str(right->comm) - comm__str(left->comm); in sort__comm_cmp()
96 sort__comm_collapse(struct hist_entry *left, struct hist_entry *right) in sort__comm_collapse() argument
99 return comm__str(right->comm) - comm__str(left->comm); in sort__comm_collapse()
103 sort__comm_sort(struct hist_entry *left, struct hist_entry *right) in sort__comm_sort() argument
105 return strcmp(comm__str(right->comm), comm__str(left->comm)); in sort__comm_sort()
146 sort__dso_cmp(struct hist_entry *left, struct hist_entry *right) in sort__dso_cmp() argument
148 return _sort__dso_cmp(right->ms.map, left->ms.map); in sort__dso_cmp()
[all …]
Dutil.c174 size_t left = n; in ion() local
176 while (left) { in ion()
177 ssize_t ret = is_read ? read(fd, buf, left) : in ion()
178 write(fd, buf, left); in ion()
185 left -= ret; in ion()
/linux-4.1.27/arch/arm/plat-samsung/
Dpm-check.c110 unsigned long addr, left; in s3c_pm_makecheck() local
114 left = res->end - addr; in s3c_pm_makecheck()
116 if (left > CHECK_CHUNKSIZE) in s3c_pm_makecheck()
117 left = CHECK_CHUNKSIZE; in s3c_pm_makecheck()
119 *val = crc32_le(~0, phys_to_virt(addr), left); in s3c_pm_makecheck()
168 unsigned long left; in s3c_pm_runcheck() local
177 left = res->end - addr; in s3c_pm_runcheck()
179 if (left > CHECK_CHUNKSIZE) in s3c_pm_runcheck()
180 left = CHECK_CHUNKSIZE; in s3c_pm_runcheck()
184 if (in_region(ptr, left, stkpage, 4096)) { in s3c_pm_runcheck()
[all …]
/linux-4.1.27/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()
/linux-4.1.27/drivers/infiniband/hw/usnic/
Dusnic_debugfs.c59 int left; in flowinfo_read() local
65 left = count; in flowinfo_read()
71 n = scnprintf(ptr, left, in flowinfo_read()
75 UPDATE_PTR_LEFT(n, ptr, left); in flowinfo_read()
77 n = scnprintf(ptr, left, "Port_Num:%hu\n", in flowinfo_read()
79 UPDATE_PTR_LEFT(n, ptr, left); in flowinfo_read()
81 n = usnic_transport_sock_to_str(ptr, left, in flowinfo_read()
83 UPDATE_PTR_LEFT(n, ptr, left); in flowinfo_read()
84 n = scnprintf(ptr, left, "\n"); in flowinfo_read()
85 UPDATE_PTR_LEFT(n, ptr, left); in flowinfo_read()
Dusnic_ib_sysfs.c72 unsigned left; in usnic_ib_show_config() local
80 left = PAGE_SIZE; in usnic_ib_show_config()
94 n = scnprintf(ptr, left, in usnic_ib_show_config()
103 UPDATE_PTR_LEFT(n, ptr, left); in usnic_ib_show_config()
110 n = scnprintf(ptr, left, " %d %s%s", in usnic_ib_show_config()
115 UPDATE_PTR_LEFT(n, ptr, left); in usnic_ib_show_config()
117 n = scnprintf(ptr, left, "\n"); in usnic_ib_show_config()
118 UPDATE_PTR_LEFT(n, ptr, left); in usnic_ib_show_config()
120 n = scnprintf(ptr, left, "%s: no VFs\n", in usnic_ib_show_config()
122 UPDATE_PTR_LEFT(n, ptr, left); in usnic_ib_show_config()
[all …]
/linux-4.1.27/drivers/staging/rtl8712/
Dieee80211.c291 int left, count; in r8712_parse_wpa_ie() local
303 left = wpa_ie_len - 8; in r8712_parse_wpa_ie()
305 if (left >= WPA_SELECTOR_LEN) { in r8712_parse_wpa_ie()
308 left -= WPA_SELECTOR_LEN; in r8712_parse_wpa_ie()
309 } else if (left > 0) in r8712_parse_wpa_ie()
312 if (left >= 2) { in r8712_parse_wpa_ie()
315 left -= 2; in r8712_parse_wpa_ie()
316 if (count == 0 || left < count * WPA_SELECTOR_LEN) in r8712_parse_wpa_ie()
321 left -= WPA_SELECTOR_LEN; in r8712_parse_wpa_ie()
323 } else if (left == 1) in r8712_parse_wpa_ie()
[all …]
/linux-4.1.27/net/ceph/
Dpagevec.c102 int left = len; in ceph_copy_user_to_page_vector() local
105 while (left > 0) { in ceph_copy_user_to_page_vector()
106 l = min_t(int, PAGE_CACHE_SIZE-po, left); in ceph_copy_user_to_page_vector()
111 left -= l - bad; in ceph_copy_user_to_page_vector()
128 size_t left = len; in ceph_copy_to_page_vector() local
130 while (left > 0) { in ceph_copy_to_page_vector()
131 size_t l = min_t(size_t, PAGE_CACHE_SIZE-po, left); in ceph_copy_to_page_vector()
135 left -= l; in ceph_copy_to_page_vector()
151 size_t left = len; in ceph_copy_from_page_vector() local
153 while (left > 0) { in ceph_copy_from_page_vector()
[all …]
/linux-4.1.27/sound/core/oss/
Dmixer_oss.c263 int result = 0, left, right; in snd_mixer_oss_get_volume() local
268 left = pslot->volume[0]; in snd_mixer_oss_get_volume()
271 result = pslot->get_volume(fmixer, pslot, &left, &right); in snd_mixer_oss_get_volume()
273 right = left; in snd_mixer_oss_get_volume()
274 if (snd_BUG_ON(left < 0 || left > 100)) in snd_mixer_oss_get_volume()
279 pslot->volume[0] = left; in snd_mixer_oss_get_volume()
281 result = (left & 0xff) | ((right & 0xff) << 8); in snd_mixer_oss_get_volume()
291 int result = 0, left = volume & 0xff, right = (volume >> 8) & 0xff; in snd_mixer_oss_set_volume() local
296 if (left > 100) in snd_mixer_oss_set_volume()
297 left = 100; in snd_mixer_oss_set_volume()
[all …]
/linux-4.1.27/kernel/
Dgroups.c116 int left = base; in groups_sort() local
117 int right = left + stride; in groups_sort()
120 while (left >= 0 && gid_gt(GROUP_AT(group_info, left), tmp)) { in groups_sort()
122 GROUP_AT(group_info, left); in groups_sort()
123 right = left; in groups_sort()
124 left -= stride; in groups_sort()
135 unsigned int left, right; in groups_search() local
140 left = 0; in groups_search()
142 while (left < right) { in groups_search()
143 unsigned int mid = (left+right)/2; in groups_search()
[all …]
Dsysctl.c2011 size_t left; in __do_proc_dointvec() local
2021 left = *lenp; in __do_proc_dointvec()
2039 if (left > PAGE_SIZE - 1) in __do_proc_dointvec()
2040 left = PAGE_SIZE - 1; in __do_proc_dointvec()
2045 if (copy_from_user(kbuf, buffer, left)) { in __do_proc_dointvec()
2049 kbuf[left] = 0; in __do_proc_dointvec()
2052 for (; left && vleft--; i++, first=0) { in __do_proc_dointvec()
2057 left -= proc_skip_spaces(&kbuf); in __do_proc_dointvec()
2059 if (!left) in __do_proc_dointvec()
2061 err = proc_get_long(&kbuf, &left, &lval, &neg, in __do_proc_dointvec()
[all …]
Dauditfilter.c1126 int audit_comparator(u32 left, u32 op, u32 right) in audit_comparator() argument
1130 return (left == right); in audit_comparator()
1132 return (left != right); in audit_comparator()
1134 return (left < right); in audit_comparator()
1136 return (left <= right); in audit_comparator()
1138 return (left > right); in audit_comparator()
1140 return (left >= right); in audit_comparator()
1142 return (left & right); in audit_comparator()
1144 return ((left & right) == right); in audit_comparator()
1151 int audit_uid_comparator(kuid_t left, u32 op, kuid_t right) in audit_uid_comparator() argument
[all …]
Daudit.h230 extern int audit_comparator(const u32 left, const u32 op, const u32 right);
231 extern int audit_uid_comparator(kuid_t left, u32 op, kuid_t right);
232 extern int audit_gid_comparator(kgid_t left, u32 op, kgid_t right);
/linux-4.1.27/Documentation/sound/alsa/
DAudigy-mixer.txt42 This control is used to attenuate samples for left and right front PCM FX-bus
43 accumulators. ALSA uses accumulators 8 and 9 for left and right front PCM
49 This control is used to attenuate samples for left and right surround PCM FX-bus
50 accumulators. ALSA uses accumulators 2 and 3 for left and right surround PCM
68 This control is used to attenuate samples for left and right PCM FX-bus
69 accumulators. ALSA uses accumulators 0 and 1 for left and right PCM samples for
75 This control is used to attenuate samples for left and right PCM FX-bus
76 accumulator. ALSA uses accumulators 0 and 1 for left and right PCM.
82 This control is used to attenuate samples for left and right MIDI FX-bus
83 accumulators. ALSA uses accumulators 4 and 5 for left and right MIDI samples.
[all …]
DSB-Live-mixer.txt57 This control is used to attenuate samples for left and right PCM FX-bus
58 accumulators. ALSA uses accumulators 0 and 1 for left and right PCM samples.
63 This control is used to attenuate samples for left and right PCM FX-bus
64 accumulators. ALSA uses accumulators 0 and 1 for left and right PCM samples.
70 This control is used to attenuate samples for left and right PCM FX-bus
71 accumulators. ALSA uses accumulators 0 and 1 for left and right PCM samples.
77 This control is used to attenuate samples for left and right PCM FX-bus
78 accumulators. ALSA uses accumulators 0 and 1 for left and right PCM.
80 the ??rear?? left DAC PCM slot of the AC97 codec.
85 These controls are used to attenuate samples for left and right PCM FX-bus
[all …]
DChannel-Mapping-API.txt16 { front left, front right, rear left, rear right }.
83 SNDRV_CHMAP_FL, /* front left */
85 SNDRV_CHMAP_RL, /* rear left */
89 SNDRV_CHMAP_SL, /* side left */
93 SNDRV_CHMAP_FLC, /* front left center */
95 SNDRV_CHMAP_RLC, /* rear left center */
97 SNDRV_CHMAP_FLW, /* front left wide */
99 SNDRV_CHMAP_FLH, /* front left high */
103 SNDRV_CHMAP_TFL, /* top front left */
106 SNDRV_CHMAP_TRL, /* top rear left */
[all …]
/linux-4.1.27/lib/zlib_inflate/
Dinftrees.c32 int left; /* number of prefix codes available */ in zlib_inflate_table() local
117 left = 1; in zlib_inflate_table()
119 left <<= 1; in zlib_inflate_table()
120 left -= count[len]; in zlib_inflate_table()
121 if (left < 0) return -1; /* over-subscribed */ in zlib_inflate_table()
123 if (left > 0 && (type == CODES || max != 1)) in zlib_inflate_table()
256 left = (int)(1 << curr); in zlib_inflate_table()
258 left -= count[curr + drop]; in zlib_inflate_table()
259 if (left <= 0) break; in zlib_inflate_table()
261 left <<= 1; in zlib_inflate_table()
Dinflate.c169 left = strm->avail_out; \
180 strm->avail_out = left; \
322 unsigned have, left; /* available input and output */ in zlib_inflate() local
347 out = left; in zlib_inflate()
435 if (copy > left) copy = left; in zlib_inflate()
440 left -= copy; in zlib_inflate()
558 if (have >= 6 && left >= 258) { in zlib_inflate()
641 if (state->offset > state->whave + out - left) { in zlib_inflate()
648 if (left == 0) goto inf_leave; in zlib_inflate()
649 copy = out - left; in zlib_inflate()
[all …]
/linux-4.1.27/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-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-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-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()
Dhid-betopff.c45 __u16 left, right; in hid_betopff_play() local
47 left = effect->u.rumble.strong_magnitude; in hid_betopff_play()
50 betopff->report->field[2]->value[0] = left / 256; in hid_betopff_play()
Dhid-tmff.c90 int left, right; /* Rumbling */ in tmff_play() local
108 left = tmff_scale_u16(effect->u.rumble.weak_magnitude, in tmff_play()
115 dbg_hid("(left,right)=(%08x, %08x)\n", left, right); in tmff_play()
116 ff_field->value[0] = left; in tmff_play()
/linux-4.1.27/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 …]
Domap_vout_vrfb.c330 cleft = (pix->width - crop->width) - crop->left; in omap_vout_calculate_vrfb_offset()
370 temp_ps * crop->left + ctop * ps; in omap_vout_calculate_vrfb_offset()
373 temp_ps * crop->left + ctop * ps + in omap_vout_calculate_vrfb_offset()
381 crop->top + (crop->left / vr_ps) * ps; in omap_vout_calculate_vrfb_offset()
384 crop->top + (crop->left / vr_ps) * ps + in omap_vout_calculate_vrfb_offset()
390 vr_ps + (crop->left * ps) / vr_ps + in omap_vout_calculate_vrfb_offset()
/linux-4.1.27/drivers/staging/rtl8723au/core/
Drtw_ieee80211.c450 int left, count; in rtw_parse_wpa_ie23a() local
464 left = wpa_ie_len - 8; in rtw_parse_wpa_ie23a()
467 if (left >= WPA_SELECTOR_LEN) { in rtw_parse_wpa_ie23a()
472 left -= WPA_SELECTOR_LEN; in rtw_parse_wpa_ie23a()
473 } else if (left > 0) { in rtw_parse_wpa_ie23a()
476 __func__, left); in rtw_parse_wpa_ie23a()
482 if (left >= 2) { in rtw_parse_wpa_ie23a()
486 left -= 2; in rtw_parse_wpa_ie23a()
488 if (count == 0 || left < count * WPA_SELECTOR_LEN) { in rtw_parse_wpa_ie23a()
491 __func__, count, left); in rtw_parse_wpa_ie23a()
[all …]
/linux-4.1.27/security/tomoyo/
Dcondition.c287 static bool tomoyo_parse_argv(char *left, char *right, in tomoyo_parse_argv() argument
290 if (tomoyo_parse_ulong(&argv->index, &left) != in tomoyo_parse_argv()
291 TOMOYO_VALUE_TYPE_DECIMAL || *left++ != ']' || *left) in tomoyo_parse_argv()
306 static bool tomoyo_parse_envp(char *left, char *right, in tomoyo_parse_envp() argument
311 char *cp = left + strlen(left) - 1; in tomoyo_parse_envp()
315 if (!tomoyo_correct_word(left)) in tomoyo_parse_envp()
317 name = tomoyo_get_name(left); in tomoyo_parse_envp()
494 u8 left = -1; in tomoyo_get_condition() local
552 left = TOMOYO_ARGV_ENTRY; in tomoyo_get_condition()
567 left = TOMOYO_ENVP_ENTRY; in tomoyo_get_condition()
[all …]
/linux-4.1.27/drivers/media/platform/vivid/
Dvivid-vid-common.c625 if (r->left < boundary->left) in rect_map_inside()
626 r->left = boundary->left; in rect_map_inside()
629 if (r->left + r->width > boundary->width) in rect_map_inside()
630 r->left = boundary->width - r->width; in rect_map_inside()
648 r.left = max(a->left, b->left); in rect_intersect()
650 right = min(a->left + a->width, b->left + b->width); in rect_intersect()
652 r.width = max(0, right - r.left); in rect_intersect()
664 r->left = r->top = r->width = r->height = 0; in rect_scale()
667 r->left = (((r->left - from->left) * to->width) / from->width) & ~1; in rect_scale()
680 if (r1->left >= r2->left + r2->width || in rect_overlap()
[all …]
Dvivid-kthread-cap.c65 int left = dev->overlay_out_left; in copy_pix() local
67 int fb_x = win_x + left; in copy_pix()
77 win_x -= dev->compose_out.left; in copy_pix()
87 fb_x >= r->left && fb_x < r->left + r->width) in copy_pix()
191 dev->loop_vid_out.left += dev->crop_out.left; in vivid_precalc_copy_rects()
200 dev->loop_vid_copy.left, dev->loop_vid_copy.top, in vivid_precalc_copy_rects()
202 dev->loop_vid_out.left, dev->loop_vid_out.top, in vivid_precalc_copy_rects()
204 dev->loop_vid_cap.left, dev->loop_vid_cap.top); in vivid_precalc_copy_rects()
209 r_overlay.left += dev->compose_out.left - dev->overlay_out_left; in vivid_precalc_copy_rects()
216 dev->loop_fb_copy.left -= dev->compose_out.left - dev->overlay_out_left; in vivid_precalc_copy_rects()
[all …]
Dvivid-tpg.c395 tpg->crop.top = tpg->crop.left = 0; in tpg_reset_source()
398 tpg->compose.top = tpg->compose.left = 0; in tpg_reset_source()
1214 tpg->square.left = (w - tpg->square.width) / 2; in tpg_calculate_square_border()
1221 tpg->border.left = 0; in tpg_calculate_square_border()
1233 tpg->border.left = (w - tpg->border.width) / 2; in tpg_calculate_square_border()
1249 tpg->border.left = (w - tpg->border.width) / 2; in tpg_calculate_square_border()
1265 tpg->border.left = (w - tpg->border.width) / 2; in tpg_calculate_square_border()
1422 x += tpg->compose.left; in tpg_gen_text()
1722 params->wss_width = tpg->crop.left < tpg->src_width / 2 ? in tpg_fill_params_extras()
1723 tpg->src_width / 2 - tpg->crop.left : 0; in tpg_fill_params_extras()
[all …]
/linux-4.1.27/drivers/spi/
Dspi-bcm53xx.c177 size_t left; in bcm53xxspi_transfer_one() local
181 left = t->len; in bcm53xxspi_transfer_one()
182 while (left) { in bcm53xxspi_transfer_one()
183 size_t to_write = min_t(size_t, 16, left); in bcm53xxspi_transfer_one()
184 bool cont = left - to_write > 0; in bcm53xxspi_transfer_one()
187 left -= to_write; in bcm53xxspi_transfer_one()
194 left = t->len; in bcm53xxspi_transfer_one()
195 while (left) { in bcm53xxspi_transfer_one()
197 left); in bcm53xxspi_transfer_one()
198 bool cont = left - to_read > 0; in bcm53xxspi_transfer_one()
[all …]
/linux-4.1.27/net/tipc/
Dlink.h263 static inline int less_eq(u32 left, u32 right) in less_eq() argument
265 return mod(right - left) < 32768u; in less_eq()
268 static inline int more(u32 left, u32 right) in more() argument
270 return !less_eq(left, right); in more()
273 static inline int less(u32 left, u32 right) in less() argument
275 return less_eq(left, right) && (mod(right) != mod(left)); in less()
278 static inline u32 lesser(u32 left, u32 right) in lesser() argument
280 return less_eq(left, right) ? left : right; in lesser()
/linux-4.1.27/drivers/video/fbdev/
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 …]
Dmacmodes.c113 "mac1", 60, 512, 384, pixclock, left, right, upper, lower, hslen, vslen,
117 "mac3", 50, 640, 480, pixclock, left, right, upper, lower, hslen, vslen,
121 "mac4", 60, 640, 480, pixclock, left, right, upper, lower, hslen, vslen,
125 "mac8", 50, 768, 576, pixclock, left, right, upper, lower, hslen, vslen,
Damifb.c2604 int shift = dst_idx - src_idx, left, right; in bitcpy() local
2657 left = -shift & (BITS_PER_LONG - 1); in bitcpy()
2668 *dst = comp(*src << left, *dst, first); in bitcpy()
2673 *dst = comp(d0 << left | d1 >> right, *dst, in bitcpy()
2688 *dst = comp(d0 << left | d1 >> right, *dst, in bitcpy()
2700 *dst++ = d0 << left | d1 >> right; in bitcpy()
2703 *dst++ = d0 << left | d1 >> right; in bitcpy()
2706 *dst++ = d0 << left | d1 >> right; in bitcpy()
2709 *dst++ = d0 << left | d1 >> right; in bitcpy()
2715 *dst++ = d0 << left | d1 >> right; in bitcpy()
[all …]
/linux-4.1.27/net/mac80211/
Daes_cmac.c44 size_t i, e, left, total_len; in aes_cmac_vector() local
51 left = total_len; in aes_cmac_vector()
57 while (left >= AES_BLOCK_SIZE) { in aes_cmac_vector()
66 if (left > AES_BLOCK_SIZE) in aes_cmac_vector()
68 left -= AES_BLOCK_SIZE; in aes_cmac_vector()
75 if (left || total_len == 0) { in aes_cmac_vector()
76 for (i = 0; i < left; i++) { in aes_cmac_vector()
84 cbc[left] ^= 0x80; in aes_cmac_vector()
Dmichael.c60 size_t block, blocks, left; in michael_mic() local
67 left = data_len % 4; in michael_mic()
75 while (left > 0) { in michael_mic()
77 left--; in michael_mic()
78 val |= data[blocks * 4 + left]; in michael_mic()
/linux-4.1.27/drivers/s390/char/
Draw3270.h250 struct list_head *p, *left; in free_string() local
253 left = free_list; in free_string()
257 left = p; in free_string()
260 if (left->next != free_list) { in free_string()
261 tmp = list_entry(left->next, struct string, list); in free_string()
268 if (left != free_list) { in free_string()
269 tmp = list_entry(left, struct string, list); in free_string()
275 __list_add(&cs->list, left, left->next); in free_string()
/linux-4.1.27/net/bluetooth/
Decc.c134 static int vli_cmp(const u64 *left, const u64 *right) in vli_cmp() argument
139 if (left[i] > right[i]) in vli_cmp()
141 else if (left[i] < right[i]) in vli_cmp()
183 static u64 vli_add(u64 *result, const u64 *left, in vli_add() argument
192 sum = left[i] + right[i] + carry; in vli_add()
193 if (sum != left[i]) in vli_add()
194 carry = (sum < left[i]); in vli_add()
203 static u64 vli_sub(u64 *result, const u64 *left, const u64 *right) in vli_sub() argument
211 diff = left[i] - right[i] - borrow; in vli_sub()
212 if (diff != left[i]) in vli_sub()
[all …]
/linux-4.1.27/net/rds/
Dtcp_recv.c162 size_t left = len, to_copy; in rds_tcp_data_recv() local
171 while (left) { in rds_tcp_data_recv()
189 if (left && tc->t_tinc_hdr_rem) { in rds_tcp_data_recv()
190 to_copy = min(tc->t_tinc_hdr_rem, left); in rds_tcp_data_recv()
199 left -= to_copy; in rds_tcp_data_recv()
209 if (left && tc->t_tinc_data_rem) { in rds_tcp_data_recv()
216 to_copy = min(tc->t_tinc_data_rem, left); in rds_tcp_data_recv()
221 left, tc->t_tinc_data_rem, skb->len); in rds_tcp_data_recv()
234 left -= to_copy; in rds_tcp_data_recv()
255 len, left, skb->len, in rds_tcp_data_recv()
[all …]
/linux-4.1.27/arch/s390/include/asm/
Didals.h198 size_t left; in idal_buffer_to_user() local
203 left = copy_to_user(to, ib->data[i], IDA_BLOCK_SIZE); in idal_buffer_to_user()
204 if (left) in idal_buffer_to_user()
205 return left + count - IDA_BLOCK_SIZE; in idal_buffer_to_user()
218 size_t left; in idal_buffer_from_user() local
223 left = copy_from_user(ib->data[i], from, IDA_BLOCK_SIZE); in idal_buffer_from_user()
224 if (left) in idal_buffer_from_user()
225 return left + count - IDA_BLOCK_SIZE; in idal_buffer_from_user()
/linux-4.1.27/sound/pci/
Dak4531_codec.c166 int left, right; in snd_ak4531_get_double() local
169 left = (ak4531->regs[left_reg] >> left_shift) & mask; in snd_ak4531_get_double()
173 left = mask - left; in snd_ak4531_get_double()
176 ucontrol->value.integer.value[0] = left; in snd_ak4531_get_double()
191 int left, right; in snd_ak4531_put_double() local
193 left = ucontrol->value.integer.value[0] & mask; in snd_ak4531_put_double()
196 left = mask - left; in snd_ak4531_put_double()
199 left <<= left_shift; in snd_ak4531_put_double()
203 left = (ak4531->regs[left_reg] & ~((mask << left_shift) | (mask << right_shift))) | left | right; in snd_ak4531_put_double()
204 change = left != ak4531->regs[left_reg]; in snd_ak4531_put_double()
[all …]
/linux-4.1.27/arch/powerpc/perf/
Dcore-fsl-emb.c327 s64 left = local64_read(&event->hw.period_left); in fsl_emb_pmu_add() local
328 if (left < 0x80000000L) in fsl_emb_pmu_add()
329 val = 0x80000000L - left; in fsl_emb_pmu_add()
395 s64 left; in fsl_emb_pmu_start() local
410 left = local64_read(&event->hw.period_left); in fsl_emb_pmu_start()
412 if (left < 0x80000000L) in fsl_emb_pmu_start()
413 val = 0x80000000L - left; in fsl_emb_pmu_start()
610 s64 prev, delta, left; in record_and_restart() local
628 left = local64_read(&event->hw.period_left) - delta; in record_and_restart()
630 if (left <= 0) { in record_and_restart()
[all …]
Dcore-book3s.c1218 s64 left; in power_pmu_enable() local
1332 left = local64_read(&event->hw.period_left); in power_pmu_enable()
1333 if (left < 0x80000000L) in power_pmu_enable()
1334 val = 0x80000000L - left; in power_pmu_enable()
1534 s64 left; in power_pmu_start() local
1550 left = local64_read(&event->hw.period_left); in power_pmu_start()
1553 if (left < 0x80000000L) in power_pmu_start()
1554 val = 0x80000000L - left; in power_pmu_start()
1932 s64 prev, delta, left; in record_and_restart() local
1950 left = local64_read(&event->hw.period_left) - delta; in record_and_restart()
[all …]
/linux-4.1.27/drivers/staging/rtl8188eu/core/
Drtw_ieee80211.c521 int left, count; in rtw_parse_wpa_ie() local
538 left = wpa_ie_len - 8; in rtw_parse_wpa_ie()
542 if (left >= WPA_SELECTOR_LEN) { in rtw_parse_wpa_ie()
545 left -= WPA_SELECTOR_LEN; in rtw_parse_wpa_ie()
546 } else if (left > 0) { in rtw_parse_wpa_ie()
547 …TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("%s: ie length mismatch, %u too much", __func__, left)); in rtw_parse_wpa_ie()
552 if (left >= 2) { in rtw_parse_wpa_ie()
555 left -= 2; in rtw_parse_wpa_ie()
557 if (count == 0 || left < count * WPA_SELECTOR_LEN) { in rtw_parse_wpa_ie()
559 "count %u left %u", __func__, count, left)); in rtw_parse_wpa_ie()
[all …]
/linux-4.1.27/lib/
Diov_iter.c9 size_t left; \
15 left = (STEP); \
16 __v.iov_len -= left; \
20 left = 0; \
22 while (unlikely(!left && n)) { \
28 left = (STEP); \
29 __v.iov_len -= left; \
141 size_t skip, copy, left, wanted; in copy_page_to_iter_iovec() local
163 left = __copy_to_user_inatomic(buf, from, copy); in copy_page_to_iter_iovec()
164 copy -= left; in copy_page_to_iter_iovec()
[all …]
Dscatterlist.c252 unsigned int left; in __sg_alloc_table() local
263 left = nents; in __sg_alloc_table()
266 unsigned int sg_size, alloc_size = left; in __sg_alloc_table()
274 left -= sg_size; in __sg_alloc_table()
310 if (!left) in __sg_alloc_table()
314 } while (left); in __sg_alloc_table()
Dbtree.c521 unsigned long *left, int lfill, in merge() argument
529 setkey(geo, left, lfill + i, bkey(geo, right, i)); in merge()
530 setval(geo, left, lfill + i, bval(geo, right, i)); in merge()
534 setval(geo, parent, lpos + 1, left); in merge()
543 unsigned long *parent, *left = NULL, *right = NULL; in rebalance() local
561 left = bval(geo, parent, i - 1); in rebalance()
562 no_left = getfill(geo, left, 0); in rebalance()
565 left, no_left, in rebalance()
/linux-4.1.27/arch/x86/kernel/cpu/microcode/
Damd_early.c119 int offset, left; in apply_ucode_in_initrd() local
136 left = size; in apply_ucode_in_initrd()
149 while (left > 0) { in apply_ucode_in_initrd()
157 left -= offset; in apply_ucode_in_initrd()
162 *cont_sz = compute_container_size(*cont, left + offset); in apply_ucode_in_initrd()
168 left = *cont_sz - offset; in apply_ucode_in_initrd()
177 while (left > 0) { in apply_ucode_in_initrd()
185 left -= offset; in apply_ucode_in_initrd()
203 while (left > 0) { in apply_ucode_in_initrd()
227 left -= offset; in apply_ucode_in_initrd()
/linux-4.1.27/tools/perf/
Dbuiltin-diff.c498 __hist_entry__cmp_compute(struct hist_entry *left, struct hist_entry *right, in __hist_entry__cmp_compute() argument
504 double l = left->diff.period_ratio_delta; in __hist_entry__cmp_compute()
511 double l = left->diff.period_ratio; in __hist_entry__cmp_compute()
518 s64 l = left->diff.wdiff; in __hist_entry__cmp_compute()
531 hist_entry__cmp_compute(struct hist_entry *left, struct hist_entry *right, in hist_entry__cmp_compute() argument
534 bool pairs_left = hist_entry__has_pairs(left); in hist_entry__cmp_compute()
544 p_left = get_pair_data(left, &data__files[sort_idx]); in hist_entry__cmp_compute()
561 hist_entry__cmp_compute_idx(struct hist_entry *left, struct hist_entry *right, in hist_entry__cmp_compute_idx() argument
566 p_left = get_pair_data(left, &data__files[sort_idx]); in hist_entry__cmp_compute_idx()
581 if (left->dummy && right->dummy) in hist_entry__cmp_compute_idx()
[all …]
/linux-4.1.27/drivers/input/mouse/
Dvsxxxaa.c212 int left, middle, right; in vsxxxaa_handle_REL_packet() local
242 left = buf[0] & 0x04; in vsxxxaa_handle_REL_packet()
250 left ? "L" : "l", middle ? "M" : "m", right ? "R" : "r"); in vsxxxaa_handle_REL_packet()
255 input_report_key(dev, BTN_LEFT, left); in vsxxxaa_handle_REL_packet()
268 int left, middle, right, touch; in vsxxxaa_handle_ABS_packet() local
292 left = buf[0] & 0x02; in vsxxxaa_handle_ABS_packet()
301 left ? "L" : "l", middle ? "M" : "m", in vsxxxaa_handle_ABS_packet()
307 input_report_key(dev, BTN_LEFT, left); in vsxxxaa_handle_ABS_packet()
320 int left, middle, right; in vsxxxaa_handle_POR_packet() local
351 left = buf[0] & 0x04; in vsxxxaa_handle_POR_packet()
[all …]
Dalps.c217 int left, int right, int middle) in alps_report_buttons() argument
227 input_report_key(dev, BTN_LEFT, left); in alps_report_buttons()
249 int x, y, z, ges, fin, left, right, middle; in alps_process_packet_v1_v2() local
253 left = packet[2] & 0x10; in alps_process_packet_v1_v2()
260 left = packet[3] & 1; in alps_process_packet_v1_v2()
287 alps_report_buttons(dev2, dev, left, right, middle); in alps_process_packet_v1_v2()
295 left |= packet[0] & 1; in alps_process_packet_v1_v2()
300 alps_report_buttons(dev, dev2, left, right, middle); in alps_process_packet_v1_v2()
532 input_report_key(dev, BTN_LEFT, f->left); in alps_report_semi_mt_data()
546 int x, y, z, left, right, middle; in alps_process_trackstick_packet_v3() local
[all …]
Dhgpk.c349 int left = !!(packet[3] & 1); in hgpk_process_advanced_packet() local
374 left, right, x, y); in hgpk_process_advanced_packet()
377 input_report_key(idev, BTN_LEFT, left); in hgpk_process_advanced_packet()
416 hgpk_spewing_hack(psmouse, left, right, x_diff, y_diff); in hgpk_process_advanced_packet()
432 int left = packet[0] & 1; in hgpk_process_simple_packet() local
448 hgpk_spewing_hack(psmouse, left, right, x, y); in hgpk_process_simple_packet()
452 left, right, x, y); in hgpk_process_simple_packet()
454 input_report_key(dev, BTN_LEFT, left); in hgpk_process_simple_packet()
/linux-4.1.27/tools/lib/traceevent/
Dparse-filter.c208 free_arg(arg->num.left); in free_arg()
213 free_arg(arg->exp.left); in free_arg()
230 free_arg(arg->op.left); in free_arg()
455 struct filter_arg *left; in add_right() local
510 left = op->num.left; in add_right()
520 if (left->type == FILTER_ARG_BOOLEAN) { in add_right()
521 free_arg(left); in add_right()
529 if (left->type != FILTER_ARG_FIELD) { in add_right()
562 op->str.field = left->field.field; in add_right()
581 free_arg(left); in add_right()
[all …]
Devent-parse.c790 free_arg(arg->op.left); in free_arg()
1659 struct print_arg *arg, *left, *right; in process_cond() local
1664 left = alloc_arg(); in process_cond()
1667 if (!arg || !left || !right) { in process_cond()
1670 free_arg(left); in process_cond()
1676 arg->op.left = left; in process_cond()
1680 type = process_arg(event, left, &token); in process_cond()
1685 type = process_op(event, left, &token); in process_cond()
1802 if (!arg->op.left || arg->op.left->type == PRINT_NULL) in set_op_prio()
1814 struct print_arg *left, *right = NULL; in process_op() local
[all …]
/linux-4.1.27/drivers/media/pci/saa7134/
Dsaa7134-alsa.c400 int left, int right, bool force_notify) in snd_saa7134_capsrc_set() argument
413 active = left != 0 || right != 0; in snd_saa7134_capsrc_set()
419 chip->capture_source[0] != left || in snd_saa7134_capsrc_set()
422 chip->capture_source[0] = left; in snd_saa7134_capsrc_set()
477 if (left || right) { in snd_saa7134_capsrc_set()
956 int left, right; in snd_saa7134_volume_put() local
958 left = ucontrol->value.integer.value[0]; in snd_saa7134_volume_put()
959 if (left < 0) in snd_saa7134_volume_put()
960 left = 0; in snd_saa7134_volume_put()
961 if (left > 20) in snd_saa7134_volume_put()
[all …]
Dsaa7134-video.c392 dev->crop_bounds.left = norm->h_start; in set_tvnorm()
393 dev->crop_defrect.left = norm->h_start; in set_tvnorm()
557 h_start = dev->crop_current.left; in set_size()
559 h_stop = (dev->crop_current.left + dev->crop_current.width -1); in set_size()
659 col[cols].position = clip_range(clips[i].c.left); in setup_clipping()
662 col[cols].position = clip_range(clips[i].c.left+clips[i].c.width); in setup_clipping()
735 dev->win.w.left, dev->win.w.top, in start_preview()
752 base += dev->ovfmt->depth/8 * dev->win.w.left; in start_preview()
1638 if (c->left < b->left) in saa7134_s_crop()
1639 c->left = b->left; in saa7134_s_crop()
[all …]
Dsaa7134-tvaudio.c333 __s32 left,right,value; in tvaudio_checkcarrier() local
363 left = saa_readl(SAA7134_LEVEL_READOUT1 >> 2); in tvaudio_checkcarrier()
371 left >>= 16; in tvaudio_checkcarrier()
373 value = left > right ? left - right : right - left; in tvaudio_checkcarrier()
376 scan->name, value, left, right); in tvaudio_checkcarrier()
/linux-4.1.27/drivers/gpu/drm/qxl/
Dqxl_draw.c93 drawable->self_bitmap_area.left = 0; in make_drawable()
197 rect.left = x; in qxl_draw_opaque_fb()
232 drawable->u.copy.src_area.left = 0; in qxl_draw_opaque_fb()
281 int left, right, top, bottom; in qxl_draw_dirty_fb() local
299 left = clips->x1; in qxl_draw_dirty_fb()
307 left = min_t(int, left, (int)clips_ptr->x1); in qxl_draw_dirty_fb()
313 width = right - left; in qxl_draw_dirty_fb()
331 drawable_rect.left = left; in qxl_draw_dirty_fb()
347 left, top, width, height, depth, stride); in qxl_draw_dirty_fb()
364 drawable->u.copy.src_area.left = 0; in qxl_draw_dirty_fb()
[all …]
/linux-4.1.27/drivers/media/platform/vsp1/
Dvsp1_rwpf.c135 crop->left = 0; in vsp1_rwpf_set_format()
167 sel->r.left = 0; in vsp1_rwpf_get_selection()
200 sel->r.left = min_t(unsigned int, sel->r.left, format->width - 2); in vsp1_rwpf_set_selection()
203 sel->r.left = min_t(unsigned int, sel->r.left, 255); in vsp1_rwpf_set_selection()
207 format->width - sel->r.left); in vsp1_rwpf_set_selection()
Dvsp1_bru.c302 compose->left = 0; in bru_set_format()
333 sel->r.left = 0; in bru_get_selection()
367 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); in bru_set_selection()
Dvsp1_rpf.c106 + crop->left * fmtinfo->bpp[0] / 8; in rpf_s_stream()
115 + crop->left * fmtinfo->bpp[1] / 8; in rpf_s_stream()
147 (rpf->location.left << VI6_RPF_LOC_HCOORD_SHIFT) | in rpf_s_stream()
/linux-4.1.27/arch/arm/kernel/
Dperf_event.c101 s64 left = local64_read(&hwc->period_left); in armpmu_event_set_period() local
105 if (unlikely(left <= -period)) { in armpmu_event_set_period()
106 left = period; in armpmu_event_set_period()
107 local64_set(&hwc->period_left, left); in armpmu_event_set_period()
112 if (unlikely(left <= 0)) { in armpmu_event_set_period()
113 left += period; in armpmu_event_set_period()
114 local64_set(&hwc->period_left, left); in armpmu_event_set_period()
125 if (left > (armpmu->max_period >> 1)) in armpmu_event_set_period()
126 left = armpmu->max_period >> 1; in armpmu_event_set_period()
128 local64_set(&hwc->prev_count, (u64)-left); in armpmu_event_set_period()
[all …]
/linux-4.1.27/sound/pci/ctxfi/
Dctdaio.c32 unsigned short left; member
37 [LINEO1] = {.left = 0x00, .right = 0x01},
38 [LINEO2] = {.left = 0x18, .right = 0x19},
39 [LINEO3] = {.left = 0x08, .right = 0x09},
40 [LINEO4] = {.left = 0x10, .right = 0x11},
41 [LINEIM] = {.left = 0x1b5, .right = 0x1bd},
42 [SPDIFOO] = {.left = 0x20, .right = 0x21},
43 [SPDIFIO] = {.left = 0x15, .right = 0x1d},
44 [SPDIFI1] = {.left = 0x95, .right = 0x9d},
48 [LINEO1] = {.left = 0x40, .right = 0x41},
[all …]
/linux-4.1.27/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 …]
Dc4.c199 u_int left; in c4_load_t4file() local
203 left = t4file->len; in c4_load_t4file()
204 while (left >= sizeof(u32)) { in c4_load_t4file()
216 left -= sizeof(u32); in c4_load_t4file()
220 if (left) { in c4_load_t4file()
223 if (copy_from_user(&val, dp, left)) in c4_load_t4file()
226 memcpy(&val, dp, left); in c4_load_t4file()
818 u_int left; in c4_send_config() local
827 left = config->len; in c4_send_config()
828 while (left >= sizeof(u32)) { in c4_send_config()
[all …]
/linux-4.1.27/arch/sparc/kernel/
Dvisemul.c250 u16 left, right; member
296 u16 left, right; in edge() local
310 left = edge8_tab[rs1 & 0x7].left; in edge()
315 left = edge8_tab_l[rs1 & 0x7].left; in edge()
321 left = edge16_tab[(rs1 >> 1) & 0x3].left; in edge()
327 left = edge16_tab_l[(rs1 >> 1) & 0x3].left; in edge()
333 left = edge32_tab[(rs1 >> 2) & 0x1].left; in edge()
339 left = edge32_tab_l[(rs1 >> 2) & 0x1].left; in edge()
345 rd_val = right & left; in edge()
347 rd_val = left; in edge()
/linux-4.1.27/fs/dlm/
Ddir.c88 int left; in dlm_recover_directory() local
105 left = ls->ls_recover_buf->rc_header.h_length; in dlm_recover_directory()
106 left -= sizeof(struct dlm_rcom); in dlm_recover_directory()
112 if (left < sizeof(__be16)) in dlm_recover_directory()
118 left -= sizeof(__be16); in dlm_recover_directory()
129 if (namelen > left) in dlm_recover_directory()
180 left -= namelen; in dlm_recover_directory()
/linux-4.1.27/drivers/firmware/efi/libstub/
Darm-stub.c311 const efi_memory_desc_t *left = l, *right = r; in cmp_mem_desc() local
313 return (left->phys_addr > right->phys_addr) ? 1 : -1; in cmp_mem_desc()
320 static bool regions_are_adjacent(efi_memory_desc_t *left, in regions_are_adjacent() argument
325 if (left == NULL || right == NULL) in regions_are_adjacent()
328 left_end = left->phys_addr + left->num_pages * EFI_PAGE_SIZE; in regions_are_adjacent()
337 static bool regions_have_compatible_memory_type_attrs(efi_memory_desc_t *left, in regions_have_compatible_memory_type_attrs() argument
344 return ((left->attribute ^ right->attribute) & mem_type_mask) == 0; in regions_have_compatible_memory_type_attrs()
/linux-4.1.27/drivers/tty/hvc/
Dhvc_vio.c77 int left; member
96 if (pv->left == 0) { in hvterm_raw_get_chars()
98 pv->left = hvc_get_chars(pv->termno, pv->buf, count); in hvterm_raw_get_chars()
104 for (i = 1; i < pv->left; ++i) { in hvterm_raw_get_chars()
106 --pv->left; in hvterm_raw_get_chars()
107 if (i < pv->left) { in hvterm_raw_get_chars()
109 pv->left - i); in hvterm_raw_get_chars()
115 got = min(count, pv->left); in hvterm_raw_get_chars()
118 pv->left -= got; in hvterm_raw_get_chars()
/linux-4.1.27/Documentation/devicetree/bindings/panel/
Dsharp,lq101r1sx01.txt4 - left-right: each channel drives the left or right half of the screen
8 driven by the first link (DSI-LINK1), left or even, is considered the primary
12 Note that in video mode the DSI-LINK1 interface always provides the left/even
14 is possible to program either link to drive the left/even or right/odd pixels
/linux-4.1.27/drivers/media/pci/ngene/
Dngene-dvb.c73 int left, avail; in ts_read() local
75 left = count; in ts_read()
76 while (left) { in ts_read()
82 if (avail > left) in ts_read()
83 avail = left; in ts_read()
85 left -= avail; in ts_read()
/linux-4.1.27/arch/alpha/kernel/
Dperf_event.c254 long left = local64_read(&hwc->period_left); in alpha_perf_event_set_period() local
258 if (unlikely(left <= -period)) { in alpha_perf_event_set_period()
259 left = period; in alpha_perf_event_set_period()
260 local64_set(&hwc->period_left, left); in alpha_perf_event_set_period()
265 if (unlikely(left <= 0)) { in alpha_perf_event_set_period()
266 left += period; in alpha_perf_event_set_period()
267 local64_set(&hwc->period_left, left); in alpha_perf_event_set_period()
276 if (unlikely(left < alpha_pmu->pmc_left[idx])) in alpha_perf_event_set_period()
277 left = alpha_pmu->pmc_left[idx]; in alpha_perf_event_set_period()
279 if (left > (long)alpha_pmu->pmc_max_period[idx]) in alpha_perf_event_set_period()
[all …]
/linux-4.1.27/sound/hda/
Dhdac_regmap.c155 unsigned int left, right; in hda_reg_read_stereo_amp() local
159 err = snd_hdac_exec_verb(codec, reg | AC_AMP_GET_LEFT, 0, &left); in hda_reg_read_stereo_amp()
165 *val = left | (right << 8); in hda_reg_read_stereo_amp()
174 unsigned int verb, left, right; in hda_reg_write_stereo_amp() local
183 left = val & 0xff; in hda_reg_write_stereo_amp()
185 if (left == right) { in hda_reg_write_stereo_amp()
187 return snd_hdac_exec_verb(codec, reg | left, 0, NULL); in hda_reg_write_stereo_amp()
190 err = snd_hdac_exec_verb(codec, reg | AC_AMP_SET_LEFT | left, 0, NULL); in hda_reg_write_stereo_amp()
/linux-4.1.27/drivers/char/xilinx_hwicap/
Dxilinx_hwicap.c442 ssize_t left = count; in hwicap_write() local
451 left += drvdata->write_buffer_in_use; in hwicap_write()
454 if (left < 4) { in hwicap_write()
465 while (left > 3) { in hwicap_write()
468 len = left; in hwicap_write()
503 left -= drvdata->write_buffer_in_use; in hwicap_write()
507 left -= len; in hwicap_write()
509 if ((left > 0) && (left < 4)) { in hwicap_write()
511 buf + written, left)) { in hwicap_write()
512 drvdata->write_buffer_in_use = left; in hwicap_write()
[all …]
/linux-4.1.27/arch/x86/kernel/cpu/
Dperf_event_amd_ibs.c75 s64 left = local64_read(&hwc->period_left); in perf_event_set_period() local
82 if (unlikely(left <= -period)) { in perf_event_set_period()
83 left = period; in perf_event_set_period()
84 local64_set(&hwc->period_left, left); in perf_event_set_period()
89 if (unlikely(left < (s64)min)) { in perf_event_set_period()
90 left += period; in perf_event_set_period()
91 local64_set(&hwc->period_left, left); in perf_event_set_period()
102 if (left > max) { in perf_event_set_period()
103 left -= max; in perf_event_set_period()
104 if (left > max) in perf_event_set_period()
[all …]
Dperf_event.c1077 s64 left = local64_read(&hwc->period_left); in x86_perf_event_set_period() local
1087 if (unlikely(left <= -period)) { in x86_perf_event_set_period()
1088 left = period; in x86_perf_event_set_period()
1089 local64_set(&hwc->period_left, left); in x86_perf_event_set_period()
1094 if (unlikely(left <= 0)) { in x86_perf_event_set_period()
1095 left += period; in x86_perf_event_set_period()
1096 local64_set(&hwc->period_left, left); in x86_perf_event_set_period()
1103 if (unlikely(left < 2)) in x86_perf_event_set_period()
1104 left = 2; in x86_perf_event_set_period()
1106 if (left > x86_pmu.max_period) in x86_perf_event_set_period()
[all …]
/linux-4.1.27/fs/btrfs/
Dctree.c1886 struct extent_buffer *left = NULL; in balance_level() local
1960 left = read_node_slot(root, parent, pslot - 1); in balance_level()
1961 if (left) { in balance_level()
1962 btrfs_tree_lock(left); in balance_level()
1963 btrfs_set_lock_blocking(left); in balance_level()
1964 wret = btrfs_cow_block(trans, root, left, in balance_level()
1965 parent, pslot - 1, &left); in balance_level()
1984 if (left) { in balance_level()
1985 orig_slot += btrfs_header_nritems(left); in balance_level()
1986 wret = push_node_left(trans, root, left, mid, 1); in balance_level()
[all …]
/linux-4.1.27/arch/metag/kernel/perf/
Dperf_event.c224 s64 left = local64_read(&hwc->period_left); in metag_pmu_event_set_period() local
230 left += period - hwc->last_period; in metag_pmu_event_set_period()
232 if (unlikely(left <= -period)) { in metag_pmu_event_set_period()
233 left = period; in metag_pmu_event_set_period()
234 local64_set(&hwc->period_left, left); in metag_pmu_event_set_period()
239 if (unlikely(left <= 0)) { in metag_pmu_event_set_period()
240 left += period; in metag_pmu_event_set_period()
241 local64_set(&hwc->period_left, left); in metag_pmu_event_set_period()
246 if (left > (s64)metag_pmu->max_period) in metag_pmu_event_set_period()
247 left = metag_pmu->max_period; in metag_pmu_event_set_period()
[all …]
/linux-4.1.27/fs/xfs/libxfs/
Dxfs_btree.c772 xfs_fsblock_t left = be64_to_cpu(block->bb_u.l.bb_leftsib); in xfs_btree_readahead_lblock() local
775 if ((lr & XFS_BTCUR_LEFTRA) && left != NULLFSBLOCK) { in xfs_btree_readahead_lblock()
776 xfs_btree_reada_bufl(cur->bc_mp, left, 1, in xfs_btree_readahead_lblock()
797 xfs_agblock_t left = be32_to_cpu(block->bb_u.s.bb_leftsib); in xfs_btree_readahead_sblock() local
801 if ((lr & XFS_BTCUR_LEFTRA) && left != NULLAGBLOCK) { in xfs_btree_readahead_sblock()
803 left, 1, cur->bc_ops->buf_ops); in xfs_btree_readahead_sblock()
1973 struct xfs_btree_block *left; /* left btree block */ in xfs_btree_lshift() local
2013 error = xfs_btree_read_buf_block(cur, &lptr, 0, &left, &lbp); in xfs_btree_lshift()
2018 lrecs = xfs_btree_get_numrecs(left); in xfs_btree_lshift()
2044 lkp = xfs_btree_key_addr(cur, lrecs, left); in xfs_btree_lshift()
[all …]
Dxfs_bmap.c2791 xfs_bmbt_irec_t left; /* left neighbor extent entry */ in xfs_bmap_add_extent_hole_delay() local
2807 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, *idx - 1), &left); in xfs_bmap_add_extent_hole_delay()
2809 if (isnullstartblock(left.br_startblock)) in xfs_bmap_add_extent_hole_delay()
2830 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_delay()
2831 left.br_blockcount + new->br_blockcount <= MAXEXTLEN) in xfs_bmap_add_extent_hole_delay()
2838 (left.br_blockcount + new->br_blockcount + in xfs_bmap_add_extent_hole_delay()
2853 temp = left.br_blockcount + new->br_blockcount + in xfs_bmap_add_extent_hole_delay()
2858 oldlen = startblockval(left.br_startblock) + in xfs_bmap_add_extent_hole_delay()
2876 temp = left.br_blockcount + new->br_blockcount; in xfs_bmap_add_extent_hole_delay()
2880 oldlen = startblockval(left.br_startblock) + in xfs_bmap_add_extent_hole_delay()
[all …]
/linux-4.1.27/sound/isa/msnd/
Dmsnd_pinnacle_mixer.c186 static int snd_msndmix_set(struct snd_msnd *dev, int d, int left, int right) in snd_msndmix_set() argument
195 bLeft = left * 0xff / 100; in snd_msndmix_set()
196 wLeft = left * 0xffff / 100; in snd_msndmix_set()
260 int left, right; in snd_msndmix_volume_put() local
263 left = ucontrol->value.integer.value[0] % 101; in snd_msndmix_volume_put()
266 change = msnd->left_levels[addr] != left in snd_msndmix_volume_put()
268 snd_msndmix_set(msnd, addr, left, right); in snd_msndmix_volume_put()
/linux-4.1.27/drivers/video/fbdev/msm/
Dmsm_fb.c73 int left; member
145 x = msmfb->update_info.left; in msmfb_start_dma()
150 msmfb->update_info.left = msmfb->xres + 1; in msmfb_start_dma()
193 static void msmfb_pan_update(struct fb_info *info, uint32_t left, uint32_t top, in msmfb_pan_update() argument
204 left, top, eright, ebottom, yoffset, pan_display); in msmfb_pan_update()
254 if (left == 0 && top == 0 && eright == info->var.xres && in msmfb_pan_update()
265 if (left < msmfb->update_info.left) in msmfb_pan_update()
266 msmfb->update_info.left = left; in msmfb_pan_update()
274 msmfb->update_info.left, msmfb->update_info.top, in msmfb_pan_update()
293 static void msmfb_update(struct fb_info *info, uint32_t left, uint32_t top, in msmfb_update() argument
[all …]
/linux-4.1.27/arch/alpha/lib/
Dev6-clear_user.S86 addq $0, $4, $0 # .. E .. .. : bytes left -= 8 - misalignment
164 subq $0, 168, $5 # E : U L L U : two trips through the loop left?
183 # zero to 16 quadwords left to store, plus any trailing bytes
184 # $1 is the number of quadwords left to go.
202 # We have an unknown number of bytes left to go.
209 # $0 contains the number of bytes left to copy (0..31)
/linux-4.1.27/Documentation/input/
Dgamepad.txt43 4 buttons (on the left side) that point up, down, left and right.
104 If only 3 action-buttons are present, they are reported as (from left
112 If rectangular-shaped, the upper-left button is BTN_NORTH, lower-left
125 (for ABS values negative is left/up, positive is right/down)
128 The left analog-stick is reported as ABS_X, ABS_Y. The right analog stick is
131 BTN_THUMBL (first/left) and BTN_THUMBR (second/right).
132 (for ABS values negative is left/up, positive is right/down)
139 or ABS_HAT1Y (left). Lower trigger buttons are reported as BTN_TR2 or
140 ABS_HAT2X (right/ZR) and BTN_TL2 or ABS_HAT2Y (left/ZL).
Dinteractive.fig39 4 0 0 50 0 0 12 0.0000 4 135 1065 5400 3600 left saturation\001
40 4 0 0 50 0 0 12 0.0000 4 180 2505 5400 3900 left coeff ( positive in that case )\001
Damijoy.txt63 JOY0DAT 00A R Denise Joystick-mouse 0 data (left vert, horiz)
82 (4 counters total). The bit usage for both left and right
127 POT0DAT h 012 R Paula Pot counter data left pair (vert, horiz)
133 from 2 controller connectors (left-right) with 2 pins each.
/linux-4.1.27/Documentation/video4linux/cx2341x/
Dfw-osd-api.txt104 top left horizontal offset
106 top left vertical offset
119 top left horizontal offset
121 top left vertical offset
123 bottom left horizontal offset
125 bottom left vertical offset
319 top left window corner horizontal offset
321 top left window corner vertical offset
DREADME.hm1212 The Y plane is divided into blocks of 16x16 pixels from left to right
15 So the first 16 bytes are the first line of the top-left block, the
16 second 16 bytes are the second line of the top-left block, etc. After
20 The UV plane is divided into blocks of 16x8 UV values going from left
23 So the first 16 bytes are the first line of the top-left block and
25 second line of 8 UV pairs of the top-left block, etc. After transmitting
/linux-4.1.27/drivers/s390/block/
Ddasd_int.h607 struct list_head *p, *left; in dasd_free_chunk() local
612 left = chunk_list; in dasd_free_chunk()
616 left = p; in dasd_free_chunk()
619 if (left->next != chunk_list) { in dasd_free_chunk()
620 tmp = list_entry(left->next, struct dasd_mchunk, list); in dasd_free_chunk()
627 if (left != chunk_list) { in dasd_free_chunk()
628 tmp = list_entry(left, struct dasd_mchunk, list); in dasd_free_chunk()
634 __list_add(&chunk->list, left, left->next); in dasd_free_chunk()
/linux-4.1.27/arch/arm/xen/
Dmm.c52 size_t left = size; in dma_cache_maint() local
58 size_t len = left; in dma_cache_maint()
83 left -= len; in dma_cache_maint()
84 } while (left); in dma_cache_maint()
/linux-4.1.27/Documentation/video4linux/
Dsh_mobile_ceu_camera.txt45 S_CROP(left / top = (5) - (1), width / height = (5') - (5))
51 (1) to (2) - sensor cropped left or top
54 (3) to (4) - CEU cropped left or top
57 (2) to (5) - reverse sensor scale applied to CEU cropped left or top
103 ceu_crop(.width = width_ceu, .left = left_ceu)
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/
Dinterval_tree.c281 struct interval_node *left = node->in_left; in __rotate_right() local
284 node->in_left = left->in_right; in __rotate_right()
286 left->in_right->in_parent = node; in __rotate_right()
287 left->in_right = node; in __rotate_right()
289 left->in_parent = parent; in __rotate_right()
292 parent->in_right = left; in __rotate_right()
294 parent->in_left = left; in __rotate_right()
296 *root = left; in __rotate_right()
298 node->in_parent = left; in __rotate_right()
301 __rotate_change_maxhigh(node, left); in __rotate_right()
/linux-4.1.27/arch/tile/kernel/
Dperf_event.c552 s64 left = local64_read(&hwc->period_left); in tile_event_set_period() local
559 if (unlikely(left <= -period)) { in tile_event_set_period()
560 left = period; in tile_event_set_period()
561 local64_set(&hwc->period_left, left); in tile_event_set_period()
566 if (unlikely(left <= 0)) { in tile_event_set_period()
567 left += period; in tile_event_set_period()
568 local64_set(&hwc->period_left, left); in tile_event_set_period()
572 if (left > tile_pmu->max_period) in tile_event_set_period()
573 left = tile_pmu->max_period; in tile_event_set_period()
579 local64_set(&hwc->prev_count, (u64)-left); in tile_event_set_period()
[all …]
/linux-4.1.27/drivers/media/i2c/soc_camera/
Dmt9t031.c228 rect->left &= ~1; in mt9t031_set_params()
231 rect->left &= ~3; in mt9t031_set_params()
234 rect->left = rect->left > roundup(MT9T031_COLUMN_SKIP, 6) ? in mt9t031_set_params()
235 (rect->left / 6) * 6 : roundup(MT9T031_COLUMN_SKIP, 6); in mt9t031_set_params()
241 xskip, yskip, rect->width, rect->height, rect->left, rect->top); in mt9t031_set_params()
263 rect->left, rect->top); in mt9t031_set_params()
270 ret = reg_write(client, MT9T031_COLUMN_START, rect->left); in mt9t031_set_params()
306 soc_camera_limit_side(&rect.left, &rect.width, in mt9t031_s_crop()
328 a->bounds.left = MT9T031_COLUMN_SKIP; in mt9t031_cropcap()
786 mt9t031->rect.left = MT9T031_COLUMN_SKIP; in mt9t031_probe()
Dmt9m001.c191 rect.left = ALIGN(rect.left, 2); in mt9m001_s_crop()
193 soc_camera_limit_side(&rect.left, &rect.width, in mt9m001_s_crop()
211 ret = reg_write(client, MT9M001_COLUMN_START, rect.left); in mt9m001_s_crop()
241 a->bounds.left = MT9M001_COLUMN_SKIP; in mt9m001_cropcap()
275 .left = mt9m001->rect.left, in mt9m001_s_fmt()
682 mt9m001->rect.left = MT9M001_COLUMN_SKIP; in mt9m001_probe()
Dov6650.c456 rect.left = ALIGN(rect.left, 2); in ov6650_s_crop()
460 soc_camera_limit_side(&rect.left, &rect.width, in ov6650_s_crop()
465 ret = ov6650_reg_write(client, REG_HSTRT, rect.left >> 1); in ov6650_s_crop()
467 priv->rect.left = rect.left; in ov6650_s_crop()
469 (rect.left + rect.width) >> 1); in ov6650_s_crop()
491 a->bounds.left = DEF_HSTRT << 1; in ov6650_cropcap()
550 .left = priv->rect.left + (priv->rect.width >> 1) - in ov6650_s_fmt()
1011 priv->rect.left = DEF_HSTRT << 1; in ov6650_probe()
Dmt9t112.c344 static void mt9t112_frame_check(u32 *width, u32 *height, u32 *left, u32 *top) in mt9t112_frame_check() argument
346 soc_camera_limit_side(left, width, 0, 0, MAX_WIDTH); in mt9t112_frame_check()
863 &priv->frame.left, &priv->frame.top); in mt9t112_set_params()
872 a->bounds.left = 0; in mt9t112_cropcap()
876 a->defrect.left = 0; in mt9t112_cropcap()
930 .left = priv->frame.left, in mt9t112_s_fmt()
948 unsigned int top, left; in mt9t112_try_fmt() local
962 mt9t112_frame_check(&mf->width, &mf->height, &left, &top); in mt9t112_try_fmt()
1078 .left = (MAX_WIDTH - VGA_WIDTH) / 2, in mt9t112_probe()
/linux-4.1.27/sound/isa/sb/
Dsb_mixer.c132 unsigned char left, right; in snd_sbmixer_get_double() local
135 left = (snd_sbmixer_read(sb, left_reg) >> left_shift) & mask; in snd_sbmixer_get_double()
138 ucontrol->value.integer.value[0] = left; in snd_sbmixer_get_double()
153 unsigned char left, right, oleft, oright; in snd_sbmixer_put_double() local
155 left = (ucontrol->value.integer.value[0] & mask) << left_shift; in snd_sbmixer_put_double()
160 left = (oleft & ~((mask << left_shift) | (mask << right_shift))) | left | right; in snd_sbmixer_put_double()
161 change = left != oleft; in snd_sbmixer_put_double()
163 snd_sbmixer_write(sb, left_reg, left); in snd_sbmixer_put_double()
167 left = (oleft & ~(mask << left_shift)) | left; in snd_sbmixer_put_double()
169 change = left != oleft || right != oright; in snd_sbmixer_put_double()
[all …]
/linux-4.1.27/drivers/gpu/ipu-v3/
Dipu-cpmem.c609 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
610 u_offset = U_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
612 v_offset = V_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
620 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
621 u_offset = U2_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
623 v_offset = V2_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
631 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
632 u_offset = UV_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
641 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
642 u_offset = UV2_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
[all …]
/linux-4.1.27/sound/pci/cs46xx/
Ddsp_spos.h220 u16 left, u16 right) in cs46xx_dsp_scb_set_volume() argument
222 unsigned int val = ((0xffff - left) << 16 | (0xffff - right)); in cs46xx_dsp_scb_set_volume()
227 scb->volume[0] = left; in cs46xx_dsp_scb_set_volume()
/linux-4.1.27/drivers/media/pci/ddbridge/
Dddbridge-core.c447 u32 left = count, len; in ddb_output_write() local
452 while (left) { in ddb_output_write()
472 if (len > left) in ddb_output_write()
473 len = left; in ddb_output_write()
477 left -= len; in ddb_output_write()
487 return count - left; in ddb_output_write()
512 u32 left = count; in ddb_input_read() local
518 while (left) { in ddb_input_read()
520 return count - left; in ddb_input_read()
522 if (free > left) in ddb_input_read()
[all …]
/linux-4.1.27/drivers/staging/speakup/
DDefaultKeyAssignments17 KeyPad-4 Say Previous Word (left one word)
18 InsKeyPad-4 say from left edge of line to reading cursor.
23 KeyPad-1 Say Previous Character (left one letter)
33 InsKeyPad-7 Move reading cursor to left edge of screen (insert home)
/linux-4.1.27/include/sound/
Dmixer_oss.h36 int *left, int *right);
39 int left, int right);
/linux-4.1.27/fs/nfs/blocklayout/
Dextent_tree.c96 struct pnfs_block_extent *left = ext_tree_prev(be); in ext_try_to_merge_left() local
98 if (left && ext_can_merge(left, be)) { in ext_try_to_merge_left()
99 left->be_length += be->be_length; in ext_try_to_merge_left()
103 return left; in ext_try_to_merge_left()
419 struct pnfs_block_extent *left = ext_tree_prev(be); in ext_tree_mark_written() local
421 if (left && ext_can_merge(left, be)) { in ext_tree_mark_written()
424 left->be_length += diff; in ext_tree_mark_written()
/linux-4.1.27/drivers/media/radio/
Dradio-sf16fmr2.c152 int volume, balance, left, right; in fmr2_s_ctrl() local
167 left = right = volume; in fmr2_s_ctrl()
171 left = max(0, left - balance); in fmr2_s_ctrl()
173 tc9154a_set_attenuation(fmr2, abs(left - 68), TC9154A_CHANNEL_LEFT); in fmr2_s_ctrl()
/linux-4.1.27/sound/pci/au88x0/
Dau88x0_a3d.c174 static void a3dsrc_SetHrtfOutput(a3dsrc_t * a, short left, short right) in a3dsrc_SetHrtfOutput() argument
178 a3d_addrA(a->slice, a->source, A3D_A_HrtfOutL), left); in a3dsrc_SetHrtfOutput()
235 static void a3dsrc_GetHrtfOutput(a3dsrc_t * a, short *left, short *right)
238 *left =
339 static void a3dsrc_SetGainTarget(a3dsrc_t * a, short left, short right) in a3dsrc_SetGainTarget() argument
344 (right << 0x10) | left); in a3dsrc_SetGainTarget()
347 static void a3dsrc_SetGainCurrent(a3dsrc_t * a, short left, short right) in a3dsrc_SetGainCurrent() argument
352 (right << 0x10) | left); in a3dsrc_SetGainCurrent()
356 static void a3dsrc_GetGainTarget(a3dsrc_t * a, short *left, short *right)
362 *left =
[all …]
/linux-4.1.27/drivers/media/i2c/
Dtvp5150.c860 __func__, rect.left, rect.top, rect.width, rect.height); in tvp5150_s_crop()
866 rect.left = clamp(rect.left, 0, TVP5150_MAX_CROP_LEFT); in tvp5150_s_crop()
868 TVP5150_H_MAX - TVP5150_MAX_CROP_LEFT - rect.left, in tvp5150_s_crop()
869 TVP5150_H_MAX - rect.left); in tvp5150_s_crop()
891 rect.left >> TVP5150_CROP_SHIFT); in tvp5150_s_crop()
893 rect.left | (1 << TVP5150_CROP_SHIFT)); in tvp5150_s_crop()
895 (rect.left + rect.width - TVP5150_MAX_CROP_LEFT) >> in tvp5150_s_crop()
898 rect.left + rect.width - TVP5150_MAX_CROP_LEFT); in tvp5150_s_crop()
923 a->bounds.left = 0; in tvp5150_cropcap()
1178 core->rect.left = 0; in tvp5150_probe()
/linux-4.1.27/kernel/trace/
Dtrace_events_filter.c435 if (pred->left != FILTER_PRED_INVALID) { in walk_pred_tree()
436 pred = &preds[pred->left]; in walk_pred_tree()
513 if (pred->left != FILTER_PRED_INVALID) { in filter_match_preds_cb()
727 struct filter_pred *left; in filter_set_pred() local
735 left = __pop_pred_stack(stack); in filter_set_pred()
736 if (!left || !right) in filter_set_pred()
743 if (left->index & FILTER_PRED_FOLD && in filter_set_pred()
744 ((left->op == dest->op && !left->not) || in filter_set_pred()
745 left->left == FILTER_PRED_INVALID) && in filter_set_pred()
748 right->left == FILTER_PRED_INVALID)) in filter_set_pred()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/mfd/
Dtwl6040.txt27 - vddvibl-supply: Regulator for the left vibra motor
31 - ti,vibldrv-res: Resistance parameter for left driver
33 - ti,viblmotor-res: Resistance parameter for left motor
/linux-4.1.27/drivers/block/drbd/
Ddrbd_interval.c28 sector_t left = interval_end(node->rb.rb_left); in compute_subtree_last() local
29 if (left > max) in compute_subtree_last()
30 max = left; in compute_subtree_last()
/linux-4.1.27/drivers/usb/image/
Dmdc800.c696 size_t left=len, sts=len; /* single transfer size */ in mdc800_device_read() local
719 while (left) in mdc800_device_read()
727 sts=left > (mdc800->out_count-mdc800->out_ptr)?mdc800->out_count-mdc800->out_ptr:left; in mdc800_device_read()
745 return len-left; in mdc800_device_read()
758 return len-left; in mdc800_device_read()
777 left-=sts; in mdc800_device_read()
783 return len-left; in mdc800_device_read()
/linux-4.1.27/fs/ceph/
Dfile.c355 u64 pos, this_len, left; in striped_read() local
367 left = len; in striped_read()
378 this_len = left; in striped_read()
386 hit_stripe = this_len < left; in striped_read()
388 dout("striped_read %llu~%llu (read %u) got %d%s%s\n", pos, left, read, in striped_read()
407 left -= ret; in striped_read()
412 if (left && hit_stripe && pos < inode->i_size) in striped_read()
419 if (pos + left > inode->i_size) in striped_read()
493 size_t left = ret; in ceph_sync_read() local
495 while (left) { in ceph_sync_read()
[all …]
/linux-4.1.27/drivers/gpu/drm/panel/
Dpanel-sharp-lq101r1sx01.c136 static int sharp_setup_symmetrical_split(struct mipi_dsi_device *left, in sharp_setup_symmetrical_split() argument
142 err = mipi_dsi_dcs_set_column_address(left, 0, mode->hdisplay / 2 - 1); in sharp_setup_symmetrical_split()
144 dev_err(&left->dev, "failed to set column address: %d\n", err); in sharp_setup_symmetrical_split()
148 err = mipi_dsi_dcs_set_page_address(left, 0, mode->vdisplay - 1); in sharp_setup_symmetrical_split()
150 dev_err(&left->dev, "failed to set page address: %d\n", err); in sharp_setup_symmetrical_split()
/linux-4.1.27/sound/isa/opti9xx/
Dmiro.c488 int left, right, left_old, right_old; in snd_miro_put_double() local
492 left = ucontrol->value.integer.value[0]; in snd_miro_put_double()
519 if (left < -0x7f || left > 0x7f || in snd_miro_put_double()
528 if (left >= 0) { in snd_miro_put_double()
529 error = aci_setvalue(aci, setreg_left, left); in snd_miro_put_double()
532 left, error); in snd_miro_put_double()
536 error = aci_setvalue(aci, setreg_left, 0x80 - left); in snd_miro_put_double()
539 0x80 - left, error); in snd_miro_put_double()
564 if (left < 0 || left > 0x20 || in snd_miro_put_double()
571 error = aci_setvalue(aci, setreg_left, 0x20 - left); in snd_miro_put_double()
[all …]
/linux-4.1.27/drivers/media/pci/cx88/
Dcx88-alsa.c666 int left = value->value.integer.value[0]; in snd_cx88_wm8775_volume_put() local
671 if (left >= right) { in snd_cx88_wm8775_volume_put()
672 v = left << 10; in snd_cx88_wm8775_volume_put()
673 b = left ? (0x8000 * right) / left : 0x8000; in snd_cx88_wm8775_volume_put()
676 b = right ? 0xffff - (0x8000 * left) / right : 0x8000; in snd_cx88_wm8775_volume_put()
688 int left, right, v, b; in snd_cx88_volume_put() local
695 left = value->value.integer.value[0] & 0x3f; in snd_cx88_volume_put()
697 b = right - left; in snd_cx88_volume_put()
699 v = 0x3f - left; in snd_cx88_volume_put()
/linux-4.1.27/drivers/parport/
Dparport_ip32.c483 size_t left; member
502 if (parport_ip32_dma.left > 0) { in parport_ip32_dma_setup_context()
511 if (parport_ip32_dma.left <= limit) { in parport_ip32_dma_setup_context()
512 count = parport_ip32_dma.left; in parport_ip32_dma_setup_context()
533 parport_ip32_dma.left -= count; in parport_ip32_dma_setup_context()
539 if (parport_ip32_dma.left == 0 && parport_ip32_dma.irq_on) { in parport_ip32_dma_setup_context()
555 if (parport_ip32_dma.left) in parport_ip32_dma_interrupt()
607 parport_ip32_dma.left = parport_ip32_dma.len; in parport_ip32_dma_start()
678 parport_ip32_dma.left += res[0] + res[1]; in parport_ip32_dma_stop()
699 return parport_ip32_dma.left; in parport_ip32_dma_get_residue()
[all …]
Dparport_pc.c272 size_t left = length; in parport_pc_epp_read_data() local
281 if (left >= 16 && (status & 0x20) && !(status & 0x08)) { in parport_pc_epp_read_data()
289 left -= 16; in parport_pc_epp_read_data()
295 left--; in parport_pc_epp_read_data()
475 size_t left = length; in parport_pc_fifo_write_block_pio() local
492 while (left) { in parport_pc_fifo_write_block_pio()
543 const int n = left < fifo_depth ? left : fifo_depth; in parport_pc_fifo_write_block_pio()
546 left -= n; in parport_pc_fifo_write_block_pio()
561 left--; in parport_pc_fifo_write_block_pio()
564 return length - left; in parport_pc_fifo_write_block_pio()
[all …]
/linux-4.1.27/drivers/media/platform/exynos4-is/
Dfimc-lite.c630 r->left = clamp_t(u32, r->left, 0, frame->f_width - r->width); in fimc_lite_try_crop()
631 r->left = round_down(r->left, fimc->dd->win_hor_offs_align); in fimc_lite_try_crop()
635 r->left, r->top, r->width, r->height, in fimc_lite_try_crop()
650 r->left = clamp_t(u32, r->left, 0, frame->f_width - r->width); in fimc_lite_try_compose()
651 r->left = round_down(r->left, fimc->dd->out_hor_offs_align); in fimc_lite_try_compose()
655 r->left, r->top, r->width, r->height, in fimc_lite_try_compose()
899 if (a->left < b->left || a->top < b->top) in enclosed_rectangle()
901 if (a->left + a->width > b->left + b->width) in enclosed_rectangle()
921 sel->r.left = 0; in fimc_lite_g_selection()
1151 sink->rect.left = 0; in fimc_lite_subdev_set_fmt()
[all …]
Dfimc-m2m.c409 cr->bounds.left = 0; in fimc_m2m_cropcap()
427 cr->c.left = frame->offs_h; in fimc_m2m_g_crop()
442 if (cr->c.top < 0 || cr->c.left < 0) { in fimc_m2m_try_crop()
472 if (cr->c.left + cr->c.width > f->o_width) in fimc_m2m_try_crop()
473 cr->c.left = f->o_width - cr->c.width; in fimc_m2m_try_crop()
477 cr->c.left = round_down(cr->c.left, min_size); in fimc_m2m_try_crop()
481 cr->c.left, cr->c.top, cr->c.width, cr->c.height, in fimc_m2m_try_crop()
517 f->offs_h = cr.c.left; in fimc_m2m_s_crop()
Dfimc-capture.c677 r->left = r->top = 0; in fimc_capture_try_selection()
719 r->left = clamp_t(u32, r->left, 0, sink->f_width - r->width); in fimc_capture_try_selection()
721 r->left = round_down(r->left, var->hor_offs_align); in fimc_capture_try_selection()
724 target, r->left, r->top, r->width, r->height, in fimc_capture_try_selection()
1292 s->r.left = 0; in fimc_cap_g_selection()
1301 s->r.left = f->offs_h; in fimc_cap_g_selection()
1314 if (a->left < b->left || a->top < b->top) in enclosed_rectangle()
1316 if (a->left + a->width > b->left + b->width) in enclosed_rectangle()
1355 set_frame_crop(f, s->r.left, s->r.top, s->r.width, in fimc_cap_s_selection()
1625 r->left = 0; in fimc_subdev_get_selection()
[all …]
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dvmwgfx_kms.c62 out_rects[k].left = x1; in vmw_clip_cliprects()
460 int left, right, top, bottom; in do_surface_dirty_sou() local
496 left = clips->x1; in do_surface_dirty_sou()
504 left = min_t(int, left, (int)clips_ptr->x1); in do_surface_dirty_sou()
514 cmd->body.srcRect.left = left; in do_surface_dirty_sou()
521 tmp[i].x1 = clips_ptr->x1 - left; in do_surface_dirty_sou()
522 tmp[i].x2 = clips_ptr->x2 - left; in do_surface_dirty_sou()
533 clip.x1 = left - unit->crtc.x; in do_surface_dirty_sou()
548 cmd->body.destRect.left = clip.x1; in do_surface_dirty_sou()
921 blits[hit_num].body.destRect.left = clip_x1 - move_x; in do_dmabuf_dirty_sou()
[all …]
/linux-4.1.27/drivers/atm/
Dlanai.c2448 loff_t left = *pos; in lanai_proc_read() local
2450 if (left-- == 0) in lanai_proc_read()
2456 if (left-- == 0) in lanai_proc_read()
2459 if (left-- == 0) in lanai_proc_read()
2462 if (left-- == 0) in lanai_proc_read()
2468 if (left-- == 0) in lanai_proc_read()
2472 if (left-- == 0) { in lanai_proc_read()
2479 if (left-- == 0) in lanai_proc_read()
2485 if (left-- == 0) in lanai_proc_read()
2489 if (left-- == 0) in lanai_proc_read()
[all …]
Dadummy.c125 int left = *pos; in adummy_proc_read() local
127 if (!left--) in adummy_proc_read()
/linux-4.1.27/fs/ntfs/
Drunlist.c288 bool left = false; /* Left end of @src needs merging. */ in ntfs_rl_insert() local
304 left = ntfs_are_rl_mergeable(dst + loc - 1, src); in ntfs_rl_insert()
307 if (left) in ntfs_rl_insert()
316 dst = ntfs_rl_realloc(dst, dsize, dsize + ssize - left + disc); in ntfs_rl_insert()
323 if (left) in ntfs_rl_insert()
332 marker = loc + ssize - left + disc; in ntfs_rl_insert()
336 ntfs_rl_mc(dst, loc + disc, src, left, ssize - left); in ntfs_rl_insert()
385 bool left = false; /* Left end of @src needs merging. */ in ntfs_rl_replace() local
397 left = ntfs_are_rl_mergeable(dst + loc - 1, src); in ntfs_rl_replace()
402 delta = ssize - 1 - left - right; in ntfs_rl_replace()
[all …]
/linux-4.1.27/net/ceph/crush/
Dmapper.c172 static int left(int x) in left() function
208 l = left(n); in bucket_tree_choose()
584 int x, int left, int numrep, int type, in crush_choose_indep() argument
593 int endpos = outpos + left; in crush_choose_indep()
612 for (ftotal = 0; left > 0 && ftotal < tries; ftotal++) { in crush_choose_indep()
652 left--; in crush_choose_indep()
672 left--; in crush_choose_indep()
716 left--; in crush_choose_indep()
/linux-4.1.27/drivers/tty/
Dtty_buffer.c253 int left, change; in __tty_buffer_request_room() local
257 left = 2 * b->size - b->used; in __tty_buffer_request_room()
259 left = b->size - b->used; in __tty_buffer_request_room()
262 if (change || left < size) { in __tty_buffer_request_room()
277 size = left; in __tty_buffer_request_room()
/linux-4.1.27/Documentation/devicetree/bindings/mmc/
Dmmc-pwrseq-emmc.txt6 fix possible issues if bootloader has left eMMC card in initialized or
11 card if the card is left in unknown or already initialized state.
/linux-4.1.27/sound/parisc/
Dharmony.c720 int left, right; in snd_harmony_volume_get() local
724 left = (h->st.gain >> shift_left) & mask; in snd_harmony_volume_get()
727 left = mask - left; in snd_harmony_volume_get()
731 ucontrol->value.integer.value[0] = left; in snd_harmony_volume_get()
749 int left, right; in snd_harmony_volume_put() local
754 left = ucontrol->value.integer.value[0] & mask; in snd_harmony_volume_put()
756 left = mask - left; in snd_harmony_volume_put()
758 h->st.gain |= (left << shift_left); in snd_harmony_volume_put()
/linux-4.1.27/arch/x86/xen/
Dsetup.c309 unsigned long left = size; in xen_do_set_identity_and_remap_chunk() local
321 chunk = (left < REMAP_SIZE) ? left : REMAP_SIZE; in xen_do_set_identity_and_remap_chunk()
340 left -= chunk; in xen_do_set_identity_and_remap_chunk()
369 unsigned long left = n - i; in xen_set_identity_and_remap_chunk() local
370 unsigned long size = left; in xen_set_identity_and_remap_chunk()
387 cur_pfn + left, nr_pages, released); in xen_set_identity_and_remap_chunk()
/linux-4.1.27/sound/drivers/
Ddummy.c761 int left, right; in snd_dummy_volume_put() local
763 left = ucontrol->value.integer.value[0]; in snd_dummy_volume_put()
764 if (left < -50) in snd_dummy_volume_put()
765 left = -50; in snd_dummy_volume_put()
766 if (left > 100) in snd_dummy_volume_put()
767 left = 100; in snd_dummy_volume_put()
774 change = dummy->mixer_volume[addr][0] != left || in snd_dummy_volume_put()
776 dummy->mixer_volume[addr][0] = left; in snd_dummy_volume_put()
809 int left, right; in snd_dummy_capsrc_put() local
811 left = ucontrol->value.integer.value[0] & 1; in snd_dummy_capsrc_put()
[all …]
/linux-4.1.27/net/ipv6/
Dip6_fib.c479 fn = dir ? fn->right : fn->left; in fib6_add_1()
515 pn->left = ln; in fib6_add_1()
576 pn->left = in; in fib6_add_1()
587 in->left = fn; in fib6_add_1()
589 in->left = ln; in fib6_add_1()
614 pn->left = ln; in fib6_add_1()
619 ln->left = fn; in fib6_add_1()
1072 next = dir ? fn->right : fn->left; in fib6_lookup_1()
1173 fn = fn->left; in fib6_locate_1()
1214 if (fn->left) in fib6_find_prefix()
[all …]
/linux-4.1.27/drivers/video/fbdev/sis/
Dsis_accel.h245 #define SiS300SetupClipLT(left,top) \ argument
247 MMIO_OUT32(ivideo->mmio_vbase, BR(13), ((left) & 0xFFFF) | (top)<<16 );\
371 #define SiS310SetupClipLT(left,top) \ argument
373 MMIO_OUT32(ivideo->mmio_vbase, LEFT_CLIP, ((left) & 0xFFFF) | (top)<<16 );\
/linux-4.1.27/drivers/tty/serial/
Dsunhv.c410 int left = PAGE_SIZE; in fill_con_write_page() local
414 if (left < 2) in fill_con_write_page()
417 left--; in fill_con_write_page()
418 } else if (left < 1) in fill_con_write_page()
421 left--; in fill_con_write_page()
/linux-4.1.27/drivers/media/platform/omap3isp/
Dispresizer.c397 static void resizer_set_start(struct isp_res_device *res, u32 left, u32 top) in resizer_set_start() argument
402 rgval = (left << ISPRSZ_IN_START_HORZ_ST_SHIFT) in resizer_set_start()
898 input->left += (input->width - width) / 2; in resizer_calc_ratios()
928 res->crop.active.left) * 2; in resizer_set_crop_params()
947 resizer_set_start(res, res->crop.active.left * 2, in resizer_set_crop_params()
1207 crop->left = clamp_t(u32, crop->left, 0, sink->width - MIN_IN_WIDTH); in resizer_try_crop()
1209 sink->width - crop->left); in resizer_try_crop()
1244 sel->r.left = 0; in resizer_get_selection()
1301 sel->r.left, sel->r.top, sel->r.width, sel->r.height, in resizer_set_selection()
1319 sel->r.left, sel->r.top, sel->r.width, sel->r.height, in resizer_set_selection()
[all …]
/linux-4.1.27/sound/isa/gus/
Dgus_mixer.c95 unsigned char left, right; in snd_ics_get_double() local
98 left = gus->gf1.ics_regs[addr][0]; in snd_ics_get_double()
101 ucontrol->value.integer.value[0] = left & 127; in snd_ics_get_double()
/linux-4.1.27/arch/arm64/kernel/
Dperf_event.c156 s64 left = local64_read(&hwc->period_left); in armpmu_event_set_period() local
160 if (unlikely(left <= -period)) { in armpmu_event_set_period()
161 left = period; in armpmu_event_set_period()
162 local64_set(&hwc->period_left, left); in armpmu_event_set_period()
167 if (unlikely(left <= 0)) { in armpmu_event_set_period()
168 left += period; in armpmu_event_set_period()
169 local64_set(&hwc->period_left, left); in armpmu_event_set_period()
180 if (left > (armpmu->max_period >> 1)) in armpmu_event_set_period()
181 left = armpmu->max_period >> 1; in armpmu_event_set_period()
183 local64_set(&hwc->prev_count, (u64)-left); in armpmu_event_set_period()
[all …]
/linux-4.1.27/sound/soc/codecs/
Dwm_hubs.c148 unsigned int left; member
158 unsigned int left, right; in wm_hubs_dcs_cache_get() local
160 left = snd_soc_read(codec, WM8993_LEFT_OUTPUT_VOLUME); in wm_hubs_dcs_cache_get()
161 left &= WM8993_HPOUT1L_VOL_MASK; in wm_hubs_dcs_cache_get()
167 if (cache->left != left || cache->right != right) in wm_hubs_dcs_cache_get()
189 cache->left = snd_soc_read(codec, WM8993_LEFT_OUTPUT_VOLUME); in wm_hubs_dcs_cache_set()
190 cache->left &= WM8993_HPOUT1L_VOL_MASK; in wm_hubs_dcs_cache_set()
267 cache->dcs_cfg, cache->left, cache->right); in enable_dc_servo()
/linux-4.1.27/fs/nilfs2/
Dbtree.c195 static void nilfs_btree_node_move_left(struct nilfs_btree_node *left, in nilfs_btree_node_move_left() argument
203 ldkeys = nilfs_btree_node_dkeys(left); in nilfs_btree_node_move_left()
204 ldptrs = nilfs_btree_node_dptrs(left, lncmax); in nilfs_btree_node_move_left()
205 lnchildren = nilfs_btree_node_get_nchildren(left); in nilfs_btree_node_move_left()
218 nilfs_btree_node_set_nchildren(left, lnchildren); in nilfs_btree_node_move_left()
223 static void nilfs_btree_node_move_right(struct nilfs_btree_node *left, in nilfs_btree_node_move_right() argument
231 ldkeys = nilfs_btree_node_dkeys(left); in nilfs_btree_node_move_right()
232 ldptrs = nilfs_btree_node_dptrs(left, lncmax); in nilfs_btree_node_move_right()
233 lnchildren = nilfs_btree_node_get_nchildren(left); in nilfs_btree_node_move_right()
246 nilfs_btree_node_set_nchildren(left, lnchildren); in nilfs_btree_node_move_right()
[all …]
/linux-4.1.27/sound/oss/dmasound/
Ddmasound_paula.c168 u_char *left = &frame[*frameUsed>>1]; in ami_ct_s8() local
169 u_char *right = left+write_sq_block_size_half; in ami_ct_s8()
173 if (get_user(*left++, userPtr++) in ami_ct_s8()
207 u_char *left = &frame[*frameUsed>>1]; \
208 u_char *right = left+write_sq_block_size_half; \
215 *left++ = convsample(data); \
/linux-4.1.27/Documentation/ABI/obsolete/
Dsysfs-bus-usb16 During normal use, devices should be left in the "auto"
23 left in the "on" level. Although the USB spec requires
/linux-4.1.27/arch/mips/mm/
Ddma-default.c227 size_t left = size; in __dma_sync() local
230 size_t len = left; in __dma_sync()
251 left -= len; in __dma_sync()
252 } while (left); in __dma_sync()
/linux-4.1.27/drivers/media/platform/s3c-camif/
Dcamif-capture.c60 f->dma_offset.initial = f->rect.top * f->f_width + f->rect.left; in camif_prepare_dma_offset()
61 f->dma_offset.line = f->f_width - (f->rect.left + f->rect.width); in camif_prepare_dma_offset()
814 out_frame->rect.left = 0; in s3c_camif_vidioc_s_fmt()
1010 sel->r.left = 0; in s3c_camif_g_selection()
1058 sel->r.left, sel->r.top, sel->r.width, sel->r.height); in s3c_camif_s_selection()
1340 crop->left = 0; in s3c_camif_subdev_set_fmt()
1391 sel->r.left = 0; in s3c_camif_subdev_get_selection()
1398 __func__, crop->left, crop->top, crop->width, in s3c_camif_subdev_get_selection()
1408 unsigned int left = 2 * r->left; in __camif_try_crop() local
1422 v4l_bound_align_image(&left, 0, mf->width - r->width, in __camif_try_crop()
[all …]
/linux-4.1.27/drivers/usb/atm/
Dusbatm.c480 unsigned int left = ATM_CELL_PAYLOAD - data_len; in usbatm_write_cells() local
494 if (!left) in usbatm_write_cells()
497 memset(ptr, 0, left); in usbatm_write_cells()
499 if (left >= ATM_AAL5_TRAILER) { /* trailer will go in this cell */ in usbatm_write_cells()
506 ctrl->crc = ~crc32_be(ctrl->crc, ptr, left - 4); in usbatm_write_cells()
517 ctrl->crc = crc32_be(ctrl->crc, ptr, left); in usbatm_write_cells()
745 int left = *pos; in usbatm_atm_proc_read() local
750 if (!left--) in usbatm_atm_proc_read()
753 if (!left--) in usbatm_atm_proc_read()
756 if (!left--) in usbatm_atm_proc_read()
[all …]
/linux-4.1.27/drivers/media/platform/s5p-tv/
Dmixer_video.c373 s->r.left = geo->src.x_offset; in mxr_g_selection()
380 s->r.left = 0; in mxr_g_selection()
387 s->r.left = geo->dst.x_offset; in mxr_g_selection()
394 s->r.left = 0; in mxr_g_selection()
409 if (a->left < b->left) in mxr_is_rect_inside()
413 if (a->left + a->width > b->left + b->width) in mxr_is_rect_inside()
433 s->r.width, s->r.height, s->r.left, s->r.top); in mxr_s_selection()
472 target->x_offset = s->r.left; in mxr_s_selection()
480 res.left = target->x_offset; in mxr_s_selection()
/linux-4.1.27/drivers/usb/serial/
Dusb_wwan.c187 int left, todo; in usb_wwan_write() local
198 left = count; in usb_wwan_write()
199 for (i = 0; left > 0 && i < N_OUT_URB; i++) { in usb_wwan_write()
200 todo = left; in usb_wwan_write()
249 left -= todo; in usb_wwan_write()
252 count -= left; in usb_wwan_write()
/linux-4.1.27/drivers/i2c/busses/
Di2c-qup.c307 unsigned long left; in qup_i2c_write_one() local
334 left = wait_for_completion_timeout(&qup->xfer, HZ); in qup_i2c_write_one()
335 if (!left) { in qup_i2c_write_one()
412 unsigned long left; in qup_i2c_read_one() local
439 left = wait_for_completion_timeout(&qup->xfer, HZ); in qup_i2c_read_one()
440 if (!left) { in qup_i2c_read_one()
/linux-4.1.27/lib/xz/
Dxz_dec_lzma2.c349 uint32_t left; in dict_repeat() local
354 left = min_t(size_t, dict->limit - dict->pos, *len); in dict_repeat()
355 *len -= left; in dict_repeat()
365 } while (--left > 0); in dict_repeat()
375 uint32_t *left) in dict_uncompressed() argument
379 while (*left > 0 && b->in_pos < b->in_size in dict_uncompressed()
385 if (copy_size > *left) in dict_uncompressed()
386 copy_size = *left; in dict_uncompressed()
388 *left -= copy_size; in dict_uncompressed()
/linux-4.1.27/fs/ocfs2/
Dlocalalloc.c842 int numfound = 0, bitoff, left, startoff, lastzero; in ocfs2_local_alloc_find_clear_bits() local
881 left = le32_to_cpu(alloc->id1.bitmap1.i_total); in ocfs2_local_alloc_find_clear_bits()
882 while ((bitoff = ocfs2_find_next_zero_bit(bitmap, left, startoff)) != -1) { in ocfs2_local_alloc_find_clear_bits()
883 if (bitoff == left) { in ocfs2_local_alloc_find_clear_bits()
970 int bit_off, left, count, start; in ocfs2_sync_local_to_main() local
993 left = le32_to_cpu(alloc->id1.bitmap1.i_total); in ocfs2_sync_local_to_main()
995 while ((bit_off = ocfs2_find_next_zero_bit(bitmap, left, start)) in ocfs2_sync_local_to_main()
997 if ((bit_off < left) && (bit_off == start)) { in ocfs2_sync_local_to_main()
1021 if (bit_off >= left) in ocfs2_sync_local_to_main()
/linux-4.1.27/arch/mips/kernel/
Dperf_event_mipsxx.c379 u64 left = local64_read(&hwc->period_left); in mipspmu_event_set_period() local
383 if (unlikely((left + period) & (1ULL << 63))) { in mipspmu_event_set_period()
385 left = period; in mipspmu_event_set_period()
386 local64_set(&hwc->period_left, left); in mipspmu_event_set_period()
389 } else if (unlikely((left + period) <= period)) { in mipspmu_event_set_period()
391 left += period; in mipspmu_event_set_period()
392 local64_set(&hwc->period_left, left); in mipspmu_event_set_period()
397 if (left > mipspmu.max_period) { in mipspmu_event_set_period()
398 left = mipspmu.max_period; in mipspmu_event_set_period()
399 local64_set(&hwc->period_left, left); in mipspmu_event_set_period()
[all …]
/linux-4.1.27/net/sched/
Dem_meta.c876 if (TCF_META_TYPE(hdr->left.kind) != TCF_META_TYPE(hdr->right.kind) || in em_meta_change()
877 TCF_META_TYPE(hdr->left.kind) > TCF_META_TYPE_MAX || in em_meta_change()
878 TCF_META_ID(hdr->left.kind) > TCF_META_ID_MAX || in em_meta_change()
888 memcpy(&meta->lvalue.hdr, &hdr->left, sizeof(hdr->left)); in em_meta_change()
924 memcpy(&hdr.left, &meta->lvalue.hdr, sizeof(hdr.left)); in em_meta_dump()
/linux-4.1.27/fs/minix/
Ditree_common.c152 int left; in get_block() local
189 left = (chain + depth) - partial; in get_block()
190 err = alloc_branch(inode, left, offsets+(partial-chain), partial); in get_block()
194 if (splice_branch(inode, chain, partial, left) < 0) in get_block()
/linux-4.1.27/drivers/media/platform/s5p-mfc/
Ds5p_mfc_dec.c771 u32 left, right, top, bottom; in vidioc_g_crop() local
780 left = s5p_mfc_hw_call(dev->mfc_ops, get_crop_info_h, ctx); in vidioc_g_crop()
781 right = left >> S5P_FIMV_SHARED_CROP_RIGHT_SHIFT; in vidioc_g_crop()
782 left = left & S5P_FIMV_SHARED_CROP_LEFT_MASK; in vidioc_g_crop()
786 cr->c.left = left; in vidioc_g_crop()
788 cr->c.width = ctx->img_width - left - right; in vidioc_g_crop()
791 "w=%d h=%d (r=%d b=%d fw=%d fh=%d\n", left, top, in vidioc_g_crop()
795 cr->c.left = 0; in vidioc_g_crop()
/linux-4.1.27/Documentation/device-mapper/
Ddm-raid.txt19 raid5_la RAID5 left asymmetric
23 raid5_ls RAID5 left symmetric
28 - rotating parity zero (left-to-right) with data restart
30 - rotating parity N (right-to-left) with data restart
32 - rotating parity N (right-to-left) with data continuation
77 respect to mirroring. If these options are left unspecified,
/linux-4.1.27/drivers/media/platform/
Dsh_vou.c487 dsr_h = rect->width + rect->left; in sh_vou_configure_geometry()
493 rect->left, frame_out_top, dsr_h, dsr_v); in sh_vou_configure_geometry()
498 sh_vou_reg_ab_write(vou_dev, VOUDPR, (rect->left << 16) | frame_out_top); in sh_vou_configure_geometry()
637 if (geo->output.left + best > width_max) in vou_adjust_output()
638 geo->output.left = width_max - best; in vou_adjust_output()
955 rect->width, rect->height, rect->left, rect->top); in sh_vou_s_crop()
968 if (rect->width + rect->left > VOU_MAX_IMAGE_WIDTH) in sh_vou_s_crop()
969 rect->left = VOU_MAX_IMAGE_WIDTH - rect->width; in sh_vou_s_crop()
1036 a->bounds.left = 0; in sh_vou_cropcap()
1041 a->defrect.left = 0; in sh_vou_cropcap()
[all …]
/linux-4.1.27/fs/befs/
Dbefs_fs_types.h240 fs64 left; member
248 befs_off_t left; member
/linux-4.1.27/drivers/media/usb/gspca/stv06xx/
Dstv06xx_hdcs.c76 int left, top; member
319 x = hdcs->array.left + (hdcs->array.width - width) / 2; in hdcs_set_size()
388 hdcs->array.left = 8; in hdcs_probe_1x00()
450 hdcs->array.left = 24; in hdcs_probe_1020()
/linux-4.1.27/drivers/media/platform/exynos-gsc/
Dgsc-m2m.c435 if (a->left < b->left || a->top < b->top) in is_rectangle_enclosed()
438 if (a->left + a->width > b->left + b->width) in is_rectangle_enclosed()
466 s->r.left = 0; in gsc_m2m_g_selection()
474 s->r.left = frame->crop.left; in gsc_m2m_g_selection()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Drw.c925 unsigned long left, step, window_len; in ras_stride_increase_window() local
937 left = stride_len % ras->ras_stride_length; in ras_stride_increase_window()
938 window_len = ras->ras_window_len - left; in ras_stride_increase_window()
940 if (left < ras->ras_stride_pages) in ras_stride_increase_window()
941 left += inc_len; in ras_stride_increase_window()
943 left = ras->ras_stride_pages + inc_len; in ras_stride_increase_window()
947 step = left / ras->ras_stride_pages; in ras_stride_increase_window()
948 left %= ras->ras_stride_pages; in ras_stride_increase_window()
950 window_len += step * ras->ras_stride_length + left; in ras_stride_increase_window()
/linux-4.1.27/drivers/media/pci/ivtv/
Divtvfb.c263 if (ivtv_window->left + ivtv_window->width > IVTV_OSD_MAX_WIDTH) { in ivtvfb_set_display_window()
265 ivtv_window->left, ivtv_window->width); in ivtvfb_set_display_window()
266 ivtv_window->left = IVTV_OSD_MAX_WIDTH - ivtv_window->width; in ivtvfb_set_display_window()
270 write_reg((ivtv_window->top << 16) | ivtv_window->left, 0x02a04); in ivtvfb_set_display_window()
273 …write_reg(((ivtv_window->top+ivtv_window->height) << 16) | (ivtv_window->left+ivtv_window->width),… in ivtvfb_set_display_window()
278 itv->yuv_info.osd_x_offset = ivtv_window->left; in ivtvfb_set_display_window()
599 ivtv_window.left = var->left_margin - 1; in ivtvfb_set_var()
1011 start_window.left = osd_left >= 0 ? in ivtvfb_init_vidmode()
1049 oi->ivtvfb_defined.left_margin = start_window.left + 1; in ivtvfb_init_vidmode()

1234