/kernel/linux/linux-5.10/drivers/video/fbdev/ |
H A D | pxa3xx-gcu.c | 376 pxa3xx_gcu_write(struct file *file, const char *buff, in pxa3xx_gcu_write() argument 412 ret = copy_from_user(buffer->ptr, buff, words * 4); in pxa3xx_gcu_write()
|
/kernel/linux/linux-5.10/fs/ecryptfs/ |
H A D | main.c | 764 struct kobj_attribute *attr, char *buff) in version_show() 766 return snprintf(buff, PAGE_SIZE, "%d\n", ECRYPTFS_VERSIONING_MASK); in version_show() 763 version_show(struct kobject *kobj, struct kobj_attribute *attr, char *buff) version_show() argument
|
/kernel/linux/linux-5.10/net/batman-adv/ |
H A D | types.h | 2281 ssize_t (*store_sel_class)(struct batadv_priv *bat_priv, char *buff, 2285 ssize_t (*show_sel_class)(struct batadv_priv *bat_priv, char *buff);
|
/kernel/linux/linux-6.6/fs/ecryptfs/ |
H A D | main.c | 770 struct kobj_attribute *attr, char *buff) in version_show() 772 return snprintf(buff, PAGE_SIZE, "%d\n", ECRYPTFS_VERSIONING_MASK); in version_show() 769 version_show(struct kobject *kobj, struct kobj_attribute *attr, char *buff) version_show() argument
|
/kernel/linux/linux-6.6/drivers/video/fbdev/ |
H A D | pxa3xx-gcu.c | 376 pxa3xx_gcu_write(struct file *file, const char *buff, in pxa3xx_gcu_write() argument 412 ret = copy_from_user(buffer->ptr, buff, words * 4); in pxa3xx_gcu_write()
|
/kernel/linux/linux-6.6/drivers/infiniband/sw/siw/ |
H A D | siw.h | 676 static inline __wsum siw_csum_update(const void *buff, int len, __wsum sum) in siw_csum_update() argument 678 return (__force __wsum)crc32c((__force __u32)sum, buff, len); in siw_csum_update()
|
/third_party/ltp/tools/sparse/sparse-src/ |
H A D | tokenize.c | 101 static char buff[4][256]; in show_ident() local 107 buffer = buff[3 & ++n]; in show_ident()
|
/third_party/skia/third_party/externals/freetype/src/gxvalid/ |
H A D | gxvkern.c | 239 FT_UShort buff[5]; in gxv_kern_subtable_fmt1_subtable_setup() local 254 gxv_set_length_by_ushort_offset( o, l, buff, 4, table_size, gxvalid ); in gxv_kern_subtable_fmt1_subtable_setup()
|
/third_party/skia/third_party/externals/libwebp/swig/ |
H A D | libwebp_python_wrap.c | 673 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { in SWIG_PackVoidPtr() argument 674 char *r = buff; in SWIG_PackVoidPtr() 678 if (strlen(name) + 1 > (bsz - (r - buff))) return 0; in SWIG_PackVoidPtr() 680 return buff; in SWIG_PackVoidPtr() 697 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { in SWIG_PackDataName() argument 698 char *r = buff; in SWIG_PackDataName() 708 return buff; in SWIG_PackDataName() 5471 char *buff = ndoc; in SWIG_Python_FixMethods() local 5472 memcpy(buff, methods[i].ml_doc, ldoc); in SWIG_Python_FixMethods() 5473 buff in SWIG_Python_FixMethods() [all...] |
/third_party/backends/backend/ |
H A D | canon_dr.c | 5536 /* big scanners and small ones in non-buff mode: OP to detect paper */ in sane_start() 6741 copy_line(struct scanner *s, unsigned char * buff, int side) in copy_line() argument 6759 memcpy(s->buffers[side]+s->i.bytes_sent[side], buff, sbwidth); in copy_line() 6780 line[i*3] = line[i*3+1] = line[i*3+2] = buff[i*3]; in copy_line() 6784 line[i*3] = line[i*3+1] = line[i*3+2] = buff[i*3+1]; in copy_line() 6788 line[i*3] = line[i*3+1] = line[i*3+2] = buff[i*3+2]; in copy_line() 6792 line[i*3] = (buff[i*3+1] + buff[i*3+2])/2; in copy_line() 6793 line[i*3+1] = buff[i*3+1]; in copy_line() 6794 line[i*3+2] = buff[ in copy_line() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/ |
H A D | pcnet32.c | 967 struct sk_buff *skb; /* sk buff */ in pcnet32_loopback_test() 1431 u16 *buff = ptr; in pcnet32_get_regs() local 1445 *buff++ = inw(ioaddr + i); in pcnet32_get_regs() 1449 *buff++ = a->read_csr(ioaddr, i); in pcnet32_get_regs() 1451 *buff++ = a->read_csr(ioaddr, 112); in pcnet32_get_regs() 1452 *buff++ = a->read_csr(ioaddr, 114); in pcnet32_get_regs() 1456 *buff++ = a->read_bcr(ioaddr, i); in pcnet32_get_regs() 1458 *buff++ = 0; /* skip bcr30 so as not to hang 79C976 */ in pcnet32_get_regs() 1461 *buff++ = a->read_bcr(ioaddr, i); in pcnet32_get_regs() 1471 *buff in pcnet32_get_regs() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/amd/ |
H A D | pcnet32.c | 971 struct sk_buff *skb; /* sk buff */ in pcnet32_loopback_test() 1435 u16 *buff = ptr; in pcnet32_get_regs() local 1449 *buff++ = inw(ioaddr + i); in pcnet32_get_regs() 1453 *buff++ = a->read_csr(ioaddr, i); in pcnet32_get_regs() 1455 *buff++ = a->read_csr(ioaddr, 112); in pcnet32_get_regs() 1456 *buff++ = a->read_csr(ioaddr, 114); in pcnet32_get_regs() 1460 *buff++ = a->read_bcr(ioaddr, i); in pcnet32_get_regs() 1462 *buff++ = 0; /* skip bcr30 so as not to hang 79C976 */ in pcnet32_get_regs() 1465 *buff++ = a->read_bcr(ioaddr, i); in pcnet32_get_regs() 1475 *buff in pcnet32_get_regs() [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/gles31/ |
H A D | es31cProgramInterfaceQueryTests.cpp | 3174 GLchar buff[3] = { 'a', 'b', 'c' }; in Run() local 3176 glGetProgramResourceName(program, GL_UNIFORM, index, 0, NULL, buff); in Run() 3177 if (buff[0] != 'a' || buff[1] != 'b' || buff[2] != 'c') in Run() 3180 << tcu::TestLog::Message << "ERROR: buff has changed" << tcu::TestLog::EndMessage; in Run() 3183 glGetProgramResourceName(program, GL_UNIFORM, index, 2, &length, buff); in Run() 3184 if (buff[0] != 's' || buff[1] != '\0' || buff[ in Run() [all...] |
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/ |
H A D | oal_sdio_host.c | 511 printk(KERN_DEBUG"=========extend buff:%d=====\n", in oal_sdio_extend_buf_get() 540 printk(KERN_DEBUG "=========extend buff:%d=====\n", in oal_sdio_extend_buf_get() 584 oam_info_log1(0, OAM_SF_ANY, "{drop the rx buff length:%u}", ul_extend_len); in oal_sdio_transfer_rx_reserved_buff() 1429 hi_u8 *pst_scatt_buff = (hi_u8 *)hi_sdio->scatt_buff.buff; in oal_sdio_tx_scatt_list_merge() 1767 /* must realloc the sg list mem, alloc more sg for the align buff */ in oal_sdio_transfer_netbuf_list() 1772 /* must realloc the sg list mem, alloc more sgs for the align buff */ in oal_sdio_transfer_netbuf_list() 2158 /* 1 for algin buff, 1 for scatt info buff */ in oal_sdio_init_module() 2181 hi_sdio->scatt_buff.buff = memalign(CACHE_ALIGNED_SIZE, tx_scatt_buff_len); in oal_sdio_init_module() 2183 hi_sdio->scatt_buff.buff in oal_sdio_init_module() [all...] |
/kernel/liteos_a/kernel/extended/liteipc/ |
H A D | hm_liteipc.c | 740 if ((obj->content.ptr.buff == NULL) || (obj->content.ptr.buffSz == 0)) { in HandlePtr() 744 if (LOS_IsUserAddress((vaddr_t)(UINTPTR)(obj->content.ptr.buff)) == FALSE) { in HandlePtr() 753 ret = copy_from_user(buf, obj->content.ptr.buff, obj->content.ptr.buffSz); in HandlePtr() 758 obj->content.ptr.buff = (VOID *)GetIpcUserAddr(pcb, (INTPTR)buf); in HandlePtr() 761 buf = (VOID *)GetIpcKernelAddr(pcb, (INTPTR)obj->content.ptr.buff); in HandlePtr()
|
/third_party/ltp/testcases/kernel/fs/scsi/ltpscsi/ |
H A D | sg_err.c | 1361 void sg_get_command_name(unsigned char opcode, int buff_len, char *buff) in sg_get_command_name() argument 1365 if ((NULL == buff) || (buff_len < 1)) in sg_get_command_name() 1370 strncpy(buff, reserved, buff_len); in sg_get_command_name() 1373 strncpy(buff, vendor, buff_len); in sg_get_command_name() 1376 strncpy(buff, table[opcode & 0x1f], buff_len); in sg_get_command_name()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/ |
H A D | EmitMetal.cpp | 2473 std::vector<char> buff; 2474 buff.resize(fileSize + 1); 2475 fread(buff.data(), fileSize, 1, file); 2476 buff.back() = '\0'; 2480 out << buff.data();
|
/kernel/linux/linux-5.10/drivers/net/wireless/atmel/ |
H A D | atmel.c | 738 u16 len, u16 buff, u8 type) in tx_update_descriptor() 740 atmel_wmem16(priv, atmel_tx(priv, TX_DESC_POS_OFFSET, priv->tx_desc_tail), buff); in tx_update_descriptor() 804 u16 buff, frame_ctl, len = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN; in start_tx() local 830 if (!(buff = find_tx_buff(priv, len + 18))) { in start_tx() 859 atmel_copy_to_card(dev, buff, (unsigned char *)&header, DATA_FRAME_WS_HEADER_SIZE); in start_tx() 861 atmel_copy_to_card(dev, buff + DATA_FRAME_WS_HEADER_SIZE, skb->data + 12, len - 12); in start_tx() 865 tx_update_descriptor(priv, *(skb->data) & 0x01, len + 18, buff, TX_PACKET_TYPE_DATA); in start_tx() 879 u16 buff; in atmel_transmit_management_frame() local 882 if (!(buff = find_tx_buff(priv, len))) in atmel_transmit_management_frame() 885 atmel_copy_to_card(priv->dev, buff, (u in atmel_transmit_management_frame() 737 tx_update_descriptor(struct atmel_private *priv, int is_bcast, u16 len, u16 buff, u8 type) tx_update_descriptor() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/atmel/ |
H A D | atmel.c | 737 u16 len, u16 buff, u8 type) in tx_update_descriptor() 739 atmel_wmem16(priv, atmel_tx(priv, TX_DESC_POS_OFFSET, priv->tx_desc_tail), buff); in tx_update_descriptor() 803 u16 buff, frame_ctl, len = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN; in start_tx() local 829 if (!(buff = find_tx_buff(priv, len + 18))) { in start_tx() 858 atmel_copy_to_card(dev, buff, (unsigned char *)&header, DATA_FRAME_WS_HEADER_SIZE); in start_tx() 860 atmel_copy_to_card(dev, buff + DATA_FRAME_WS_HEADER_SIZE, skb->data + 12, len - 12); in start_tx() 864 tx_update_descriptor(priv, *(skb->data) & 0x01, len + 18, buff, TX_PACKET_TYPE_DATA); in start_tx() 878 u16 buff; in atmel_transmit_management_frame() local 881 if (!(buff = find_tx_buff(priv, len))) in atmel_transmit_management_frame() 884 atmel_copy_to_card(priv->dev, buff, (u in atmel_transmit_management_frame() 736 tx_update_descriptor(struct atmel_private *priv, int is_bcast, u16 len, u16 buff, u8 type) tx_update_descriptor() argument [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | hpsa.c | 274 void *buff, size_t size, u16 page_code, unsigned char *scsi3addr, 6377 char *buff = NULL; in hpsa_passthru_ioctl() local 6388 buff = kmalloc(iocommand->buf_size, GFP_KERNEL); in hpsa_passthru_ioctl() 6389 if (buff == NULL) in hpsa_passthru_ioctl() 6393 if (copy_from_user(buff, iocommand->buf, in hpsa_passthru_ioctl() 6399 memset(buff, 0, iocommand->buf_size); in hpsa_passthru_ioctl() 6424 temp64 = dma_map_single(&h->pdev->dev, buff, in hpsa_passthru_ioctl() 6452 if (copy_to_user(iocommand->buf, buff, iocommand->buf_size)) { in hpsa_passthru_ioctl() 6460 kfree(buff); in hpsa_passthru_ioctl() 6468 unsigned char **buff in hpsa_big_passthru_ioctl() local 6668 fill_cmd(struct CommandList *c, u8 cmd, struct ctlr_info *h, void *buff, size_t size, u16 page_code, unsigned char *scsi3addr, int cmd_type) fill_cmd() argument [all...] |
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | hpsa.c | 273 void *buff, size_t size, u16 page_code, unsigned char *scsi3addr, 6405 char *buff = NULL; in hpsa_passthru_ioctl() local 6416 buff = kmalloc(iocommand->buf_size, GFP_KERNEL); in hpsa_passthru_ioctl() 6417 if (buff == NULL) in hpsa_passthru_ioctl() 6421 if (copy_from_user(buff, iocommand->buf, in hpsa_passthru_ioctl() 6427 memset(buff, 0, iocommand->buf_size); in hpsa_passthru_ioctl() 6452 temp64 = dma_map_single(&h->pdev->dev, buff, in hpsa_passthru_ioctl() 6480 if (copy_to_user(iocommand->buf, buff, iocommand->buf_size)) { in hpsa_passthru_ioctl() 6488 kfree(buff); in hpsa_passthru_ioctl() 6496 unsigned char **buff in hpsa_big_passthru_ioctl() local 6696 fill_cmd(struct CommandList *c, u8 cmd, struct ctlr_info *h, void *buff, size_t size, u16 page_code, unsigned char *scsi3addr, int cmd_type) fill_cmd() argument [all...] |
/kernel/linux/linux-5.10/drivers/scsi/lpfc/ |
H A D | lpfc_hbadisc.c | 6892 * @buff: Buffer containing the FCF connection table as in the config 6899 uint8_t *buff) in lpfc_read_fcf_conn_tbl() 6914 conn_hdr = (struct lpfc_fcf_conn_hdr *) buff; in lpfc_read_fcf_conn_tbl() 6919 (buff + sizeof(struct lpfc_fcf_conn_hdr)); in lpfc_read_fcf_conn_tbl() 6975 * @buff: Buffer containing the FCoE parameter data structure. 6982 uint8_t *buff) in lpfc_read_fcoe_param() 6988 buff; in lpfc_read_fcoe_param() 6990 (buff + sizeof(struct lpfc_fip_param_hdr)); in lpfc_read_fcoe_param() 7010 * @buff: Buffer containing config region 23 data. 7019 lpfc_get_rec_conf23(uint8_t *buff, uint32_ argument 6898 lpfc_read_fcf_conn_tbl(struct lpfc_hba *phba, uint8_t *buff) lpfc_read_fcf_conn_tbl() argument 6981 lpfc_read_fcoe_param(struct lpfc_hba *phba, uint8_t *buff) lpfc_read_fcoe_param() argument 7057 lpfc_parse_fcoe_conf(struct lpfc_hba *phba, uint8_t *buff, uint32_t size) lpfc_parse_fcoe_conf() argument [all...] |
/kernel/linux/linux-6.6/drivers/scsi/lpfc/ |
H A D | lpfc_hbadisc.c | 7076 * @buff: Buffer containing the FCF connection table as in the config 7083 uint8_t *buff) in lpfc_read_fcf_conn_tbl() 7098 conn_hdr = (struct lpfc_fcf_conn_hdr *) buff; in lpfc_read_fcf_conn_tbl() 7103 (buff + sizeof(struct lpfc_fcf_conn_hdr)); in lpfc_read_fcf_conn_tbl() 7159 * @buff: Buffer containing the FCoE parameter data structure. 7166 uint8_t *buff) in lpfc_read_fcoe_param() 7172 buff; in lpfc_read_fcoe_param() 7174 (buff + sizeof(struct lpfc_fip_param_hdr)); in lpfc_read_fcoe_param() 7194 * @buff: Buffer containing config region 23 data. 7203 lpfc_get_rec_conf23(uint8_t *buff, uint32_ argument 7082 lpfc_read_fcf_conn_tbl(struct lpfc_hba *phba, uint8_t *buff) lpfc_read_fcf_conn_tbl() argument 7165 lpfc_read_fcoe_param(struct lpfc_hba *phba, uint8_t *buff) lpfc_read_fcoe_param() argument 7241 lpfc_parse_fcoe_conf(struct lpfc_hba *phba, uint8_t *buff, uint32_t size) lpfc_parse_fcoe_conf() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_dcb.c | 54 /* helpers: read/write len bytes from addr into buff by REG_RD/REG_WR */ 55 static void bnx2x_read_data(struct bnx2x *bp, u32 *buff, in bnx2x_read_data() argument 59 for (i = 0; i < len; i += 4, buff++) in bnx2x_read_data() 60 *buff = REG_RD(bp, addr + i); in bnx2x_read_data() 63 static void bnx2x_write_data(struct bnx2x *bp, u32 *buff, in bnx2x_write_data() argument 67 for (i = 0; i < len; i += 4, buff++) in bnx2x_write_data() 68 REG_WR(bp, addr + i, *buff); in bnx2x_write_data()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_dcb.c | 54 /* helpers: read/write len bytes from addr into buff by REG_RD/REG_WR */ 55 static void bnx2x_read_data(struct bnx2x *bp, u32 *buff, in bnx2x_read_data() argument 59 for (i = 0; i < len; i += 4, buff++) in bnx2x_read_data() 60 *buff = REG_RD(bp, addr + i); in bnx2x_read_data() 63 static void bnx2x_write_data(struct bnx2x *bp, u32 *buff, in bnx2x_write_data() argument 67 for (i = 0; i < len; i += 4, buff++) in bnx2x_write_data() 68 REG_WR(bp, addr + i, *buff); in bnx2x_write_data()
|