/linux-master/drivers/media/pci/cx23885/ |
H A D | netup-eeprom.c | 21 unsigned char buf[2]; local 28 .buf = &buf[0], 33 .buf = &buf[1], 39 buf[0] = addr; 40 buf[1] = 0x0; 49 return buf[1]; 62 .buf = &bufw[0],
|
H A D | cx23885-alsa.c | 74 struct cx23885_audio_buffer *buf = chip->buf; local 78 buf->vaddr = vmalloc_32(nr_pages << PAGE_SHIFT); 79 if (NULL == buf->vaddr) { 85 buf->vaddr, nr_pages << PAGE_SHIFT); 87 memset(buf->vaddr, 0, nr_pages << PAGE_SHIFT); 88 buf->nr_pages = nr_pages; 90 buf->sglist = vzalloc(array_size(sizeof(*buf->sglist), buf 114 struct cx23885_audio_buffer *buf = dev->buf; local 128 struct cx23885_audio_buffer *buf = dev->buf; local 138 cx23885_alsa_dma_free(struct cx23885_audio_buffer *buf) argument 153 struct cx23885_audio_buffer *buf = chip->buf; local 362 struct cx23885_audio_buffer *buf; local [all...] |
/linux-master/net/core/ |
H A D | hwbm.c | 13 void hwbm_buf_free(struct hwbm_pool *bm_pool, void *buf) argument 16 skb_free_frag(buf); 18 kfree(buf); 26 void *buf; local 29 buf = netdev_alloc_frag(frag_size); 31 buf = kmalloc(frag_size, gfp); 33 if (!buf) 37 if (bm_pool->construct(bm_pool, buf)) { 38 hwbm_buf_free(bm_pool, buf);
|
/linux-master/tools/testing/selftests/proc/ |
H A D | setns-sysvipc.c | 92 char buf[64]; local 93 snprintf(buf, sizeof(buf), "/proc/%u/ns/ipc", pid); 94 nsfd = open(buf, O_RDONLY); 111 char buf[4096]; local 122 rv = read(fd, buf, sizeof(buf)); 124 assert(memcmp(buf, S32, strlen(S32)) == 0); 126 assert(memcmp(buf, S64, strlen(S64)) == 0);
|
H A D | fd-001-lookup.c | 55 char buf[64]; local 60 snprintf(buf, sizeof(buf), "/proc/self/fd/%u", fd); 61 test_lookup_pass(buf); 67 snprintf(buf, sizeof(buf), "/proc/self/fd/%c%u", c, fd); 68 test_lookup_fail(buf); 75 snprintf(buf, sizeof(buf), "/proc/self/fd/%u%c", fd, c); 76 test_lookup_fail(buf); [all...] |
/linux-master/include/linux/firmware/broadcom/ |
H A D | tee_bnxt_fw.h | 12 int tee_bnxt_copy_coredump(void *buf, u32 offset, u32 size);
|
/linux-master/drivers/usb/gadget/ |
H A D | usbstring.c | 22 * @buf: at least 256 bytes, must be 16-bit aligned 36 usb_gadget_get_string (const struct usb_gadget_strings *table, int id, u8 *buf) argument 43 buf [0] = 4; 44 buf [1] = USB_DT_STRING; 45 buf [2] = (u8) table->language; 46 buf [3] = (u8) (table->language >> 8); 60 (wchar_t *) &buf[2], USB_MAX_STRING_LEN); 63 buf [0] = (len + 1) * 2; 64 buf [1] = USB_DT_STRING; 65 return buf [ [all...] |
/linux-master/samples/kfifo/ |
H A D | record-example.c | 71 char buf[100]; local 74 struct { unsigned char buf[6]; } hello = { "hello" }; member in struct:__anon238 85 memset(buf, 'a' + i, i + 1); 86 kfifo_in(&test, buf, i + 1); 96 ret = kfifo_out_peek(&test, buf, sizeof(buf)); 98 printk(KERN_INFO "%.*s\n", ret, buf); 103 ret = kfifo_out(&test, buf, sizeof(buf)); 104 buf[re 120 fifo_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument 138 fifo_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument [all...] |
/linux-master/fs/f2fs/ |
H A D | hash.c | 25 static void TEA_transform(unsigned int buf[4], unsigned int const in[]) argument 28 __u32 b0 = buf[0], b1 = buf[1]; 38 buf[0] += b0; 39 buf[1] += b1; 43 unsigned int *buf, int num) 59 *buf++ = val; 65 *buf++ = val; 67 *buf++ = pad; 72 __u32 in[8], buf[ local 42 str2hashbuf(const unsigned char *msg, size_t len, unsigned int *buf, int num) argument [all...] |
/linux-master/include/linux/soc/ti/ |
H A D | ti-msgmgr.h | 17 * @buf: Buffer pointer 28 u8 *buf; member in struct:ti_msgmgr_message
|
/linux-master/drivers/net/ethernet/altera/ |
H A D | altera_tse_ethtool.c | 78 static void tse_gstrings(struct net_device *dev, u32 stringset, u8 *buf) argument 80 memcpy(buf, stat_gstrings, TSE_STATS_LEN * ETH_GSTRING_LEN); 84 u64 *buf) 89 buf[0] = csrrd32(priv->mac_dev, 91 buf[1] = csrrd32(priv->mac_dev, 93 buf[2] = csrrd32(priv->mac_dev, 95 buf[3] = csrrd32(priv->mac_dev, 104 buf[4] = ext; 112 buf[5] = ext; 114 buf[ 83 tse_fill_stats(struct net_device *dev, struct ethtool_stats *dummy, u64 *buf) argument 203 u32 *buf = regbuf; local [all...] |
/linux-master/drivers/nvmem/ |
H A D | stm32-bsec-optee-ta.h | 32 * @buf: buffer to fill with nvem values 39 void *buf, size_t bytes); 46 * @buf: buffer with nvem values 53 unsigned int offset, void *buf, size_t bytes); 67 unsigned int offset, void *buf, 75 unsigned int offset, void *buf, 66 stm32_bsec_optee_ta_read(struct tee_context *ctx, unsigned int offset, void *buf, size_t bytes) argument 73 stm32_bsec_optee_ta_write(struct tee_context *ctx, unsigned int lower, unsigned int offset, void *buf, size_t bytes) argument
|
/linux-master/fs/smb/server/ |
H A D | asn1.c | 59 static void encode_asn_tag(char *buf, unsigned int *ofs, char tag, char seq, argument 68 buf[index++] = tag; 71 buf[index++] = len; 73 buf[index++] = 0x80 | hdr_len; 75 buf[index++] = (len >> (i * 8)) & 0xFF; 80 buf[index++] = seq; 83 buf[index++] = len; 85 buf[index++] = 0x80 | hdr_len; 87 buf[index++] = (len >> (i * 8)) & 0xFF; 96 char *buf; local 137 char *buf; local 169 char buf[50]; local 197 char buf[50]; local [all...] |
/linux-master/drivers/net/ethernet/qualcomm/ |
H A D | qca_7k_common.c | 18 qcafrm_create_header(u8 *buf, u16 length) argument 22 if (!buf) 27 buf[0] = 0xAA; 28 buf[1] = 0xAA; 29 buf[2] = 0xAA; 30 buf[3] = 0xAA; 31 buf[4] = len & 0xff; 32 buf[5] = (len >> 8) & 0xff; 33 buf[6] = 0; 34 buf[ 41 qcafrm_create_footer(u8 *buf) argument 64 qcafrm_fsm_decode(struct qcafrm_handle *handle, u8 *buf, u16 buf_len, u8 recv_byte) argument [all...] |
/linux-master/drivers/input/joystick/ |
H A D | walkera0701.c | 48 unsigned char buf[25]; member in struct:walkera_dev 70 crc1 += w->buf[i] & 7; 71 crc2 += (w->buf[i] & 8) >> 3; 73 if ((w->buf[10] & 7) != (crc1 & 7)) 75 if (((w->buf[10] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1)) 78 crc1 += w->buf[i] & 7; 79 crc2 += (w->buf[i] & 8) >> 3; 81 if ((w->buf[23] & 7) != (crc1 & 7)) 83 if (((w->buf[23] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1)) 85 val1 = ((w->buf[ [all...] |
/linux-master/net/sunrpc/ |
H A D | xdr.c | 122 * @buf: XDR buffer where string resides 126 void xdr_terminate_string(const struct xdr_buf *buf, const u32 len) argument 130 kaddr = kmap_atomic(buf->pages[0]); 131 kaddr[buf->page_base + len] = '\0'; 136 size_t xdr_buf_pagecount(const struct xdr_buf *buf) argument 138 if (!buf->page_len) 140 return (buf->page_base + buf->page_len + PAGE_SIZE - 1) >> PAGE_SHIFT; 144 xdr_alloc_bvec(struct xdr_buf *buf, gfp_t gfp) argument 146 size_t i, n = xdr_buf_pagecount(buf); 161 xdr_free_bvec(struct xdr_buf *buf) argument 232 char *buf = (char *)head->iov_base; local 490 xdr_buf_pages_zero(const struct xdr_buf *buf, unsigned int pgbase, unsigned int len) argument 530 xdr_buf_pages_fill_sparse(const struct xdr_buf *buf, unsigned int buflen, gfp_t gfp) argument 558 xdr_buf_try_expand(struct xdr_buf *buf, unsigned int len) argument 584 xdr_buf_tail_copy_right(const struct xdr_buf *buf, unsigned int base, unsigned int len, unsigned int shift) argument 598 xdr_buf_pages_copy_right(const struct xdr_buf *buf, unsigned int base, unsigned int len, unsigned int shift) argument 631 xdr_buf_head_copy_right(const struct xdr_buf *buf, unsigned int base, unsigned int len, unsigned int shift) argument 678 xdr_buf_tail_shift_right(const struct xdr_buf *buf, unsigned int base, unsigned int len, unsigned int shift) argument 689 xdr_buf_pages_shift_right(const struct xdr_buf *buf, unsigned int base, unsigned int len, unsigned int shift) argument 705 xdr_buf_head_shift_right(const struct xdr_buf *buf, unsigned int base, unsigned int len, unsigned int shift) argument 724 xdr_buf_tail_copy_left(const struct xdr_buf *buf, unsigned int base, unsigned int len, unsigned int shift) argument 768 xdr_buf_pages_copy_left(const struct xdr_buf *buf, unsigned int base, unsigned int len, unsigned int shift) argument 801 xdr_buf_tail_shift_left(const struct xdr_buf *buf, unsigned int base, unsigned int len, unsigned int shift) argument 810 xdr_buf_pages_shift_left(const struct xdr_buf *buf, unsigned int base, unsigned int len, unsigned int shift) argument 827 xdr_buf_head_shift_left(const struct xdr_buf *buf, unsigned int base, unsigned int len, unsigned int shift) argument 864 xdr_shrink_bufhead(struct xdr_buf *buf, unsigned int len) argument 893 xdr_shrink_pagelen(struct xdr_buf *buf, unsigned int len) argument 964 xdr_init_encode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p, struct rpc_rqst *rqst) argument 999 xdr_init_encode_pages(struct xdr_stream *xdr, struct xdr_buf *buf, struct page **pages, struct rpc_rqst *rqst) argument 1187 struct xdr_buf *buf = xdr->buf; local 1264 struct xdr_buf *buf = xdr->buf; local 1293 struct xdr_buf *buf = xdr->buf; local 1335 struct xdr_buf *buf = xdr->buf; local 1427 xdr_init_decode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p, struct rpc_rqst *rqst) argument 1452 xdr_init_decode_pages(struct xdr_stream *xdr, struct xdr_buf *buf, struct page **pages, unsigned int len) argument 1543 struct xdr_buf *buf = xdr->buf; local 1558 struct xdr_buf *buf = xdr->buf; local 1622 struct xdr_buf *buf = xdr->buf; local 1663 xdr_buf_from_iov(const struct kvec *iov, struct xdr_buf *buf) argument 1686 xdr_buf_subsegment(const struct xdr_buf *buf, struct xdr_buf *subbuf, unsigned int base, unsigned int len) argument 1794 struct xdr_buf buf; local 1821 struct xdr_buf buf; local 1845 xdr_buf_trim(struct xdr_buf *buf, unsigned int len) argument 1894 read_bytes_from_xdr_buf(const struct xdr_buf *buf, unsigned int base, void *obj, unsigned int len) argument 1926 write_bytes_to_xdr_buf(const struct xdr_buf *buf, unsigned int base, void *obj, unsigned int len) argument 1940 xdr_decode_word(const struct xdr_buf *buf, unsigned int base, u32 *obj) argument 1953 xdr_encode_word(const struct xdr_buf *buf, unsigned int base, u32 obj) argument 1962 xdr_xcode_array2(const struct xdr_buf *buf, unsigned int base, struct xdr_array2_desc *desc, int encode) argument 2155 xdr_decode_array2(const struct xdr_buf *buf, unsigned int base, struct xdr_array2_desc *desc) argument 2165 xdr_encode_array2(const struct xdr_buf *buf, unsigned int base, struct xdr_array2_desc *desc) argument 2176 xdr_process_buf(const struct xdr_buf *buf, unsigned int offset, unsigned int len, int (*actor)(struct scatterlist *, void *), void *data) argument [all...] |
H A D | addr.c | 29 char *buf, const int buflen) 40 return snprintf(buf, buflen, "::"); 48 return snprintf(buf, buflen, "::1"); 57 return snprintf(buf, buflen, "::ffff:%pI4", 63 return snprintf(buf, buflen, "%pI6c", addr); 67 char *buf, const size_t buflen) 74 len = rpc_ntop6_noscopeid(sap, buf, buflen); 92 strcat(buf, scopebuf); 99 char *buf, const int buflen) 105 char *buf, cons 28 rpc_ntop6_noscopeid(const struct sockaddr *sap, char *buf, const int buflen) argument 66 rpc_ntop6(const struct sockaddr *sap, char *buf, const size_t buflen) argument 98 rpc_ntop6_noscopeid(const struct sockaddr *sap, char *buf, const int buflen) argument 104 rpc_ntop6(const struct sockaddr *sap, char *buf, const size_t buflen) argument 112 rpc_ntop4(const struct sockaddr *sap, char *buf, const size_t buflen) argument 129 rpc_ntop(const struct sockaddr *sap, char *buf, const size_t buflen) argument 142 rpc_pton4(const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) argument 161 rpc_parse_scope_id(struct net *net, const char *buf, const size_t buflen, const char *delim, struct sockaddr_in6 *sin6) argument 199 rpc_pton6(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) argument 222 rpc_pton6(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) argument 244 rpc_pton(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) argument 314 char *c, buf[RPCBIND_MAXUADDRLEN + sizeof('\\0')]; local [all...] |
/linux-master/drivers/net/bonding/ |
H A D | bond_sysfs_slave.c | 21 static ssize_t state_show(struct slave *slave, char *buf) argument 25 return sysfs_emit(buf, "active\n"); 27 return sysfs_emit(buf, "backup\n"); 29 return sysfs_emit(buf, "UNKNOWN\n"); 34 static ssize_t mii_status_show(struct slave *slave, char *buf) argument 36 return sysfs_emit(buf, "%s\n", bond_slave_link_status(slave->link)); 40 static ssize_t link_failure_count_show(struct slave *slave, char *buf) argument 42 return sysfs_emit(buf, "%d\n", slave->link_failure_count); 46 static ssize_t perm_hwaddr_show(struct slave *slave, char *buf) argument 48 return sysfs_emit(buf, " 54 queue_id_show(struct slave *slave, char *buf) argument 60 ad_aggregator_id_show(struct slave *slave, char *buf) argument 75 ad_actor_oper_port_state_show(struct slave *slave, char *buf) argument 90 ad_partner_oper_port_state_show(struct slave *slave, char *buf) argument 119 slave_show(struct kobject *kobj, struct attribute *attr, char *buf) argument [all...] |
/linux-master/drivers/char/tpm/ |
H A D | tpm2-cmd.c | 166 struct tpm_buf buf; local 186 rc = tpm_buf_init(&buf, TPM2_ST_NO_SESSIONS, TPM2_CC_PCR_READ); 192 tpm_buf_append_u32(&buf, 1); 193 tpm_buf_append_u16(&buf, digest->alg_id); 194 tpm_buf_append_u8(&buf, TPM2_PCR_SELECT_MIN); 195 tpm_buf_append(&buf, (const unsigned char *)pcr_select, 198 rc = tpm_transmit_cmd(chip, &buf, 0, "attempting to read a pcr value"); 202 out = (struct tpm2_pcr_read_out *)&buf.data[TPM_HEADER_SIZE]; 215 tpm_buf_destroy(&buf); 231 struct tpm_buf buf; local 285 struct tpm_buf buf; local 364 struct tpm_buf buf; local 404 struct tpm_buf buf; local 445 struct tpm_buf buf; local 471 struct tpm_buf buf; local 509 struct tpm_buf buf; local 565 struct tpm_buf buf; local 643 struct tpm_buf buf; local 723 struct tpm_buf buf; local [all...] |
/linux-master/drivers/usb/gadget/function/ |
H A D | uvc_queue.c | 75 struct uvc_buffer *buf = container_of(vbuf, struct uvc_buffer, buf); local 86 buf->state = UVC_BUF_STATE_QUEUED; 88 buf->sgt = vb2_dma_sg_plane_desc(vb, 0); 89 buf->sg = buf->sgt->sgl; 91 buf->mem = vb2_plane_vaddr(vb, 0); 93 buf->length = vb2_plane_size(vb, 0); 95 buf->bytesused = 0; 97 buf 106 struct uvc_buffer *buf = container_of(vbuf, struct uvc_buffer, buf); local 189 uvcg_query_buffer(struct uvc_video_queue *queue, struct v4l2_buffer *buf) argument 194 uvcg_queue_buffer(struct uvc_video_queue *queue, struct v4l2_buffer *buf) argument 203 uvcg_dequeue_buffer(struct uvc_video_queue *queue, struct v4l2_buffer *buf, int nonblocking) argument 253 struct uvc_buffer *buf; local 330 uvcg_complete_buffer(struct uvc_video_queue *queue, struct uvc_buffer *buf) argument 351 struct uvc_buffer *buf = NULL; local [all...] |
/linux-master/drivers/gpu/drm/udl/ |
H A D | udl_modeset.c | 35 static char *udl_set_register(char *buf, u8 reg, u8 val) argument 37 *buf++ = UDL_MSG_BULK; 38 *buf++ = UDL_CMD_WRITEREG; 39 *buf++ = reg; 40 *buf++ = val; 42 return buf; 45 static char *udl_vidreg_lock(char *buf) argument 47 return udl_set_register(buf, UDL_REG_VIDREG, UDL_VIDREG_LOCK); 50 static char *udl_vidreg_unlock(char *buf) argument 52 return udl_set_register(buf, UDL_REG_VIDRE 55 udl_set_blank_mode(char *buf, u8 mode) argument 60 udl_set_color_depth(char *buf, u8 selection) argument 65 udl_set_base16bpp(char *buf, u32 base) argument 83 udl_set_base8bpp(char *buf, u32 base) argument 148 udl_set_display_mode(char *buf, struct drm_display_mode *mode) argument 335 char *buf; local 367 char *buf; local 431 udl_get_edid_block(void *data, u8 *buf, unsigned int block, size_t len) argument [all...] |
/linux-master/drivers/target/ |
H A D | target_core_fabric_lib.c | 38 unsigned char *buf) 43 ret = hex2bin(&buf[4], &nacl->initiatorname[4], 8); 55 unsigned char *buf) 71 ret = hex2bin(&buf[off++], &ptr[i], 1); 87 unsigned char *buf) 91 ret = hex2bin(&buf[8], nacl->initiatorname, 8); 103 unsigned char *buf) 118 memset(buf + 8, 0, leading_zero_bytes); 119 rc = hex2bin(buf + 8 + leading_zero_bytes, p, count); 132 unsigned char *buf) 35 sas_get_pr_transport_id( struct se_node_acl *nacl, int *format_code, unsigned char *buf) argument 52 fc_get_pr_transport_id( struct se_node_acl *se_nacl, int *format_code, unsigned char *buf) argument 84 sbp_get_pr_transport_id( struct se_node_acl *nacl, int *format_code, unsigned char *buf) argument 100 srp_get_pr_transport_id( struct se_node_acl *nacl, int *format_code, unsigned char *buf) argument 128 iscsi_get_pr_transport_id( struct se_node_acl *se_nacl, struct t10_pr_registration *pr_reg, int *format_code, unsigned char *buf) argument 260 iscsi_parse_pr_out_transport_id( struct se_portal_group *se_tpg, char *buf, u32 *out_tid_len, char **port_nexus_ptr) argument 368 target_get_pr_transport_id(struct se_node_acl *nacl, struct t10_pr_registration *pr_reg, int *format_code, unsigned char *buf) argument 390 target_parse_pr_out_transport_id(struct se_portal_group *tpg, char *buf, u32 *out_tid_len, char **port_nexus_ptr) argument [all...] |
/linux-master/drivers/media/dvb-frontends/ |
H A D | stb6000.c | 41 u8 buf[] = { 10, 0 }; local 45 .buf = buf, 72 u8 buf[12]; local 76 .buf = buf, 89 buf[0] = 0x01; 90 buf[1] = 0xac; 92 buf[1] = 0xaa; 94 buf[ [all...] |
/linux-master/sound/firewire/oxfw/ |
H A D | oxfw-spkr.c | 31 u8 *buf; local 35 buf = kmalloc(11, GFP_KERNEL); 36 if (!buf) 40 buf[0] = 0x01; /* AV/C, STATUS */ 43 buf[0] = 0x00; /* AV/C, CONTROL */ 46 buf[1] = 0x08; /* audio unit 0 */ 47 buf[2] = 0xb8; /* FUNCTION BLOCK */ 48 buf[3] = 0x81; /* function block type: feature */ 49 buf[4] = fb_id; /* function block ID */ 50 buf[ 89 u8 *buf; local [all...] |
/linux-master/drivers/input/touchscreen/ |
H A D | ektf2127.c | 51 static void ektf2127_parse_coordinates(const u8 *buf, unsigned int touch_count, argument 60 touches[i].x = (buf[index] & 0x0f); 62 touches[i].x |= buf[index + 2]; 64 touches[i].y = (buf[index] & 0xf0); 66 touches[i].y |= buf[index + 1]; 70 static void ektf2127_report_event(struct ektf2127_ts *ts, const u8 *buf) argument 76 touch_count = buf[1] & 0x07; 84 ektf2127_parse_coordinates(buf, touch_count, touches); 100 const u8 *buf, bool active) 106 int x = (buf[ 99 ektf2127_report2_contact(struct ektf2127_ts *ts, int slot, const u8 *buf, bool active) argument 113 ektf2127_report2_event(struct ektf2127_ts *ts, const u8 *buf) argument 126 char buf[EKTF2127_TOUCH_REPORT_SIZE]; local 212 u8 buf[4]; local 252 u8 buf[4]; local [all...] |