Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/media/video/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.c188 struct cx18_mdl *mdl; in cx18_get_mdl() local
201 while ((mdl = cx18_dequeue(s_vbi, in cx18_get_mdl()
204 cx18_process_vbi_data(cx, mdl, in cx18_get_mdl()
206 cx18_stream_put_mdl_fw(s_vbi, mdl); in cx18_get_mdl()
209 mdl = &cx->vbi.sliced_mpeg_mdl; in cx18_get_mdl()
210 if (mdl->readpos != mdl->bytesused) in cx18_get_mdl()
211 return mdl; in cx18_get_mdl()
215 mdl = cx18_dequeue(s, &s->q_full); in cx18_get_mdl()
216 if (mdl) { in cx18_get_mdl()
218 &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.c792 static int cx18_process_idx_data(struct cx18_stream *s, struct cx18_mdl *mdl, in cx18_process_idx_data() argument
798 if (mdl->curr_buf == NULL) in cx18_process_idx_data()
799 mdl->curr_buf = list_first_entry(&mdl->buf_list, in cx18_process_idx_data()
802 if (list_entry_is_past_end(mdl->curr_buf, &mdl->buf_list, list)) { in cx18_process_idx_data()
808 mdl->readpos = mdl->bytesused; in cx18_process_idx_data()
812 list_for_each_entry_from(mdl->curr_buf, &mdl->buf_list, list) { in cx18_process_idx_data()
815 if (mdl->curr_buf->readpos >= mdl->curr_buf->bytesused) in cx18_process_idx_data()
818 mdl->readpos += _cx18_process_idx_data(mdl->curr_buf, idx); in cx18_process_idx_data()
822 mdl->curr_buf->readpos < mdl->curr_buf->bytesused || in cx18_process_idx_data()
823 mdl->readpos >= mdl->bytesused) in cx18_process_idx_data()
[all …]
Dcx18-streams.c670 struct cx18_mdl *mdl; in cx18_stream_rotate_idx_mdls() local
688 mdl = cx18_dequeue(s, &s->q_full); in cx18_stream_rotate_idx_mdls()
689 if (mdl != NULL) in cx18_stream_rotate_idx_mdls()
690 cx18_enqueue(s, mdl, &s->q_free); in cx18_stream_rotate_idx_mdls()
695 struct cx18_mdl *mdl) in _cx18_stream_put_mdl_fw() argument
704 return cx18_enqueue(s, mdl, &s->q_free); in _cx18_stream_put_mdl_fw()
706 q = cx18_enqueue(s, mdl, &s->q_busy); in _cx18_stream_put_mdl_fw()
710 cx18_mdl_sync_for_device(s, mdl); in _cx18_stream_put_mdl_fw()
712 (void __iomem *) &cx->scb->cpu_mdl[mdl->id] - cx->enc_mem, in _cx18_stream_put_mdl_fw()
713 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-3.4.99/drivers/net/ethernet/brocade/bna/
Dbna_tx_rx.c755 res_info[BNA_RX_RES_MEM_T_RIT].res_u.mem_info.mdl[0].kva; in bna_rxf_init()
2079 res_info[BNA_MOD_RES_MEM_T_RX_ARRAY].res_u.mem_info.mdl[0].kva; in bna_rx_mod_init()
2081 res_info[BNA_MOD_RES_MEM_T_RXP_ARRAY].res_u.mem_info.mdl[0].kva; in bna_rx_mod_init()
2083 res_info[BNA_MOD_RES_MEM_T_RXQ_ARRAY].res_u.mem_info.mdl[0].kva; in bna_rx_mod_init()
2348 ccb_mem = &res_info[BNA_RX_RES_MEM_T_CCB].res_u.mem_info.mdl[0]; in bna_rx_create()
2349 rcb_mem = &res_info[BNA_RX_RES_MEM_T_RCB].res_u.mem_info.mdl[0]; in bna_rx_create()
2350 unmapq_mem = &res_info[BNA_RX_RES_MEM_T_UNMAPQ].res_u.mem_info.mdl[0]; in bna_rx_create()
2351 cqpt_mem = &res_info[BNA_RX_RES_MEM_T_CQPT].res_u.mem_info.mdl[0]; in bna_rx_create()
2352 cswqpt_mem = &res_info[BNA_RX_RES_MEM_T_CSWQPT].res_u.mem_info.mdl[0]; in bna_rx_create()
2353 cpage_mem = &res_info[BNA_RX_RES_MEM_T_CQPT_PAGE].res_u.mem_info.mdl[0]; in bna_rx_create()
[all …]
Dbna_enet.c1725 &res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.mdl[0].dma, dma); in bna_ioceth_init()
1726 kva = res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.mdl[0].kva; in bna_ioceth_init()
1729 kva = res_info[BNA_RES_MEM_T_FWTRC].res_u.mem_info.mdl[0].kva; in bna_ioceth_init()
1737 &res_info[BNA_RES_MEM_T_COM].res_u.mem_info.mdl[0].dma, dma); in bna_ioceth_init()
1738 kva = res_info[BNA_RES_MEM_T_COM].res_u.mem_info.mdl[0].kva; in bna_ioceth_init()
1804 res_info[BNA_MOD_RES_MEM_T_UCMAC_ARRAY].res_u.mem_info.mdl[0].kva; in bna_ucam_mod_init()
1834 res_info[BNA_MOD_RES_MEM_T_MCMAC_ARRAY].res_u.mem_info.mdl[0].kva; in bna_mcam_mod_init()
1843 res_info[BNA_MOD_RES_MEM_T_MCHANDLE_ARRAY].res_u.mem_info.mdl[0].kva; in bna_mcam_mod_init()
2004 res_info[BNA_RES_MEM_T_STATS].res_u.mem_info.mdl[0].kva; in bna_init()
2006 res_info[BNA_RES_MEM_T_STATS].res_u.mem_info.mdl[0].dma.msb; in bna_init()
[all …]
Dbnad.c1130 if (mem_info->mdl == NULL) in bnad_mem_free()
1134 if (mem_info->mdl[i].kva != NULL) { in bnad_mem_free()
1136 BNA_GET_DMA_ADDR(&(mem_info->mdl[i].dma), in bnad_mem_free()
1139 mem_info->mdl[i].len, in bnad_mem_free()
1140 mem_info->mdl[i].kva, dma_pa); in bnad_mem_free()
1142 kfree(mem_info->mdl[i].kva); in bnad_mem_free()
1145 kfree(mem_info->mdl); in bnad_mem_free()
1146 mem_info->mdl = NULL; in bnad_mem_free()
1157 mem_info->mdl = NULL; in bnad_mem_alloc()
1161 mem_info->mdl = kcalloc(mem_info->num, sizeof(struct bna_mem_descr), in bnad_mem_alloc()
[all …]
Dbna_types.h293 struct bna_mem_descr *mdl; member
/linux-3.4.99/sound/drivers/
Ddummy.c984 struct dummy_model *m = NULL, **mdl; in snd_dummy_probe() local
994 for (mdl = dummy_models; *mdl && model[dev]; mdl++) { in snd_dummy_probe()
995 if (strcmp(model[dev], (*mdl)->name) == 0) { in snd_dummy_probe()
998 (*mdl)->name, card->number); in snd_dummy_probe()
999 m = dummy->model = *mdl; in snd_dummy_probe()
/linux-3.4.99/Documentation/
Dparport-lowlevel.txt875 int parport_find_device (const char *mfg, const char *mdl, int from);