/linux/Documentation/target/ |
A D | tcm_mod_builder.py | 41 buf = "" 52 buf += "\n" 61 buf += "\n" 85 buf = "" 96 buf += "\n" 128 buf = "" 139 buf += "\n" 181 buf = "" 374 buf = "" 538 buf = "" [all …]
|
/linux/drivers/media/dvb-frontends/ |
A D | nxt200x.c | 262 buf = 0x80; in nxt200x_microcontroller_stop() 279 u8 buf; in nxt200x_microcontroller_start() local 288 u8 buf[9]; in nxt2004_microcontroller_init() local 298 buf[0] = 0x01; buf[1] = 0x23; buf[2] = 0x45; buf[3] = 0x67; buf[4] = 0x89; in nxt2004_microcontroller_init() 299 buf[5] = 0xAB; buf[6] = 0xCD; buf[7] = 0xEF; buf[8] = 0xC0; in nxt2004_microcontroller_init() 378 u8 buf; in nxt200x_agc_reset() local 472 u8 buf[3]; in nxt2004_load_firmware() local 523 u8 buf[5]; in nxt200x_setup_frontend_parameters() local 687 buf[0] = 0x80; buf[1] = 0x00; buf[2] = 0x00; in nxt200x_setup_frontend_parameters() 1011 buf[0] = 0x31; buf[1] = 0x5E; buf[2] = 0x66; in nxt2004_init() [all …]
|
/linux/sound/firewire/bebob/ |
A D | bebob_command.c | 13 u8 *buf; in avc_audio_set_selector() local 30 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_audio_set_selector() 44 kfree(buf); in avc_audio_set_selector() 51 u8 *buf; in avc_audio_get_selector() local 68 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_audio_get_selector() 113 u8 *buf; in avc_bridgeco_get_plug_type() local 123 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_bridgeco_get_plug_type() 149 u8 *buf; in avc_bridgeco_get_plug_ch_count() local 208 memmove(buf, buf + 10, err - 10); in avc_bridgeco_get_plug_ch_pos() 218 u8 *buf; in avc_bridgeco_get_plug_section_type() local [all …]
|
/linux/drivers/media/common/videobuf2/ |
A D | videobuf2-dma-contig.c | 111 buf->vaddr = dma_vmap_noncontiguous(buf->dev, buf->size, in vb2_dc_vaddr() 178 buf->dma_sgt, buf->dma_dir); in vb2_dc_put() 184 dma_free_attrs(buf->dev, buf->size, buf->cookie, in vb2_dc_put() 185 buf->dma_addr, buf->attrs); in vb2_dc_put() 206 buf->vaddr = buf->cookie; in vb2_dc_alloc_coherent() 267 buf->handler.arg = buf; in vb2_dc_alloc() 288 ret = dma_mmap_attrs(buf->dev, vma, buf->cookie, buf->dma_addr, in vb2_dc_mmap() 289 buf->size, buf->attrs); in vb2_dc_mmap() 455 vaddr = vb2_dc_vaddr(buf->vb, buf); in vb2_dc_dmabuf_ops_vmap() 497 buf->size, buf->attrs); in vb2_dc_get_base_sgt() [all …]
|
A D | videobuf2-dma-sg.c | 112 buf = kzalloc(sizeof *buf, GFP_KERNEL); in vb2_dma_sg_alloc() 122 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_alloc() 155 buf->handler.refcount = &buf->refcount; in vb2_dma_sg_alloc() 157 buf->handler.arg = buf; in vb2_dma_sg_alloc() 192 vm_unmap_ram(buf->vaddr, buf->num_pages); in vb2_dma_sg_put() 234 buf = kzalloc(sizeof *buf, GFP_KERNEL); in vb2_dma_sg_get_userptr() 243 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_get_userptr() 256 buf->num_pages, buf->offset, size, 0)) in vb2_dma_sg_get_userptr() 293 vm_unmap_ram(buf->vaddr, buf->num_pages); in vb2_dma_sg_put_userptr() 316 buf->vaddr = vm_map_ram(buf->pages, buf->num_pages, -1); in vb2_dma_sg_vaddr() [all …]
|
A D | videobuf2-vmalloc.c | 43 if (!buf) in vb2_vmalloc_alloc() 47 buf->vaddr = vmalloc_user(buf->size); in vb2_vmalloc_alloc() 50 kfree(buf); in vb2_vmalloc_alloc() 55 buf->handler.refcount = &buf->refcount; in vb2_vmalloc_alloc() 57 buf->handler.arg = buf; in vb2_vmalloc_alloc() 60 return buf; in vb2_vmalloc_alloc() 69 kfree(buf); in vb2_vmalloc_put() 81 buf = kzalloc(sizeof(*buf), GFP_KERNEL); in vb2_vmalloc_get_userptr() 82 if (!buf) in vb2_vmalloc_get_userptr() 114 return buf; in vb2_vmalloc_get_userptr() [all …]
|
/linux/kernel/ |
A D | relay.c | 207 *per_cpu_ptr(chan->buf, buf->cpu) = NULL; in relay_destroy_buf() 302 buf->data = buf->start; in __relay_reset() 337 if ((buf = *per_cpu_ptr(chan->buf, i))) in relay_reset() 409 *per_cpu_ptr(chan->buf, 0) = buf; in relay_open_buf() 451 *per_cpu_ptr(chan->buf, cpu) = buf; in relay_prepare_cpu() 523 *per_cpu_ptr(chan->buf, i) = buf; in relay_open() 597 buf = *per_cpu_ptr(chan->buf, 0); in relay_late_setup_files() 616 buf = *per_cpu_ptr(chan->buf, i); in relay_late_setup_files() 634 disp.buf = buf; in relay_late_setup_files() 671 buf->prev_padding = buf->chan->subbuf_size - buf->offset; in relay_switch_subbuf() [all …]
|
/linux/drivers/xen/ |
A D | xen-front-pgdir-shbuf.c | 105 if (buf->ops && buf->ops->map) in xen_front_pgdir_shbuf_map() 106 return buf->ops->map(buf); in xen_front_pgdir_shbuf_map() 126 if (buf->ops && buf->ops->unmap) in xen_front_pgdir_shbuf_unmap() 127 return buf->ops->unmap(buf); in xen_front_pgdir_shbuf_unmap() 181 buf->num_grefs = get_num_pages_dir(buf); in backend_calc_num_grefs() 196 buf->num_grefs = get_num_pages_dir(buf) + buf->num_pages; in guest_calc_num_grefs() 214 if (!buf->pages || !buf->backend_map_handles || !buf->grefs) in backend_unmap() 266 buf->backend_map_handles = kcalloc(buf->num_pages, in backend_map() 486 buf->grefs = kcalloc(buf->num_grefs, sizeof(*buf->grefs), GFP_KERNEL); in alloc_storage() 537 buf->ops->calc_num_grefs(buf); in xen_front_pgdir_shbuf_alloc() [all …]
|
/linux/drivers/media/pci/saa7164/ |
A D | saa7164-buffer.c | 61 __func__, buf, buf->idx); in saa7164_buffer_display() 63 buf->cpu, (long long)buf->dma, buf->pci_size); in saa7164_buffer_display() 65 buf->pt_cpu, (long long)buf->pt_dma, buf->pt_size); in saa7164_buffer_display() 71 i, buf->pt_cpu, (u64)*(buf->pt_cpu)); in saa7164_buffer_display() 91 buf = kzalloc(sizeof(*buf), GFP_KERNEL); in saa7164_buffer_alloc() 117 memset(buf->cpu, 0xff, buf->pci_size); in saa7164_buffer_alloc() 118 buf->crc = crc32(0, buf->cpu, buf->actual_size); in saa7164_buffer_alloc() 124 buf->cpu, (long)buf->dma, buf->pci_size); in saa7164_buffer_alloc() 126 buf->pt_cpu, (long)buf->pt_dma, buf->pt_size); in saa7164_buffer_alloc() 154 if (!buf || !buf->port) in saa7164_buffer_dealloc() [all …]
|
/linux/sound/firewire/oxfw/ |
A D | oxfw-command.c | 13 u8 *buf; in avc_stream_set_format() local 17 if (buf == NULL) in avc_stream_set_format() 33 err = fcp_avc_transaction(unit, buf, len + 10, buf, len + 10, in avc_stream_set_format() 47 kfree(buf); in avc_stream_set_format() 78 err = fcp_avc_transaction(unit, buf, 12, buf, *len, in avc_stream_get_format() 99 memmove(buf, buf + 10, err - 10); in avc_stream_get_format() 102 memmove(buf, buf + 11, err - 11); in avc_stream_get_format() 116 u8 *buf; in avc_general_inquiry_sig_fmt() local 127 if (buf == NULL) in avc_general_inquiry_sig_fmt() 143 err = fcp_avc_transaction(unit, buf, 8, buf, 8, in avc_general_inquiry_sig_fmt() [all …]
|
/linux/arch/mips/mm/ |
A D | page.c | 255 uasm_i_nop(buf); in build_clear_pref() 256 uasm_i_nop(buf); in build_clear_pref() 257 uasm_i_nop(buf); in build_clear_pref() 258 uasm_i_nop(buf); in build_clear_pref() 351 uasm_i_jr(&buf, RA); in build_clear_page() 352 uasm_i_nop(&buf); in build_clear_page() 409 uasm_i_nop(buf); in build_copy_store_pref() 410 uasm_i_nop(buf); in build_copy_store_pref() 411 uasm_i_nop(buf); in build_copy_store_pref() 412 uasm_i_nop(buf); in build_copy_store_pref() [all …]
|
/linux/drivers/media/usb/dvb-usb-v2/ |
A D | mxl111sf-i2c.c | 330 u8 buf[26]; in mxl111sf_i2c_check_status() local 335 buf[1] = 0x00; in mxl111sf_i2c_check_status() 338 buf[3] = 0x00; in mxl111sf_i2c_check_status() 339 buf[4] = 0x00; in mxl111sf_i2c_check_status() 343 mxl111sf_i2c_get_data(state, 0, buf, buf); in mxl111sf_i2c_check_status() 354 u8 buf[26]; in mxl111sf_i2c_check_fifo() local 370 mxl111sf_i2c_get_data(state, 0, buf, buf); in mxl111sf_i2c_check_fifo() 432 u8 buf[26]; in mxl111sf_i2c_hw_xfer_msg() local 518 buf[3+(i*3)] = msg->buf[(index*8)+i]; in mxl111sf_i2c_hw_xfer_msg() 548 buf[3+(i*3)] = msg->buf[(index*8)+i]; in mxl111sf_i2c_hw_xfer_msg() [all …]
|
/linux/drivers/net/wireless/ath/ath5k/ |
A D | debug.c | 185 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_beacon() 213 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_beacon() 304 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_debug() 313 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_debug() 384 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_antenna() 388 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_antenna() 391 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_antenna() 394 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_antenna() 397 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_antenna() 402 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_antenna() [all …]
|
/linux/drivers/net/wireless/ath/ath11k/ |
A D | debugfs_htt_stats.c | 42 u8 *buf = stats_req->buf; in htt_print_stats_string_tlv() local 73 u8 *buf = stats_req->buf; in htt_print_tx_pdev_stats_cmn_tlv() local 193 u8 *buf = stats_req->buf; in htt_print_tx_pdev_stats_urrn_tlv_v() local 217 u8 *buf = stats_req->buf; in htt_print_tx_pdev_stats_flush_tlv_v() local 241 u8 *buf = stats_req->buf; in htt_print_tx_pdev_stats_sifs_tlv_v() local 265 u8 *buf = stats_req->buf; in htt_print_tx_pdev_stats_phy_err_tlv_v() local 289 u8 *buf = stats_req->buf; in htt_print_tx_pdev_stats_sifs_hist_tlv_v() local 313 u8 *buf = stats_req->buf; in htt_print_tx_pdev_stats_tx_ppdu_stats_tlv_v() local 349 u8 *buf = stats_req->buf; in htt_print_tx_pdev_stats_tried_mpdu_cnt_hist_tlv_v() local 374 u8 *buf = stats_req->buf; in htt_print_hw_stats_intr_misc_tlv() local [all …]
|
/linux/net/bridge/ |
A D | br_stp_bpdu.c | 86 buf[0] = 0; in br_send_config_bpdu() 87 buf[1] = 0; in br_send_config_bpdu() 88 buf[2] = 0; in br_send_config_bpdu() 133 buf[0] = 0; in br_send_tcn_bpdu() 134 buf[1] = 0; in br_send_tcn_bpdu() 135 buf[2] = 0; in br_send_tcn_bpdu() 158 buf = skb->data; in br_stp_rcv() 159 if (buf[0] != 0 || buf[1] != 0 || buf[2] != 0) in br_stp_rcv() 196 buf = skb->data; in br_stp_rcv() 212 buf[13]; in br_stp_rcv() [all …]
|
/linux/drivers/tty/ |
A D | tty_audit.c | 29 return buf; in tty_audit_buf_ref() 36 buf = kmalloc(sizeof(*buf), GFP_KERNEL); in tty_audit_buf_alloc() 37 if (!buf) in tty_audit_buf_alloc() 46 return buf; in tty_audit_buf_alloc() 49 kfree(buf); in tty_audit_buf_alloc() 58 kfree(buf); in tty_audit_buf_free() 99 tty_audit_log("tty", buf->dev, buf->data, buf->valid); in tty_audit_buf_push() 117 if (!buf) in tty_audit_exit() 182 if (buf) in tty_audit_buf_get() 229 if (buf->dev != dev || buf->icanon != icanon) { in tty_audit_add_data() [all …]
|
/linux/drivers/net/wireless/st/cw1200/ |
A D | wsm.c | 29 if ((buf)->data + size > (buf)->end) \ 36 if ((buf)->data + size > (buf)->end) \ 229 WSM_GET(buf, arg->buf, size); in wsm_read_mib_confirm() 1254 buf.begin = buf.data = data; in wsm_handle_exception() 1255 buf.end = &buf.begin[len]; in wsm_handle_exception() 1779 buf->end = buf->begin ? &buf->begin[FWLOAD_BLOCK_SIZE] : buf->begin; in wsm_buf_init() 1786 buf->begin = buf->data = buf->end = NULL; in wsm_buf_deinit() 1792 buf->data = &buf->begin[4]; in wsm_buf_reset() 1795 buf->data = buf->begin; in wsm_buf_reset() 1814 buf->data = &buf->begin[pos]; in wsm_buf_reserve() [all …]
|
/linux/drivers/iio/test/ |
A D | iio-test-format.c | 17 char *buf = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL); in iio_test_iio_format_value_integer() local 22 ret = iio_format_value(buf, IIO_VAL_INT, 1, &val); in iio_test_iio_format_value_integer() 23 IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "42\n"); in iio_test_iio_format_value_integer() 26 ret = iio_format_value(buf, IIO_VAL_INT, 1, &val); in iio_test_iio_format_value_integer() 27 IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "-23\n"); in iio_test_iio_format_value_integer() 30 ret = iio_format_value(buf, IIO_VAL_INT, 1, &val); in iio_test_iio_format_value_integer() 31 IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "0\n"); in iio_test_iio_format_value_integer() 34 ret = iio_format_value(buf, IIO_VAL_INT, 1, &val); in iio_test_iio_format_value_integer() 38 ret = iio_format_value(buf, IIO_VAL_INT, 1, &val); in iio_test_iio_format_value_integer() 44 char *buf = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL); in iio_test_iio_format_value_fixedpoint() local [all …]
|
/linux/drivers/media/tuners/ |
A D | mt20xx.c | 252 buf[0]=0; in mt2032_set_if_freq() 256 buf[0]=0; in mt2032_set_if_freq() 262 buf[0]=0; in mt2032_set_if_freq() 264 buf[5]=5; in mt2032_set_if_freq() 291 buf[0]=2; in mt2032_set_if_freq() 479 buf[0]=1; in mt2050_set_if_freq() 481 if(freq<275*1000*1000) buf[1] = buf[1]|0x80; in mt2050_set_if_freq() 487 if(num2!=0) buf[5]=buf[5]|0x40; in mt2050_set_if_freq() 610 memset(buf,0,sizeof(buf)); in microtune_attach() 619 company_code = buf[0x11] << 8 | buf[0x12]; in microtune_attach() [all …]
|
/linux/tools/perf/util/arm-spe-decoder/ |
A D | arm-spe-pkt-decoder.c | 69 buf += 1 + ext_hdr; in arm_spe_get_payload() 123 packet->index = arm_spe_payload_len(buf[0]); in arm_spe_get_events() 157 packet->index = SPE_HDR_EXTENDED_INDEX(buf[0], buf[1]); in arm_spe_get_counter() 170 packet->index = SPE_HDR_EXTENDED_INDEX(buf[0], buf[1]); in arm_spe_get_addr() 188 hdr = buf[0]; in arm_spe_do_get_packet() 217 hdr = buf[1]; in arm_spe_do_get_packet() 293 char *buf, size_t buf_len) in arm_spe_pkt_desc_event() argument 333 char *buf, size_t buf_len) in arm_spe_pkt_desc_op_type() argument 419 char *buf, size_t buf_len) in arm_spe_pkt_desc_addr() argument 459 char *buf, size_t buf_len) in arm_spe_pkt_desc_counter() argument [all …]
|
/linux/fs/ |
A D | statfs.c | 62 memset(buf, 0, sizeof(*buf)); in statfs_by_dentry() 68 buf->f_frsize = buf->f_bsize; in statfs_by_dentry() 128 struct statfs buf; in do_statfs_native() local 161 memset(buf.f_spare, 0, sizeof(buf.f_spare)); in do_statfs_native() 163 if (copy_to_user(p, &buf, sizeof(buf))) in do_statfs_native() 170 struct statfs64 buf; in do_statfs64() local 185 memset(buf.f_spare, 0, sizeof(buf.f_spare)); in do_statfs64() 187 if (copy_to_user(p, &buf, sizeof(buf))) in do_statfs64() 205 if (sz != sizeof(*buf)) in SYSCALL_DEFINE3() 227 if (sz != sizeof(*buf)) in SYSCALL_DEFINE3() [all …]
|
/linux/drivers/target/ |
A D | target_core_spc.c | 35 buf[5] = 0x80; in spc_fill_alua_data() 81 buf[1] = 0x80; in spc_emulate_inquiry_std() 95 buf[3] = 2; in spc_emulate_inquiry_std() 743 if (!buf) { in spc_emulate_inquiry() 781 kfree(buf); in spc_emulate_inquiry() 997 buf += 4; in spc_modesense_blockdesc() 1008 buf += 2; in spc_modesense_long_blockdesc() 1011 buf += 12; in spc_modesense_long_blockdesc() 1164 if (!buf) in spc_emulate_modeselect() 1173 subpage = buf[off] & 0x40 ? buf[off + 1] : 0; in spc_emulate_modeselect() [all …]
|
/linux/net/sunrpc/ |
A D | xdr.c | 902 xdr->buf = buf; in xdr_init_encode() 1088 struct xdr_buf *buf = xdr->buf; in xdr_truncate_encode() local 1150 struct xdr_buf *buf = xdr->buf; in xdr_restrict_buflen() local 1176 struct xdr_buf *buf = xdr->buf; in xdr_write_pages() local 1217 struct xdr_buf *buf = xdr->buf; in xdr_set_tail_base() local 1298 xdr->buf = buf; in xdr_init_decode() 1322 memset(buf, 0, sizeof(*buf)); in xdr_init_decode_pages() 1400 struct xdr_buf *buf = xdr->buf; in xdr_realign_pages() local 1415 struct xdr_buf *buf = xdr->buf; in xdr_align_pages() local 1469 struct xdr_buf *buf = xdr->buf; in xdr_align_data() local [all …]
|
/linux/drivers/net/dsa/sja1105/ |
A D | sja1105_static_config.c | 458 sja1105_packing(buf, &entry->top[i], in sja1105et_mac_config_entry_packing() 492 sja1105_packing(buf, &entry->top[i], in sja1105pqrs_mac_config_entry_packing() 526 sja1105_packing(buf, &entry->top[i], in sja1110_mac_config_entry_packing() 720 sja1105_packing(buf, &entry->vlanid, in sja1105_vl_lookup_entry_packing() 722 sja1105_packing(buf, &entry->port, in sja1105_vl_lookup_entry_packing() 732 sja1105_packing(buf, &entry->vlid, in sja1105_vl_lookup_entry_packing() 734 sja1105_packing(buf, &entry->port, in sja1105_vl_lookup_entry_packing() 756 sja1105_packing(buf, &entry->port, in sja1110_vl_lookup_entry_packing() 766 sja1105_packing(buf, &entry->vlid, in sja1110_vl_lookup_entry_packing() 768 sja1105_packing(buf, &entry->port, in sja1110_vl_lookup_entry_packing() [all …]
|
/linux/tools/perf/util/intel-pt-decoder/ |
A D | intel-pt-pkt-decoder.c | 161 if (buf[i] != 2 || buf[i + 1] != 0x82) in intel_pt_get_psb() 182 packet->payload = buf[2] | (buf[3] << 8); in intel_pt_get_tma() 183 packet->count = buf[5] | ((buf[6] & BIT(0)) << 8); in intel_pt_get_tma() 210 switch (buf[2]) { in intel_pt_get_3byte() 341 switch (buf[1]) { in intel_pt_get_ext() 414 byte = buf[offs++]; in intel_pt_get_cyc() 475 switch (buf[1] >> 5) { in intel_pt_get_mode() 478 switch (buf[1] & 3) { in intel_pt_get_mode() 536 byte = buf[0]; in intel_pt_do_get_packet() 675 buf += ret; in intel_pt_pkt_desc() [all …]
|