/linux-4.19.296/include/linux/ |
D | srcu.h | 41 int __init_srcu_struct(struct srcu_struct *sp, const char *name, 44 #define init_srcu_struct(sp) \ argument 48 __init_srcu_struct((sp), #sp, &__srcu_key); \ 54 int init_srcu_struct(struct srcu_struct *sp); 70 void call_srcu(struct srcu_struct *sp, struct rcu_head *head, 72 void _cleanup_srcu_struct(struct srcu_struct *sp, bool quiesced); 73 int __srcu_read_lock(struct srcu_struct *sp) __acquires(sp); 74 void __srcu_read_unlock(struct srcu_struct *sp, int idx) __releases(sp); 75 void synchronize_srcu(struct srcu_struct *sp); 84 static inline void cleanup_srcu_struct(struct srcu_struct *sp) in cleanup_srcu_struct() argument [all …]
|
D | srcutiny.h | 63 void synchronize_srcu(struct srcu_struct *sp); 71 static inline int __srcu_read_lock(struct srcu_struct *sp) in __srcu_read_lock() argument 75 idx = READ_ONCE(sp->srcu_idx); in __srcu_read_lock() 76 WRITE_ONCE(sp->srcu_lock_nesting[idx], sp->srcu_lock_nesting[idx] + 1); in __srcu_read_lock() 80 static inline void synchronize_srcu_expedited(struct srcu_struct *sp) in synchronize_srcu_expedited() argument 82 synchronize_srcu(sp); in synchronize_srcu_expedited() 85 static inline void srcu_barrier(struct srcu_struct *sp) in srcu_barrier() argument 87 synchronize_srcu(sp); in srcu_barrier() 91 static inline void srcu_torture_stats_print(struct srcu_struct *sp, in srcu_torture_stats_print() argument 96 idx = READ_ONCE(sp->srcu_idx) & 0x1; in srcu_torture_stats_print() [all …]
|
D | host1x.h | 152 u32 host1x_syncpt_id(struct host1x_syncpt *sp); 153 u32 host1x_syncpt_read_min(struct host1x_syncpt *sp); 154 u32 host1x_syncpt_read_max(struct host1x_syncpt *sp); 155 u32 host1x_syncpt_read(struct host1x_syncpt *sp); 156 int host1x_syncpt_incr(struct host1x_syncpt *sp); 157 u32 host1x_syncpt_incr_max(struct host1x_syncpt *sp, u32 incrs); 158 int host1x_syncpt_wait(struct host1x_syncpt *sp, u32 thresh, long timeout, 162 void host1x_syncpt_free(struct host1x_syncpt *sp); 164 struct host1x_syncpt_base *host1x_syncpt_get_base(struct host1x_syncpt *sp);
|
D | srcutree.h | 54 struct srcu_struct *sp; member 140 void synchronize_srcu_expedited(struct srcu_struct *sp); 141 void srcu_barrier(struct srcu_struct *sp); 142 void srcu_torture_stats_print(struct srcu_struct *sp, char *tt, char *tf);
|
/linux-4.19.296/drivers/misc/ibmasm/ |
D | module.c | 68 struct service_processor *sp; in ibmasm_init_one() local 81 sp = kzalloc(sizeof(struct service_processor), GFP_KERNEL); in ibmasm_init_one() 82 if (sp == NULL) { in ibmasm_init_one() 88 spin_lock_init(&sp->lock); in ibmasm_init_one() 89 INIT_LIST_HEAD(&sp->command_queue); in ibmasm_init_one() 91 pci_set_drvdata(pdev, (void *)sp); in ibmasm_init_one() 92 sp->dev = &pdev->dev; in ibmasm_init_one() 93 sp->number = pdev->bus->number; in ibmasm_init_one() 94 snprintf(sp->dirname, IBMASM_NAME_SIZE, "%d", sp->number); in ibmasm_init_one() 95 snprintf(sp->devname, IBMASM_NAME_SIZE, "%s%d", DRIVER_NAME, sp->number); in ibmasm_init_one() [all …]
|
D | command.c | 30 static void exec_next_command(struct service_processor *sp); 34 struct command *ibmasm_new_command(struct service_processor *sp, size_t buffer_size) in ibmasm_new_command() argument 54 cmd->lock = &sp->lock; in ibmasm_new_command() 77 static void enqueue_command(struct service_processor *sp, struct command *cmd) in enqueue_command() argument 79 list_add_tail(&cmd->queue_node, &sp->command_queue); in enqueue_command() 82 static struct command *dequeue_command(struct service_processor *sp) in dequeue_command() argument 87 if (list_empty(&sp->command_queue)) in dequeue_command() 90 next = sp->command_queue.next; in dequeue_command() 97 static inline void do_exec_command(struct service_processor *sp) in do_exec_command() argument 103 if (ibmasm_send_i2o_message(sp)) { in do_exec_command() [all …]
|
D | remote.h | 88 #define mouse_addr(sp) (sp->base_address + CONDOR_MOUSE_DATA) argument 89 #define display_width(sp) (mouse_addr(sp) + CONDOR_INPUT_DISPLAY_RESX) argument 90 #define display_height(sp) (mouse_addr(sp) + CONDOR_INPUT_DISPLAY_RESY) argument 91 #define display_depth(sp) (mouse_addr(sp) + CONDOR_INPUT_DISPLAY_BITS) argument 92 #define desktop_info(sp) (mouse_addr(sp) + CONDOR_INPUT_DESKTOP_INFO) argument 93 #define vnc_status(sp) (mouse_addr(sp) + CONDOR_OUTPUT_VNC_STATUS) argument 94 #define isr_control(sp) (mouse_addr(sp) + CONDOR_MOUSE_ISR_CONTROL) argument 96 #define mouse_interrupt_pending(sp) readl(mouse_addr(sp) + CONDOR_MOUSE_ISR_STATUS) argument 97 #define clear_mouse_interrupt(sp) writel(0, mouse_addr(sp) + CONDOR_MOUSE_ISR_STATUS) argument 98 #define enable_mouse_interrupts(sp) writel(1, mouse_addr(sp) + CONDOR_MOUSE_ISR_CONTROL) argument [all …]
|
D | ibmasm.h | 171 struct command *ibmasm_new_command(struct service_processor *sp, size_t buffer_size); 172 void ibmasm_exec_command(struct service_processor *sp, struct command *cmd); 174 void ibmasm_receive_command_response(struct service_processor *sp, void *response, size_t size); 177 int ibmasm_event_buffer_init(struct service_processor *sp); 178 void ibmasm_event_buffer_exit(struct service_processor *sp); 179 void ibmasm_receive_event(struct service_processor *sp, void *data, unsigned int data_size); 180 void ibmasm_event_reader_register(struct service_processor *sp, struct event_reader *reader); 181 void ibmasm_event_reader_unregister(struct service_processor *sp, struct event_reader *reader); 182 int ibmasm_get_next_event(struct service_processor *sp, struct event_reader *reader); 188 int ibmasm_heartbeat_init(struct service_processor *sp); [all …]
|
D | event.c | 40 static void wake_up_event_readers(struct service_processor *sp) in wake_up_event_readers() argument 44 list_for_each_entry(reader, &sp->event_buffer->readers, node) in wake_up_event_readers() 57 void ibmasm_receive_event(struct service_processor *sp, void *data, unsigned int data_size) in ibmasm_receive_event() argument 59 struct event_buffer *buffer = sp->event_buffer; in ibmasm_receive_event() 65 spin_lock_irqsave(&sp->lock, flags); in ibmasm_receive_event() 75 spin_unlock_irqrestore(&sp->lock, flags); in ibmasm_receive_event() 77 wake_up_event_readers(sp); in ibmasm_receive_event() 91 int ibmasm_get_next_event(struct service_processor *sp, struct event_reader *reader) in ibmasm_get_next_event() argument 93 struct event_buffer *buffer = sp->event_buffer; in ibmasm_get_next_event() 107 spin_lock_irqsave(&sp->lock, flags); in ibmasm_get_next_event() [all …]
|
D | uart.c | 34 void ibmasm_register_uart(struct service_processor *sp) in ibmasm_register_uart() argument 39 iomem_base = sp->base_address + SCOUT_COM_B_BASE; in ibmasm_register_uart() 45 dev_info(sp->dev, "IBM SP UART not registered, owned by service processor\n"); in ibmasm_register_uart() 46 sp->serial_line = -1; in ibmasm_register_uart() 51 uart.port.irq = sp->irq; in ibmasm_register_uart() 57 sp->serial_line = serial8250_register_8250_port(&uart); in ibmasm_register_uart() 58 if (sp->serial_line < 0) { in ibmasm_register_uart() 59 dev_err(sp->dev, "Failed to register serial port\n"); in ibmasm_register_uart() 62 enable_uart_interrupts(sp->base_address); in ibmasm_register_uart() 65 void ibmasm_unregister_uart(struct service_processor *sp) in ibmasm_unregister_uart() argument [all …]
|
D | lowlevel.c | 33 int ibmasm_send_i2o_message(struct service_processor *sp) in ibmasm_send_i2o_message() argument 38 struct command *command = sp->current_command; in ibmasm_send_i2o_message() 40 mfa = get_mfa_inbound(sp->base_address); in ibmasm_send_i2o_message() 47 message = get_i2o_message(sp->base_address, mfa); in ibmasm_send_i2o_message() 52 set_mfa_inbound(sp->base_address, mfa); in ibmasm_send_i2o_message() 60 struct service_processor *sp = (struct service_processor *)dev_id; in ibmasm_interrupt_handler() local 61 void __iomem *base_address = sp->base_address; in ibmasm_interrupt_handler() 69 if (mouse_interrupt_pending(sp)) { in ibmasm_interrupt_handler() 70 ibmasm_handle_mouse_interrupt(sp); in ibmasm_interrupt_handler() 71 clear_mouse_interrupt(sp); in ibmasm_interrupt_handler() [all …]
|
D | ibmasmfs.c | 211 void ibmasmfs_add_sp(struct service_processor *sp) in ibmasmfs_add_sp() argument 213 list_add(&sp->node, &service_processors); in ibmasmfs_add_sp() 218 struct service_processor *sp; member 224 struct service_processor *sp; member 231 struct service_processor *sp; member 248 command_data->sp = inode->i_private; in command_file_open() 278 spin_lock_irqsave(&command_data->sp->lock, flags); in command_file_read() 281 spin_unlock_irqrestore(&command_data->sp->lock, flags); in command_file_read() 285 spin_unlock_irqrestore(&command_data->sp->lock, flags); in command_file_read() 318 cmd = ibmasm_new_command(command_data->sp, count); in command_file_write() [all …]
|
D | heartbeat.c | 65 int ibmasm_heartbeat_init(struct service_processor *sp) in ibmasm_heartbeat_init() argument 67 sp->heartbeat = ibmasm_new_command(sp, HEARTBEAT_BUFFER_SIZE); in ibmasm_heartbeat_init() 68 if (sp->heartbeat == NULL) in ibmasm_heartbeat_init() 74 void ibmasm_heartbeat_exit(struct service_processor *sp) in ibmasm_heartbeat_exit() argument 79 ibmasm_wait_for_response(sp->heartbeat, IBMASM_CMD_TIMEOUT_NORMAL); in ibmasm_heartbeat_exit() 82 command_put(sp->heartbeat); in ibmasm_heartbeat_exit() 85 void ibmasm_receive_heartbeat(struct service_processor *sp, void *message, size_t size) in ibmasm_receive_heartbeat() argument 87 struct command *cmd = sp->heartbeat; in ibmasm_receive_heartbeat() 100 ibmasm_exec_command(sp, cmd); in ibmasm_receive_heartbeat()
|
D | dot_command.c | 31 void ibmasm_receive_message(struct service_processor *sp, void *message, int message_size) in ibmasm_receive_message() argument 48 ibmasm_receive_event(sp, message, size); in ibmasm_receive_message() 51 ibmasm_receive_command_response(sp, message, size); in ibmasm_receive_message() 54 ibmasm_receive_heartbeat(sp, message, size); in ibmasm_receive_message() 57 dev_err(sp->dev, "Received unknown message from service processor\n"); in ibmasm_receive_message() 68 int ibmasm_send_driver_vpd(struct service_processor *sp) in ibmasm_send_driver_vpd() argument 76 command = ibmasm_new_command(sp, INIT_BUFFER_SIZE); in ibmasm_send_driver_vpd() 99 ibmasm_exec_command(sp, command); in ibmasm_send_driver_vpd() 124 int ibmasm_send_os_state(struct service_processor *sp, int os_state) in ibmasm_send_os_state() argument 130 cmd = ibmasm_new_command(sp, sizeof(struct os_state_command)); in ibmasm_send_os_state() [all …]
|
D | remote.c | 184 void ibmasm_handle_mouse_interrupt(struct service_processor *sp) in ibmasm_handle_mouse_interrupt() argument 190 reader = get_queue_reader(sp); in ibmasm_handle_mouse_interrupt() 191 writer = get_queue_writer(sp); in ibmasm_handle_mouse_interrupt() 194 memcpy_fromio(&input, get_queue_entry(sp, reader), in ibmasm_handle_mouse_interrupt() 199 send_mouse_event(sp->remote.mouse_dev, &input); in ibmasm_handle_mouse_interrupt() 201 send_keyboard_event(sp->remote.keybd_dev, &input); in ibmasm_handle_mouse_interrupt() 205 reader = advance_queue_reader(sp, reader); in ibmasm_handle_mouse_interrupt() 206 writer = get_queue_writer(sp); in ibmasm_handle_mouse_interrupt() 210 int ibmasm_init_remote_input_dev(struct service_processor *sp) in ibmasm_init_remote_input_dev() argument 214 struct pci_dev *pdev = to_pci_dev(sp->dev); in ibmasm_init_remote_input_dev() [all …]
|
D | r_heartbeat.c | 49 void ibmasm_init_reverse_heartbeat(struct service_processor *sp, struct reverse_heartbeat *rhb) in ibmasm_init_reverse_heartbeat() argument 61 int ibmasm_start_reverse_heartbeat(struct service_processor *sp, struct reverse_heartbeat *rhb) in ibmasm_start_reverse_heartbeat() argument 67 cmd = ibmasm_new_command(sp, sizeof rhb_dot_cmd); in ibmasm_start_reverse_heartbeat() 74 ibmasm_exec_command(sp, cmd); in ibmasm_start_reverse_heartbeat()
|
/linux-4.19.296/fs/nfs/ |
D | nfs4state.c | 200 struct nfs4_state_owner *sp; in nfs4_get_renew_cred_server_locked() local 206 sp = rb_entry(pos, struct nfs4_state_owner, so_server_node); in nfs4_get_renew_cred_server_locked() 207 if (list_empty(&sp->so_states)) in nfs4_get_renew_cred_server_locked() 209 cred = get_rpccred(sp->so_cred); in nfs4_get_renew_cred_server_locked() 421 struct nfs4_state_owner *sp; in nfs4_find_state_owner_locked() local 425 sp = rb_entry(parent, struct nfs4_state_owner, so_server_node); in nfs4_find_state_owner_locked() 427 if (cred < sp->so_cred) in nfs4_find_state_owner_locked() 429 else if (cred > sp->so_cred) in nfs4_find_state_owner_locked() 432 if (!list_empty(&sp->so_lru)) in nfs4_find_state_owner_locked() 433 list_del_init(&sp->so_lru); in nfs4_find_state_owner_locked() [all …]
|
/linux-4.19.296/include/trace/events/ |
D | sctp.h | 13 TP_PROTO(struct sctp_transport *sp, 16 TP_ARGS(sp, asoc), 32 __entry->primary = (sp == asoc->peer.primary_path); 33 memcpy(__entry->ipaddr, &sp->ipaddr, sizeof(union sctp_addr)); 34 __entry->state = sp->state; 35 __entry->cwnd = sp->cwnd; 36 __entry->ssthresh = sp->ssthresh; 37 __entry->flight_size = sp->flight_size; 38 __entry->partial_bytes_acked = sp->partial_bytes_acked; 39 __entry->pathmtu = sp->pathmtu;
|
/linux-4.19.296/fs/dlm/ |
D | config.c | 422 struct dlm_space *sp = NULL; in make_space() local 425 sp = kzalloc(sizeof(struct dlm_space), GFP_NOFS); in make_space() 428 if (!sp || !nds) in make_space() 431 config_group_init_type_name(&sp->group, name, &space_type); in make_space() 434 configfs_add_default_group(&nds->ns_group, &sp->group); in make_space() 436 INIT_LIST_HEAD(&sp->members); in make_space() 437 mutex_init(&sp->members_lock); in make_space() 438 sp->members_count = 0; in make_space() 439 sp->nds = nds; in make_space() 440 return &sp->group; in make_space() [all …]
|
/linux-4.19.296/lib/ |
D | syscall.c | 10 unsigned long *sp, unsigned long *pc) in collect_syscall() argument 16 *sp = *pc = 0; in collect_syscall() 27 *sp = user_stack_pointer(regs); in collect_syscall() 66 unsigned long *sp, unsigned long *pc) in task_current_syscall() argument 75 return collect_syscall(target, callno, args, maxargs, sp, pc); in task_current_syscall() 83 unlikely(collect_syscall(target, callno, args, maxargs, sp, pc)) || in task_current_syscall()
|
/linux-4.19.296/fs/ |
D | binfmt_aout.c | 145 unsigned long __user *sp; in create_aout_tables() local 149 sp = (void __user *)((-(unsigned long)sizeof(char *)) & (unsigned long) p); in create_aout_tables() 152 put_user(0, --sp); in create_aout_tables() 153 put_user(0, --sp); in create_aout_tables() 155 put_user(0, --sp); in create_aout_tables() 156 put_user(1003, --sp); in create_aout_tables() 157 put_user(bprm->loader, --sp); in create_aout_tables() 158 put_user(1002, --sp); in create_aout_tables() 160 put_user(bprm->exec, --sp); in create_aout_tables() 161 put_user(1001, --sp); in create_aout_tables() [all …]
|
D | binfmt_flat.c | 115 unsigned long __user *sp; in create_flat_tables() local 119 sp = (unsigned long __user *)current->mm->start_stack; in create_flat_tables() 121 sp -= bprm->envc + 1; in create_flat_tables() 122 sp -= bprm->argc + 1; in create_flat_tables() 123 sp -= flat_argvp_envp_on_stack() ? 2 : 0; in create_flat_tables() 124 sp -= 1; /* &argc */ in create_flat_tables() 126 current->mm->start_stack = (unsigned long)sp & -FLAT_STACK_ALIGN; in create_flat_tables() 127 sp = (unsigned long __user *)current->mm->start_stack; in create_flat_tables() 129 __put_user(bprm->argc, sp++); in create_flat_tables() 132 argv = (unsigned long)(sp + 2); in create_flat_tables() [all …]
|
/linux-4.19.296/fs/jfs/ |
D | jfs_dtree.c | 188 static void dtMoveEntry(dtpage_t * sp, int si, dtpage_t * dp, 937 dtpage_t *sp; /* split page */ in dtSplitUp() local 959 sp = DT_PAGE(ip, smp); in dtSplitUp() 977 if (sp->header.flag & BT_ROOT) { in dtSplitUp() 984 n -= DTROOTMAXSLOT - sp->header.freecnt; /* header + entries */ in dtSplitUp() 1019 pxd = &sp->header.self; in dtSplitUp() 1026 if ((n + sp->header.freecnt) <= split->nslot) in dtSplitUp() 1133 lp = sp; in dtSplitUp() 1139 DT_GETPAGE(ip, parent->bn, smp, PSIZE, sp, rc); in dtSplitUp() 1184 if ((sp->header.flag & BT_ROOT && skip > 1) || in dtSplitUp() [all …]
|
/linux-4.19.296/include/net/ |
D | transp_v6.h | 47 void __ip6_dgram_sock_seq_show(struct seq_file *seq, struct sock *sp, 50 ip6_dgram_sock_seq_show(struct seq_file *seq, struct sock *sp, __u16 srcp, in ip6_dgram_sock_seq_show() argument 53 __ip6_dgram_sock_seq_show(seq, sp, srcp, destp, sk_rmem_alloc_get(sp), in ip6_dgram_sock_seq_show()
|
/linux-4.19.296/fs/xfs/ |
D | xfs_linux.h | 106 #define current_set_flags_nested(sp, f) \ argument 107 (*(sp) = current->flags, current->flags |= (f)) 108 #define current_clear_flags_nested(sp, f) \ argument 109 (*(sp) = current->flags, current->flags &= ~(f)) 110 #define current_restore_flags_nested(sp, f) \ argument 111 (current->flags = ((current->flags & ~(f)) | (*(sp) & (f))))
|