Home
last modified time | relevance | path

Searched refs:p_buf (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_mng_tlv.c248 struct qed_tlv_parsed_buf *p_buf) in qed_mfw_get_gen_tlv_value() argument
253 memset(p_buf->data, 0, sizeof(u8) * QED_TLV_DATA_MAX); in qed_mfw_get_gen_tlv_value()
254 p_buf->data[0] = p_drv_buf->flags.ipv4_csum_offload ? in qed_mfw_get_gen_tlv_value()
256 p_buf->data[0] |= (p_drv_buf->flags.lso_supported ? in qed_mfw_get_gen_tlv_value()
258 p_buf->p_val = p_buf->data; in qed_mfw_get_gen_tlv_value()
270 p_buf->p_val = p_drv_buf->mac[idx]; in qed_mfw_get_gen_tlv_value()
278 p_buf->p_val = &p_drv_buf->rx_frames; in qed_mfw_get_gen_tlv_value()
284 p_buf->p_val = &p_drv_buf->rx_bytes; in qed_mfw_get_gen_tlv_value()
290 p_buf->p_val = &p_drv_buf->tx_frames; in qed_mfw_get_gen_tlv_value()
296 p_buf->p_val = &p_drv_buf->tx_bytes; in qed_mfw_get_gen_tlv_value()
[all …]
H A Dqed_mcp.h605 int qed_mcp_nvm_read(struct qed_dev *cdev, u32 addr, u8 *p_buf, u32 len);
619 u32 cmd, u32 addr, u8 *p_buf, u32 len);
629 int qed_mcp_nvm_resp(struct qed_dev *cdev, u8 *p_buf);
740 struct qed_ptt *p_ptt, u8 *p_buf, u32 size);
1034 u32 port, u32 addr, u32 offset, u32 len, u8 *p_buf);
1357 u16 option_id, u8 entity_id, u16 flags, u8 *p_buf,
1374 u16 option_id, u8 entity_id, u16 flags, u8 *p_buf,
H A Dqed_mcp.c3066 int qed_mcp_nvm_read(struct qed_dev *cdev, u32 addr, u8 *p_buf, u32 len) in qed_mcp_nvm_read() argument
3088 (u32 *)(p_buf + offset), false); in qed_mcp_nvm_read()
3112 int qed_mcp_nvm_resp(struct qed_dev *cdev, u8 *p_buf) in qed_mcp_nvm_resp() argument
3121 memcpy(p_buf, &cdev->mcp_nvm_resp, sizeof(cdev->mcp_nvm_resp)); in qed_mcp_nvm_resp()
3128 u32 cmd, u32 addr, u8 *p_buf, u32 len) in qed_mcp_nvm_write() argument
3165 (u32 *)&p_buf[buf_idx]); in qed_mcp_nvm_write()
3212 u32 port, u32 addr, u32 offset, u32 len, u8 *p_buf) in qed_mcp_phy_sfp_read() argument
3240 (u32 *)(p_buf + offset), true); in qed_mcp_phy_sfp_read()
4041 u16 option_id, u8 entity_id, u16 flags, u8 *p_buf, in qed_mcp_nvm_get_cfg() argument
4065 (u32 *)p_buf, false); in qed_mcp_nvm_get_cfg()
[all …]
H A Dqed_ll2.c1275 struct qed_ooo_buffer *p_buf = NULL; in qed_ll2_acquire_connection_ooo() local
1294 p_buf = kzalloc(sizeof(*p_buf), GFP_KERNEL); in qed_ll2_acquire_connection_ooo()
1295 if (!p_buf) { in qed_ll2_acquire_connection_ooo()
1300 p_buf->rx_buffer_size = mtu + 26 + ETH_CACHE_LINE_SIZE; in qed_ll2_acquire_connection_ooo()
1301 p_buf->rx_buffer_size = (p_buf->rx_buffer_size + in qed_ll2_acquire_connection_ooo()
1305 p_buf->rx_buffer_size, in qed_ll2_acquire_connection_ooo()
1306 &p_buf->rx_buffer_phys_addr, in qed_ll2_acquire_connection_ooo()
1309 kfree(p_buf); in qed_ll2_acquire_connection_ooo()
1314 p_buf->rx_buffer_virt_addr = p_virt; in qed_ll2_acquire_connection_ooo()
1315 qed_ooo_put_free_buffer(p_hwfn, p_hwfn->p_ooo_info, p_buf); in qed_ll2_acquire_connection_ooo()
[all …]
/openbmc/qemu/hw/i3c/
H A Dmock-target.c60 if (s->p_buf == s->cfg.buf_size) { in mock_target_rx()
65 data[i] = s->buf[s->p_buf]; in mock_target_rx()
67 s->p_buf++; in mock_target_rx()
68 if (s->p_buf == s->cfg.buf_size) { in mock_target_rx()
96 if (num_to_send + s->p_buf > s->cfg.buf_size) { in mock_target_tx()
97 to_write = s->cfg.buf_size - s->p_buf; in mock_target_tx()
105 s->buf[s->p_buf] = data[i]; in mock_target_tx()
106 s->p_buf++; in mock_target_tx()
120 s->p_buf = 0; in mock_target_event()
H A Dremote-i3c.c241 uint32_t p_buf = 0; in remote_i3c_rx_ibi() local
242 while (p_buf < size) { in remote_i3c_rx_ibi()
247 p_buf++; in remote_i3c_rx_ibi()
250 i3c->ibi_data.addr = buf[p_buf]; in remote_i3c_rx_ibi()
251 p_buf++; in remote_i3c_rx_ibi()
255 i3c->ibi_data.is_recv = buf[p_buf]; in remote_i3c_rx_ibi()
256 p_buf++; in remote_i3c_rx_ibi()
260 i3c->ibi_data.num_bytes |= ((uint32_t)buf[p_buf] << in remote_i3c_rx_ibi()
263 p_buf++; in remote_i3c_rx_ibi()
282 if (p_buf < size) { in remote_i3c_rx_ibi()
[all …]
/openbmc/u-boot/common/
H A Dcli_readline.c554 char *p_buf = p; in cli_readline_into_buffer() local
588 return p - p_buf; in cli_readline_into_buffer()
594 p_buf[0] = '\0'; /* discard input */ in cli_readline_into_buffer()
602 p = p_buf; in cli_readline_into_buffer()
607 p = delete_char(p_buf, p, &col, &n, plen); in cli_readline_into_buffer()
609 p = delete_char(p_buf, p, &col, &n, plen); in cli_readline_into_buffer()
614 p = delete_char(p_buf, p, &col, &n, plen); in cli_readline_into_buffer()
632 p = p_buf + n; /* reset */ in cli_readline_into_buffer()
/openbmc/linux/arch/um/drivers/
H A Dmmapper_kern.c26 static unsigned long p_buf; variable
65 if (remap_pfn_range(vma, vma->vm_start, p_buf >> PAGE_SHIFT, size, in mmapper_mmap()
114 p_buf = __pa(v_buf); in mmapper_init()
/openbmc/linux/drivers/media/pci/tw686x/
H A Dtw686x-audio.c136 struct tw686x_audio_buf *p_buf, *b_buf; in tw686x_pcm_prepare() local
187 p_buf = list_first_entry(&ac->buf_list, struct tw686x_audio_buf, list); in tw686x_pcm_prepare()
188 list_move_tail(&p_buf->list, &ac->buf_list); in tw686x_pcm_prepare()
193 ac->curr_bufs[0] = p_buf; in tw686x_pcm_prepare()
198 reg_write(dev, ADMA_P_ADDR[ac->ch], p_buf->dma); in tw686x_pcm_prepare()
/openbmc/qemu/include/hw/i3c/
H A Dmock-target.h46 size_t p_buf; member
/openbmc/linux/drivers/target/
H A Dtarget_core_transport.c1069 unsigned char *p_buf, in transport_dump_vpd_proto_id() argument
1114 if (p_buf) in transport_dump_vpd_proto_id()
1115 strncpy(p_buf, buf, p_buf_len); in transport_dump_vpd_proto_id()
1138 unsigned char *p_buf, in transport_dump_vpd_assoc() argument
1164 if (p_buf) in transport_dump_vpd_assoc()
1165 strncpy(p_buf, buf, p_buf_len); in transport_dump_vpd_assoc()
1186 unsigned char *p_buf, in transport_dump_vpd_ident_type() argument
1222 if (p_buf) { in transport_dump_vpd_ident_type()
1225 strncpy(p_buf, buf, p_buf_len); in transport_dump_vpd_ident_type()
1247 unsigned char *p_buf, in transport_dump_vpd_ident() argument
[all …]
/openbmc/linux/drivers/staging/emxx_udc/
H A Demxx_udc.c165 void *p_buf, unsigned int length) in _nbu2ss_create_ep0_packet() argument
167 udc->ep0_req.req.buf = p_buf; in _nbu2ss_create_ep0_packet()
556 static int ep0_out_overbytes(struct nbu2ss_udc *udc, u8 *p_buf, u32 length) in ep0_out_overbytes() argument
561 union usb_reg_access *p_buf_32 = (union usb_reg_access *)p_buf; in ep0_out_overbytes()
575 static int EP0_in_PIO(struct nbu2ss_udc *udc, u8 *p_buf, u32 length) in EP0_in_PIO() argument
581 union usb_reg_access *p_buf_32 = (union usb_reg_access *)p_buf; in EP0_in_PIO()
604 u8 *p_buf, in ep0_in_overbytes() argument
609 union usb_reg_access *p_buf_32 = (union usb_reg_access *)p_buf; in ep0_in_overbytes()