Home
last modified time | relevance | path

Searched refs:tmp_len (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/net/wireless/realtek/rtlwifi/
H A Ddebug.c272 int tmp_len; in rtl_debugfs_set_write_reg() local
279 tmp_len = (count > sizeof(tmp) - 1 ? sizeof(tmp) - 1 : count); in rtl_debugfs_set_write_reg()
281 if (copy_from_user(tmp, buffer, tmp_len)) in rtl_debugfs_set_write_reg()
284 tmp[tmp_len] = '\0'; in rtl_debugfs_set_write_reg()
322 int tmp_len; in rtl_debugfs_set_write_h2c() local
330 tmp_len = (count > sizeof(tmp) - 1 ? sizeof(tmp) - 1 : count); in rtl_debugfs_set_write_h2c()
332 if (copy_from_user(tmp, buffer, tmp_len)) in rtl_debugfs_set_write_h2c()
335 tmp[tmp_len] = '\0'; in rtl_debugfs_set_write_h2c()
368 int tmp_len; in rtl_debugfs_set_write_rfreg() local
376 tmp_len = (count > sizeof(tmp) - 1 ? sizeof(tmp) - 1 : count); in rtl_debugfs_set_write_rfreg()
[all …]
/linux/drivers/md/
H A Ddm-unstripe.c42 sector_t tmp_len; in unstripe_ctr() local
92 tmp_len = ti->len; in unstripe_ctr()
93 if (sector_div(tmp_len, uc->chunk_size)) { in unstripe_ctr()
H A Ddm-stripe.c91 sector_t width, tmp_len; in stripe_ctr() local
118 tmp_len = width; in stripe_ctr()
119 if (sector_div(tmp_len, chunk_size)) { in stripe_ctr()
/linux/tools/lib/perf/
H A Dcpumap.c411 unsigned int tmp_len, i, j, k; in perf_cpu_map__merge()
422 tmp_len = __perf_cpu_map__nr(*orig) + __perf_cpu_map__nr(other); in perf_cpu_map__merge()
423 tmp_cpus = malloc(tmp_len * sizeof(struct perf_cpu)); in perf_cpu_map__merge()
443 assert(k <= tmp_len); in perf_cpu_map__merge()
413 int tmp_len; perf_cpu_map__merge() local
/linux/drivers/net/ethernet/tehuti/
H A Dtn40.c288 int tmp_len, size, done = 0; in tn40_rx_receive() local
324 tmp_len = TN40_GET_RXD_BC(rxd_val1) << 3; in tn40_rx_receive()
326 size -= tmp_len; in tn40_rx_receive()
331 __func__, tmp_len); in tn40_rx_receive()
348 f->m.rptr += tmp_len; in tn40_rx_receive()
349 tmp_len = f->m.rptr - f->m.memsz; in tn40_rx_receive()
350 if (unlikely(tmp_len >= 0)) { in tn40_rx_receive()
351 f->m.rptr = tmp_len; in tn40_rx_receive()
352 if (tmp_len > 0) { in tn40_rx_receive()
358 f->m.rptr, tmp_len); in tn40_rx_receive()
[all …]
H A Dtehuti.c1196 int tmp_len, size; in bdx_rx_receive() local
1225 tmp_len = GET_RXD_BC(rxd_val1) << 3; in bdx_rx_receive()
1226 BDX_ASSERT(tmp_len <= 0); in bdx_rx_receive()
1227 size -= tmp_len; in bdx_rx_receive()
1231 f->m.rptr += tmp_len; in bdx_rx_receive()
1233 tmp_len = f->m.rptr - f->m.memsz; in bdx_rx_receive()
1234 if (unlikely(tmp_len >= 0)) { in bdx_rx_receive()
1235 f->m.rptr = tmp_len; in bdx_rx_receive()
1236 if (tmp_len > 0) { in bdx_rx_receive()
1238 f->m.rptr, tmp_len); in bdx_rx_receive()
[all …]
/linux/drivers/platform/x86/hp/hp-bioscfg/
H A Dorder-list-attributes.c141 int tmp_len = 0; in hp_populate_ordered_list_elements_from_package() local
264 ret = hp_convert_hexstr_to_str(str_value, value_len, &tmpstr, &tmp_len); in hp_populate_ordered_list_elements_from_package()
/linux/drivers/net/wireless/realtek/rtw88/
H A Ddebug.c233 int tmp_len; in rtw_debugfs_copy_from_user() local
240 tmp_len = (count > size - 1 ? size - 1 : count); in rtw_debugfs_copy_from_user()
242 if (copy_from_user(tmp, buffer, tmp_len)) in rtw_debugfs_copy_from_user()
245 tmp[tmp_len] = '\0'; in rtw_debugfs_copy_from_user()
/linux/sound/soc/codecs/aw88395/
H A Daw88395_device.c1111 u32 tmp_len; in aw_dev_dsp_update_container()
1119 tmp_len = min(len - i, AW88395_MAX_RAM_WRITE_BYTE_SIZE); in aw_dev_dsp_update_container()
1121 &data[i], tmp_len); in aw_dev_dsp_update_container()
1110 u32 tmp_len; aw_dev_dsp_update_container() local
/linux/sound/soc/codecs/
H A Daw88166.c801 u32 tmp_len; in aw88166_dev_mute()
809 tmp_len = min(len - i, AW88166_MAX_RAM_WRITE_BYTE_SIZE);
811 &data[i], tmp_len); in aw88166_dev_set_dither()
904 u32 tmp_len; aw_dev_dsp_update_container() local
H A Daw88399.c763 u32 tmp_len; in aw_dev_set_volume()
771 tmp_len = min(len - i, AW88399_MAX_RAM_WRITE_BYTE_SIZE); in aw_dev_set_volume()
773 &data[i], tmp_len); in aw_dev_set_volume()
929 u32 tmp_len; aw_dev_dsp_update_container() local
/linux/drivers/net/ethernet/ibm/
H A Dibmvnic.c2219 int tmp_len = len; in create_hdr_descs() local
2224 while (tmp_len > 0) { in create_hdr_descs()
2225 cur = hdr_data + len - tmp_len; in create_hdr_descs()
2230 tmp = tmp_len > 29 ? 29 : tmp_len; in create_hdr_descs()
2236 tmp = tmp_len > 24 ? 24 : tmp_len; in create_hdr_descs()
2246 tmp_len -= tmp; in create_hdr_descs()
/linux/drivers/nfc/pn533/
H A Dpn533.c2068 unsigned int skb_len = 0, tmp_len = 0; in pn533_build_response() local
2091 memcpy(skb->data + tmp_len, tmp->data, tmp->len); in pn533_build_response()
2092 tmp_len += tmp->len; in pn533_build_response()
/linux/drivers/mtd/spi-nor/
H A Dcore.c2026 size_t tmp_len; in spi_nor_octal_dtr_read() local
2052 tmp_len = min_t(size_t, end - start, PAGE_SIZE); in spi_nor_octal_dtr_read()
2054 ret = spi_nor_read_data(nor, start, tmp_len, tmp_buf); in spi_nor_octal_dtr_read()
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_main.c4333 int tmp_len; in stmmac_tso_allocator() local
4335 tmp_len = total_len; in stmmac_tso_allocator()
4337 while (tmp_len > 0) { in stmmac_tso_allocator()
4349 curr_addr = des + (total_len - tmp_len); in stmmac_tso_allocator()
4351 buff_size = tmp_len >= TSO_MAX_BUFF_SIZE ? in stmmac_tso_allocator()
4352 TSO_MAX_BUFF_SIZE : tmp_len; in stmmac_tso_allocator()
4356 (last_segment) && (tmp_len <= TSO_MAX_BUFF_SIZE), in stmmac_tso_allocator()
4359 tmp_len -= TSO_MAX_BUFF_SIZE; in stmmac_tso_allocator()