/drivers/media/pci/bt8xx/ |
D | btcx-risc.c | 91 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 …]
|
/drivers/net/wireless/hostap/ |
D | hostap_info.c | 14 int left) in prism2_info_commtallies16() argument 18 if (left < sizeof(struct hfa384x_comm_tallies)) { in prism2_info_commtallies16() 20 "info frame\n", local->dev->name, left); in prism2_info_commtallies16() 54 int left) in prism2_info_commtallies32() argument 58 if (left < sizeof(struct hfa384x_comm_tallies32)) { in prism2_info_commtallies32() 60 "info frame\n", local->dev->name, left); in prism2_info_commtallies32() 94 int left) in prism2_info_commtallies() argument 97 prism2_info_commtallies32(local, buf, left); in prism2_info_commtallies() 99 prism2_info_commtallies16(local, buf, left); in prism2_info_commtallies() 129 int left) in prism2_info_linkstatus() argument [all …]
|
/drivers/usb/core/ |
D | port.c | 197 static int link_peers(struct usb_port *left, struct usb_port *right) in link_peers() argument 202 if (left->peer == right && right->peer == left) in link_peers() 205 if (left->peer || right->peer) { in link_peers() 206 struct usb_port *lpeer = left->peer; in link_peers() 210 if (left->location && left->location == right->location) in link_peers() 216 dev_name(&left->dev), dev_name(&right->dev), method, in link_peers() 217 dev_name(&left->dev), in link_peers() 224 rc = sysfs_create_link(&left->dev.kobj, &right->dev.kobj, "peer"); in link_peers() 227 rc = sysfs_create_link(&right->dev.kobj, &left->dev.kobj, "peer"); in link_peers() 229 sysfs_remove_link(&left->dev.kobj, "peer"); in link_peers() [all …]
|
/drivers/md/persistent-data/ |
D | dm-btree-remove.c | 82 static void node_copy(struct btree_node *left, struct btree_node *right, int shift) in node_copy() argument 84 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in node_copy() 85 uint32_t value_size = le32_to_cpu(left->header.value_size); in node_copy() 90 BUG_ON(nr_left + shift > le32_to_cpu(left->header.max_entries)); in node_copy() 91 memcpy(key_ptr(left, nr_left), in node_copy() 94 memcpy(value_ptr(left, nr_left), in node_copy() 100 key_ptr(left, nr_left - shift), in node_copy() 103 value_ptr(left, nr_left - shift), in node_copy() 173 static void shift(struct btree_node *left, struct btree_node *right, int count) in shift() argument 175 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in shift() [all …]
|
/drivers/media/platform/soc_camera/ |
D | soc_scale_crop.c | 35 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 …]
|
/drivers/video/fbdev/core/ |
D | syscopyarea.c | 33 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 …]
|
D | sysfillrect.c | 82 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 …]
|
D | cfbfillrect.c | 93 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 …]
|
D | cfbcopyarea.c | 110 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 …]
|
/drivers/firmware/ |
D | edd.c | 54 #define left (PAGE_SIZE - (p - buf) - 1) macro 144 p += scnprintf(p, left, "%c", info->params.host_bus_type[i]); in edd_show_host_bus() 146 p += scnprintf(p, left, " "); in edd_show_host_bus() 151 p += scnprintf(p, left, "\tbase_address: %x\n", in edd_show_host_bus() 156 p += scnprintf(p, left, in edd_show_host_bus() 164 p += scnprintf(p, left, in edd_show_host_bus() 169 p += scnprintf(p, left, "\tunknown: %llx\n", in edd_show_host_bus() 190 p += scnprintf(p, left, "%c", info->params.interface_type[i]); in edd_show_interface() 192 p += scnprintf(p, left, " "); in edd_show_interface() 196 p += scnprintf(p, left, "\tdevice: %u lun: %u\n", in edd_show_interface() [all …]
|
/drivers/staging/rtl8712/ |
D | ieee80211.c | 289 int left, count; in r8712_parse_wpa_ie() local 301 left = wpa_ie_len - 8; in r8712_parse_wpa_ie() 303 if (left >= WPA_SELECTOR_LEN) { in r8712_parse_wpa_ie() 306 left -= WPA_SELECTOR_LEN; in r8712_parse_wpa_ie() 307 } else if (left > 0) { in r8712_parse_wpa_ie() 311 if (left >= 2) { in r8712_parse_wpa_ie() 314 left -= 2; in r8712_parse_wpa_ie() 315 if (count == 0 || left < count * WPA_SELECTOR_LEN) in r8712_parse_wpa_ie() 320 left -= WPA_SELECTOR_LEN; in r8712_parse_wpa_ie() 322 } else if (left == 1) { in r8712_parse_wpa_ie() [all …]
|
/drivers/infiniband/hw/usnic/ |
D | usnic_ib_sysfs.c | 87 unsigned left; in usnic_ib_show_config() local 95 left = PAGE_SIZE; in usnic_ib_show_config() 109 n = scnprintf(ptr, left, in usnic_ib_show_config() 118 UPDATE_PTR_LEFT(n, ptr, left); in usnic_ib_show_config() 125 n = scnprintf(ptr, left, " %d %s%s", in usnic_ib_show_config() 130 UPDATE_PTR_LEFT(n, ptr, left); in usnic_ib_show_config() 132 n = scnprintf(ptr, left, "\n"); in usnic_ib_show_config() 133 UPDATE_PTR_LEFT(n, ptr, left); in usnic_ib_show_config() 135 n = scnprintf(ptr, left, "%s: no VFs\n", in usnic_ib_show_config() 137 UPDATE_PTR_LEFT(n, ptr, left); in usnic_ib_show_config() [all …]
|
D | usnic_debugfs.c | 74 int left; in flowinfo_read() local 80 left = count; in flowinfo_read() 86 n = scnprintf(ptr, left, in flowinfo_read() 90 UPDATE_PTR_LEFT(n, ptr, left); in flowinfo_read() 92 n = scnprintf(ptr, left, "Port_Num:%hu\n", in flowinfo_read() 94 UPDATE_PTR_LEFT(n, ptr, left); in flowinfo_read() 96 n = usnic_transport_sock_to_str(ptr, left, in flowinfo_read() 98 UPDATE_PTR_LEFT(n, ptr, left); in flowinfo_read() 99 n = scnprintf(ptr, left, "\n"); in flowinfo_read() 100 UPDATE_PTR_LEFT(n, ptr, left); in flowinfo_read()
|
/drivers/misc/cb710/ |
D | sgbuf2.c | 30 size_t len, left = 4; in sg_dwiter_read_buffer() local 35 len = min(miter->length - miter->consumed, left); in sg_dwiter_read_buffer() 38 left -= len; in sg_dwiter_read_buffer() 39 if (!left) in sg_dwiter_read_buffer() 44 memset(addr, 0, left); in sg_dwiter_read_buffer() 106 size_t len, left = 4; in sg_dwiter_write_slow() local 110 len = min(miter->length - miter->consumed, left); in sg_dwiter_write_slow() 113 left -= len; in sg_dwiter_write_slow() 114 if (!left) in sg_dwiter_write_slow()
|
/drivers/staging/rtl8723au/core/ |
D | rtw_ieee80211.c | 451 int left, count; in rtw_parse_wpa_ie23a() local 465 left = wpa_ie_len - 8; in rtw_parse_wpa_ie23a() 468 if (left >= WPA_SELECTOR_LEN) { in rtw_parse_wpa_ie23a() 473 left -= WPA_SELECTOR_LEN; in rtw_parse_wpa_ie23a() 474 } else if (left > 0) { in rtw_parse_wpa_ie23a() 477 __func__, left); in rtw_parse_wpa_ie23a() 483 if (left >= 2) { in rtw_parse_wpa_ie23a() 487 left -= 2; in rtw_parse_wpa_ie23a() 489 if (count == 0 || left < count * WPA_SELECTOR_LEN) { in rtw_parse_wpa_ie23a() 492 __func__, count, left); in rtw_parse_wpa_ie23a() [all …]
|
/drivers/media/platform/vivid/ |
D | vivid-vid-common.c | 650 if (r->left < boundary->left) in rect_map_inside() 651 r->left = boundary->left; in rect_map_inside() 654 if (r->left + r->width > boundary->width) in rect_map_inside() 655 r->left = boundary->width - r->width; in rect_map_inside() 673 r.left = max(a->left, b->left); in rect_intersect() 675 right = min(a->left + a->width, b->left + b->width); in rect_intersect() 677 r.width = max(0, right - r.left); in rect_intersect() 689 r->left = r->top = r->width = r->height = 0; in rect_scale() 692 r->left = (((r->left - from->left) * to->width) / from->width) & ~1; in rect_scale() 705 if (r1->left >= r2->left + r2->width || in rect_overlap() [all …]
|
D | vivid-kthread-cap.c | 65 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 …]
|
/drivers/media/platform/omap/ |
D | omap_voutlib.c | 52 crop->left = ((pix->width - crop->width) >> 1) & ~1; in omap_vout_default_crop() 74 if (try_win.left < 0) { in omap_vout_try_window() 75 try_win.width += try_win.left; in omap_vout_try_window() 76 try_win.left = 0; in omap_vout_try_window() 86 if (try_win.left + try_win.width > fbuf->fmt.width) in omap_vout_try_window() 87 try_win.width = fbuf->fmt.width - try_win.left; in omap_vout_try_window() 176 if (try_crop.left < 0) { in omap_vout_new_crop() 177 try_crop.width += try_crop.left; in omap_vout_new_crop() 178 try_crop.left = 0; in omap_vout_new_crop() 188 if (try_crop.left + try_crop.width > pix->width) in omap_vout_new_crop() [all …]
|
/drivers/spi/ |
D | spi-bcm53xx.c | 177 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 …]
|
/drivers/video/fbdev/ |
D | arcfb.c | 248 unsigned int left, unsigned int right, unsigned int distance) in arcfb_lcd_update_page() argument 256 xindex = left >> 6; in arcfb_lcd_update_page() 263 src = (unsigned char __force *) par->info->screen_base + (left/8) + in arcfb_lcd_update_page() 265 ks108_set_xaddr(par, chipindex, left); in arcfb_lcd_update_page() 269 while (left <= right) { in arcfb_lcd_update_page() 281 left++; in arcfb_lcd_update_page() 300 unsigned int bottom, unsigned int left, unsigned int right) in arcfb_lcd_update_vert() argument 310 arcfb_lcd_update_page(par, upper, left, right, 8); in arcfb_lcd_update_vert() 321 static void arcfb_lcd_update_horiz(struct arcfb_par *par, unsigned int left, in arcfb_lcd_update_horiz() argument 332 arcfb_lcd_update_vert(par, upper, lower, left, right); in arcfb_lcd_update_horiz() [all …]
|
/drivers/hid/ |
D | hid-zpff.c | 42 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()
|
D | hid-sjoy.c | 46 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()
|
D | hid-lgff.c | 75 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()
|
/drivers/s390/char/ |
D | raw3270.h | 252 struct list_head *p, *left; in free_string() local 255 left = free_list; in free_string() 259 left = p; in free_string() 262 if (left->next != free_list) { in free_string() 263 tmp = list_entry(left->next, struct string, list); in free_string() 270 if (left != free_list) { in free_string() 271 tmp = list_entry(left, struct string, list); in free_string() 277 __list_add(&cs->list, left, left->next); in free_string()
|
/drivers/staging/rtl8188eu/core/ |
D | rtw_ieee80211.c | 523 int left, count; in rtw_parse_wpa_ie() local 540 left = wpa_ie_len - 8; in rtw_parse_wpa_ie() 544 if (left >= WPA_SELECTOR_LEN) { in rtw_parse_wpa_ie() 547 left -= WPA_SELECTOR_LEN; in rtw_parse_wpa_ie() 548 } else if (left > 0) { in rtw_parse_wpa_ie() 549 …TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("%s: ie length mismatch, %u too much", __func__, left)); in rtw_parse_wpa_ie() 554 if (left >= 2) { in rtw_parse_wpa_ie() 557 left -= 2; in rtw_parse_wpa_ie() 559 if (count == 0 || left < count * WPA_SELECTOR_LEN) { in rtw_parse_wpa_ie() 561 "count %u left %u", __func__, count, left)); in rtw_parse_wpa_ie() [all …]
|