/linux-6.6.21/drivers/staging/rtl8712/ |
D | wifi.h | 27 #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 …]
|
D | rtl8712_cmd.c | 103 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 …]
|
D | rtl871x_mlme.h | 163 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);
|
D | ieee80211.c | 88 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()
|
D | usb_ops_linux.c | 30 void *pbuf; member 184 __le32 *pbuf; in r8712_usb_read_port_complete() local 200 pbuf = (__le32 *)precvbuf->pbuf; in r8712_usb_read_port_complete() 201 isevt = le32_to_cpu(*(pbuf + 1)) & 0x1ff; in r8712_usb_read_port_complete() 203 r8712_rxcmd_event_hdl(padapter, pbuf); in r8712_usb_read_port_complete() 277 precvbuf->pbuf = precvbuf->pskb->data; in r8712_usb_read_port() 283 precvbuf->pbuf = precvbuf->pskb->data; in r8712_usb_read_port() 289 precvbuf->pbuf, MAX_RECVBUF_SZ, in r8712_usb_read_port()
|
/linux-6.6.21/drivers/infiniband/hw/hfi1/ |
D | pio_copy.c | 30 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 …]
|
D | pio.h | 52 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);
|
D | pio.c | 880 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.6.21/drivers/staging/rtl8723bs/include/ |
D | wifi.h | 92 #define SetToDs(pbuf) \ argument 93 (*(__le16 *)(pbuf) |= cpu_to_le16(_TO_DS_)) 95 #define GetToDs(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_TO_DS_)) != 0) argument 97 #define SetFrDs(pbuf) \ argument 98 (*(__le16 *)(pbuf) |= cpu_to_le16(_FROM_DS_)) 100 #define GetFrDs(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_FROM_DS_)) != 0) argument 104 #define SetMFrag(pbuf) \ argument 105 (*(__le16 *)(pbuf) |= cpu_to_le16(_MORE_FRAG_)) 107 #define GetMFrag(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_MORE_FRAG_)) != 0) argument 109 #define ClearMFrag(pbuf) \ argument [all …]
|
D | rtw_mlme_ext.h | 668 u8 (*h2cfuns)(struct adapter *padapter, u8 *pbuf); 672 u8 read_macreg_hdl(struct adapter *padapter, u8 *pbuf); 673 u8 write_macreg_hdl(struct adapter *padapter, u8 *pbuf); 674 u8 read_bbreg_hdl(struct adapter *padapter, u8 *pbuf); 675 u8 write_bbreg_hdl(struct adapter *padapter, u8 *pbuf); 676 u8 read_rfreg_hdl(struct adapter *padapter, u8 *pbuf); 677 u8 write_rfreg_hdl(struct adapter *padapter, u8 *pbuf); 680 u8 NULL_hdl(struct adapter *padapter, u8 *pbuf); 681 u8 join_cmd_hdl(struct adapter *padapter, u8 *pbuf); 682 u8 disconnect_hdl(struct adapter *padapter, u8 *pbuf); [all …]
|
D | rtw_mlme.h | 425 extern void rtw_joinbss_event_prehandle(struct adapter *adapter, u8 *pbuf); 426 extern void rtw_survey_event_callback(struct adapter *adapter, u8 *pbuf); 427 extern void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf); 428 extern void rtw_joinbss_event_callback(struct adapter *adapter, u8 *pbuf); 429 extern void rtw_stassoc_event_callback(struct adapter *adapter, u8 *pbuf); 430 extern void rtw_stadel_event_callback(struct adapter *adapter, u8 *pbuf); 431 extern void rtw_atimdone_event_callback(struct adapter *adapter, u8 *pbuf); 432 extern void rtw_cpwm_event_callback(struct adapter *adapter, u8 *pbuf); 433 extern void rtw_wmm_event_callback(struct adapter *padapter, u8 *pbuf);
|
/linux-6.6.21/drivers/mtd/nand/raw/ |
D | nand_onfi.c | 149 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.6.21/drivers/media/platform/rockchip/rkisp1/ |
D | rkisp1-stats.c | 178 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.6.21/drivers/staging/rtl8723bs/core/ |
D | rtw_ieee80211.c | 107 u8 *rtw_set_fixed_ie(unsigned char *pbuf, unsigned int len, unsigned char *source, in rtw_set_fixed_ie() argument 110 memcpy((void *)pbuf, (void *)source, len); in rtw_set_fixed_ie() 112 return pbuf + len; in rtw_set_fixed_ie() 116 u8 *rtw_set_ie(u8 *pbuf, in rtw_set_ie() argument 122 *pbuf = (u8)index; in rtw_set_ie() 124 *(pbuf + 1) = (u8)len; in rtw_set_ie() 127 memcpy((void *)(pbuf + 2), (void *)source, len); in rtw_set_ie() 131 return pbuf + len + 2; in rtw_set_ie() 137 u8 *rtw_get_ie(u8 *pbuf, signed int index, signed int *len, signed int limit) in rtw_get_ie() argument 145 p = pbuf; in rtw_get_ie() [all …]
|
/linux-6.6.21/arch/mips/kvm/ |
D | loongson_ipi.c | 58 void *pbuf; in loongson_vipi_read() local 81 pbuf = (void *)s->buf + (offset - 0x20); in loongson_vipi_read() 83 *(uint64_t *)val = *(uint64_t *)pbuf; in loongson_vipi_read() 85 *(uint32_t *)val = *(uint32_t *)pbuf; in loongson_vipi_read() 103 void *pbuf; in loongson_vipi_write() local 136 pbuf = (void *)s->buf + (offset - 0x20); in loongson_vipi_write() 138 *(uint64_t *)pbuf = (uint64_t)data; in loongson_vipi_write() 140 *(uint32_t *)pbuf = (uint32_t)data; in loongson_vipi_write()
|
/linux-6.6.21/drivers/firmware/arm_ffa/ |
D | driver.c | 241 struct ffa_partition_info *pbuf; in ffa_partition_probe() local 249 pbuf = kcalloc(count, sizeof(*pbuf), GFP_KERNEL); in ffa_partition_probe() 250 if (!pbuf) in ffa_partition_probe() 254 uuid0_4[3], pbuf, count); in ffa_partition_probe() 256 kfree(pbuf); in ffa_partition_probe() 258 *buffer = pbuf; in ffa_partition_probe() 574 struct ffa_partition_info *pbuf; in ffa_partition_info_get() local 581 count = ffa_partition_probe(&uuid, &pbuf); in ffa_partition_info_get() 585 memcpy(buffer, pbuf, sizeof(*pbuf) * count); in ffa_partition_info_get() 586 kfree(pbuf); in ffa_partition_info_get() [all …]
|
/linux-6.6.21/drivers/usb/mon/ |
D | mon_text.c | 102 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.6.21/arch/powerpc/kexec/ |
D | elf_64.c | 42 struct kexec_buf pbuf = { .image = image, .buf_min = 0, in elf64_load() local 52 kbuf.buf_min = pbuf.buf_min = crashk_res.start; in elf64_load() 53 kbuf.buf_max = pbuf.buf_max = in elf64_load() 64 ret = kexec_load_purgatory(image, &pbuf); in elf64_load() 70 pr_debug("Loaded purgatory at 0x%lx\n", pbuf.mem); in elf64_load()
|
/linux-6.6.21/sound/parisc/ |
D | harmony.c | 196 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.6.21/net/netfilter/ |
D | nf_conntrack_amanda.c | 97 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.6.21/lib/ |
D | packing.c | 77 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.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | map_kptr.c | 19 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.6.21/drivers/staging/rtl8723bs/os_dep/ |
D | osdep_service.c | 28 void *pbuf = _rtw_malloc(sz); in _rtw_zmalloc() local 30 if (pbuf) in _rtw_zmalloc() 31 memset(pbuf, 0, sz); in _rtw_zmalloc() 33 return pbuf; in _rtw_zmalloc()
|
/linux-6.6.21/tools/perf/ui/browsers/ |
D | res_sample.c | 38 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.6.21/block/partitions/ |
D | cmdline.c | 196 char *pbuf; in cmdline_parts_parse() local 202 next = pbuf = buf = kstrdup(cmdline, GFP_KERNEL); in cmdline_parts_parse() 208 while (next && *pbuf) { in cmdline_parts_parse() 209 next = strchr(pbuf, ';'); in cmdline_parts_parse() 213 ret = parse_parts(next_parts, pbuf); in cmdline_parts_parse() 218 pbuf = ++next; in cmdline_parts_parse()
|