Home
last modified time | relevance | path

Searched refs:space (Results 1 – 25 of 127) sorted by relevance

123456

/linux-4.19.296/drivers/char/tpm/
Dtpm2-space.c35 static void tpm2_flush_sessions(struct tpm_chip *chip, struct tpm_space *space) in tpm2_flush_sessions() argument
39 for (i = 0; i < ARRAY_SIZE(space->session_tbl); i++) { in tpm2_flush_sessions()
40 if (space->session_tbl[i]) in tpm2_flush_sessions()
41 tpm2_flush_context_cmd(chip, space->session_tbl[i], in tpm2_flush_sessions()
46 int tpm2_init_space(struct tpm_space *space, unsigned int buf_size) in tpm2_init_space() argument
48 space->context_buf = kzalloc(buf_size, GFP_KERNEL); in tpm2_init_space()
49 if (!space->context_buf) in tpm2_init_space()
52 space->session_buf = kzalloc(buf_size, GFP_KERNEL); in tpm2_init_space()
53 if (space->session_buf == NULL) { in tpm2_init_space()
54 kfree(space->context_buf); in tpm2_init_space()
[all …]
Dtpmrm-dev.c11 struct tpm_space space; member
25 rc = tpm2_init_space(&priv->space, TPM2_SPACE_BUFFER_SIZE); in tpmrm_open()
42 tpm2_del_space(fpriv->chip, &priv->space); in tpmrm_release()
54 return tpm_common_write(file, buf, size, off, &priv->space); in tpmrm_write()
/linux-4.19.296/lib/
Dfault-inject.c22 int space; in setup_fault_attr() local
26 &interval, &probability, &space, &times) < 4) { in setup_fault_attr()
35 atomic_set(&attr->space, space); in setup_fault_attr()
48 atomic_read(&attr->space), in fail_dump()
131 if (atomic_read(&attr->space) > size) { in should_fail()
132 atomic_sub(size, &attr->space); in should_fail()
219 if (!debugfs_create_atomic_t("space", mode, dir, &attr->space)) in fault_create_debugfs_attr()
/linux-4.19.296/include/scsi/
Dscsi_transport.h70 scsi_transport_reserve_target(struct scsi_transport_template * t, int space) in scsi_transport_reserve_target() argument
74 t->target_size = t->target_private_offset + space; in scsi_transport_reserve_target()
77 scsi_transport_reserve_device(struct scsi_transport_template * t, int space) in scsi_transport_reserve_device() argument
81 t->device_size = t->device_private_offset + space; in scsi_transport_reserve_device()
/linux-4.19.296/drivers/media/rc/img-ir/
Dimg-ir-sanyo.c94 .space = { 8 /* 4.5ms */ },
99 .space = { 1 /* 562.5 us */ },
104 .space = { 3 /* 1687.5 us */ },
118 .space = { 4 /* 2.25 ms */ },
Dimg-ir-rc6.c94 .space = { 660 },
99 .space = { 370 },
104 .space = { 370 },
Dimg-ir-jvc.c66 .space = { 8 /* 4.22 ms */ },
71 .space = { 1 /* 527.5 us */ },
76 .space = { 3 /* 1.5825 ms +-40 us */ },
Dimg-ir-nec.c142 .space = { 8 /* 4.5ms */ },
147 .space = { 1 /* 562.5 us */ },
152 .space = { 3 /* 1687.5 us */ },
166 .space = { 4 /* 2.25 ms */ },
Dimg-ir-sony.c143 .space = { 1 /* 600 us */ },
148 .space = { 1 /* 600 us */ },
153 .space = { 1 /* 600 us */ },
Dimg-ir-rc5.c68 .space = { 1 },
74 .space = { 1 },
Dimg-ir-sharp.c89 .space = { 680 /* 1 ms period */ },
94 .space = { 1680 /* 2 ms period */ },
/linux-4.19.296/include/linux/
Drcupdate.h332 #define rcu_dereference_sparse(p, space) \ argument
333 ((void)(((typeof(*p) space *)p) == p))
335 #define rcu_dereference_sparse(p, space) argument
338 #define __rcu_access_pointer(p, space) \ argument
341 rcu_dereference_sparse(p, space); \
344 #define __rcu_dereference_check(p, c, space) \ argument
349 rcu_dereference_sparse(p, space); \
352 #define __rcu_dereference_protected(p, c, space) \ argument
355 rcu_dereference_sparse(p, space); \
/linux-4.19.296/fs/xfs/
Dxfs_log_priv.h488 xlog_crack_grant_head_val(int64_t val, int *cycle, int *space) in xlog_crack_grant_head_val() argument
491 *space = val & 0xffffffff; in xlog_crack_grant_head_val()
495 xlog_crack_grant_head(atomic64_t *head, int *cycle, int *space) in xlog_crack_grant_head() argument
497 xlog_crack_grant_head_val(atomic64_read(head), cycle, space); in xlog_crack_grant_head()
501 xlog_assign_grant_head_val(int cycle, int space) in xlog_assign_grant_head_val() argument
503 return ((int64_t)cycle << 32) | space; in xlog_assign_grant_head_val()
507 xlog_assign_grant_head(atomic64_t *head, int cycle, int space) in xlog_assign_grant_head() argument
509 atomic64_set(head, xlog_assign_grant_head_val(cycle, space)); in xlog_assign_grant_head()
/linux-4.19.296/include/uapi/linux/
Dtipc_config.h260 static inline int TLV_OK(const void *tlv, __u16 space) in TLV_OK() argument
271 return (space >= TLV_SPACE(0)) && in TLV_OK()
272 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK()
275 static inline int TLV_CHECK(const void *tlv, __u16 space, __u16 exp_type) in TLV_CHECK() argument
277 return TLV_OK(tlv, space) && in TLV_CHECK()
328 void *data, __u32 space) in TLV_LIST_INIT() argument
331 list->tlv_space = space; in TLV_LIST_INIT()
/linux-4.19.296/drivers/edac/
Di5400_edac.c961 int space, n; in calculate_dimm_size() local
965 space = PAGE_SIZE; in calculate_dimm_size()
966 mem_buffer = p = kmalloc(space, GFP_KERNEL); in calculate_dimm_size()
984 n = snprintf(p, space, "---------------------------" in calculate_dimm_size()
987 space -= n; in calculate_dimm_size()
990 space = PAGE_SIZE; in calculate_dimm_size()
992 n = snprintf(p, space, "dimm %2d ", dimm); in calculate_dimm_size()
994 space -= n; in calculate_dimm_size()
999 n = snprintf(p, space, "%4d MB | ", dinfo->megabytes); in calculate_dimm_size()
1001 space -= n; in calculate_dimm_size()
[all …]
Di7300_edac.c689 int space, n; in print_dimm_size() local
692 space = PAGE_SIZE; in print_dimm_size()
695 n = snprintf(p, space, " "); in print_dimm_size()
697 space -= n; in print_dimm_size()
699 n = snprintf(p, space, "channel %d | ", channel); in print_dimm_size()
701 space -= n; in print_dimm_size()
705 space = PAGE_SIZE; in print_dimm_size()
706 n = snprintf(p, space, "-------------------------------" in print_dimm_size()
709 space -= n; in print_dimm_size()
712 space = PAGE_SIZE; in print_dimm_size()
[all …]
Di5000_edac.c1039 int space, n; in calculate_dimm_size() local
1042 space = PAGE_SIZE; in calculate_dimm_size()
1043 mem_buffer = p = kmalloc(space, GFP_KERNEL); in calculate_dimm_size()
1060 n = snprintf(p, space, "--------------------------" in calculate_dimm_size()
1063 space -= n; in calculate_dimm_size()
1066 space = PAGE_SIZE; in calculate_dimm_size()
1068 n = snprintf(p, space, "slot %2d ", slot); in calculate_dimm_size()
1070 space -= n; in calculate_dimm_size()
1076 n = snprintf(p, space, "%4d MB %dR| ", in calculate_dimm_size()
1079 n = snprintf(p, space, "%4d MB | ", 0); in calculate_dimm_size()
[all …]
/linux-4.19.296/drivers/thunderbolt/
Dctl.c197 enum tb_cfg_space space, u32 offset, in check_config_address() argument
202 if (WARN(space != addr.space, "wrong space (expected %x, got %x\n)", in check_config_address()
203 space, addr.space)) in check_config_address()
813 u64 route, u32 port, enum tb_cfg_space space, in tb_cfg_read_raw() argument
821 .space = space, in tb_cfg_read_raw()
864 res.err = check_config_address(reply.addr, space, offset, length); in tb_cfg_read_raw()
876 u64 route, u32 port, enum tb_cfg_space space, in tb_cfg_write_raw() argument
884 .space = space, in tb_cfg_write_raw()
929 res.err = check_config_address(reply.addr, space, offset, length); in tb_cfg_write_raw()
934 enum tb_cfg_space space, u32 offset, u32 length) in tb_cfg_read() argument
[all …]
Dctl.h131 enum tb_cfg_space space, u32 offset,
135 enum tb_cfg_space space, u32 offset,
138 enum tb_cfg_space space, u32 offset, u32 length);
140 enum tb_cfg_space space, u32 offset, u32 length);
Dtb.h278 enum tb_cfg_space space, u32 offset, u32 length) in tb_sw_read() argument
284 space, in tb_sw_read()
290 enum tb_cfg_space space, u32 offset, u32 length) in tb_sw_write() argument
296 space, in tb_sw_write()
302 enum tb_cfg_space space, u32 offset, u32 length) in tb_port_read() argument
308 space, in tb_port_read()
314 enum tb_cfg_space space, u32 offset, u32 length) in tb_port_write() argument
320 space, in tb_port_write()
/linux-4.19.296/fs/btrfs/
DMakefile10 export.o tree-log.o free-space-cache.o zlib.o lzo.o zstd.o \
13 uuid-tree.o props.o free-space-tree.o tree-checker.o
19 btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += tests/free-space-tests.o \
22 tests/free-space-tree-tests.o tests/extent-map-tests.o
/linux-4.19.296/drivers/media/rc/
Dserial_ir.c230 unsigned int pulse, space; in send_pulse_homebrew_softcarrier() local
235 space = DIV_ROUND_CLOSEST((100 - serial_ir.duty_cycle) * in send_pulse_homebrew_softcarrier()
251 edge = ktime_add_ns(edge, space); in send_pulse_homebrew_softcarrier()
275 static unsigned int ptr, pulse, space; in frbwrite() local
281 ev.duration = space; in frbwrite()
295 space = l; in frbwrite()
301 space += pulse; in frbwrite()
302 if (space > IR_MAX_DURATION) in frbwrite()
303 space = IR_MAX_DURATION; in frbwrite()
304 space += l; in frbwrite()
[all …]
Dir-spi.c27 u16 space; member
59 val = (i % 2) ? idata->space : idata->pulse; in ir_spi_tx()
104 idata->space = 0xffff; in ir_spi_set_duty_cycle()
106 idata->space = 0; in ir_spi_set_duty_cycle()
Dgpio-ir-tx.c73 unsigned int pulse, space; in gpio_ir_tx() local
78 space = DIV_ROUND_CLOSEST((100 - gpio_ir->duty_cycle) * in gpio_ir_tx()
104 edge = ktime_add_ns(edge, space); in gpio_ir_tx()
/linux-4.19.296/crypto/
Dcts.c190 u8 *space; in cts_cbc_decrypt() local
200 space = crypto_cts_reqctx_space(req); in cts_cbc_decrypt()
201 crypto_xor(d + bsize, space, bsize); in cts_cbc_decrypt()
220 skcipher_request_set_crypt(subreq, sg, sg, bsize, space); in cts_cbc_decrypt()
249 u8 *space; in crypto_cts_decrypt() local
265 space = crypto_cts_reqctx_space(req); in crypto_cts_decrypt()
271 memcpy(space, req->iv, bsize); in crypto_cts_decrypt()
273 scatterwalk_map_and_copy(space, req->src, offset - 2 * bsize, in crypto_cts_decrypt()

123456