/linux/drivers/hid/ |
A D | hid-picolcd_debugfs.c | 389 char *buff; in picolcd_debug_out_report() local 397 if (!buff) in picolcd_debug_out_report() 402 kfree(buff); in picolcd_debug_out_report() 408 hid_debug_event(hdev, buff); in picolcd_debug_out_report() 412 hid_debug_event(hdev, buff); in picolcd_debug_out_report() 419 hid_debug_event(hdev, buff); in picolcd_debug_out_report() 421 hid_debug_event(hdev, buff); in picolcd_debug_out_report() 638 kfree(buff); in picolcd_debug_out_report() 645 char *buff; in picolcd_debug_raw_event() local 653 if (!buff) in picolcd_debug_raw_event() [all …]
|
/linux/arch/x86/lib/ |
A D | csum-partial_64.c | 42 odd = 1 & (unsigned long) buff; in do_csum() 44 result = *buff << 8; in do_csum() 46 buff++; in do_csum() 50 if (2 & (unsigned long) buff) { in do_csum() 54 buff += 2; in do_csum() 64 buff += 4; in do_csum() 84 buff += 64; in do_csum() 97 buff += 8; in do_csum() 104 buff += 4; in do_csum() 109 buff += 2; in do_csum() [all …]
|
/linux/drivers/rtc/ |
A D | rtc-rc5t619.c | 119 u8 buff[7]; in rc5t619_rtc_read_time() local 137 buff, sizeof(buff)); in rc5t619_rtc_read_time() 165 u8 buff[7]; in rc5t619_rtc_set_time() local 201 buff[5] |= MONTH_CENTFLAG; in rc5t619_rtc_set_time() 204 buff, sizeof(buff)); in rc5t619_rtc_set_time() 227 u8 buff[6]; in rc5t619_rtc_read_alarm() local 249 buff, sizeof(buff)); in rc5t619_rtc_read_alarm() 253 buff[3] = buff[3] & 0x3f; in rc5t619_rtc_read_alarm() 275 u8 buff[6]; in rc5t619_rtc_set_alarm() local 311 buff[3] |= MDAY_DAL_EXT; in rc5t619_rtc_set_alarm() [all …]
|
A D | rtc-tps6586x.c | 61 u8 buff[6]; in tps6586x_rtc_read_time() local 65 ret = tps6586x_reads(tps_dev, RTC_COUNT4_DUMMYREAD, sizeof(buff), buff); in tps6586x_rtc_read_time() 73 ticks |= buff[i]; in tps6586x_rtc_read_time() 87 u8 buff[5]; in tps6586x_rtc_set_time() local 97 buff[4] = ticks & 0xff; in tps6586x_rtc_set_time() 106 ret = tps6586x_writes(tps_dev, RTC_COUNT4, sizeof(buff), buff); in tps6586x_rtc_set_time() 143 u8 buff[3]; in tps6586x_rtc_set_alarm() local 177 ret = tps6586x_writes(tps_dev, RTC_ALARM1_HI, sizeof(buff), buff); in tps6586x_rtc_set_alarm() 189 u8 buff[3]; in tps6586x_rtc_read_alarm() local 192 ret = tps6586x_reads(tps_dev, RTC_ALARM1_HI, sizeof(buff), buff); in tps6586x_rtc_read_alarm() [all …]
|
/linux/arch/parisc/lib/ |
A D | checksum.c | 44 odd = 1 & (unsigned long) buff; in do_csum() 46 result = be16_to_cpu(*buff); in do_csum() 48 buff++; in do_csum() 52 if (2 & (unsigned long) buff) { in do_csum() 56 buff += 2; in do_csum() 62 r1 = *(unsigned int *)(buff + 0); in do_csum() 63 r2 = *(unsigned int *)(buff + 4); in do_csum() 71 buff += 16; in do_csum() 76 buff += 4; in do_csum() 83 buff += 2; in do_csum() [all …]
|
/linux/drivers/net/ethernet/aquantia/atlantic/ |
A D | aq_ring.c | 293 dma_unmap_single(dev, buff->pa, buff->len, in aq_ring_tx_clean() 296 dma_unmap_page(dev, buff->pa, buff->len, in aq_ring_tx_clean() 301 if (unlikely(buff->is_eop && buff->skb)) { in aq_ring_tx_clean() 310 buff->pa = 0U; in aq_ring_tx_clean() 338 if (buff->is_udp_cso || buff->is_tcp_cso) in aq_rx_checksum() 367 buff_ = buff; in aq_ring_rx_clean() 393 (buff->is_lro && buff->is_cso_err)) { in aq_ring_rx_clean() 434 buff->len -= in aq_ring_rx_clean() 457 buff_ = buff; in aq_ring_rx_clean() 552 buff->pa = aq_buf_daddr(&buff->rxdata); in aq_ring_rx_fill() [all …]
|
/linux/arch/ia64/lib/ |
A D | csum_partial_copy.c | 42 odd = 1 & (unsigned long) buff; in do_csum_c() 44 result = *buff << 8; in do_csum_c() 46 buff++; in do_csum_c() 50 if (2 & (unsigned long) buff) { in do_csum_c() 54 buff += 2; in do_csum_c() 58 if (4 & (unsigned long) buff) { in do_csum_c() 62 buff += 4; in do_csum_c() 70 buff += 8; in do_csum_c() 80 buff += 4; in do_csum_c() 85 buff += 2; in do_csum_c() [all …]
|
/linux/lib/ |
A D | checksum.c | 53 odd = 1 & (unsigned long) buff; in do_csum() 56 result += (*buff << 8); in do_csum() 58 result = *buff; in do_csum() 61 buff++; in do_csum() 64 if (2 & (unsigned long) buff) { in do_csum() 67 buff += 2; in do_csum() 74 buff += 4; in do_csum() 78 } while (buff < end); in do_csum() 84 buff += 2; in do_csum() 89 result += *buff; in do_csum() [all …]
|
/linux/arch/alpha/lib/ |
A D | checksum.c | 86 odd = 1 & (unsigned long) buff; in do_csum() 88 result = *buff << 8; in do_csum() 90 buff++; in do_csum() 94 if (2 & (unsigned long) buff) { in do_csum() 98 buff += 2; in do_csum() 102 if (4 & (unsigned long) buff) { in do_csum() 106 buff += 4; in do_csum() 114 buff += 8; in do_csum() 124 buff += 4; in do_csum() 129 buff += 2; in do_csum() [all …]
|
/linux/drivers/gpu/drm/nouveau/dispnv04/ |
A D | nvreg.h | 474 #define NV_PVIDEO_BASE(buff) (0x00008900+(buff)*4) argument 475 #define NV_PVIDEO_LIMIT(buff) (0x00008908+(buff)*4) argument 476 #define NV_PVIDEO_LUMINANCE(buff) (0x00008910+(buff)*4) argument 477 #define NV_PVIDEO_CHROMINANCE(buff) (0x00008918+(buff)*4) argument 479 #define NV_PVIDEO_SIZE_IN(buff) (0x00008928+(buff)*4) argument 480 #define NV_PVIDEO_POINT_IN(buff) (0x00008930+(buff)*4) argument 481 #define NV_PVIDEO_DS_DX(buff) (0x00008938+(buff)*4) argument 482 #define NV_PVIDEO_DT_DY(buff) (0x00008940+(buff)*4) argument 483 #define NV_PVIDEO_POINT_OUT(buff) (0x00008948+(buff)*4) argument 484 #define NV_PVIDEO_SIZE_OUT(buff) (0x00008950+(buff)*4) argument [all …]
|
/linux/net/netrom/ |
A D | nr_dev.c | 72 buff[6] &= ~AX25_CBIT; in nr_header() 73 buff[6] &= ~AX25_EBIT; in nr_header() 75 buff += AX25_ADDR_LEN; in nr_header() 79 buff[6] &= ~AX25_CBIT; in nr_header() 80 buff[6] |= AX25_EBIT; in nr_header() 82 buff += AX25_ADDR_LEN; in nr_header() 86 *buff++ = NR_PROTO_IP; in nr_header() 87 *buff++ = NR_PROTO_IP; in nr_header() 88 *buff++ = 0; in nr_header() 89 *buff++ = 0; in nr_header() [all …]
|
/linux/net/ax25/ |
A D | ax25_ip.c | 49 unsigned char *buff; in ax25_hard_header() local 62 buff[6] &= ~AX25_CBIT; in ax25_hard_header() 63 buff[6] &= ~AX25_EBIT; in ax25_hard_header() 64 buff[6] |= AX25_SSSID_SPARE; in ax25_hard_header() 65 buff += AX25_ADDR_LEN; in ax25_hard_header() 72 buff[6] &= ~AX25_CBIT; in ax25_hard_header() 73 buff[6] |= AX25_EBIT; in ax25_hard_header() 75 buff += AX25_ADDR_LEN; in ax25_hard_header() 82 *buff++ = AX25_P_IP; in ax25_hard_header() 85 *buff++ = AX25_P_ARP; in ax25_hard_header() [all …]
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_fru_eeprom.c | 65 unsigned char *buff) in amdgpu_fru_read_eeprom() argument 78 size = buff[0] - I2C_PRODUCT_INFO_OFFSET; in amdgpu_fru_read_eeprom() 91 unsigned char buff[34]; in amdgpu_fru_get_product_info() local 117 size = amdgpu_fru_read_eeprom(adev, addrptr, buff); in amdgpu_fru_get_product_info() 127 size = amdgpu_fru_read_eeprom(adev, addrptr, buff); in amdgpu_fru_get_product_info() 142 memcpy(adev->product_name, &buff[2], len); in amdgpu_fru_get_product_info() 146 size = amdgpu_fru_read_eeprom(adev, addrptr, buff); in amdgpu_fru_get_product_info() 160 memcpy(adev->product_number, &buff[2], len); in amdgpu_fru_get_product_info() 164 size = amdgpu_fru_read_eeprom(adev, addrptr, buff); in amdgpu_fru_get_product_info() 172 size = amdgpu_fru_read_eeprom(adev, addrptr, buff); in amdgpu_fru_get_product_info() [all …]
|
/linux/arch/powerpc/kernel/ |
A D | optprobes.c | 158 kprobe_opcode_t *buff; in arch_prepare_optimized_kprobe() local 168 buff = get_optinsn_slot(); in arch_prepare_optimized_kprobe() 169 if (!buff) in arch_prepare_optimized_kprobe() 181 b_offset = (unsigned long)buff - (unsigned long)p->addr; in arch_prepare_optimized_kprobe() 186 b_offset = (unsigned long)(buff + TMPL_RET_IDX) - nip; in arch_prepare_optimized_kprobe() 193 pr_devel("Copying template to %p, size %lu\n", buff, size); in arch_prepare_optimized_kprobe() 204 patch_imm_load_insns((unsigned long)op, 3, buff + TMPL_OP_IDX); in arch_prepare_optimized_kprobe() 241 patch_branch(buff + TMPL_RET_IDX, nip, 0); in arch_prepare_optimized_kprobe() 243 flush_icache_range((unsigned long)buff, (unsigned long)(&buff[TMPL_END_IDX])); in arch_prepare_optimized_kprobe() 245 op->optinsn.insn = buff; in arch_prepare_optimized_kprobe() [all …]
|
/linux/drivers/net/ethernet/intel/fm10k/ |
A D | fm10k_ethtool.c | 357 u32 *buff = p; in fm10k_get_regs() local 365 *(buff++) = fm10k_read_reg(hw, FM10K_CTRL); in fm10k_get_regs() 367 *(buff++) = fm10k_read_reg(hw, FM10K_GCR); in fm10k_get_regs() 376 fm10k_get_reg_vsi(hw, buff, i); in fm10k_get_regs() 377 buff += FM10K_REGS_LEN_VSI; in fm10k_get_regs() 384 fm10k_get_reg_q(hw, buff, i); in fm10k_get_regs() 385 buff += FM10K_REGS_LEN_Q; in fm10k_get_regs() 408 fm10k_get_reg_vsi(hw, buff, 0); in fm10k_get_regs() 409 buff += FM10K_REGS_LEN_VSI; in fm10k_get_regs() 413 fm10k_get_reg_q(hw, buff, i); in fm10k_get_regs() [all …]
|
/linux/drivers/staging/most/net/ |
A D | net.c | 106 *buff++ = PMHL; in skb_to_mamac() 108 *buff++ = PMS_DEF_PRIO; in skb_to_mamac() 111 *buff++ = 0x00; in skb_to_mamac() 118 *buff++ = eth_type[0]; in skb_to_mamac() 119 *buff++ = eth_type[1]; in skb_to_mamac() 120 *buff++ = 0; in skb_to_mamac() 121 *buff++ = 0; in skb_to_mamac() 150 *buff++ = PMHL; in skb_to_mep() 153 *buff++ = 0; in skb_to_mep() 154 *buff++ = 0; in skb_to_mep() [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | tailcalls.c | 57 err = bpf_prog_test_run(main_fd, 1, buff, sizeof(buff), 0, in test_tailcall_1() 67 err = bpf_prog_test_run(main_fd, 1, buff, sizeof(buff), 0, in test_tailcall_1() 88 err = bpf_prog_test_run(main_fd, 1, buff, sizeof(buff), 0, in test_tailcall_1() 113 err = bpf_prog_test_run(main_fd, 1, buff, sizeof(buff), 0, in test_tailcall_1() 123 err = bpf_prog_test_run(main_fd, 1, buff, sizeof(buff), 0, in test_tailcall_1() 133 err = bpf_prog_test_run(main_fd, 1, buff, sizeof(buff), 0, in test_tailcall_1() 194 err = bpf_prog_test_run(main_fd, 1, buff, sizeof(buff), 0, in test_tailcall_2() 204 err = bpf_prog_test_run(main_fd, 1, buff, sizeof(buff), 0, in test_tailcall_2() 214 err = bpf_prog_test_run(main_fd, 1, buff, sizeof(buff), 0, in test_tailcall_2() 265 err = bpf_prog_test_run(main_fd, 1, buff, sizeof(buff), 0, in test_tailcall_count() [all …]
|
/linux/arch/powerpc/include/asm/ |
A D | checksum.h | 170 sum = csum_add(sum, (__force __wsum)*(const u16 *)buff); in csum_partial() 172 sum = csum_add(sum, (__force __wsum)*(const u32 *)buff); in csum_partial() 175 *(const u16 *)(buff + 4)); in csum_partial() 178 *(const u32 *)(buff + 4)); in csum_partial() 181 *(const u16 *)(buff + 8)); in csum_partial() 184 *(const u32 *)(buff + 8)); in csum_partial() 187 *(const u16 *)(buff + 12)); in csum_partial() 190 *(const u32 *)(buff + 12)); in csum_partial() 192 sum = csum_add(sum, ip_fast_csum_nofold(buff, len >> 2)); in csum_partial() 194 sum = __csum_partial(buff, len, sum); in csum_partial() [all …]
|
/linux/drivers/net/wireless/ath/ath11k/ |
A D | dbring.c | 11 struct ath11k_dbring_element *buff) in ath11k_dbring_bufs_replenish() argument 27 ptr_unaligned = buff->payload; in ath11k_dbring_bufs_replenish() 50 buff->paddr = paddr; in ath11k_dbring_bufs_replenish() 76 struct ath11k_dbring_element *buff; in ath11k_dbring_fill_bufs() local 93 buff = kzalloc(size, GFP_ATOMIC); in ath11k_dbring_fill_bufs() 94 if (!buff) in ath11k_dbring_fill_bufs() 101 kfree(buff); in ath11k_dbring_fill_bufs() 303 if (!buff) { in ath11k_dbring_buffer_release_event() 314 vaddr_unalign = buff->payload; in ath11k_dbring_buffer_release_event() 322 memset(buff, 0, size); in ath11k_dbring_buffer_release_event() [all …]
|
/linux/net/batman-adv/ |
A D | gateway_common.c | 36 bool batadv_parse_throughput(struct net_device *net_dev, char *buff, in batadv_parse_throughput() argument 44 if (strlen(buff) > 4) { in batadv_parse_throughput() 45 tmp_ptr = buff + strlen(buff) - 4; in batadv_parse_throughput() 55 ret = kstrtou64(buff, 10, <hroughput); in batadv_parse_throughput() 59 description, buff); in batadv_parse_throughput() 69 description, buff); in batadv_parse_throughput() 84 description, buff); in batadv_parse_throughput() 109 slash_ptr = strchr(buff, '/'); in batadv_parse_gw_bandwidth() 113 ret = batadv_parse_throughput(net_dev, buff, "download gateway speed", in batadv_parse_gw_bandwidth() 167 ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff, in batadv_gw_bandwidth_set() argument [all …]
|
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
A D | hw_atl_a0.c | 449 pkt_len = (buff->is_eop && buff->is_sop) ? buff->len : buff->len_pkt; in hw_atl_a0_hw_ring_tx_xmit() 467 (buff->len_l3 >> 1); in hw_atl_a0_hw_ring_tx_xmit() 470 buff->len_l3 + in hw_atl_a0_hw_ring_tx_xmit() 471 buff->len_l2); in hw_atl_a0_hw_ring_tx_xmit() 474 if (buff->is_ipv6) in hw_atl_a0_hw_ring_tx_xmit() 492 if (buff->is_ip_cso) in hw_atl_a0_hw_ring_tx_xmit() 495 if (buff->is_udp_cso || buff->is_tcp_cso) in hw_atl_a0_hw_ring_tx_xmit() 694 buff->is_error = 1U; in hw_atl_a0_hw_ring_rx_receive() 710 buff->len = buff->len ? in hw_atl_a0_hw_ring_rx_receive() 712 buff->next = 0U; in hw_atl_a0_hw_ring_rx_receive() [all …]
|
A D | hw_atl_b0.c | 673 pkt_len = (buff->is_eop && buff->is_sop) ? buff->len : buff->len_pkt; in hw_atl_b0_hw_ring_tx_xmit() 684 if (buff->is_gso_tcp || buff->is_gso_udp) { in hw_atl_b0_hw_ring_tx_xmit() 696 if (buff->is_ipv6) in hw_atl_b0_hw_ring_tx_xmit() 706 if (!buff->is_gso_tcp && !buff->is_gso_udp && !buff->is_vlan) { in hw_atl_b0_hw_ring_tx_xmit() 728 if (buff->is_udp_cso || buff->is_tcp_cso) in hw_atl_b0_hw_ring_tx_xmit() 917 buff->flags = 0U; in hw_atl_b0_hw_ring_rx_receive() 949 buff->is_vlan = 1; in hw_atl_b0_hw_ring_rx_receive() 973 buff->len = buff->len ? in hw_atl_b0_hw_ring_rx_receive() 975 buff->next = 0U; in hw_atl_b0_hw_ring_rx_receive() 978 buff->len = in hw_atl_b0_hw_ring_rx_receive() [all …]
|
/linux/tools/usb/usbip/libsrc/ |
A D | usbip_common.c | 101 char buff[100]; in dump_usb_interface() local 103 usbip_names_get_class(buff, sizeof(buff), in dump_usb_interface() 107 dbg("%-20s = %s", "Interface(C/SC/P)", buff); in dump_usb_interface() 112 char buff[100]; in dump_usb_device() local 117 usbip_names_get_class(buff, sizeof(buff), in dump_usb_device() 121 dbg("%-20s = %s", "Device(C/SC/P)", buff); in dump_usb_device() 125 usbip_names_get_product(buff, sizeof(buff), in dump_usb_device() 128 dbg("%-20s = %s", "Vendor/Product", buff); in dump_usb_device() 278 void usbip_names_get_product(char *buff, size_t size, uint16_t vendor, in usbip_names_get_product() argument 292 snprintf(buff, size, "%s : %s (%04x:%04x)", vend, prod, vendor, product); in usbip_names_get_product() [all …]
|
/linux/fs/squashfs/ |
A D | lz4_wrapper.c | 33 void *buff, int len) in lz4_comp_opts() argument 35 struct lz4_comp_opts *comp_opts = buff; in lz4_comp_opts() 52 static void *lz4_init(struct squashfs_sb_info *msblk, void *buff) in lz4_init() argument 98 void *buff = stream->input, *data; in lz4_uncompress() local 105 memcpy(buff, data + offset, avail); in lz4_uncompress() 106 buff += avail; in lz4_uncompress() 119 buff = stream->output; in lz4_uncompress() 122 memcpy(data, buff, bytes); in lz4_uncompress() 125 memcpy(data, buff, PAGE_SIZE); in lz4_uncompress() 126 buff += PAGE_SIZE; in lz4_uncompress()
|
/linux/tools/bpf/ |
A D | bpf_jit_disasm.c | 106 char *buff; in get_klog_buff() local 112 buff = malloc(len); in get_klog_buff() 113 if (!buff) in get_klog_buff() 118 free(buff); in get_klog_buff() 123 return buff; in get_klog_buff() 130 char *buff; in get_flog_buff() local 141 buff = malloc(len); in get_flog_buff() 142 if (!buff) in get_flog_buff() 152 return buff; in get_flog_buff() 154 free(buff); in get_flog_buff() [all …]
|