Searched refs:p_info (Results 1 - 10 of 10) sorted by relevance

/linux-4.4.14/arch/s390/kernel/
H A Ddebug.c457 debug_format_entry(file_private_info_t *p_info) debug_format_entry() argument
459 debug_info_t *id_snap = p_info->debug_info_snap; debug_format_entry()
460 struct debug_view *view = p_info->view; debug_format_entry()
463 if(p_info->act_entry == DEBUG_PROLOG_ENTRY){ debug_format_entry()
466 len += view->prolog_proc(id_snap,view,p_info->temp_buf); debug_format_entry()
471 act_entry = (debug_entry_t *) ((char*)id_snap->areas[p_info->act_area] debug_format_entry()
472 [p_info->act_page] + p_info->act_entry); debug_format_entry()
477 len += view->header_proc(id_snap, view, p_info->act_area, debug_format_entry()
478 act_entry, p_info->temp_buf + len); debug_format_entry()
480 len += view->format_proc(id_snap, view, p_info->temp_buf + len, debug_format_entry()
488 * - goto next entry in p_info
492 debug_next_entry(file_private_info_t *p_info) debug_next_entry() argument
496 id = p_info->debug_info_snap; debug_next_entry()
497 if(p_info->act_entry == DEBUG_PROLOG_ENTRY){ debug_next_entry()
498 p_info->act_entry = 0; debug_next_entry()
499 p_info->act_page = 0; debug_next_entry()
504 p_info->act_entry += id->entry_size; debug_next_entry()
506 if (p_info->act_entry > (PAGE_SIZE - id->entry_size)){ debug_next_entry()
508 p_info->act_entry = 0; debug_next_entry()
509 p_info->act_page += 1; debug_next_entry()
510 if((p_info->act_page % id->pages_per_area) == 0) { debug_next_entry()
512 p_info->act_area++; debug_next_entry()
513 p_info->act_page=0; debug_next_entry()
515 if(p_info->act_area >= id->nr_areas) debug_next_entry()
536 file_private_info_t *p_info; debug_output() local
538 p_info = ((file_private_info_t *) file->private_data); debug_output()
539 if (*offset != p_info->offset) debug_output()
541 if(p_info->act_area >= p_info->debug_info_snap->nr_areas) debug_output()
543 entry_offset = p_info->act_entry_offset; debug_output()
550 formatted_line_size = debug_format_entry(p_info); debug_output()
555 if (copy_to_user(user_buf + count, p_info->temp_buf debug_output()
563 if(debug_next_entry(p_info)) debug_output()
568 p_info->offset = *offset + count; debug_output()
569 p_info->act_entry_offset = entry_offset; debug_output()
570 *offset = p_info->offset; debug_output()
585 file_private_info_t *p_info; debug_input() local
588 p_info = ((file_private_info_t *) file->private_data); debug_input()
589 if (p_info->view->input_proc) debug_input()
590 rc = p_info->view->input_proc(p_info->debug_info_org, debug_input()
591 p_info->view, file, user_buf, debug_input()
610 file_private_info_t *p_info; debug_open() local
645 p_info = kmalloc(sizeof(file_private_info_t), debug_open()
647 if(!p_info){ debug_open()
652 p_info->offset = 0; debug_open()
653 p_info->debug_info_snap = debug_info_snapshot; debug_open()
654 p_info->debug_info_org = debug_info; debug_open()
655 p_info->view = debug_info->views[i]; debug_open()
656 p_info->act_area = 0; debug_open()
657 p_info->act_page = 0; debug_open()
658 p_info->act_entry = DEBUG_PROLOG_ENTRY; debug_open()
659 p_info->act_entry_offset = 0; debug_open()
660 file->private_data = p_info; debug_open()
677 file_private_info_t *p_info; debug_close() local
678 p_info = (file_private_info_t *) file->private_data; debug_close()
679 if(p_info->debug_info_snap) debug_close()
680 debug_info_free(p_info->debug_info_snap); debug_close()
681 debug_info_put(p_info->debug_info_org); debug_close()
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/
H A Dqed_mcp.c102 struct qed_mcp_info *p_info = p_hwfn->mcp_info; qed_load_mcp_offsets() local
106 p_info->public_base = qed_rd(p_hwfn, p_ptt, MISC_REG_SHARED_MEM_ADDR); qed_load_mcp_offsets()
107 if (!p_info->public_base) qed_load_mcp_offsets()
110 p_info->public_base |= GRCBASE_MCP; qed_load_mcp_offsets()
114 SECTION_OFFSIZE_ADDR(p_info->public_base, qed_load_mcp_offsets()
116 p_info->drv_mb_addr = SECTION_ADDR(drv_mb_offsize, mcp_pf_id); qed_load_mcp_offsets()
119 drv_mb_offsize, p_info->drv_mb_addr, mcp_pf_id); qed_load_mcp_offsets()
123 SECTION_OFFSIZE_ADDR(p_info->public_base, qed_load_mcp_offsets()
125 p_info->mfw_mb_addr = SECTION_ADDR(mfw_mb_offsize, mcp_pf_id); qed_load_mcp_offsets()
126 p_info->mfw_mb_length = (u16)qed_rd(p_hwfn, p_ptt, p_info->mfw_mb_addr); qed_load_mcp_offsets()
131 p_info->drv_mb_seq = DRV_MB_RD(p_hwfn, p_ptt, drv_mb_header) & qed_load_mcp_offsets()
135 p_info->drv_pulse_seq = DRV_MB_RD(p_hwfn, p_ptt, drv_pulse_mb) & qed_load_mcp_offsets()
138 p_info->mcp_hist = (u16)qed_rd(p_hwfn, p_ptt, MISCS_REG_GENERIC_POR_0); qed_load_mcp_offsets()
146 struct qed_mcp_info *p_info; qed_mcp_cmd_init() local
153 p_info = p_hwfn->mcp_info; qed_mcp_cmd_init()
163 size = MFW_DRV_MSG_MAX_DWORDS(p_info->mfw_mb_length) * sizeof(u32); qed_mcp_cmd_init()
164 p_info->mfw_mb_cur = kzalloc(size, GFP_ATOMIC); qed_mcp_cmd_init()
165 p_info->mfw_mb_shadow = qed_mcp_cmd_init()
167 p_info->mfw_mb_length), GFP_ATOMIC); qed_mcp_cmd_init()
168 if (!p_info->mfw_mb_shadow || !p_info->mfw_mb_addr) qed_mcp_cmd_init()
172 mutex_init(&p_info->mutex); qed_mcp_cmd_init()
687 struct public_func *p_info, qed_mcp_get_shmem_proto()
692 switch (p_info->config & FUNC_MF_CFG_PROTOCOL_MASK) { qed_mcp_get_shmem_proto()
686 qed_mcp_get_shmem_proto(struct qed_hwfn *p_hwfn, struct public_func *p_info, enum qed_pci_personality *p_proto) qed_mcp_get_shmem_proto() argument
H A Dqed_cxt.h42 * @param p_info in/out
47 struct qed_cxt_info *p_info);
H A Dqed_cxt.c797 struct qed_cxt_info *p_info) qed_cxt_get_cid_info()
805 b_acquired = qed_cxt_test_cid_acquired(p_hwfn, p_info->iid, &type); qed_cxt_get_cid_info()
811 p_info->type = type; qed_cxt_get_cid_info()
818 line = p_info->iid / cxts_per_p; qed_cxt_get_cid_info()
824 p_info->p_cxt = p_mngr->ilt_shadow[line].p_virt + qed_cxt_get_cid_info()
825 p_info->iid % cxts_per_p * conn_cxt_size; qed_cxt_get_cid_info()
829 p_info->iid / cxts_per_p, p_info->p_cxt, p_info->iid); qed_cxt_get_cid_info()
796 qed_cxt_get_cid_info(struct qed_hwfn *p_hwfn, struct qed_cxt_info *p_info) qed_cxt_get_cid_info() argument
H A Dqed_dev.c548 struct qed_mcp_function_info *p_info; qed_hw_init_pf() local
550 p_info = &p_hwfn->mcp_info->func_info; qed_hw_init_pf()
551 if (p_info->bandwidth_min) qed_hw_init_pf()
552 p_hwfn->qm_info.pf_wfq = p_info->bandwidth_min; qed_hw_init_pf()
/linux-4.4.14/drivers/net/ethernet/ti/
H A Dnetcp.h127 static inline u32 *netcp_push_psdata(struct netcp_packet *p_info, netcp_push_psdata() argument
137 if ((p_info->psdata_len + words) > NETCP_PSDATA_LEN) netcp_push_psdata()
140 p_info->psdata_len += words; netcp_push_psdata()
141 buf = &p_info->psdata[NETCP_PSDATA_LEN - p_info->psdata_len]; netcp_push_psdata()
145 static inline int netcp_align_psdata(struct netcp_packet *p_info, netcp_align_psdata() argument
160 padding = (p_info->psdata_len << 2) % 8; netcp_align_psdata()
163 padding = (p_info->psdata_len << 2) % 16; netcp_align_psdata()
166 padding = (p_info->psdata_len << 2) % byte_align; netcp_align_psdata()
H A Dnetcp_core.c626 struct netcp_packet p_info; netcp_process_one_rx_packet() local
706 p_info.skb = skb; netcp_process_one_rx_packet()
707 p_info.rxtstamp_complete = false; netcp_process_one_rx_packet()
712 &p_info); netcp_process_one_rx_packet()
1119 struct netcp_packet p_info; netcp_tx_submit_skb() local
1125 p_info.netcp = netcp; netcp_tx_submit_skb()
1126 p_info.skb = skb; netcp_tx_submit_skb()
1127 p_info.tx_pipe = NULL; netcp_tx_submit_skb()
1128 p_info.psdata_len = 0; netcp_tx_submit_skb()
1129 p_info.ts_context = NULL; netcp_tx_submit_skb()
1130 p_info.txtstamp_complete = NULL; netcp_tx_submit_skb()
1131 p_info.epib = desc->epib; netcp_tx_submit_skb()
1132 p_info.psdata = desc->psdata; netcp_tx_submit_skb()
1133 memset(p_info.epib, 0, KNAV_DMA_NUM_EPIB_WORDS * sizeof(u32)); netcp_tx_submit_skb()
1138 &p_info); netcp_tx_submit_skb()
1148 tx_pipe = p_info.tx_pipe; netcp_tx_submit_skb()
1156 if (p_info.psdata_len) { netcp_tx_submit_skb()
1157 u32 *psdata = p_info.psdata; netcp_tx_submit_skb()
1159 memmove(p_info.psdata, p_info.psdata + p_info.psdata_len, netcp_tx_submit_skb()
1160 p_info.psdata_len); netcp_tx_submit_skb()
1161 set_words(psdata, p_info.psdata_len, psdata); netcp_tx_submit_skb()
1162 tmp |= (p_info.psdata_len & KNAV_DMA_DESC_PSLEN_MASK) << netcp_tx_submit_skb()
H A Dnetcp_ethss.c2405 static int gbe_tx_hook(int order, void *data, struct netcp_packet *p_info) gbe_tx_hook() argument
2409 p_info->tx_pipe = &gbe_intf->tx_pipe; gbe_tx_hook()
/linux-4.4.14/sound/pci/asihpi/
H A Dhpicmn.c236 pC->p_info[control_index] = info; control_cache_alloc_check()
239 pC->p_info[control_index] = NULL; control_cache_alloc_check()
246 cached, pC->p_info[info->control_index], control_cache_alloc_check()
288 *pI = p_cache->p_info[control_index]; find_control()
658 p_cache->p_info = hpi_alloc_control_cache()
659 kcalloc(control_count, sizeof(*p_cache->p_info), GFP_KERNEL); hpi_alloc_control_cache()
660 if (!p_cache->p_info) { hpi_alloc_control_cache()
675 kfree(p_cache->p_info); hpi_free_control_cache()
H A Dhpicmn.h52 struct hpi_control_cache_info **p_info; member in struct:hpi_control_cache

Completed in 325 milliseconds