Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/media/pci/cx18/
Dcx18-queue.c39 void _cx18_mdl_swap(struct cx18_mdl *mdl) in _cx18_mdl_swap() argument
43 list_for_each_entry(buf, &mdl->buf_list, list) { in _cx18_mdl_swap()
57 struct cx18_queue *_cx18_enqueue(struct cx18_stream *s, struct cx18_mdl *mdl, in _cx18_enqueue() argument
62 mdl->bytesused = 0; in _cx18_enqueue()
63 mdl->readpos = 0; in _cx18_enqueue()
64 mdl->m_flags = 0; in _cx18_enqueue()
65 mdl->skipped = 0; in _cx18_enqueue()
66 mdl->curr_buf = NULL; in _cx18_enqueue()
77 list_add(&mdl->list, &q->list); /* LIFO */ in _cx18_enqueue()
79 list_add_tail(&mdl->list, &q->list); /* FIFO */ in _cx18_enqueue()
[all …]
Dcx18-queue.h43 void _cx18_mdl_sync_for_device(struct cx18_stream *s, struct cx18_mdl *mdl);
46 struct cx18_mdl *mdl) in cx18_mdl_sync_for_device() argument
48 if (list_is_singular(&mdl->buf_list)) in cx18_mdl_sync_for_device()
49 cx18_buf_sync_for_device(s, list_first_entry(&mdl->buf_list, in cx18_mdl_sync_for_device()
53 _cx18_mdl_sync_for_device(s, mdl); in cx18_mdl_sync_for_device()
57 void _cx18_mdl_swap(struct cx18_mdl *mdl);
59 static inline void cx18_mdl_swap(struct cx18_mdl *mdl) in cx18_mdl_swap() argument
61 if (list_is_singular(&mdl->buf_list)) in cx18_mdl_swap()
62 cx18_buf_swap(list_first_entry(&mdl->buf_list, in cx18_mdl_swap()
65 _cx18_mdl_swap(mdl); in cx18_mdl_swap()
[all …]
Dcx18-fileops.c189 struct cx18_mdl *mdl; in cx18_get_mdl() local
202 while ((mdl = cx18_dequeue(s_vbi, in cx18_get_mdl()
205 cx18_process_vbi_data(cx, mdl, in cx18_get_mdl()
207 cx18_stream_put_mdl_fw(s_vbi, mdl); in cx18_get_mdl()
210 mdl = &cx->vbi.sliced_mpeg_mdl; in cx18_get_mdl()
211 if (mdl->readpos != mdl->bytesused) in cx18_get_mdl()
212 return mdl; in cx18_get_mdl()
216 mdl = cx18_dequeue(s, &s->q_full); in cx18_get_mdl()
217 if (mdl) { in cx18_get_mdl()
219 &mdl->m_flags)) in cx18_get_mdl()
[all …]
Dcx18-mailbox.c136 static void cx18_mdl_send_to_dvb(struct cx18_stream *s, struct cx18_mdl *mdl) in cx18_mdl_send_to_dvb() argument
140 if (s->dvb == NULL || !s->dvb->enabled || mdl->bytesused == 0) in cx18_mdl_send_to_dvb()
146 if (list_is_singular(&mdl->buf_list)) { in cx18_mdl_send_to_dvb()
147 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer, in cx18_mdl_send_to_dvb()
155 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_mdl_send_to_dvb()
163 struct cx18_mdl *mdl) in cx18_mdl_send_to_videobuf() argument
171 if (mdl->bytesused == 0) in cx18_mdl_send_to_videobuf()
187 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_mdl_send_to_videobuf()
218 struct cx18_mdl *mdl) in cx18_mdl_send_to_alsa() argument
222 if (mdl->bytesused == 0) in cx18_mdl_send_to_alsa()
[all …]
Dcx18-ioctl.c728 static int cx18_process_idx_data(struct cx18_stream *s, struct cx18_mdl *mdl, in cx18_process_idx_data() argument
734 if (mdl->curr_buf == NULL) in cx18_process_idx_data()
735 mdl->curr_buf = list_first_entry(&mdl->buf_list, in cx18_process_idx_data()
738 if (list_entry_is_past_end(mdl->curr_buf, &mdl->buf_list, list)) { in cx18_process_idx_data()
744 mdl->readpos = mdl->bytesused; in cx18_process_idx_data()
748 list_for_each_entry_from(mdl->curr_buf, &mdl->buf_list, list) { in cx18_process_idx_data()
751 if (mdl->curr_buf->readpos >= mdl->curr_buf->bytesused) in cx18_process_idx_data()
754 mdl->readpos += _cx18_process_idx_data(mdl->curr_buf, idx); in cx18_process_idx_data()
758 mdl->curr_buf->readpos < mdl->curr_buf->bytesused || in cx18_process_idx_data()
759 mdl->readpos >= mdl->bytesused) in cx18_process_idx_data()
[all …]
Dcx18-streams.c666 struct cx18_mdl *mdl; in cx18_stream_rotate_idx_mdls() local
684 mdl = cx18_dequeue(s, &s->q_full); in cx18_stream_rotate_idx_mdls()
685 if (mdl != NULL) in cx18_stream_rotate_idx_mdls()
686 cx18_enqueue(s, mdl, &s->q_free); in cx18_stream_rotate_idx_mdls()
691 struct cx18_mdl *mdl) in _cx18_stream_put_mdl_fw() argument
700 return cx18_enqueue(s, mdl, &s->q_free); in _cx18_stream_put_mdl_fw()
702 q = cx18_enqueue(s, mdl, &s->q_busy); in _cx18_stream_put_mdl_fw()
706 cx18_mdl_sync_for_device(s, mdl); in _cx18_stream_put_mdl_fw()
708 (void __iomem *) &cx->scb->cpu_mdl[mdl->id] - cx->enc_mem, in _cx18_stream_put_mdl_fw()
709 s->bufs_per_mdl, mdl->id, s->mdl_size); in _cx18_stream_put_mdl_fw()
[all …]
Dcx18-streams.h49 struct cx18_mdl *mdl) in cx18_stream_put_mdl_fw() argument
52 cx18_enqueue(s, mdl, &s->q_free); in cx18_stream_put_mdl_fw()
Dcx18-vbi.c251 void cx18_process_vbi_data(struct cx18 *cx, struct cx18_mdl *mdl, in cx18_process_vbi_data() argument
270 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_process_vbi_data()
275 mdl->bytesused -= (orig_used - buf->bytesused); in cx18_process_vbi_data()
Dcx18-vbi.h24 void cx18_process_vbi_data(struct cx18 *cx, struct cx18_mdl *mdl,
/linux-4.1.27/drivers/net/ethernet/brocade/bna/
Dbna_tx_rx.c767 res_info[BNA_RX_RES_MEM_T_RIT].res_u.mem_info.mdl[0].kva; in bna_rxf_init()
2266 res_info[BNA_MOD_RES_MEM_T_RX_ARRAY].res_u.mem_info.mdl[0].kva; in bna_rx_mod_init()
2268 res_info[BNA_MOD_RES_MEM_T_RXP_ARRAY].res_u.mem_info.mdl[0].kva; in bna_rx_mod_init()
2270 res_info[BNA_MOD_RES_MEM_T_RXQ_ARRAY].res_u.mem_info.mdl[0].kva; in bna_rx_mod_init()
2537 ccb_mem = &res_info[BNA_RX_RES_MEM_T_CCB].res_u.mem_info.mdl[0]; in bna_rx_create()
2538 rcb_mem = &res_info[BNA_RX_RES_MEM_T_RCB].res_u.mem_info.mdl[0]; in bna_rx_create()
2539 dqunmap_mem = &res_info[BNA_RX_RES_MEM_T_UNMAPDQ].res_u.mem_info.mdl[0]; in bna_rx_create()
2540 hqunmap_mem = &res_info[BNA_RX_RES_MEM_T_UNMAPHQ].res_u.mem_info.mdl[0]; in bna_rx_create()
2541 cqpt_mem = &res_info[BNA_RX_RES_MEM_T_CQPT].res_u.mem_info.mdl[0]; in bna_rx_create()
2542 cswqpt_mem = &res_info[BNA_RX_RES_MEM_T_CSWQPT].res_u.mem_info.mdl[0]; in bna_rx_create()
[all …]
Dbna_enet.c1731 &res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.mdl[0].dma, dma); in bna_ioceth_init()
1732 kva = res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.mdl[0].kva; in bna_ioceth_init()
1735 kva = res_info[BNA_RES_MEM_T_FWTRC].res_u.mem_info.mdl[0].kva; in bna_ioceth_init()
1743 &res_info[BNA_RES_MEM_T_COM].res_u.mem_info.mdl[0].dma, dma); in bna_ioceth_init()
1744 kva = res_info[BNA_RES_MEM_T_COM].res_u.mem_info.mdl[0].kva; in bna_ioceth_init()
1810 res_info[BNA_MOD_RES_MEM_T_UCMAC_ARRAY].res_u.mem_info.mdl[0].kva; in bna_ucam_mod_init()
1852 res_info[BNA_MOD_RES_MEM_T_MCMAC_ARRAY].res_u.mem_info.mdl[0].kva; in bna_mcam_mod_init()
1861 res_info[BNA_MOD_RES_MEM_T_MCHANDLE_ARRAY].res_u.mem_info.mdl[0].kva; in bna_mcam_mod_init()
2032 res_info[BNA_RES_MEM_T_STATS].res_u.mem_info.mdl[0].kva; in bna_init()
2034 res_info[BNA_RES_MEM_T_STATS].res_u.mem_info.mdl[0].dma.msb; in bna_init()
[all …]
Dbnad.c1329 if (mem_info->mdl == NULL) in bnad_mem_free()
1333 if (mem_info->mdl[i].kva != NULL) { in bnad_mem_free()
1335 BNA_GET_DMA_ADDR(&(mem_info->mdl[i].dma), in bnad_mem_free()
1338 mem_info->mdl[i].len, in bnad_mem_free()
1339 mem_info->mdl[i].kva, dma_pa); in bnad_mem_free()
1341 kfree(mem_info->mdl[i].kva); in bnad_mem_free()
1344 kfree(mem_info->mdl); in bnad_mem_free()
1345 mem_info->mdl = NULL; in bnad_mem_free()
1356 mem_info->mdl = NULL; in bnad_mem_alloc()
1360 mem_info->mdl = kcalloc(mem_info->num, sizeof(struct bna_mem_descr), in bnad_mem_alloc()
[all …]
Dbna_types.h287 struct bna_mem_descr *mdl; member
/linux-4.1.27/sound/drivers/
Ddummy.c1052 struct dummy_model *m = NULL, **mdl; in snd_dummy_probe() local
1062 for (mdl = dummy_models; *mdl && model[dev]; mdl++) { in snd_dummy_probe()
1063 if (strcmp(model[dev], (*mdl)->name) == 0) { in snd_dummy_probe()
1066 (*mdl)->name, card->number); in snd_dummy_probe()
1067 m = dummy->model = *mdl; in snd_dummy_probe()
/linux-4.1.27/Documentation/
Dparport-lowlevel.txt875 int parport_find_device (const char *mfg, const char *mdl, int from);