/linux/drivers/staging/vt6655/ |
H A D | dpc.c | 33 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()
|
/linux/arch/xtensa/include/asm/ |
H A D | asmmacro.h | 239 #define abi_entry(frame_size) \ argument 241 (((frame_size) + XTENSA_STACK_ALIGNMENT - 1) & \ 245 #define abi_ret(frame_size) retw argument 278 #define abi_entry(frame_size) __abi_entry (frame_size) 280 .macro __abi_entry frame_size 281 .ifgt \frame_size 282 addi sp, sp, -(((\frame_size) + XTENSA_STACK_ALIGNMENT - 1) & \ 289 #define abi_ret(frame_size) __abi_ret (frame_size) 291 .macro __abi_ret frame_size 292 .ifgt \frame_size [all …]
|
/linux/arch/microblaze/kernel/ |
H A D | unwind.c | 88 s16 frame_size; in find_frame_creation() local 99 frame_size = get_frame_size(instr); in find_frame_creation() 100 if ((frame_size < 8) || (frame_size & 3)) { in find_frame_creation() 102 frame_size, pc); in find_frame_creation() 107 frame_size); in find_frame_creation() 137 long frame_size = get_frame_size(*prologue); in lookup_prev_stack_frame() local 139 *pprev_fp = fp + frame_size; in lookup_prev_stack_frame()
|
/linux/drivers/firmware/tegra/ |
H A D | ivc.c | 229 size_t offset = sizeof(struct tegra_ivc_header) + ivc->frame_size * frame; in tegra_ivc_frame_virt() 245 offset = sizeof(struct tegra_ivc_header) + ivc->frame_size * frame; in tegra_ivc_frame_phys() 297 ivc->frame_size); in tegra_ivc_read_get_next_frame() 367 ivc->frame_size); in tegra_ivc_write_advance() 575 unsigned int num_frames, size_t frame_size) in tegra_ivc_check_params() argument 584 if ((uint64_t)num_frames * (uint64_t)frame_size >= 0x100000000UL) { in tegra_ivc_check_params() 589 if (!IS_ALIGNED(frame_size, TEGRA_IVC_ALIGN)) { in tegra_ivc_check_params() 590 pr_err("frame size not adequately aligned: %zu\n", frame_size); in tegra_ivc_check_params() 609 if (rx + frame_size * num_frames > tx) { in tegra_ivc_check_params() 611 rx, frame_size * num_frames, tx); in tegra_ivc_check_params() [all …]
|
/linux/arch/parisc/kernel/ |
H A D | unwind.c | 215 static int unwind_special(struct unwind_frame_info *info, unsigned long pc, int frame_size) in unwind_special() argument 233 struct pt_regs *regs = (struct pt_regs *)(info->sp - frame_size - PT_SZ_ALGN); in unwind_special() 279 long frame_size = 0; in unwind_frame_regs() local 331 (frame_size < (e->Total_frame_size << 3) || in unwind_frame_regs() 341 frame_size += (insn & 0x3fff) >> 1; in unwind_frame_regs() 344 insn, npc, frame_size); in unwind_frame_regs() 347 frame_size += ((insn >> 4) & 0x3ff) << 3; in unwind_frame_regs() 350 insn, npc, frame_size); in unwind_frame_regs() 366 if (frame_size > e->Total_frame_size << 3) in unwind_frame_regs() 367 frame_size = e->Total_frame_size << 3; in unwind_frame_regs() [all …]
|
/linux/arch/riscv/kernel/ |
H A D | signal.c | 209 size_t frame_size; in get_rt_frame_size() local 212 frame_size = sizeof(*frame); in get_rt_frame_size() 225 frame_size += total_context_size; in get_rt_frame_size() 227 frame_size = round_up(frame_size, 16); in get_rt_frame_size() 228 return frame_size; in get_rt_frame_size() 237 size_t frame_size = get_rt_frame_size(false); in SYSCALL_DEFINE0() local 244 if (!access_ok(frame, frame_size)) in SYSCALL_DEFINE0() 327 size_t frame_size = get_rt_frame_size(false); in setup_rt_frame() local 329 frame = get_sigframe(ksig, regs, frame_size); in setup_rt_frame() 330 if (!access_ok(frame, frame_size)) in setup_rt_frame()
|
/linux/drivers/most/ |
H A 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 …]
|
/linux/arch/s390/kernel/ |
H A D | compat_signal.c | 231 get_sigframe(struct k_sigaction *ka, struct pt_regs * regs, size_t frame_size) in get_sigframe() argument 239 if (on_sig_stack(sp) && !on_sig_stack((sp - frame_size) & -8UL)) in get_sigframe() 248 return (void __user *)((sp - frame_size) & -8ul); in get_sigframe() 257 size_t frame_size; in setup_frame32() local 264 frame_size = sizeof(*frame) - sizeof(frame->sregs_ext.__reserved); in setup_frame32() 266 frame_size -= sizeof(frame->sregs_ext.vxrs_low) + in setup_frame32() 268 frame = get_sigframe(&ksig->ka, regs, frame_size); in setup_frame32() 337 size_t frame_size; in setup_rt_frame32() local 340 frame_size = sizeof(*frame) - in setup_rt_frame32() 351 frame_size -= sizeof(frame->uc.uc_mcontext_ext.vxrs_low) + in setup_rt_frame32() [all …]
|
H A D | signal.c | 265 get_sigframe(struct k_sigaction *ka, struct pt_regs * regs, size_t frame_size) in get_sigframe() argument 273 if (on_sig_stack(sp) && !on_sig_stack((sp - frame_size) & -8UL)) in get_sigframe() 282 return (void __user *)((sp - frame_size) & -8ul); in get_sigframe() 291 size_t frame_size; in setup_frame() local 299 frame_size = sizeof(*frame) - sizeof(frame->sregs_ext); in setup_frame() 301 frame_size += sizeof(frame->sregs_ext); in setup_frame() 302 frame = get_sigframe(ka, regs, frame_size); in setup_frame() 367 size_t frame_size; in setup_rt_frame() local 369 frame_size = sizeof(struct rt_sigframe) - sizeof(_sigregs_ext); in setup_rt_frame() 378 frame_size += sizeof(_sigregs_ext); in setup_rt_frame() [all …]
|
/linux/drivers/nfc/nxp-nci/ |
H A D | firmware.c | 102 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()
|
/linux/arch/mips/kernel/ |
H A D | process.c | 186 int frame_size; member 354 static inline int is_sp_move_ins(union mips_instruction *ip, int *frame_size) in is_sp_move_ins() argument 374 *frame_size = -(signed short)(tmp << 2); in is_sp_move_ins() 380 *frame_size = -(signed short)(tmp & 0xf); in is_sp_move_ins() 388 *frame_size = -ip->i_format.simmediate; in is_sp_move_ins() 398 *frame_size = -ip->i_format.simmediate; in is_sp_move_ins() 413 info->frame_size = 0; in get_frame_info() 437 } else if (!info->frame_size) { in get_frame_info() 438 is_sp_move_ins(&insn, &info->frame_size); in get_frame_info() 463 if (info->frame_size && info->pc_offset >= 0) /* nested */ in get_frame_info() [all …]
|
/linux/drivers/media/usb/pwc/ |
H A 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()
|
/linux/arch/loongarch/kernel/ |
H A D | unwind_prologue.c | 113 unsigned long frame_size = 0; in unwind_by_prologue() local 145 frame_size = (1 << 12) - ip->reg2i12_format.immediate; in unwind_by_prologue() 156 if (!frame_size) { in unwind_by_prologue() 176 state->sp = state->sp + frame_size; in unwind_by_prologue() 183 state->sp = state->sp + frame_size; in unwind_by_prologue()
|
/linux/drivers/net/thunderbolt/ |
H A D | main.c | 63 __le32 frame_size; member 734 u32 frame_id, frame_count, frame_size, frame_index; in tbnet_check_frame() local 753 frame_size = le32_to_cpu(hdr->frame_size); in tbnet_check_frame() 757 if ((frame_size > size - sizeof(*hdr)) || !frame_size) { in tbnet_check_frame() 781 if (net->skb->len + frame_size > TBNET_MAX_MTU) { in tbnet_check_frame() 817 u32 frame_size; in tbnet_poll() local 844 trace_tbnet_invalid_rx_ip_frame(hdr->frame_size, in tbnet_poll() 852 trace_tbnet_rx_ip_frame(hdr->frame_size, hdr->frame_id, in tbnet_poll() 854 frame_size = le32_to_cpu(hdr->frame_size); in tbnet_poll() 867 skb_put(skb, frame_size); in tbnet_poll() [all …]
|
/linux/drivers/staging/media/meson/vdec/ |
H A D | esparser.c | 88 int frame_size[8], tot_frame_size[8]; in vp9_update_header() local 111 frame_size[cur_frame] = 0; in vp9_update_header() 113 frame_size[cur_frame] |= in vp9_update_header() 119 frame_size[cur_frame]; in vp9_update_header() 123 frame_size[cur_frame]; in vp9_update_header() 124 total_datasize += frame_size[cur_frame]; in vp9_update_header() 128 frame_size[0] = dsize; in vp9_update_header() 141 int framesize = frame_size[cur_frame]; in vp9_update_header()
|
/linux/drivers/media/platform/qcom/venus/ |
H A D | hfi_plat_bufs_v6.c | 365 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 …]
|
/linux/sound/soc/atmel/ |
H A D | atmel_ssc_dai.c | 204 int frame_size; in atmel_ssc_hw_rule_rate() local 208 frame_size = snd_soc_params_to_frame_size(params); in atmel_ssc_hw_rule_rate() 209 if (frame_size < 0) in atmel_ssc_hw_rule_rate() 210 return frame_size; in atmel_ssc_hw_rule_rate() 237 r.num = ssc_p->mck_rate / mck_div / frame_size; in atmel_ssc_hw_rule_rate() 249 t.max = ssc_p->mck_rate / mck_div / frame_size; in atmel_ssc_hw_rule_rate() 509 int frame_size = snd_soc_params_to_frame_size(params); in atmel_ssc_hw_params() local 511 if (frame_size < 0) { in atmel_ssc_hw_params() 514 frame_size); in atmel_ssc_hw_params() 515 return frame_size; in atmel_ssc_hw_params() [all …]
|
/linux/tools/testing/selftests/bpf/ |
H A D | xskxceiver.c | 185 return umem->num_frames * umem->frame_size; in umem_size() 194 .frame_size = umem->frame_size, in xsk_configure_umem() 228 umem->next_buffer += umem->frame_size; in umem_alloc_buffer() 304 umem->frame_size = XSK_UMEM__DEFAULT_FRAME_SIZE; in ifobj_zc_avail() 499 ifobj->umem->frame_size = XSK_UMEM__DEFAULT_FRAME_SIZE; in __test_spec_init() 676 static u32 pkt_nb_frags(u32 frame_size, struct pkt_stream *pkt_stream, struct pkt *pkt) in pkt_nb_frags() argument 686 return ceil_u32(pkt->len, frame_size); in pkt_nb_frags() 726 return ceil_u32(len, umem->frame_size) * umem->frame_size; in pkt_get_buffer_len() 964 u32 offset = addr % umem->frame_size, expected_offset; in is_offset_correct() 970 expected_offset = (pkt_offset + headroom + XDP_PACKET_HEADROOM) % umem->frame_size; in is_offset_correct() [all …]
|
/linux/drivers/gpu/drm/lima/ |
H A D | lima_pp.c | 466 int frame_size; in lima_pp_pipe_init() local 470 frame_size = sizeof(struct drm_lima_m400_pp_frame); in lima_pp_pipe_init() 472 frame_size = sizeof(struct drm_lima_m450_pp_frame); in lima_pp_pipe_init() 476 "lima_pp_task", sizeof(struct lima_sched_task) + frame_size, in lima_pp_pipe_init() 478 frame_size, NULL); in lima_pp_pipe_init() 484 pipe->frame_size = frame_size; in lima_pp_pipe_init()
|
H A D | lima_gp.c | 355 int frame_size = sizeof(struct drm_lima_gp_frame); in lima_gp_pipe_init() local 360 "lima_gp_task", sizeof(struct lima_sched_task) + frame_size, in lima_gp_pipe_init() 362 frame_size, NULL); in lima_gp_pipe_init() 368 pipe->frame_size = frame_size; in lima_gp_pipe_init()
|
/linux/sound/usb/usx2y/ |
H A D | usb_stream.c | 18 return (sk->out_phase_peeked >> 16) * s->cfg.frame_size; in usb_stream_next_packet_size() 159 unsigned int frame_size) in usb_stream_new() argument 206 sk->s->cfg.frame_size = frame_size; in usb_stream_new() 210 sk->s->period_size = frame_size * period_frames; in usb_stream_new() 328 if (unlikely(lb % s->cfg.frame_size)) { in usb_stream_prepare_playback() 427 l/(int)s->cfg.frame_size); in loop_back() 485 (s->idle_insize)/(int)s->cfg.frame_size); in stream_idle() 542 s->cfg.frame_size * inurb->number_of_packets; in stream_start() 545 max_diff_0 = s->cfg.frame_size; in stream_start() 559 (min_frames >> 8) * s->cfg.frame_size; in stream_start() [all …]
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_xdp.c | 14 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()
|
/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_xdp.c | 51 u32 frame_size; in igc_xdp_enable_pool() local 58 frame_size = xsk_pool_get_rx_frame_size(pool); in igc_xdp_enable_pool() 59 if (frame_size < ETH_FRAME_LEN + VLAN_HLEN * 2) { in igc_xdp_enable_pool()
|
/linux/drivers/media/usb/b2c2/ |
H A D | flexcop-usb.c | 427 u16 frame_size; in flexcop_usb_transfer_init() local 431 frame_size = usb_endpoint_maxp(&alt->endpoint[0].desc); in flexcop_usb_transfer_init() 432 bufsize = B2C2_USB_NUM_ISO_URB * B2C2_USB_FRAMES_PER_ISO * frame_size; 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()
|
/linux/include/soc/tegra/ |
H A D | ivc.h | 29 size_t frame_size; member 98 unsigned int num_frames, size_t frame_size,
|