/drivers/staging/vt6655/ |
D | dpc.c | 35 u16 frame_size; in vnt_rx_data() local 44 frame_size = le16_to_cpu(*((__le16 *)(skb->data + 2))); in vnt_rx_data() 45 if (frame_size > 2346 || frame_size < 14) { in vnt_rx_data() 88 skb_trim(skb, frame_size); in vnt_rx_data() 124 u16 frame_size; in vnt_receive_frame() local 131 frame_size = le16_to_cpu(curr_rd->rd1.req_count) in vnt_receive_frame() 134 if ((frame_size > 2364) || (frame_size < 33)) { in vnt_receive_frame() 136 dev_dbg(&priv->pcid->dev, "Wrong frame size %d\n", frame_size); in vnt_receive_frame() 141 if (vnt_rx_data(priv, skb, frame_size)) in vnt_receive_frame()
|
/drivers/firmware/tegra/ |
D | ivc.c | 224 return (void *)(header + 1) + ivc->frame_size * frame; in tegra_ivc_frame_virt() 233 offset = sizeof(struct tegra_ivc_header) + ivc->frame_size * frame; in tegra_ivc_frame_phys() 285 ivc->frame_size); in tegra_ivc_read_get_next_frame() 355 ivc->frame_size); in tegra_ivc_write_advance() 562 unsigned int num_frames, size_t frame_size) in tegra_ivc_check_params() argument 571 if ((uint64_t)num_frames * (uint64_t)frame_size >= 0x100000000UL) { in tegra_ivc_check_params() 576 if (!IS_ALIGNED(frame_size, TEGRA_IVC_ALIGN)) { in tegra_ivc_check_params() 577 pr_err("frame size not adequately aligned: %zu\n", frame_size); in tegra_ivc_check_params() 596 if (rx + frame_size * num_frames > tx) { in tegra_ivc_check_params() 598 rx, frame_size * num_frames, tx); in tegra_ivc_check_params() [all …]
|
/drivers/most/ |
D | most_usb.c | 196 unsigned int frame_size; in get_stream_frame_size() local 205 frame_size = AV_PACKETS_PER_XACT * sub_size; in get_stream_frame_size() 210 frame_size = 0; in get_stream_frame_size() 212 frame_size = (USB_MTU / sub_size) * sub_size; in get_stream_frame_size() 214 frame_size = cfg->packets_per_xact * sub_size; in get_stream_frame_size() 219 frame_size = 0; in get_stream_frame_size() 222 return frame_size; in get_stream_frame_size() 279 unsigned int frame_size = get_stream_frame_size(&mdev->dev, conf); in hdm_add_padding() local 282 if (!frame_size) in hdm_add_padding() 284 num_frames = mbo->buffer_length / frame_size; in hdm_add_padding() [all …]
|
/drivers/nfc/nxp-nci/ |
D | firmware.c | 104 remaining_len = fw_info->frame_size - fw_info->written; in nxp_nci_fw_send_chunk() 140 fw_info->frame_size = get_unaligned_be16(fw_info->data) & in nxp_nci_fw_send() 146 if (fw_info->frame_size > fw_info->size) in nxp_nci_fw_send() 184 if (fw_info->written == fw_info->frame_size) { in nxp_nci_fw_work() 185 fw_info->data += fw_info->frame_size; in nxp_nci_fw_work() 186 fw_info->size -= fw_info->frame_size; in nxp_nci_fw_work() 235 fw_info->frame_size = 0; in nxp_nci_fw_download()
|
/drivers/media/usb/pwc/ |
D | pwc-ctrl.c | 195 pdev->frame_size = (pdev->width * pdev->height * 3) / 2; in set_video_mode_Nala() 199 pdev->frame_size /= 4; in set_video_mode_Nala() 203 pdev->frame_size /= 3; in set_video_mode_Nala() 260 pdev->frame_size = (pChoose->bandlength * pdev->height) / 4; in set_video_mode_Timon() 262 pdev->frame_size = (pdev->width * pdev->height * 12) / 8; in set_video_mode_Timon() 311 pdev->frame_size = (pdev->vbandlength * pdev->height) / 4; in set_video_mode_Kiara() 313 pdev->frame_size = (pdev->width * pdev->height * 12) / 8; in set_video_mode_Kiara() 315 pdev->frame_size, pdev->vframes, size, pdev->vbandlength); in set_video_mode_Kiara() 343 pdev->frame_total_size = pdev->frame_size + pdev->frame_header_size + pdev->frame_trailer_size; in pwc_set_video_mode()
|
D | pwc-uncompress.c | 45 memcpy(raw_frame+1, yuv, pdev->frame_size); in pwc_decompress() 47 pdev->frame_size + sizeof(struct pwc_raw_frame)); in pwc_decompress()
|
/drivers/staging/media/meson/vdec/ |
D | esparser.c | 89 int frame_size[8], tot_frame_size[8]; in vp9_update_header() local 112 frame_size[cur_frame] = 0; in vp9_update_header() 114 frame_size[cur_frame] |= in vp9_update_header() 120 frame_size[cur_frame]; in vp9_update_header() 124 frame_size[cur_frame]; in vp9_update_header() 125 total_datasize += frame_size[cur_frame]; in vp9_update_header() 129 frame_size[0] = dsize; in vp9_update_header() 142 int framesize = frame_size[cur_frame]; in vp9_update_header()
|
/drivers/net/ |
D | thunderbolt.c | 59 u32 frame_size; member 672 u32 frame_id, frame_count, frame_size, frame_index; in tbnet_check_frame() local 691 frame_size = le32_to_cpu(hdr->frame_size); in tbnet_check_frame() 695 if ((frame_size > size - sizeof(*hdr)) || !frame_size) { in tbnet_check_frame() 719 if (net->skb->len + frame_size > TBNET_MAX_MTU) { in tbnet_check_frame() 755 u32 frame_size; in tbnet_poll() local 788 frame_size = le32_to_cpu(hdr->frame_size); in tbnet_poll() 801 skb_put(skb, frame_size); in tbnet_poll() 806 page, hdr_size, frame_size, in tbnet_poll() 810 net->rx_hdr.frame_size = frame_size; in tbnet_poll() [all …]
|
/drivers/gpu/drm/lima/ |
D | lima_pp.c | 424 int frame_size; in lima_pp_pipe_init() local 428 frame_size = sizeof(struct drm_lima_m400_pp_frame); in lima_pp_pipe_init() 430 frame_size = sizeof(struct drm_lima_m450_pp_frame); in lima_pp_pipe_init() 434 "lima_pp_task", sizeof(struct lima_sched_task) + frame_size, in lima_pp_pipe_init() 436 frame_size, NULL); in lima_pp_pipe_init() 442 pipe->frame_size = frame_size; in lima_pp_pipe_init()
|
D | lima_gp.c | 325 int frame_size = sizeof(struct drm_lima_gp_frame); in lima_gp_pipe_init() local 330 "lima_gp_task", sizeof(struct lima_sched_task) + frame_size, in lima_gp_pipe_init() 332 frame_size, NULL); in lima_gp_pipe_init() 338 pipe->frame_size = frame_size; in lima_gp_pipe_init()
|
D | lima_drv.c | 121 if (args->frame_size != pipe->frame_size) in lima_ioctl_gem_submit() 141 if (copy_from_user(task->frame, u64_to_user_ptr(args->frame), args->frame_size)) { in lima_ioctl_gem_submit()
|
/drivers/staging/qlge/ |
D | qlge_ethtool.c | 514 unsigned int frame_size) in ql_create_lb_frame() argument 516 memset(skb->data, 0xFF, frame_size); in ql_create_lb_frame() 517 frame_size &= ~1; in ql_create_lb_frame() 518 memset(&skb->data[frame_size / 2], 0xAA, frame_size / 2 - 1); in ql_create_lb_frame() 519 skb->data[frame_size / 2 + 10] = (unsigned char)0xBE; in ql_create_lb_frame() 520 skb->data[frame_size / 2 + 12] = (unsigned char)0xAF; in ql_create_lb_frame() 526 unsigned int frame_size = skb->len; in ql_check_lb_frame() local 529 (*(skb->data + frame_size / 2 + 10) == 0xBE) && in ql_check_lb_frame() 530 (*(skb->data + frame_size / 2 + 12) == 0xAF)) { in ql_check_lb_frame()
|
/drivers/net/ethernet/hisilicon/hns/ |
D | hns_ethtool.c | 379 unsigned int frame_size; in __lb_other_process() local 388 frame_size = skb->len; in __lb_other_process() 389 memset(skb->data, 0xFF, frame_size); in __lb_other_process() 396 frame_size &= ~1ul; in __lb_other_process() 397 memset(&skb->data[frame_size / 2], 0xAA, frame_size / 2 - 1); in __lb_other_process() 398 memset(&skb->data[frame_size / 2 + 10], 0xBE, in __lb_other_process() 399 frame_size / 2 - 11); in __lb_other_process() 400 memset(&skb->data[frame_size / 2 + 12], 0xAF, in __lb_other_process() 401 frame_size / 2 - 13); in __lb_other_process() 413 frame_size = skb->len; in __lb_other_process() [all …]
|
/drivers/media/usb/b2c2/ |
D | flexcop-usb.c | 429 u16 frame_size = le16_to_cpu( in flexcop_usb_transfer_init() local 432 frame_size, i, j, ret; in flexcop_usb_transfer_init() 437 B2C2_USB_FRAMES_PER_ISO, frame_size, bufsize); in flexcop_usb_transfer_init() 471 urb->transfer_buffer_length = frame_size * B2C2_USB_FRAMES_PER_ISO; in flexcop_usb_transfer_init() 474 buffer_offset += frame_size * B2C2_USB_FRAMES_PER_ISO; in flexcop_usb_transfer_init() 479 urb->iso_frame_desc[j].length = frame_size; in flexcop_usb_transfer_init() 480 frame_offset += frame_size; in flexcop_usb_transfer_init()
|
/drivers/media/platform/davinci/ |
D | vpss.c | 375 void vpss_set_pg_frame_size(struct vpss_pg_frame_size frame_size) in vpss_set_pg_frame_size() argument 380 oper_cfg.hw_ops.set_pg_frame_size(frame_size); in vpss_set_pg_frame_size() 384 void dm365_vpss_set_pg_frame_size(struct vpss_pg_frame_size frame_size) in dm365_vpss_set_pg_frame_size() argument 386 int current_reg = ((frame_size.hlpfr >> 1) - 1) << 16; in dm365_vpss_set_pg_frame_size() 388 current_reg |= (frame_size.pplen - 1); in dm365_vpss_set_pg_frame_size()
|
/drivers/video/fbdev/omap/ |
D | lcdc.c | 622 int frame_size; in alloc_fbmem() local 628 frame_size = PAGE_ALIGN(panel->x_res * bpp / 8 * panel->y_res); in alloc_fbmem() 629 if (region->size > frame_size) in alloc_fbmem() 630 frame_size = region->size; in alloc_fbmem() 631 lcdc.vram_size = frame_size; in alloc_fbmem() 638 region->size = frame_size; in alloc_fbmem()
|
/drivers/net/fjes/ |
D | fjes_hw.h | 54 #define EP_RING_NUM(buffer_size, frame_size) \ argument 55 (u32)((buffer_size) / (frame_size)) 93 __le32 frame_size; member
|
/drivers/staging/vt6656/ |
D | usbpipe.c | 271 u32 frame_size; in vnt_rx_data() local 282 frame_size = head->wbk_status >> 16; in vnt_rx_data() 283 frame_size += 4; in vnt_rx_data() 285 if (bytes_received != frame_size) { in vnt_rx_data()
|
/drivers/media/usb/dvb-usb-v2/ |
D | af9035.c | 1731 u16 frame_size = (d->udev->speed == USB_SPEED_FULL ? 5 : 87) * 188 / 4; in af9035_init() local 1741 { 0x00dd88, (frame_size >> 0) & 0xff, 0xff}, in af9035_init() 1742 { 0x00dd89, (frame_size >> 8) & 0xff, 0xff}, in af9035_init() 1745 { 0x00dd8a, (frame_size >> 0) & 0xff, 0xff}, in af9035_init() 1746 { 0x00dd8b, (frame_size >> 8) & 0xff, 0xff}, in af9035_init() 1755 d->udev->speed, frame_size, packet_size); in af9035_init() 1778 u16 frame_size = (d->udev->speed == USB_SPEED_FULL ? 5 : 816) * 188 / 4; in it930x_init() local 1792 { 0x00dd88, (frame_size >> 0) & 0xff, 0xff}, in it930x_init() 1793 { 0x00dd89, (frame_size >> 8) & 0xff, 0xff}, in it930x_init() 1795 { 0x00dd8a, (frame_size >> 0) & 0xff, 0xff}, in it930x_init() [all …]
|
/drivers/media/usb/stkwebcam/ |
D | stk-webcam.c | 373 && fb->v4lbuf.bytesused != dev->frame_size) { in stk_isoc_handler() 378 } else if (fb->v4lbuf.bytesused == dev->frame_size) { in stk_isoc_handler() 399 if (framelen + fb->v4lbuf.bytesused > dev->frame_size) { in stk_isoc_handler() 521 buf->v4lbuf.length = PAGE_ALIGN(dev->frame_size); in stk_setup_siobuf() 688 if (count + *f_pos > dev->frame_size) in stk_read() 689 count = dev->frame_size - *f_pos; in stk_read() 704 if (*f_pos >= dev->frame_size) { in stk_read() 1024 dev->frame_size = fmtd->fmt.pix.sizeimage; in stk_vidioc_s_fmt_vid_cap() 1353 dev->frame_size = 640 * 480 * 2; in stk_camera_probe()
|
/drivers/net/ethernet/intel/e1000/ |
D | e1000_ethtool.c | 1354 unsigned int frame_size) in e1000_create_lbtest_frame() argument 1356 memset(skb->data, 0xFF, frame_size); in e1000_create_lbtest_frame() 1357 frame_size &= ~1; in e1000_create_lbtest_frame() 1358 memset(&skb->data[frame_size / 2], 0xAA, frame_size / 2 - 1); in e1000_create_lbtest_frame() 1359 skb->data[frame_size / 2 + 10] = 0xBE; in e1000_create_lbtest_frame() 1360 skb->data[frame_size / 2 + 12] = 0xAF; in e1000_create_lbtest_frame() 1364 unsigned int frame_size) in e1000_check_lbtest_frame() argument 1366 frame_size &= ~1; in e1000_check_lbtest_frame() 1368 if ((*(data + frame_size / 2 + 10) == 0xBE) && in e1000_check_lbtest_frame() 1369 (*(data + frame_size / 2 + 12) == 0xAF)) { in e1000_check_lbtest_frame()
|
/drivers/media/test-drivers/vimc/ |
D | vimc-sensor.c | 251 unsigned int frame_size; in vimc_sen_s_stream() local 257 frame_size = vsen->mbus_format.width * vpix->bpp * in vimc_sen_s_stream() 264 vsen->frame = vmalloc(frame_size); in vimc_sen_s_stream()
|
D | vimc-scaler.c | 341 unsigned int frame_size; in vimc_sca_s_stream() local 355 frame_size = vsca->src_line_size * vsca->crop_rect.height * in vimc_sca_s_stream() 361 vsca->src_frame = vmalloc(frame_size); in vimc_sca_s_stream()
|
/drivers/media/i2c/s5c73m3/ |
D | s5c73m3-core.c | 1062 const struct s5c73m3_frame_size *frame_size = NULL; in s5c73m3_set_fmt() local 1069 s5c73m3_try_format(state, cfg, fmt, &frame_size); in s5c73m3_set_fmt() 1077 state->sensor_pix_size[RES_ISP] = frame_size; in s5c73m3_set_fmt() 1080 state->sensor_pix_size[RES_JPEG] = frame_size; in s5c73m3_set_fmt() 1101 const struct s5c73m3_frame_size *frame_size = NULL; in s5c73m3_oif_set_fmt() local 1108 s5c73m3_oif_try_format(state, cfg, fmt, &frame_size); in s5c73m3_oif_set_fmt() 1121 state->oif_pix_size[RES_ISP] = frame_size; in s5c73m3_oif_set_fmt() 1124 state->oif_pix_size[RES_JPEG] = frame_size; in s5c73m3_oif_set_fmt()
|
/drivers/net/wireless/intersil/prism54/ |
D | islpci_eth.c | 71 int frame_size; in islpci_eth_transmit() local 194 frame_size = skb->len; in islpci_eth_transmit() 195 fragment->size = cpu_to_le16(frame_size); in islpci_eth_transmit()
|