/linux-4.4.14/Documentation/target/ |
D | tcm_mod_builder.py | 41 buf = "" 50 buf = "#define " + fabric_mod_name.upper() + "_VERSION \"v0.1\"\n" 51 buf += "#define " + fabric_mod_name.upper() + "_NAMELEN 32\n" 52 buf += "\n" 53 buf += "struct " + fabric_mod_name + "_tpg {\n" 54 buf += " /* FC lport target portal group tag for TCM */\n" 55 buf += " u16 lport_tpgt;\n" 56 buf += " /* Pointer back to " + fabric_mod_name + "_lport */\n" 57 buf += " struct " + fabric_mod_name + "_lport *lport;\n" 58 buf += " /* Returned by " + fabric_mod_name + "_make_tpg() */\n" [all …]
|
/linux-4.4.14/drivers/media/dvb-frontends/ |
D | nxt200x.c | 72 static int i2c_writebytes (struct nxt200x_state* state, u8 addr, u8 *buf, u8 len) in i2c_writebytes() argument 75 struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = buf, .len = len }; in i2c_writebytes() 85 static int i2c_readbytes(struct nxt200x_state *state, u8 addr, u8 *buf, u8 len) in i2c_readbytes() argument 88 struct i2c_msg msg = { .addr = addr, .flags = I2C_M_RD, .buf = buf, .len = len }; in i2c_readbytes() 99 const u8 *buf, u8 len) in nxt200x_writebytes() argument 103 …struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf2, .len = len +… in nxt200x_writebytes() 112 memcpy(&buf2[1], buf, len); in nxt200x_writebytes() 122 static int nxt200x_readbytes(struct nxt200x_state *state, u8 reg, u8 *buf, u8 len) in nxt200x_readbytes() argument 126 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = reg2, .len = … in nxt200x_readbytes() 127 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = buf, .len = len } }; in nxt200x_readbytes() [all …]
|
D | stb6000.c | 55 u8 buf[] = { 10, 0 }; in stb6000_sleep() local 59 .buf = buf, in stb6000_sleep() 86 u8 buf[12]; in stb6000_set_params() local 90 .buf = buf, in stb6000_set_params() 103 buf[0] = 0x01; in stb6000_set_params() 104 buf[1] = 0xac; in stb6000_set_params() 106 buf[1] = 0xaa; in stb6000_set_params() 108 buf[1] = 0xa8; in stb6000_set_params() 110 buf[1] = 0xa6; in stb6000_set_params() 112 buf[1] = 0xa5; in stb6000_set_params() [all …]
|
D | lgdt330x.c | 78 u8 *buf, /* data bytes to send */ in i2c_write_demod_bytes() argument 84 .buf = buf, in i2c_write_demod_bytes() 91 …RNING "lgdt330x: %s error (addr %02x <- %02x, err = %i)\n", __func__, msg.buf[0], msg.buf[1], err); in i2c_write_demod_bytes() 97 msg.buf += 2; in i2c_write_demod_bytes() 108 enum I2C_REG reg, u8 *buf, int len) in i2c_read_demod_bytes() argument 113 .flags = 0, .buf = wr, .len = 1 }, in i2c_read_demod_bytes() 115 .flags = I2C_M_RD, .buf = buf, .len = len }, in i2c_read_demod_bytes() 291 u8 buf[2]; in lgdt330x_read_ucblocks() local 298 buf, sizeof(buf)); in lgdt330x_read_ucblocks() 302 buf, sizeof(buf)); in lgdt330x_read_ucblocks() [all …]
|
D | cxd2820r_t.c | 31 u8 buf[3], bw_param; in cxd2820r_set_frontend_t() local 107 buf[0] = ((if_ctl >> 16) & 0xff); in cxd2820r_set_frontend_t() 108 buf[1] = ((if_ctl >> 8) & 0xff); in cxd2820r_set_frontend_t() 109 buf[2] = ((if_ctl >> 0) & 0xff); in cxd2820r_set_frontend_t() 111 ret = cxd2820r_wr_regs(priv, 0x000b6, buf, 3); in cxd2820r_set_frontend_t() 146 u8 buf[2]; in cxd2820r_get_frontend_t() local 148 ret = cxd2820r_rd_regs(priv, 0x0002f, buf, sizeof(buf)); in cxd2820r_get_frontend_t() 152 switch ((buf[0] >> 6) & 0x03) { in cxd2820r_get_frontend_t() 164 switch ((buf[1] >> 1) & 0x03) { in cxd2820r_get_frontend_t() 173 switch ((buf[1] >> 3) & 0x03) { in cxd2820r_get_frontend_t() [all …]
|
D | mt312.c | 64 u8 *buf, const size_t count) in mt312_read() argument 72 msg[0].buf = regbuf; in mt312_read() 76 msg[1].buf = buf; in mt312_read() 90 printk(KERN_CONT " %02x", buf[i]); in mt312_read() 101 u8 buf[MAX_XFER_SIZE]; in mt312_write() local 104 if (1 + count > sizeof(buf)) { in mt312_write() 118 buf[0] = reg; in mt312_write() 119 memcpy(&buf[1], src, count); in mt312_write() 123 msg.buf = buf; in mt312_write() 181 u8 buf[2]; in mt312_get_symbol_rate() local [all …]
|
D | cxd2820r_t2.c | 31 u8 buf[3], bw_param; in cxd2820r_set_frontend_t2() local 124 buf[0] = ((if_ctl >> 16) & 0xff); in cxd2820r_set_frontend_t2() 125 buf[1] = ((if_ctl >> 8) & 0xff); in cxd2820r_set_frontend_t2() 126 buf[2] = ((if_ctl >> 0) & 0xff); in cxd2820r_set_frontend_t2() 145 ret = cxd2820r_wr_regs(priv, 0x020b6, buf, 3); in cxd2820r_set_frontend_t2() 177 u8 buf[2]; in cxd2820r_get_frontend_t2() local 179 ret = cxd2820r_rd_regs(priv, 0x0205c, buf, 2); in cxd2820r_get_frontend_t2() 183 switch ((buf[0] >> 0) & 0x07) { in cxd2820r_get_frontend_t2() 204 switch ((buf[1] >> 4) & 0x07) { in cxd2820r_get_frontend_t2() 228 ret = cxd2820r_rd_regs(priv, 0x0225b, buf, 2); in cxd2820r_get_frontend_t2() [all …]
|
D | cxd2820r_c.c | 29 u8 buf[2]; in cxd2820r_set_frontend_c() local 83 buf[0] = (if_ctl >> 8) & 0x3f; in cxd2820r_set_frontend_c() 84 buf[1] = (if_ctl >> 0) & 0xff; in cxd2820r_set_frontend_c() 86 ret = cxd2820r_wr_regs(priv, 0x10042, buf, 2); in cxd2820r_set_frontend_c() 109 u8 buf[2]; in cxd2820r_get_frontend_c() local 111 ret = cxd2820r_rd_regs(priv, 0x1001a, buf, 2); in cxd2820r_get_frontend_c() 115 c->symbol_rate = 2500 * ((buf[0] & 0x0f) << 8 | buf[1]); in cxd2820r_get_frontend_c() 117 ret = cxd2820r_rd_reg(priv, 0x10019, &buf[0]); in cxd2820r_get_frontend_c() 121 switch ((buf[0] >> 0) & 0x07) { in cxd2820r_get_frontend_c() 139 switch ((buf[0] >> 7) & 0x01) { in cxd2820r_get_frontend_c() [all …]
|
D | tda665x.c | 37 static int tda665x_read(struct tda665x_state *state, u8 *buf) in tda665x_read() argument 41 struct i2c_msg msg = { .addr = config->addr, .flags = I2C_M_RD, .buf = buf, .len = 2 }; in tda665x_read() 53 static int tda665x_write(struct tda665x_state *state, u8 *buf, u8 length) in tda665x_write() argument 57 struct i2c_msg msg = { .addr = config->addr, .flags = 0, .buf = buf, .len = length }; in tda665x_write() 121 u8 buf[4]; in tda665x_set_state() local 137 buf[0] = (u8) ((frequency & 0x7f00) >> 8); in tda665x_set_state() 138 buf[1] = (u8) (frequency & 0x00ff) >> 0; in tda665x_set_state() 139 buf[2] = 0x80 | 0x40 | 0x02; in tda665x_set_state() 140 buf[3] = 0x00; in tda665x_set_state() 147 buf[3] |= 0x01; /* fc, Low Band, 47 - 153 MHz */ in tda665x_set_state() [all …]
|
D | tda826x.c | 55 u8 buf [] = { 0x00, 0x8d }; in tda826x_sleep() local 56 struct i2c_msg msg = { .addr = priv->i2c_address, .flags = 0, .buf = buf, .len = 2 }; in tda826x_sleep() 61 buf[1] = 0xad; in tda826x_sleep() 82 u8 buf [11]; in tda826x_set_params() local 83 struct i2c_msg msg = { .addr = priv->i2c_address, .flags = 0, .buf = buf, .len = 11 }; in tda826x_set_params() 98 buf[0] = 0x00; // subaddress in tda826x_set_params() 99 buf[1] = 0x09; // powerdown RSSI + the magic value 1 in tda826x_set_params() 101 buf[1] |= 0x20; // power down loopthrough if not needed in tda826x_set_params() 102 buf[2] = (1<<5) | 0x0b; // 1Mhz + 0.45 VCO in tda826x_set_params() 103 buf[3] = div >> 7; in tda826x_set_params() [all …]
|
/linux-4.4.14/sound/firewire/bebob/ |
D | bebob_command.c | 14 u8 *buf; in avc_audio_set_selector() local 17 buf = kzalloc(12, GFP_KERNEL); in avc_audio_set_selector() 18 if (buf == NULL) in avc_audio_set_selector() 21 buf[0] = 0x00; /* AV/C CONTROL */ in avc_audio_set_selector() 22 buf[1] = 0x08 | (0x07 & subunit_id); /* AUDIO SUBUNIT ID */ in avc_audio_set_selector() 23 buf[2] = 0xb8; /* FUNCTION BLOCK */ in avc_audio_set_selector() 24 buf[3] = 0x80; /* type is 'selector'*/ in avc_audio_set_selector() 25 buf[4] = 0xff & fb_id; /* function block id */ in avc_audio_set_selector() 26 buf[5] = 0x10; /* control attribute is CURRENT */ in avc_audio_set_selector() 27 buf[6] = 0x02; /* selector length is 2 */ in avc_audio_set_selector() [all …]
|
/linux-4.4.14/sound/firewire/oxfw/ |
D | oxfw-command.c | 14 u8 *buf; in avc_stream_set_format() local 17 buf = kmalloc(len + 10, GFP_KERNEL); in avc_stream_set_format() 18 if (buf == NULL) in avc_stream_set_format() 21 buf[0] = 0x00; /* CONTROL */ in avc_stream_set_format() 22 buf[1] = 0xff; /* UNIT */ in avc_stream_set_format() 23 buf[2] = 0xbf; /* EXTENDED STREAM FORMAT INFORMATION */ in avc_stream_set_format() 24 buf[3] = 0xc0; /* SINGLE subfunction */ in avc_stream_set_format() 25 buf[4] = dir; /* Plug Direction */ in avc_stream_set_format() 26 buf[5] = 0x00; /* UNIT */ in avc_stream_set_format() 27 buf[6] = 0x00; /* PCR (Isochronous Plug) */ in avc_stream_set_format() [all …]
|
D | oxfw-control.c | 20 u8 *buf; in oxfw_mute_command() local 24 buf = kmalloc(11, GFP_KERNEL); in oxfw_mute_command() 25 if (!buf) in oxfw_mute_command() 29 buf[0] = 0x01; /* AV/C, STATUS */ in oxfw_mute_command() 32 buf[0] = 0x00; /* AV/C, CONTROL */ in oxfw_mute_command() 35 buf[1] = 0x08; /* audio unit 0 */ in oxfw_mute_command() 36 buf[2] = 0xb8; /* FUNCTION BLOCK */ in oxfw_mute_command() 37 buf[3] = 0x81; /* function block type: feature */ in oxfw_mute_command() 38 buf[4] = oxfw->device_info->mute_fb_id; /* function block ID */ in oxfw_mute_command() 39 buf[5] = 0x10; /* control attribute: current */ in oxfw_mute_command() [all …]
|
/linux-4.4.14/drivers/media/v4l2-core/ |
D | videobuf2-dma-sg.c | 61 static int vb2_dma_sg_alloc_compacted(struct vb2_dma_sg_buf *buf, in vb2_dma_sg_alloc_compacted() argument 65 int size = buf->size; in vb2_dma_sg_alloc_compacted() 86 __free_page(buf->pages[last_page]); in vb2_dma_sg_alloc_compacted() 94 buf->pages[last_page++] = &pages[i]; in vb2_dma_sg_alloc_compacted() 106 struct vb2_dma_sg_buf *buf; in vb2_dma_sg_alloc() local 116 buf = kzalloc(sizeof *buf, GFP_KERNEL); in vb2_dma_sg_alloc() 117 if (!buf) in vb2_dma_sg_alloc() 120 buf->vaddr = NULL; in vb2_dma_sg_alloc() 121 buf->dma_dir = dma_dir; in vb2_dma_sg_alloc() 122 buf->offset = 0; in vb2_dma_sg_alloc() [all …]
|
D | videobuf2-dma-contig.c | 72 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_cookie() local 74 return &buf->dma_addr; in vb2_dc_cookie() 79 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_vaddr() local 81 if (!buf->vaddr && buf->db_attach) in vb2_dc_vaddr() 82 buf->vaddr = dma_buf_vmap(buf->db_attach->dmabuf); in vb2_dc_vaddr() 84 return buf->vaddr; in vb2_dc_vaddr() 89 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_num_users() local 91 return atomic_read(&buf->refcount); in vb2_dc_num_users() 96 struct vb2_dc_buf *buf = buf_priv; in vb2_dc_prepare() local 97 struct sg_table *sgt = buf->dma_sgt; in vb2_dc_prepare() [all …]
|
D | videobuf2-vmalloc.c | 39 struct vb2_vmalloc_buf *buf; in vb2_vmalloc_alloc() local 41 buf = kzalloc(sizeof(*buf), GFP_KERNEL | gfp_flags); in vb2_vmalloc_alloc() 42 if (!buf) in vb2_vmalloc_alloc() 45 buf->size = size; in vb2_vmalloc_alloc() 46 buf->vaddr = vmalloc_user(buf->size); in vb2_vmalloc_alloc() 47 buf->dma_dir = dma_dir; in vb2_vmalloc_alloc() 48 buf->handler.refcount = &buf->refcount; in vb2_vmalloc_alloc() 49 buf->handler.put = vb2_vmalloc_put; in vb2_vmalloc_alloc() 50 buf->handler.arg = buf; in vb2_vmalloc_alloc() 52 if (!buf->vaddr) { in vb2_vmalloc_alloc() [all …]
|
/linux-4.4.14/drivers/media/pci/saa7164/ |
D | saa7164-buffer.c | 69 void saa7164_buffer_display(struct saa7164_buffer *buf) in saa7164_buffer_display() argument 71 struct saa7164_dev *dev = buf->port->dev; in saa7164_buffer_display() 75 __func__, buf, buf->idx); in saa7164_buffer_display() 77 buf->cpu, (long long)buf->dma, buf->pci_size); in saa7164_buffer_display() 79 buf->pt_cpu, (long long)buf->pt_dma, buf->pt_size); in saa7164_buffer_display() 85 i, buf->pt_cpu, (u64)*(buf->pt_cpu)); in saa7164_buffer_display() 96 struct saa7164_buffer *buf = NULL; in saa7164_buffer_alloc() local 105 buf = kzalloc(sizeof(struct saa7164_buffer), GFP_KERNEL); in saa7164_buffer_alloc() 106 if (!buf) { in saa7164_buffer_alloc() 111 buf->idx = -1; in saa7164_buffer_alloc() [all …]
|
/linux-4.4.14/drivers/tty/ |
D | tty_audit.c | 28 struct tty_audit_buf *buf; in tty_audit_buf_alloc() local 30 buf = kmalloc(sizeof(*buf), GFP_KERNEL); in tty_audit_buf_alloc() 31 if (!buf) in tty_audit_buf_alloc() 33 buf->data = kmalloc(N_TTY_BUF_SIZE, GFP_KERNEL); in tty_audit_buf_alloc() 34 if (!buf->data) in tty_audit_buf_alloc() 36 atomic_set(&buf->count, 1); in tty_audit_buf_alloc() 37 mutex_init(&buf->mutex); in tty_audit_buf_alloc() 38 buf->major = major; in tty_audit_buf_alloc() 39 buf->minor = minor; in tty_audit_buf_alloc() 40 buf->icanon = icanon; in tty_audit_buf_alloc() [all …]
|
D | tty_buffer.c | 57 struct tty_bufhead *buf = &port->buf; in tty_buffer_lock_exclusive() local 59 atomic_inc(&buf->priority); in tty_buffer_lock_exclusive() 60 mutex_lock(&buf->lock); in tty_buffer_lock_exclusive() 66 struct tty_bufhead *buf = &port->buf; in tty_buffer_unlock_exclusive() local 69 restart = buf->head->commit != buf->head->read; in tty_buffer_unlock_exclusive() 71 atomic_dec(&buf->priority); in tty_buffer_unlock_exclusive() 72 mutex_unlock(&buf->lock); in tty_buffer_unlock_exclusive() 74 queue_work(system_unbound_wq, &buf->work); in tty_buffer_unlock_exclusive() 92 int space = port->buf.mem_limit - atomic_read(&port->buf.mem_used); in tty_buffer_space_avail() 117 struct tty_bufhead *buf = &port->buf; in tty_buffer_free_all() local [all …]
|
D | n_hdlc.c | 119 char buf[1]; member 164 struct n_hdlc_buf *buf); 181 __u8 __user *buf, size_t nr); 183 const unsigned char *buf, size_t nr); 202 struct n_hdlc_buf *buf; in flush_rx_queue() local 204 while ((buf = n_hdlc_buf_get(&n_hdlc->rx_buf_list))) in flush_rx_queue() 205 n_hdlc_buf_put(&n_hdlc->rx_free_buf_list, buf); in flush_rx_queue() 211 struct n_hdlc_buf *buf; in flush_tx_queue() local 214 while ((buf = n_hdlc_buf_get(&n_hdlc->tx_buf_list))) in flush_tx_queue() 215 n_hdlc_buf_put(&n_hdlc->tx_free_buf_list, buf); in flush_tx_queue() [all …]
|
/linux-4.4.14/kernel/ |
D | relay.c | 35 struct rchan_buf *buf = vma->vm_private_data; in relay_file_mmap_close() local 36 buf->chan->cb->buf_unmapped(buf, vma->vm_file); in relay_file_mmap_close() 45 struct rchan_buf *buf = vma->vm_private_data; in relay_buf_fault() local 48 if (!buf) in relay_buf_fault() 51 page = vmalloc_to_page(buf->start + (pgoff << PAGE_SHIFT)); in relay_buf_fault() 96 static int relay_mmap_buf(struct rchan_buf *buf, struct vm_area_struct *vma) in relay_mmap_buf() argument 101 if (!buf) in relay_mmap_buf() 104 if (length != (unsigned long)buf->chan->alloc_size) in relay_mmap_buf() 109 vma->vm_private_data = buf; in relay_mmap_buf() 110 buf->chan->cb->buf_mapped(buf, filp); in relay_mmap_buf() [all …]
|
D | ksysfs.c | 34 struct kobj_attribute *attr, char *buf) in uevent_seqnum_show() argument 36 return sprintf(buf, "%llu\n", (unsigned long long)uevent_seqnum); in uevent_seqnum_show() 43 struct kobj_attribute *attr, char *buf) in uevent_helper_show() argument 45 return sprintf(buf, "%s\n", uevent_helper); in uevent_helper_show() 49 const char *buf, size_t count) in uevent_helper_store() argument 53 memcpy(uevent_helper, buf, count); in uevent_helper_store() 64 struct kobj_attribute *attr, char *buf) in profiling_show() argument 66 return sprintf(buf, "%d\n", prof_on); in profiling_show() 70 const char *buf, size_t count) in profiling_store() argument 81 profile_setup((char *)buf); in profiling_store() [all …]
|
/linux-4.4.14/net/bridge/ |
D | br_stp_bpdu.c | 85 unsigned char buf[35]; in br_send_config_bpdu() local 90 buf[0] = 0; in br_send_config_bpdu() 91 buf[1] = 0; in br_send_config_bpdu() 92 buf[2] = 0; in br_send_config_bpdu() 93 buf[3] = BPDU_TYPE_CONFIG; in br_send_config_bpdu() 94 buf[4] = (bpdu->topology_change ? 0x01 : 0) | in br_send_config_bpdu() 96 buf[5] = bpdu->root.prio[0]; in br_send_config_bpdu() 97 buf[6] = bpdu->root.prio[1]; in br_send_config_bpdu() 98 buf[7] = bpdu->root.addr[0]; in br_send_config_bpdu() 99 buf[8] = bpdu->root.addr[1]; in br_send_config_bpdu() [all …]
|
D | br_sysfs_br.c | 32 const char *buf, size_t len, in store_bridge_parm() argument 43 val = simple_strtoul(buf, &endp, 0); in store_bridge_parm() 44 if (endp == buf) in store_bridge_parm() 53 struct device_attribute *attr, char *buf) in forward_delay_show() argument 56 return sprintf(buf, "%lu\n", jiffies_to_clock_t(br->forward_delay)); in forward_delay_show() 61 const char *buf, size_t len) in forward_delay_store() argument 63 return store_bridge_parm(d, buf, len, br_set_forward_delay); in forward_delay_store() 68 char *buf) in hello_time_show() argument 70 return sprintf(buf, "%lu\n", in hello_time_show() 75 struct device_attribute *attr, const char *buf, in hello_time_store() argument [all …]
|
D | br_sysfs_if.c | 38 static ssize_t show_##_name(struct net_bridge_port *p, char *buf) \ 40 return sprintf(buf, "%d\n", !!(p->flags & _mask)); \ 69 static ssize_t show_path_cost(struct net_bridge_port *p, char *buf) in show_path_cost() argument 71 return sprintf(buf, "%d\n", p->path_cost); in show_path_cost() 77 static ssize_t show_priority(struct net_bridge_port *p, char *buf) in show_priority() argument 79 return sprintf(buf, "%d\n", p->priority); in show_priority() 85 static ssize_t show_designated_root(struct net_bridge_port *p, char *buf) in show_designated_root() argument 87 return br_show_bridge_id(buf, &p->designated_root); in show_designated_root() 91 static ssize_t show_designated_bridge(struct net_bridge_port *p, char *buf) in show_designated_bridge() argument 93 return br_show_bridge_id(buf, &p->designated_bridge); in show_designated_bridge() [all …]
|
/linux-4.4.14/drivers/media/usb/dvb-usb-v2/ |
D | mxl111sf-i2c.c | 260 &msg->buf[i]); in mxl111sf_i2c_sw_xfer_msg() 291 msg->buf[i]); in mxl111sf_i2c_sw_xfer_msg() 343 u8 buf[26]; in mxl111sf_i2c_check_status() local 347 buf[0] = USB_READ_I2C_CMD; in mxl111sf_i2c_check_status() 348 buf[1] = 0x00; in mxl111sf_i2c_check_status() 350 buf[2] = I2C_INT_STATUS_REG; in mxl111sf_i2c_check_status() 351 buf[3] = 0x00; in mxl111sf_i2c_check_status() 352 buf[4] = 0x00; in mxl111sf_i2c_check_status() 354 buf[5] = USB_END_I2C_CMD; in mxl111sf_i2c_check_status() 356 mxl111sf_i2c_get_data(state, 0, buf, buf); in mxl111sf_i2c_check_status() [all …]
|
/linux-4.4.14/drivers/net/wireless/ath/ath5k/ |
D | debug.c | 199 char buf[500]; in read_file_beacon() local 205 len += snprintf(buf + len, sizeof(buf) - len, in read_file_beacon() 210 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\n", in read_file_beacon() 213 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\n\n", in read_file_beacon() 217 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon() 221 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon() 225 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon() 229 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon() 233 len += snprintf(buf + len, sizeof(buf) - len, in read_file_beacon() 237 if (len > sizeof(buf)) in read_file_beacon() [all …]
|
/linux-4.4.14/arch/mips/mm/ |
D | page.c | 106 pg_addiu(u32 **buf, unsigned int reg1, unsigned int reg2, unsigned int off) in pg_addiu() argument 110 uasm_i_lui(buf, T9, uasm_rel_hi(off)); in pg_addiu() 111 uasm_i_addiu(buf, T9, T9, uasm_rel_lo(off)); in pg_addiu() 113 uasm_i_addiu(buf, T9, ZERO, off); in pg_addiu() 114 uasm_i_daddu(buf, reg1, reg2, T9); in pg_addiu() 117 uasm_i_lui(buf, T9, uasm_rel_hi(off)); in pg_addiu() 118 uasm_i_addiu(buf, T9, T9, uasm_rel_lo(off)); in pg_addiu() 119 UASM_i_ADDU(buf, reg1, reg2, T9); in pg_addiu() 121 UASM_i_ADDIU(buf, reg1, reg2, off); in pg_addiu() 225 static void build_clear_store(u32 **buf, int off) in build_clear_store() argument [all …]
|
/linux-4.4.14/drivers/media/tuners/ |
D | mt20xx.c | 104 unsigned char *buf, in mt2032_compute_freq() argument 163 buf[0]=lo1n-1; in mt2032_compute_freq() 164 buf[1]=lo1a | (sel<<4); in mt2032_compute_freq() 165 buf[2]=0x86; // LOGC in mt2032_compute_freq() 166 buf[3]=0x0f; //reserved in mt2032_compute_freq() 167 buf[4]=0x1f; in mt2032_compute_freq() 168 buf[5]=(lo2n-1) | (lo2a<<5); in mt2032_compute_freq() 170 buf[6]=0xe4; in mt2032_compute_freq() 172 buf[6]=0xf4; // set PKEN per rev 1.2 in mt2032_compute_freq() 173 buf[7]=8+xogc; in mt2032_compute_freq() [all …]
|
D | tda9887.c | 270 static void dump_read_message(struct dvb_frontend *fe, unsigned char *buf) in dump_read_message() argument 292 tuner_info("read: 0x%2x\n", buf[0]); in dump_read_message() 293 tuner_info(" after power on : %s\n", (buf[0] & 0x01) ? "yes" : "no"); in dump_read_message() 294 tuner_info(" afc : %s\n", afc[(buf[0] >> 1) & 0x0f]); in dump_read_message() 295 tuner_info(" fmif level : %s\n", (buf[0] & 0x20) ? "high" : "low"); in dump_read_message() 296 tuner_info(" afc window : %s\n", (buf[0] & 0x40) ? "in" : "out"); in dump_read_message() 297 tuner_info(" vfi level : %s\n", (buf[0] & 0x80) ? "high" : "low"); in dump_read_message() 300 static void dump_write_message(struct dvb_frontend *fe, unsigned char *buf) in dump_write_message() argument 342 tuner_info("write: byte B 0x%02x\n", buf[1]); in dump_write_message() 344 (buf[1] & 0x01) ? "video trap" : "sound trap"); in dump_write_message() [all …]
|
/linux-4.4.14/arch/x86/kernel/cpu/ |
D | perf_event_intel_pt.c | 90 char *buf) in pt_cap_show() argument 96 return snprintf(buf, PAGE_SIZE, "%x\n", pt_cap_get(cap)); in pt_cap_show() 297 static void pt_config_buffer(void *buf, unsigned int topa_idx, in pt_config_buffer() argument 302 wrmsrl(MSR_IA32_RTIT_OUTPUT_BASE, virt_to_phys(buf)); in pt_config_buffer() 388 static void topa_insert_table(struct pt_buffer *buf, struct topa *topa) in topa_insert_table() argument 390 struct topa *last = buf->last; in topa_insert_table() 392 list_add_tail(&topa->list, &buf->tables); in topa_insert_table() 394 if (!buf->first) { in topa_insert_table() 395 buf->first = buf->last = buf->cur = topa; in topa_insert_table() 400 buf->last = topa; in topa_insert_table() [all …]
|
D | perf_event_intel_bts.c | 60 struct bts_phys buf[0]; member 73 struct bts_buffer *buf; in bts_buffer_setup_aux() local 95 buf = kzalloc_node(offsetof(struct bts_buffer, buf[nbuf]), GFP_KERNEL, node); in bts_buffer_setup_aux() 96 if (!buf) in bts_buffer_setup_aux() 99 buf->nr_pages = nr_pages; in bts_buffer_setup_aux() 100 buf->nr_bufs = nbuf; in bts_buffer_setup_aux() 101 buf->snapshot = overwrite; in bts_buffer_setup_aux() 102 buf->data_pages = pages; in bts_buffer_setup_aux() 103 buf->real_size = size - size % BTS_RECORD_SIZE; in bts_buffer_setup_aux() 105 for (pg = 0, nbuf = 0, offset = 0, pad = 0; nbuf < buf->nr_bufs; nbuf++) { in bts_buffer_setup_aux() [all …]
|
/linux-4.4.14/drivers/target/ |
D | target_core_spc.c | 41 static void spc_fill_alua_data(struct se_lun *lun, unsigned char *buf) in spc_fill_alua_data() argument 48 buf[5] = 0x80; in spc_fill_alua_data() 59 buf[5] |= tg_pt_gp->tg_pt_gp_alua_access_type; in spc_fill_alua_data() 64 spc_emulate_inquiry_std(struct se_cmd *cmd, unsigned char *buf) in spc_emulate_inquiry_std() argument 72 buf[1] = 0x80; in spc_emulate_inquiry_std() 74 buf[2] = 0x05; /* SPC-3 */ in spc_emulate_inquiry_std() 86 buf[3] = 2; in spc_emulate_inquiry_std() 91 spc_fill_alua_data(lun, buf); in spc_emulate_inquiry_std() 97 buf[5] |= 0x8; in spc_emulate_inquiry_std() 106 buf[5] |= 0x1; in spc_emulate_inquiry_std() [all …]
|
D | target_core_fabric_lib.c | 50 unsigned char *buf) in sas_get_pr_transport_id() argument 55 ret = hex2bin(&buf[4], &nacl->initiatorname[4], 8); in sas_get_pr_transport_id() 67 unsigned char *buf) in fc_get_pr_transport_id() argument 83 ret = hex2bin(&buf[off++], &ptr[i], 1); in fc_get_pr_transport_id() 99 unsigned char *buf) in sbp_get_pr_transport_id() argument 103 ret = hex2bin(&buf[8], nacl->initiatorname, 8); in sbp_get_pr_transport_id() 115 unsigned char *buf) in srp_get_pr_transport_id() argument 130 memset(buf + 8, 0, leading_zero_bytes); in srp_get_pr_transport_id() 131 rc = hex2bin(buf + 8 + leading_zero_bytes, p, count); in srp_get_pr_transport_id() 144 unsigned char *buf) in iscsi_get_pr_transport_id() argument [all …]
|
/linux-4.4.14/drivers/ata/ |
D | sata_promise.h | 46 unsigned int devno, u8 *buf) in pdc_pkt_header() argument 49 __le32 *buf32 = (__le32 *) buf; in pdc_pkt_header() 80 buf[12] = (1 << 5) | PDC_PKT_CLEAR_BSY | ATA_REG_DEVICE; in pdc_pkt_header() 81 buf[13] = dev_reg; in pdc_pkt_header() 84 buf[14] = (1 << 5) | PDC_REG_DEVCTL; in pdc_pkt_header() 85 buf[15] = tf->ctl; in pdc_pkt_header() 90 static inline unsigned int pdc_pkt_footer(struct ata_taskfile *tf, u8 *buf, in pdc_pkt_footer() argument 94 buf[i++] = (1 << 5) | ATA_REG_DEVICE; in pdc_pkt_footer() 95 buf[i++] = tf->device; in pdc_pkt_footer() 99 buf[i++] = (1 << 5) | PDC_LAST_REG | ATA_REG_CMD; in pdc_pkt_footer() [all …]
|
/linux-4.4.14/drivers/net/wireless/cw1200/ |
D | wsm.c | 30 #define WSM_SKIP(buf, size) \ argument 32 if ((buf)->data + size > (buf)->end) \ 34 (buf)->data += size; \ 37 #define WSM_GET(buf, ptr, size) \ argument 39 if ((buf)->data + size > (buf)->end) \ 41 memcpy(ptr, (buf)->data, size); \ 42 (buf)->data += size; \ 45 #define __WSM_GET(buf, type, type2, cvt) \ argument 48 if ((buf)->data + sizeof(type) > (buf)->end) \ 50 val = cvt(*(type2 *)(buf)->data); \ [all …]
|
/linux-4.4.14/include/media/ |
D | lirc_dev.h | 34 static inline void lirc_buffer_clear(struct lirc_buffer *buf) in lirc_buffer_clear() argument 38 if (kfifo_initialized(&buf->fifo)) { in lirc_buffer_clear() 39 spin_lock_irqsave(&buf->fifo_lock, flags); in lirc_buffer_clear() 40 kfifo_reset(&buf->fifo); in lirc_buffer_clear() 41 spin_unlock_irqrestore(&buf->fifo_lock, flags); in lirc_buffer_clear() 47 static inline int lirc_buffer_init(struct lirc_buffer *buf, in lirc_buffer_init() argument 53 init_waitqueue_head(&buf->wait_poll); in lirc_buffer_init() 54 spin_lock_init(&buf->fifo_lock); in lirc_buffer_init() 55 buf->chunk_size = chunk_size; in lirc_buffer_init() 56 buf->size = size; in lirc_buffer_init() [all …]
|
/linux-4.4.14/drivers/net/wireless/ath/ath9k/ |
D | htc_drv_debug.c | 24 char buf[512]; in read_file_tgt_int_stats() local 40 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats() 44 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats() 48 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats() 52 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats() 56 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats() 60 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats() 64 if (len > sizeof(buf)) in read_file_tgt_int_stats() 65 len = sizeof(buf); in read_file_tgt_int_stats() 67 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tgt_int_stats() [all …]
|
/linux-4.4.14/fs/ |
D | statfs.c | 49 static int statfs_by_dentry(struct dentry *dentry, struct kstatfs *buf) in statfs_by_dentry() argument 56 memset(buf, 0, sizeof(*buf)); in statfs_by_dentry() 60 retval = dentry->d_sb->s_op->statfs(dentry, buf); in statfs_by_dentry() 61 if (retval == 0 && buf->f_frsize == 0) in statfs_by_dentry() 62 buf->f_frsize = buf->f_bsize; in statfs_by_dentry() 66 int vfs_statfs(struct path *path, struct kstatfs *buf) in vfs_statfs() argument 70 error = statfs_by_dentry(path->dentry, buf); in vfs_statfs() 72 buf->f_flags = calculate_f_flags(path->mnt); in vfs_statfs() 108 struct statfs buf; in do_statfs_native() local 110 if (sizeof(buf) == sizeof(*st)) in do_statfs_native() [all …]
|
D | readdir.c | 80 struct readdir_callback *buf = in fillonedir() local 85 if (buf->result) in fillonedir() 89 buf->result = -EOVERFLOW; in fillonedir() 92 buf->result++; in fillonedir() 93 dirent = buf->dirent; in fillonedir() 106 buf->result = -EFAULT; in fillonedir() 115 struct readdir_callback buf = { in SYSCALL_DEFINE3() local 123 error = iterate_dir(f.file, &buf.ctx); in SYSCALL_DEFINE3() 124 if (buf.result) in SYSCALL_DEFINE3() 125 error = buf.result; in SYSCALL_DEFINE3() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/include/ |
D | lustre_disk.h | 235 static inline void lsd_le_to_cpu(struct lr_server_data *buf, in lsd_le_to_cpu() argument 240 memcpy(lsd->lsd_uuid, buf->lsd_uuid, sizeof(lsd->lsd_uuid)); in lsd_le_to_cpu() 241 lsd->lsd_last_transno = le64_to_cpu(buf->lsd_last_transno); in lsd_le_to_cpu() 242 lsd->lsd_compat14 = le64_to_cpu(buf->lsd_compat14); in lsd_le_to_cpu() 243 lsd->lsd_mount_count = le64_to_cpu(buf->lsd_mount_count); in lsd_le_to_cpu() 244 lsd->lsd_feature_compat = le32_to_cpu(buf->lsd_feature_compat); in lsd_le_to_cpu() 245 lsd->lsd_feature_rocompat = le32_to_cpu(buf->lsd_feature_rocompat); in lsd_le_to_cpu() 246 lsd->lsd_feature_incompat = le32_to_cpu(buf->lsd_feature_incompat); in lsd_le_to_cpu() 247 lsd->lsd_server_size = le32_to_cpu(buf->lsd_server_size); in lsd_le_to_cpu() 248 lsd->lsd_client_start = le32_to_cpu(buf->lsd_client_start); in lsd_le_to_cpu() [all …]
|
/linux-4.4.14/net/mac80211/ |
D | debugfs_sta.c | 57 char buf[121]; in sta_flags_read() local 63 int res = scnprintf(buf, sizeof(buf), in sta_flags_read() 78 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in sta_flags_read() 87 char buf[17*IEEE80211_NUM_ACS], *p = buf; in sta_num_ps_buf_frames_read() local 91 p += scnprintf(p, sizeof(buf)+buf-p, "AC%d: %d\n", ac, in sta_num_ps_buf_frames_read() 94 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_num_ps_buf_frames_read() 101 char buf[15*IEEE80211_NUM_TIDS], *p = buf; in sta_last_seq_ctrl_read() local 105 p += scnprintf(p, sizeof(buf)+buf-p, "%x ", in sta_last_seq_ctrl_read() 107 p += scnprintf(p, sizeof(buf)+buf-p, "\n"); in sta_last_seq_ctrl_read() 108 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_last_seq_ctrl_read() [all …]
|
D | debugfs_key.c | 76 char buf[15]; in key_algorithm_read() local 80 sprintf(buf, "%.2x-%.2x-%.2x:%d\n", in key_algorithm_read() 82 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf)); in key_algorithm_read() 125 char buf[20]; in key_tx_spec_read() local 132 len = scnprintf(buf, sizeof(buf), "\n"); in key_tx_spec_read() 135 len = scnprintf(buf, sizeof(buf), "%08x %04x\n", in key_tx_spec_read() 148 len = scnprintf(buf, sizeof(buf), "%02x%02x%02x%02x%02x%02x\n", in key_tx_spec_read() 155 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in key_tx_spec_read() 163 char buf[14*IEEE80211_NUM_TIDS+1], *p = buf; in key_rx_spec_read() local 170 len = scnprintf(buf, sizeof(buf), "\n"); in key_rx_spec_read() [all …]
|
/linux-4.4.14/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-pkt-decoder.c | 73 static int intel_pt_get_long_tnt(const unsigned char *buf, size_t len, in intel_pt_get_long_tnt() argument 82 payload = le64_to_cpu(*(uint64_t *)buf); in intel_pt_get_long_tnt() 96 static int intel_pt_get_pip(const unsigned char *buf, size_t len, in intel_pt_get_pip() argument 105 memcpy_le64(&payload, buf + 2, 6); in intel_pt_get_pip() 119 static int intel_pt_get_cbr(const unsigned char *buf, size_t len, in intel_pt_get_cbr() argument 125 packet->payload = buf[2]; in intel_pt_get_cbr() 129 static int intel_pt_get_vmcs(const unsigned char *buf, size_t len, in intel_pt_get_vmcs() argument 142 memcpy_le64(&packet->payload, buf + 2, count); in intel_pt_get_vmcs() 153 static int intel_pt_get_psb(const unsigned char *buf, size_t len, in intel_pt_get_psb() argument 162 if (buf[i] != 2 || buf[i + 1] != 0x82) in intel_pt_get_psb() [all …]
|
/linux-4.4.14/arch/mips/include/asm/ |
D | uasm.h | 53 void ISAOPC(op)(u32 **buf, unsigned int a, unsigned int b, unsigned int c) 56 void ISAOPC(op)(u32 **buf, unsigned int a, unsigned int b, unsigned int c) 59 void ISAOPC(op)(u32 **buf, unsigned int a, unsigned int b, unsigned int c) 62 void ISAOPC(op)(u32 **buf, unsigned int a, unsigned int b, unsigned int c) 65 void ISAOPC(op)(u32 **buf, unsigned int a, unsigned int b, signed int c) 68 void ISAOPC(op)(u32 **buf, unsigned int a, signed int b, unsigned int c) 71 void ISAOPC(op)(u32 **buf, int a, int b, int c) 74 void ISAOPC(op)(u32 **buf, unsigned int a, unsigned int b, signed int c) 77 void ISAOPC(op)(u32 **buf, unsigned int a, unsigned int b, unsigned int c, \ 81 void ISAOPC(op)(u32 **buf, unsigned int a, unsigned int b) [all …]
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/ |
D | debugfs.c | 100 char *buf; in iwl_dbgfs_sram_read() local 131 buf = kmalloc(bufsz, GFP_KERNEL); in iwl_dbgfs_sram_read() 132 if (!buf) in iwl_dbgfs_sram_read() 135 pos += scnprintf(buf + pos, bufsz - pos, "sram_len: 0x%x\n", in iwl_dbgfs_sram_read() 137 pos += scnprintf(buf + pos, bufsz - pos, "sram_offset: 0x%x\n", in iwl_dbgfs_sram_read() 150 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read() 154 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read() 157 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read() 170 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in iwl_dbgfs_sram_read() 172 pos += scnprintf(buf + pos, bufsz - pos, " "); in iwl_dbgfs_sram_read() [all …]
|
/linux-4.4.14/drivers/usb/gadget/ |
D | u_os_desc.h | 38 static inline u8 *__usb_ext_prop_ptr(u8 *buf, size_t offset) in __usb_ext_prop_ptr() argument 40 return buf + offset; in __usb_ext_prop_ptr() 43 static inline u8 *usb_ext_prop_size_ptr(u8 *buf) in usb_ext_prop_size_ptr() argument 45 return __usb_ext_prop_ptr(buf, USB_EXT_PROP_DW_SIZE); in usb_ext_prop_size_ptr() 48 static inline u8 *usb_ext_prop_type_ptr(u8 *buf) in usb_ext_prop_type_ptr() argument 50 return __usb_ext_prop_ptr(buf, USB_EXT_PROP_DW_PROPERTY_DATA_TYPE); in usb_ext_prop_type_ptr() 53 static inline u8 *usb_ext_prop_name_len_ptr(u8 *buf) in usb_ext_prop_name_len_ptr() argument 55 return __usb_ext_prop_ptr(buf, USB_EXT_PROP_W_PROPERTY_NAME_LENGTH); in usb_ext_prop_name_len_ptr() 58 static inline u8 *usb_ext_prop_name_ptr(u8 *buf) in usb_ext_prop_name_ptr() argument 60 return __usb_ext_prop_ptr(buf, USB_EXT_PROP_B_PROPERTY_NAME); in usb_ext_prop_name_ptr() [all …]
|
/linux-4.4.14/drivers/net/wireless/iwlegacy/ |
D | debug.c | 236 char *buf; in il_dbgfs_tx_stats_read() local 243 buf = kzalloc(bufsz, GFP_KERNEL); in il_dbgfs_tx_stats_read() 244 if (!buf) in il_dbgfs_tx_stats_read() 246 pos += scnprintf(buf + pos, bufsz - pos, "Management:\n"); in il_dbgfs_tx_stats_read() 249 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_tx_stats_read() 252 pos += scnprintf(buf + pos, bufsz - pos, "Control\n"); in il_dbgfs_tx_stats_read() 255 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_tx_stats_read() 258 pos += scnprintf(buf + pos, bufsz - pos, "Data:\n"); in il_dbgfs_tx_stats_read() 260 scnprintf(buf + pos, bufsz - pos, "\tcnt: %u\n", in il_dbgfs_tx_stats_read() 263 scnprintf(buf + pos, bufsz - pos, "\tbytes: %llu\n", in il_dbgfs_tx_stats_read() [all …]
|
D | 4965-debug.c | 37 il4965_stats_flag(struct il_priv *il, char *buf, int bufsz) in il4965_stats_flag() argument 44 p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", flag); in il4965_stats_flag() 46 p += scnprintf(buf + p, bufsz - p, in il4965_stats_flag() 48 p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", in il4965_stats_flag() 51 p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", in il4965_stats_flag() 64 char *buf; in il4965_ucode_rx_stats_read() local 79 buf = kzalloc(bufsz, GFP_KERNEL); in il4965_ucode_rx_stats_read() 80 if (!buf) { in il4965_ucode_rx_stats_read() 107 pos += il4965_stats_flag(il, buf, bufsz); in il4965_ucode_rx_stats_read() 109 scnprintf(buf + pos, bufsz - pos, fmt_header, in il4965_ucode_rx_stats_read() [all …]
|
D | 3945-debug.c | 33 il3945_stats_flag(struct il_priv *il, char *buf, int bufsz) in il3945_stats_flag() argument 37 p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", in il3945_stats_flag() 40 p += scnprintf(buf + p, bufsz - p, in il3945_stats_flag() 42 p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", in il3945_stats_flag() 45 p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", in il3945_stats_flag() 57 char *buf; in il3945_ucode_rx_stats_read() local 70 buf = kzalloc(bufsz, GFP_KERNEL); in il3945_ucode_rx_stats_read() 71 if (!buf) { in il3945_ucode_rx_stats_read() 94 pos += il3945_stats_flag(il, buf, bufsz); in il3945_ucode_rx_stats_read() 96 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read() [all …]
|
/linux-4.4.14/sound/firewire/ |
D | fcp.c | 33 u8 *buf; in avc_general_set_sig_fmt() local 47 buf = kzalloc(8, GFP_KERNEL); in avc_general_set_sig_fmt() 48 if (buf == NULL) in avc_general_set_sig_fmt() 51 buf[0] = 0x00; /* AV/C CONTROL */ in avc_general_set_sig_fmt() 52 buf[1] = 0xff; /* UNIT */ in avc_general_set_sig_fmt() 54 buf[2] = 0x19; /* INPUT PLUG SIGNAL FORMAT */ in avc_general_set_sig_fmt() 56 buf[2] = 0x18; /* OUTPUT PLUG SIGNAL FORMAT */ in avc_general_set_sig_fmt() 57 buf[3] = 0xff & pid; /* plug id */ in avc_general_set_sig_fmt() 58 buf[4] = 0x90; /* EOH_1, Form_1, FMT. AM824 */ in avc_general_set_sig_fmt() 59 buf[5] = 0x07 & sfc; /* FDF-hi. AM824, frequency */ in avc_general_set_sig_fmt() [all …]
|
/linux-4.4.14/include/linux/ |
D | relay.h | 66 struct rchan_buf *buf[NR_CPUS]; /* per-cpu channel buffers */ member 96 int (*subbuf_start) (struct rchan_buf *buf, 108 void (*buf_mapped)(struct rchan_buf *buf, 118 void (*buf_unmapped)(struct rchan_buf *buf, 146 struct rchan_buf *buf, 181 extern int relay_buf_full(struct rchan_buf *buf); 183 extern size_t relay_switch_subbuf(struct rchan_buf *buf, 204 struct rchan_buf *buf; in relay_write() local 207 buf = chan->buf[smp_processor_id()]; in relay_write() 208 if (unlikely(buf->offset + length > chan->subbuf_size)) in relay_write() [all …]
|
D | zutil.h | 47 typedef uLong (*check_func) (uLong check, const Byte *buf, 57 #define DO1(buf,i) {s1 += buf[i]; s2 += s1;} argument 58 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); argument 59 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); argument 60 #define DO8(buf,i) DO4(buf,i); DO4(buf,i+4); argument 61 #define DO16(buf) DO8(buf,0); DO8(buf,8); argument 79 const Byte *buf, in zlib_adler32() argument 86 if (buf == NULL) return 1L; in zlib_adler32() 92 DO16(buf); in zlib_adler32() 93 buf += 16; in zlib_adler32() [all …]
|
D | hdlcdrv.h | 28 unsigned short buf[HDLCDRV_HDLCBUFFER]; member 39 static inline void hdlcdrv_add_bitbuffer(struct hdlcdrv_bitbuffer *buf, in hdlcdrv_add_bitbuffer() argument 44 new = buf->shreg & 1; in hdlcdrv_add_bitbuffer() 45 buf->shreg >>= 1; in hdlcdrv_add_bitbuffer() 46 buf->shreg |= (!!bit) << 7; in hdlcdrv_add_bitbuffer() 48 buf->buffer[buf->wr] = buf->shreg; in hdlcdrv_add_bitbuffer() 49 buf->wr = (buf->wr+1) % sizeof(buf->buffer); in hdlcdrv_add_bitbuffer() 50 buf->shreg = 0x80; in hdlcdrv_add_bitbuffer() 54 static inline void hdlcdrv_add_bitbuffer_word(struct hdlcdrv_bitbuffer *buf, in hdlcdrv_add_bitbuffer_word() argument 57 buf->buffer[buf->wr] = bits & 0xff; in hdlcdrv_add_bitbuffer_word() [all …]
|
/linux-4.4.14/drivers/rtc/ |
D | rtc-s35390a.c | 62 static int s35390a_set_reg(struct s35390a *s35390a, int reg, char *buf, int len) in s35390a_set_reg() argument 69 .buf = buf in s35390a_set_reg() 79 static int s35390a_get_reg(struct s35390a *s35390a, int reg, char *buf, int len) in s35390a_get_reg() argument 87 .buf = buf in s35390a_get_reg() 99 char buf[1]; in s35390a_reset() local 101 if (s35390a_get_reg(s35390a, S35390A_CMD_STATUS1, buf, sizeof(buf)) < 0) in s35390a_reset() 104 if (!(buf[0] & (S35390A_FLAG_POC | S35390A_FLAG_BLD))) in s35390a_reset() 107 buf[0] |= (S35390A_FLAG_RESET | S35390A_FLAG_24H); in s35390a_reset() 108 buf[0] &= 0xf0; in s35390a_reset() 109 return s35390a_set_reg(s35390a, S35390A_CMD_STATUS1, buf, sizeof(buf)); in s35390a_reset() [all …]
|
D | rtc-88pm80x.c | 116 unsigned char buf[4]; in pm80x_rtc_read_time() local 118 regmap_raw_read(info->map, PM800_RTC_EXPIRE2_1, buf, 4); in pm80x_rtc_read_time() 119 base = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; in pm80x_rtc_read_time() 120 dev_dbg(info->dev, "%x-%x-%x-%x\n", buf[0], buf[1], buf[2], buf[3]); in pm80x_rtc_read_time() 123 regmap_raw_read(info->map, PM800_RTC_COUNTER1, buf, 4); in pm80x_rtc_read_time() 124 data = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; in pm80x_rtc_read_time() 135 unsigned char buf[4]; in pm80x_rtc_set_time() local 146 regmap_raw_read(info->map, PM800_RTC_COUNTER1, buf, 4); in pm80x_rtc_set_time() 147 data = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; in pm80x_rtc_set_time() 151 buf[0] = base & 0xFF; in pm80x_rtc_set_time() [all …]
|
D | rtc-pcf2127.c | 51 unsigned char buf[10] = { PCF2127_REG_CTRL1 }; in pcf2127_get_datetime() local 54 if (i2c_master_send(client, buf, 1) != 1 || in pcf2127_get_datetime() 55 i2c_master_recv(client, buf, sizeof(buf)) != sizeof(buf)) { in pcf2127_get_datetime() 60 if (buf[PCF2127_REG_CTRL3] & PCF2127_REG_CTRL3_BLF) in pcf2127_get_datetime() 64 if (buf[PCF2127_REG_SC] & PCF2127_OSF) { in pcf2127_get_datetime() 79 buf[0], buf[1], buf[2], in pcf2127_get_datetime() 80 buf[3], buf[4], buf[5], in pcf2127_get_datetime() 81 buf[6], buf[7], buf[8], buf[9]); in pcf2127_get_datetime() 84 tm->tm_sec = bcd2bin(buf[PCF2127_REG_SC] & 0x7F); in pcf2127_get_datetime() 85 tm->tm_min = bcd2bin(buf[PCF2127_REG_MN] & 0x7F); in pcf2127_get_datetime() [all …]
|
D | rtc-88pm860x.c | 112 unsigned char buf[8]; in pm860x_rtc_read_time() local 115 pm860x_page_bulk_read(info->i2c, REG0_ADDR, 8, buf); in pm860x_rtc_read_time() 116 dev_dbg(info->dev, "%x-%x-%x-%x-%x-%x-%x-%x\n", buf[0], buf[1], in pm860x_rtc_read_time() 117 buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]); in pm860x_rtc_read_time() 118 base = (buf[1] << 24) | (buf[3] << 16) | (buf[5] << 8) | buf[7]; in pm860x_rtc_read_time() 121 pm860x_bulk_read(info->i2c, PM8607_RTC_COUNTER1, 4, buf); in pm860x_rtc_read_time() 122 data = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; in pm860x_rtc_read_time() 135 unsigned char buf[4]; in pm860x_rtc_set_time() local 147 pm860x_bulk_read(info->i2c, PM8607_RTC_COUNTER1, 4, buf); in pm860x_rtc_set_time() 148 data = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; in pm860x_rtc_set_time() [all …]
|
D | rtc-ds1305.c | 146 u8 buf[2]; in ds1305_alarm_irq_enable() local 149 buf[0] = DS1305_WRITE | DS1305_CONTROL; in ds1305_alarm_irq_enable() 150 buf[1] = ds1305->ctrl[0]; in ds1305_alarm_irq_enable() 155 buf[1] |= DS1305_AEI0; in ds1305_alarm_irq_enable() 157 if (!(buf[1] & DS1305_AEI0)) in ds1305_alarm_irq_enable() 159 buf[1] &= ~DS1305_AEI0; in ds1305_alarm_irq_enable() 161 err = spi_write_then_read(ds1305->spi, buf, sizeof(buf), NULL, 0); in ds1305_alarm_irq_enable() 163 ds1305->ctrl[0] = buf[1]; in ds1305_alarm_irq_enable() 178 u8 buf[DS1305_RTC_LEN]; in ds1305_get_time() local 185 buf, sizeof(buf)); in ds1305_get_time() [all …]
|
D | rtc-pcf8563.c | 93 unsigned char length, unsigned char *buf) in pcf8563_read_block_data() argument 99 .buf = ®, in pcf8563_read_block_data() 105 .buf = buf in pcf8563_read_block_data() 119 unsigned char *buf) in pcf8563_write_block_data() argument 124 unsigned char data[2] = { reg + i, buf[i] }; in pcf8563_write_block_data() 140 unsigned char buf; in pcf8563_set_alarm_mode() local 143 err = pcf8563_read_block_data(client, PCF8563_REG_ST2, 1, &buf); in pcf8563_set_alarm_mode() 148 buf |= PCF8563_BIT_AIE; in pcf8563_set_alarm_mode() 150 buf &= ~PCF8563_BIT_AIE; in pcf8563_set_alarm_mode() 152 buf &= ~(PCF8563_BIT_AF | PCF8563_BITS_ST2_N); in pcf8563_set_alarm_mode() [all …]
|
D | rtc-isl12022.c | 63 .buf = data in isl12022_read_regs() 69 .buf = data in isl12022_read_regs() 111 uint8_t buf[ISL12022_REG_INT + 1]; in isl12022_get_datetime() local 114 ret = isl12022_read_regs(client, ISL12022_REG_SC, buf, sizeof(buf)); in isl12022_get_datetime() 118 if (buf[ISL12022_REG_SR] & (ISL12022_SR_LBAT85 | ISL12022_SR_LBAT75)) { in isl12022_get_datetime() 122 buf[ISL12022_REG_SR] & ISL12022_SR_LBAT85 ? 85 : 75); in isl12022_get_datetime() 130 buf[ISL12022_REG_SC], in isl12022_get_datetime() 131 buf[ISL12022_REG_MN], in isl12022_get_datetime() 132 buf[ISL12022_REG_HR], in isl12022_get_datetime() 133 buf[ISL12022_REG_DT], in isl12022_get_datetime() [all …]
|
D | rtc-pcf8583.c | 54 unsigned char buf[8], addr[1] = { 1 }; in pcf8583_get_datetime() local 60 .buf = addr, in pcf8583_get_datetime() 65 .buf = buf, in pcf8583_get_datetime() 70 memset(buf, 0, sizeof(buf)); in pcf8583_get_datetime() 74 dt->tm_year = buf[4] >> 6; in pcf8583_get_datetime() 75 dt->tm_wday = buf[5] >> 5; in pcf8583_get_datetime() 77 buf[4] &= 0x3f; in pcf8583_get_datetime() 78 buf[5] &= 0x1f; in pcf8583_get_datetime() 80 dt->tm_sec = bcd2bin(buf[1]); in pcf8583_get_datetime() 81 dt->tm_min = bcd2bin(buf[2]); in pcf8583_get_datetime() [all …]
|
D | rtc-ds1347.c | 49 unsigned char buf[2]; in ds1347_write_reg() local 51 buf[0] = address & 0x7F; in ds1347_write_reg() 52 buf[1] = data; in ds1347_write_reg() 54 return spi_write_then_read(spi, buf, 2, NULL, 0); in ds1347_write_reg() 61 unsigned char buf[8]; in ds1347_read_time() local 63 buf[0] = DS1347_CLOCK_BURST | 0x80; in ds1347_read_time() 65 err = spi_write_then_read(spi, buf, 1, buf, 8); in ds1347_read_time() 69 dt->tm_sec = bcd2bin(buf[0]); in ds1347_read_time() 70 dt->tm_min = bcd2bin(buf[1]); in ds1347_read_time() 71 dt->tm_hour = bcd2bin(buf[2] & 0x3F); in ds1347_read_time() [all …]
|
D | rtc-ab3100.c | 50 unsigned char buf[6]; in ab3100_rtc_set_mmss() local 55 buf[0] = (hw_counter) & 0xFF; in ab3100_rtc_set_mmss() 56 buf[1] = (hw_counter >> 8) & 0xFF; in ab3100_rtc_set_mmss() 57 buf[2] = (hw_counter >> 16) & 0xFF; in ab3100_rtc_set_mmss() 58 buf[3] = (hw_counter >> 24) & 0xFF; in ab3100_rtc_set_mmss() 59 buf[4] = (hw_counter >> 32) & 0xFF; in ab3100_rtc_set_mmss() 60 buf[5] = (hw_counter >> 40) & 0xFF; in ab3100_rtc_set_mmss() 64 regs[i], buf[i]); in ab3100_rtc_set_mmss() 92 u8 buf[6]; in ab3100_rtc_read_time() local 97 buf, 6); in ab3100_rtc_read_time() [all …]
|
D | rtc-max8925.c | 85 static int tm_calc(struct rtc_time *tm, unsigned char *buf, int len) in tm_calc() argument 89 tm->tm_year = (buf[RTC_YEAR2] >> 4) * 1000 in tm_calc() 90 + (buf[RTC_YEAR2] & 0xf) * 100 in tm_calc() 91 + (buf[RTC_YEAR1] >> 4) * 10 in tm_calc() 92 + (buf[RTC_YEAR1] & 0xf); in tm_calc() 94 tm->tm_mon = ((buf[RTC_MONTH] >> 4) & 0x01) * 10 in tm_calc() 95 + (buf[RTC_MONTH] & 0x0f); in tm_calc() 96 tm->tm_mday = ((buf[RTC_DATE] >> 4) & 0x03) * 10 in tm_calc() 97 + (buf[RTC_DATE] & 0x0f); in tm_calc() 98 tm->tm_wday = buf[RTC_WEEKDAY] & 0x07; in tm_calc() [all …]
|
D | rtc-em3027.c | 50 unsigned char buf[7]; in em3027_get_time() local 56 .buf = &addr in em3027_get_time() 62 .buf = buf in em3027_get_time() 72 tm->tm_sec = bcd2bin(buf[0]); in em3027_get_time() 73 tm->tm_min = bcd2bin(buf[1]); in em3027_get_time() 74 tm->tm_hour = bcd2bin(buf[2]); in em3027_get_time() 75 tm->tm_mday = bcd2bin(buf[3]); in em3027_get_time() 76 tm->tm_wday = bcd2bin(buf[4]); in em3027_get_time() 77 tm->tm_mon = bcd2bin(buf[5]); in em3027_get_time() 78 tm->tm_year = bcd2bin(buf[6]) + 100; in em3027_get_time() [all …]
|
D | rtc-pcf85063.c | 49 unsigned char buf[13] = { PCF85063_REG_CTRL1 }; in pcf85063_get_datetime() local 54 .buf = buf in pcf85063_get_datetime() 60 .buf = buf in pcf85063_get_datetime() 70 tm->tm_sec = bcd2bin(buf[PCF85063_REG_SC] & 0x7F); in pcf85063_get_datetime() 71 tm->tm_min = bcd2bin(buf[PCF85063_REG_MN] & 0x7F); in pcf85063_get_datetime() 72 tm->tm_hour = bcd2bin(buf[PCF85063_REG_HR] & 0x3F); /* rtc hr 0-23 */ in pcf85063_get_datetime() 73 tm->tm_mday = bcd2bin(buf[PCF85063_REG_DM] & 0x3F); in pcf85063_get_datetime() 74 tm->tm_wday = buf[PCF85063_REG_DW] & 0x07; in pcf85063_get_datetime() 75 tm->tm_mon = bcd2bin(buf[PCF85063_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ in pcf85063_get_datetime() 76 tm->tm_year = bcd2bin(buf[PCF85063_REG_YR]); in pcf85063_get_datetime() [all …]
|
D | rtc-abx80x.c | 98 unsigned char buf[8]; in abx80x_rtc_read_time() local 102 sizeof(buf), buf); in abx80x_rtc_read_time() 108 tm->tm_sec = bcd2bin(buf[ABX8XX_REG_SC] & 0x7F); in abx80x_rtc_read_time() 109 tm->tm_min = bcd2bin(buf[ABX8XX_REG_MN] & 0x7F); in abx80x_rtc_read_time() 110 tm->tm_hour = bcd2bin(buf[ABX8XX_REG_HR] & 0x3F); in abx80x_rtc_read_time() 111 tm->tm_wday = buf[ABX8XX_REG_WD] & 0x7; in abx80x_rtc_read_time() 112 tm->tm_mday = bcd2bin(buf[ABX8XX_REG_DA] & 0x3F); in abx80x_rtc_read_time() 113 tm->tm_mon = bcd2bin(buf[ABX8XX_REG_MO] & 0x1F) - 1; in abx80x_rtc_read_time() 114 tm->tm_year = bcd2bin(buf[ABX8XX_REG_YR]) + 100; in abx80x_rtc_read_time() 126 unsigned char buf[8]; in abx80x_rtc_set_time() local [all …]
|
D | rtc-ds1672.c | 37 unsigned char buf[4]; in ds1672_get_datetime() local 43 .buf = &addr in ds1672_get_datetime() 49 .buf = buf in ds1672_get_datetime() 61 __func__, buf[0], buf[1], buf[2], buf[3]); in ds1672_get_datetime() 63 time = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; in ds1672_get_datetime() 78 unsigned char buf[6]; in ds1672_set_mmss() local 80 buf[0] = DS1672_REG_CNT_BASE; in ds1672_set_mmss() 81 buf[1] = secs & 0x000000FF; in ds1672_set_mmss() 82 buf[2] = (secs & 0x0000FF00) >> 8; in ds1672_set_mmss() 83 buf[3] = (secs & 0x00FF0000) >> 16; in ds1672_set_mmss() [all …]
|
D | rtc-ds3232.c | 107 u8 buf[7]; in ds3232_read_time() local 112 ret = i2c_smbus_read_i2c_block_data(client, DS3232_REG_SECONDS, 7, buf); in ds3232_read_time() 119 second = buf[0]; in ds3232_read_time() 120 minute = buf[1]; in ds3232_read_time() 121 hour = buf[2]; in ds3232_read_time() 122 week = buf[3]; in ds3232_read_time() 123 day = buf[4]; in ds3232_read_time() 124 month = buf[5]; in ds3232_read_time() 125 year = buf[6]; in ds3232_read_time() 163 u8 buf[7]; in ds3232_set_time() local [all …]
|
D | rtc-x1205.c | 97 unsigned char buf[8]; in x1205_get_datetime() local 104 .buf = dt_addr in x1205_get_datetime() 110 .buf = buf in x1205_get_datetime() 124 buf[0], buf[1], buf[2], buf[3], in x1205_get_datetime() 125 buf[4], buf[5], buf[6], buf[7]); in x1205_get_datetime() 130 buf[i] &= 0x7F; in x1205_get_datetime() 132 tm->tm_sec = bcd2bin(buf[CCR_SEC]); in x1205_get_datetime() 133 tm->tm_min = bcd2bin(buf[CCR_MIN]); in x1205_get_datetime() 134 tm->tm_hour = bcd2bin(buf[CCR_HOUR] & 0x3F); /* hr is 0-23 */ in x1205_get_datetime() 135 tm->tm_mday = bcd2bin(buf[CCR_MDAY]); in x1205_get_datetime() [all …]
|
D | rtc-tx4939.c | 50 unsigned char buf[6]; in tx4939_rtc_set_mmss() local 52 buf[0] = 0; in tx4939_rtc_set_mmss() 53 buf[1] = 0; in tx4939_rtc_set_mmss() 54 buf[2] = secs; in tx4939_rtc_set_mmss() 55 buf[3] = secs >> 8; in tx4939_rtc_set_mmss() 56 buf[4] = secs >> 16; in tx4939_rtc_set_mmss() 57 buf[5] = secs >> 24; in tx4939_rtc_set_mmss() 61 __raw_writel(buf[i], &rtcreg->dat); in tx4939_rtc_set_mmss() 75 unsigned char buf[6]; in tx4939_rtc_read_time() local 87 buf[i] = __raw_readl(&rtcreg->dat); in tx4939_rtc_read_time() [all …]
|
/linux-4.4.14/drivers/media/pci/ivtv/ |
D | ivtv-queue.c | 25 int ivtv_buf_copy_from_user(struct ivtv_stream *s, struct ivtv_buffer *buf, const char __user *src,… in ivtv_buf_copy_from_user() argument 27 if (s->buf_size - buf->bytesused < copybytes) in ivtv_buf_copy_from_user() 28 copybytes = s->buf_size - buf->bytesused; in ivtv_buf_copy_from_user() 29 if (copy_from_user(buf->buf + buf->bytesused, src, copybytes)) { in ivtv_buf_copy_from_user() 32 buf->bytesused += copybytes; in ivtv_buf_copy_from_user() 36 void ivtv_buf_swap(struct ivtv_buffer *buf) in ivtv_buf_swap() argument 40 for (i = 0; i < buf->bytesused; i += 4) in ivtv_buf_swap() 41 swab32s((u32 *)(buf->buf + i)); in ivtv_buf_swap() 52 void ivtv_enqueue(struct ivtv_stream *s, struct ivtv_buffer *buf, struct ivtv_queue *q) in ivtv_enqueue() argument 58 buf->bytesused = 0; in ivtv_enqueue() [all …]
|
/linux-4.4.14/sound/usb/caiaq/ |
D | input.c | 204 int axis, const unsigned char *buf, in snd_caiaq_input_report_abs() argument 208 (buf[offset * 2] << 8) | buf[offset * 2 + 1]); in snd_caiaq_input_report_abs() 212 const unsigned char *buf, in snd_caiaq_input_read_analog() argument 219 snd_caiaq_input_report_abs(cdev, ABS_X, buf, 2); in snd_caiaq_input_read_analog() 220 snd_caiaq_input_report_abs(cdev, ABS_Y, buf, 0); in snd_caiaq_input_read_analog() 221 snd_caiaq_input_report_abs(cdev, ABS_Z, buf, 1); in snd_caiaq_input_read_analog() 226 snd_caiaq_input_report_abs(cdev, ABS_X, buf, 0); in snd_caiaq_input_read_analog() 227 snd_caiaq_input_report_abs(cdev, ABS_Y, buf, 1); in snd_caiaq_input_read_analog() 228 snd_caiaq_input_report_abs(cdev, ABS_Z, buf, 2); in snd_caiaq_input_read_analog() 231 snd_caiaq_input_report_abs(cdev, ABS_HAT0X, buf, 4); in snd_caiaq_input_read_analog() [all …]
|
/linux-4.4.14/net/sunrpc/ |
D | xdr.c | 121 xdr_terminate_string(struct xdr_buf *buf, const u32 len) in xdr_terminate_string() argument 125 kaddr = kmap_atomic(buf->pages[0]); in xdr_terminate_string() 126 kaddr[buf->page_base + len] = '\0'; in xdr_terminate_string() 137 char *buf = (char *)head->iov_base; in xdr_inline_pages() local 146 tail->iov_base = buf + offset; in xdr_inline_pages() 316 xdr_shrink_bufhead(struct xdr_buf *buf, size_t len) in xdr_shrink_bufhead() argument 320 unsigned int pglen = buf->page_len; in xdr_shrink_bufhead() 322 tail = buf->tail; in xdr_shrink_bufhead() 323 head = buf->head; in xdr_shrink_bufhead() 347 buf->pages, in xdr_shrink_bufhead() [all …]
|
D | addr.c | 28 char *buf, const int buflen) in rpc_ntop6_noscopeid() argument 39 return snprintf(buf, buflen, "::"); in rpc_ntop6_noscopeid() 47 return snprintf(buf, buflen, "::1"); in rpc_ntop6_noscopeid() 56 return snprintf(buf, buflen, "::ffff:%pI4", in rpc_ntop6_noscopeid() 62 return snprintf(buf, buflen, "%pI6c", addr); in rpc_ntop6_noscopeid() 66 char *buf, const size_t buflen) in rpc_ntop6() argument 73 len = rpc_ntop6_noscopeid(sap, buf, buflen); in rpc_ntop6() 91 strcat(buf, scopebuf); in rpc_ntop6() 98 char *buf, const int buflen) in rpc_ntop6_noscopeid() argument 104 char *buf, const size_t buflen) in rpc_ntop6() argument [all …]
|
/linux-4.4.14/net/sunrpc/auth_gss/ |
D | gss_krb5_wrap.c | 49 gss_krb5_add_padding(struct xdr_buf *buf, int offset, int blocksize) in gss_krb5_add_padding() argument 51 int padding = gss_krb5_padding(blocksize, buf->len - offset); in gss_krb5_add_padding() 55 if (buf->page_len || buf->tail[0].iov_len) in gss_krb5_add_padding() 56 iov = &buf->tail[0]; in gss_krb5_add_padding() 58 iov = &buf->head[0]; in gss_krb5_add_padding() 61 buf->len += padding; in gss_krb5_add_padding() 66 gss_krb5_remove_padding(struct xdr_buf *buf, int blocksize) in gss_krb5_remove_padding() argument 70 size_t len = buf->len; in gss_krb5_remove_padding() 72 if (len <= buf->head[0].iov_len) { in gss_krb5_remove_padding() 73 pad = *(u8 *)(buf->head[0].iov_base + len - 1); in gss_krb5_remove_padding() [all …]
|
D | gss_generic_token.c | 96 der_write_length(unsigned char **buf, int length) in der_write_length() argument 99 *(*buf)++ = (unsigned char) length; in der_write_length() 101 *(*buf)++ = (unsigned char) (der_length_size(length)+127); in der_write_length() 104 *(*buf)++ = (unsigned char) (length>>24); in der_write_length() 106 *(*buf)++ = (unsigned char) ((length>>16)&0xff); in der_write_length() 109 *(*buf)++ = (unsigned char) ((length>>8)&0xff); in der_write_length() 110 *(*buf)++ = (unsigned char) (length&0xff); in der_write_length() 118 der_read_length(unsigned char **buf, int *bufsize) in der_read_length() argument 125 sf = *(*buf)++; in der_read_length() 134 ret = (ret<<8) + (*(*buf)++); in der_read_length() [all …]
|
/linux-4.4.14/drivers/media/usb/go7007/ |
D | go7007-fw.c | 298 static int mjpeg_frame_header(struct go7007 *go, unsigned char *buf, int q) in mjpeg_frame_header() argument 302 buf[p++] = 0xff; in mjpeg_frame_header() 303 buf[p++] = 0xd8; in mjpeg_frame_header() 304 buf[p++] = 0xff; in mjpeg_frame_header() 305 buf[p++] = 0xdb; in mjpeg_frame_header() 306 buf[p++] = 0; in mjpeg_frame_header() 307 buf[p++] = 2 + 65; in mjpeg_frame_header() 308 buf[p++] = 0; in mjpeg_frame_header() 309 buf[p++] = default_intra_quant_table[0]; in mjpeg_frame_header() 312 buf[p++] = (default_intra_quant_table[zz[i]] * q) >> 3; in mjpeg_frame_header() [all …]
|
/linux-4.4.14/arch/cris/boot/tools/ |
D | build.c | 110 char buf[1024]; in main() local 112 struct exec *ex = (struct exec *)buf; in main() 144 for (i=0;i<sizeof buf; i++) buf[i]=0; in main() 147 if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) in main() 149 if (((long *) buf)[0]!=intel_long(0x04100301)) in main() 151 if (((long *) buf)[1]!=intel_long(MINIX_HEADER)) in main() 153 if (((long *) buf)[3] != 0) in main() 155 if (((long *) buf)[4] != 0) in main() 157 if (((long *) buf)[5] != 0) in main() 159 if (((long *) buf)[7] != 0) in main() [all …]
|
/linux-4.4.14/drivers/gpu/drm/via/ |
D | via_verifier.c | 238 eat_words(const uint32_t **buf, const uint32_t *buf_end, unsigned num_words) in eat_words() argument 240 if ((buf_end - *buf) >= num_words) { in eat_words() 241 *buf += num_words; in eat_words() 528 const uint32_t *buf = *buffer; in via_check_prim_list() local 530 while (buf < buf_end) { in via_check_prim_list() 532 if ((buf_end - buf) < 2) { in via_check_prim_list() 538 if ((*buf & HC_ACMD_MASK) != HC_ACMD_HCmdB) in via_check_prim_list() 540 bcmd = *buf++; in via_check_prim_list() 541 if ((*buf & HC_ACMD_MASK) != HC_ACMD_HCmdA) { in via_check_prim_list() 543 *buf); in via_check_prim_list() [all …]
|
/linux-4.4.14/drivers/media/usb/pvrusb2/ |
D | pvrusb2-debugifc.c | 32 static unsigned int debugifc_count_whitespace(const char *buf, in debugifc_count_whitespace() argument 39 ch = buf[scnt]; in debugifc_count_whitespace() 49 static unsigned int debugifc_count_nonwhitespace(const char *buf, in debugifc_count_nonwhitespace() argument 56 ch = buf[scnt]; in debugifc_count_nonwhitespace() 65 static unsigned int debugifc_isolate_word(const char *buf,unsigned int count, in debugifc_isolate_word() argument 76 scnt = debugifc_count_whitespace(buf,count); in debugifc_isolate_word() 77 consume_cnt += scnt; count -= scnt; buf += scnt; in debugifc_isolate_word() 80 scnt = debugifc_count_nonwhitespace(buf,count); in debugifc_isolate_word() 82 wptr = buf; in debugifc_isolate_word() 84 consume_cnt += scnt; count -= scnt; buf += scnt; in debugifc_isolate_word() [all …]
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
D | drm_buffer.c | 44 int drm_buffer_alloc(struct drm_buffer **buf, int size) in drm_buffer_alloc() argument 51 *buf = kzalloc(sizeof(struct drm_buffer) + nr_pages*sizeof(char *), in drm_buffer_alloc() 54 if (*buf == NULL) { in drm_buffer_alloc() 61 (*buf)->size = size; in drm_buffer_alloc() 65 (*buf)->data[idx] = in drm_buffer_alloc() 70 if ((*buf)->data[idx] == NULL) { in drm_buffer_alloc() 84 kfree((*buf)->data[idx]); in drm_buffer_alloc() 86 kfree(*buf); in drm_buffer_alloc() 97 int drm_buffer_copy_from_user(struct drm_buffer *buf, in drm_buffer_copy_from_user() argument 103 if (size > buf->size) { in drm_buffer_copy_from_user() [all …]
|
D | drm_buffer.h | 50 static inline int drm_buffer_page(struct drm_buffer *buf) in drm_buffer_page() argument 52 return buf->iterator / PAGE_SIZE; in drm_buffer_page() 57 static inline int drm_buffer_index(struct drm_buffer *buf) in drm_buffer_index() argument 59 return buf->iterator & (PAGE_SIZE - 1); in drm_buffer_index() 64 static inline int drm_buffer_unprocessed(struct drm_buffer *buf) in drm_buffer_unprocessed() argument 66 return buf->size - buf->iterator; in drm_buffer_unprocessed() 72 static inline void drm_buffer_advance(struct drm_buffer *buf, int bytes) in drm_buffer_advance() argument 74 buf->iterator += bytes; in drm_buffer_advance() 83 extern int drm_buffer_alloc(struct drm_buffer **buf, int size); 92 extern int drm_buffer_copy_from_user(struct drm_buffer *buf, [all …]
|
/linux-4.4.14/drivers/media/common/siano/ |
D | smsdvb-debugfs.c | 53 char *buf; in smsdvb_print_dvb_stats() local 61 buf = debug_data->stats_data; in smsdvb_print_dvb_stats() 63 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 65 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 67 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 69 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 71 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 73 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 75 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 77 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() [all …]
|
/linux-4.4.14/sound/firewire/dice/ |
D | dice-proc.c | 115 } buf; in dice_proc_read() local 126 quadlets = min_t(u32, sections[1], sizeof(buf.global) / 4); in dice_proc_read() 127 if (dice_proc_read_mem(dice, &buf.global, sections[0], quadlets) < 0) in dice_proc_read() 131 buf.global.owner_hi >> 16, in dice_proc_read() 132 buf.global.owner_hi & 0xffff, buf.global.owner_lo); in dice_proc_read() 133 snd_iprintf(buffer, " notification: %08x\n", buf.global.notification); in dice_proc_read() 134 dice_proc_fixup_string(buf.global.nick_name, NICK_NAME_SIZE); in dice_proc_read() 135 snd_iprintf(buffer, " nick name: %s\n", buf.global.nick_name); in dice_proc_read() 138 buf.global.clock_select & CLOCK_SOURCE_MASK), in dice_proc_read() 140 (buf.global.clock_select & CLOCK_RATE_MASK) in dice_proc_read() [all …]
|
/linux-4.4.14/drivers/scsi/qla2xxx/ |
D | qla_tmpl.c | 109 qla27xx_insert16(uint16_t value, void *buf, ulong *len) in qla27xx_insert16() argument 111 if (buf) { in qla27xx_insert16() 112 buf += *len; in qla27xx_insert16() 113 *(__le16 *)buf = cpu_to_le16(value); in qla27xx_insert16() 119 qla27xx_insert32(uint32_t value, void *buf, ulong *len) in qla27xx_insert32() argument 121 if (buf) { in qla27xx_insert32() 122 buf += *len; in qla27xx_insert32() 123 *(__le32 *)buf = cpu_to_le32(value); in qla27xx_insert32() 129 qla27xx_insertbuf(void *mem, ulong size, void *buf, ulong *len) in qla27xx_insertbuf() argument 132 if (buf && mem && size) { in qla27xx_insertbuf() [all …]
|
/linux-4.4.14/drivers/base/power/ |
D | sysfs.c | 102 char *buf) in control_show() argument 104 return sprintf(buf, "%s\n", in control_show() 109 const char * buf, size_t n) in control_store() argument 114 cp = memchr(buf, '\n', n); in control_store() 116 len = cp - buf; in control_store() 118 if (len == sizeof ctrl_auto - 1 && strncmp(buf, ctrl_auto, len) == 0) in control_store() 120 else if (len == sizeof ctrl_on - 1 && strncmp(buf, ctrl_on, len) == 0) in control_store() 131 struct device_attribute *attr, char *buf) in rtpm_active_time_show() argument 136 ret = sprintf(buf, "%i\n", jiffies_to_msecs(dev->power.active_jiffies)); in rtpm_active_time_show() 144 struct device_attribute *attr, char *buf) in rtpm_suspended_time_show() argument [all …]
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/ |
D | debugfs-vif.c | 131 static ssize_t iwl_dbgfs_pm_params_write(struct ieee80211_vif *vif, char *buf, in iwl_dbgfs_pm_params_write() argument 139 if (!strncmp("keep_alive=", buf, 11)) { in iwl_dbgfs_pm_params_write() 140 if (sscanf(buf + 11, "%d", &val) != 1) in iwl_dbgfs_pm_params_write() 143 } else if (!strncmp("skip_over_dtim=", buf, 15)) { in iwl_dbgfs_pm_params_write() 144 if (sscanf(buf + 15, "%d", &val) != 1) in iwl_dbgfs_pm_params_write() 147 } else if (!strncmp("skip_dtim_periods=", buf, 18)) { in iwl_dbgfs_pm_params_write() 148 if (sscanf(buf + 18, "%d", &val) != 1) in iwl_dbgfs_pm_params_write() 151 } else if (!strncmp("rx_data_timeout=", buf, 16)) { in iwl_dbgfs_pm_params_write() 152 if (sscanf(buf + 16, "%d", &val) != 1) in iwl_dbgfs_pm_params_write() 155 } else if (!strncmp("tx_data_timeout=", buf, 16)) { in iwl_dbgfs_pm_params_write() [all …]
|
D | debugfs.c | 73 static ssize_t iwl_dbgfs_tx_flush_write(struct iwl_mvm *mvm, char *buf, in iwl_dbgfs_tx_flush_write() argument 82 if (sscanf(buf, "%x", &scd_q_msk) != 1) in iwl_dbgfs_tx_flush_write() 94 static ssize_t iwl_dbgfs_sta_drain_write(struct iwl_mvm *mvm, char *buf, in iwl_dbgfs_sta_drain_write() argument 103 if (sscanf(buf, "%d %d", &sta_id, &drain) != 2) in iwl_dbgfs_sta_drain_write() 159 static ssize_t iwl_dbgfs_sram_write(struct iwl_mvm *mvm, char *buf, in iwl_dbgfs_sram_write() argument 173 if (sscanf(buf, "%x,%x", &offset, &len) == 2) { in iwl_dbgfs_sram_write() 195 char buf[16]; in iwl_dbgfs_set_nic_temperature_read() local 199 pos = scnprintf(buf , sizeof(buf), "disabled\n"); in iwl_dbgfs_set_nic_temperature_read() 201 pos = scnprintf(buf , sizeof(buf), "%d\n", mvm->temperature); in iwl_dbgfs_set_nic_temperature_read() 203 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_set_nic_temperature_read() [all …]
|
/linux-4.4.14/arch/arm/common/ |
D | dmabounce.c | 88 char *buf) in dmabounce_show() argument 91 return sprintf(buf, "%lu %lu %lu %lu %lu %lu\n", in dmabounce_show() 110 struct safe_buffer *buf; in alloc_safe_buffer() local 126 buf = kmalloc(sizeof(struct safe_buffer), GFP_ATOMIC); in alloc_safe_buffer() 127 if (buf == NULL) { in alloc_safe_buffer() 132 buf->ptr = ptr; in alloc_safe_buffer() 133 buf->size = size; in alloc_safe_buffer() 134 buf->direction = dir; in alloc_safe_buffer() 135 buf->pool = pool; in alloc_safe_buffer() 138 buf->safe = dma_pool_alloc(pool->pool, GFP_ATOMIC, in alloc_safe_buffer() [all …]
|
/linux-4.4.14/drivers/usb/gadget/function/ |
D | uvc_queue.c | 65 struct uvc_buffer *buf = container_of(vbuf, struct uvc_buffer, buf); in uvc_buffer_prepare() local 76 buf->state = UVC_BUF_STATE_QUEUED; in uvc_buffer_prepare() 77 buf->mem = vb2_plane_vaddr(vb, 0); in uvc_buffer_prepare() 78 buf->length = vb2_plane_size(vb, 0); in uvc_buffer_prepare() 80 buf->bytesused = 0; in uvc_buffer_prepare() 82 buf->bytesused = vb2_get_plane_payload(vb, 0); in uvc_buffer_prepare() 91 struct uvc_buffer *buf = container_of(vbuf, struct uvc_buffer, buf); in uvc_buffer_queue() local 97 list_add_tail(&buf->queue, &queue->irqqueue); in uvc_buffer_queue() 102 buf->state = UVC_BUF_STATE_ERROR; in uvc_buffer_queue() 163 int uvcg_query_buffer(struct uvc_video_queue *queue, struct v4l2_buffer *buf) in uvcg_query_buffer() argument [all …]
|
/linux-4.4.14/drivers/base/ |
D | firmware_class.c | 182 struct firmware_buf *buf; in __allocate_fw_buf() local 184 buf = kzalloc(sizeof(*buf), GFP_ATOMIC); in __allocate_fw_buf() 185 if (!buf) in __allocate_fw_buf() 188 buf->fw_id = kstrdup_const(fw_name, GFP_ATOMIC); in __allocate_fw_buf() 189 if (!buf->fw_id) { in __allocate_fw_buf() 190 kfree(buf); in __allocate_fw_buf() 194 kref_init(&buf->ref); in __allocate_fw_buf() 195 buf->fwc = fwc; in __allocate_fw_buf() 196 init_completion(&buf->completion); in __allocate_fw_buf() 198 INIT_LIST_HEAD(&buf->pending_list); in __allocate_fw_buf() [all …]
|
/linux-4.4.14/net/ax25/ |
D | ax25_addr.c | 49 char *ax2asc(char *buf, const ax25_address *a) in ax2asc() argument 54 for (n = 0, s = buf; n < 6; n++) { in ax2asc() 70 if (*buf == '\0' || *buf == '-') in ax2asc() 73 return buf; in ax2asc() 159 const unsigned char *ax25_addr_parse(const unsigned char *buf, int len, in ax25_addr_parse() argument 170 if (buf[6] & AX25_CBIT) in ax25_addr_parse() 172 if (buf[13] & AX25_CBIT) in ax25_addr_parse() 177 *dama = ~buf[13] & AX25_DAMA_FLAG; in ax25_addr_parse() 181 memcpy(dest, buf + 0, AX25_ADDR_LEN); in ax25_addr_parse() 183 memcpy(src, buf + 7, AX25_ADDR_LEN); in ax25_addr_parse() [all …]
|
/linux-4.4.14/drivers/media/usb/dvb-usb/ |
D | dib0700_core.c | 41 st->buf, 16, USB_CTRL_GET_TIMEOUT); in dib0700_get_version() 43 *hwversion = (st->buf[0] << 24) | (st->buf[1] << 16) | in dib0700_get_version() 44 (st->buf[2] << 8) | st->buf[3]; in dib0700_get_version() 46 *romversion = (st->buf[4] << 24) | (st->buf[5] << 16) | in dib0700_get_version() 47 (st->buf[6] << 8) | st->buf[7]; in dib0700_get_version() 49 *ramversion = (st->buf[8] << 24) | (st->buf[9] << 16) | in dib0700_get_version() 50 (st->buf[10] << 8) | st->buf[11]; in dib0700_get_version() 52 *fwtype = (st->buf[12] << 24) | (st->buf[13] << 16) | in dib0700_get_version() 53 (st->buf[14] << 8) | st->buf[15]; in dib0700_get_version() 124 st->buf[0] = REQUEST_SET_GPIO; in dib0700_set_gpio() [all …]
|
D | af9005.c | 318 u8 temp, buf[2]; in af9005_read_tuner_registers() local 320 buf[0] = addr; /* tuner i2c address */ in af9005_read_tuner_registers() 321 buf[1] = values[0]; /* tuner register */ in af9005_read_tuner_registers() 327 ret = af9005_write_tuner_registers(d, 0x00c0, buf, 2); in af9005_read_tuner_registers() 368 u8 buf[3]; in af9005_i2c_write() local 374 buf[0] = i2caddr; in af9005_i2c_write() 375 buf[1] = reg + (u8) i; in af9005_i2c_write() 376 buf[2] = data[i]; in af9005_i2c_write() 380 buf, 3); in af9005_i2c_write() 431 reg = *msg[0].buf; in af9005_i2c_xfer() [all …]
|
D | vp702x.c | 121 u8 *buf; in vp702x_usb_inout_cmd() local 129 buf = kmalloc(buflen, GFP_KERNEL); in vp702x_usb_inout_cmd() 130 if (!buf) { in vp702x_usb_inout_cmd() 135 kfree(st->buf); in vp702x_usb_inout_cmd() 136 st->buf = buf; in vp702x_usb_inout_cmd() 139 buf = st->buf; in vp702x_usb_inout_cmd() 142 buf[0] = 0x00; in vp702x_usb_inout_cmd() 143 buf[1] = cmd; in vp702x_usb_inout_cmd() 144 memcpy(&buf[2], o, olen); in vp702x_usb_inout_cmd() 146 ret = vp702x_usb_inout_op(d, buf, olen+2, buf, ilen+1, msec); in vp702x_usb_inout_cmd() [all …]
|
D | pctv452e.c | 106 u8 buf[64]; in tt3650_ci_msg() local 117 buf[0] = SYNC_BYTE_OUT; in tt3650_ci_msg() 118 buf[1] = id; in tt3650_ci_msg() 119 buf[2] = cmd; in tt3650_ci_msg() 120 buf[3] = write_len; in tt3650_ci_msg() 122 memcpy(buf + 4, data, write_len); in tt3650_ci_msg() 125 ret = dvb_usb_generic_rw(d, buf, 4 + write_len, in tt3650_ci_msg() 126 buf, rlen, /* delay_ms */ 0); in tt3650_ci_msg() 131 if (SYNC_BYTE_IN != buf[0] || id != buf[1]) in tt3650_ci_msg() 134 memcpy(data, buf + 4, read_len); in tt3650_ci_msg() [all …]
|
/linux-4.4.14/drivers/scsi/pcmcia/ |
D | nsp_io.h | 69 void *buf, in nsp_multi_read_1() argument 72 insb(BaseAddr + Register, buf, count); in nsp_multi_read_1() 76 void *buf, in nsp_fifo8_read() argument 80 nsp_multi_read_1(base, FIFODATA, buf, count); in nsp_fifo8_read() 88 void *buf, in nsp_multi_read_2() argument 91 insw(BaseAddr + Register, buf, count); in nsp_multi_read_2() 95 void *buf, in nsp_fifo16_read() argument 99 nsp_multi_read_2(base, FIFODATA, buf, count); in nsp_fifo16_read() 107 void *buf, in nsp_multi_read_4() argument 110 insl(BaseAddr + Register, buf, count); in nsp_multi_read_4() [all …]
|
/linux-4.4.14/tools/perf/util/ |
D | trace-event-read.c | 45 static int __do_read(int fd, void *buf, int size) in __do_read() argument 50 int ret = read(fd, buf, size); in __do_read() 56 int retw = write(STDOUT_FILENO, buf, ret); in __do_read() 65 buf += ret; in __do_read() 90 char buf[BUFSIZ]; in skip() local 95 do_read(buf, r); in skip() 120 char buf[BUFSIZ]; in read_string() local 147 buf[size++] = c; in read_string() 157 memcpy(str, buf, size); in read_string() 188 char *buf; in read_ftrace_printk() local [all …]
|
/linux-4.4.14/lib/ |
D | vsprintf.c | 174 char *put_dec_trunc8(char *buf, unsigned r) in put_dec_trunc8() argument 184 *((u16 *)buf) = decpair[r - 100*q]; in put_dec_trunc8() 185 buf += 2; in put_dec_trunc8() 193 *((u16 *)buf) = decpair[q - 100*r]; in put_dec_trunc8() 194 buf += 2; in put_dec_trunc8() 202 *((u16 *)buf) = decpair[r - 100*q]; in put_dec_trunc8() 203 buf += 2; in put_dec_trunc8() 209 *((u16 *)buf) = decpair[r]; in put_dec_trunc8() 210 buf += r < 10 ? 1 : 2; in put_dec_trunc8() 211 return buf; in put_dec_trunc8() [all …]
|
/linux-4.4.14/drivers/s390/net/ |
D | qeth_core_sys.c | 19 struct device_attribute *attr, char *buf) in qeth_dev_state_show() argument 27 return sprintf(buf, "DOWN\n"); in qeth_dev_state_show() 29 return sprintf(buf, "HARDSETUP\n"); in qeth_dev_state_show() 31 return sprintf(buf, "SOFTSETUP\n"); in qeth_dev_state_show() 34 return sprintf(buf, "UP (LAN ONLINE)\n"); in qeth_dev_state_show() 36 return sprintf(buf, "UP (LAN OFFLINE)\n"); in qeth_dev_state_show() 38 return sprintf(buf, "RECOVER\n"); in qeth_dev_state_show() 40 return sprintf(buf, "UNKNOWN\n"); in qeth_dev_state_show() 47 struct device_attribute *attr, char *buf) in qeth_dev_chpid_show() argument 53 return sprintf(buf, "%02X\n", card->info.chpid); in qeth_dev_chpid_show() [all …]
|
D | qeth_l3_sys.c | 17 struct qeth_routing_info *route, char *buf) in qeth_l3_dev_route_show() argument 21 return sprintf(buf, "%s\n", "primary router"); in qeth_l3_dev_route_show() 23 return sprintf(buf, "%s\n", "secondary router"); in qeth_l3_dev_route_show() 26 return sprintf(buf, "%s\n", "multicast router+"); in qeth_l3_dev_route_show() 28 return sprintf(buf, "%s\n", "multicast router"); in qeth_l3_dev_route_show() 31 return sprintf(buf, "%s\n", "primary connector+"); in qeth_l3_dev_route_show() 33 return sprintf(buf, "%s\n", "primary connector"); in qeth_l3_dev_route_show() 36 return sprintf(buf, "%s\n", "secondary connector+"); in qeth_l3_dev_route_show() 38 return sprintf(buf, "%s\n", "secondary connector"); in qeth_l3_dev_route_show() 40 return sprintf(buf, "%s\n", "no"); in qeth_l3_dev_route_show() [all …]
|
/linux-4.4.14/drivers/media/pci/pt1/ |
D | va1j5jf8007s.c | 70 msgs[0].buf = write_buf; in va1j5jf8007s_read_snr() 75 msgs[1].buf = read_buf; in va1j5jf8007s_read_snr() 178 u8 buf[6]; in va1j5jf8007s_set_frequency_1() local 187 buf[0] = 0xfe; in va1j5jf8007s_set_frequency_1() 188 buf[1] = 0xc0; in va1j5jf8007s_set_frequency_1() 189 buf[2] = 0x40 | word >> 8; in va1j5jf8007s_set_frequency_1() 190 buf[3] = word; in va1j5jf8007s_set_frequency_1() 191 buf[4] = 0xe0; in va1j5jf8007s_set_frequency_1() 192 buf[5] = va1j5jf8007s_lookup_cb(frequency); in va1j5jf8007s_set_frequency_1() 196 msg.len = sizeof(buf); in va1j5jf8007s_set_frequency_1() [all …]
|
D | va1j5jf8007t.c | 68 msgs[0].buf = write_buf; in va1j5jf8007t_read_snr() 73 msgs[1].buf = read_buf; in va1j5jf8007t_read_snr() 164 u8 buf[6]; in va1j5jf8007t_set_frequency() local 170 buf[0] = 0xfe; in va1j5jf8007t_set_frequency() 171 buf[1] = 0xc2; in va1j5jf8007t_set_frequency() 172 buf[2] = word >> 8; in va1j5jf8007t_set_frequency() 173 buf[3] = word; in va1j5jf8007t_set_frequency() 174 buf[4] = 0x80; in va1j5jf8007t_set_frequency() 175 buf[5] = va1j5jf8007t_lookup_cb(frequency); in va1j5jf8007t_set_frequency() 179 msg.len = sizeof(buf); in va1j5jf8007t_set_frequency() [all …]
|
/linux-4.4.14/drivers/media/pci/cx23885/ |
D | cx23885-alsa.c | 85 struct cx23885_audio_buffer *buf = chip->buf; in cx23885_alsa_dma_init() local 89 buf->vaddr = vmalloc_32(nr_pages << PAGE_SHIFT); in cx23885_alsa_dma_init() 90 if (NULL == buf->vaddr) { in cx23885_alsa_dma_init() 96 (unsigned long)buf->vaddr, in cx23885_alsa_dma_init() 99 memset(buf->vaddr, 0, nr_pages << PAGE_SHIFT); in cx23885_alsa_dma_init() 100 buf->nr_pages = nr_pages; in cx23885_alsa_dma_init() 102 buf->sglist = vzalloc(buf->nr_pages * sizeof(*buf->sglist)); in cx23885_alsa_dma_init() 103 if (NULL == buf->sglist) in cx23885_alsa_dma_init() 106 sg_init_table(buf->sglist, buf->nr_pages); in cx23885_alsa_dma_init() 107 for (i = 0; i < buf->nr_pages; i++) { in cx23885_alsa_dma_init() [all …]
|
D | netup-init.c | 28 u8 buf[3]; in i2c_av_write() local 32 .buf = buf, in i2c_av_write() 36 buf[0] = reg >> 8; in i2c_av_write() 37 buf[1] = reg & 0xff; in i2c_av_write() 38 buf[2] = val; in i2c_av_write() 49 u8 buf[6]; in i2c_av_write4() local 53 .buf = buf, in i2c_av_write4() 57 buf[0] = reg >> 8; in i2c_av_write4() 58 buf[1] = reg & 0xff; in i2c_av_write4() 59 buf[2] = val & 0xff; in i2c_av_write4() [all …]
|
D | cx23885-f300.c | 83 static u8 f300_xfer(struct dvb_frontend *fe, u8 *buf) in f300_xfer() argument 89 temp = buf[0]; in f300_xfer() 90 for (i = 0; i < buf[0]; i++) in f300_xfer() 91 temp += buf[i + 1]; in f300_xfer() 93 buf[1 + buf[0]] = temp; in f300_xfer() 108 temp = buf[0]; in f300_xfer() 111 f300_send_byte(dev, buf[i]); in f300_xfer() 149 u8 buf[16]; in f300_set_voltage() local 151 buf[0] = 0x05; in f300_set_voltage() 152 buf[1] = 0x38;/* write port */ in f300_set_voltage() [all …]
|
/linux-4.4.14/drivers/media/usb/uvc/ |
D | uvc_isight.c | 39 static int isight_decode(struct uvc_video_queue *queue, struct uvc_buffer *buf, in isight_decode() argument 52 if (buf == NULL) in isight_decode() 62 if (buf->state != UVC_BUF_STATE_ACTIVE) { in isight_decode() 69 buf->state = UVC_BUF_STATE_ACTIVE; in isight_decode() 77 if (is_header && buf->bytesused != 0) { in isight_decode() 78 buf->state = UVC_BUF_STATE_DONE; in isight_decode() 86 maxlen = buf->length - buf->bytesused; in isight_decode() 87 mem = buf->mem + buf->bytesused; in isight_decode() 90 buf->bytesused += nbytes; in isight_decode() 92 if (len > maxlen || buf->bytesused == buf->length) { in isight_decode() [all …]
|
D | uvc_queue.c | 59 struct uvc_buffer *buf = list_first_entry(&queue->irqqueue, in uvc_queue_return_buffers() local 62 list_del(&buf->queue); in uvc_queue_return_buffers() 63 buf->state = state; in uvc_queue_return_buffers() 64 vb2_buffer_done(&buf->buf.vb2_buf, vb2_state); in uvc_queue_return_buffers() 96 struct uvc_buffer *buf = container_of(vbuf, struct uvc_buffer, buf); in uvc_buffer_prepare() local 107 buf->state = UVC_BUF_STATE_QUEUED; in uvc_buffer_prepare() 108 buf->error = 0; in uvc_buffer_prepare() 109 buf->mem = vb2_plane_vaddr(vb, 0); in uvc_buffer_prepare() 110 buf->length = vb2_plane_size(vb, 0); in uvc_buffer_prepare() 112 buf->bytesused = 0; in uvc_buffer_prepare() [all …]
|
/linux-4.4.14/drivers/input/joystick/ |
D | walkera0701.c | 52 unsigned char buf[25]; member 74 crc1 += w->buf[i] & 7; in walkera0701_parse_frame() 75 crc2 += (w->buf[i] & 8) >> 3; in walkera0701_parse_frame() 77 if ((w->buf[10] & 7) != (crc1 & 7)) in walkera0701_parse_frame() 79 if (((w->buf[10] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1)) in walkera0701_parse_frame() 82 crc1 += w->buf[i] & 7; in walkera0701_parse_frame() 83 crc2 += (w->buf[i] & 8) >> 3; in walkera0701_parse_frame() 85 if ((w->buf[23] & 7) != (crc1 & 7)) in walkera0701_parse_frame() 87 if (((w->buf[23] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1)) in walkera0701_parse_frame() 89 val1 = ((w->buf[0] & 7) * 256 + w->buf[1] * 16 + w->buf[2]) >> 2; in walkera0701_parse_frame() [all …]
|
/linux-4.4.14/drivers/media/pci/ttpci/ |
D | av7110_ipack.c | 24 void (*func)(u8 *buf, int size, void *priv)) in av7110_ipack_init() argument 26 if (!(p->buf = vmalloc(size*sizeof(u8)))) { in av7110_ipack_init() 40 vfree(p->buf); in av7110_ipack_free() 57 p->buf[3] = p->cid; in send_ipack() 58 p->buf[4] = (u8)(((p->count - 6) & 0xff00) >> 8); in send_ipack() 59 p->buf[5] = (u8)((p->count - 6) & 0x00ff); in send_ipack() 61 off = 9 + p->buf[8]; in send_ipack() 62 streamid = p->buf[off]; in send_ipack() 65 ac3_off = ((p->buf[off + 2] << 8)| in send_ipack() 66 p->buf[off + 3]); in send_ipack() [all …]
|
/linux-4.4.14/drivers/net/ethernet/altera/ |
D | altera_tse_ethtool.c | 90 static void tse_gstrings(struct net_device *dev, u32 stringset, u8 *buf) in tse_gstrings() argument 92 memcpy(buf, stat_gstrings, TSE_STATS_LEN * ETH_GSTRING_LEN); in tse_gstrings() 96 u64 *buf) in tse_fill_stats() argument 101 buf[0] = csrrd32(priv->mac_dev, in tse_fill_stats() 103 buf[1] = csrrd32(priv->mac_dev, in tse_fill_stats() 105 buf[2] = csrrd32(priv->mac_dev, in tse_fill_stats() 107 buf[3] = csrrd32(priv->mac_dev, in tse_fill_stats() 116 buf[4] = ext; in tse_fill_stats() 124 buf[5] = ext; in tse_fill_stats() 126 buf[6] = csrrd32(priv->mac_dev, in tse_fill_stats() [all …]
|
/linux-4.4.14/arch/m68k/include/asm/ |
D | raw_io.h | 114 static inline void raw_insb(volatile u8 __iomem *port, u8 *buf, unsigned int len) in raw_insb() argument 119 *buf++ = in_8(port); in raw_insb() 122 static inline void raw_outsb(volatile u8 __iomem *port, const u8 *buf, in raw_outsb() argument 128 out_8(port, *buf++); in raw_outsb() 131 static inline void raw_insw(volatile u16 __iomem *port, u16 *buf, unsigned int nr) in raw_insw() argument 139 : "=a" (buf), "=d" (tmp) in raw_insw() 140 : "a" (port), "0" (buf), in raw_insw() 164 : "=a" (buf), "=d" (tmp) in raw_insw() 165 : "a" (port), "0" (buf), in raw_insw() 170 static inline void raw_outsw(volatile u16 __iomem *port, const u16 *buf, in raw_outsw() argument [all …]
|
D | io_mm.h | 97 void mcf_pci_insb(u32 addr, u8 *buf, u32 len); 98 void mcf_pci_insw(u32 addr, u16 *buf, u32 len); 99 void mcf_pci_insl(u32 addr, u32 *buf, u32 len); 104 void mcf_pci_outsb(u32 addr, const u8 *buf, u32 len); 105 void mcf_pci_outsw(u32 addr, const u16 *buf, u32 len); 106 void mcf_pci_outsl(u32 addr, const u32 *buf, u32 len); 315 #define isa_insb(port, buf, nr) raw_insb(isa_itb(port), (u8 *)(buf), (nr)) argument 316 #define isa_outsb(port, buf, nr) raw_outsb(isa_itb(port), (u8 *)(buf), (nr)) argument 318 #define isa_insw(port, buf, nr) \ argument 319 (ISA_SEX ? raw_insw(isa_itw(port), (u16 *)(buf), (nr)) : \ [all …]
|
/linux-4.4.14/kernel/power/ |
D | main.c | 52 char *buf) in pm_async_show() argument 54 return sprintf(buf, "%d\n", pm_async_enabled); in pm_async_show() 58 const char *buf, size_t n) in pm_async_store() argument 62 if (kstrtoul(buf, 10, &val)) in pm_async_store() 87 char *buf) in pm_test_show() argument 89 char *s = buf; in pm_test_show() 100 if (s != buf) in pm_test_show() 104 return (s - buf); in pm_test_show() 108 const char *buf, size_t n) in pm_test_store() argument 116 p = memchr(buf, '\n', n); in pm_test_store() [all …]
|
/linux-4.4.14/drivers/pnp/ |
D | support.c | 106 char buf[128]; in dbg_pnp_show_option() local 114 len += scnprintf(buf + len, sizeof(buf) - len, in dbg_pnp_show_option() 119 len += scnprintf(buf + len, sizeof(buf) - len, in dbg_pnp_show_option() 125 len += scnprintf(buf + len, sizeof(buf) - len, "io min %#llx " in dbg_pnp_show_option() 134 len += scnprintf(buf + len, sizeof(buf) - len, "mem min %#llx " in dbg_pnp_show_option() 143 len += scnprintf(buf + len, sizeof(buf) - len, "irq"); in dbg_pnp_show_option() 145 len += scnprintf(buf + len, sizeof(buf) - len, in dbg_pnp_show_option() 150 len += scnprintf(buf + len, in dbg_pnp_show_option() 151 sizeof(buf) - len, in dbg_pnp_show_option() 154 len += scnprintf(buf + len, sizeof(buf) - len, " flags %#x", in dbg_pnp_show_option() [all …]
|
D | interface.c | 207 char *buf) in options_show() argument 220 buffer->buffer = buf; in options_show() 240 ret = (buffer->curr - buf); in options_show() 247 struct device_attribute *attr, char *buf) in resources_show() argument 263 buffer->buffer = buf; in resources_show() 296 ret = (buffer->curr - buf); in resources_show() 301 static char *pnp_get_resource_value(char *buf, in pnp_get_resource_value() argument 316 buf = skip_spaces(buf); in pnp_get_resource_value() 318 *start = simple_strtoull(buf, &buf, 0); in pnp_get_resource_value() 320 buf = skip_spaces(buf); in pnp_get_resource_value() [all …]
|
/linux-4.4.14/tools/usb/usbip/libsrc/ |
D | names.c | 311 char buf[512], *cp; in parse() local 320 while (fgets(buf, sizeof(buf), f)) { in parse() 323 cp = strchr(buf, '\r'); in parse() 326 cp = strchr(buf, '\n'); in parse() 329 if (buf[0] == '#' || !buf[0]) in parse() 331 cp = buf; in parse() 332 if (buf[0] == 'P' && buf[1] == 'H' && buf[2] == 'Y' && in parse() 333 buf[3] == 'S' && buf[4] == 'D' && in parse() 334 buf[5] == 'E' && buf[6] == 'S' && /*isspace(buf[7])*/ in parse() 335 buf[7] == ' ') { in parse() [all …]
|
/linux-4.4.14/fs/ocfs2/dlm/ |
D | dlmdebug.c | 47 static int stringify_lockname(const char *lockname, int locklen, char *buf, 100 char buf[DLM_LOCKID_NAME_MAX]; in __dlm_print_one_lock_resource() local 105 buf, sizeof(buf)); in __dlm_print_one_lock_resource() 107 buf, res->owner, res->state); in __dlm_print_one_lock_resource() 251 static int stringify_lockname(const char *lockname, int locklen, char *buf, in stringify_lockname() argument 262 out += snprintf(buf + out, len - out, "%.*s%08x", in stringify_lockname() 266 out += snprintf(buf + out, len - out, "%.*s", in stringify_lockname() 272 char *buf, int len) in stringify_nodemap() argument 278 out += snprintf(buf + out, len - out, "%d ", i); in stringify_nodemap() 283 static int dump_mle(struct dlm_master_list_entry *mle, char *buf, int len) in dump_mle() argument [all …]
|
/linux-4.4.14/drivers/parisc/ |
D | eisa_enumerator.c | 80 static int configure_memory(const unsigned char *buf, in configure_memory() argument 92 c = get_8(buf+len); in configure_memory() 98 res->start = mem_parent->start + get_24(buf+len+2); in configure_memory() 99 res->end = res->start + get_16(buf+len+5)*1024; in configure_memory() 120 static int configure_irq(const unsigned char *buf) in configure_irq() argument 129 c = get_8(buf+len); in configure_irq() 151 static int configure_dma(const unsigned char *buf) in configure_dma() argument 160 c = get_8(buf+len); in configure_dma() 172 static int configure_port(const unsigned char *buf, struct resource *io_parent, in configure_port() argument 184 c = get_8(buf+len); in configure_port() [all …]
|
D | pdc_stable.c | 111 ssize_t (*show)(struct pdcspath_entry *entry, char *buf); 112 ssize_t (*store)(struct pdcspath_entry *entry, const char *buf, size_t count); 234 pdcspath_hwpath_read(struct pdcspath_entry *entry, char *buf) in pdcspath_hwpath_read() argument 236 char *out = buf; in pdcspath_hwpath_read() 240 if (!entry || !buf) in pdcspath_hwpath_read() 258 return out - buf; in pdcspath_hwpath_read() 277 pdcspath_hwpath_write(struct pdcspath_entry *entry, const char *buf, size_t count) in pdcspath_hwpath_write() argument 285 if (!entry || !buf || !count) in pdcspath_hwpath_write() 290 strncpy(in, buf, count); in pdcspath_hwpath_write() 322 "hardware path: %s\n", __func__, entry->name, buf); in pdcspath_hwpath_write() [all …]
|
/linux-4.4.14/drivers/bluetooth/ |
D | btmrvl_debugfs.c | 38 char buf[16]; in btmrvl_hscfgcmd_write() local 41 memset(buf, 0, sizeof(buf)); in btmrvl_hscfgcmd_write() 43 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) in btmrvl_hscfgcmd_write() 46 ret = kstrtol(buf, 10, &result); in btmrvl_hscfgcmd_write() 64 char buf[16]; in btmrvl_hscfgcmd_read() local 67 ret = snprintf(buf, sizeof(buf) - 1, "%d\n", in btmrvl_hscfgcmd_read() 70 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_hscfgcmd_read() 84 char buf[16]; in btmrvl_pscmd_write() local 87 memset(buf, 0, sizeof(buf)); in btmrvl_pscmd_write() 89 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) in btmrvl_pscmd_write() [all …]
|
/linux-4.4.14/drivers/misc/cxl/ |
D | sysfs.c | 23 char *buf) in caia_version_show() argument 27 return scnprintf(buf, PAGE_SIZE, "%i.%i\n", adapter->caia_major, in caia_version_show() 33 char *buf) in psl_revision_show() argument 37 return scnprintf(buf, PAGE_SIZE, "%i\n", adapter->psl_rev); in psl_revision_show() 42 char *buf) in base_image_show() argument 46 return scnprintf(buf, PAGE_SIZE, "%i\n", adapter->base_image); in base_image_show() 51 char *buf) in image_loaded_show() argument 56 return scnprintf(buf, PAGE_SIZE, "user\n"); in image_loaded_show() 57 return scnprintf(buf, PAGE_SIZE, "factory\n"); in image_loaded_show() 62 const char *buf, size_t count) in reset_adapter_store() argument [all …]
|
/linux-4.4.14/sound/pci/hda/ |
D | hda_eld.c | 161 #define GRAB_BITS(buf, byte, lowbit, bits) \ argument 167 (buf[byte] >> (lowbit)) & ((1 << (bits)) - 1); \ 172 const unsigned char *buf) in hdmi_update_short_audio_desc() argument 177 val = GRAB_BITS(buf, 1, 0, 7); in hdmi_update_short_audio_desc() 183 a->channels = GRAB_BITS(buf, 0, 0, 3); in hdmi_update_short_audio_desc() 189 a->format = GRAB_BITS(buf, 0, 3, 4); in hdmi_update_short_audio_desc() 196 val = GRAB_BITS(buf, 2, 0, 3); in hdmi_update_short_audio_desc() 209 a->max_bitrate = GRAB_BITS(buf, 2, 0, 8); in hdmi_update_short_audio_desc() 229 a->profile = GRAB_BITS(buf, 2, 0, 3); in hdmi_update_short_audio_desc() 233 a->format = GRAB_BITS(buf, 2, 3, 5); in hdmi_update_short_audio_desc() [all …]
|
D | hda_sysfs.c | 31 char *buf) in power_on_acct_show() argument 35 return sprintf(buf, "%u\n", jiffies_to_msecs(codec->power_on_acct)); in power_on_acct_show() 40 char *buf) in power_off_acct_show() argument 44 return sprintf(buf, "%u\n", jiffies_to_msecs(codec->power_off_acct)); in power_off_acct_show() 54 char *buf) \ 57 return sprintf(buf, "0x%x\n", codec->field); \ 63 char *buf) \ 66 return sprintf(buf, "%s\n", \ 81 char *buf) in pin_configs_show() argument 87 len += sprintf(buf + len, "0x%02x 0x%08x\n", in pin_configs_show() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/pseries/ |
D | reconfig.c | 119 static char * parse_next_property(char *buf, char *end, char **name, int *length, in parse_next_property() argument 124 *name = buf; in parse_next_property() 126 tmp = strchr(buf, ' '); in parse_next_property() 199 static int do_add_node(char *buf, size_t bufsize) in do_add_node() argument 207 end = buf + bufsize; in do_add_node() 208 path = buf; in do_add_node() 209 buf = strchr(buf, ' '); in do_add_node() 210 if (!buf) in do_add_node() 212 *buf = '\0'; in do_add_node() 213 buf++; in do_add_node() [all …]
|
/linux-4.4.14/sound/synth/emux/ |
D | emux_proc.c | 29 struct snd_info_buffer *buf) in snd_emux_proc_info_read() argument 37 snd_iprintf(buf, "Device: %s\n", emu->name); in snd_emux_proc_info_read() 38 snd_iprintf(buf, "Ports: %d\n", emu->num_ports); in snd_emux_proc_info_read() 39 snd_iprintf(buf, "Addresses:"); in snd_emux_proc_info_read() 41 snd_iprintf(buf, " %d:%d", emu->client, emu->ports[i]); in snd_emux_proc_info_read() 42 snd_iprintf(buf, "\n"); in snd_emux_proc_info_read() 43 snd_iprintf(buf, "Use Counter: %d\n", emu->used); in snd_emux_proc_info_read() 44 snd_iprintf(buf, "Max Voices: %d\n", emu->max_voices); in snd_emux_proc_info_read() 45 snd_iprintf(buf, "Allocated Voices: %d\n", emu->num_voices); in snd_emux_proc_info_read() 47 snd_iprintf(buf, "Memory Size: %d\n", emu->memhdr->size); in snd_emux_proc_info_read() [all …]
|
/linux-4.4.14/net/ieee802154/ |
D | header_ops.c | 23 ieee802154_hdr_push_addr(u8 *buf, const struct ieee802154_addr *addr, in ieee802154_hdr_push_addr() argument 32 memcpy(buf + pos, &addr->pan_id, 2); in ieee802154_hdr_push_addr() 38 memcpy(buf + pos, &addr->short_addr, 2); in ieee802154_hdr_push_addr() 43 memcpy(buf + pos, &addr->extended_addr, IEEE802154_ADDR_LEN); in ieee802154_hdr_push_addr() 55 ieee802154_hdr_push_sechdr(u8 *buf, const struct ieee802154_sechdr *hdr) in ieee802154_hdr_push_sechdr() argument 59 memcpy(buf, hdr, 1); in ieee802154_hdr_push_sechdr() 60 memcpy(buf + 1, &hdr->frame_counter, 4); in ieee802154_hdr_push_sechdr() 70 memcpy(buf + pos, &hdr->short_src, 4); in ieee802154_hdr_push_sechdr() 75 memcpy(buf + pos, &hdr->extended_src, IEEE802154_ADDR_LEN); in ieee802154_hdr_push_sechdr() 80 buf[pos++] = hdr->key_id; in ieee802154_hdr_push_sechdr() [all …]
|
/linux-4.4.14/arch/mn10300/boot/tools/ |
D | build.c | 42 uint8_t buf[1024]; variable 108 i = read(fd, buf, sizeof(buf)); in main() 112 if (buf[510] != 0x55 || buf[511] != 0xaa) in main() 114 buf[508] = minor_root; in main() 115 buf[509] = major_root; in main() 116 if (write(1, buf, 512) != 512) in main() 122 for (i = 0; (c = read(fd, buf, sizeof(buf))) > 0; i += c) in main() 123 if (write(1, buf, c) != c) in main() 135 memset(buf, 0, sizeof(buf)); in main() 138 if (c > sizeof(buf)) in main() [all …]
|
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/ |
D | trace.h | 10 static inline unsigned int ath6kl_get_wmi_id(void *buf, size_t buf_len) in ath6kl_get_wmi_id() argument 12 struct wmi_cmd_hdr *hdr = buf; in ath6kl_get_wmi_id() 39 TP_PROTO(void *buf, size_t buf_len), 41 TP_ARGS(buf, buf_len), 46 __dynamic_array(u8, buf, buf_len) 50 __entry->id = ath6kl_get_wmi_id(buf, buf_len); 52 memcpy(__get_dynamic_array(buf), buf, buf_len); 62 TP_PROTO(void *buf, size_t buf_len), 64 TP_ARGS(buf, buf_len), 69 __dynamic_array(u8, buf, buf_len) [all …]
|
D | debug.c | 151 const void *buf, size_t len) in ath6kl_dbg_dump() argument 157 print_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len); in ath6kl_dbg_dump() 162 buf, len); in ath6kl_dbg_dump() 304 char *buf; in read_file_war_stats() local 308 buf = kzalloc(buf_len, GFP_KERNEL); in read_file_war_stats() 309 if (!buf) in read_file_war_stats() 312 len += scnprintf(buf + len, buf_len - len, "\n"); in read_file_war_stats() 313 len += scnprintf(buf + len, buf_len - len, "%25s\n", in read_file_war_stats() 315 len += scnprintf(buf + len, buf_len - len, "%25s\n\n", in read_file_war_stats() 317 len += scnprintf(buf + len, buf_len - len, "%20s %10u\n", in read_file_war_stats() [all …]
|
/linux-4.4.14/drivers/net/wireless/ath/carl9170/ |
D | debug.c | 47 #define ADD(buf, off, max, fmt, args...) \ argument 48 off += snprintf(&buf[off], max - off, fmt, ##args); 54 char *(*read)(struct ar9170 *ar, char *buf, size_t bufsize, 56 ssize_t (*write)(struct ar9170 *aru, const char *buf, size_t size); 67 char *buf = NULL, *res_buf = NULL; in carl9170_debugfs_read() local 84 buf = vmalloc(dfops->read_bufsize); in carl9170_debugfs_read() 85 if (!buf) in carl9170_debugfs_read() 92 res_buf = buf; in carl9170_debugfs_read() 96 res_buf = dfops->read(ar, buf, dfops->read_bufsize, &ret); in carl9170_debugfs_read() 104 WARN_ON_ONCE(dfops->read_bufsize && (res_buf != buf)); in carl9170_debugfs_read() [all …]
|
/linux-4.4.14/fs/nilfs2/ |
D | sysfs.c | 31 #define NILFS_SHOW_TIME(time_t_val, buf) ({ \ argument 37 count = scnprintf(buf, PAGE_SIZE, \ 46 struct attribute *attr, char *buf) \ 54 return a->show ? a->show(a, nilfs, buf) : 0; \ 58 const char *buf, size_t len) \ 66 return a->store ? a->store(a, nilfs, buf, len) : 0; \ 120 struct nilfs_root *root, char *buf) in nilfs_snapshot_inodes_count_show() argument 122 return snprintf(buf, PAGE_SIZE, "%llu\n", in nilfs_snapshot_inodes_count_show() 128 struct nilfs_root *root, char *buf) in nilfs_snapshot_blocks_count_show() argument 130 return snprintf(buf, PAGE_SIZE, "%llu\n", in nilfs_snapshot_blocks_count_show() [all …]
|
/linux-4.4.14/sound/core/seq/ |
D | seq_midi_event.c | 52 static void note_decode(struct snd_seq_event *ev, unsigned char *buf); 53 static void one_param_decode(struct snd_seq_event *ev, unsigned char *buf); 54 static void pitchbend_decode(struct snd_seq_event *ev, unsigned char *buf); 55 static void two_param_decode(struct snd_seq_event *ev, unsigned char *buf); 56 static void songpos_decode(struct snd_seq_event *ev, unsigned char *buf); 65 void (*decode)(struct snd_seq_event *ev, unsigned char *buf); 96 static int extra_decode_ctrl14(struct snd_midi_event *dev, unsigned char *buf, int len, 98 static int extra_decode_xrpn(struct snd_midi_event *dev, unsigned char *buf, int count, 103 int (*decode)(struct snd_midi_event *dev, unsigned char *buf, int len, 124 dev->buf = kmalloc(bufsize, GFP_KERNEL); in snd_midi_event_new() [all …]
|
/linux-4.4.14/drivers/usb/host/ |
D | uhci-debug.c | 26 static void lprintk(char *buf) in lprintk() argument 31 while (buf) { in lprintk() 32 p = strchr(buf, '\n'); in lprintk() 35 printk(KERN_DEBUG "%s\n", buf); in lprintk() 36 buf = p; in lprintk() 37 if (buf) in lprintk() 38 buf++; in lprintk() 42 static int uhci_show_td(struct uhci_hcd *uhci, struct uhci_td *td, char *buf, in uhci_show_td() argument 45 char *out = buf; in uhci_show_td() 65 if (out - buf > len) in uhci_show_td() [all …]
|
/linux-4.4.14/drivers/media/pci/cx18/ |
D | cx18-queue.c | 31 void cx18_buf_swap(struct cx18_buffer *buf) in cx18_buf_swap() argument 35 for (i = 0; i < buf->bytesused; i += 4) in cx18_buf_swap() 36 swab32s((u32 *)(buf->buf + i)); in cx18_buf_swap() 41 struct cx18_buffer *buf; in _cx18_mdl_swap() local 43 list_for_each_entry(buf, &mdl->buf_list, list) { in _cx18_mdl_swap() 44 if (buf->bytesused == 0) in _cx18_mdl_swap() 46 cx18_buf_swap(buf); in _cx18_mdl_swap() 106 struct cx18_buffer *buf; in _cx18_mdl_update_bufs_for_cpu() local 110 list_for_each_entry(buf, &mdl->buf_list, list) { in _cx18_mdl_update_bufs_for_cpu() 111 buf->readpos = 0; in _cx18_mdl_update_bufs_for_cpu() [all …]
|
D | cx18-vbi.c | 109 static u32 compress_raw_buf(struct cx18 *cx, u8 *buf, u32 size, u32 hdr_size) in compress_raw_buf() argument 113 u8 *q = buf; in compress_raw_buf() 118 buf += hdr_size; in compress_raw_buf() 121 p = buf + i * line_size; in compress_raw_buf() 142 static u32 compress_sliced_buf(struct cx18 *cx, u8 *buf, u32 size, in compress_sliced_buf() argument 152 for (i = hdr_size, buf += hdr_size; i < size; i++, buf++) { in compress_sliced_buf() 153 if (buf[0] == 0xff && !buf[1] && !buf[2] && in compress_sliced_buf() 154 (buf[3] == sliced_vbi_eav_rp[0] || in compress_sliced_buf() 155 buf[3] == sliced_vbi_eav_rp[1])) in compress_sliced_buf() 169 u8 *p = buf + i * line_size; in compress_sliced_buf() [all …]
|
/linux-4.4.14/drivers/media/pci/bt8xx/ |
D | bttv-risc.c | 581 bttv_dma_free(struct videobuf_queue *q,struct bttv *btv, struct bttv_buffer *buf) in bttv_dma_free() argument 583 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); in bttv_dma_free() 586 videobuf_waiton(q, &buf->vb, 0, 0); in bttv_dma_free() 589 btcx_riscmem_free(btv->c.pci,&buf->bottom); in bttv_dma_free() 590 btcx_riscmem_free(btv->c.pci,&buf->top); in bttv_dma_free() 591 buf->vb.state = VIDEOBUF_NEEDS_INIT; in bttv_dma_free() 707 bttv_buffer_risc(struct bttv *btv, struct bttv_buffer *buf) in bttv_buffer_risc() argument 709 const struct bttv_tvnorm *tvnorm = bttv_tvnorms + buf->tvnorm; in bttv_buffer_risc() 710 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); in bttv_buffer_risc() 713 btv->c.nr, v4l2_field_names[buf->vb.field], in bttv_buffer_risc() [all …]
|
/linux-4.4.14/fs/ext4/ |
D | hash.c | 18 static void TEA_transform(__u32 buf[4], __u32 const in[]) in TEA_transform() 21 __u32 b0 = buf[0], b1 = buf[1]; in TEA_transform() 31 buf[0] += b0; in TEA_transform() 32 buf[1] += b1; in TEA_transform() 69 static void str2hashbuf_signed(const char *msg, int len, __u32 *buf, int num) in str2hashbuf_signed() argument 86 *buf++ = val; in str2hashbuf_signed() 92 *buf++ = val; in str2hashbuf_signed() 94 *buf++ = pad; in str2hashbuf_signed() 97 static void str2hashbuf_unsigned(const char *msg, int len, __u32 *buf, int num) in str2hashbuf_unsigned() argument 114 *buf++ = val; in str2hashbuf_unsigned() [all …]
|
/linux-4.4.14/security/selinux/ss/ |
D | policydb.c | 995 __le32 buf[2]; in mls_read_range_helper() local 999 rc = next_entry(buf, fp, sizeof(u32)); in mls_read_range_helper() 1004 items = le32_to_cpu(buf[0]); in mls_read_range_helper() 1005 if (items > ARRAY_SIZE(buf)) { in mls_read_range_helper() 1010 rc = next_entry(buf, fp, sizeof(u32) * items); in mls_read_range_helper() 1016 r->level[0].sens = le32_to_cpu(buf[0]); in mls_read_range_helper() 1018 r->level[1].sens = le32_to_cpu(buf[1]); in mls_read_range_helper() 1056 __le32 buf[3]; in context_read_and_validate() local 1059 rc = next_entry(buf, fp, sizeof buf); in context_read_and_validate() 1064 c->user = le32_to_cpu(buf[0]); in context_read_and_validate() [all …]
|
/linux-4.4.14/drivers/usb/serial/ |
D | iuu_phoenix.c | 63 u8 *buf; /* used for initialize speed */ member 80 priv->buf = kzalloc(256, GFP_KERNEL); in iuu_port_probe() 81 if (!priv->buf) { in iuu_port_probe() 88 kfree(priv->buf); in iuu_port_probe() 101 kfree(priv->buf); in iuu_port_probe() 115 kfree(priv->buf); in iuu_port_remove() 277 static int bulk_immediate(struct usb_serial_port *port, u8 *buf, u8 count) in bulk_immediate() argument 288 port->bulk_out_endpointAddress), buf, in bulk_immediate() 298 static int read_immediate(struct usb_serial_port *port, u8 *buf, u8 count) in read_immediate() argument 308 port->bulk_in_endpointAddress), buf, in read_immediate() [all …]
|
/linux-4.4.14/drivers/firmware/ |
D | dmi_scan.c | 89 static void dmi_decode_table(u8 *buf, in dmi_decode_table() argument 93 u8 *data = buf; in dmi_decode_table() 103 (data - buf + sizeof(struct dmi_header)) <= dmi_len) { in dmi_decode_table() 112 while ((data - buf < dmi_len - 1) && (data[0] || data[1])) in dmi_decode_table() 114 if (data - buf < dmi_len - 1) in dmi_decode_table() 133 if (dmi_len > data - buf) in dmi_decode_table() 134 dmi_len = data - buf; in dmi_decode_table() 142 u8 *buf; in dmi_walk_early() local 145 buf = dmi_early_remap(dmi_base, orig_dmi_len); in dmi_walk_early() 146 if (buf == NULL) in dmi_walk_early() [all …]
|
/linux-4.4.14/drivers/isdn/hisax/ |
D | q931.c | 1166 LogFrame(struct IsdnCardState *cs, u_char *buf, int size) in LogFrame() argument 1178 dp += QuickHex(dp, buf, size); in LogFrame() 1190 u_char *bend, *buf; in dlogframe() local 1206 buf = skb->data; in dlogframe() 1214 buf += 3; in dlogframe() 1231 buf += 4; in dlogframe() 1243 if (buf >= bend) { in dlogframe() 1252 if ((0xfe & buf[0]) == PROTO_DIS_N0) { /* 1TR6 */ in dlogframe() 1254 pd = *buf++; in dlogframe() 1255 cr_l = *buf++; in dlogframe() [all …]
|
/linux-4.4.14/lib/xz/ |
D | xz_dec_bcj.c | 74 uint8_t buf[16]; member 88 static size_t bcj_x86(struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_x86() argument 108 if ((buf[i] & 0xFE) != 0xE8) in bcj_x86() 117 b = buf[i + 4 - mask_to_bit_num[prev_mask]]; in bcj_x86() 129 if (bcj_x86_test_msbyte(buf[i + 4])) { in bcj_x86() 130 src = get_unaligned_le32(buf + i + 1); in bcj_x86() 146 put_unaligned_le32(dest, buf + i + 1); in bcj_x86() 160 static size_t bcj_powerpc(struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_powerpc() argument 166 instr = get_unaligned_be32(buf + i); in bcj_powerpc() 172 put_unaligned_be32(instr, buf + i); in bcj_powerpc() [all …]
|
/linux-4.4.14/fs/nfsd/ |
D | nfsctl.c | 60 static ssize_t write_filehandle(struct file *file, char *buf, size_t size); 61 static ssize_t write_unlock_ip(struct file *file, char *buf, size_t size); 62 static ssize_t write_unlock_fs(struct file *file, char *buf, size_t size); 63 static ssize_t write_threads(struct file *file, char *buf, size_t size); 64 static ssize_t write_pool_threads(struct file *file, char *buf, size_t size); 65 static ssize_t write_versions(struct file *file, char *buf, size_t size); 66 static ssize_t write_ports(struct file *file, char *buf, size_t size); 67 static ssize_t write_maxblksize(struct file *file, char *buf, size_t size); 68 static ssize_t write_maxconn(struct file *file, char *buf, size_t size); 70 static ssize_t write_leasetime(struct file *file, char *buf, size_t size); [all …]
|
/linux-4.4.14/samples/hidraw/ |
D | hid-example.c | 46 char buf[256]; in main() local 65 memset(buf, 0x0, sizeof(buf)); in main() 87 res = ioctl(fd, HIDIOCGRAWNAME(256), buf); in main() 91 printf("Raw Name: %s\n", buf); in main() 94 res = ioctl(fd, HIDIOCGRAWPHYS(256), buf); in main() 98 printf("Raw Phys: %s\n", buf); in main() 113 buf[0] = 0x9; /* Report Number */ in main() 114 buf[1] = 0xff; in main() 115 buf[2] = 0xff; in main() 116 buf[3] = 0xff; in main() [all …]
|
/linux-4.4.14/arch/x86/kernel/fpu/ |
D | signal.c | 20 static inline int check_for_xstate(struct fxregs_state __user *buf, in check_for_xstate() argument 28 if (__copy_from_user(fx_sw, &buf->sw_reserved[0], sizeof(*fx_sw))) in check_for_xstate() 54 static inline int save_fsave_header(struct task_struct *tsk, void __user *buf) in save_fsave_header() argument 59 struct _fpstate_32 __user *fp = buf; in save_fsave_header() 63 if (__copy_to_user(buf, &env, sizeof(env)) || in save_fsave_header() 68 struct fregs_state __user *fp = buf; in save_fsave_header() 77 static inline int save_xstate_epilog(void __user *buf, int ia32_frame) in save_xstate_epilog() argument 79 struct xregs_state __user *x = buf; in save_xstate_epilog() 91 err |= __put_user(FP_XSTATE_MAGIC2, (__u32 *)(buf + xstate_size)); in save_xstate_epilog() 117 static inline int copy_fpregs_to_sigframe(struct xregs_state __user *buf) in copy_fpregs_to_sigframe() argument [all …]
|
/linux-4.4.14/drivers/media/usb/stk1160/ |
D | stk1160-video.c | 77 struct stk1160_buffer *buf = NULL; in stk1160_next_buffer() local 81 WARN_ON(dev->isoc_ctl.buf); in stk1160_next_buffer() 85 buf = list_first_entry(&dev->avail_bufs, in stk1160_next_buffer() 87 list_del(&buf->list); in stk1160_next_buffer() 91 return buf; in stk1160_next_buffer() 97 struct stk1160_buffer *buf = dev->isoc_ctl.buf; in stk1160_buffer_done() local 99 buf->vb.sequence = dev->sequence++; in stk1160_buffer_done() 100 buf->vb.field = V4L2_FIELD_INTERLACED; in stk1160_buffer_done() 101 buf->vb.vb2_buf.planes[0].bytesused = buf->bytesused; in stk1160_buffer_done() 102 v4l2_get_timestamp(&buf->vb.timestamp); in stk1160_buffer_done() [all …]
|
/linux-4.4.14/drivers/hid/ |
D | hid-cp2112.c | 175 u8 buf[5]; in cp2112_gpio_direction_input() local 178 ret = hid_hw_raw_request(hdev, CP2112_GPIO_CONFIG, buf, in cp2112_gpio_direction_input() 179 sizeof(buf), HID_FEATURE_REPORT, in cp2112_gpio_direction_input() 181 if (ret != sizeof(buf)) { in cp2112_gpio_direction_input() 186 buf[1] &= ~(1 << offset); in cp2112_gpio_direction_input() 187 buf[2] = gpio_push_pull; in cp2112_gpio_direction_input() 189 ret = hid_hw_raw_request(hdev, CP2112_GPIO_CONFIG, buf, sizeof(buf), in cp2112_gpio_direction_input() 204 u8 buf[3]; in cp2112_gpio_set() local 207 buf[0] = CP2112_GPIO_SET; in cp2112_gpio_set() 208 buf[1] = value ? 0xff : 0; in cp2112_gpio_set() [all …]
|
D | hid-thingm.c | 74 static int thingm_send(struct thingm_device *tdev, u8 buf[REPORT_SIZE]) in thingm_send() 79 buf[0], buf[1], buf[2], buf[3], buf[4], in thingm_send() 80 buf[5], buf[6], buf[7], buf[8]); in thingm_send() 82 ret = hid_hw_raw_request(tdev->hdev, buf[0], buf, REPORT_SIZE, in thingm_send() 88 static int thingm_recv(struct thingm_device *tdev, u8 buf[REPORT_SIZE]) in thingm_recv() 92 ret = hid_hw_raw_request(tdev->hdev, buf[0], buf, REPORT_SIZE, in thingm_recv() 98 buf[0], buf[1], buf[2], buf[3], buf[4], in thingm_recv() 99 buf[5], buf[6], buf[7], buf[8]); in thingm_recv() 106 u8 buf[REPORT_SIZE] = { REPORT_ID, 'v', 0, 0, 0, 0, 0, 0, 0 }; in thingm_version() local 109 err = thingm_send(tdev, buf); in thingm_version() [all …]
|
/linux-4.4.14/drivers/staging/fbtft/ |
D | fbtft-core.c | 53 void *buf, size_t len, const char *fmt, ...) in fbtft_dbg_hex() argument 64 hex_dump_to_buffer(buf, len, 32, groupsize, text + text_len, in fbtft_dbg_hex() 513 static ssize_t fbtft_fb_write(struct fb_info *info, const char __user *buf, in fbtft_fb_write() argument 521 res = fb_sys_write(info, buf, count, ppos); in fbtft_fb_write() 658 void *buf = NULL; in fbtft_framebuffer_alloc() local 736 buf = devm_kzalloc(dev, 128, GFP_KERNEL); in fbtft_framebuffer_alloc() 737 if (!buf) in fbtft_framebuffer_alloc() 802 par->buf = buf; in fbtft_framebuffer_alloc() 840 par->txbuf.buf = txbuf; in fbtft_framebuffer_alloc() 965 if (par->txbuf.buf) in fbtft_register_framebuffer() [all …]
|
/linux-4.4.14/net/irda/ |
D | parameters.c | 38 static int irda_extract_integer(void *self, __u8 *buf, int len, __u8 pi, 40 static int irda_extract_string(void *self, __u8 *buf, int len, __u8 pi, 42 static int irda_extract_octseq(void *self, __u8 *buf, int len, __u8 pi, 44 static int irda_extract_no_value(void *self, __u8 *buf, int len, __u8 pi, 47 static int irda_insert_integer(void *self, __u8 *buf, int len, __u8 pi, 49 static int irda_insert_no_value(void *self, __u8 *buf, int len, __u8 pi, 52 static int irda_param_unpack(__u8 *buf, char *fmt, ...); 78 static int irda_insert_no_value(void *self, __u8 *buf, int len, __u8 pi, in irda_insert_no_value() argument 91 irda_param_pack(buf, "bb", p.pi, p.pl); in irda_insert_no_value() 105 static int irda_extract_no_value(void *self, __u8 *buf, int len, __u8 pi, in irda_extract_no_value() argument [all …]
|
/linux-4.4.14/drivers/net/bonding/ |
D | bond_sysfs.c | 53 char *buf) in bonding_show_bonds() argument 67 res += sprintf(buf + res, "++more++ "); in bonding_show_bonds() 70 res += sprintf(buf + res, "%s ", bond->dev->name); in bonding_show_bonds() 73 buf[res-1] = '\n'; /* eat the leftover space */ in bonding_show_bonds() 178 struct device_attribute *attr, char *buf) in bonding_show_slaves() argument 193 res += sprintf(buf + res, "++more++ "); in bonding_show_slaves() 196 res += sprintf(buf + res, "%s ", slave->dev->name); in bonding_show_slaves() 202 buf[res-1] = '\n'; /* eat the leftover space */ in bonding_show_slaves() 211 struct device_attribute *attr, char *buf) in bonding_show_mode() argument 218 return sprintf(buf, "%s %d\n", val->string, BOND_MODE(bond)); in bonding_show_mode() [all …]
|
D | bond_sysfs_slave.c | 31 static ssize_t state_show(struct slave *slave, char *buf) in state_show() argument 35 return sprintf(buf, "active\n"); in state_show() 37 return sprintf(buf, "backup\n"); in state_show() 39 return sprintf(buf, "UNKNOWN\n"); in state_show() 44 static ssize_t mii_status_show(struct slave *slave, char *buf) in mii_status_show() argument 46 return sprintf(buf, "%s\n", bond_slave_link_status(slave->link)); in mii_status_show() 50 static ssize_t link_failure_count_show(struct slave *slave, char *buf) in link_failure_count_show() argument 52 return sprintf(buf, "%d\n", slave->link_failure_count); in link_failure_count_show() 56 static ssize_t perm_hwaddr_show(struct slave *slave, char *buf) in perm_hwaddr_show() argument 58 return sprintf(buf, "%pM\n", slave->perm_hwaddr); in perm_hwaddr_show() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/cell/ |
D | cbe_thermal.c | 101 char *buf) in spu_show_temp() argument 110 return sprintf(buf, "%d\n", reg_to_temp(value)); in spu_show_temp() 113 static ssize_t show_throttle(struct cbe_pmd_regs __iomem *pmd_regs, char *buf, int pos) in show_throttle() argument 122 return sprintf(buf, "%d\n", reg_to_temp(value)); in show_throttle() 125 static ssize_t store_throttle(struct cbe_pmd_regs __iomem *pmd_regs, const char *buf, size_t size, … in store_throttle() argument 132 ret = sscanf(buf, "%u", &temp); in store_throttle() 151 struct device_attribute *attr, char *buf) in spu_show_throttle_end() argument 153 return show_throttle(get_pmd_regs(dev), buf, 0); in spu_show_throttle_end() 157 struct device_attribute *attr, char *buf) in spu_show_throttle_begin() argument 159 return show_throttle(get_pmd_regs(dev), buf, 8); in spu_show_throttle_begin() [all …]
|
/linux-4.4.14/fs/quota/ |
D | quota_tree.c | 45 char *buf = kmalloc(size, GFP_NOFS); in getdqbuf() local 46 if (!buf) in getdqbuf() 49 return buf; in getdqbuf() 52 static ssize_t read_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in read_blk() argument 56 memset(buf, 0, info->dqi_usable_bs); in read_blk() 57 return sb->s_op->quota_read(sb, info->dqi_type, buf, in read_blk() 61 static ssize_t write_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in write_blk() argument 66 ret = sb->s_op->quota_write(sb, info->dqi_type, buf, in write_blk() 79 char *buf = getdqbuf(info->dqi_usable_bs); in get_free_dqblk() local 80 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in get_free_dqblk() [all …]
|
/linux-4.4.14/drivers/usb/core/ |
D | sysfs.c | 22 struct device_attribute *attr, char *buf) \ 32 rc = sprintf(buf, format_string, \ 46 struct device_attribute *attr, char *buf) in bMaxPower_show() argument 56 rc = sprintf(buf, "%dmA\n", usb_get_max_power(udev, actconfig)); in bMaxPower_show() 63 struct device_attribute *attr, char *buf) in configuration_show() argument 73 rc = sprintf(buf, "%s\n", actconfig->string); in configuration_show() 84 const char *buf, size_t count) in bConfigurationValue_store() argument 89 if (sscanf(buf, "%d", &config) != 1 || config < -1 || config > 255) in bConfigurationValue_store() 102 struct device_attribute *attr, char *buf) \ 109 retval = sprintf(buf, "%s\n", udev->name); \ [all …]
|
/linux-4.4.14/drivers/staging/wilc1000/ |
D | wilc_wlan_cfg.c | 166 u8 *buf; in wilc_wlan_cfg_set_byte() local 171 buf = &frame[offset]; in wilc_wlan_cfg_set_byte() 173 buf[0] = (u8)id; in wilc_wlan_cfg_set_byte() 174 buf[1] = (u8)(id >> 8); in wilc_wlan_cfg_set_byte() 175 buf[2] = 1; in wilc_wlan_cfg_set_byte() 176 buf[3] = val8; in wilc_wlan_cfg_set_byte() 182 u8 *buf; in wilc_wlan_cfg_set_hword() local 187 buf = &frame[offset]; in wilc_wlan_cfg_set_hword() 189 buf[0] = (u8)id; in wilc_wlan_cfg_set_hword() 190 buf[1] = (u8)(id >> 8); in wilc_wlan_cfg_set_hword() [all …]
|
/linux-4.4.14/drivers/media/pci/cx25821/ |
D | cx25821-alsa.c | 93 struct cx25821_audio_buffer *buf; member 149 struct cx25821_audio_buffer *buf = chip->buf; in cx25821_alsa_dma_init() local 153 buf->vaddr = vmalloc_32(nr_pages << PAGE_SHIFT); in cx25821_alsa_dma_init() 154 if (NULL == buf->vaddr) { in cx25821_alsa_dma_init() 160 (unsigned long)buf->vaddr, in cx25821_alsa_dma_init() 163 memset(buf->vaddr, 0, nr_pages << PAGE_SHIFT); in cx25821_alsa_dma_init() 164 buf->nr_pages = nr_pages; in cx25821_alsa_dma_init() 166 buf->sglist = vzalloc(buf->nr_pages * sizeof(*buf->sglist)); in cx25821_alsa_dma_init() 167 if (NULL == buf->sglist) in cx25821_alsa_dma_init() 170 sg_init_table(buf->sglist, buf->nr_pages); in cx25821_alsa_dma_init() [all …]
|
/linux-4.4.14/fs/hostfs/ |
D | hostfs_user.c | 21 static void stat64_to_hostfs(const struct stat64 *buf, struct hostfs_stat *p) in stat64_to_hostfs() argument 23 p->ino = buf->st_ino; in stat64_to_hostfs() 24 p->mode = buf->st_mode; in stat64_to_hostfs() 25 p->nlink = buf->st_nlink; in stat64_to_hostfs() 26 p->uid = buf->st_uid; in stat64_to_hostfs() 27 p->gid = buf->st_gid; in stat64_to_hostfs() 28 p->size = buf->st_size; in stat64_to_hostfs() 29 p->atime.tv_sec = buf->st_atime; in stat64_to_hostfs() 31 p->ctime.tv_sec = buf->st_ctime; in stat64_to_hostfs() 33 p->mtime.tv_sec = buf->st_mtime; in stat64_to_hostfs() [all …]
|
/linux-4.4.14/drivers/input/mouse/ |
D | vsxxxaa.c | 117 unsigned char buf[BUFLEN]; member 131 memmove(mouse->buf, mouse->buf + num, BUFLEN - num); in vsxxxaa_drop_bytes() 146 mouse->buf[mouse->count++] = byte; in vsxxxaa_queue_byte() 182 if (!IS_HDR_BYTE(mouse->buf[0])) { in vsxxxaa_check_packet() 183 DBG("vsck: len=%d, 1st=0x%02x\n", packet_len, mouse->buf[0]); in vsxxxaa_check_packet() 189 if (IS_HDR_BYTE(mouse->buf[i])) { in vsxxxaa_check_packet() 194 packet_len, i, mouse->buf[i]); in vsxxxaa_check_packet() 205 return mouse->count >= len && MATCH_PACKET_TYPE(mouse->buf[0], type); in vsxxxaa_smells_like_packet() 211 unsigned char *buf = mouse->buf; in vsxxxaa_handle_REL_packet() local 228 dx = buf[1] & 0x7f; in vsxxxaa_handle_REL_packet() [all …]
|
/linux-4.4.14/drivers/mtd/ |
D | bcm47xxpart.c | 67 uint32_t buf; in bcm47xxpart_trx_data_part_name() local 70 if (mtd_read(master, offset, sizeof(buf), &bytes_read, in bcm47xxpart_trx_data_part_name() 71 (uint8_t *)&buf) < 0) { in bcm47xxpart_trx_data_part_name() 77 if (buf == UBI_EC_MAGIC) in bcm47xxpart_trx_data_part_name() 90 uint32_t *buf; in bcm47xxpart_parse() local 112 buf = kzalloc(BCM47XXPART_BYTES_TO_READ, GFP_KERNEL); in bcm47xxpart_parse() 113 if (!buf) { in bcm47xxpart_parse() 132 &bytes_read, (uint8_t *)buf) < 0) { in bcm47xxpart_parse() 139 if ((buf[0x4e0 / 4] == CFE_MAGIC && buf[0x4e4 / 4] == CFE_MAGIC) || in bcm47xxpart_parse() 140 (buf[0x400 / 4] == NVRAM_HEADER)) { in bcm47xxpart_parse() [all …]
|
D | bcm63xxpart.c | 48 char buf[9]; in bcm63xx_detect_cfe() local 53 (void *)buf); in bcm63xx_detect_cfe() 54 buf[retlen] = 0; in bcm63xx_detect_cfe() 59 if (strncmp("cfe-v", buf, 5) == 0) in bcm63xx_detect_cfe() 64 (void *)buf); in bcm63xx_detect_cfe() 65 buf[retlen] = 0; in bcm63xx_detect_cfe() 67 return strncmp("CFE1CFE1", buf, 8); in bcm63xx_detect_cfe() 76 struct bcm_tag *buf; in bcm63xx_parse_cfe_partitions() local 99 buf = vmalloc(sizeof(struct bcm_tag)); in bcm63xx_parse_cfe_partitions() 100 if (!buf) in bcm63xx_parse_cfe_partitions() [all …]
|
D | redboot.c | 64 struct fis_image_desc *buf; in parse_redboot_partitions() local 97 buf = vmalloc(master->erasesize); in parse_redboot_partitions() 99 if (!buf) in parse_redboot_partitions() 106 (void *)buf); in parse_redboot_partitions() 118 if (!memcmp(buf[i].name, "FIS directory", 14)) { in parse_redboot_partitions() 134 if (swab32(buf[i].size) == master->erasesize || in parse_redboot_partitions() 135 (buf[i].size > master->erasesize in parse_redboot_partitions() 136 && swab32(buf[i].size) < master->erasesize)) { in parse_redboot_partitions() 139 numslots = swab32(buf[i].size) / sizeof (struct fis_image_desc); in parse_redboot_partitions() 145 if (buf[j].name[0] == 0xff) { in parse_redboot_partitions() [all …]
|
/linux-4.4.14/security/keys/ |
D | trusted.h | 74 static inline void dump_tpm_buf(unsigned char *buf) in dump_tpm_buf() argument 79 len = LOAD32(buf, TPM_SIZE_OFFSET); in dump_tpm_buf() 80 print_hex_dump(KERN_INFO, "", DUMP_PREFIX_NONE, 16, 1, buf, len, 0); in dump_tpm_buf() 95 static inline void dump_tpm_buf(unsigned char *buf) in dump_tpm_buf() argument 100 static inline void store8(struct tpm_buf *buf, const unsigned char value) in store8() argument 102 buf->data[buf->len++] = value; in store8() 105 static inline void store16(struct tpm_buf *buf, const uint16_t value) in store16() argument 107 *(uint16_t *) & buf->data[buf->len] = htons(value); in store16() 108 buf->len += sizeof value; in store16() 111 static inline void store32(struct tpm_buf *buf, const uint32_t value) in store32() argument [all …]
|
/linux-4.4.14/drivers/char/ |
D | virtio_console.c | 106 char *buf; member 365 static void free_buf(struct port_buffer *buf, bool can_sleep) in free_buf() argument 369 for (i = 0; i < buf->sgpages; i++) { in free_buf() 370 struct page *page = sg_page(&buf->sg[i]); in free_buf() 376 if (!buf->dev) { in free_buf() 377 kfree(buf->buf); in free_buf() 385 list_add_tail(&buf->list, &pending_free_dma_bufs); in free_buf() 389 dma_free_coherent(buf->dev, buf->size, buf->buf, buf->dma); in free_buf() 392 put_device(buf->dev); in free_buf() 395 kfree(buf); in free_buf() [all …]
|
D | tlclk.c | 244 static ssize_t tlclk_read(struct file *filp, char __user *buf, size_t count, in tlclk_read() argument 254 if (copy_to_user(buf, alarm_events, sizeof(struct tlclk_alarms))) { in tlclk_read() 281 struct device_attribute *attr, char *buf) in show_current_ref() argument 290 return sprintf(buf, "0x%lX\n", ret_val); in show_current_ref() 297 struct device_attribute *attr, char *buf) in show_telclock_version() argument 306 return sprintf(buf, "0x%lX\n", ret_val); in show_telclock_version() 313 struct device_attribute *attr, char *buf) in show_alarms() argument 322 return sprintf(buf, "0x%lX\n", ret_val); in show_alarms() 328 struct device_attribute *attr, const char *buf, size_t count) in store_received_ref_clk3a() argument 334 sscanf(buf, "%lX", &tmp); in store_received_ref_clk3a() [all …]
|
/linux-4.4.14/Documentation/spi/ |
D | spidev_fdx.c | 19 unsigned char buf[32], *bp; in do_read() local 25 else if (len > sizeof(buf)) in do_read() 26 len = sizeof(buf); in do_read() 27 memset(buf, 0, sizeof buf); in do_read() 29 status = read(fd, buf, len); in do_read() 40 buf[0], buf[1]); in do_read() 42 bp = buf + 2; in do_read() 51 unsigned char buf[32], *bp; in do_msg() local 55 memset(buf, 0, sizeof buf); in do_msg() 57 if (len > sizeof buf) in do_msg() [all …]
|
/linux-4.4.14/drivers/media/platform/omap3isp/ |
D | ispstat.c | 63 struct ispstat_buffer *buf, in __isp_stat_buf_sync_magic() argument 70 dma_sync(stat->isp->dev, buf->dma_addr, 0, MAGIC_SIZE, dir); in __isp_stat_buf_sync_magic() 71 dma_sync(stat->isp->dev, buf->dma_addr + (buf_size & PAGE_MASK), in __isp_stat_buf_sync_magic() 76 struct ispstat_buffer *buf, in isp_stat_buf_sync_magic_for_device() argument 83 __isp_stat_buf_sync_magic(stat, buf, buf_size, dir, in isp_stat_buf_sync_magic_for_device() 88 struct ispstat_buffer *buf, in isp_stat_buf_sync_magic_for_cpu() argument 95 __isp_stat_buf_sync_magic(stat, buf, buf_size, dir, in isp_stat_buf_sync_magic_for_cpu() 100 struct ispstat_buffer *buf) in isp_stat_buf_check_magic() argument 103 buf->buf_size + AF_EXTRA_DATA : buf->buf_size; in isp_stat_buf_check_magic() 108 isp_stat_buf_sync_magic_for_cpu(stat, buf, buf_size, DMA_FROM_DEVICE); in isp_stat_buf_check_magic() [all …]
|
/linux-4.4.14/fs/f2fs/ |
D | hash.c | 28 static void TEA_transform(unsigned int buf[4], unsigned int const in[]) in TEA_transform() 31 __u32 b0 = buf[0], b1 = buf[1]; in TEA_transform() 41 buf[0] += b0; in TEA_transform() 42 buf[1] += b1; in TEA_transform() 46 unsigned int *buf, int num) in str2hashbuf() argument 62 *buf++ = val; in str2hashbuf() 68 *buf++ = val; in str2hashbuf() 70 *buf++ = pad; in str2hashbuf() 78 __u32 in[8], buf[4]; in f2fs_dentry_hash() local 86 buf[0] = 0x67452301; in f2fs_dentry_hash() [all …]
|
/linux-4.4.14/drivers/scsi/ |
D | scsi_common.c | 231 void scsi_build_sense_buffer(int desc, u8 *buf, u8 key, u8 asc, u8 ascq) in scsi_build_sense_buffer() argument 234 buf[0] = 0x72; /* descriptor, current */ in scsi_build_sense_buffer() 235 buf[1] = key; in scsi_build_sense_buffer() 236 buf[2] = asc; in scsi_build_sense_buffer() 237 buf[3] = ascq; in scsi_build_sense_buffer() 238 buf[7] = 0; in scsi_build_sense_buffer() 240 buf[0] = 0x70; /* fixed, current */ in scsi_build_sense_buffer() 241 buf[2] = key; in scsi_build_sense_buffer() 242 buf[7] = 0xa; in scsi_build_sense_buffer() 243 buf[12] = asc; in scsi_build_sense_buffer() [all …]
|
/linux-4.4.14/drivers/misc/mic/cosm/ |
D | cosm_sysfs.c | 67 family_show(struct device *dev, struct device_attribute *attr, char *buf) in family_show() argument 74 return cdev->hw_ops->family(cdev, buf); in family_show() 79 stepping_show(struct device *dev, struct device_attribute *attr, char *buf) in stepping_show() argument 86 return cdev->hw_ops->stepping(cdev, buf); in stepping_show() 91 state_show(struct device *dev, struct device_attribute *attr, char *buf) in state_show() argument 98 return scnprintf(buf, PAGE_SIZE, "%s\n", in state_show() 104 const char *buf, size_t count) in state_store() argument 112 if (sysfs_streq(buf, "boot")) { in state_store() 116 if (sysfs_streq(buf, "reset")) { in state_store() 121 if (sysfs_streq(buf, "shutdown")) { in state_store() [all …]
|
/linux-4.4.14/drivers/net/vmxnet3/ |
D | vmxnet3_ethtool.c | 221 vmxnet3_get_strings(struct net_device *netdev, u32 stringset, u8 *buf) in vmxnet3_get_strings() argument 228 memcpy(buf, vmxnet3_tq_dev_stats[i].desc, in vmxnet3_get_strings() 230 buf += ETH_GSTRING_LEN; in vmxnet3_get_strings() 234 memcpy(buf, vmxnet3_tq_driver_stats[i].desc, in vmxnet3_get_strings() 236 buf += ETH_GSTRING_LEN; in vmxnet3_get_strings() 242 memcpy(buf, vmxnet3_rq_dev_stats[i].desc, in vmxnet3_get_strings() 244 buf += ETH_GSTRING_LEN; in vmxnet3_get_strings() 248 memcpy(buf, vmxnet3_rq_driver_stats[i].desc, in vmxnet3_get_strings() 250 buf += ETH_GSTRING_LEN; in vmxnet3_get_strings() 255 memcpy(buf, vmxnet3_global_stats[i].desc, in vmxnet3_get_strings() [all …]
|
/linux-4.4.14/arch/x86/boot/tools/ |
D | build.c | 51 u8 buf[SETUP_SECT_MAX*512]; variable 152 pe_header = get_unaligned_le32(&buf[0x3c]); in update_pecoff_section_header_fields() 153 num_sections = get_unaligned_le16(&buf[pe_header + 6]); in update_pecoff_section_header_fields() 156 section = &buf[pe_header + 0xa8]; in update_pecoff_section_header_fields() 158 section = &buf[pe_header + 0xb8]; in update_pecoff_section_header_fields() 200 put_unaligned_le32(reloc_offset + 10, &buf[reloc_offset]); in update_pecoff_setup_and_reloc() 201 put_unaligned_le32(10, &buf[reloc_offset + 4]); in update_pecoff_setup_and_reloc() 209 pe_header = get_unaligned_le32(&buf[0x3c]); in update_pecoff_text() 215 put_unaligned_le32(file_sz - 512, &buf[pe_header + 0x1c]); in update_pecoff_text() 220 put_unaligned_le32(text_start + efi_pe_entry, &buf[pe_header + 0x28]); in update_pecoff_text() [all …]
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/ |
D | item.h | 75 static inline u16 __mlxsw_item_get16(char *buf, struct mlxsw_item *item, in __mlxsw_item_get16() argument 79 __be16 *b = (__be16 *) buf; in __mlxsw_item_get16() 90 static inline void __mlxsw_item_set16(char *buf, struct mlxsw_item *item, in __mlxsw_item_set16() argument 95 __be16 *b = (__be16 *) buf; in __mlxsw_item_set16() 108 static inline u32 __mlxsw_item_get32(char *buf, struct mlxsw_item *item, in __mlxsw_item_get32() argument 112 __be32 *b = (__be32 *) buf; in __mlxsw_item_get32() 123 static inline void __mlxsw_item_set32(char *buf, struct mlxsw_item *item, in __mlxsw_item_set32() argument 128 __be32 *b = (__be32 *) buf; in __mlxsw_item_set32() 141 static inline u64 __mlxsw_item_get64(char *buf, struct mlxsw_item *item, in __mlxsw_item_get64() argument 145 __be64 *b = (__be64 *) buf; in __mlxsw_item_get64() [all …]
|
/linux-4.4.14/drivers/net/ethernet/qualcomm/ |
D | qca_framing.c | 29 qcafrm_create_header(u8 *buf, u16 length) in qcafrm_create_header() argument 33 if (!buf) in qcafrm_create_header() 38 buf[0] = 0xAA; in qcafrm_create_header() 39 buf[1] = 0xAA; in qcafrm_create_header() 40 buf[2] = 0xAA; in qcafrm_create_header() 41 buf[3] = 0xAA; in qcafrm_create_header() 42 buf[4] = len & 0xff; in qcafrm_create_header() 43 buf[5] = (len >> 8) & 0xff; in qcafrm_create_header() 44 buf[6] = 0; in qcafrm_create_header() 45 buf[7] = 0; in qcafrm_create_header() [all …]
|
/linux-4.4.14/drivers/video/fbdev/omap2/dss/ |
D | overlay-sysfs.c | 34 static ssize_t overlay_name_show(struct omap_overlay *ovl, char *buf) in overlay_name_show() argument 36 return snprintf(buf, PAGE_SIZE, "%s\n", ovl->name); in overlay_name_show() 39 static ssize_t overlay_manager_show(struct omap_overlay *ovl, char *buf) in overlay_manager_show() argument 41 return snprintf(buf, PAGE_SIZE, "%s\n", in overlay_manager_show() 45 static ssize_t overlay_manager_store(struct omap_overlay *ovl, const char *buf, in overlay_manager_store() argument 53 if (buf[size-1] == '\n') in overlay_manager_store() 60 if (sysfs_streq(buf, mgr->name)) in overlay_manager_store() 116 static ssize_t overlay_input_size_show(struct omap_overlay *ovl, char *buf) in overlay_input_size_show() argument 122 return snprintf(buf, PAGE_SIZE, "%d,%d\n", in overlay_input_size_show() 126 static ssize_t overlay_screen_width_show(struct omap_overlay *ovl, char *buf) in overlay_screen_width_show() argument [all …]
|
D | display-sysfs.c | 31 static ssize_t display_name_show(struct omap_dss_device *dssdev, char *buf) in display_name_show() argument 33 return snprintf(buf, PAGE_SIZE, "%s\n", in display_name_show() 38 static ssize_t display_enabled_show(struct omap_dss_device *dssdev, char *buf) in display_enabled_show() argument 40 return snprintf(buf, PAGE_SIZE, "%d\n", in display_enabled_show() 45 const char *buf, size_t size) in display_enabled_store() argument 50 r = strtobool(buf, &enable); in display_enabled_store() 71 static ssize_t display_tear_show(struct omap_dss_device *dssdev, char *buf) in display_tear_show() argument 73 return snprintf(buf, PAGE_SIZE, "%d\n", in display_tear_show() 79 const char *buf, size_t size) in display_tear_store() argument 87 r = strtobool(buf, &te); in display_tear_store() [all …]
|
/linux-4.4.14/drivers/staging/rdma/ipath/ |
D | ipath_sysfs.c | 76 static ssize_t show_version(struct device_driver *dev, char *buf) in show_version() argument 79 return scnprintf(buf, PAGE_SIZE, "%s", ib_ipath_version); in show_version() 82 static ssize_t show_num_units(struct device_driver *dev, char *buf) in show_num_units() argument 84 return scnprintf(buf, PAGE_SIZE, "%d\n", in show_num_units() 90 char *buf) in show_status() argument 100 ret = scnprintf(buf, PAGE_SIZE, "0x%llx\n", in show_status() 123 char *buf) in show_status_str() argument 136 *buf = '\0'; in show_status_str() 139 if (any && strlcat(buf, " ", PAGE_SIZE) >= in show_status_str() 143 if (strlcat(buf, ipath_status_str[i], in show_status_str() [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/ |
D | nouveau_hwmon.c | 39 nouveau_hwmon_show_temp(struct device *d, struct device_attribute *a, char *buf) in nouveau_hwmon_show_temp() argument 49 return snprintf(buf, PAGE_SIZE, "%d\n", temp * 1000); in nouveau_hwmon_show_temp() 56 struct device_attribute *a, char *buf) in nouveau_hwmon_show_temp1_auto_point1_pwm() argument 58 return snprintf(buf, PAGE_SIZE, "%d\n", 100); in nouveau_hwmon_show_temp1_auto_point1_pwm() 65 struct device_attribute *a, char *buf) in nouveau_hwmon_temp1_auto_point1_temp() argument 71 return snprintf(buf, PAGE_SIZE, "%d\n", in nouveau_hwmon_temp1_auto_point1_temp() 77 const char *buf, size_t count) in nouveau_hwmon_set_temp1_auto_point1_temp() argument 84 if (kstrtol(buf, 10, &value) == -EINVAL) in nouveau_hwmon_set_temp1_auto_point1_temp() 98 struct device_attribute *a, char *buf) in nouveau_hwmon_temp1_auto_point1_temp_hyst() argument 104 return snprintf(buf, PAGE_SIZE, "%d\n", in nouveau_hwmon_temp1_auto_point1_temp_hyst() [all …]
|
D | nouveau_sysfs.c | 53 char *buf = b; in nouveau_sysfs_pstate_get() local 75 snappendf(buf, cnt, "%02x:", attr.state); in nouveau_sysfs_pstate_get() 77 snappendf(buf, cnt, "%s:", info.pwrsrc == 0 ? "DC" : in nouveau_sysfs_pstate_get() 90 snappendf(buf, cnt, " %s %d", attr.name, attr.min); in nouveau_sysfs_pstate_get() 92 snappendf(buf, cnt, "-%d", attr.max); in nouveau_sysfs_pstate_get() 93 snappendf(buf, cnt, " %s", attr.unit); in nouveau_sysfs_pstate_get() 98 snappendf(buf, cnt, " AC"); in nouveau_sysfs_pstate_get() 100 snappendf(buf, cnt, " DC"); in nouveau_sysfs_pstate_get() 102 snappendf(buf, cnt, " *"); in nouveau_sysfs_pstate_get() 105 snappendf(buf, cnt, " AC"); in nouveau_sysfs_pstate_get() [all …]
|
/linux-4.4.14/drivers/staging/vt6656/ |
D | rxtx.c | 267 struct vnt_tx_datahead_g *buf) in vnt_rxtx_datahead_g() argument 278 vnt_get_phy_field(priv, frame_len, rate, tx_context->pkt_type, &buf->a); in vnt_rxtx_datahead_g() 280 PK_TYPE_11B, &buf->b); in vnt_rxtx_datahead_g() 286 buf->duration_a = dur; in vnt_rxtx_datahead_g() 287 buf->duration_b = dur; in vnt_rxtx_datahead_g() 289 buf->duration_a = vnt_get_duration_le(priv, in vnt_rxtx_datahead_g() 291 buf->duration_b = vnt_get_duration_le(priv, in vnt_rxtx_datahead_g() 295 buf->time_stamp_off_a = vnt_time_stamp_off(priv, rate); in vnt_rxtx_datahead_g() 296 buf->time_stamp_off_b = vnt_time_stamp_off(priv, in vnt_rxtx_datahead_g() 299 tx_context->tx_hdr_size = vnt_mac_hdr_pos(tx_context, &buf->hdr); in vnt_rxtx_datahead_g() [all …]
|
/linux-4.4.14/drivers/media/pci/cx88/ |
D | cx88-vbi.c | 48 struct cx88_buffer *buf) in cx8800_start_vbi_dma() argument 54 VBI_LINE_LENGTH, buf->risc.dma); in cx8800_start_vbi_dma() 96 struct cx88_buffer *buf; in cx8800_restart_vbi_queue() local 101 buf = list_entry(q->active.next, struct cx88_buffer, list); in cx8800_restart_vbi_queue() 103 buf, buf->vb.vb2_buf.index); in cx8800_restart_vbi_queue() 104 cx8800_start_vbi_dma(dev, q, buf); in cx8800_restart_vbi_queue() 130 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_prepare() local 144 cx88_risc_buffer(dev->pci, &buf->risc, sgt->sgl, in buffer_prepare() 155 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_finish() local 156 struct cx88_riscmem *risc = &buf->risc; in buffer_finish() [all …]
|
/linux-4.4.14/drivers/net/wireless/b43legacy/ |
D | sysfs.c | 38 static int get_integer(const char *buf, size_t count) in get_integer() argument 46 memcpy(tmp, buf, count); in get_integer() 52 static int get_boolean(const char *buf, size_t count) in get_boolean() argument 55 if (buf[0] == '1') in get_boolean() 57 if (buf[0] == '0') in get_boolean() 59 if (count >= 4 && memcmp(buf, "true", 4) == 0) in get_boolean() 61 if (count >= 5 && memcmp(buf, "false", 5) == 0) in get_boolean() 63 if (count >= 3 && memcmp(buf, "yes", 3) == 0) in get_boolean() 65 if (count >= 2 && memcmp(buf, "no", 2) == 0) in get_boolean() 67 if (count >= 2 && memcmp(buf, "on", 2) == 0) in get_boolean() [all …]
|
/linux-4.4.14/drivers/staging/iio/addac/ |
D | adt7316.c | 221 char *buf) in adt7316_show_enabled() argument 226 return sprintf(buf, "%d\n", !!(chip->config1 & ADT7316_EN)); in adt7316_show_enabled() 252 const char *buf, in adt7316_store_enabled() argument 259 if (buf[0] == '1') in adt7316_store_enabled() 277 char *buf) in adt7316_show_select_ex_temp() argument 285 return sprintf(buf, "%d\n", !!(chip->config1 & ADT7516_SEL_EX_TEMP)); in adt7316_show_select_ex_temp() 290 const char *buf, in adt7316_store_select_ex_temp() argument 302 if (buf[0] == '1') in adt7316_store_select_ex_temp() 321 char *buf) in adt7316_show_mode() argument 327 return sprintf(buf, "single_channel\n"); in adt7316_show_mode() [all …]
|
/linux-4.4.14/drivers/misc/mei/ |
D | debugfs.c | 33 char *buf; in mei_dbgfs_read_meclients() local 46 buf = kzalloc(bufsz, GFP_KERNEL); in mei_dbgfs_read_meclients() 47 if (!buf) { in mei_dbgfs_read_meclients() 52 pos += scnprintf(buf + pos, bufsz - pos, HDR); in mei_dbgfs_read_meclients() 61 pos += scnprintf(buf + pos, bufsz - pos, in mei_dbgfs_read_meclients() 77 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, pos); in mei_dbgfs_read_meclients() 78 kfree(buf); in mei_dbgfs_read_meclients() 94 char *buf; in mei_dbgfs_read_active() local 102 buf = kzalloc(bufsz, GFP_KERNEL); in mei_dbgfs_read_active() 103 if (!buf) in mei_dbgfs_read_active() [all …]
|
/linux-4.4.14/arch/blackfin/kernel/ |
D | early_printk.c | 37 static struct console * __init earlyserial_init(char *buf) in earlyserial_init() argument 44 serial_port = simple_strtoul(buf, &buf, 10); in earlyserial_init() 45 buf++; in earlyserial_init() 48 baud = simple_strtoul(buf, &buf, 10); in earlyserial_init() 75 parity = buf[0]; in earlyserial_init() 76 buf++; in earlyserial_init() 86 bit = simple_strtoul(buf, &buf, 10); in earlyserial_init() 110 int __init setup_early_printk(char *buf) in setup_early_printk() argument 116 if (!buf) in setup_early_printk() 119 if (!*buf) in setup_early_printk() [all …]
|
/linux-4.4.14/drivers/scsi/qla4xxx/ |
D | ql4_attr.c | 14 struct bin_attribute *ba, char *buf, loff_t off, in qla4_8xxx_sysfs_read_fw_dump() argument 26 return memory_read_from_buffer(buf, count, &off, ha->fw_dump, in qla4_8xxx_sysfs_read_fw_dump() 32 struct bin_attribute *ba, char *buf, loff_t off, in qla4_8xxx_sysfs_write_fw_dump() argument 47 buf[1] = 0; in qla4_8xxx_sysfs_write_fw_dump() 48 ret = kstrtol(buf, 10, &reading); in qla4_8xxx_sysfs_write_fw_dump() 155 struct device_attribute *attr, char *buf) in qla4xxx_fw_version_show() argument 160 return snprintf(buf, PAGE_SIZE, "%d.%02d.%02d (%x)\n", in qla4xxx_fw_version_show() 164 return snprintf(buf, PAGE_SIZE, "%d.%02d.%02d.%02d\n", in qla4xxx_fw_version_show() 171 char *buf) in qla4xxx_serial_num_show() argument 174 return snprintf(buf, PAGE_SIZE, "%s\n", ha->serial_number); in qla4xxx_serial_num_show() [all …]
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/ |
D | alloc.c | 67 struct mlx5_buf *buf, int node) in mlx5_buf_alloc_node() argument 71 buf->size = size; in mlx5_buf_alloc_node() 72 buf->npages = 1; in mlx5_buf_alloc_node() 73 buf->page_shift = (u8)get_order(size) + PAGE_SHIFT; in mlx5_buf_alloc_node() 74 buf->direct.buf = mlx5_dma_zalloc_coherent_node(dev, size, in mlx5_buf_alloc_node() 76 if (!buf->direct.buf) in mlx5_buf_alloc_node() 79 buf->direct.map = t; in mlx5_buf_alloc_node() 81 while (t & ((1 << buf->page_shift) - 1)) { in mlx5_buf_alloc_node() 82 --buf->page_shift; in mlx5_buf_alloc_node() 83 buf->npages *= 2; in mlx5_buf_alloc_node() [all …]
|
/linux-4.4.14/drivers/media/usb/cx231xx/ |
D | cx231xx-vbi.c | 190 static void free_buffer(struct videobuf_queue *vq, struct cx231xx_buffer *buf) in free_buffer() argument 207 if (dev->vbi_mode.bulk_ctl.buf == buf) in free_buffer() 208 dev->vbi_mode.bulk_ctl.buf = NULL; in free_buffer() 211 videobuf_vmalloc_free(&buf->vb); in free_buffer() 212 buf->vb.state = VIDEOBUF_NEEDS_INIT; in free_buffer() 220 struct cx231xx_buffer *buf = in vbi_buffer_prepare() local 228 buf->vb.size = ((dev->width << 1) * height * 2); in vbi_buffer_prepare() 230 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) in vbi_buffer_prepare() 233 buf->vb.width = dev->width; in vbi_buffer_prepare() 234 buf->vb.height = height; in vbi_buffer_prepare() [all …]
|
/linux-4.4.14/fs/squashfs/ |
D | xz_wrapper.c | 39 struct xz_buf buf; member 141 stream->buf.in_pos = 0; in squashfs_xz_uncompress() 142 stream->buf.in_size = 0; in squashfs_xz_uncompress() 143 stream->buf.out_pos = 0; in squashfs_xz_uncompress() 144 stream->buf.out_size = PAGE_CACHE_SIZE; in squashfs_xz_uncompress() 145 stream->buf.out = squashfs_first_page(output); in squashfs_xz_uncompress() 148 if (stream->buf.in_pos == stream->buf.in_size && k < b) { in squashfs_xz_uncompress() 151 stream->buf.in = bh[k]->b_data + offset; in squashfs_xz_uncompress() 152 stream->buf.in_size = avail; in squashfs_xz_uncompress() 153 stream->buf.in_pos = 0; in squashfs_xz_uncompress() [all …]
|
/linux-4.4.14/drivers/w1/masters/ |
D | ds2490.c | 248 unsigned char *buf, int size) in ds_recv_status_nodump() argument 256 dev->ep[EP_STATUS]), buf, size, &count, 1000); in ds_recv_status_nodump() 264 memcpy(st, buf, sizeof(*st)); in ds_recv_status_nodump() 269 static inline void ds_print_msg(unsigned char *buf, unsigned char *str, int off) in ds_print_msg() argument 271 pr_info("%45s: %8x\n", str, buf[off]); in ds_print_msg() 274 static void ds_dump_status(struct ds_device *dev, unsigned char *buf, int count) in ds_dump_status() argument 280 pr_info("%02x ", buf[i]); in ds_dump_status() 284 ds_print_msg(buf, "enable flag", 0); in ds_dump_status() 285 ds_print_msg(buf, "1-wire speed", 1); in ds_dump_status() 286 ds_print_msg(buf, "strong pullup duration", 2); in ds_dump_status() [all …]
|
/linux-4.4.14/drivers/staging/gdm72xx/ |
D | gdm_wimax.c | 57 u16 buf[HCI_HEADER_SIZE / sizeof(u16)]; in gdm_wimax_header() local 58 struct hci_s *hci = (struct hci_s *)buf; in gdm_wimax_header() 76 memcpy(skb->data, buf, HCI_HEADER_SIZE); in gdm_wimax_header() 118 u8 *buf = msg; in gdm_wimax_event_rcv() local 119 u16 hci_cmd = (buf[0]<<8) | buf[1]; in gdm_wimax_event_rcv() 120 u16 hci_len = (buf[2]<<8) | buf[3]; in gdm_wimax_event_rcv() 196 static int gdm_wimax_event_send(struct net_device *dev, char *buf, int size) in gdm_wimax_event_send() argument 201 u16 hci_cmd = ((u8)buf[0]<<8) | (u8)buf[1]; in gdm_wimax_event_send() 202 u16 hci_len = ((u8)buf[2]<<8) | (u8)buf[3]; in gdm_wimax_event_send() 217 memcpy(e->evt_data, buf, size); in gdm_wimax_event_send() [all …]
|
/linux-4.4.14/drivers/staging/rts5208/ |
D | rtsx_scsi.c | 483 unsigned char *buf; in inquiry() local 509 buf = vmalloc(scsi_bufflen(srb)); in inquiry() 510 if (buf == NULL) { in inquiry() 538 memcpy(buf, inquiry_buf, 8); in inquiry() 539 memcpy(buf + 8, inquiry_string, sendbytes - 8); in inquiry() 542 buf[4] = 0x33; in inquiry() 545 memcpy(buf, inquiry_buf, sendbytes); in inquiry() 550 memcpy(buf + 36, formatter_inquiry_str, sendbytes - 36); in inquiry() 555 rtsx_stor_set_xfer_buf(buf, scsi_bufflen(srb), srb); in inquiry() 556 vfree(buf); in inquiry() [all …]
|
/linux-4.4.14/drivers/media/dvb-core/ |
D | dvb_filter.c | 31 void (*pes_write)(u8 *buf, int count, void *data), 44 static void ts_to_pes(ipack *p, u8 *buf) // don't need count (=188) 48 if (!buf || !p ){ 52 if (buf[1]&PAY_START) { 60 if (buf[3] & ADAPT_FIELD) { // adaptation field? 61 off = buf[4] + 1; 64 dvb_filter_instant_repack(buf+4+off, TS_SIZE-4-off, p); 400 u8 *buf = inbuf; 411 if (buf[7] & PTS_ONLY) 412 pts = buf+9; [all …]
|
/linux-4.4.14/drivers/pcmcia/ |
D | socket_sysfs.c | 37 char *buf) in pccard_show_type() argument 44 return sprintf(buf, "32-bit\n"); in pccard_show_type() 45 return sprintf(buf, "16-bit\n"); in pccard_show_type() 50 char *buf) in pccard_show_voltage() argument 57 return sprintf(buf, "%d.%dV\n", s->socket.Vcc / 10, in pccard_show_voltage() 59 return sprintf(buf, "X.XV\n"); in pccard_show_voltage() 64 char *buf) in pccard_show_vpp() argument 69 return sprintf(buf, "%d.%dV\n", s->socket.Vpp / 10, s->socket.Vpp % 10); in pccard_show_vpp() 74 char *buf) in pccard_show_vcc() argument 79 return sprintf(buf, "%d.%dV\n", s->socket.Vcc / 10, s->socket.Vcc % 10); in pccard_show_vcc() [all …]
|
/linux-4.4.14/include/net/ |
D | if_inet6.h | 211 static inline void ipv6_eth_mc_map(const struct in6_addr *addr, char *buf) in ipv6_eth_mc_map() argument 219 buf[0]= 0x33; in ipv6_eth_mc_map() 220 buf[1]= 0x33; in ipv6_eth_mc_map() 222 memcpy(buf + 2, &addr->s6_addr32[3], sizeof(__u32)); in ipv6_eth_mc_map() 225 static inline void ipv6_arcnet_mc_map(const struct in6_addr *addr, char *buf) in ipv6_arcnet_mc_map() argument 227 buf[0] = 0x00; in ipv6_arcnet_mc_map() 231 const unsigned char *broadcast, char *buf) in ipv6_ib_mc_map() argument 235 buf[0] = 0; /* Reserved */ in ipv6_ib_mc_map() 236 buf[1] = 0xff; /* Multicast QPN */ in ipv6_ib_mc_map() 237 buf[2] = 0xff; in ipv6_ib_mc_map() [all …]
|
/linux-4.4.14/arch/s390/pci/ |
D | pci_mmio.c | 39 void *buf; in SYSCALL_DEFINE3() local 49 buf = kmalloc(length, GFP_KERNEL); in SYSCALL_DEFINE3() 50 if (!buf) in SYSCALL_DEFINE3() 53 buf = local_buf; in SYSCALL_DEFINE3() 64 if (copy_from_user(buf, user_buffer, length)) in SYSCALL_DEFINE3() 67 ret = zpci_memcpy_toio(io_addr, buf, length); in SYSCALL_DEFINE3() 69 if (buf != local_buf) in SYSCALL_DEFINE3() 70 kfree(buf); in SYSCALL_DEFINE3() 79 void *buf; in SYSCALL_DEFINE3() local 89 buf = kmalloc(length, GFP_KERNEL); in SYSCALL_DEFINE3() [all …]
|
/linux-4.4.14/drivers/net/wireless/ath/ath10k/ |
D | debug.c | 203 char *buf; in ath10k_read_wmi_services() local 210 buf = kzalloc(buf_len, GFP_KERNEL); in ath10k_read_wmi_services() 211 if (!buf) in ath10k_read_wmi_services() 226 len += scnprintf(buf + len, buf_len - len, in ath10k_read_wmi_services() 233 len += scnprintf(buf + len, buf_len - len, in ath10k_read_wmi_services() 239 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_wmi_services() 243 kfree(buf); in ath10k_read_wmi_services() 419 void *buf = NULL; in ath10k_fw_stats_open() local 429 buf = vmalloc(ATH10K_FW_STATS_BUF_SIZE); in ath10k_fw_stats_open() 430 if (!buf) { in ath10k_fw_stats_open() [all …]
|