Searched refs:left (Results 1 - 25 of 236) sorted by relevance

12345678910

/drivers/misc/cb710/
H A Dsgbuf2.c30 size_t len, left = 4; local
35 len = min(miter->length - miter->consumed, left);
38 left -= len;
39 if (!left)
44 memset(addr, 0, left);
106 size_t len, left = 4; local
110 len = min(miter->length - miter->consumed, left);
113 left -= len;
114 if (!left)
/drivers/media/video/
H A Dbtcx-risc.c95 if (win->left < 0) {
96 /* left */
97 clips[n].c.left = 0;
99 clips[n].c.width = -win->left;
103 if (win->left + win->width > swidth) {
105 clips[n].c.left = swidth - win->left;
107 clips[n].c.width = win->width - clips[n].c.left;
113 clips[n].c.left = 0;
121 clips[n].c.left
[all...]
/drivers/md/persistent-data/
H A Ddm-btree-remove.c25 * Each node may have a left or right sibling. When decending the spine,
32 * [B] No left sibling
36 * ==> rebalance(left sibling, node)
38 * [D] Both siblings, total_entries(left, node, right) <= DEL_THRESHOLD
39 * ==> delete node adding it's contents to left and right
41 * [E] Both siblings, total_entries(left, node, right) > DEL_THRESHOLD
42 * ==> rebalance(left, node, right)
82 static void node_copy(struct node *left, struct node *right, int shift) argument
84 uint32_t nr_left = le32_to_cpu(left->header.nr_entries);
85 uint32_t value_size = le32_to_cpu(left
180 shift(struct node *left, struct node *right, int count) argument
209 struct node *left = l->n; local
243 struct child left, right; local
273 delete_center_node(struct dm_btree_info *info, struct node *parent, struct child *l, struct child *c, struct child *r, struct node *left, struct node *center, struct node *right, uint32_t nr_left, uint32_t nr_center, uint32_t nr_right) argument
304 redistribute3(struct dm_btree_info *info, struct node *parent, struct child *l, struct child *c, struct child *r, struct node *left, struct node *center, struct node *right, uint32_t nr_left, uint32_t nr_center, uint32_t nr_right) argument
349 struct node *left = l->n; local
375 struct child left, center, right; local
[all...]
/drivers/net/wireless/hostap/
H A Dhostap_info.c13 int left)
17 if (left < sizeof(struct hfa384x_comm_tallies)) {
19 "info frame\n", local->dev->name, left);
53 int left)
57 if (left < sizeof(struct hfa384x_comm_tallies32)) {
59 "info frame\n", local->dev->name, left);
93 int left)
96 prism2_info_commtallies32(local, buf, left);
98 prism2_info_commtallies16(local, buf, left);
128 int left)
12 prism2_info_commtallies16(local_info_t *local, unsigned char *buf, int left) argument
52 prism2_info_commtallies32(local_info_t *local, unsigned char *buf, int left) argument
92 prism2_info_commtallies(local_info_t *local, unsigned char *buf, int left) argument
127 prism2_info_linkstatus(local_info_t *local, unsigned char *buf, int left) argument
251 prism2_info_scanresults(local_info_t *local, unsigned char *buf, int left) argument
302 prism2_info_hostscanresults(local_info_t *local, unsigned char *buf, int left) argument
369 int left; local
[all...]
/drivers/video/
H A Dsyscopyarea.c33 int left, right; local
81 left = -shift & (bits - 1);
92 *dst = comp(*src << left, *dst, first);
97 *dst = comp(d0 << left | d1 >> right, *dst,
118 *dst = comp(d0 << left | *dst >> right, *dst, first);
129 *dst++ = d0 << left | d1 >> right;
132 *dst++ = d0 << left | d1 >> right;
135 *dst++ = d0 << left | d1 >> right;
138 *dst++ = d0 << left | d1 >> right;
144 *dst++ = d0 << left | d
231 int const left = -shift & (bits-1); local
[all...]
H A Dsysfillrect.c82 unsigned long pat, int left, int right, unsigned n, int bits)
103 pat = pat << left | pat >> right;
111 pat = pat << left | pat >> right;
113 pat = pat << left | pat >> right;
115 pat = pat << left | pat >> right;
117 pat = pat << left | pat >> right;
122 pat = pat << left | pat >> right;
192 unsigned long pat, int left, int right, unsigned n,
215 pat = pat << left | pat >> right;
223 pat = pat << left | pa
81 bitfill_unaligned(struct fb_info *p, unsigned long *dst, int dst_idx, unsigned long pat, int left, int right, unsigned n, int bits) argument
191 bitfill_unaligned_rev(struct fb_info *p, unsigned long *dst, int dst_idx, unsigned long pat, int left, int right, unsigned n, int bits) argument
250 int dst_idx, left; local
[all...]
H A Dcfbcopyarea.c52 int left, right; local
102 left = -shift & (bits - 1);
116 d0 <<= left; local
121 d0 = d0<<left | d1>>right;
146 d0 = d0<<left | d1>>right;
159 FB_WRITEL(d0 << left | d1 >> right, dst++);
162 FB_WRITEL(d0 << left | d1 >> right, dst++);
165 FB_WRITEL(d0 << left | d1 >> right, dst++);
168 FB_WRITEL(d0 << left | d1 >> right, dst++);
175 d0 = d0 << left | d
185 d0 <<= left; local
273 int const left = -shift & (bits-1); local
284 d0 <<= left; local
310 d0 <<= left; local
[all...]
H A Dcfbfillrect.c93 unsigned long pat, int left, int right, unsigned n, int bits)
114 pat = pat << left | pat >> right;
122 pat = pat << left | pat >> right;
124 pat = pat << left | pat >> right;
126 pat = pat << left | pat >> right;
128 pat = pat << left | pat >> right;
133 pat = pat << left | pat >> right;
218 int dst_idx, unsigned long pat, int left, int right,
243 pat = pat << left | pat >> right;
252 pat = pat << left | pa
92 bitfill_unaligned(struct fb_info *p, unsigned long __iomem *dst, int dst_idx, unsigned long pat, int left, int right, unsigned n, int bits) argument
217 bitfill_unaligned_rev(struct fb_info *p, unsigned long __iomem *dst, int dst_idx, unsigned long pat, int left, int right, unsigned n, int bits) argument
285 int dst_idx, left; local
[all...]
H A Darcfb.c248 unsigned int left, unsigned int right, unsigned int distance)
256 xindex = left >> 6;
263 src = (unsigned char __force *) par->info->screen_base + (left/8) +
265 ks108_set_xaddr(par, chipindex, left);
269 while (left <= right) {
281 left++;
295 * lcd chips. update_page uses the upper/left values to decide which
300 unsigned int bottom, unsigned int left, unsigned int right)
310 arcfb_lcd_update_page(par, upper, left, right, 8);
321 static void arcfb_lcd_update_horiz(struct arcfb_par *par, unsigned int left, argument
247 arcfb_lcd_update_page(struct arcfb_par *par, unsigned int upper, unsigned int left, unsigned int right, unsigned int distance) argument
299 arcfb_lcd_update_vert(struct arcfb_par *par, unsigned int top, unsigned int bottom, unsigned int left, unsigned int right) argument
346 unsigned int left, right, distance, y; local
[all...]
/drivers/hid/
H A Dhid-zpff.c44 int left, right; local
52 left = effect->u.rumble.strong_magnitude;
54 dbg_hid("called with 0x%04x 0x%04x\n", left, right);
56 left = left * 0x7f / 0xffff;
59 zpff->report->field[2]->value[0] = left;
61 dbg_hid("running with 0x%02x 0x%02x\n", left, right);
H A Dhid-axff.c51 int left, right; local
54 left = effect->u.rumble.strong_magnitude;
57 dbg_hid("called with 0x%04x 0x%04x", left, right);
59 left = left * 0xff / 0xffff;
65 field_count % 2 ? right : left;
70 dbg_hid("running with 0x%02x 0x%02x", left, right);
H A Dhid-gaff.c49 int left, right; local
51 left = effect->u.rumble.strong_magnitude;
54 dbg_hid("called with 0x%04x 0x%04x", left, right);
56 left = left * 0xfe / 0xffff;
63 gaff->report->field[0]->value[4] = left;
65 dbg_hid("running with 0x%02x 0x%02x", left, right);
H A Dhid-lgff.c77 unsigned int left, right; local
97 left = effect->u.rumble.weak_magnitude;
99 left = left * 0xff / 0xffff;
100 CLAMP(left);
104 report->field[0]->value[2] = left;
106 dbg_hid("(left, right)=(%04x, %04x)\n", left, right);
H A Dhid-pl.c63 int left, right; local
65 left = effect->u.rumble.strong_magnitude;
67 debug("called with 0x%04x 0x%04x", left, right);
69 left = left * 0x7f / 0xffff;
72 *plff->strong = left;
74 debug("running with 0x%02x 0x%02x", left, right);
H A Dhid-sjoy.c48 u32 left, right; local
50 left = effect->u.rumble.strong_magnitude;
52 dev_dbg(&dev->dev, "called with 0x%08x 0x%08x\n", left, right);
54 left = left * 0xff / 0xffff;
58 sjoyff->report->field[0]->value[2] = left;
59 dev_dbg(&dev->dev, "running with 0x%02x 0x%02x\n", left, right);
H A Dhid-holtekff.c74 * bit 7: left (strong) motor enabled
114 int left, right; local
119 left = effect->u.rumble.strong_magnitude;
121 dbg_hid("called with 0x%04x 0x%04x\n", left, right);
123 if (!left && !right) {
128 if (left)
134 buf[6] = min(0xf, (left >> 12) + (right >> 12));
/drivers/firmware/
H A Dedd.c54 #define left (PAGE_SIZE - (p - buf) - 1) macro
144 p += scnprintf(p, left, "%c", info->params.host_bus_type[i]);
146 p += scnprintf(p, left, " ");
151 p += scnprintf(p, left, "\tbase_address: %x\n",
156 p += scnprintf(p, left,
164 p += scnprintf(p, left,
169 p += scnprintf(p, left, "\tunknown: %llx\n",
190 p += scnprintf(p, left, "%c", info->params.interface_type[i]);
192 p += scnprintf(p, left, " ");
196 p += scnprintf(p, left, "\tdevic
[all...]
/drivers/media/video/sn9c102/
H A Dsn9c102_tas5110d.c45 u8 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 69,
83 .left = 0,
89 .left = 0,
H A Dsn9c102_tas5110c1b.c63 u8 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 69,
115 .left = 0,
121 .left = 0,
H A Dsn9c102_tas5130d1b.c63 u8 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 104,
126 .left = 0,
132 .left = 0,
/drivers/staging/rtl8712/
H A Dieee80211.c293 int left, count; local
305 left = wpa_ie_len - 8;
307 if (left >= WPA_SELECTOR_LEN) {
310 left -= WPA_SELECTOR_LEN;
311 } else if (left > 0)
314 if (left >= 2) {
317 left -= 2;
318 if (count == 0 || left < count * WPA_SELECTOR_LEN)
323 left -= WPA_SELECTOR_LEN;
325 } else if (left
334 int left, count; local
[all...]
/drivers/staging/zcache/
H A Dtmem.h103 static inline int tmem_oid_compare(struct tmem_oid *left, argument
108 if (left->oid[2] == right->oid[2]) {
109 if (left->oid[1] == right->oid[1]) {
110 if (left->oid[0] == right->oid[0])
112 else if (left->oid[0] < right->oid[0])
116 } else if (left->oid[1] < right->oid[1])
120 } else if (left->oid[2] < right->oid[2])
/drivers/media/video/omap/
H A Domap_voutlib.c52 crop->left = ((pix->width - crop->width) >> 1) & ~1;
74 if (try_win.left < 0) {
75 try_win.width += try_win.left;
76 try_win.left = 0;
86 if (try_win.left + try_win.width > fbuf->fmt.width)
87 try_win.width = fbuf->fmt.width - try_win.left;
176 if (try_crop.left < 0) {
177 try_crop.width += try_crop.left;
178 try_crop.left = 0;
188 if (try_crop.left
[all...]
/drivers/s390/char/
H A Draw3270.h241 struct list_head *p, *left; local
243 /* Find out the left neighbour in free memory list. */
244 left = free_list;
248 left = p;
250 /* Try to merge with right neighbour = next element from left. */
251 if (left->next != free_list) {
252 tmp = list_entry(left->next, struct string, list);
258 /* Try to merge with left neighbour. */
259 if (left != free_list) {
260 tmp = list_entry(left, struc
[all...]
/drivers/staging/ramster/
H A Dtmem.h127 static inline int tmem_oid_compare(struct tmem_oid *left, argument
132 if (left->oid[2] == right->oid[2]) {
133 if (left->oid[1] == right->oid[1]) {
134 if (left->oid[0] == right->oid[0])
136 else if (left->oid[0] < right->oid[0])
140 } else if (left->oid[1] < right->oid[1])
144 } else if (left->oid[2] < right->oid[2])

Completed in 539 milliseconds

12345678910