Home
last modified time | relevance | path

Searched refs:pbuf (Results 1 – 25 of 138) sorted by relevance

123456

/linux-6.12.1/drivers/staging/rtl8712/
Dwifi.h27 #define SetToDs(pbuf) ({ \ argument
28 *(__le16 *)(pbuf) |= cpu_to_le16(IEEE80211_FCTL_TODS); \
31 #define GetToDs(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(IEEE80211_FCTL_TODS)) != 0) argument
33 #define ClearToDs(pbuf) ({ \ argument
34 *(__le16 *)(pbuf) &= (~cpu_to_le16(IEEE80211_FCTL_TODS)); \
37 #define SetFrDs(pbuf) ({ \ argument
38 *(__le16 *)(pbuf) |= cpu_to_le16(IEEE80211_FCTL_FROMDS); \
41 #define GetFrDs(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(IEEE80211_FCTL_FROMDS)) != 0) argument
43 #define ClearFrDs(pbuf) ({ \ argument
44 *(__le16 *)(pbuf) &= (~cpu_to_le16(IEEE80211_FCTL_FROMDS)); \
[all …]
Drtl8712_cmd.c103 static void r871x_internal_cmd_hdl(struct _adapter *padapter, u8 *pbuf) in r871x_internal_cmd_hdl() argument
107 if (!pbuf) in r871x_internal_cmd_hdl()
109 pdrvcmd = (struct drvint_cmd_parm *)pbuf; in r871x_internal_cmd_hdl()
117 kfree(pdrvcmd->pbuf); in r871x_internal_cmd_hdl()
120 static u8 read_bbreg_hdl(struct _adapter *padapter, u8 *pbuf) in read_bbreg_hdl() argument
122 struct cmd_obj *pcmd = (struct cmd_obj *)pbuf; in read_bbreg_hdl()
128 static u8 write_bbreg_hdl(struct _adapter *padapter, u8 *pbuf) in write_bbreg_hdl() argument
131 struct cmd_obj *pcmd = (struct cmd_obj *)pbuf; in write_bbreg_hdl()
141 static u8 read_rfreg_hdl(struct _adapter *padapter, u8 *pbuf) in read_rfreg_hdl() argument
145 struct cmd_obj *pcmd = (struct cmd_obj *)pbuf; in read_rfreg_hdl()
[all …]
Drtl871x_mlme.h163 void r8712_survey_event_callback(struct _adapter *adapter, u8 *pbuf);
164 void r8712_surveydone_event_callback(struct _adapter *adapter, u8 *pbuf);
165 void r8712_joinbss_event_callback(struct _adapter *adapter, u8 *pbuf);
166 void r8712_stassoc_event_callback(struct _adapter *adapter, u8 *pbuf);
167 void r8712_stadel_event_callback(struct _adapter *adapter, u8 *pbuf);
168 void r8712_atimdone_event_callback(struct _adapter *adapter, u8 *pbuf);
169 void r8712_cpwm_event_callback(struct _adapter *adapter, u8 *pbuf);
170 void r8712_wpspbc_event_callback(struct _adapter *adapter, u8 *pbuf);
Dieee80211.c88 u8 *r8712_set_ie(u8 *pbuf, sint index, uint len, u8 *source, uint *frlen) in r8712_set_ie() argument
90 *pbuf = (u8)index; in r8712_set_ie()
91 *(pbuf + 1) = (u8)len; in r8712_set_ie()
93 memcpy((void *)(pbuf + 2), (void *)source, len); in r8712_set_ie()
95 return pbuf + len + 2; in r8712_set_ie()
102 u8 *r8712_get_ie(u8 *pbuf, sint index, uint *len, sint limit) in r8712_get_ie() argument
109 p = pbuf; in r8712_get_ie()
Drtl8712_xmit.c248 struct tx_desc *ptx_desc = (struct tx_desc *)pxmitbuf->pbuf; in r8712_construct_txaggr_cmd_desc()
269 (pxmitbuf->pbuf + TXDESC_SIZE); in r8712_construct_txaggr_cmd_hdr()
282 struct tx_desc *ptx_desc = (struct tx_desc *)pxmitbuf->pbuf; in r8712_append_mpdu_unit()
323 pxmitframe->buf_addr = pxmitbuf->pbuf + TXDESC_SIZE + CMD_HDR_SZ; in r8712_xmitframe_aggr_1st()
337 pxmitframe->buf_addr = pxmitbuf->pbuf + TXDESC_SIZE + in r8712_xmitframe_aggr_next()
338 (((struct tx_desc *)pxmitbuf->pbuf)->txdw0 & 0x0000ffff); in r8712_xmitframe_aggr_next()
345 (((struct tx_desc *)pxmitbuf->pbuf)->txdw0 & 0x0000ffff); in r8712_xmitframe_aggr_next()
353 struct tx_desc *ptxdesc = pxmitbuf->pbuf; in r8712_dump_aggr_xframe()
355 (pxmitbuf->pbuf + TXDESC_SIZE); in r8712_dump_aggr_xframe()
369 pxmitframe->mem_addr = pxmitbuf->pbuf; in r8712_dump_aggr_xframe()
[all …]
Dusb_ops_linux.c177 __le32 *pbuf; in r8712_usb_read_port_complete() local
193 pbuf = (__le32 *)precvbuf->pbuf; in r8712_usb_read_port_complete()
194 isevt = le32_to_cpu(*(pbuf + 1)) & 0x1ff; in r8712_usb_read_port_complete()
196 r8712_rxcmd_event_hdl(padapter, pbuf); in r8712_usb_read_port_complete()
270 precvbuf->pbuf = precvbuf->pskb->data; in r8712_usb_read_port()
276 precvbuf->pbuf = precvbuf->pskb->data; in r8712_usb_read_port()
282 precvbuf->pbuf, MAX_RECVBUF_SZ, in r8712_usb_read_port()
/linux-6.12.1/drivers/infiniband/hw/hfi1/
Dpio_copy.c30 void pio_copy(struct hfi1_devdata *dd, struct pio_buf *pbuf, u64 pbc, in pio_copy() argument
33 void __iomem *dest = pbuf->start + SOP_DISTANCE; in pio_copy()
84 if (pbuf->end <= dend) { in pio_copy()
85 while (dest < pbuf->end) { in pio_copy()
91 dest -= pbuf->sc->size; in pio_copy()
92 dend -= pbuf->sc->size; in pio_copy()
123 this_cpu_dec(*pbuf->sc->buffers_allocated); in pio_copy()
183 static inline void read_low_bytes(struct pio_buf *pbuf, const void *from, in read_low_bytes() argument
186 pbuf->carry.val64 = 0; in read_low_bytes()
187 jcopy(&pbuf->carry.val8[0], from, nbytes); in read_low_bytes()
[all …]
Dpio.h52 struct pio_buf pbuf; member
283 void pio_copy(struct hfi1_devdata *dd, struct pio_buf *pbuf, u64 pbc,
285 void seg_pio_copy_start(struct pio_buf *pbuf, u64 pbc,
287 void seg_pio_copy_mid(struct pio_buf *pbuf, const void *from, size_t nbytes);
288 void seg_pio_copy_end(struct pio_buf *pbuf);
Dpio.c880 struct pio_buf *pbuf; in sc_disable() local
905 pbuf = &sc->sr[sc->sr_tail].pbuf; in sc_disable()
906 if (pbuf->cb) in sc_disable()
907 (*pbuf->cb)(pbuf->arg, PRC_SC_DISABLE); in sc_disable()
1412 struct pio_buf *pbuf = NULL; in sc_buffer_alloc() local
1470 pbuf = &sc->sr[head].pbuf; in sc_buffer_alloc()
1471 pbuf->sent_at = sc->fill; in sc_buffer_alloc()
1472 pbuf->cb = cb; in sc_buffer_alloc()
1473 pbuf->arg = arg; in sc_buffer_alloc()
1474 pbuf->sc = sc; /* could be filled in at sc->sr init time */ in sc_buffer_alloc()
[all …]
/linux-6.12.1/drivers/staging/rtl8723bs/include/
Dwifi.h73 #define SetToDs(pbuf) \ argument
74 (*(__le16 *)(pbuf) |= cpu_to_le16(_TO_DS_))
76 #define GetToDs(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_TO_DS_)) != 0) argument
78 #define SetFrDs(pbuf) \ argument
79 (*(__le16 *)(pbuf) |= cpu_to_le16(_FROM_DS_))
81 #define GetFrDs(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_FROM_DS_)) != 0) argument
85 #define SetMFrag(pbuf) \ argument
86 (*(__le16 *)(pbuf) |= cpu_to_le16(_MORE_FRAG_))
88 #define GetMFrag(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_MORE_FRAG_)) != 0) argument
90 #define ClearMFrag(pbuf) \ argument
[all …]
Drtw_mlme_ext.h631 u8 (*h2cfuns)(struct adapter *padapter, u8 *pbuf);
635 u8 read_macreg_hdl(struct adapter *padapter, u8 *pbuf);
636 u8 write_macreg_hdl(struct adapter *padapter, u8 *pbuf);
637 u8 read_bbreg_hdl(struct adapter *padapter, u8 *pbuf);
638 u8 write_bbreg_hdl(struct adapter *padapter, u8 *pbuf);
639 u8 read_rfreg_hdl(struct adapter *padapter, u8 *pbuf);
640 u8 write_rfreg_hdl(struct adapter *padapter, u8 *pbuf);
643 u8 NULL_hdl(struct adapter *padapter, u8 *pbuf);
644 u8 join_cmd_hdl(struct adapter *padapter, u8 *pbuf);
645 u8 disconnect_hdl(struct adapter *padapter, u8 *pbuf);
[all …]
Drtw_mlme.h257 extern void rtw_joinbss_event_prehandle(struct adapter *adapter, u8 *pbuf);
258 extern void rtw_survey_event_callback(struct adapter *adapter, u8 *pbuf);
259 extern void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf);
260 extern void rtw_joinbss_event_callback(struct adapter *adapter, u8 *pbuf);
261 extern void rtw_stassoc_event_callback(struct adapter *adapter, u8 *pbuf);
262 extern void rtw_stadel_event_callback(struct adapter *adapter, u8 *pbuf);
263 extern void rtw_atimdone_event_callback(struct adapter *adapter, u8 *pbuf);
264 extern void rtw_cpwm_event_callback(struct adapter *adapter, u8 *pbuf);
265 extern void rtw_wmm_event_callback(struct adapter *padapter, u8 *pbuf);
/linux-6.12.1/drivers/media/platform/rockchip/rkisp1/
Drkisp1-stats.c178 struct rkisp1_stat_buffer *pbuf) in rkisp1_stats_get_awb_meas_v10() argument
184 pbuf->meas_type |= RKISP1_CIF_ISP_STAT_AWB; in rkisp1_stats_get_awb_meas_v10()
186 pbuf->params.awb.awb_mean[0].cnt = in rkisp1_stats_get_awb_meas_v10()
190 pbuf->params.awb.awb_mean[0].mean_cr_or_r = in rkisp1_stats_get_awb_meas_v10()
192 pbuf->params.awb.awb_mean[0].mean_cb_or_b = in rkisp1_stats_get_awb_meas_v10()
194 pbuf->params.awb.awb_mean[0].mean_y_or_g = in rkisp1_stats_get_awb_meas_v10()
199 struct rkisp1_stat_buffer *pbuf) in rkisp1_stats_get_awb_meas_v12() argument
205 pbuf->meas_type |= RKISP1_CIF_ISP_STAT_AWB; in rkisp1_stats_get_awb_meas_v12()
207 pbuf->params.awb.awb_mean[0].cnt = in rkisp1_stats_get_awb_meas_v12()
211 pbuf->params.awb.awb_mean[0].mean_cr_or_r = in rkisp1_stats_get_awb_meas_v12()
[all …]
/linux-6.12.1/drivers/mtd/nand/raw/
Dnand_onfi.c149 struct nand_onfi_params *p = NULL, *pbuf; in nand_onfi_detect() local
165 pbuf = kzalloc((sizeof(*pbuf) * ONFI_PARAM_PAGES), GFP_KERNEL); in nand_onfi_detect()
166 if (!pbuf) in nand_onfi_detect()
174 ret = nand_read_param_page_op(chip, 0, &pbuf[i], in nand_onfi_detect()
175 sizeof(*pbuf)); in nand_onfi_detect()
177 ret = nand_read_data_op(chip, &pbuf[i], sizeof(*pbuf), in nand_onfi_detect()
180 ret = nand_change_read_column_op(chip, sizeof(*pbuf) * i, in nand_onfi_detect()
181 &pbuf[i], sizeof(*pbuf), in nand_onfi_detect()
188 crc = onfi_crc16(ONFI_CRC_BASE, (u8 *)&pbuf[i], 254); in nand_onfi_detect()
189 if (crc == le16_to_cpu(pbuf[i].crc)) { in nand_onfi_detect()
[all …]
/linux-6.12.1/drivers/staging/rtl8723bs/core/
Drtw_ieee80211.c108 u8 *rtw_set_fixed_ie(unsigned char *pbuf, unsigned int len, unsigned char *source, in rtw_set_fixed_ie() argument
111 memcpy((void *)pbuf, (void *)source, len); in rtw_set_fixed_ie()
113 return pbuf + len; in rtw_set_fixed_ie()
117 u8 *rtw_set_ie(u8 *pbuf, in rtw_set_ie() argument
123 *pbuf = (u8)index; in rtw_set_ie()
125 *(pbuf + 1) = (u8)len; in rtw_set_ie()
128 memcpy((void *)(pbuf + 2), (void *)source, len); in rtw_set_ie()
132 return pbuf + len + 2; in rtw_set_ie()
138 u8 *rtw_get_ie(u8 *pbuf, signed int index, signed int *len, signed int limit) in rtw_get_ie() argument
146 p = pbuf; in rtw_get_ie()
[all …]
/linux-6.12.1/arch/mips/kvm/
Dloongson_ipi.c60 void *pbuf; in loongson_vipi_read() local
83 pbuf = (void *)s->buf + (offset - 0x20); in loongson_vipi_read()
85 *(uint64_t *)val = *(uint64_t *)pbuf; in loongson_vipi_read()
87 *(uint32_t *)val = *(uint32_t *)pbuf; in loongson_vipi_read()
105 void *pbuf; in loongson_vipi_write() local
138 pbuf = (void *)s->buf + (offset - 0x20); in loongson_vipi_write()
140 *(uint64_t *)pbuf = (uint64_t)data; in loongson_vipi_write()
142 *(uint32_t *)pbuf = (uint32_t)data; in loongson_vipi_write()
/linux-6.12.1/drivers/usb/mon/
Dmon_text.c102 char *pbuf; member
412 ptr.pbuf = rp->printf_buf; in mon_text_read_t()
417 ptr.cnt += scnprintf(ptr.pbuf + ptr.cnt, ptr.limit - ptr.cnt, in mon_text_read_t()
451 ptr.pbuf = rp->printf_buf; in mon_text_read_u()
465 ptr.cnt += scnprintf(ptr.pbuf + ptr.cnt, ptr.limit - ptr.cnt, in mon_text_read_u()
523 p->cnt += scnprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_head_t()
541 p->cnt += scnprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_head_u()
552 p->cnt += scnprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_statset()
560 p->cnt += scnprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_statset()
563 p->cnt += scnprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_statset()
[all …]
/linux-6.12.1/arch/powerpc/kexec/
Delf_64.c44 struct kexec_buf pbuf = { .image = image, .buf_min = 0, in elf64_load() local
54 kbuf.buf_min = pbuf.buf_min = crashk_res.start; in elf64_load()
55 kbuf.buf_max = pbuf.buf_max = in elf64_load()
66 ret = kexec_load_purgatory(image, &pbuf); in elf64_load()
72 kexec_dprintk("Loaded purgatory at 0x%lx\n", pbuf.mem); in elf64_load()
/linux-6.12.1/sound/parisc/
Dharmony.c196 h->pbuf.buf += h->pbuf.count; /* PAGE_SIZE */ in snd_harmony_interrupt()
197 h->pbuf.buf %= h->pbuf.size; /* MAX_BUFS*PAGE_SIZE */ in snd_harmony_interrupt()
200 h->pbuf.addr + h->pbuf.buf); in snd_harmony_interrupt()
304 harmony_write(h, HARMONY_PNXTADD, h->pbuf.addr); in snd_harmony_playback_trigger()
403 h->pbuf.size = snd_pcm_lib_buffer_bytes(ss); in snd_harmony_playback_prepare()
404 h->pbuf.count = snd_pcm_lib_period_bytes(ss); in snd_harmony_playback_prepare()
405 if (h->pbuf.buf >= h->pbuf.size) in snd_harmony_playback_prepare()
406 h->pbuf.buf = 0; in snd_harmony_playback_prepare()
419 h->pbuf.addr = rt->dma_addr; in snd_harmony_playback_prepare()
465 if ((h->pbuf.addr == 0) || (h->pbuf.size == 0)) in snd_harmony_playback_pointer()
[all …]
/linux-6.12.1/net/netfilter/
Dnf_conntrack_amanda.c97 char pbuf[sizeof("65535")], *tmp; in amanda_help() local
136 len = min_t(unsigned int, sizeof(pbuf) - 1, stop - off); in amanda_help()
137 if (skb_copy_bits(skb, off, pbuf, len)) in amanda_help()
139 pbuf[len] = '\0'; in amanda_help()
141 port = htons(simple_strtoul(pbuf, &tmp, 10)); in amanda_help()
142 len = tmp - pbuf; in amanda_help()
/linux-6.12.1/lib/
Dpacking.c77 int packing(void *pbuf, u64 *uval, int startbit, int endbit, size_t pbuflen, in packing() argument
169 pval = ((u8 *)pbuf)[box_addr] & box_mask; in packing()
193 ((u8 *)pbuf)[box_addr] &= ~box_mask; in packing()
194 ((u8 *)pbuf)[box_addr] |= pval; in packing()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dmap_kptr.c19 char buf[16], *pbuf; in test_map_kptr_success() local
47 pbuf = calloc(cpu, sizeof(buf)); in test_map_kptr_success()
48 if (!ASSERT_OK_PTR(pbuf, "calloc(pbuf)")) in test_map_kptr_success()
60 &key, sizeof(key), pbuf, cpu * sizeof(buf), 0); in test_map_kptr_success()
114 free(pbuf); in test_map_kptr_success()
/linux-6.12.1/drivers/staging/rtl8723bs/os_dep/
Dosdep_service.c27 void *pbuf = _rtw_malloc(sz); in _rtw_zmalloc() local
29 if (pbuf) in _rtw_zmalloc()
30 memset(pbuf, 0, sz); in _rtw_zmalloc()
32 return pbuf; in _rtw_zmalloc()
/linux-6.12.1/tools/perf/ui/browsers/
Dres_sample.c38 char pbuf[256], tidbuf[32], cpubuf[32]; in res_sample_browse() local
39 const char *perf = perf_exe(pbuf, sizeof pbuf); in res_sample_browse()
/linux-6.12.1/drivers/scsi/qla2xxx/
Dqla_dbg.c2457 static void ql_dbg_prefix(char *pbuf, int pbuf_size, struct pci_dev *pdev, in ql_dbg_prefix() argument
2464 snprintf(pbuf, pbuf_size, "%s [%s]-%04x:%lu: ", QL_MSGHDR, in ql_dbg_prefix()
2467 snprintf(pbuf, pbuf_size, "%s [%s]-%04x: : ", QL_MSGHDR, in ql_dbg_prefix()
2471 snprintf(pbuf, pbuf_size, "%s [%s]-%04x: : ", QL_MSGHDR, in ql_dbg_prefix()
2494 char pbuf[64]; in ql_dbg() local
2496 ql_ktrace(1, level, pbuf, NULL, vha, id, fmt); in ql_dbg()
2501 if (!pbuf[0]) /* set by ql_ktrace */ in ql_dbg()
2502 ql_dbg_prefix(pbuf, ARRAY_SIZE(pbuf), NULL, vha, id); in ql_dbg()
2509 pr_warn("%s%pV", pbuf, &vaf); in ql_dbg()
2534 char pbuf[128]; in ql_dbg_pci() local
[all …]

123456