Home
last modified time | relevance | path

Searched refs:frame_size (Results 1 – 25 of 109) sorted by relevance

12345

/drivers/staging/vt6655/
Ddpc.c33 u16 frame_size; in vnt_rx_data() local
42 frame_size = le16_to_cpu(*((__le16 *)(skb->data + 2))); in vnt_rx_data()
43 if (frame_size > 2346 || frame_size < 14) { in vnt_rx_data()
86 skb_trim(skb, frame_size); in vnt_rx_data()
122 u16 frame_size; in vnt_receive_frame() local
129 frame_size = le16_to_cpu(curr_rd->rd1.req_count) in vnt_receive_frame()
132 if ((frame_size > 2364) || (frame_size < 33)) { in vnt_receive_frame()
134 dev_dbg(&priv->pcid->dev, "Wrong frame size %d\n", frame_size); in vnt_receive_frame()
139 if (vnt_rx_data(priv, skb, frame_size)) in vnt_receive_frame()
/drivers/firmware/tegra/
Divc.c224 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/
Dmost_usb.c196 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/
Dfirmware.c102 remaining_len = fw_info->frame_size - fw_info->written; in nxp_nci_fw_send_chunk()
137 fw_info->frame_size = get_unaligned_be16(fw_info->data) & in nxp_nci_fw_send()
143 if (fw_info->frame_size > fw_info->size) in nxp_nci_fw_send()
181 if (fw_info->written == fw_info->frame_size) { in nxp_nci_fw_work()
182 fw_info->data += fw_info->frame_size; in nxp_nci_fw_work()
183 fw_info->size -= fw_info->frame_size; in nxp_nci_fw_work()
232 fw_info->frame_size = 0; in nxp_nci_fw_download()
/drivers/media/usb/pwc/
Dpwc-ctrl.c195 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()
Dpwc-uncompress.c42 memcpy(raw_frame+1, yuv, pdev->frame_size); in pwc_decompress()
44 pdev->frame_size + sizeof(struct pwc_raw_frame)); in pwc_decompress()
/drivers/media/platform/qcom/venus/
Dhfi_plat_bufs_v6.c365 u32 frame_size; in calculate_enc_output_frame_size() local
378 frame_size = width * height * 3; in calculate_enc_output_frame_size()
381 frame_size = frame_size << 1; in calculate_enc_output_frame_size()
383 frame_size = frame_size >> 2; in calculate_enc_output_frame_size()
385 frame_size = frame_size >> 3; in calculate_enc_output_frame_size()
388 frame_size = frame_size << 1; in calculate_enc_output_frame_size()
397 frame_size *= 5; in calculate_enc_output_frame_size()
398 frame_size /= 4; in calculate_enc_output_frame_size()
400 return ALIGN(frame_size, SZ_4K); in calculate_enc_output_frame_size()
1121 u32 frame_size, num_mbs; in calculate_dec_input_frame_size() local
[all …]
/drivers/staging/media/meson/vdec/
Desparser.c89 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/gpu/drm/lima/
Dlima_pp.c424 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()
Dlima_gp.c325 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()
/drivers/net/
Dthunderbolt.c59 u32 frame_size; member
694 u32 frame_id, frame_count, frame_size, frame_index; in tbnet_check_frame() local
713 frame_size = le32_to_cpu(hdr->frame_size); in tbnet_check_frame()
717 if ((frame_size > size - sizeof(*hdr)) || !frame_size) { in tbnet_check_frame()
741 if (net->skb->len + frame_size > TBNET_MAX_MTU) { in tbnet_check_frame()
777 u32 frame_size; in tbnet_poll() local
810 frame_size = le32_to_cpu(hdr->frame_size); in tbnet_poll()
823 skb_put(skb, frame_size); in tbnet_poll()
828 page, hdr_size, frame_size, in tbnet_poll()
832 net->rx_hdr.frame_size = frame_size; in tbnet_poll()
[all …]
/drivers/staging/qlge/
Dqlge_ethtool.c513 unsigned int frame_size) in qlge_create_lb_frame() argument
515 memset(skb->data, 0xFF, frame_size); in qlge_create_lb_frame()
516 frame_size &= ~1; in qlge_create_lb_frame()
517 memset(&skb->data[frame_size / 2], 0xAA, frame_size / 2 - 1); in qlge_create_lb_frame()
518 skb->data[frame_size / 2 + 10] = (unsigned char)0xBE; in qlge_create_lb_frame()
519 skb->data[frame_size / 2 + 12] = (unsigned char)0xAF; in qlge_create_lb_frame()
525 unsigned int frame_size = skb->len; in qlge_check_lb_frame() local
528 (*(skb->data + frame_size / 2 + 10) == 0xBE) && in qlge_check_lb_frame()
529 (*(skb->data + frame_size / 2 + 12) == 0xAF)) { in qlge_check_lb_frame()
/drivers/net/ethernet/hisilicon/hns/
Dhns_ethtool.c378 unsigned int frame_size; in __lb_other_process() local
387 frame_size = skb->len; in __lb_other_process()
388 memset(skb->data, 0xFF, frame_size); in __lb_other_process()
395 frame_size &= ~1ul; in __lb_other_process()
396 memset(&skb->data[frame_size / 2], 0xAA, frame_size / 2 - 1); in __lb_other_process()
397 memset(&skb->data[frame_size / 2 + 10], 0xBE, in __lb_other_process()
398 frame_size / 2 - 11); in __lb_other_process()
399 memset(&skb->data[frame_size / 2 + 12], 0xAF, in __lb_other_process()
400 frame_size / 2 - 13); in __lb_other_process()
412 frame_size = skb->len; in __lb_other_process()
[all …]
/drivers/net/ethernet/intel/igc/
Digc_xdp.c45 u32 frame_size; in igc_xdp_enable_pool() local
52 frame_size = xsk_pool_get_rx_frame_size(pool); in igc_xdp_enable_pool()
53 if (frame_size < ETH_FRAME_LEN + VLAN_HLEN * 2) { in igc_xdp_enable_pool()
/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_xdp.c14 u32 frame_size; in stmmac_xdp_enable_pool() local
21 frame_size = xsk_pool_get_rx_frame_size(pool); in stmmac_xdp_enable_pool()
25 if (frame_size < ETH_FRAME_LEN + VLAN_HLEN * 2) in stmmac_xdp_enable_pool()
/drivers/media/usb/b2c2/
Dflexcop-usb.c428 u16 frame_size = le16_to_cpu( in flexcop_usb_transfer_init() local
431 frame_size, i, j, ret; in flexcop_usb_transfer_init()
436 B2C2_USB_FRAMES_PER_ISO, frame_size, bufsize); in flexcop_usb_transfer_init()
470 urb->transfer_buffer_length = frame_size * B2C2_USB_FRAMES_PER_ISO; in flexcop_usb_transfer_init()
473 buffer_offset += frame_size * B2C2_USB_FRAMES_PER_ISO; in flexcop_usb_transfer_init()
478 urb->iso_frame_desc[j].length = frame_size; in flexcop_usb_transfer_init()
479 frame_offset += frame_size; in flexcop_usb_transfer_init()
/drivers/media/platform/davinci/
Dvpss.c375 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/
Dlcdc.c622 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/
Dfjes_hw.h54 #define EP_RING_NUM(buffer_size, frame_size) \ argument
55 (u32)((buffer_size) / (frame_size))
93 __le32 frame_size; member
/drivers/staging/vt6656/
Dusbpipe.c269 u32 frame_size; in vnt_rx_data() local
280 frame_size = head->wbk_status >> 16; in vnt_rx_data()
281 frame_size += 4; in vnt_rx_data()
283 if (bytes_received != frame_size) { in vnt_rx_data()
/drivers/media/usb/dvb-usb-v2/
Daf9035.c1732 u16 frame_size = (d->udev->speed == USB_SPEED_FULL ? 5 : 87) * 188 / 4; in af9035_init() local
1742 { 0x00dd88, (frame_size >> 0) & 0xff, 0xff}, in af9035_init()
1743 { 0x00dd89, (frame_size >> 8) & 0xff, 0xff}, in af9035_init()
1746 { 0x00dd8a, (frame_size >> 0) & 0xff, 0xff}, in af9035_init()
1747 { 0x00dd8b, (frame_size >> 8) & 0xff, 0xff}, in af9035_init()
1756 d->udev->speed, frame_size, packet_size); in af9035_init()
1779 u16 frame_size = (d->udev->speed == USB_SPEED_FULL ? 5 : 816) * 188 / 4; in it930x_init() local
1793 { 0x00dd88, (frame_size >> 0) & 0xff, 0xff}, in it930x_init()
1794 { 0x00dd89, (frame_size >> 8) & 0xff, 0xff}, in it930x_init()
1796 { 0x00dd8a, (frame_size >> 0) & 0xff, 0xff}, in it930x_init()
[all …]
/drivers/media/usb/stkwebcam/
Dstk-webcam.c373 && 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/
De1000_ethtool.c1354 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/
Dvimc-sensor.c251 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()
/drivers/media/i2c/s5c73m3/
Ds5c73m3-core.c1064 const struct s5c73m3_frame_size *frame_size = NULL; in s5c73m3_set_fmt() local
1071 s5c73m3_try_format(state, sd_state, fmt, &frame_size); in s5c73m3_set_fmt()
1079 state->sensor_pix_size[RES_ISP] = frame_size; in s5c73m3_set_fmt()
1082 state->sensor_pix_size[RES_JPEG] = frame_size; in s5c73m3_set_fmt()
1103 const struct s5c73m3_frame_size *frame_size = NULL; in s5c73m3_oif_set_fmt() local
1110 s5c73m3_oif_try_format(state, sd_state, fmt, &frame_size); in s5c73m3_oif_set_fmt()
1124 state->oif_pix_size[RES_ISP] = frame_size; in s5c73m3_oif_set_fmt()
1127 state->oif_pix_size[RES_JPEG] = frame_size; in s5c73m3_oif_set_fmt()

12345