Home
last modified time | relevance | path

Searched refs:mdl (Results 1 – 18 of 18) sorted by relevance

/Linux-v6.6/drivers/media/pci/cx18/
Dcx18-queue.c25 void _cx18_mdl_swap(struct cx18_mdl *mdl) in _cx18_mdl_swap() argument
29 list_for_each_entry(buf, &mdl->buf_list, list) { in _cx18_mdl_swap()
43 struct cx18_queue *_cx18_enqueue(struct cx18_stream *s, struct cx18_mdl *mdl, in _cx18_enqueue() argument
48 mdl->bytesused = 0; in _cx18_enqueue()
49 mdl->readpos = 0; in _cx18_enqueue()
50 mdl->m_flags = 0; in _cx18_enqueue()
51 mdl->skipped = 0; in _cx18_enqueue()
52 mdl->curr_buf = NULL; in _cx18_enqueue()
63 list_add(&mdl->list, &q->list); /* LIFO */ in _cx18_enqueue()
65 list_add_tail(&mdl->list, &q->list); /* FIFO */ in _cx18_enqueue()
[all …]
Dcx18-queue.h29 void _cx18_mdl_sync_for_device(struct cx18_stream *s, struct cx18_mdl *mdl);
32 struct cx18_mdl *mdl) in cx18_mdl_sync_for_device() argument
34 if (list_is_singular(&mdl->buf_list)) in cx18_mdl_sync_for_device()
35 cx18_buf_sync_for_device(s, list_first_entry(&mdl->buf_list, in cx18_mdl_sync_for_device()
39 _cx18_mdl_sync_for_device(s, mdl); in cx18_mdl_sync_for_device()
43 void _cx18_mdl_swap(struct cx18_mdl *mdl);
45 static inline void cx18_mdl_swap(struct cx18_mdl *mdl) in cx18_mdl_swap() argument
47 if (list_is_singular(&mdl->buf_list)) in cx18_mdl_swap()
48 cx18_buf_swap(list_first_entry(&mdl->buf_list, in cx18_mdl_swap()
51 _cx18_mdl_swap(mdl); in cx18_mdl_swap()
[all …]
Dcx18-fileops.c174 struct cx18_mdl *mdl; in cx18_get_mdl() local
187 while ((mdl = cx18_dequeue(s_vbi, in cx18_get_mdl()
190 cx18_process_vbi_data(cx, mdl, in cx18_get_mdl()
192 cx18_stream_put_mdl_fw(s_vbi, mdl); in cx18_get_mdl()
195 mdl = &cx->vbi.sliced_mpeg_mdl; in cx18_get_mdl()
196 if (mdl->readpos != mdl->bytesused) in cx18_get_mdl()
197 return mdl; in cx18_get_mdl()
201 mdl = cx18_dequeue(s, &s->q_full); in cx18_get_mdl()
202 if (mdl) { in cx18_get_mdl()
204 &mdl->m_flags)) in cx18_get_mdl()
[all …]
Dcx18-mailbox.c122 static void cx18_mdl_send_to_dvb(struct cx18_stream *s, struct cx18_mdl *mdl) in cx18_mdl_send_to_dvb() argument
126 if (s->dvb == NULL || !s->dvb->enabled || mdl->bytesused == 0) in cx18_mdl_send_to_dvb()
132 if (list_is_singular(&mdl->buf_list)) { in cx18_mdl_send_to_dvb()
133 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer, in cx18_mdl_send_to_dvb()
141 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_mdl_send_to_dvb()
148 static void cx18_mdl_send_to_vb2(struct cx18_stream *s, struct cx18_mdl *mdl) in cx18_mdl_send_to_vb2() argument
157 if (mdl->bytesused == 0) in cx18_mdl_send_to_vb2()
174 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_mdl_send_to_vb2()
205 struct cx18_mdl *mdl) in cx18_mdl_send_to_alsa() argument
209 if (mdl->bytesused == 0) in cx18_mdl_send_to_alsa()
[all …]
Dcx18-ioctl.c757 static int cx18_process_idx_data(struct cx18_stream *s, struct cx18_mdl *mdl, in cx18_process_idx_data() argument
763 if (mdl->curr_buf == NULL) in cx18_process_idx_data()
764 mdl->curr_buf = list_first_entry(&mdl->buf_list, in cx18_process_idx_data()
767 if (list_entry_is_past_end(mdl->curr_buf, &mdl->buf_list, list)) { in cx18_process_idx_data()
773 mdl->readpos = mdl->bytesused; in cx18_process_idx_data()
777 list_for_each_entry_from(mdl->curr_buf, &mdl->buf_list, list) { in cx18_process_idx_data()
780 if (mdl->curr_buf->readpos >= mdl->curr_buf->bytesused) in cx18_process_idx_data()
783 mdl->readpos += _cx18_process_idx_data(mdl->curr_buf, idx); in cx18_process_idx_data()
787 mdl->curr_buf->readpos < mdl->curr_buf->bytesused || in cx18_process_idx_data()
788 mdl->readpos >= mdl->bytesused) in cx18_process_idx_data()
[all …]
Dcx18-streams.c662 struct cx18_mdl *mdl; in cx18_stream_rotate_idx_mdls() local
680 mdl = cx18_dequeue(s, &s->q_full); in cx18_stream_rotate_idx_mdls()
681 if (mdl != NULL) in cx18_stream_rotate_idx_mdls()
682 cx18_enqueue(s, mdl, &s->q_free); in cx18_stream_rotate_idx_mdls()
687 struct cx18_mdl *mdl) in _cx18_stream_put_mdl_fw() argument
696 return cx18_enqueue(s, mdl, &s->q_free); in _cx18_stream_put_mdl_fw()
698 q = cx18_enqueue(s, mdl, &s->q_busy); in _cx18_stream_put_mdl_fw()
702 cx18_mdl_sync_for_device(s, mdl); in _cx18_stream_put_mdl_fw()
704 (void __iomem *) &cx->scb->cpu_mdl[mdl->id] - cx->enc_mem, in _cx18_stream_put_mdl_fw()
705 s->bufs_per_mdl, mdl->id, s->mdl_size); in _cx18_stream_put_mdl_fw()
[all …]
Dcx18-streams.h35 struct cx18_mdl *mdl) in cx18_stream_put_mdl_fw() argument
38 cx18_enqueue(s, mdl, &s->q_free); in cx18_stream_put_mdl_fw()
Dcx18-vbi.c237 void cx18_process_vbi_data(struct cx18 *cx, struct cx18_mdl *mdl, in cx18_process_vbi_data() argument
256 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_process_vbi_data()
261 mdl->bytesused -= (orig_used - buf->bytesused); in cx18_process_vbi_data()
Dcx18-vbi.h10 void cx18_process_vbi_data(struct cx18 *cx, struct cx18_mdl *mdl,
/Linux-v6.6/tools/testing/selftests/net/forwarding/
Dtc_flower_cfm.sh40 local mdl=$1; shift
97 flower cfm mdl 5 action drop
99 flower cfm mdl 3 action drop
101 flower cfm mdl 0 action drop
144 flower cfm mdl 5 op 41 action drop
146 flower cfm mdl 7 op 42 action drop
/Linux-v6.6/drivers/net/ethernet/brocade/bna/
Dbna_tx_rx.c628 res_info[BNA_RX_RES_MEM_T_RIT].res_u.mem_info.mdl[0].kva; in bna_rxf_init()
2035 res_info[BNA_MOD_RES_MEM_T_RX_ARRAY].res_u.mem_info.mdl[0].kva; in bna_rx_mod_init()
2037 res_info[BNA_MOD_RES_MEM_T_RXP_ARRAY].res_u.mem_info.mdl[0].kva; in bna_rx_mod_init()
2039 res_info[BNA_MOD_RES_MEM_T_RXQ_ARRAY].res_u.mem_info.mdl[0].kva; in bna_rx_mod_init()
2284 ccb_mem = &res_info[BNA_RX_RES_MEM_T_CCB].res_u.mem_info.mdl[0]; in bna_rx_create()
2285 rcb_mem = &res_info[BNA_RX_RES_MEM_T_RCB].res_u.mem_info.mdl[0]; in bna_rx_create()
2286 dqunmap_mem = &res_info[BNA_RX_RES_MEM_T_UNMAPDQ].res_u.mem_info.mdl[0]; in bna_rx_create()
2287 hqunmap_mem = &res_info[BNA_RX_RES_MEM_T_UNMAPHQ].res_u.mem_info.mdl[0]; in bna_rx_create()
2288 cqpt_mem = &res_info[BNA_RX_RES_MEM_T_CQPT].res_u.mem_info.mdl[0]; in bna_rx_create()
2289 cswqpt_mem = &res_info[BNA_RX_RES_MEM_T_CSWQPT].res_u.mem_info.mdl[0]; in bna_rx_create()
[all …]
Dbna_enet.c1705 &res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.mdl[0].dma, dma); in bna_ioceth_init()
1706 kva = res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.mdl[0].kva; in bna_ioceth_init()
1709 kva = res_info[BNA_RES_MEM_T_FWTRC].res_u.mem_info.mdl[0].kva; in bna_ioceth_init()
1717 &res_info[BNA_RES_MEM_T_COM].res_u.mem_info.mdl[0].dma, dma); in bna_ioceth_init()
1718 kva = res_info[BNA_RES_MEM_T_COM].res_u.mem_info.mdl[0].kva; in bna_ioceth_init()
1784 res_info[BNA_MOD_RES_MEM_T_UCMAC_ARRAY].res_u.mem_info.mdl[0].kva; in bna_ucam_mod_init()
1811 res_info[BNA_MOD_RES_MEM_T_MCMAC_ARRAY].res_u.mem_info.mdl[0].kva; in bna_mcam_mod_init()
1818 res_info[BNA_MOD_RES_MEM_T_MCHANDLE_ARRAY].res_u.mem_info.mdl[0].kva; in bna_mcam_mod_init()
1973 res_info[BNA_RES_MEM_T_STATS].res_u.mem_info.mdl[0].kva; in bna_init()
1975 res_info[BNA_RES_MEM_T_STATS].res_u.mem_info.mdl[0].dma.msb; in bna_init()
[all …]
Dbnad.c1316 if (mem_info->mdl == NULL) in bnad_mem_free()
1320 if (mem_info->mdl[i].kva != NULL) { in bnad_mem_free()
1322 BNA_GET_DMA_ADDR(&(mem_info->mdl[i].dma), in bnad_mem_free()
1325 mem_info->mdl[i].len, in bnad_mem_free()
1326 mem_info->mdl[i].kva, dma_pa); in bnad_mem_free()
1328 kfree(mem_info->mdl[i].kva); in bnad_mem_free()
1331 kfree(mem_info->mdl); in bnad_mem_free()
1332 mem_info->mdl = NULL; in bnad_mem_free()
1343 mem_info->mdl = NULL; in bnad_mem_alloc()
1347 mem_info->mdl = kcalloc(mem_info->num, sizeof(struct bna_mem_descr), in bnad_mem_alloc()
[all …]
Dbna_types.h272 struct bna_mem_descr *mdl; member
/Linux-v6.6/sound/drivers/
Ddummy.c1024 const struct dummy_model *m = NULL, **mdl; in snd_dummy_probe() local
1034 for (mdl = dummy_models; *mdl && model[dev]; mdl++) { in snd_dummy_probe()
1035 if (strcmp(model[dev], (*mdl)->name) == 0) { in snd_dummy_probe()
1038 (*mdl)->name, card->number); in snd_dummy_probe()
1039 m = dummy->model = *mdl; in snd_dummy_probe()
/Linux-v6.6/Documentation/devicetree/bindings/leds/
Dleds-cpcap.txt9 * "motorola,cpcap-led-mdl" (Main Display Lighting)
/Linux-v6.6/net/sched/
Dcls_flower.c3135 u8 mdl; in fl_dump_key_cfm() local
3145 mdl = FIELD_GET(FLOW_DIS_CFM_MDL_MASK, key->mdl_ver); in fl_dump_key_cfm()
3146 err = nla_put_u8(skb, TCA_FLOWER_KEY_CFM_MD_LEVEL, mdl); in fl_dump_key_cfm()
/Linux-v6.6/Documentation/driver-api/
Dparport-lowlevel.rst1066 int parport_find_device (const char *mfg, const char *mdl, int from);