/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/intersil/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/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/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/usb/core/ |
D | port.c | 272 static int link_peers(struct usb_port *left, struct usb_port *right) in link_peers() argument 277 if (left->peer == right && right->peer == left) in link_peers() 280 if (left->peer || right->peer) { in link_peers() 281 struct usb_port *lpeer = left->peer; in link_peers() 285 if (left->location && left->location == right->location) in link_peers() 291 dev_name(&left->dev), dev_name(&right->dev), method, in link_peers() 292 dev_name(&left->dev), in link_peers() 299 rc = sysfs_create_link(&left->dev.kobj, &right->dev.kobj, "peer"); in link_peers() 302 rc = sysfs_create_link(&right->dev.kobj, &left->dev.kobj, "peer"); in link_peers() 304 sysfs_remove_link(&left->dev.kobj, "peer"); in link_peers() [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() 73 if (rect->left > subrect->left) in update_subrect() 74 subrect->left = rect->left; in update_subrect() 75 else if (rect->left + rect->width > in update_subrect() 76 subrect->left + subrect->width) in update_subrect() 77 subrect->left = rect->left + rect->width - in update_subrect() 126 rect->width, rect->height, rect->left, rect->top); in soc_camera_client_s_selection() 134 cam_rect->left, cam_rect->top, in soc_camera_client_s_selection() 135 rect->width, rect->height, rect->left, rect->top); in soc_camera_client_s_selection() [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/infiniband/hw/usnic/ |
D | usnic_ib_sysfs.c | 72 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 …]
|
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/staging/rtl8712/ |
D | ieee80211.c | 284 int left, count; in r8712_parse_wpa_ie() local 296 left = wpa_ie_len - 8; in r8712_parse_wpa_ie() 298 if (left >= WPA_SELECTOR_LEN) { in r8712_parse_wpa_ie() 301 left -= WPA_SELECTOR_LEN; in r8712_parse_wpa_ie() 302 } else if (left > 0) { in r8712_parse_wpa_ie() 306 if (left >= 2) { in r8712_parse_wpa_ie() 309 left -= 2; in r8712_parse_wpa_ie() 310 if (count == 0 || left < count * WPA_SELECTOR_LEN) in r8712_parse_wpa_ie() 315 left -= WPA_SELECTOR_LEN; in r8712_parse_wpa_ie() 317 } else if (left == 1) { in r8712_parse_wpa_ie() [all …]
|
/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/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/staging/rtl8188eu/core/ |
D | rtw_ieee80211.c | 374 int left, count; in rtw_parse_wpa_ie() local 391 left = wpa_ie_len - 8; in rtw_parse_wpa_ie() 395 if (left >= WPA_SELECTOR_LEN) { in rtw_parse_wpa_ie() 398 left -= WPA_SELECTOR_LEN; in rtw_parse_wpa_ie() 399 } else if (left > 0) { in rtw_parse_wpa_ie() 400 …TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("%s: ie length mismatch, %u too much", __func__, left)); in rtw_parse_wpa_ie() 405 if (left >= 2) { in rtw_parse_wpa_ie() 408 left -= 2; in rtw_parse_wpa_ie() 410 if (count == 0 || left < count * WPA_SELECTOR_LEN) { in rtw_parse_wpa_ie() 412 "count %u left %u", __func__, count, left)); in rtw_parse_wpa_ie() [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-axff.c | 49 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()
|
D | hid-gaff.c | 47 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()
|
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 | 244 struct list_head *p, *left; in free_string() local 247 left = free_list; in free_string() 251 left = p; in free_string() 254 if (left->next != free_list) { in free_string() 255 tmp = list_entry(left->next, struct string, list); in free_string() 262 if (left != free_list) { in free_string() 263 tmp = list_entry(left, struct string, list); in free_string() 269 __list_add(&cs->list, left, left->next); in free_string()
|
/drivers/spi/ |
D | spi-bcm53xx.c | 224 size_t left; in bcm53xxspi_transfer_one() local 230 left = t->len; in bcm53xxspi_transfer_one() 231 while (left) { in bcm53xxspi_transfer_one() 232 size_t to_write = min_t(size_t, 16, left); in bcm53xxspi_transfer_one() 233 bool cont = left - to_write > 0; in bcm53xxspi_transfer_one() 236 left -= to_write; in bcm53xxspi_transfer_one() 243 left = t->len; in bcm53xxspi_transfer_one() 244 while (left) { in bcm53xxspi_transfer_one() 246 left); in bcm53xxspi_transfer_one() 247 bool cont = left - to_read > 0; in bcm53xxspi_transfer_one() [all …]
|
/drivers/media/platform/vivid/ |
D | vivid-kthread-cap.c | 66 int left = dev->overlay_out_left; in copy_pix() local 68 int fb_x = win_x + left; in copy_pix() 78 win_x -= dev->compose_out.left; in copy_pix() 88 fb_x >= r->left && fb_x < r->left + r->width) in copy_pix() 192 dev->loop_vid_out.left += dev->crop_out.left; in vivid_precalc_copy_rects() 201 dev->loop_vid_copy.left, dev->loop_vid_copy.top, in vivid_precalc_copy_rects() 203 dev->loop_vid_out.left, dev->loop_vid_out.top, in vivid_precalc_copy_rects() 205 dev->loop_vid_cap.left, dev->loop_vid_cap.top); in vivid_precalc_copy_rects() 210 r_overlay.left += dev->compose_out.left - dev->overlay_out_left; in vivid_precalc_copy_rects() 217 dev->loop_fb_copy.left -= dev->compose_out.left - dev->overlay_out_left; in vivid_precalc_copy_rects() [all …]
|