| /linux/drivers/infiniband/hw/hfi1/ |
| H A 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 …]
|
| H A D | pio.h | 52 struct pio_buf pbuf; member 282 void pio_copy(struct hfi1_devdata *dd, struct pio_buf *pbuf, u64 pbc, 284 void seg_pio_copy_start(struct pio_buf *pbuf, u64 pbc, 286 void seg_pio_copy_mid(struct pio_buf *pbuf, const void *from, size_t nbytes); 287 void seg_pio_copy_end(struct pio_buf *pbuf);
|
| H A 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() 1402 struct pio_buf *pbuf = NULL; in sc_buffer_alloc() local 1460 pbuf = &sc->sr[head].pbuf; in sc_buffer_alloc() 1461 pbuf->sent_at = sc->fill; in sc_buffer_alloc() 1462 pbuf->cb = cb; in sc_buffer_alloc() 1463 pbuf->arg = arg; in sc_buffer_alloc() 1464 pbuf->sc = sc; /* could be filled in at sc->sr init time */ in sc_buffer_alloc() [all …]
|
| /linux/drivers/staging/rtl8723bs/include/ |
| H A D | wifi.h | 73 #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 …]
|
| H A D | rtw_mlme_ext.h | 624 u8 (*h2cfuns)(struct adapter *padapter, u8 *pbuf); 628 u8 read_macreg_hdl(struct adapter *padapter, u8 *pbuf); 629 u8 write_macreg_hdl(struct adapter *padapter, u8 *pbuf); 630 u8 read_bbreg_hdl(struct adapter *padapter, u8 *pbuf); 631 u8 write_bbreg_hdl(struct adapter *padapter, u8 *pbuf); 632 u8 read_rfreg_hdl(struct adapter *padapter, u8 *pbuf); 633 u8 write_rfreg_hdl(struct adapter *padapter, u8 *pbuf); 636 u8 NULL_hdl(struct adapter *padapter, u8 *pbuf); 637 u8 join_cmd_hdl(struct adapter *padapter, u8 *pbuf); 638 u8 disconnect_hdl(struct adapter *padapter, u8 *pbuf); [all …]
|
| H A D | rtw_mlme.h | 253 extern void rtw_joinbss_event_prehandle(struct adapter *adapter, u8 *pbuf); 254 extern void rtw_survey_event_callback(struct adapter *adapter, u8 *pbuf); 255 extern void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf); 256 extern void rtw_joinbss_event_callback(struct adapter *adapter, u8 *pbuf); 257 extern void rtw_stassoc_event_callback(struct adapter *adapter, u8 *pbuf); 258 extern void rtw_stadel_event_callback(struct adapter *adapter, u8 *pbuf); 259 extern void rtw_atimdone_event_callback(struct adapter *adapter, u8 *pbuf); 260 extern void rtw_cpwm_event_callback(struct adapter *adapter, u8 *pbuf); 261 extern void rtw_wmm_event_callback(struct adapter *padapter, u8 *pbuf);
|
| H A D | sdio_ops.h | 19 extern s32 sdio_local_read(struct adapter *padapter, u32 addr, u32 cnt, u8 *pbuf); 20 extern s32 sdio_local_write(struct adapter *padapter, u32 addr, u32 cnt, u8 *pbuf);
|
| /linux/drivers/media/platform/rockchip/rkisp1/ |
| H A D | rkisp1-stats.c | 176 struct rkisp1_stat_buffer *pbuf) in rkisp1_stats_get_awb_meas_v10() argument 182 pbuf->meas_type |= RKISP1_CIF_ISP_STAT_AWB; in rkisp1_stats_get_awb_meas_v10() 184 pbuf->params.awb.awb_mean[0].cnt = in rkisp1_stats_get_awb_meas_v10() 188 pbuf->params.awb.awb_mean[0].mean_cr_or_r = in rkisp1_stats_get_awb_meas_v10() 190 pbuf->params.awb.awb_mean[0].mean_cb_or_b = in rkisp1_stats_get_awb_meas_v10() 192 pbuf->params.awb.awb_mean[0].mean_y_or_g = in rkisp1_stats_get_awb_meas_v10() 197 struct rkisp1_stat_buffer *pbuf) in rkisp1_stats_get_awb_meas_v12() argument 203 pbuf->meas_type |= RKISP1_CIF_ISP_STAT_AWB; in rkisp1_stats_get_awb_meas_v12() 205 pbuf->params.awb.awb_mean[0].cnt = in rkisp1_stats_get_awb_meas_v12() 209 pbuf->params.awb.awb_mean[0].mean_cr_or_r = in rkisp1_stats_get_awb_meas_v12() [all …]
|
| /linux/drivers/mtd/nand/raw/ |
| H A 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/drivers/staging/rtl8723bs/core/ |
| H A D | rtw_ieee80211.c | 108 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() 136 u8 *rtw_get_ie(u8 *pbuf, signed int index, signed int *len, signed int limit) in rtw_get_ie() argument 144 p = pbuf; in rtw_get_ie() [all …]
|
| H A D | rtw_cmd.c | 379 u8 (*cmd_hdl)(struct adapter *padapter, u8 *pbuf); in rtw_cmd_thread() 506 if (extra_parm->pbuf && extra_parm->size > 0) in rtw_cmd_thread() 507 kfree(extra_parm->pbuf); in rtw_cmd_thread() 1029 pdrvextra_cmd_parm->pbuf = NULL; in rtw_reset_securitypriv_cmd() 1062 pdrvextra_cmd_parm->pbuf = NULL; in rtw_free_assoc_resources_cmd() 1096 pdrvextra_cmd_parm->pbuf = NULL; in rtw_dynamic_chk_wk_cmd() 1337 pdrvextra_cmd_parm->pbuf = NULL; in rtw_lps_ctrl_wk_cmd() 1378 pdrvextra_cmd_parm->pbuf = NULL; in rtw_dm_in_lps_wk_cmd() 1440 pdrvextra_cmd_parm->pbuf = psta; in rtw_dm_ra_mask_wk_cmd() 1475 pdrvextra_cmd_parm->pbuf = NULL; in rtw_ps_cmd() [all …]
|
| H A D | rtw_mlme_ext.c | 1931 pmgntframe->buf_addr = pxmitbuf->pbuf; in _alloc_mgtxmitframe() 2711 unsigned char *pbuf, *pframe; in issue_asocrsp() local 2778 …pbuf = rtw_get_ie(ie + _BEACON_IE_OFFSET_, WLAN_EID_HT_CAPABILITY, &ie_len, (pnetwork->ie_length -… in issue_asocrsp() 2779 if (pbuf && ie_len > 0) { in issue_asocrsp() 2780 memcpy(pframe, pbuf, ie_len+2); in issue_asocrsp() 2787 …pbuf = rtw_get_ie(ie + _BEACON_IE_OFFSET_, WLAN_EID_HT_OPERATION, &ie_len, (pnetwork->ie_length - … in issue_asocrsp() 2788 if (pbuf && ie_len > 0) { in issue_asocrsp() 2789 memcpy(pframe, pbuf, ie_len+2); in issue_asocrsp() 2801 for (pbuf = ie + _BEACON_IE_OFFSET_; ; pbuf += (ie_len + 2)) { in issue_asocrsp() 2802 …pbuf = rtw_get_ie(pbuf, WLAN_EID_VENDOR_SPECIFIC, &ie_len, (pnetwork->ie_length - _BEACON_IE_OFFSE… in issue_asocrsp() [all …]
|
| /linux/arch/mips/kvm/ |
| H A D | loongson_ipi.c | 60 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/drivers/usb/mon/ |
| H A 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/arch/powerpc/kexec/ |
| H A D | elf_64.c | 44 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/include/linux/ |
| H A D | packing.h | 101 int packing(void *pbuf, u64 *uval, int startbit, int endbit, size_t pbuflen, 104 int pack(void *pbuf, u64 uval, size_t startbit, size_t endbit, size_t pbuflen, 107 int unpack(const void *pbuf, u64 *uval, size_t startbit, size_t endbit, 110 void pack_fields_u8(void *pbuf, size_t pbuflen, const void *ustruct, 114 void pack_fields_u16(void *pbuf, size_t pbuflen, const void *ustruct, 118 void unpack_fields_u8(const void *pbuf, size_t pbuflen, void *ustruct, 122 void unpack_fields_u16(const void *pbuf, size_t pbuflen, void *ustruct, 438 #define pack_fields(pbuf, pbuflen, ustruct, fields, quirks) \ argument 445 )((pbuf), (pbuflen), (ustruct), (fields), ARRAY_SIZE(fields), (quirks)); \ 448 #define unpack_fields(pbuf, pbuflen, ustruct, fields, quirks) \ argument [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A 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/drivers/staging/rtl8723bs/os_dep/ |
| H A D | osdep_service.c | 27 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/tools/perf/ui/browsers/ |
| H A 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/kernel/cgroup/ |
| H A D | debug.c | 205 char pbuf[16]; in cgroup_subsys_states_read() local 217 pbuf[0] = '\0'; in cgroup_subsys_states_read() 221 snprintf(pbuf, sizeof(pbuf) - 1, " P=%d", in cgroup_subsys_states_read() 225 atomic_read(&css->online_cnt), pbuf); in cgroup_subsys_states_read()
|
| /linux/fs/smb/client/ |
| H A D | link.c | 230 char *pbuf, unsigned int *pbytes_read) in cifs_query_mf_symlink() argument 266 rc = CIFSSMBRead(xid, &io_parms, pbytes_read, &pbuf, &buf_type); in cifs_query_mf_symlink() 275 char *pbuf, unsigned int *pbytes_written) in cifs_create_mf_symlink() argument 303 rc = CIFSSMBWrite(xid, &io_parms, pbytes_written, pbuf); in cifs_create_mf_symlink() 315 char *pbuf, unsigned int *pbytes_read) in smb3_query_mf_symlink() argument 366 rc = SMB2_read(xid, &io_parms, pbytes_read, &pbuf, &buf_type); in smb3_query_mf_symlink() 378 char *pbuf, unsigned int *pbytes_written) in smb3_create_mf_symlink() argument 421 iov[1].iov_base = pbuf; in smb3_create_mf_symlink()
|
| /linux/drivers/scsi/qla2xxx/ |
| H A D | qla_dbg.c | 2458 static void ql_dbg_prefix(char *pbuf, int pbuf_size, struct pci_dev *pdev, in ql_dbg_prefix() argument 2465 snprintf(pbuf, pbuf_size, "%s [%s]-%04x:%lu: ", QL_MSGHDR, in ql_dbg_prefix() 2468 snprintf(pbuf, pbuf_size, "%s [%s]-%04x: : ", QL_MSGHDR, in ql_dbg_prefix() 2472 snprintf(pbuf, pbuf_size, "%s [%s]-%04x: : ", QL_MSGHDR, in ql_dbg_prefix() 2495 char pbuf[64]; in ql_dbg() local 2497 ql_ktrace(1, level, pbuf, NULL, vha, id, fmt); in ql_dbg() 2502 if (!pbuf[0]) /* set by ql_ktrace */ in ql_dbg() 2503 ql_dbg_prefix(pbuf, ARRAY_SIZE(pbuf), NULL, vha, id); in ql_dbg() 2510 pr_warn("%s%pV", pbuf, &vaf); in ql_dbg() 2535 char pbuf[128]; in ql_dbg_pci() local [all …]
|
| H A D | qla_dbg.h | 397 #define ql_ktrace(dbg_msg, level, pbuf, pdev, vha, id, fmt) do { \ argument 402 pbuf[0] = 0; \ 410 ql_dbg_prefix(pbuf, ARRAY_SIZE(pbuf), pdev, vha, id + dbg_off); \ 416 trace_ql_dbg_log(pbuf, &_vaf); \
|
| /linux/drivers/misc/vmw_vmci/ |
| H A D | vmci_context.c | 678 u32 *buf_size, void **pbuf) in vmci_ctx_get_chkpt_notifiers() argument 687 *pbuf = NULL; in vmci_ctx_get_chkpt_notifiers() 705 *pbuf = notifiers; in vmci_ctx_get_chkpt_notifiers() 710 u32 *buf_size, void **pbuf) in vmci_ctx_get_chkpt_doorbells() argument 732 *pbuf = dbells; in vmci_ctx_get_chkpt_doorbells() 735 *pbuf = NULL; in vmci_ctx_get_chkpt_doorbells() 747 void **pbuf) in vmci_ctx_get_chkpt_state() argument 760 result = vmci_ctx_get_chkpt_notifiers(context, buf_size, pbuf); in vmci_ctx_get_chkpt_state() 770 *pbuf = NULL; in vmci_ctx_get_chkpt_state() 775 result = vmci_ctx_get_chkpt_doorbells(context, buf_size, pbuf); in vmci_ctx_get_chkpt_state()
|
| /linux/drivers/firmware/arm_ffa/ |
| H A D | driver.c | 392 struct ffa_partition_info *pbuf; in ffa_partition_probe() local 409 pbuf = kcalloc(count, sizeof(*pbuf), GFP_KERNEL); in ffa_partition_probe() 410 if (!pbuf) in ffa_partition_probe() 416 pbuf, count); in ffa_partition_probe() 420 pbuf, count); in ffa_partition_probe() 422 kfree(pbuf); in ffa_partition_probe() 424 *buffer = pbuf; in ffa_partition_probe() 1083 struct ffa_partition_info *pbuf; in ffa_partition_info_get() local 1090 count = ffa_partition_probe(&uuid, &pbuf); in ffa_partition_info_get() 1094 memcpy(buffer, pbuf, sizeof(*pbuf) * count); in ffa_partition_info_get() [all …]
|