Home
last modified time | relevance | path

Searched refs:op (Results 1 – 25 of 361) sorted by relevance

12345678910>>...15

/linux-4.19.296/fs/fscache/
Doperation.c23 static void fscache_operation_dummy_cancel(struct fscache_operation *op) in fscache_operation_dummy_cancel() argument
36 struct fscache_operation *op, in fscache_operation_init() argument
41 INIT_WORK(&op->work, fscache_op_work_func); in fscache_operation_init()
42 atomic_set(&op->usage, 1); in fscache_operation_init()
43 op->state = FSCACHE_OP_ST_INITIALISED; in fscache_operation_init()
44 op->debug_id = atomic_inc_return(&fscache_op_debug_id); in fscache_operation_init()
45 op->processor = processor; in fscache_operation_init()
46 op->cancel = cancel ?: fscache_operation_dummy_cancel; in fscache_operation_init()
47 op->release = release; in fscache_operation_init()
48 INIT_LIST_HEAD(&op->pend_link); in fscache_operation_init()
[all …]
Dpage.c191 static void fscache_attr_changed_op(struct fscache_operation *op) in fscache_attr_changed_op() argument
193 struct fscache_object *object = op->object; in fscache_attr_changed_op()
196 _enter("{OBJ%x OP%x}", object->debug_id, op->debug_id); in fscache_attr_changed_op()
206 fscache_op_complete(op, ret < 0); in fscache_attr_changed_op()
208 fscache_op_complete(op, true); in fscache_attr_changed_op()
219 struct fscache_operation *op; in __fscache_attr_changed() local
229 op = kzalloc(sizeof(*op), GFP_KERNEL); in __fscache_attr_changed()
230 if (!op) { in __fscache_attr_changed()
236 fscache_operation_init(cookie, op, fscache_attr_changed_op, NULL, NULL); in __fscache_attr_changed()
237 trace_fscache_page_op(cookie, NULL, op, fscache_page_op_attr_changed); in __fscache_attr_changed()
[all …]
/linux-4.19.296/fs/orangefs/
Dwaitqueue.c20 static int wait_for_matching_downcall(struct orangefs_kernel_op_s *op,
23 __acquires(op->lock);
24 static void orangefs_clean_up_interrupted_operation(struct orangefs_kernel_op_s *op)
25 __releases(op->lock);
36 struct orangefs_kernel_op_s *op, *tmp; in purge_waiting_ops() local
39 list_for_each_entry_safe(op, tmp, &orangefs_request_list, list) { in purge_waiting_ops()
42 llu(op->tag), in purge_waiting_ops()
43 get_opname_string(op)); in purge_waiting_ops()
44 set_op_state_purged(op); in purge_waiting_ops()
48 get_opname_string(op), in purge_waiting_ops()
[all …]
Dorangefs-kernel.h142 #define set_op_state_waiting(op) ((op)->op_state = OP_VFS_STATE_WAITING) argument
143 #define set_op_state_inprogress(op) ((op)->op_state = OP_VFS_STATE_INPROGR) argument
144 #define set_op_state_given_up(op) ((op)->op_state = OP_VFS_STATE_GIVEN_UP) argument
145 static inline void set_op_state_serviced(struct orangefs_kernel_op_s *op) in set_op_state_serviced() argument
147 op->op_state = OP_VFS_STATE_SERVICED; in set_op_state_serviced()
148 complete(&op->waitq); in set_op_state_serviced()
151 #define op_state_waiting(op) ((op)->op_state & OP_VFS_STATE_WAITING) argument
152 #define op_state_in_progress(op) ((op)->op_state & OP_VFS_STATE_INPROGR) argument
153 #define op_state_serviced(op) ((op)->op_state & OP_VFS_STATE_SERVICED) argument
154 #define op_state_purged(op) ((op)->op_state & OP_VFS_STATE_PURGED) argument
[all …]
Ddevorangefs-req.c48 static void orangefs_devreq_add_op(struct orangefs_kernel_op_s *op) in orangefs_devreq_add_op() argument
50 int index = hash_func(op->tag, hash_table_size); in orangefs_devreq_add_op()
52 list_add_tail(&op->list, &orangefs_htable_ops_in_progress[index]); in orangefs_devreq_add_op()
61 struct orangefs_kernel_op_s *op, *next; in orangefs_devreq_remove_op() local
67 list_for_each_entry_safe(op, in orangefs_devreq_remove_op()
71 if (op->tag == tag && !op_state_purged(op) && in orangefs_devreq_remove_op()
72 !op_state_given_up(op)) { in orangefs_devreq_remove_op()
73 list_del_init(&op->list); in orangefs_devreq_remove_op()
75 return op; in orangefs_devreq_remove_op()
162 struct orangefs_kernel_op_s *op, *temp; in orangefs_devreq_read() local
[all …]
Ddir.c63 struct orangefs_kernel_op_s *op) in do_readdir() argument
74 op->uses_shared_memory = 1; in do_readdir()
75 op->upcall.req.readdir.refn = oi->refn; in do_readdir()
76 op->upcall.req.readdir.token = od->token; in do_readdir()
77 op->upcall.req.readdir.max_dirent_count = in do_readdir()
87 op->upcall.req.readdir.buf_index = bufi; in do_readdir()
89 r = service_operation(op, "orangefs_readdir", in do_readdir()
94 if (op_state_purged(op)) { in do_readdir()
96 vfree(op->downcall.trailer_buf); in do_readdir()
99 vfree(op->downcall.trailer_buf); in do_readdir()
[all …]
/linux-4.19.296/drivers/xen/
Defi.c40 #define efi_data(op) (op.u.efi_runtime_call) argument
44 struct xen_platform_op op = INIT_EFI_OP(get_time); in xen_efi_get_time() local
46 if (HYPERVISOR_platform_op(&op) < 0) in xen_efi_get_time()
50 BUILD_BUG_ON(sizeof(*tm) != sizeof(efi_data(op).u.get_time.time)); in xen_efi_get_time()
51 memcpy(tm, &efi_data(op).u.get_time.time, sizeof(*tm)); in xen_efi_get_time()
55 tc->resolution = efi_data(op).u.get_time.resolution; in xen_efi_get_time()
56 tc->accuracy = efi_data(op).u.get_time.accuracy; in xen_efi_get_time()
57 tc->sets_to_zero = !!(efi_data(op).misc & in xen_efi_get_time()
61 return efi_data(op).status; in xen_efi_get_time()
67 struct xen_platform_op op = INIT_EFI_OP(set_time); in xen_efi_set_time() local
[all …]
Dfallback.c10 struct evtchn_op op; in xen_event_channel_op_compat() local
13 op.cmd = cmd; in xen_event_channel_op_compat()
14 memcpy(&op.u, arg, sizeof(op.u)); in xen_event_channel_op_compat()
15 rc = _hypercall1(int, event_channel_op_compat, &op); in xen_event_channel_op_compat()
27 memcpy(arg, &op.u.eop, sizeof(op.u.eop)); \ in xen_event_channel_op_compat()
49 struct physdev_op op; in xen_physdev_op_compat() local
52 op.cmd = cmd; in xen_physdev_op_compat()
53 memcpy(&op.u, arg, sizeof(op.u)); in xen_physdev_op_compat()
54 rc = _hypercall1(int, physdev_op_compat, &op); in xen_physdev_op_compat()
66 memcpy(arg, &op.u.fld, sizeof(op.u.fld)); \ in xen_physdev_op_compat()
Dgntalloc.c121 static int add_grefs(struct ioctl_gntalloc_alloc_gref *op, in add_grefs() argument
129 readonly = !(op->flags & GNTALLOC_FLAG_WRITABLE); in add_grefs()
130 for (i = 0; i < op->count; i++) { in add_grefs()
139 gref->file_index = op->index + i * PAGE_SIZE; in add_grefs()
147 rc = gnttab_grant_foreign_access(op->domid, in add_grefs()
165 gref_size -= (op->count - i); in add_grefs()
276 struct ioctl_gntalloc_alloc_gref op; in gntalloc_ioctl_alloc() local
281 if (copy_from_user(&op, arg, sizeof(op))) { in gntalloc_ioctl_alloc()
286 gref_ids = kcalloc(op.count, sizeof(gref_ids[0]), GFP_KERNEL); in gntalloc_ioctl_alloc()
298 if (gref_size + op.count > limit) { in gntalloc_ioctl_alloc()
[all …]
/linux-4.19.296/fs/dlm/
Dplock.c64 static void dlm_release_plock_op(struct plock_op *op) in dlm_release_plock_op() argument
66 kfree(op->data); in dlm_release_plock_op()
67 kfree(op); in dlm_release_plock_op()
70 static void send_op(struct plock_op *op) in send_op() argument
72 set_version(&op->info); in send_op()
73 INIT_LIST_HEAD(&op->list); in send_op()
75 list_add_tail(&op->list, &send_list); in send_op()
88 struct plock_op *op; in do_unlock_close() local
90 op = kzalloc(sizeof(*op), GFP_NOFS); in do_unlock_close()
91 if (!op) in do_unlock_close()
[all …]
/linux-4.19.296/lib/zlib_inflate/
Dinffast.c89 unsigned op; /* code bits, operation, extra bits, or */ in inflate_fast() local
127 op = (unsigned)(this.bits); in inflate_fast()
128 hold >>= op; in inflate_fast()
129 bits -= op; in inflate_fast()
130 op = (unsigned)(this.op); in inflate_fast()
131 if (op == 0) { /* literal */ in inflate_fast()
134 else if (op & 16) { /* length base */ in inflate_fast()
136 op &= 15; /* number of extra bits */ in inflate_fast()
137 if (op) { in inflate_fast()
138 if (bits < op) { in inflate_fast()
[all …]
/linux-4.19.296/lib/lzo/
Dlzo1x_decompress_safe.c23 #define HAVE_OP(x) ((size_t)(op_end - op) >= (size_t)(x))
41 unsigned char *op; in lzo1x_decompress_safe() local
49 op = out; in lzo1x_decompress_safe()
87 unsigned char *oe = op + t; in lzo1x_decompress_safe()
89 COPY8(op, ip); in lzo1x_decompress_safe()
90 op += 8; in lzo1x_decompress_safe()
92 COPY8(op, ip); in lzo1x_decompress_safe()
93 op += 8; in lzo1x_decompress_safe()
97 op = oe; in lzo1x_decompress_safe()
104 *op++ = *ip++; in lzo1x_decompress_safe()
[all …]
Dlzo1x_compress.c26 unsigned char *op; in lzo1x_1_do_compress() local
32 op = out; in lzo1x_1_do_compress()
58 op[-2] |= t; in lzo1x_1_do_compress()
59 COPY4(op, ii); in lzo1x_1_do_compress()
60 op += t; in lzo1x_1_do_compress()
62 *op++ = (t - 3); in lzo1x_1_do_compress()
63 COPY8(op, ii); in lzo1x_1_do_compress()
64 COPY8(op + 8, ii + 8); in lzo1x_1_do_compress()
65 op += t; in lzo1x_1_do_compress()
68 *op++ = (t - 3); in lzo1x_1_do_compress()
[all …]
/linux-4.19.296/drivers/xen/xen-pciback/
Dpciback_ops.c145 struct pci_dev *dev, struct xen_pci_op *op) in xen_pcibk_enable_msi() argument
164 op->value = 0; in xen_pcibk_enable_msi()
171 op->value = dev->irq ? xen_pirq_from_irq(dev->irq) : 0; in xen_pcibk_enable_msi()
174 op->value); in xen_pcibk_enable_msi()
185 struct pci_dev *dev, struct xen_pci_op *op) in xen_pcibk_disable_msi() argument
200 op->value = dev->irq ? xen_pirq_from_irq(dev->irq) : 0; in xen_pcibk_disable_msi()
203 op->value); in xen_pcibk_disable_msi()
209 struct pci_dev *dev, struct xen_pci_op *op) in xen_pcibk_enable_msix() argument
220 if (op->value > SH_INFO_MAX_VEC) in xen_pcibk_enable_msix()
235 entries = kmalloc_array(op->value, sizeof(*entries), GFP_KERNEL); in xen_pcibk_enable_msix()
[all …]
/linux-4.19.296/fs/cachefiles/
Drdwr.c30 struct fscache_retrieval *op = monitor->op; in cachefiles_read_waiter() local
55 ASSERT(op); in cachefiles_read_waiter()
62 fscache_get_retrieval(op); in cachefiles_read_waiter()
64 object = container_of(op->op.object, struct cachefiles_object, fscache); in cachefiles_read_waiter()
66 list_add_tail(&monitor->op_link, &op->to_do); in cachefiles_read_waiter()
67 fscache_enqueue_retrieval(op); in cachefiles_read_waiter()
70 fscache_put_retrieval(op); in cachefiles_read_waiter()
161 struct fscache_retrieval *op; in cachefiles_read_copier() local
164 op = container_of(_op, struct fscache_retrieval, op); in cachefiles_read_copier()
165 object = container_of(op->op.object, in cachefiles_read_copier()
[all …]
/linux-4.19.296/lib/lz4/
Dlz4_decompress.c81 BYTE *op = (BYTE *) dest; in LZ4_decompress_generic() local
82 BYTE * const oend = op + outputSize; in LZ4_decompress_generic()
84 BYTE *oexit = op + targetOutputSize; in LZ4_decompress_generic()
129 (size_t)(op + length) < (size_t)(op))) { in LZ4_decompress_generic()
142 cpy = op + length; in LZ4_decompress_generic()
184 memcpy(op, ip, length); in LZ4_decompress_generic()
186 op += length; in LZ4_decompress_generic()
191 LZ4_wildCopy(op, ip, cpy); in LZ4_decompress_generic()
193 op = cpy; in LZ4_decompress_generic()
198 match = op - offset; in LZ4_decompress_generic()
[all …]
Dlz4_compress.c200 BYTE *op = (BYTE *) dest; in LZ4_compress_generic() local
201 BYTE * const olimit = op + maxOutputSize; in LZ4_compress_generic()
304 token = op++; in LZ4_compress_generic()
308 (unlikely(op + litLength + in LZ4_compress_generic()
319 *op++ = 255; in LZ4_compress_generic()
320 *op++ = (BYTE)len; in LZ4_compress_generic()
325 LZ4_wildCopy(op, anchor, op + litLength); in LZ4_compress_generic()
326 op += litLength; in LZ4_compress_generic()
331 LZ4_writeLE16(op, (U16)(ip - match)); in LZ4_compress_generic()
332 op += 2; in LZ4_compress_generic()
[all …]
/linux-4.19.296/include/asm-generic/
Datomic64.h27 #define ATOMIC64_OP(op) \ argument
28 extern void atomic64_##op(long long a, atomic64_t *v);
30 #define ATOMIC64_OP_RETURN(op) \ argument
31 extern long long atomic64_##op##_return(long long a, atomic64_t *v);
33 #define ATOMIC64_FETCH_OP(op) \ argument
34 extern long long atomic64_fetch_##op(long long a, atomic64_t *v);
36 #define ATOMIC64_OPS(op) ATOMIC64_OP(op) ATOMIC64_OP_RETURN(op) ATOMIC64_FETCH_OP(op) argument
42 #define ATOMIC64_OPS(op) ATOMIC64_OP(op) ATOMIC64_FETCH_OP(op) argument
/linux-4.19.296/include/linux/
Dfscache-cache.h87 typedef void (*fscache_operation_release_t)(struct fscache_operation *op);
88 typedef void (*fscache_operation_processor_t)(struct fscache_operation *op);
89 typedef void (*fscache_operation_cancel_t)(struct fscache_operation *op);
148 struct fscache_operation op; member
158 typedef int (*fscache_page_retrieval_func_t)(struct fscache_retrieval *op,
162 typedef int (*fscache_pages_retrieval_func_t)(struct fscache_retrieval *op,
174 struct fscache_retrieval *fscache_get_retrieval(struct fscache_retrieval *op) in fscache_get_retrieval() argument
176 atomic_inc(&op->op.usage); in fscache_get_retrieval()
177 return op; in fscache_get_retrieval()
186 static inline void fscache_enqueue_retrieval(struct fscache_retrieval *op) in fscache_enqueue_retrieval() argument
[all …]
Dfwnode.h110 #define fwnode_has_op(fwnode, op) \ argument
111 ((fwnode) && (fwnode)->ops && (fwnode)->ops->op)
112 #define fwnode_call_int_op(fwnode, op, ...) \ argument
113 (fwnode ? (fwnode_has_op(fwnode, op) ? \
114 (fwnode)->ops->op(fwnode, ## __VA_ARGS__) : -ENXIO) : \
116 #define fwnode_call_bool_op(fwnode, op, ...) \ argument
117 (fwnode ? (fwnode_has_op(fwnode, op) ? \
118 (fwnode)->ops->op(fwnode, ## __VA_ARGS__) : false) : \
120 #define fwnode_call_ptr_op(fwnode, op, ...) \ argument
121 (fwnode_has_op(fwnode, op) ? \
[all …]
/linux-4.19.296/drivers/media/dvb-frontends/
Dmt352.c167 struct dtv_frontend_properties *op = &fe->dtv_property_cache; in mt352_set_parameters() local
174 switch (op->code_rate_HP) { in mt352_set_parameters()
194 switch (op->code_rate_LP) { in mt352_set_parameters()
211 if (op->hierarchy == HIERARCHY_AUTO || in mt352_set_parameters()
212 op->hierarchy == HIERARCHY_NONE) in mt352_set_parameters()
219 switch (op->modulation) { in mt352_set_parameters()
233 switch (op->transmission_mode) { in mt352_set_parameters()
244 switch (op->guard_interval) { in mt352_set_parameters()
261 switch (op->hierarchy) { in mt352_set_parameters()
287 mt352_calc_nominal_rate(state, op->bandwidth_hz, buf+4); in mt352_set_parameters()
[all …]
/linux-4.19.296/lib/
Datomic64.c73 #define ATOMIC64_OP(op, c_op) \ argument
74 void atomic64_##op(long long a, atomic64_t *v) \
83 EXPORT_SYMBOL(atomic64_##op);
85 #define ATOMIC64_OP_RETURN(op, c_op) \ argument
86 long long atomic64_##op##_return(long long a, atomic64_t *v) \
97 EXPORT_SYMBOL(atomic64_##op##_return);
99 #define ATOMIC64_FETCH_OP(op, c_op) \ argument
100 long long atomic64_fetch_##op(long long a, atomic64_t *v) \
112 EXPORT_SYMBOL(atomic64_fetch_##op);
114 #define ATOMIC64_OPS(op, c_op) \ argument
[all …]
Dasn1_decoder.c179 enum asn1_opcode op; in asn1_ber_decoder() local
209 op = machine[pc]; in asn1_ber_decoder()
210 if (unlikely(pc + asn1_op_lengths[op] > machlen)) in asn1_ber_decoder()
216 if (op <= ASN1_OP__MATCHES_TAG) { in asn1_ber_decoder()
220 if ((op & ASN1_OP_MATCH__COND && flags & FLAG_MATCHED) || in asn1_ber_decoder()
221 (op & ASN1_OP_MATCH__SKIP && dp == datalen)) { in asn1_ber_decoder()
223 pc += asn1_op_lengths[op]; in asn1_ber_decoder()
237 if (op & ASN1_OP_MATCH__ANY) { in asn1_ber_decoder()
254 if (op & ASN1_OP_MATCH__SKIP) { in asn1_ber_decoder()
255 pc += asn1_op_lengths[op]; in asn1_ber_decoder()
[all …]
/linux-4.19.296/fs/nfsd/
Dfault_inject.c36 struct nfsd_fault_inject_op *op = file_inode(file)->i_private; in fault_inject_read() local
39 val = op->get(); in fault_inject_read()
52 struct nfsd_fault_inject_op *op = file_inode(file)->i_private; in fault_inject_write() local
69 val = op->set_clnt(&sa, size); in fault_inject_write()
72 op->file, write_buf, val); in fault_inject_write()
76 pr_info("NFSD Fault Injection: %s (all)", op->file); in fault_inject_write()
79 op->file, val); in fault_inject_write()
80 val = op->set_val(val); in fault_inject_write()
81 pr_info("NFSD: %s: found %llu", op->file, val); in fault_inject_write()
133 struct nfsd_fault_inject_op *op; in nfsd_fault_inject_init() local
[all …]
/linux-4.19.296/drivers/i2c/busses/
Di2c-parport-light.c62 static inline void line_set(int state, const struct lineop *op) in line_set() argument
64 u8 oldval = port_read(op->port); in line_set()
67 if ((op->inverted && !state) || (!op->inverted && state)) in line_set()
68 port_write(op->port, oldval | op->val); in line_set()
70 port_write(op->port, oldval & ~op->val); in line_set()
73 static inline int line_get(const struct lineop *op) in line_get() argument
75 u8 oldval = port_read(op->port); in line_get()
77 return ((op->inverted && (oldval & op->val) != op->val) in line_get()
78 || (!op->inverted && (oldval & op->val) == op->val)); in line_get()

12345678910>>...15