/linux-4.4.14/drivers/media/pci/cx18/ |
H A D | cx18-queue.c | 39 void _cx18_mdl_swap(struct cx18_mdl *mdl) _cx18_mdl_swap() argument 43 list_for_each_entry(buf, &mdl->buf_list, list) { _cx18_mdl_swap() 57 struct cx18_queue *_cx18_enqueue(struct cx18_stream *s, struct cx18_mdl *mdl, _cx18_enqueue() argument 60 /* clear the mdl if it is not to be enqueued to the full queue */ _cx18_enqueue() 62 mdl->bytesused = 0; _cx18_enqueue() 63 mdl->readpos = 0; _cx18_enqueue() 64 mdl->m_flags = 0; _cx18_enqueue() 65 mdl->skipped = 0; _cx18_enqueue() 66 mdl->curr_buf = NULL; _cx18_enqueue() 77 list_add(&mdl->list, &q->list); /* LIFO */ _cx18_enqueue() 79 list_add_tail(&mdl->list, &q->list); /* FIFO */ _cx18_enqueue() 80 q->bytesused += mdl->bytesused - mdl->readpos; _cx18_enqueue() 89 struct cx18_mdl *mdl = NULL; cx18_dequeue() local 93 mdl = list_first_entry(&q->list, struct cx18_mdl, list); cx18_dequeue() 94 list_del_init(&mdl->list); cx18_dequeue() 95 q->bytesused -= mdl->bytesused - mdl->readpos; cx18_dequeue() 96 mdl->skipped = 0; cx18_dequeue() 100 return mdl; cx18_dequeue() 104 struct cx18_mdl *mdl) _cx18_mdl_update_bufs_for_cpu() 108 u32 bytesused = mdl->bytesused; _cx18_mdl_update_bufs_for_cpu() 110 list_for_each_entry(buf, &mdl->buf_list, list) { _cx18_mdl_update_bufs_for_cpu() 124 struct cx18_mdl *mdl) cx18_mdl_update_bufs_for_cpu() 128 if (list_is_singular(&mdl->buf_list)) { cx18_mdl_update_bufs_for_cpu() 129 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer, cx18_mdl_update_bufs_for_cpu() 131 buf->bytesused = mdl->bytesused; cx18_mdl_update_bufs_for_cpu() 135 _cx18_mdl_update_bufs_for_cpu(s, mdl); cx18_mdl_update_bufs_for_cpu() 143 struct cx18_mdl *mdl; cx18_queue_get_mdl() local 155 list_for_each_entry_safe(mdl, tmp, &s->q_busy.list, list) { cx18_queue_get_mdl() 159 * missed an mdl done message from the firmware. cx18_queue_get_mdl() 160 * Once we skip an mdl repeatedly, relative to the size of cx18_queue_get_mdl() 163 if (mdl->id != id) { cx18_queue_get_mdl() 164 mdl->skipped++; cx18_queue_get_mdl() 165 if (mdl->skipped >= atomic_read(&s->q_busy.depth)-1) { cx18_queue_get_mdl() 166 /* mdl must have fallen out of rotation */ cx18_queue_get_mdl() 169 "rotation\n", s->name, mdl->id, cx18_queue_get_mdl() 170 mdl->skipped); cx18_queue_get_mdl() 172 list_move_tail(&mdl->list, &sweep_up); cx18_queue_get_mdl() 178 * We pull the desired mdl off of the queue here. Something cx18_queue_get_mdl() 181 list_del_init(&mdl->list); cx18_queue_get_mdl() 183 ret = mdl; cx18_queue_get_mdl() 189 * We found the mdl for which we were looking. Get it ready for cx18_queue_get_mdl() 195 /* 0'ed readpos, m_flags & curr_buf when mdl went on q_busy */ cx18_queue_get_mdl() 202 list_for_each_entry_safe(mdl, tmp, &sweep_up, list) { cx18_queue_get_mdl() 203 list_del_init(&mdl->list); cx18_queue_get_mdl() 204 cx18_enqueue(s, mdl, &s->q_free); cx18_queue_get_mdl() 209 /* Move all mdls of a queue, while flushing the mdl */ cx18_queue_flush() 213 struct cx18_mdl *mdl; cx18_queue_flush() local 222 mdl = list_first_entry(&q_src->list, struct cx18_mdl, list); cx18_queue_flush() 223 list_move_tail(&mdl->list, &q_dst->list); cx18_queue_flush() 224 mdl->bytesused = 0; cx18_queue_flush() 225 mdl->readpos = 0; cx18_queue_flush() 226 mdl->m_flags = 0; cx18_queue_flush() 227 mdl->skipped = 0; cx18_queue_flush() 228 mdl->curr_buf = NULL; cx18_queue_flush() 249 struct cx18_mdl *mdl; cx18_unload_queues() local 259 list_for_each_entry(mdl, &q_idle->list, list) { cx18_unload_queues() 260 while (!list_empty(&mdl->buf_list)) { cx18_unload_queues() 261 buf = list_first_entry(&mdl->buf_list, cx18_unload_queues() 267 mdl->id = s->mdl_base_idx; /* reset id to a "safe" value */ cx18_unload_queues() 268 /* all other mdl fields were cleared by cx18_queue_flush() */ cx18_unload_queues() 280 struct cx18_mdl *mdl; cx18_load_queues() local 292 for (mdl = cx18_dequeue(s, &s->q_idle), i = s->bufs_per_mdl; cx18_load_queues() 293 mdl != NULL && i == s->bufs_per_mdl; cx18_load_queues() 294 mdl = cx18_dequeue(s, &s->q_idle)) { cx18_load_queues() 296 mdl->id = mdl_id; cx18_load_queues() 304 list_move_tail(&buf->list, &mdl->buf_list); cx18_load_queues() 326 cx18_enqueue(s, mdl, &s->q_free); cx18_load_queues() 329 cx18_push(s, mdl, &s->q_idle); cx18_load_queues() 335 void _cx18_mdl_sync_for_device(struct cx18_stream *s, struct cx18_mdl *mdl) _cx18_mdl_sync_for_device() argument 342 list_for_each_entry(buf, &mdl->buf_list, list) _cx18_mdl_sync_for_device() 376 struct cx18_mdl *mdl; cx18_stream_alloc() local 380 mdl = kzalloc(sizeof(struct cx18_mdl), GFP_KERNEL|__GFP_NOWARN); cx18_stream_alloc() 381 if (mdl == NULL) cx18_stream_alloc() 387 kfree(mdl); cx18_stream_alloc() 393 kfree(mdl); cx18_stream_alloc() 398 INIT_LIST_HEAD(&mdl->list); cx18_stream_alloc() 399 INIT_LIST_HEAD(&mdl->buf_list); cx18_stream_alloc() 400 mdl->id = s->mdl_base_idx; /* a somewhat safe value */ cx18_stream_alloc() 401 cx18_enqueue(s, mdl, &s->q_idle); cx18_stream_alloc() 420 struct cx18_mdl *mdl; cx18_stream_free() local 430 while ((mdl = cx18_dequeue(s, &s->q_idle))) cx18_stream_free() 431 kfree(mdl); cx18_stream_free() 103 _cx18_mdl_update_bufs_for_cpu(struct cx18_stream *s, struct cx18_mdl *mdl) _cx18_mdl_update_bufs_for_cpu() argument 123 cx18_mdl_update_bufs_for_cpu(struct cx18_stream *s, struct cx18_mdl *mdl) cx18_mdl_update_bufs_for_cpu() argument
|
H A D | cx18-queue.h | 43 void _cx18_mdl_sync_for_device(struct cx18_stream *s, struct cx18_mdl *mdl); 46 struct cx18_mdl *mdl) cx18_mdl_sync_for_device() 48 if (list_is_singular(&mdl->buf_list)) cx18_mdl_sync_for_device() 49 cx18_buf_sync_for_device(s, list_first_entry(&mdl->buf_list, cx18_mdl_sync_for_device() 53 _cx18_mdl_sync_for_device(s, mdl); 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) cx18_mdl_swap() argument 61 if (list_is_singular(&mdl->buf_list)) cx18_mdl_swap() 62 cx18_buf_swap(list_first_entry(&mdl->buf_list, cx18_mdl_swap() 65 _cx18_mdl_swap(mdl); cx18_mdl_swap() 69 struct cx18_queue *_cx18_enqueue(struct cx18_stream *s, struct cx18_mdl *mdl, 73 struct cx18_queue *cx18_enqueue(struct cx18_stream *s, struct cx18_mdl *mdl, cx18_enqueue() argument 76 return _cx18_enqueue(s, mdl, q, 0); /* FIFO */ cx18_enqueue() 80 struct cx18_queue *cx18_push(struct cx18_stream *s, struct cx18_mdl *mdl, cx18_push() argument 83 return _cx18_enqueue(s, mdl, q, 1); /* LIFO */ cx18_push() 45 cx18_mdl_sync_for_device(struct cx18_stream *s, struct cx18_mdl *mdl) cx18_mdl_sync_for_device() argument
|
H A D | cx18-streams.h | 49 struct cx18_mdl *mdl) cx18_stream_put_mdl_fw() 51 /* Put mdl on q_free; the out work handler will move mdl(s) to q_busy */ cx18_stream_put_mdl_fw() 52 cx18_enqueue(s, mdl, &s->q_free); cx18_stream_put_mdl_fw() 48 cx18_stream_put_mdl_fw(struct cx18_stream *s, struct cx18_mdl *mdl) cx18_stream_put_mdl_fw() argument
|
H A D | cx18-fileops.c | 189 struct cx18_mdl *mdl; cx18_get_mdl() local 202 while ((mdl = cx18_dequeue(s_vbi, cx18_get_mdl() 205 cx18_process_vbi_data(cx, mdl, cx18_get_mdl() 207 cx18_stream_put_mdl_fw(s_vbi, mdl); cx18_get_mdl() 210 mdl = &cx->vbi.sliced_mpeg_mdl; cx18_get_mdl() 211 if (mdl->readpos != mdl->bytesused) cx18_get_mdl() 212 return mdl; cx18_get_mdl() 216 mdl = cx18_dequeue(s, &s->q_full); cx18_get_mdl() 217 if (mdl) { cx18_get_mdl() 219 &mdl->m_flags)) cx18_get_mdl() 220 return mdl; cx18_get_mdl() 223 cx18_mdl_swap(mdl); cx18_get_mdl() 226 cx18_process_vbi_data(cx, mdl, s->type); cx18_get_mdl() 228 return mdl; cx18_get_mdl() 261 struct cx18_mdl *mdl = &cx->vbi.sliced_mpeg_mdl; cx18_setup_sliced_vbi_mdl() local 269 mdl->curr_buf = NULL; cx18_setup_sliced_vbi_mdl() 270 mdl->bytesused = cx->vbi.sliced_mpeg_size[idx]; cx18_setup_sliced_vbi_mdl() 271 mdl->readpos = 0; cx18_setup_sliced_vbi_mdl() 379 struct cx18_mdl *mdl, char __user *ubuf, size_t ucount) cx18_copy_mdl_to_user() 385 if (mdl->curr_buf == NULL) cx18_copy_mdl_to_user() 386 mdl->curr_buf = list_first_entry(&mdl->buf_list, cx18_copy_mdl_to_user() 389 if (list_entry_is_past_end(mdl->curr_buf, &mdl->buf_list, list)) { cx18_copy_mdl_to_user() 395 mdl->readpos = mdl->bytesused; cx18_copy_mdl_to_user() 399 list_for_each_entry_from(mdl->curr_buf, &mdl->buf_list, list) { cx18_copy_mdl_to_user() 401 if (mdl->curr_buf->readpos >= mdl->curr_buf->bytesused) cx18_copy_mdl_to_user() 404 rc = cx18_copy_buf_to_user(s, mdl->curr_buf, ubuf + tot_written, cx18_copy_mdl_to_user() 408 mdl->readpos += rc; cx18_copy_mdl_to_user() 413 mdl->curr_buf->readpos < mdl->curr_buf->bytesused || cx18_copy_mdl_to_user() 414 mdl->readpos >= mdl->bytesused) /* MDL buffers drained */ cx18_copy_mdl_to_user() 441 struct cx18_mdl *mdl; cx18_read() local 444 mdl = cx18_get_mdl(s, non_block, &rc); cx18_read() 446 if (mdl == NULL) { cx18_read() 460 rc = cx18_copy_mdl_to_user(s, mdl, ubuf + tot_written, cx18_read() 463 if (mdl != &cx->vbi.sliced_mpeg_mdl) { cx18_read() 464 if (mdl->readpos == mdl->bytesused) cx18_read() 465 cx18_stream_put_mdl_fw(s, mdl); cx18_read() 467 cx18_push(s, mdl, &s->q_full); cx18_read() 468 } else if (mdl->readpos == mdl->bytesused) { cx18_read() 473 cx->vbi_data_inserted += mdl->bytesused; cx18_read() 378 cx18_copy_mdl_to_user(struct cx18_stream *s, struct cx18_mdl *mdl, char __user *ubuf, size_t ucount) cx18_copy_mdl_to_user() argument
|
H A D | cx18-mailbox.c | 136 static void cx18_mdl_send_to_dvb(struct cx18_stream *s, struct cx18_mdl *mdl) cx18_mdl_send_to_dvb() argument 140 if (s->dvb == NULL || !s->dvb->enabled || mdl->bytesused == 0) cx18_mdl_send_to_dvb() 143 /* We ignore mdl and buf readpos accounting here - it doesn't matter */ cx18_mdl_send_to_dvb() 146 if (list_is_singular(&mdl->buf_list)) { cx18_mdl_send_to_dvb() 147 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer, cx18_mdl_send_to_dvb() 155 list_for_each_entry(buf, &mdl->buf_list, list) { cx18_mdl_send_to_dvb() 163 struct cx18_mdl *mdl) cx18_mdl_send_to_videobuf() 171 if (mdl->bytesused == 0) cx18_mdl_send_to_videobuf() 187 list_for_each_entry(buf, &mdl->buf_list, list) { cx18_mdl_send_to_videobuf() 218 struct cx18_mdl *mdl) cx18_mdl_send_to_alsa() 222 if (mdl->bytesused == 0) cx18_mdl_send_to_alsa() 225 /* We ignore mdl and buf readpos accounting here - it doesn't matter */ cx18_mdl_send_to_alsa() 228 if (list_is_singular(&mdl->buf_list)) { cx18_mdl_send_to_alsa() 229 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer, cx18_mdl_send_to_alsa() 237 list_for_each_entry(buf, &mdl->buf_list, list) { cx18_mdl_send_to_alsa() 250 struct cx18_mdl *mdl; epu_dma_done() local 298 mdl = cx18_queue_get_mdl(s, id, mdl_ack->data_used); epu_dma_done() 301 if (mdl == NULL) { epu_dma_done() 308 s->name, mdl->bytesused); epu_dma_done() 311 cx18_mdl_send_to_dvb(s, mdl); epu_dma_done() 312 cx18_enqueue(s, mdl, &s->q_free); epu_dma_done() 316 cx18_mdl_send_to_alsa(cx, s, mdl); epu_dma_done() 317 cx18_enqueue(s, mdl, &s->q_free); epu_dma_done() 319 cx18_enqueue(s, mdl, &s->q_full); epu_dma_done() 322 cx18_mdl_send_to_videobuf(s, mdl); epu_dma_done() 323 cx18_enqueue(s, mdl, &s->q_free); epu_dma_done() 325 cx18_enqueue(s, mdl, &s->q_full); epu_dma_done() 162 cx18_mdl_send_to_videobuf(struct cx18_stream *s, struct cx18_mdl *mdl) cx18_mdl_send_to_videobuf() argument 217 cx18_mdl_send_to_alsa(struct cx18 *cx, struct cx18_stream *s, struct cx18_mdl *mdl) cx18_mdl_send_to_alsa() argument
|
H A D | cx18-ioctl.c | 730 static int cx18_process_idx_data(struct cx18_stream *s, struct cx18_mdl *mdl, cx18_process_idx_data() argument 736 if (mdl->curr_buf == NULL) cx18_process_idx_data() 737 mdl->curr_buf = list_first_entry(&mdl->buf_list, cx18_process_idx_data() 740 if (list_entry_is_past_end(mdl->curr_buf, &mdl->buf_list, list)) { cx18_process_idx_data() 746 mdl->readpos = mdl->bytesused; cx18_process_idx_data() 750 list_for_each_entry_from(mdl->curr_buf, &mdl->buf_list, list) { cx18_process_idx_data() 753 if (mdl->curr_buf->readpos >= mdl->curr_buf->bytesused) cx18_process_idx_data() 756 mdl->readpos += _cx18_process_idx_data(mdl->curr_buf, idx); cx18_process_idx_data() 760 mdl->curr_buf->readpos < mdl->curr_buf->bytesused || cx18_process_idx_data() 761 mdl->readpos >= mdl->bytesused) cx18_process_idx_data() 773 struct cx18_mdl *mdl; cx18_g_enc_index() local 792 mdl = cx18_dequeue(s, &s->q_full); cx18_g_enc_index() 793 if (mdl == NULL) /* No more IDX data right now */ cx18_g_enc_index() 797 cx18_process_idx_data(s, mdl, idx); cx18_g_enc_index() 798 if (mdl->readpos < mdl->bytesused) { cx18_g_enc_index() 800 cx18_push(s, mdl, &s->q_full); cx18_g_enc_index() 805 cx18_enqueue(s, mdl, &s->q_free); cx18_g_enc_index()
|
H A D | cx18-streams.c | 666 struct cx18_mdl *mdl; cx18_stream_rotate_idx_mdls() local 684 mdl = cx18_dequeue(s, &s->q_full); cx18_stream_rotate_idx_mdls() 685 if (mdl != NULL) cx18_stream_rotate_idx_mdls() 686 cx18_enqueue(s, mdl, &s->q_free); cx18_stream_rotate_idx_mdls() 691 struct cx18_mdl *mdl) _cx18_stream_put_mdl_fw() 700 return cx18_enqueue(s, mdl, &s->q_free); _cx18_stream_put_mdl_fw() 702 q = cx18_enqueue(s, mdl, &s->q_busy); _cx18_stream_put_mdl_fw() 706 cx18_mdl_sync_for_device(s, mdl); _cx18_stream_put_mdl_fw() 708 (void __iomem *) &cx->scb->cpu_mdl[mdl->id] - cx->enc_mem, _cx18_stream_put_mdl_fw() 709 s->bufs_per_mdl, mdl->id, s->mdl_size); _cx18_stream_put_mdl_fw() 717 struct cx18_mdl *mdl; _cx18_stream_load_fw_queue() local 725 mdl = cx18_dequeue(s, &s->q_free); _cx18_stream_load_fw_queue() 726 if (mdl == NULL) _cx18_stream_load_fw_queue() 728 q = _cx18_stream_put_mdl_fw(s, mdl); _cx18_stream_load_fw_queue() 690 _cx18_stream_put_mdl_fw(struct cx18_stream *s, struct cx18_mdl *mdl) _cx18_stream_put_mdl_fw() argument
|
H A D | cx18-vbi.c | 251 void cx18_process_vbi_data(struct cx18 *cx, struct cx18_mdl *mdl, cx18_process_vbi_data() argument 270 list_for_each_entry(buf, &mdl->buf_list, list) { cx18_process_vbi_data() 275 mdl->bytesused -= (orig_used - buf->bytesused); cx18_process_vbi_data()
|
H A D | cx18-driver.h | 264 /* per-mdl bit flags */ 265 #define CX18_F_M_NEED_SWAP 0 /* mdl buffer data must be endianness swapped */ 399 u32 mdl_size; /* total bytes in all buffers in a mdl */ 559 * A dummy driver stream transfer mdl & buffer with a copy of the next
|
/linux-4.4.14/drivers/net/ethernet/brocade/bna/ |
H A D | bna_tx_rx.c | 636 res_info[BNA_RX_RES_MEM_T_RIT].res_u.mem_info.mdl[0].kva; bna_rxf_init() 2043 res_info[BNA_MOD_RES_MEM_T_RX_ARRAY].res_u.mem_info.mdl[0].kva; bna_rx_mod_init() 2045 res_info[BNA_MOD_RES_MEM_T_RXP_ARRAY].res_u.mem_info.mdl[0].kva; bna_rx_mod_init() 2047 res_info[BNA_MOD_RES_MEM_T_RXQ_ARRAY].res_u.mem_info.mdl[0].kva; bna_rx_mod_init() 2292 ccb_mem = &res_info[BNA_RX_RES_MEM_T_CCB].res_u.mem_info.mdl[0]; bna_rx_create() 2293 rcb_mem = &res_info[BNA_RX_RES_MEM_T_RCB].res_u.mem_info.mdl[0]; bna_rx_create() 2294 dqunmap_mem = &res_info[BNA_RX_RES_MEM_T_UNMAPDQ].res_u.mem_info.mdl[0]; bna_rx_create() 2295 hqunmap_mem = &res_info[BNA_RX_RES_MEM_T_UNMAPHQ].res_u.mem_info.mdl[0]; bna_rx_create() 2296 cqpt_mem = &res_info[BNA_RX_RES_MEM_T_CQPT].res_u.mem_info.mdl[0]; bna_rx_create() 2297 cswqpt_mem = &res_info[BNA_RX_RES_MEM_T_CSWQPT].res_u.mem_info.mdl[0]; bna_rx_create() 2298 cpage_mem = &res_info[BNA_RX_RES_MEM_T_CQPT_PAGE].res_u.mem_info.mdl[0]; bna_rx_create() 2299 hqpt_mem = &res_info[BNA_RX_RES_MEM_T_HQPT].res_u.mem_info.mdl[0]; bna_rx_create() 2300 dqpt_mem = &res_info[BNA_RX_RES_MEM_T_DQPT].res_u.mem_info.mdl[0]; bna_rx_create() 2301 hsqpt_mem = &res_info[BNA_RX_RES_MEM_T_HSWQPT].res_u.mem_info.mdl[0]; bna_rx_create() 2302 dsqpt_mem = &res_info[BNA_RX_RES_MEM_T_DSWQPT].res_u.mem_info.mdl[0]; bna_rx_create() 2303 hpage_mem = &res_info[BNA_RX_RES_MEM_T_HPAGE].res_u.mem_info.mdl[0]; bna_rx_create() 2304 dpage_mem = &res_info[BNA_RX_RES_MEM_T_DPAGE].res_u.mem_info.mdl[0]; bna_rx_create() 2369 res_info[BNA_RX_RES_MEM_T_IBIDX].res_u.mem_info.mdl[i].dma.lsb; bna_rx_create() 2371 res_info[BNA_RX_RES_MEM_T_IBIDX].res_u.mem_info.mdl[i].dma.msb; bna_rx_create() 2373 res_info[BNA_RX_RES_MEM_T_IBIDX].res_u.mem_info.mdl[i].kva; bna_rx_create() 3451 res_info[BNA_TX_RES_MEM_T_TCB].res_u.mem_info.mdl[i].kva; bna_tx_create() 3457 res_info[BNA_TX_RES_MEM_T_IBIDX].res_u.mem_info.mdl[i].dma.lsb; bna_tx_create() 3459 res_info[BNA_TX_RES_MEM_T_IBIDX].res_u.mem_info.mdl[i].dma.msb; bna_tx_create() 3461 res_info[BNA_TX_RES_MEM_T_IBIDX].res_u.mem_info.mdl[i].kva; bna_tx_create() 3476 res_info[BNA_TX_RES_MEM_T_UNMAPQ].res_u.mem_info.mdl[i].kva; bna_tx_create() 3488 &res_info[BNA_TX_RES_MEM_T_QPT].res_u.mem_info.mdl[i], bna_tx_create() 3489 &res_info[BNA_TX_RES_MEM_T_SWQPT].res_u.mem_info.mdl[i], bna_tx_create() 3491 res_u.mem_info.mdl[i]); bna_tx_create() 3594 res_info[BNA_MOD_RES_MEM_T_TX_ARRAY].res_u.mem_info.mdl[0].kva; bna_tx_mod_init() 3596 res_info[BNA_MOD_RES_MEM_T_TXQ_ARRAY].res_u.mem_info.mdl[0].kva; bna_tx_mod_init()
|
H A D | bna_enet.c | 1713 &res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.mdl[0].dma, dma); bna_ioceth_init() 1714 kva = res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.mdl[0].kva; bna_ioceth_init() 1717 kva = res_info[BNA_RES_MEM_T_FWTRC].res_u.mem_info.mdl[0].kva; bna_ioceth_init() 1725 &res_info[BNA_RES_MEM_T_COM].res_u.mem_info.mdl[0].dma, dma); bna_ioceth_init() 1726 kva = res_info[BNA_RES_MEM_T_COM].res_u.mem_info.mdl[0].kva; bna_ioceth_init() 1792 res_info[BNA_MOD_RES_MEM_T_UCMAC_ARRAY].res_u.mem_info.mdl[0].kva; bna_ucam_mod_init() 1819 res_info[BNA_MOD_RES_MEM_T_MCMAC_ARRAY].res_u.mem_info.mdl[0].kva; bna_mcam_mod_init() 1826 res_info[BNA_MOD_RES_MEM_T_MCHANDLE_ARRAY].res_u.mem_info.mdl[0].kva; bna_mcam_mod_init() 1981 res_info[BNA_RES_MEM_T_STATS].res_u.mem_info.mdl[0].kva; bna_init() 1983 res_info[BNA_RES_MEM_T_STATS].res_u.mem_info.mdl[0].dma.msb; bna_init() 1985 res_info[BNA_RES_MEM_T_STATS].res_u.mem_info.mdl[0].dma.lsb; bna_init()
|
H A D | bnad.c | 1332 if (mem_info->mdl == NULL) bnad_mem_free() 1336 if (mem_info->mdl[i].kva != NULL) { bnad_mem_free() 1338 BNA_GET_DMA_ADDR(&(mem_info->mdl[i].dma), bnad_mem_free() 1341 mem_info->mdl[i].len, bnad_mem_free() 1342 mem_info->mdl[i].kva, dma_pa); bnad_mem_free() 1344 kfree(mem_info->mdl[i].kva); bnad_mem_free() 1347 kfree(mem_info->mdl); bnad_mem_free() 1348 mem_info->mdl = NULL; bnad_mem_free() 1359 mem_info->mdl = NULL; bnad_mem_alloc() 1363 mem_info->mdl = kcalloc(mem_info->num, sizeof(struct bna_mem_descr), bnad_mem_alloc() 1365 if (mem_info->mdl == NULL) bnad_mem_alloc() 1370 mem_info->mdl[i].len = mem_info->len; bnad_mem_alloc() 1371 mem_info->mdl[i].kva = bnad_mem_alloc() 1375 if (mem_info->mdl[i].kva == NULL) bnad_mem_alloc() 1379 &(mem_info->mdl[i].dma)); bnad_mem_alloc() 1383 mem_info->mdl[i].len = mem_info->len; bnad_mem_alloc() 1384 mem_info->mdl[i].kva = kzalloc(mem_info->len, bnad_mem_alloc() 1386 if (mem_info->mdl[i].kva == NULL) bnad_mem_alloc()
|
H A D | bna_types.h | 280 struct bna_mem_descr *mdl; member in struct:bna_mem_info
|
/linux-4.4.14/sound/drivers/ |
H A D | dummy.c | 1052 struct dummy_model *m = NULL, **mdl; snd_dummy_probe() local 1062 for (mdl = dummy_models; *mdl && model[dev]; mdl++) { snd_dummy_probe() 1063 if (strcmp(model[dev], (*mdl)->name) == 0) { snd_dummy_probe() 1066 (*mdl)->name, card->number); snd_dummy_probe() 1067 m = dummy->model = *mdl; snd_dummy_probe()
|
/linux-4.4.14/drivers/s390/cio/ |
H A D | chsc.c | 368 #define NODEID_LEN 35 /* NODEID=tttttt/mdl,mmm.ppssssssssssss,xxxx */ 397 /* NODEID=tttttt/mdl,mmm.ppssssssssssss,xxxx */ format_node_data()
|