Home
last modified time | relevance | path

Searched refs:buff (Results 1 – 25 of 190) sorted by relevance

12345678

/drivers/hid/
Dhid-picolcd_debugfs.c389 char *buff; in picolcd_debug_out_report() local
396 buff = kmalloc(BUFF_SZ, GFP_ATOMIC); in picolcd_debug_out_report()
397 if (!buff) in picolcd_debug_out_report()
402 kfree(buff); in picolcd_debug_out_report()
406 snprintf(buff, BUFF_SZ, "\nout report %d (size %d) = ", in picolcd_debug_out_report()
408 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
411 dump_buff_as_hex(buff, BUFF_SZ, raw_data, raw_size); in picolcd_debug_out_report()
412 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
417 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
419 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
[all …]
/drivers/net/ethernet/aquantia/atlantic/
Daq_ring.c23 static void aq_get_rxpages_xdp(struct aq_ring_buff_s *buff, in aq_get_rxpages_xdp() argument
38 page_ref_inc(buff->rxdata.page); in aq_get_rxpages_xdp()
292 struct aq_ring_buff_s *buff = &self->buff_ring[self->sw_head]; in aq_ring_tx_clean() local
294 if (likely(buff->is_mapped)) { in aq_ring_tx_clean()
295 if (unlikely(buff->is_sop)) { in aq_ring_tx_clean()
296 if (!buff->is_eop && in aq_ring_tx_clean()
297 buff->eop_index != 0xffffU && in aq_ring_tx_clean()
299 buff->eop_index, in aq_ring_tx_clean()
303 dma_unmap_single(dev, buff->pa, buff->len, in aq_ring_tx_clean()
306 dma_unmap_page(dev, buff->pa, buff->len, in aq_ring_tx_clean()
[all …]
/drivers/rtc/
Drtc-rc5t619.c119 u8 buff[7]; in rc5t619_rtc_read_time() local
137 buff, sizeof(buff)); in rc5t619_rtc_read_time()
141 if (buff[5] & MONTH_CENTFLAG) in rc5t619_rtc_read_time()
146 tm->tm_sec = bcd2bin(buff[0]); in rc5t619_rtc_read_time()
147 tm->tm_min = bcd2bin(buff[1]); in rc5t619_rtc_read_time()
150 tm->tm_hour = bcd2bin(buff[2]); in rc5t619_rtc_read_time()
152 tm->tm_hour = rtc5t619_12hour_bcd2bin(buff[2]); in rc5t619_rtc_read_time()
154 tm->tm_wday = bcd2bin(buff[3]); in rc5t619_rtc_read_time()
155 tm->tm_mday = bcd2bin(buff[4]); in rc5t619_rtc_read_time()
156 tm->tm_mon = bcd2bin(buff[5] & 0x1f) - 1; /* back to system 0-11 */ in rc5t619_rtc_read_time()
[all …]
Drtc-tps6586x.c61 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()
71 for (i = 1; i < sizeof(buff); i++) { in tps6586x_rtc_read_time()
73 ticks |= buff[i]; in tps6586x_rtc_read_time()
87 u8 buff[5]; in tps6586x_rtc_set_time() local
93 buff[0] = (ticks >> 32) & 0xff; in tps6586x_rtc_set_time()
94 buff[1] = (ticks >> 24) & 0xff; in tps6586x_rtc_set_time()
95 buff[2] = (ticks >> 16) & 0xff; in tps6586x_rtc_set_time()
96 buff[3] = (ticks >> 8) & 0xff; in tps6586x_rtc_set_time()
97 buff[4] = ticks & 0xff; in tps6586x_rtc_set_time()
[all …]
/drivers/gpu/drm/nouveau/dispnv04/
Dnvreg.h471 #define NV_PVIDEO_UVPLANE_BASE(buff) (0x00008800+(buff)*4) argument
472 #define NV_PVIDEO_UVPLANE_LIMIT(buff) (0x00008808+(buff)*4) argument
473 #define NV_PVIDEO_UVPLANE_OFFSET_BUFF(buff) (0x00008820+(buff)*4) argument
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
478 #define NV_PVIDEO_OFFSET_BUFF(buff) (0x00008920+(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
[all …]
/drivers/net/ethernet/intel/fm10k/
Dfm10k_ethtool.c299 static void fm10k_get_reg_q(struct fm10k_hw *hw, u32 *buff, int i) in fm10k_get_reg_q() argument
303 buff[idx++] = fm10k_read_reg(hw, FM10K_RDBAL(i)); in fm10k_get_reg_q()
304 buff[idx++] = fm10k_read_reg(hw, FM10K_RDBAH(i)); in fm10k_get_reg_q()
305 buff[idx++] = fm10k_read_reg(hw, FM10K_RDLEN(i)); in fm10k_get_reg_q()
306 buff[idx++] = fm10k_read_reg(hw, FM10K_TPH_RXCTRL(i)); in fm10k_get_reg_q()
307 buff[idx++] = fm10k_read_reg(hw, FM10K_RDH(i)); in fm10k_get_reg_q()
308 buff[idx++] = fm10k_read_reg(hw, FM10K_RDT(i)); in fm10k_get_reg_q()
309 buff[idx++] = fm10k_read_reg(hw, FM10K_RXQCTL(i)); in fm10k_get_reg_q()
310 buff[idx++] = fm10k_read_reg(hw, FM10K_RXDCTL(i)); in fm10k_get_reg_q()
311 buff[idx++] = fm10k_read_reg(hw, FM10K_RXINT(i)); in fm10k_get_reg_q()
[all …]
/drivers/net/wireless/ath/ath11k/
Ddbring.c41 struct ath11k_dbring_element *buff, in ath11k_dbring_bufs_replenish() argument
58 ptr_unaligned = buff->payload; in ath11k_dbring_bufs_replenish()
69 buf_id = idr_alloc(&ring->bufs_idr, buff, 0, ring->bufs_max, GFP_ATOMIC); in ath11k_dbring_bufs_replenish()
82 buff->paddr = paddr; in ath11k_dbring_bufs_replenish()
110 struct ath11k_dbring_element *buff; in ath11k_dbring_fill_bufs() local
127 buff = kzalloc(sizeof(*buff), GFP_ATOMIC); in ath11k_dbring_fill_bufs()
128 if (!buff) in ath11k_dbring_fill_bufs()
131 buff->payload = kzalloc(size, GFP_ATOMIC); in ath11k_dbring_fill_bufs()
132 if (!buff->payload) { in ath11k_dbring_fill_bufs()
133 kfree(buff); in ath11k_dbring_fill_bufs()
[all …]
/drivers/staging/most/net/
Dnet.c77 u8 *buff = mbo->virt_address; in skb_to_mamac() local
103 *buff++ = HB(mdp_len - 2); in skb_to_mamac()
104 *buff++ = LB(mdp_len - 2); in skb_to_mamac()
106 *buff++ = PMHL; in skb_to_mamac()
107 *buff++ = (PMS_FIFONO_MDP << PMS_FIFONO_SHIFT) | PMS_MSGTYPE_DATA; in skb_to_mamac()
108 *buff++ = PMS_DEF_PRIO; in skb_to_mamac()
109 *buff++ = dest_addr[0]; in skb_to_mamac()
110 *buff++ = dest_addr[1]; in skb_to_mamac()
111 *buff++ = 0x00; in skb_to_mamac()
113 *buff++ = HB(payload_len + 6); in skb_to_mamac()
[all …]
/drivers/net/wireless/ath/ath12k/
Ddbring.c12 struct ath12k_dbring_element *buff, in ath12k_dbring_bufs_replenish() argument
29 ptr_unaligned = buff->payload; in ath12k_dbring_bufs_replenish()
39 buf_id = idr_alloc(&ring->bufs_idr, buff, 0, ring->bufs_max, gfp); in ath12k_dbring_bufs_replenish()
52 buff->paddr = paddr; in ath12k_dbring_bufs_replenish()
79 struct ath12k_dbring_element *buff; in ath12k_dbring_fill_bufs() local
94 size = sizeof(*buff) + ring->buf_sz + align - 1; in ath12k_dbring_fill_bufs()
97 buff = kzalloc(size, gfp); in ath12k_dbring_fill_bufs()
98 if (!buff) in ath12k_dbring_fill_bufs()
101 ret = ath12k_dbring_bufs_replenish(ar, ring, buff, gfp); in ath12k_dbring_fill_bufs()
105 kfree(buff); in ath12k_dbring_fill_bufs()
[all …]
/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_a0.c441 struct aq_ring_buff_s *buff = NULL; in hw_atl_a0_hw_ring_tx_xmit() local
448 buff = &ring->buff_ring[ring->sw_tail]; in hw_atl_a0_hw_ring_tx_xmit()
449 pkt_len = (buff->is_eop && buff->is_sop) ? buff->len : buff->len_pkt; in hw_atl_a0_hw_ring_tx_xmit()
458 buff = &ring->buff_ring[ring->sw_tail]; in hw_atl_a0_hw_ring_tx_xmit()
460 if (buff->is_gso_tcp) { in hw_atl_a0_hw_ring_tx_xmit()
461 txd->ctl |= (buff->len_l3 << 31) | in hw_atl_a0_hw_ring_tx_xmit()
462 (buff->len_l2 << 24) | in hw_atl_a0_hw_ring_tx_xmit()
465 txd->ctl2 |= (buff->mss << 16) | in hw_atl_a0_hw_ring_tx_xmit()
466 (buff->len_l4 << 8) | in hw_atl_a0_hw_ring_tx_xmit()
467 (buff->len_l3 >> 1); in hw_atl_a0_hw_ring_tx_xmit()
[all …]
Dhw_atl_b0.c664 struct aq_ring_buff_s *buff = NULL; in hw_atl_b0_hw_ring_tx_xmit() local
672 buff = &ring->buff_ring[ring->sw_tail]; in hw_atl_b0_hw_ring_tx_xmit()
673 pkt_len = (buff->is_eop && buff->is_sop) ? buff->len : buff->len_pkt; in hw_atl_b0_hw_ring_tx_xmit()
682 buff = &ring->buff_ring[ring->sw_tail]; 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()
685 if (buff->is_gso_tcp) in hw_atl_b0_hw_ring_tx_xmit()
688 txd->ctl |= (buff->len_l3 << 31) | in hw_atl_b0_hw_ring_tx_xmit()
689 (buff->len_l2 << 24); in hw_atl_b0_hw_ring_tx_xmit()
690 txd->ctl2 |= (buff->mss << 16); in hw_atl_b0_hw_ring_tx_xmit()
693 pkt_len -= (buff->len_l4 + in hw_atl_b0_hw_ring_tx_xmit()
[all …]
/drivers/net/ethernet/hisilicon/hns3/hns3_common/
Dhclge_comm_tqp_stats.c14 u64 *buff = data; in hclge_comm_tqps_get_stats() local
19 *buff++ = tqp->tqp_stats.rcb_tx_ring_pktnum_rcd; in hclge_comm_tqps_get_stats()
24 *buff++ = tqp->tqp_stats.rcb_rx_ring_pktnum_rcd; in hclge_comm_tqps_get_stats()
27 return buff; in hclge_comm_tqps_get_stats()
40 u8 *buff = data; in hclge_comm_tqps_get_strings() local
46 snprintf(buff, ETH_GSTRING_LEN, "txq%u_pktnum_rcd", tqp->index); in hclge_comm_tqps_get_strings()
47 buff += ETH_GSTRING_LEN; in hclge_comm_tqps_get_strings()
53 snprintf(buff, ETH_GSTRING_LEN, "rxq%u_pktnum_rcd", tqp->index); in hclge_comm_tqps_get_strings()
54 buff += ETH_GSTRING_LEN; in hclge_comm_tqps_get_strings()
57 return buff; in hclge_comm_tqps_get_strings()
/drivers/gpu/drm/i915/gt/
Dintel_gt_sysfs_pm.c100 struct attribute *attr, char *buff) \
105 return sysfs_emit(buff, "%u\n", val); \
108 struct kobj_attribute *attr, char *buff) \
110 return _name ##_show_common(kobj, &attr->attr, buff); \
113 struct device_attribute *attr, char *buff) \
115 return _name##_show_common(&dev->kobj, &attr->attr, buff); \
121 const char *buff, size_t count) \
126 ret = kstrtou32(buff, 0, &val); \
135 struct kobj_attribute *attr, const char *buff, \
138 return _name##_store_common(kobj, &attr->attr, buff, count); \
[all …]
/drivers/staging/rtl8723bs/os_dep/
Dmlme_linux.c137 u8 *buff, *p, i; in rtw_report_sec_ie() local
140 buff = NULL; in rtw_report_sec_ie()
142 buff = rtw_zmalloc(IW_CUSTOM_MAX); in rtw_report_sec_ie()
143 if (!buff) in rtw_report_sec_ie()
146 p = buff; in rtw_report_sec_ie()
148 p += scnprintf(p, IW_CUSTOM_MAX - (p - buff), "ASSOCINFO(ReqIEs ="); in rtw_report_sec_ie()
154 p += scnprintf(p, IW_CUSTOM_MAX - (p - buff), "%02x", sec_ie[i]); in rtw_report_sec_ie()
156 p += scnprintf(p, IW_CUSTOM_MAX - (p - buff), ")"); in rtw_report_sec_ie()
160 wrqu.data.length = p - buff; in rtw_report_sec_ie()
164 kfree(buff); in rtw_report_sec_ie()
/drivers/net/ethernet/alacritech/
Dslicoss.c346 struct slic_tx_buffer *buff; in slic_xmit_complete() local
360 buff = &txq->txbuffs[idx]; in slic_xmit_complete()
362 if (unlikely(!buff->skb)) { in slic_xmit_complete()
368 dma_unmap_addr(buff, map_addr), in slic_xmit_complete()
369 dma_unmap_len(buff, map_len), DMA_TO_DEVICE); in slic_xmit_complete()
371 bytes += buff->skb->len; in slic_xmit_complete()
374 dev_kfree_skb_any(buff->skb); in slic_xmit_complete()
375 buff->skb = NULL; in slic_xmit_complete()
398 struct slic_rx_buffer *buff; in slic_refill_rx_queue() local
437 buff = &rxq->rxbuffs[rxq->put_idx]; in slic_refill_rx_queue()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/diag/
Dfw_tracer.c130 void *buff; in mlx5_fw_tracer_create_log_buf() local
134 tracer->buff.size = TRACE_BUFFER_SIZE_BYTE; in mlx5_fw_tracer_create_log_buf()
137 buff = (void *)__get_free_pages(gfp, in mlx5_fw_tracer_create_log_buf()
138 get_order(tracer->buff.size)); in mlx5_fw_tracer_create_log_buf()
139 if (!buff) { in mlx5_fw_tracer_create_log_buf()
144 tracer->buff.log_buf = buff; in mlx5_fw_tracer_create_log_buf()
147 dma = dma_map_single(ddev, buff, tracer->buff.size, DMA_FROM_DEVICE); in mlx5_fw_tracer_create_log_buf()
154 tracer->buff.dma = dma; in mlx5_fw_tracer_create_log_buf()
159 free_pages((unsigned long)tracer->buff.log_buf, get_order(tracer->buff.size)); in mlx5_fw_tracer_create_log_buf()
169 if (!tracer->buff.log_buf) in mlx5_fw_tracer_destroy_log_buf()
[all …]
/drivers/net/wireless/mediatek/mt76/mt7996/
Ddebugfs.c131 char *buff; in mt7996_sys_recovery_get() local
136 buff = kmalloc(bufsz, GFP_KERNEL); in mt7996_sys_recovery_get()
137 if (!buff) in mt7996_sys_recovery_get()
141 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get()
143 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get()
145 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get()
147 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get()
149 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get()
151 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get()
153 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get()
[all …]
/drivers/char/tpm/eventlog/
Dacpi.c69 struct acpi_tcpa *buff; in tpm_read_log_acpi() local
113 (struct acpi_table_header **)&buff); in tpm_read_log_acpi()
117 switch (buff->platform_class) { in tpm_read_log_acpi()
119 len = buff->server.log_max_len; in tpm_read_log_acpi()
120 start = buff->server.log_start_addr; in tpm_read_log_acpi()
124 len = buff->client.log_max_len; in tpm_read_log_acpi()
125 start = buff->client.log_start_addr; in tpm_read_log_acpi()
129 acpi_put_table((struct acpi_table_header *)buff); in tpm_read_log_acpi()
/drivers/net/ethernet/hisilicon/hns/
Dhns_ethtool.c381 char buff[33]; /* 32B data and the last character '\0' */ in __lb_other_process() local
436 snprintf(buff + i % 16 * 2, 3, /* tailing \0*/ in __lb_other_process()
439 pr_info("%s\n", buff); in __lb_other_process()
906 u8 *buff = data; in hns_get_strings() local
915 ethtool_sprintf(&buff, in hns_get_strings()
917 ethtool_sprintf(&buff, in hns_get_strings()
920 ethtool_sprintf(&buff, in hns_get_strings()
924 ethtool_sprintf(&buff, "rx_packets"); in hns_get_strings()
925 ethtool_sprintf(&buff, "tx_packets"); in hns_get_strings()
926 ethtool_sprintf(&buff, "rx_bytes"); in hns_get_strings()
[all …]
Dhns_dsaf_rcb.c928 u8 *buff = data; in hns_rcb_get_strings() local
933 ethtool_sprintf(&buff, "tx_ring%d_rcb_pkt_num", index); in hns_rcb_get_strings()
934 ethtool_sprintf(&buff, "tx_ring%d_ppe_tx_pkt_num", index); in hns_rcb_get_strings()
935 ethtool_sprintf(&buff, "tx_ring%d_ppe_drop_pkt_num", index); in hns_rcb_get_strings()
936 ethtool_sprintf(&buff, "tx_ring%d_fbd_num", index); in hns_rcb_get_strings()
938 ethtool_sprintf(&buff, "tx_ring%d_pkt_num", index); in hns_rcb_get_strings()
939 ethtool_sprintf(&buff, "tx_ring%d_bytes", index); in hns_rcb_get_strings()
940 ethtool_sprintf(&buff, "tx_ring%d_err_cnt", index); in hns_rcb_get_strings()
941 ethtool_sprintf(&buff, "tx_ring%d_io_err", index); in hns_rcb_get_strings()
942 ethtool_sprintf(&buff, "tx_ring%d_sw_err", index); in hns_rcb_get_strings()
[all …]
/drivers/staging/rtl8712/
Dmlme_linux.c138 u8 *buff, *p, i; in r8712_report_sec_ie() local
141 buff = NULL; in r8712_report_sec_ie()
143 buff = kzalloc(IW_CUSTOM_MAX, GFP_ATOMIC); in r8712_report_sec_ie()
144 if (!buff) in r8712_report_sec_ie()
146 p = buff; in r8712_report_sec_ie()
154 wrqu.data.length = p - buff; in r8712_report_sec_ie()
157 wireless_send_event(adapter->pnetdev, IWEVCUSTOM, &wrqu, buff); in r8712_report_sec_ie()
158 kfree(buff); in r8712_report_sec_ie()
/drivers/spi/
Dspi-tle62x0.c40 unsigned char *buff = st->tx_buff; in tle62x0_write() local
43 buff[0] = CMD_SET; in tle62x0_write()
46 buff[1] = gpio_state >> 8; in tle62x0_write()
47 buff[2] = gpio_state; in tle62x0_write()
49 buff[1] = gpio_state; in tle62x0_write()
52 dev_dbg(&st->us->dev, "buff %3ph\n", buff); in tle62x0_write()
54 return spi_write(st->us, buff, (st->nr_gpio == 16) ? 3 : 2); in tle62x0_write()
101 unsigned char *buff = st->rx_buff; in tle62x0_status_show() local
116 fault |= ((unsigned long)buff[ptr]); in tle62x0_status_show()
118 dev_dbg(dev, "byte %d is %02x\n", ptr, buff[ptr]); in tle62x0_status_show()
/drivers/net/wireless/microchip/wilc1000/
Dmon.c24 void wilc_wfi_monitor_rx(struct net_device *mon_dev, u8 *buff, u32 size) in wilc_wfi_monitor_rx() argument
38 header = get_unaligned_le32(buff - HOST_HDR_OFFSET); in wilc_wfi_monitor_rx()
52 skb_put_data(skb, buff, size); in wilc_wfi_monitor_rx()
78 skb_put_data(skb, buff, size); in wilc_wfi_monitor_rx()
100 void *buff; member
110 kfree(pv_data->buff); in mgmt_tx_complete()
127 mgmt_tx->buff = kmemdup(buf, len, GFP_ATOMIC); in mon_mgmt_tx()
128 if (!mgmt_tx->buff) { in mon_mgmt_tx()
135 wilc_wlan_txq_add_mgmt_pkt(dev, mgmt_tx, mgmt_tx->buff, mgmt_tx->size, in mon_mgmt_tx()
/drivers/infiniband/hw/hfi1/
Ddebugfs.c554 char *buff; in asic_flags_write() local
564 buff = memdup_user_nul(buf, count); in asic_flags_write()
565 if (IS_ERR(buff)) in asic_flags_write()
566 return PTR_ERR(buff); in asic_flags_write()
568 ret = kstrtoull(buff, 0, &value); in asic_flags_write()
590 kfree(buff); in asic_flags_write()
729 char *buff; in __i2c_debugfs_write() local
745 buff = memdup_user(buf, count); in __i2c_debugfs_write()
746 if (IS_ERR(buff)) in __i2c_debugfs_write()
747 return PTR_ERR(buff); in __i2c_debugfs_write()
[all …]
/drivers/net/ethernet/intel/i40e/
Di40e_debugfs.c1151 u8 *buff; in i40e_dbg_command_write() local
1165 buff = kzalloc(buff_len, GFP_KERNEL); in i40e_dbg_command_write()
1166 if (!buff) in i40e_dbg_command_write()
1170 index, buff_len, buff, &rlen, in i40e_dbg_command_write()
1177 kfree(buff); in i40e_dbg_command_write()
1178 buff = NULL; in i40e_dbg_command_write()
1186 buff, rlen, true); in i40e_dbg_command_write()
1187 kfree(buff); in i40e_dbg_command_write()
1188 buff = NULL; in i40e_dbg_command_write()
1335 u8 *buff; in i40e_dbg_command_write() local
[all …]

12345678