/drivers/net/ethernet/netronome/nfp/bpf/ |
D | verifier.c | 20 nfp_bpf_goto_meta(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta, in nfp_bpf_goto_meta() argument 25 backward = meta->n - insn_idx; in nfp_bpf_goto_meta() 26 forward = insn_idx - meta->n; in nfp_bpf_goto_meta() 30 meta = nfp_prog_last_meta(nfp_prog); in nfp_bpf_goto_meta() 34 meta = nfp_prog_first_meta(nfp_prog); in nfp_bpf_goto_meta() 39 meta = nfp_meta_next(meta); in nfp_bpf_goto_meta() 42 meta = nfp_meta_prev(meta); in nfp_bpf_goto_meta() 44 return meta; in nfp_bpf_goto_meta() 49 struct nfp_insn_meta *meta, in nfp_record_adjust_head() argument 71 if (nfp_prog->adjust_head_location != meta->n) in nfp_record_adjust_head() [all …]
|
D | main.h | 241 #define nfp_meta_next(meta) list_next_entry(meta, l) argument 242 #define nfp_meta_prev(meta) list_prev_entry(meta, l) argument 351 static inline u8 mbpf_class(const struct nfp_insn_meta *meta) in mbpf_class() argument 353 return BPF_CLASS(meta->insn.code); in mbpf_class() 356 static inline u8 mbpf_src(const struct nfp_insn_meta *meta) in mbpf_src() argument 358 return BPF_SRC(meta->insn.code); in mbpf_src() 361 static inline u8 mbpf_op(const struct nfp_insn_meta *meta) in mbpf_op() argument 363 return BPF_OP(meta->insn.code); in mbpf_op() 366 static inline u8 mbpf_mode(const struct nfp_insn_meta *meta) in mbpf_mode() argument 368 return BPF_MODE(meta->insn.code); in mbpf_mode() [all …]
|
D | jit.c | 42 nfp_meta_has_prev(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta) in nfp_meta_has_prev() argument 44 return meta->l.prev != &nfp_prog->insns; in nfp_meta_has_prev() 626 wrp_zext(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta, u8 dst) in wrp_zext() argument 628 if (meta->flags & FLAG_INSN_DO_ZEXT) in wrp_zext() 733 static int nfp_cpp_memcpy(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta) in nfp_cpp_memcpy() argument 735 bool descending_seq = meta->ldst_gather_len < 0; in nfp_cpp_memcpy() 736 s16 len = abs(meta->ldst_gather_len); in nfp_cpp_memcpy() 742 off = re_load_imm_any(nfp_prog, meta->insn.off, imm_b(nfp_prog)); in nfp_cpp_memcpy() 743 src_40bit_addr = meta->ptr.type == PTR_TO_MAP_VALUE; in nfp_cpp_memcpy() 744 src_base = reg_a(meta->insn.src_reg * 2); in nfp_cpp_memcpy() [all …]
|
D | offload.c | 154 struct nfp_insn_meta *meta; in nfp_prog_prepare() local 158 meta = kzalloc(sizeof(*meta), GFP_KERNEL); in nfp_prog_prepare() 159 if (!meta) in nfp_prog_prepare() 162 meta->insn = prog[i]; in nfp_prog_prepare() 163 meta->n = i; in nfp_prog_prepare() 164 if (is_mbpf_alu(meta)) { in nfp_prog_prepare() 165 meta->umin_src = U64_MAX; in nfp_prog_prepare() 166 meta->umin_dst = U64_MAX; in nfp_prog_prepare() 169 list_add_tail(&meta->l, &nfp_prog->insns); in nfp_prog_prepare() 180 struct nfp_insn_meta *meta, *tmp; in nfp_prog_free() local [all …]
|
/drivers/media/test-drivers/vivid/ |
D | vivid-meta-cap.c | 152 struct v4l2_meta_format *meta = &f->fmt.meta; in vidioc_g_fmt_meta_cap() local 157 meta->dataformat = V4L2_META_FMT_UVC; in vidioc_g_fmt_meta_cap() 158 meta->buffersize = sizeof(struct vivid_uvc_meta_buf); in vidioc_g_fmt_meta_cap() 165 struct vivid_uvc_meta_buf *meta = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_meta_cap_fillbuff() local 171 memset(meta, 1, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_meta_cap_fillbuff() 173 meta->ns = ktime_get_ns(); in vivid_meta_cap_fillbuff() 174 meta->sof = buf->vb.sequence * 30; in vivid_meta_cap_fillbuff() 175 meta->length = sizeof(*meta) - offsetof(struct vivid_uvc_meta_buf, length); in vivid_meta_cap_fillbuff() 176 meta->flags = UVC_STREAM_EOH | UVC_STREAM_EOF; in vivid_meta_cap_fillbuff() 179 meta->flags |= UVC_STREAM_FID; in vivid_meta_cap_fillbuff() [all …]
|
D | vivid-meta-out.c | 152 struct v4l2_meta_format *meta = &f->fmt.meta; in vidioc_g_fmt_meta_out() local 157 meta->dataformat = V4L2_META_FMT_VIVID; in vidioc_g_fmt_meta_out() 158 meta->buffersize = sizeof(struct vivid_meta_out_buf); in vidioc_g_fmt_meta_out() 165 struct vivid_meta_out_buf *meta = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_meta_out_process() local 167 v4l2_ctrl_s_ctrl(dev->brightness, meta->brightness); in vivid_meta_out_process() 168 v4l2_ctrl_s_ctrl(dev->contrast, meta->contrast); in vivid_meta_out_process() 169 v4l2_ctrl_s_ctrl(dev->saturation, meta->saturation); in vivid_meta_out_process() 170 v4l2_ctrl_s_ctrl(dev->hue, meta->hue); in vivid_meta_out_process() 173 __func__, meta->brightness, meta->contrast, in vivid_meta_out_process() 174 meta->saturation, meta->hue); in vivid_meta_out_process()
|
D | Makefile | 6 vivid-osd.o vivid-meta-cap.o vivid-meta-out.o \
|
/drivers/media/platform/coda/ |
D | trace.h | 85 struct coda_buffer_meta *meta), 87 TP_ARGS(ctx, buf, meta), 100 __entry->start = meta->start & ctx->bitstream_fifo.kfifo.mask; 101 __entry->end = meta->end & ctx->bitstream_fifo.kfifo.mask; 112 struct coda_buffer_meta *meta), 113 TP_ARGS(ctx, buf, meta) 117 TP_PROTO(struct coda_ctx *ctx, struct coda_buffer_meta *meta), 119 TP_ARGS(ctx, meta), 130 __entry->start = meta ? (meta->start & 132 __entry->end = meta ? (meta->end & [all …]
|
D | coda-bit.c | 326 struct coda_buffer_meta *meta; in coda_fill_bitstream() local 344 meta = list_first_entry(&ctx->buffer_meta_list, in coda_fill_bitstream() 355 if (coda_bitstream_can_fetch_past(ctx, meta->end)) in coda_fill_bitstream() 398 meta = kmalloc(sizeof(*meta), GFP_KERNEL); in coda_fill_bitstream() 399 if (meta) { in coda_fill_bitstream() 400 meta->sequence = src_buf->sequence; in coda_fill_bitstream() 401 meta->timecode = src_buf->timecode; in coda_fill_bitstream() 402 meta->timestamp = src_buf->vb2_buf.timestamp; in coda_fill_bitstream() 403 meta->start = start; in coda_fill_bitstream() 404 meta->end = ctx->bitstream_fifo.kfifo.in; in coda_fill_bitstream() [all …]
|
/drivers/net/wireless/broadcom/b43legacy/ |
D | dma.c | 34 struct b43legacy_dmadesc_meta **meta) in op32_idx2desc() argument 38 *meta = &(ring->meta[slot]); in op32_idx2desc() 293 struct b43legacy_dmadesc_meta *meta, in free_descriptor_buffer() argument 296 if (meta->skb) { in free_descriptor_buffer() 298 dev_kfree_skb_irq(meta->skb); in free_descriptor_buffer() 300 dev_kfree_skb(meta->skb); in free_descriptor_buffer() 301 meta->skb = NULL; in free_descriptor_buffer() 429 struct b43legacy_dmadesc_meta *meta, in setup_rx_descbuffer() argument 462 meta->skb = skb; in setup_rx_descbuffer() 463 meta->dmaaddr = dmaaddr; in setup_rx_descbuffer() [all …]
|
/drivers/net/wireless/intersil/hostap/ |
D | hostap_80211_tx.c | 75 struct hostap_skb_tx_data *meta; in hostap_data_start_xmit() local 253 meta = (struct hostap_skb_tx_data *) skb->cb; in hostap_data_start_xmit() 254 memset(meta, 0, sizeof(*meta)); in hostap_data_start_xmit() 255 meta->magic = HOSTAP_SKB_TX_DATA_MAGIC; in hostap_data_start_xmit() 257 meta->flags |= HOSTAP_TX_FLAGS_WDS; in hostap_data_start_xmit() 258 meta->ethertype = ethertype; in hostap_data_start_xmit() 259 meta->iface = iface; in hostap_data_start_xmit() 274 struct hostap_skb_tx_data *meta; in hostap_mgmt_start_xmit() local 291 meta = (struct hostap_skb_tx_data *) skb->cb; in hostap_mgmt_start_xmit() 292 memset(meta, 0, sizeof(*meta)); in hostap_mgmt_start_xmit() [all …]
|
/drivers/net/wireless/broadcom/b43/ |
D | dma.c | 74 struct b43_dmadesc_meta **meta) in op32_idx2desc() argument 78 *meta = &(ring->meta[slot]); in op32_idx2desc() 166 struct b43_dmadesc_meta **meta) in op64_idx2desc() argument 170 *meta = &(ring->meta[slot]); in op64_idx2desc() 396 struct b43_dmadesc_meta *meta) in free_descriptor_buffer() argument 398 if (meta->skb) { in free_descriptor_buffer() 400 ieee80211_free_txskb(ring->dev->wl->hw, meta->skb); in free_descriptor_buffer() 402 dev_kfree_skb_any(meta->skb); in free_descriptor_buffer() 403 meta->skb = NULL; in free_descriptor_buffer() 594 struct b43_dmadesc_meta *meta, gfp_t gfp_flags) in setup_rx_descbuffer() argument [all …]
|
/drivers/gpu/drm/etnaviv/ |
D | etnaviv_perfmon.c | 467 const struct etnaviv_pm_domain_meta *meta = &doms_meta[i]; in num_pm_domains() local 469 if (gpu->identity.features & meta->feature) in num_pm_domains() 470 num += meta->nr_domains; in num_pm_domains() 483 const struct etnaviv_pm_domain_meta *meta = &doms_meta[i]; in pm_domain() local 485 if (!(gpu->identity.features & meta->feature)) in pm_domain() 488 if (index - offset >= meta->nr_domains) { in pm_domain() 489 offset += meta->nr_domains; in pm_domain() 493 domain = meta->domains + (index - offset); in pm_domain() 555 const struct etnaviv_pm_domain_meta *meta = &doms_meta[exec_state]; in etnaviv_pm_req_validate() local 558 if (r->domain >= meta->nr_domains) in etnaviv_pm_req_validate() [all …]
|
/drivers/media/usb/uvc/ |
D | uvc_metadata.c | 46 struct v4l2_meta_format *fmt = &format->fmt.meta; in uvc_meta_v4l2_get_format() 53 fmt->dataformat = stream->meta.format; in uvc_meta_v4l2_get_format() 65 struct v4l2_meta_format *fmt = &format->fmt.meta; in uvc_meta_v4l2_try_format() 85 struct v4l2_meta_format *fmt = &format->fmt.meta; in uvc_meta_v4l2_set_format() 102 stream->meta.format = fmt->dataformat; in uvc_meta_v4l2_set_format() 162 struct video_device *vdev = &stream->meta.vdev; in uvc_meta_register() 163 struct uvc_video_queue *queue = &stream->meta.queue; in uvc_meta_register() 165 stream->meta.format = V4L2_META_FMT_UVC; in uvc_meta_register()
|
D | uvc_video.c | 1289 struct uvc_meta_buf *meta; in uvc_video_decode_meta() local 1301 length + sizeof(meta->ns) + sizeof(meta->sof)) { in uvc_video_decode_meta() 1319 if (stream->meta.format == V4L2_META_FMT_UVC) in uvc_video_decode_meta() 1326 meta = (struct uvc_meta_buf *)((u8 *)meta_buf->mem + meta_buf->bytesused); in uvc_video_decode_meta() 1331 put_unaligned(ktime_to_ns(time), &meta->ns); in uvc_video_decode_meta() 1332 put_unaligned(sof, &meta->sof); in uvc_video_decode_meta() 1337 meta->length = mem[0]; in uvc_video_decode_meta() 1338 meta->flags = mem[1]; in uvc_video_decode_meta() 1339 memcpy(meta->buf, &mem[2], length - 2); in uvc_video_decode_meta() 1340 meta_buf->bytesused += length + sizeof(meta->ns) + sizeof(meta->sof); in uvc_video_decode_meta() [all …]
|
/drivers/block/rsxx/ |
D | dev.c | 106 struct rsxx_bio_meta *meta = cb_data; in bio_dma_done_cb() local 109 atomic_set(&meta->error, 1); in bio_dma_done_cb() 111 if (atomic_dec_and_test(&meta->pending_dmas)) { in bio_dma_done_cb() 113 bio_end_io_acct(meta->bio, meta->start_time); in bio_dma_done_cb() 115 if (atomic_read(&meta->error)) in bio_dma_done_cb() 116 bio_io_error(meta->bio); in bio_dma_done_cb() 118 bio_endio(meta->bio); in bio_dma_done_cb() 119 kmem_cache_free(bio_meta_pool, meta); in bio_dma_done_cb()
|
/drivers/media/platform/rockchip/rkisp1/ |
D | rkisp1-stats.c | 30 f->pixelformat = stats->vdev_fmt.fmt.meta.dataformat; in rkisp1_stats_enum_fmt_meta_cap() 39 struct v4l2_meta_format *meta = &f->fmt.meta; in rkisp1_stats_g_fmt_meta_cap() local 44 memset(meta, 0, sizeof(*meta)); in rkisp1_stats_g_fmt_meta_cap() 45 meta->dataformat = stats->vdev_fmt.fmt.meta.dataformat; in rkisp1_stats_g_fmt_meta_cap() 46 meta->buffersize = stats->vdev_fmt.fmt.meta.buffersize; in rkisp1_stats_g_fmt_meta_cap() 351 stats->vdev_fmt.fmt.meta.dataformat = in rkisp1_init_stats() 353 stats->vdev_fmt.fmt.meta.buffersize = in rkisp1_init_stats()
|
/drivers/net/ethernet/netronome/nfp/flower/ |
D | offload.c | 103 key_len = nfp_flow->meta.key_len; in nfp_flower_xmit_flow() 104 mask_len = nfp_flow->meta.mask_len; in nfp_flower_xmit_flow() 105 act_len = nfp_flow->meta.act_len; in nfp_flower_xmit_flow() 112 nfp_flow->meta.key_len >>= NFP_FL_LW_SIZ; in nfp_flower_xmit_flow() 113 nfp_flow->meta.mask_len >>= NFP_FL_LW_SIZ; in nfp_flower_xmit_flow() 114 nfp_flow->meta.act_len >>= NFP_FL_LW_SIZ; in nfp_flower_xmit_flow() 121 memcpy(msg, &nfp_flow->meta, meta_len); in nfp_flower_xmit_flow() 130 nfp_flow->meta.key_len <<= NFP_FL_LW_SIZ; in nfp_flower_xmit_flow() 131 nfp_flow->meta.mask_len <<= NFP_FL_LW_SIZ; in nfp_flower_xmit_flow() 132 nfp_flow->meta.act_len <<= NFP_FL_LW_SIZ; in nfp_flower_xmit_flow() [all …]
|
D | metadata.c | 311 nfp_flow->meta.host_ctx_id = cpu_to_be32(stats_cxt); in nfp_compile_flow_metadata() 312 nfp_flow->meta.host_cookie = cpu_to_be64(cookie); in nfp_compile_flow_metadata() 338 nfp_flow->meta.mask_len, in nfp_compile_flow_metadata() 339 &nfp_flow->meta.flags, &new_mask_id)) { in nfp_compile_flow_metadata() 350 nfp_flow->meta.flow_version = cpu_to_be64(priv->flower_version); in nfp_compile_flow_metadata() 370 nfp_flow->meta.mask_len, in nfp_compile_flow_metadata() 386 nfp_flow->meta.mask_len, in nfp_compile_flow_metadata() 403 nfp_flow->meta.flags &= ~NFP_FL_META_FLAG_MANAGE_MASK; in __nfp_modify_flow_metadata() 404 nfp_flow->meta.flow_version = cpu_to_be64(priv->flower_version); in __nfp_modify_flow_metadata() 420 nfp_flow->meta.mask_len, &nfp_flow->meta.flags, in nfp_modify_flow_metadata() [all …]
|
D | action.c | 166 nfp_flow->meta.shortcut = cpu_to_be32(NFP_FL_SC_ACT_NULL); in nfp_fl_pre_lag() 259 nfp_flow->meta.shortcut = output->port; in nfp_fl_output() 998 nfp_fl->meta.shortcut = cpu_to_be32(NFP_FL_SC_ACT_DROP); in nfp_flower_loop_action() 1026 nfp_fl->meta.shortcut = cpu_to_be32(NFP_FL_SC_ACT_POPV); in nfp_flower_loop_action() 1039 nfp_fl->meta.shortcut = cpu_to_be32(NFP_FL_SC_ACT_NULL); in nfp_flower_loop_action() 1069 nfp_fl->meta.shortcut = cpu_to_be32(NFP_FL_SC_ACT_NULL); in nfp_flower_loop_action() 1111 nfp_fl->meta.shortcut = cpu_to_be32(NFP_FL_SC_ACT_NULL); in nfp_flower_loop_action() 1126 nfp_fl->meta.shortcut = cpu_to_be32(NFP_FL_SC_ACT_NULL); in nfp_flower_loop_action() 1139 nfp_fl->meta.shortcut = cpu_to_be32(NFP_FL_SC_ACT_NULL); in nfp_flower_loop_action() 1214 nfp_flow->meta.act_len = 0; in nfp_flower_compile_action() [all …]
|
/drivers/net/wireless/quantenna/qtnfmac/ |
D | core.c | 837 struct qtnf_frame_meta_info *meta; in qtnf_classify_skb() local 845 meta = (struct qtnf_frame_meta_info *) in qtnf_classify_skb() 846 (skb_tail_pointer(skb) - sizeof(*meta)); in qtnf_classify_skb() 848 if (unlikely(!qtnf_is_frame_meta_magic_valid(meta))) { in qtnf_classify_skb() 850 meta->magic_s, meta->magic_e); in qtnf_classify_skb() 854 if (unlikely(meta->macid >= QTNF_MAX_MAC)) { in qtnf_classify_skb() 855 pr_err_ratelimited("invalid mac(%u)\n", meta->macid); in qtnf_classify_skb() 859 if (unlikely(meta->ifidx >= QTNF_MAX_INTF)) { in qtnf_classify_skb() 860 pr_err_ratelimited("invalid vif(%u)\n", meta->ifidx); in qtnf_classify_skb() 864 mac = bus->mac[meta->macid]; in qtnf_classify_skb() [all …]
|
/drivers/misc/mei/ |
D | hw.h | 279 static inline struct mei_ext_hdr *mei_ext_begin(struct mei_ext_meta_hdr *meta) in mei_ext_begin() argument 281 return (struct mei_ext_hdr *)meta->hdrs; in mei_ext_begin() 292 static inline bool mei_ext_last(struct mei_ext_meta_hdr *meta, in mei_ext_last() argument 295 return (u8 *)ext >= (u8 *)meta + sizeof(*meta) + (meta->size * 4); in mei_ext_last()
|
/drivers/media/i2c/et8ek8/ |
D | et8ek8_driver.c | 360 struct et8ek8_meta_reglist *meta, in et8ek8_reglist_find_type() argument 363 struct et8ek8_reglist **next = &meta->reglist[0].ptr; in et8ek8_reglist_find_type() 376 struct et8ek8_meta_reglist *meta, in et8ek8_i2c_reglist_find_write() argument 381 reglist = et8ek8_reglist_find_type(meta, type); in et8ek8_i2c_reglist_find_write() 389 struct et8ek8_meta_reglist *meta) in et8ek8_reglist_first() argument 391 return &meta->reglist[0].ptr; in et8ek8_reglist_first() 403 struct et8ek8_meta_reglist *meta, in et8ek8_reglist_find_mode_fmt() argument 406 struct et8ek8_reglist **list = et8ek8_reglist_first(meta); in et8ek8_reglist_find_mode_fmt() 457 struct et8ek8_meta_reglist *meta, in et8ek8_reglist_find_mode_ival() argument 462 struct et8ek8_reglist **list = et8ek8_reglist_first(meta); in et8ek8_reglist_find_mode_ival() [all …]
|
/drivers/nvme/host/ |
D | ioctl.c | 66 void *meta = NULL; in nvme_submit_user_cmd() local 86 meta = nvme_add_user_metadata(bio, meta_buffer, meta_len, in nvme_submit_user_cmd() 88 if (IS_ERR(meta)) { in nvme_submit_user_cmd() 89 ret = PTR_ERR(meta); in nvme_submit_user_cmd() 99 if (meta && !ret && !write) { in nvme_submit_user_cmd() 100 if (copy_to_user(meta_buffer, meta, meta_len)) in nvme_submit_user_cmd() 103 kfree(meta); in nvme_submit_user_cmd()
|
/drivers/net/dsa/hirschmann/ |
D | hellcreek.c | 710 u16 meta = 0; in __hellcreek_fdb_add() local 723 meta |= entry->portmask << HR_FDBWRM0_PORTMASK_SHIFT; in __hellcreek_fdb_add() 725 meta |= HR_FDBWRM0_OBT; in __hellcreek_fdb_add() 727 meta |= HR_FDBWRM0_PASS_BLOCKED; in __hellcreek_fdb_add() 729 meta |= HR_FDBWRM0_REPRIO_EN; in __hellcreek_fdb_add() 730 meta |= entry->reprio_tc << HR_FDBWRM0_REPRIO_TC_SHIFT; in __hellcreek_fdb_add() 732 hellcreek_write(hellcreek, meta, HR_FDBWRM0); in __hellcreek_fdb_add() 758 u16 meta, mac; in hellcreek_populate_fdb_entry() local 761 meta = hellcreek_read(hellcreek, HR_FDBMDRD); in hellcreek_populate_fdb_entry() 775 entry->portmask = (meta & HR_FDBMDRD_PORTMASK_MASK) >> in hellcreek_populate_fdb_entry() [all …]
|