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

1234567891011>>

/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/infiniband/hw/usnic/
H A Dusnic_debugfs.c59 int left; local
65 left = count;
71 n = scnprintf(ptr, left,
75 UPDATE_PTR_LEFT(n, ptr, left);
77 n = scnprintf(ptr, left, "Port_Num:%hu\n",
79 UPDATE_PTR_LEFT(n, ptr, left);
81 n = usnic_transport_sock_to_str(ptr, left,
83 UPDATE_PTR_LEFT(n, ptr, left);
84 n = scnprintf(ptr, left, "\n");
85 UPDATE_PTR_LEFT(n, ptr, left);
[all...]
H A Dusnic_ib_sysfs.c72 unsigned left; local
80 left = PAGE_SIZE;
94 n = scnprintf(ptr, left,
103 UPDATE_PTR_LEFT(n, ptr, left);
110 n = scnprintf(ptr, left, " %d %s%s",
115 UPDATE_PTR_LEFT(n, ptr, left);
117 n = scnprintf(ptr, left, "\n");
118 UPDATE_PTR_LEFT(n, ptr, left);
120 n = scnprintf(ptr, left, "%s: no VFs\n",
122 UPDATE_PTR_LEFT(n, ptr, left);
233 int left; local
[all...]
/drivers/media/common/
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 btree_node *left, struct btree_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
173 shift(struct btree_node *left, struct btree_node *right, int count) argument
202 struct btree_node *left = l->n; local
236 struct child left, right; local
266 delete_center_node(struct dm_btree_info *info, struct btree_node *parent, struct child *l, struct child *c, struct child *r, struct btree_node *left, struct btree_node *center, struct btree_node *right, uint32_t nr_left, uint32_t nr_center, uint32_t nr_right) argument
297 redistribute3(struct dm_btree_info *info, struct btree_node *parent, struct child *l, struct child *c, struct child *r, struct btree_node *left, struct btree_node *center, struct btree_node *right, uint32_t nr_left, uint32_t nr_center, uint32_t nr_right) argument
342 struct btree_node *left = l->n; local
368 struct child left, center, right; local
[all...]
/drivers/net/wireless/hostap/
H A Dhostap_info.c14 int left)
18 if (left < sizeof(struct hfa384x_comm_tallies)) {
20 "info frame\n", local->dev->name, left);
54 int left)
58 if (left < sizeof(struct hfa384x_comm_tallies32)) {
60 "info frame\n", local->dev->name, left);
94 int left)
97 prism2_info_commtallies32(local, buf, left);
99 prism2_info_commtallies16(local, buf, left);
129 int left)
13 prism2_info_commtallies16(local_info_t *local, unsigned char *buf, int left) argument
53 prism2_info_commtallies32(local_info_t *local, unsigned char *buf, int left) argument
93 prism2_info_commtallies(local_info_t *local, unsigned char *buf, int left) argument
128 prism2_info_linkstatus(local_info_t *local, unsigned char *buf, int left) argument
252 prism2_info_scanresults(local_info_t *local, unsigned char *buf, int left) argument
303 prism2_info_hostscanresults(local_info_t *local, unsigned char *buf, int left) argument
370 int left; local
[all...]
/drivers/video/fbdev/core/
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.c110 int const left = shift & (bits - 1); local
121 d0 <<= left; local
129 d0 = d0 >> right | d1 << left;
146 d0 <<= left; local
153 d0 = d0 >> right | d1 << left;
166 FB_WRITEL(d0 >> right | d1 << left, dst++);
169 FB_WRITEL(d0 >> right | d1 << left, dst++);
172 FB_WRITEL(d0 >> right | d1 << left, dst++);
175 FB_WRITEL(d0 >> right | d1 << left, dst++);
182 d0 = d0 >> right | d1 << left;
283 int const left = shift & (bits-1); local
296 d0 <<= left; local
366 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...]
/drivers/usb/core/
H A Dport.c191 static int link_peers(struct usb_port *left, struct usb_port *right) argument
196 if (left->peer == right && right->peer == left)
199 if (left->peer || right->peer) {
200 struct usb_port *lpeer = left->peer;
204 if (left->location && left->location == right->location)
210 dev_name(&left->dev), dev_name(&right->dev), method,
211 dev_name(&left->dev),
218 rc = sysfs_create_link(&left
260 link_peers_report(struct usb_port *left, struct usb_port *right) argument
275 unlink_peers(struct usb_port *left, struct usb_port *right) argument
[all...]
/drivers/hid/
H A Dhid-zpff.c42 int left, right; local
50 left = effect->u.rumble.strong_magnitude;
52 dbg_hid("called with 0x%04x 0x%04x\n", left, right);
54 left = left * 0x7f / 0xffff;
57 zpff->report->field[2]->value[0] = left;
59 dbg_hid("running with 0x%02x 0x%02x\n", left, right);
H A Dhid-axff.c49 int left, right; local
52 left = effect->u.rumble.strong_magnitude;
55 dbg_hid("called with 0x%04x 0x%04x", left, right);
57 left = left * 0xff / 0xffff;
63 field_count % 2 ? right : left;
68 dbg_hid("running with 0x%02x 0x%02x", left, right);
H A Dhid-gaff.c47 int left, right; local
49 left = effect->u.rumble.strong_magnitude;
52 dbg_hid("called with 0x%04x 0x%04x", left, right);
54 left = left * 0xfe / 0xffff;
61 gaff->report->field[0]->value[4] = left;
63 dbg_hid("running with 0x%02x 0x%02x", left, right);
H A Dhid-lgff.c75 unsigned int left, right; local
95 left = effect->u.rumble.weak_magnitude;
97 left = left * 0xff / 0xffff;
98 CLAMP(left);
102 report->field[0]->value[2] = left;
104 dbg_hid("(left, right)=(%04x, %04x)\n", left, right);
H A Dhid-pl.c64 int left, right; local
66 left = effect->u.rumble.strong_magnitude;
68 debug("called with 0x%04x 0x%04x", left, right);
70 left = left * plff->maxval / 0xffff;
73 *plff->strong = left;
75 debug("running with 0x%02x 0x%02x", left, right);
H A Dhid-sjoy.c46 u32 left, right; local
48 left = effect->u.rumble.strong_magnitude;
50 dev_dbg(&dev->dev, "called with 0x%08x 0x%08x\n", left, right);
52 left = left * 0xff / 0xffff;
56 sjoyff->report->field[0]->value[2] = left;
57 dev_dbg(&dev->dev, "running with 0x%02x 0x%02x\n", left, right);
H A Dhid-holtekff.c72 * bit 7: left (strong) motor enabled
111 int left, right; local
116 left = effect->u.rumble.strong_magnitude;
118 dbg_hid("called with 0x%04x 0x%04x\n", left, right);
120 if (!left && !right) {
125 if (left)
131 buf[6] = min(0xf, (left >> 12) + (right >> 12));
/drivers/media/platform/soc_camera/
H A Dsoc_scale_crop.c35 return r1->left > r2->left || r1->top > r2->top ||
36 r1->left + r1->width < r2->left + r2->width ||
75 if (rect->left > subrect->left)
76 subrect->left = rect->left;
77 else if (rect->left + rect->width >
78 subrect->left
[all...]
/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/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/spi/
H A Dspi-bcm53xx.c177 size_t left; local
181 left = t->len;
182 while (left) {
183 size_t to_write = min_t(size_t, 16, left);
184 bool cont = left - to_write > 0;
187 left -= to_write;
194 left = t->len;
195 while (left) {
197 left);
198 bool cont = left
[all...]
/drivers/media/platform/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/staging/rtl8723au/core/
H A Drtw_ieee80211.c450 int left, count; local
464 left = wpa_ie_len - 8;
467 if (left >= WPA_SELECTOR_LEN) {
472 left -= WPA_SELECTOR_LEN;
473 } else if (left > 0) {
476 __func__, left));
482 if (left >= 2) {
486 left -= 2;
488 if (count == 0 || left < count * WPA_SELECTOR_LEN) {
491 "count %u left
527 int left, count; local
[all...]
/drivers/media/platform/vivid/
H A Dvivid-vid-common.c323 if (r->left < boundary->left)
324 r->left = boundary->left;
327 if (r->left + r->width > boundary->width)
328 r->left = boundary->width - r->width;
346 r.left = max(a->left, b->left);
348 right = min(a->left
[all...]

Completed in 384 milliseconds

1234567891011>>