Home
last modified time | relevance | path

Searched refs:sz (Results 1 – 25 of 314) sorted by relevance

12345678910>>...13

/drivers/media/rc/
Dstreamzap.c114 static void sz_push(struct streamzap_ir *sz, struct ir_raw_event rawir) in sz_push() argument
116 dev_dbg(sz->dev, "Storing %s with duration %u us\n", in sz_push()
118 ir_raw_event_store_with_filter(sz->rdev, &rawir); in sz_push()
121 static void sz_push_full_pulse(struct streamzap_ir *sz, in sz_push_full_pulse() argument
126 if (sz->idle) { in sz_push_full_pulse()
129 sz->signal_last = sz->signal_start; in sz_push_full_pulse()
130 sz->signal_start = ktime_get_real(); in sz_push_full_pulse()
132 delta = ktime_us_delta(sz->signal_start, sz->signal_last); in sz_push_full_pulse()
139 rawir.duration -= sz->sum; in sz_push_full_pulse()
143 sz_push(sz, rawir); in sz_push_full_pulse()
[all …]
/drivers/char/
Dmem.c48 unsigned long sz; in size_inside_page() local
50 sz = PAGE_SIZE - (start & (PAGE_SIZE - 1)); in size_inside_page()
52 return min(sz, size); in size_inside_page()
119 ssize_t read, sz; in read_mem() local
133 sz = size_inside_page(p, count); in read_mem()
134 if (sz > 0) { in read_mem()
135 if (clear_user(buf, sz)) in read_mem()
137 buf += sz; in read_mem()
138 p += sz; in read_mem()
139 count -= sz; in read_mem()
[all …]
/drivers/lightnvm/
Dpblk-sysfs.c29 ssize_t sz = 0; in pblk_sysfs_luns_show() local
40 sz += scnprintf(page + sz, PAGE_SIZE - sz, in pblk_sysfs_luns_show()
48 return sz; in pblk_sysfs_luns_show()
94 ssize_t sz; in pblk_sysfs_stats() local
96 sz = snprintf(page, PAGE_SIZE, in pblk_sysfs_stats()
105 return sz; in pblk_sysfs_stats()
117 ssize_t sz = 0; in pblk_sysfs_ppaf() local
123 sz = scnprintf(page, PAGE_SIZE, in pblk_sysfs_ppaf()
133 sz += scnprintf(page + sz, PAGE_SIZE - sz, in pblk_sysfs_ppaf()
145 sz = scnprintf(page, PAGE_SIZE, in pblk_sysfs_ppaf()
[all …]
/drivers/hwtracing/stm/
Dp_sys-t.c269 ssize_t sz; in sys_t_clock_sync() local
271 sz = data->packet(data, m, c, STP_PACKET_DATA, STP_PACKET_TIMESTAMPED, in sys_t_clock_sync()
273 if (sz <= 0) in sys_t_clock_sync()
274 return sz; in sys_t_clock_sync()
278 sz = stm_data_write(data, m, c, false, &payload, sizeof(payload)); in sys_t_clock_sync()
279 if (sz <= 0) in sys_t_clock_sync()
280 return sz; in sys_t_clock_sync()
295 ssize_t sz; in sys_t_write() local
302 sz = sys_t_clock_sync(data, m, c); in sys_t_write()
303 if (sz <= 0) in sys_t_write()
[all …]
Dp_basic.c18 ssize_t sz; in basic_write() local
20 sz = stm_data_write(data, m, c, true, buf, count); in basic_write()
21 if (sz > 0) in basic_write()
24 return sz; in basic_write()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dport.c258 int sz = MLX5_ST_SZ_BYTES(pbmc_reg); in mlx5e_port_query_pbmc() local
262 in = kzalloc(sz, GFP_KERNEL); in mlx5e_port_query_pbmc()
267 err = mlx5_core_access_reg(mdev, in, sz, out, sz, MLX5_REG_PBMC, 0, 0); in mlx5e_port_query_pbmc()
275 int sz = MLX5_ST_SZ_BYTES(pbmc_reg); in mlx5e_port_set_pbmc() local
279 out = kzalloc(sz, GFP_KERNEL); in mlx5e_port_set_pbmc()
284 err = mlx5_core_access_reg(mdev, in, sz, out, sz, MLX5_REG_PBMC, 0, 1); in mlx5e_port_set_pbmc()
293 int sz = MLX5_ST_SZ_BYTES(pptb_reg); in mlx5e_port_query_priority2buffer() local
300 in = kzalloc(sz, GFP_KERNEL); in mlx5e_port_query_priority2buffer()
301 out = kzalloc(sz, GFP_KERNEL); in mlx5e_port_query_priority2buffer()
308 err = mlx5_core_access_reg(mdev, in, sz, out, sz, MLX5_REG_PPTB, 0, 0); in mlx5e_port_query_priority2buffer()
[all …]
/drivers/mtd/parsers/
Dafs.c83 size_t sz; in afs_is_v1() local
86 ret = mtd_read(mtd, ptr, 4, &sz, (u_char *)&magic); in afs_is_v1()
92 if (ret >= 0 && sz != 4) in afs_is_v1()
103 size_t sz; in afs_is_v2() local
106 ret = mtd_read(mtd, ptr, 8, &sz, (u_char *)foot); in afs_is_v2()
112 if (ret >= 0 && sz != 8) in afs_is_v2()
132 size_t sz; in afs_parse_v1_partition() local
143 ret = mtd_read(mtd, ptr, sizeof(fs), &sz, (u_char *)&fs); in afs_parse_v1_partition()
144 if (ret >= 0 && sz != sizeof(fs)) in afs_parse_v1_partition()
182 ret = mtd_read(mtd, iis_ptr, sizeof(iis), &sz, (u_char *)&iis); in afs_parse_v1_partition()
[all …]
/drivers/block/zram/
Dzcomp.c78 ssize_t sz = 0; in zcomp_available_show() local
84 sz += scnprintf(buf + sz, PAGE_SIZE - sz - 2, in zcomp_available_show()
87 sz += scnprintf(buf + sz, PAGE_SIZE - sz - 2, in zcomp_available_show()
97 sz += scnprintf(buf + sz, PAGE_SIZE - sz - 2, in zcomp_available_show()
100 sz += scnprintf(buf + sz, PAGE_SIZE - sz, "\n"); in zcomp_available_show()
101 return sz; in zcomp_available_show()
/drivers/mmc/core/
Dmmc_test.c416 unsigned long sz = size; in mmc_test_map_sg() local
429 if (len > sz) in mmc_test_map_sg()
430 len = sz; in mmc_test_map_sg()
440 sz -= len; in mmc_test_map_sg()
442 if (!sz) in mmc_test_map_sg()
445 } while (sz && repeat); in mmc_test_map_sg()
447 if (sz) in mmc_test_map_sg()
461 unsigned long sz, in mmc_test_map_sg_max_scatter() argument
475 while (sz) { in mmc_test_map_sg_max_scatter()
478 while (sz && cnt) { in mmc_test_map_sg_max_scatter()
[all …]
Dsdio_io.c209 static inline unsigned int _sdio_align_size(unsigned int sz) in _sdio_align_size() argument
216 return ALIGN(sz, 4); in _sdio_align_size()
233 unsigned int sdio_align_size(struct sdio_func *func, unsigned int sz) in sdio_align_size() argument
239 orig_sz = sz; in sdio_align_size()
246 sz = _sdio_align_size(sz); in sdio_align_size()
252 if (sz <= sdio_max_byte_size(func)) in sdio_align_size()
253 return sz; in sdio_align_size()
259 if ((sz % func->cur_blksize) == 0) in sdio_align_size()
260 return sz; in sdio_align_size()
266 blk_sz = ((sz + func->cur_blksize - 1) / in sdio_align_size()
[all …]
/drivers/staging/rtl8723bs/include/
Dosdep_service.h89 #define rtw_mstat_update(flag, status, sz) do {} while (0) argument
91 void *_rtw_zmalloc(u32 sz);
92 void *_rtw_malloc(u32 sz);
93 void _kfree(u8 *pbuf, u32 sz);
95 struct sk_buff *_rtw_skb_alloc(u32 sz);
99 #define rtw_malloc(sz) _rtw_malloc((sz)) argument
100 #define rtw_zmalloc(sz) _rtw_zmalloc((sz)) argument
133 #define _RND(sz, r) ((((sz)+((r)-1))/(r))*(r)) argument
Drtw_recv.h422 static inline u8 *recvframe_pull(union recv_frame *precvframe, sint sz) in recvframe_pull() argument
433 precvframe->u.hdr.rx_data += sz; in recvframe_pull()
437 precvframe->u.hdr.rx_data -= sz; in recvframe_pull()
441 precvframe->u.hdr.len -= sz; in recvframe_pull()
447 static inline u8 *recvframe_put(union recv_frame *precvframe, sint sz) in recvframe_put() argument
460 precvframe->u.hdr.rx_tail += sz; in recvframe_put()
468 precvframe->u.hdr.len += sz; in recvframe_put()
476 static inline u8 *recvframe_pull_tail(union recv_frame *precvframe, sint sz) in recvframe_pull_tail() argument
486 precvframe->u.hdr.rx_tail -= sz; in recvframe_pull_tail()
490 precvframe->u.hdr.rx_tail += sz; in recvframe_pull_tail()
[all …]
/drivers/staging/rtl8712/
Drtl871x_recv.h152 static inline u8 *recvframe_pull(union recv_frame *precvframe, sint sz) in recvframe_pull() argument
159 precvframe->u.hdr.rx_data += sz; in recvframe_pull()
161 precvframe->u.hdr.rx_data -= sz; in recvframe_pull()
164 precvframe->u.hdr.len -= sz; in recvframe_pull()
168 static inline u8 *recvframe_put(union recv_frame *precvframe, sint sz) in recvframe_put() argument
176 precvframe->u.hdr.rx_tail += sz; in recvframe_put()
178 precvframe->u.hdr.rx_tail -= sz; in recvframe_put()
181 precvframe->u.hdr.len += sz; in recvframe_put()
185 static inline u8 *recvframe_pull_tail(union recv_frame *precvframe, sint sz) in recvframe_pull_tail() argument
194 precvframe->u.hdr.rx_tail -= sz; in recvframe_pull_tail()
[all …]
Dieee80211.c162 uint sz = 0; in r8712_generate_ie() local
168 sz += 8; in r8712_generate_ie()
169 ie += sz; in r8712_generate_ie()
172 sz += 2; in r8712_generate_ie()
181 sz += 2; in r8712_generate_ie()
185 dev_network->Ssid.Ssid, &sz); in r8712_generate_ie()
191 dev_network->rates, &sz); in r8712_generate_ie()
193 (dev_network->rates + 8), &sz); in r8712_generate_ie()
196 rate_len, dev_network->rates, &sz); in r8712_generate_ie()
200 (u8 *)&dev_network->Configuration.DSConfig, &sz); in r8712_generate_ie()
[all …]
/drivers/gpu/drm/i915/gt/
Dintel_context_param.c11 int intel_context_set_ring_size(struct intel_context *ce, long sz) in intel_context_set_ring_size() argument
31 ring = intel_engine_create_ring(ce->engine, sz); in intel_context_set_ring_size()
42 ce->ring = __intel_context_ring_size(sz); in intel_context_set_ring_size()
52 long sz = (unsigned long)READ_ONCE(ce->ring); in intel_context_get_ring_size() local
58 sz = ce->ring->size; in intel_context_get_ring_size()
62 return sz; in intel_context_get_ring_size()
/drivers/media/pci/cx18/
Dcx18-firmware.c137 int sz; in load_apu_fw_direct() local
149 sz = fw->size; in load_apu_fw_direct()
170 if (offset + seghdr.size > sz) in load_apu_fw_direct()
371 int sz, retries; in cx18_firmware_init() local
392 sz = load_cpu_fw_direct(CX18_CPU_FIRMWARE, cx->enc_mem, cx); in cx18_firmware_init()
393 if (sz <= 0) in cx18_firmware_init()
394 return sz; in cx18_firmware_init()
400 sz = load_apu_fw_direct(CX18_APU_FIRMWARE, cx->enc_mem, cx, in cx18_firmware_init()
402 if (sz <= 0) in cx18_firmware_init()
403 return sz; in cx18_firmware_init()
[all …]
/drivers/gpu/drm/i915/selftests/
Di915_syncmap.c30 char *buf, unsigned long *sz, in __sync_print() argument
43 len = scnprintf(buf, *sz, "| "); in __sync_print()
45 len = scnprintf(buf, *sz, " "); in __sync_print()
47 *sz -= len; in __sync_print()
49 len = scnprintf(buf, *sz, "%x-> ", idx); in __sync_print()
51 *sz -= len; in __sync_print()
55 len = scnprintf(buf, *sz, "0x%016llx", p->prefix << p->height << SHIFT); in __sync_print()
57 *sz -= len; in __sync_print()
59 scnprintf(buf - X, *sz + X, "%*s", X, "XXXXXXXXXXXXXXXXX"); in __sync_print()
63 len = scnprintf(buf, *sz, " %x:%x,", in __sync_print()
[all …]
/drivers/of/
Dproperty.c221 size_t sz, count; in of_property_read_variable_u8_array() local
225 &sz); in of_property_read_variable_u8_array()
231 sz = sz_min; in of_property_read_variable_u8_array()
233 sz /= sizeof(*out_values); in of_property_read_variable_u8_array()
235 count = sz; in of_property_read_variable_u8_array()
239 return sz; in of_property_read_variable_u8_array()
271 size_t sz, count; in of_property_read_variable_u16_array() local
275 &sz); in of_property_read_variable_u16_array()
281 sz = sz_min; in of_property_read_variable_u16_array()
283 sz /= sizeof(*out_values); in of_property_read_variable_u16_array()
[all …]
/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_object_blt.c244 u32 sz; in igt_fill_blt_thread() local
249 sz = i915_prandom_u32_max_state(total, prng) + 1; in igt_fill_blt_thread()
250 phys_sz = sz % max_phys_size + 1; in igt_fill_blt_thread()
252 sz = round_up(sz, PAGE_SIZE); in igt_fill_blt_thread()
254 phys_sz = min(phys_sz, sz); in igt_fill_blt_thread()
257 phys_sz, sz, val); in igt_fill_blt_thread()
259 obj = huge_gem_object(engine->i915, phys_sz, sz); in igt_fill_blt_thread()
362 u32 sz; in igt_copy_blt_thread() local
367 sz = i915_prandom_u32_max_state(total, prng) + 1; in igt_copy_blt_thread()
368 phys_sz = sz % max_phys_size + 1; in igt_copy_blt_thread()
[all …]
/drivers/infiniband/sw/rdmavt/
Dcq.c208 u32 sz; in rvt_create_cq() local
232 sz = sizeof(struct ib_uverbs_wc) * (entries + 1); in rvt_create_cq()
233 sz += sizeof(*u_wc); in rvt_create_cq()
234 u_wc = vmalloc_user(sz); in rvt_create_cq()
238 sz = sizeof(struct ib_wc) * (entries + 1); in rvt_create_cq()
239 sz += sizeof(*k_wc); in rvt_create_cq()
240 k_wc = vzalloc_node(sz, rdi->dparms.node); in rvt_create_cq()
250 cq->ip = rvt_create_mmap_info(rdi, sz, udata, u_wc); in rvt_create_cq()
385 u32 sz; in rvt_resize_cq() local
399 sz = sizeof(struct ib_uverbs_wc) * (cqe + 1); in rvt_resize_cq()
[all …]
/drivers/block/
Dcryptoloop.c132 const int sz = min(size, LOOP_IV_SECTOR_SIZE); in cryptoloop_transfer() local
136 sg_set_page(&sg_in, in_page, sz, in_offs); in cryptoloop_transfer()
137 sg_set_page(&sg_out, out_page, sz, out_offs); in cryptoloop_transfer()
139 skcipher_request_set_crypt(req, &sg_in, &sg_out, sz, iv); in cryptoloop_transfer()
145 size -= sz; in cryptoloop_transfer()
146 in_offs += sz; in cryptoloop_transfer()
147 out_offs += sz; in cryptoloop_transfer()
/drivers/net/ethernet/mellanox/mlx5/core/
Dport.c78 int sz = MLX5_ST_SZ_BYTES(pcam_reg); in mlx5_query_pcam_reg() local
83 return mlx5_core_access_reg(dev, in, sz, pcam, sz, MLX5_REG_PCAM, 0, 0); in mlx5_query_pcam_reg()
90 int sz = MLX5_ST_SZ_BYTES(mcam_reg); in mlx5_query_mcam_reg() local
95 return mlx5_core_access_reg(dev, in, sz, mcam, sz, MLX5_REG_MCAM, 0, 0); in mlx5_query_mcam_reg()
102 int sz = MLX5_ST_SZ_BYTES(qcam_reg); in mlx5_query_qcam_reg() local
107 return mlx5_core_access_reg(mdev, in, sz, qcam, sz, MLX5_REG_QCAM, 0, 0); in mlx5_query_qcam_reg()
447 u8 port_num, void *out, size_t sz) in mlx5_core_query_ib_ppcnt() argument
452 in = kvzalloc(sz, GFP_KERNEL); in mlx5_core_query_ib_ppcnt()
461 err = mlx5_core_access_reg(dev, in, sz, out, in mlx5_core_query_ib_ppcnt()
462 sz, MLX5_REG_PPCNT, 0, 0); in mlx5_core_query_ib_ppcnt()
[all …]
/drivers/staging/rtl8723bs/os_dep/
Dosdep_service.c25 void *_rtw_malloc(u32 sz) in _rtw_malloc() argument
27 return kmalloc(sz, in_interrupt() ? GFP_ATOMIC : GFP_KERNEL); in _rtw_malloc()
30 void *_rtw_zmalloc(u32 sz) in _rtw_zmalloc() argument
32 void *pbuf = _rtw_malloc(sz); in _rtw_zmalloc()
35 memset(pbuf, 0, sz); in _rtw_zmalloc()
40 inline struct sk_buff *_rtw_skb_alloc(u32 sz) in _rtw_skb_alloc() argument
42 return __dev_alloc_skb(sz, in_interrupt() ? GFP_ATOMIC : GFP_KERNEL); in _rtw_skb_alloc()
/drivers/soc/qcom/
Dllcc-qcom.c145 u32 sz, count; in llcc_slice_getd() local
151 sz = drv_data->cfg_size; in llcc_slice_getd()
153 for (count = 0; cfg && count < sz; count++, cfg++) in llcc_slice_getd()
157 if (count == sz || !cfg) in llcc_slice_getd()
329 u32 sz; in qcom_llcc_cfg_program() local
334 sz = drv_data->cfg_size; in qcom_llcc_cfg_program()
337 for (i = 0; i < sz; i++) { in qcom_llcc_cfg_program()
414 u32 sz; in qcom_llcc_probe() local
449 sz = cfg->size; in qcom_llcc_probe()
451 for (i = 0; i < sz; i++) in qcom_llcc_probe()
[all …]
/drivers/scsi/mpt3sas/
Dmpt3sas_debug.h154 _debug_dump_mf(void *mpi_request, int sz) in _debug_dump_mf() argument
160 for (i = 0; i < sz; i++) { in _debug_dump_mf()
173 _debug_dump_reply(void *mpi_request, int sz) in _debug_dump_reply() argument
179 for (i = 0; i < sz; i++) { in _debug_dump_reply()
192 _debug_dump_config(void *mpi_request, int sz) in _debug_dump_config() argument
198 for (i = 0; i < sz; i++) { in _debug_dump_config()

12345678910>>...13