Home
last modified time | relevance | path

Searched refs:buf_ptr (Results 1 – 43 of 43) sorted by relevance

/linux-4.1.27/security/integrity/ima/
Dima_template_lib.c38 u8 *buf, *buf_ptr; in ima_write_template_field_data() local
58 for (buf_ptr = buf; buf_ptr - buf < datalen; buf_ptr++) in ima_write_template_field_data()
59 if (*buf_ptr == ' ') in ima_write_template_field_data()
60 *buf_ptr = '_'; in ima_write_template_field_data()
73 u8 *buf_ptr = field_data->data; in ima_show_template_data_ascii() local
78 buf_ptr = strnchr(field_data->data, buflen, ':'); in ima_show_template_data_ascii()
79 if (buf_ptr != field_data->data) in ima_show_template_data_ascii()
83 buf_ptr += 2; in ima_show_template_data_ascii()
84 buflen -= buf_ptr - field_data->data; in ima_show_template_data_ascii()
89 ima_print_digest(m, buf_ptr, buflen); in ima_show_template_data_ascii()
[all …]
/linux-4.1.27/drivers/usb/host/
Dfhci-tds.c71 __be32 buf_ptr; member
91 out_be32(&ep->empty_td->buf_ptr, DUMMY_BD_BUFFER); in fhci_push_dummy_bd()
217 out_be32(&td->buf_ptr, 0); in fhci_create_ep()
300 buf = in_be32(&td->buf_ptr); in fhci_td_transaction_confirm()
313 out_be32(&td->buf_ptr, 0); in fhci_td_transaction_confirm()
409 out_be32(&td->buf_ptr, virt_to_phys(pkt->data)); in fhci_host_transaction()
483 buf = in_be32(&td->buf_ptr); in fhci_flush_bds()
490 else if (in_be32(&td->buf_ptr) == DUMMY_BD_BUFFER) in fhci_flush_bds()
491 out_be32(&td->buf_ptr, DUMMY2_BD_BUFFER); in fhci_flush_bds()
505 out_be32(&td->buf_ptr, 0); in fhci_flush_bds()
[all …]
/linux-4.1.27/drivers/media/usb/pvrusb2/
Dpvrusb2-debugifc.h30 char *buf_ptr, unsigned int buf_size);
36 char *buf_ptr,unsigned int buf_size);
40 const char *buf_ptr,unsigned int buf_size);
Dpvrusb2-hdw.h332 char *buf_ptr,unsigned int buf_size);
/linux-4.1.27/drivers/rtc/
Drtc-sysfs.c170 char *buf_ptr; in rtc_sysfs_set_wakealarm() local
181 buf_ptr = (char *)buf; in rtc_sysfs_set_wakealarm()
182 if (*buf_ptr == '+') { in rtc_sysfs_set_wakealarm()
183 buf_ptr++; in rtc_sysfs_set_wakealarm()
184 if (*buf_ptr == '=') { in rtc_sysfs_set_wakealarm()
185 buf_ptr++; in rtc_sysfs_set_wakealarm()
190 alarm = simple_strtoul(buf_ptr, NULL, 0); in rtc_sysfs_set_wakealarm()
/linux-4.1.27/drivers/staging/rtl8188eu/hal/
Dfw.c61 u8 *buf_ptr = (u8 *)buffer; in _rtl88e_fw_block_write() local
76 buf_ptr += offset; in _rtl88e_fw_block_write()
79 offset + i), *(buf_ptr + i)); in _rtl88e_fw_block_write()
114 u8 *buf_ptr = buffer; in _rtl88e_write_fw() local
118 _rtl88e_fill_dummy(buf_ptr, &size); in _rtl88e_write_fw()
125 _rtl88e_fw_page_write(adapt, page, (buf_ptr + offset), in _rtl88e_write_fw()
132 _rtl88e_fw_page_write(adapt, page, (buf_ptr + offset), remain); in _rtl88e_write_fw()
/linux-4.1.27/drivers/hwtracing/coresight/
Dcoresight-etb10.c191 u8 *buf_ptr; in etb_dump_hw() local
219 buf_ptr = drvdata->buf; in etb_dump_hw()
223 *buf_ptr++ = read_data >> 0; in etb_dump_hw()
224 *buf_ptr++ = read_data >> 8; in etb_dump_hw()
225 *buf_ptr++ = read_data >> 16; in etb_dump_hw()
226 *buf_ptr++ = read_data >> 24; in etb_dump_hw()
230 buf_ptr -= (frame_endoff * 4); in etb_dump_hw()
232 *buf_ptr++ = 0x0; in etb_dump_hw()
233 *buf_ptr++ = 0x0; in etb_dump_hw()
234 *buf_ptr++ = 0x0; in etb_dump_hw()
[all …]
/linux-4.1.27/drivers/staging/mt29f_spinand/
Dmt29f_spinand.c675 data = state->buf[state->buf_ptr]; in spinand_read_byte()
676 state->buf_ptr++; in spinand_read_byte()
716 memcpy(state->buf + state->buf_ptr, buf, len); in spinand_write_buf()
717 state->buf_ptr += len; in spinand_write_buf()
724 memcpy(buf, state->buf + state->buf_ptr, len); in spinand_read_buf()
725 state->buf_ptr += len; in spinand_read_buf()
760 state->buf_ptr = 0; in spinand_cmdfunc()
765 state->buf_ptr = 0; in spinand_cmdfunc()
769 state->buf_ptr = column; in spinand_cmdfunc()
772 state->buf_ptr = 0; in spinand_cmdfunc()
[all …]
Dmt29f_spinand.h89 int buf_ptr; member
/linux-4.1.27/arch/mips/cavium-octeon/executive/
Dcvmx-pko.c173 config.s.buf_ptr = 0; in cvmx_pko_shutdown()
298 uint64_t *buf_ptr = NULL; in cvmx_pko_config_port() local
393 buf_ptr = in cvmx_pko_config_port()
397 config.s.buf_ptr = cvmx_ptr_to_phys(buf_ptr); in cvmx_pko_config_port()
399 config.s.buf_ptr = 0; in cvmx_pko_config_port()
/linux-4.1.27/drivers/usb/serial/
Diuu_phoenix.c190 char *buf_ptr = port->write_urb->transfer_buffer; in iuu_reset() local
194 *buf_ptr++ = IUU_RST_SET; in iuu_reset()
195 *buf_ptr++ = IUU_DELAY_MS; in iuu_reset()
196 *buf_ptr++ = wt; in iuu_reset()
197 *buf_ptr = IUU_RST_CLEAR; in iuu_reset()
361 char *buf_ptr = port->write_urb->transfer_buffer; in iuu_led_activity_on() local
362 *buf_ptr++ = IUU_SET_LED; in iuu_led_activity_on()
364 get_random_bytes(buf_ptr, 6); in iuu_led_activity_on()
365 *(buf_ptr+7) = 1; in iuu_led_activity_on()
367 iuu_rgbf_fill_buffer(buf_ptr, 255, 255, 0, 0, 0, 0, 255); in iuu_led_activity_on()
[all …]
/linux-4.1.27/drivers/scsi/bfa/
Dbfad_bsg.h249 u64 buf_ptr; member
293 u64 buf_ptr; member
407 u64 buf_ptr; member
528 u64 buf_ptr; member
537 u64 buf_ptr; member
568 u64 buf_ptr; member
672 u64 buf_ptr; member
681 u64 buf_ptr; member
/linux-4.1.27/arch/mips/fw/cfe/
Dcfe_api.c204 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(name); in cfe_getdevinfo()
334 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(buffer); in cfe_ioctl()
354 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(name); in cfe_open()
379 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(buffer); in cfe_readblk()
424 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(buffer); in cfe_writeblk()
Dcfe_api_int.h60 cfe_xptr_t buf_ptr; /* pointer to a buffer */ member
/linux-4.1.27/drivers/net/ethernet/sfc/
Dselftest.h47 void efx_loopback_rx_packet(struct efx_nic *efx, const char *buf_ptr,
Dselftest.c270 const char *buf_ptr, int pkt_len) in efx_loopback_rx_packet() argument
276 BUG_ON(!buf_ptr); in efx_loopback_rx_packet()
284 received = (struct efx_loopback_payload *) buf_ptr; in efx_loopback_rx_packet()
351 buf_ptr, pkt_len, 0); in efx_loopback_rx_packet()
/linux-4.1.27/drivers/media/i2c/
Dsaa6588.c184 unsigned char __user *buf_ptr = a->buffer; in read_from_buf() local
220 if (copy_to_user(buf_ptr, buf, 3)) { in read_from_buf()
224 buf_ptr += 3; in read_from_buf()
/linux-4.1.27/drivers/media/usb/usbvision/
Dusbvision-i2c.c403 char *buf_ptr = buf; in usbvision_i2c_write() local
411 retval = usbvision_i2c_write_max4(usbvision, addr, buf_ptr, count); in usbvision_i2c_write()
414 buf_ptr += count; in usbvision_i2c_write()
/linux-4.1.27/drivers/usb/host/whci/
Ddebug.c78 (u32)(std->pl_virt[0].buf_ptr) : (u32)std->dma_addr); in qset_print()
82 (u32)(std->pl_virt[0].buf_ptr) : (u32)std->dma_addr); in qset_print()
Dqset.c307 dma_addr = le64_to_cpu(std->pl_virt[0].buf_ptr); in qset_free_std()
386 std->pl_virt[p].buf_ptr = cpu_to_le64(dma_addr); in qset_fill_page_list()
524 std->pl_virt[p].buf_ptr = cpu_to_le64(dma_addr); in qset_add_urb_sg()
Dwhci-hc.h105 __le64 buf_ptr; /*< physical pointer to buffer */ member
/linux-4.1.27/drivers/net/ethernet/marvell/
Dmv643xx_eth.c208 u32 buf_ptr; /* Descriptor buffer pointer */ member
216 u32 buf_ptr; /* pointer to buffer for this descriptor*/ member
223 u32 buf_ptr; /* Descriptor buffer pointer */ member
231 u32 buf_ptr; /* pointer to buffer for this descriptor*/ member
548 dma_unmap_single(mp->dev->dev.parent, rx_desc->buf_ptr, in rxq_process()
645 rx_desc->buf_ptr = dma_map_single(mp->dev->dev.parent, in rxq_refill()
762 desc->buf_ptr = dma_map_single(dev->dev.parent, data, in txq_put_data_tso()
764 if (unlikely(dma_mapping_error(dev->dev.parent, desc->buf_ptr))) { in txq_put_data_tso()
804 desc->buf_ptr = txq->tso_hdrs_dma + in txq_put_hdr_tso()
910 desc->buf_ptr = skb_frag_dma_map(mp->dev->dev.parent, in txq_submit_frag_skb()
[all …]
Dpxa168_eth.c191 u32 buf_ptr; /* Descriptor buffer pointer */ member
199 u32 buf_ptr; /* pointer to buffer for this descriptor */ member
337 p_used_rx_desc->buf_ptr = dma_map_single(NULL, in rxq_refill()
738 addr = desc->buf_ptr; in txq_reclaim()
811 dma_unmap_single(NULL, rx_desc->buf_ptr, in rxq_process()
1286 desc->buf_ptr = dma_map_single(NULL, skb->data, length, DMA_TO_DEVICE); in pxa168_eth_start_xmit()
/linux-4.1.27/drivers/net/ethernet/ti/
Dnetcp_core.c551 void *buf_ptr; in netcp_free_rx_desc_chain() local
563 get_pad_info((u32 *)&buf_ptr, &tmp, ndesc); in netcp_free_rx_desc_chain()
565 __free_page(buf_ptr); in netcp_free_rx_desc_chain()
569 get_pad_info((u32 *)&buf_ptr, &buf_len, desc); in netcp_free_rx_desc_chain()
570 if (buf_ptr) in netcp_free_rx_desc_chain()
571 netcp_frag_free(buf_len <= PAGE_SIZE, buf_ptr); in netcp_free_rx_desc_chain()
732 void *buf_ptr; in netcp_free_rx_buf() local
744 get_pad_info((u32 *)&buf_ptr, &tmp, desc); in netcp_free_rx_buf()
752 if (unlikely(!buf_ptr)) { in netcp_free_rx_buf()
761 netcp_frag_free((buf_len <= PAGE_SIZE), buf_ptr); in netcp_free_rx_buf()
[all …]
/linux-4.1.27/drivers/firewire/
Dnet.c731 __be32 *buf_ptr; in fwnet_receive_broadcast() local
747 buf_ptr = dev->broadcast_rcv_buffer_ptrs[dev->broadcast_rcv_next_ptr++]; in fwnet_receive_broadcast()
753 specifier_id = (be32_to_cpu(buf_ptr[0]) & 0xffff) << 8 in fwnet_receive_broadcast()
754 | (be32_to_cpu(buf_ptr[1]) & 0xff000000) >> 24; in fwnet_receive_broadcast()
755 ver = be32_to_cpu(buf_ptr[1]) & 0xffffff; in fwnet_receive_broadcast()
756 source_node_id = be32_to_cpu(buf_ptr[0]) >> 16; in fwnet_receive_broadcast()
764 buf_ptr += 2; in fwnet_receive_broadcast()
766 fwnet_incoming_packet(dev, buf_ptr, length, source_node_id, in fwnet_receive_broadcast()
/linux-4.1.27/drivers/media/usb/cx231xx/
Dcx231xx-i2c.c94 u8 *buf_ptr = NULL; in cx231xx_i2c_send_bytes() local
146 buf_ptr = (u8 *) (msg->buf + 1); in cx231xx_i2c_send_bytes()
155 req_data.p_buffer = (u8 *) (buf_ptr + loop * 16); in cx231xx_i2c_send_bytes()
/linux-4.1.27/drivers/atm/
Dhorizon.c725 u16 buf_ptr = RX_CHANNEL_IDLE; in hrz_open_rx() local
743 buf_ptr = dev->spare_buffers[--dev->noof_spare_buffers]; in hrz_open_rx()
744 PRINTD (DBG_VCC, "using a spare buffer: %u", buf_ptr); in hrz_open_rx()
746 if (buf_ptr == RX_CHANNEL_DISABLED || buf_ptr == RX_CHANNEL_IDLE) { in hrz_open_rx()
749 buf_ptr = RX_CHANNEL_IDLE; in hrz_open_rx()
761 buf_ptr | CHANNEL_TYPE_AAL5 | FIRST_CELL_OF_AAL5_FRAME); in hrz_open_rx()
762 if (buf_ptr != RX_CHANNEL_IDLE) in hrz_open_rx()
763 wr_mem (dev, &rx_desc->rd_buf_type, buf_ptr); in hrz_open_rx()
/linux-4.1.27/arch/mips/include/asm/octeon/
Dcvmx-pko-defs.h956 uint64_t buf_ptr:33; member
962 uint64_t buf_ptr:33;
983 uint64_t buf_ptr:33; member
989 uint64_t buf_ptr:33;
1019 uint64_t buf_ptr:33; member
1025 uint64_t buf_ptr:33;
1287 uint64_t buf_ptr:31; member
1299 uint64_t buf_ptr:31;
1483 uint64_t buf_ptr:36; member
1493 uint64_t buf_ptr:36;
/linux-4.1.27/drivers/scsi/lpfc/
Dlpfc_ct.c262 struct lpfc_dmabuf *buf_ptr; in lpfc_ct_free_iocb() local
269 buf_ptr = (struct lpfc_dmabuf *) ctiocb->context1; in lpfc_ct_free_iocb()
270 lpfc_mbuf_free(phba, buf_ptr->virt, buf_ptr->phys); in lpfc_ct_free_iocb()
271 kfree(buf_ptr); in lpfc_ct_free_iocb()
280 buf_ptr = (struct lpfc_dmabuf *) ctiocb->context3; in lpfc_ct_free_iocb()
281 lpfc_mbuf_free(phba, buf_ptr->virt, buf_ptr->phys); in lpfc_ct_free_iocb()
282 kfree(buf_ptr); in lpfc_ct_free_iocb()
Dlpfc_els.c3486 struct lpfc_dmabuf *buf_ptr; in lpfc_els_free_data() local
3490 list_remove_head(&buf_ptr1->list, buf_ptr, in lpfc_els_free_data()
3493 lpfc_mbuf_free(phba, buf_ptr->virt, buf_ptr->phys); in lpfc_els_free_data()
3494 kfree(buf_ptr); in lpfc_els_free_data()
3514 lpfc_els_free_bpl(struct lpfc_hba *phba, struct lpfc_dmabuf *buf_ptr) in lpfc_els_free_bpl() argument
3516 lpfc_mbuf_free(phba, buf_ptr->virt, buf_ptr->phys); in lpfc_els_free_bpl()
3517 kfree(buf_ptr); in lpfc_els_free_bpl()
3551 struct lpfc_dmabuf *buf_ptr, *buf_ptr1; in lpfc_els_free_iocb() local
3581 buf_ptr = elsiocb->context2; in lpfc_els_free_iocb()
3583 if (buf_ptr) { in lpfc_els_free_iocb()
[all …]
Dlpfc_init.c1178 struct lpfc_dmabuf *buf_ptr; in lpfc_hb_timeout_handler() local
1221 list_remove_head(&completions, buf_ptr, in lpfc_hb_timeout_handler()
1223 lpfc_mbuf_free(phba, buf_ptr->virt, buf_ptr->phys); in lpfc_hb_timeout_handler()
1224 kfree(buf_ptr); in lpfc_hb_timeout_handler()
Dlpfc_sli.c9417 struct lpfc_dmabuf *buf_ptr; in lpfc_sli_hba_down() local
9457 list_remove_head(&completions, buf_ptr, in lpfc_sli_hba_down()
9459 lpfc_mbuf_free(phba, buf_ptr->virt, buf_ptr->phys); in lpfc_sli_hba_down()
9460 kfree(buf_ptr); in lpfc_sli_hba_down()
/linux-4.1.27/drivers/target/iscsi/
Discsi_target.c659 cmd->buf_ptr = kmemdup(buf, ISCSI_HDR_LEN, GFP_KERNEL); in iscsit_add_reject()
660 if (!cmd->buf_ptr) { in iscsit_add_reject()
694 cmd->buf_ptr = kmemdup(buf, ISCSI_HDR_LEN, GFP_KERNEL); in iscsit_add_reject_from_cmd()
695 if (!cmd->buf_ptr) { in iscsit_add_reject_from_cmd()
1729 cmd->buf_ptr = ping_data; in iscsit_handle_nop_out()
2991 iov[niov].iov_base = cmd->buf_ptr; in iscsit_send_nopin()
3008 cmd->buf_ptr, cmd->buf_ptr_size, in iscsit_send_nopin()
3537 cmd->buf_ptr = payload; in iscsit_build_sendtargets_response()
3609 iov[iov_count].iov_base = cmd->buf_ptr; in iscsit_send_text_rsp()
3628 cmd->buf_ptr, text_length, in iscsit_send_text_rsp()
[all …]
Discsi_target_util.c699 kfree(cmd->buf_ptr); in iscsit_release_cmd()
/linux-4.1.27/drivers/tty/serial/
Dmpsc.c106 u32 buf_ptr; member
114 u32 buf_ptr; member
848 rxre->buf_ptr = cpu_to_be32(bp_p); in mpsc_init_rings()
867 txre->buf_ptr = cpu_to_be32(bp_p); in mpsc_init_rings()
/linux-4.1.27/drivers/tty/
Dmips_ejtag_fdc.c314 const char *buf_ptr = buf; in mips_ejtag_fdc_console_write() local
345 word = mips_ejtag_fdc_encode(&buf_ptr, &buf_len, 1); in mips_ejtag_fdc_console_write()
Dsynclinkmp.c114 u16 buf_ptr; /* lower 16 bits of buffer addr */ member
3518 buf_list[i].buf_ptr = (unsigned short)phys_addr; in alloc_frame_bufs()
/linux-4.1.27/include/target/iscsi/
Discsi_target_core.h439 void *buf_ptr; member
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Ddebugfs.c1225 char *buf_ptr = buf; in iwl_dbgfs_netdetect_write() local
1260 while ((value_str = strsep(&buf_ptr, seps)) && in iwl_dbgfs_netdetect_write()
/linux-4.1.27/scripts/kconfig/
Dzconf.lex.c893 static void yyunput (int c,char *buf_ptr );
Dzconf.lex.c_shipped893 static void yyunput (int c,char *buf_ptr );
/linux-4.1.27/drivers/infiniband/ulp/isert/
Dib_isert.c2328 (void *)cmd->buf_ptr, ISCSI_HDR_LEN, in isert_put_reject()
2366 void *txt_rsp_buf = cmd->buf_ptr; in isert_put_text_rsp()
/linux-4.1.27/scripts/genksyms/
Dlex.lex.c_shipped633 static void yyunput (int c,char *buf_ptr );