/drivers/misc/ibmasm/ |
H A D | uart.c | 34 void ibmasm_register_uart(struct service_processor *sp) argument 39 iomem_base = sp->base_address + SCOUT_COM_B_BASE; 45 dev_info(sp->dev, "IBM SP UART not registered, owned by service processor\n"); 46 sp->serial_line = -1; 51 uart.port.irq = sp->irq; 57 sp->serial_line = serial8250_register_8250_port(&uart); 58 if (sp->serial_line < 0) { 59 dev_err(sp->dev, "Failed to register serial port\n"); 62 enable_uart_interrupts(sp->base_address); 65 void ibmasm_unregister_uart(struct service_processor *sp) argument [all...] |
H A D | lowlevel.c | 33 int ibmasm_send_i2o_message(struct service_processor *sp) argument 38 struct command *command = sp->current_command; 40 mfa = get_mfa_inbound(sp->base_address); 47 message = get_i2o_message(sp->base_address, mfa); 52 set_mfa_inbound(sp->base_address, mfa); 60 struct service_processor *sp = (struct service_processor *)dev_id; local 61 void __iomem *base_address = sp->base_address; 69 if (mouse_interrupt_pending(sp)) { 70 ibmasm_handle_mouse_interrupt(sp); 71 clear_mouse_interrupt(sp); [all...] |
H A D | module.c | 68 struct service_processor *sp; local 81 sp = kzalloc(sizeof(struct service_processor), GFP_KERNEL); 82 if (sp == NULL) { 88 spin_lock_init(&sp->lock); 89 INIT_LIST_HEAD(&sp->command_queue); 91 pci_set_drvdata(pdev, (void *)sp); 92 sp->dev = &pdev->dev; 93 sp->number = pdev->bus->number; 94 snprintf(sp->dirname, IBMASM_NAME_SIZE, "%d", sp 167 struct service_processor *sp = pci_get_drvdata(pdev); local [all...] |
H A D | r_heartbeat.c | 49 void ibmasm_init_reverse_heartbeat(struct service_processor *sp, struct reverse_heartbeat *rhb) argument 61 int ibmasm_start_reverse_heartbeat(struct service_processor *sp, struct reverse_heartbeat *rhb) argument 67 cmd = ibmasm_new_command(sp, sizeof rhb_dot_cmd); 74 ibmasm_exec_command(sp, cmd);
|
H A 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) argument 54 cmd->lock = &sp->lock; 77 static void enqueue_command(struct service_processor *sp, struct command *cmd) argument 79 list_add_tail(&cmd->queue_node, &sp->command_queue); 82 static struct command *dequeue_command(struct service_processor *sp) argument 87 if (list_empty(&sp->command_queue)) 90 next = sp->command_queue.next; 97 static inline void do_exec_command(struct service_processor *sp) argument 103 if (ibmasm_send_i2o_message(sp)) { 119 ibmasm_exec_command(struct service_processor *sp, struct command *cmd) argument 139 exec_next_command(struct service_processor *sp) argument 175 ibmasm_receive_command_response(struct service_processor *sp, void *response, size_t size) argument [all...] |
H A D | dot_command.c | 31 void ibmasm_receive_message(struct service_processor *sp, void *message, int message_size) argument 48 ibmasm_receive_event(sp, message, size); 51 ibmasm_receive_command_response(sp, message, size); 54 ibmasm_receive_heartbeat(sp, message, size); 57 dev_err(sp->dev, "Received unknown message from service processor\n"); 68 int ibmasm_send_driver_vpd(struct service_processor *sp) argument 76 command = ibmasm_new_command(sp, INIT_BUFFER_SIZE); 99 ibmasm_exec_command(sp, command); 124 int ibmasm_send_os_state(struct service_processor *sp, int os_state) argument 130 cmd = ibmasm_new_command(sp, sizeo [all...] |
H A D | event.c | 40 static void wake_up_event_readers(struct service_processor *sp) argument 44 list_for_each_entry(reader, &sp->event_buffer->readers, node) 57 void ibmasm_receive_event(struct service_processor *sp, void *data, unsigned int data_size) argument 59 struct event_buffer *buffer = sp->event_buffer; 65 spin_lock_irqsave(&sp->lock, flags); 75 spin_unlock_irqrestore(&sp->lock, flags); 77 wake_up_event_readers(sp); 91 int ibmasm_get_next_event(struct service_processor *sp, struct event_reader *reader) argument 93 struct event_buffer *buffer = sp->event_buffer; 107 spin_lock_irqsave(&sp 130 ibmasm_event_reader_register(struct service_processor *sp, struct event_reader *reader) argument 141 ibmasm_event_reader_unregister(struct service_processor *sp, struct event_reader *reader) argument 150 ibmasm_event_buffer_init(struct service_processor *sp) argument 174 ibmasm_event_buffer_exit(struct service_processor *sp) argument [all...] |
H A D | heartbeat.c | 65 int ibmasm_heartbeat_init(struct service_processor *sp) argument 67 sp->heartbeat = ibmasm_new_command(sp, HEARTBEAT_BUFFER_SIZE); 68 if (sp->heartbeat == NULL) 74 void ibmasm_heartbeat_exit(struct service_processor *sp) argument 79 ibmasm_wait_for_response(sp->heartbeat, IBMASM_CMD_TIMEOUT_NORMAL); 82 command_put(sp->heartbeat); 85 void ibmasm_receive_heartbeat(struct service_processor *sp, void *message, size_t size) argument 87 struct command *cmd = sp->heartbeat; 100 ibmasm_exec_command(sp, cm [all...] |
H A D | remote.c | 184 void ibmasm_handle_mouse_interrupt(struct service_processor *sp) argument 190 reader = get_queue_reader(sp); 191 writer = get_queue_writer(sp); 194 memcpy_fromio(&input, get_queue_entry(sp, reader), 199 send_mouse_event(sp->remote.mouse_dev, &input); 201 send_keyboard_event(sp->remote.keybd_dev, &input); 205 reader = advance_queue_reader(sp, reader); 206 writer = get_queue_writer(sp); 210 int ibmasm_init_remote_input_dev(struct service_processor *sp) argument 214 struct pci_dev *pdev = to_pci_dev(sp 276 ibmasm_free_remote_input_dev(struct service_processor *sp) argument [all...] |
/drivers/gpu/host1x/hw/ |
H A D | syncpt_hw.c | 27 static void syncpt_restore(struct host1x_syncpt *sp) argument 29 struct host1x *host = sp->host; 30 int min = host1x_syncpt_read_min(sp); 31 host1x_sync_writel(host, min, HOST1X_SYNC_SYNCPT(sp->id)); 37 static void syncpt_restore_wait_base(struct host1x_syncpt *sp) argument 39 struct host1x *host = sp->host; 40 host1x_sync_writel(host, sp->base_val, 41 HOST1X_SYNC_SYNCPT_BASE(sp->id)); 47 static void syncpt_read_wait_base(struct host1x_syncpt *sp) argument 49 struct host1x *host = sp 57 syncpt_load(struct host1x_syncpt *sp) argument 80 syncpt_cpu_incr(struct host1x_syncpt *sp) argument 96 syncpt_patch_wait(struct host1x_syncpt *sp, void *patch_addr) argument [all...] |
H A D | channel_hw.c | 73 struct host1x_syncpt *sp = host->syncpt + job->syncpt_id; local 76 value = host1x_syncpt_read_max(sp); 77 id = sp->base->id; 89 struct host1x_syncpt *sp; local 97 sp = host->syncpt + job->syncpt_id; 104 prev_max = job->syncpt_end = host1x_syncpt_read_max(sp); 134 host1x_syncpt_read_max(sp))); 138 if (sp->base) 141 syncval = host1x_syncpt_incr_max(sp, user_syncpt_incrs);
|
/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-audio.c | 63 const struct routing_scheme *sp; local 68 sp = (sid < ARRAY_SIZE(routing_schemes)) ? 71 if ((sp != NULL) && 73 (hdw->input_val < sp->cnt)) { 74 input = sp->def[hdw->input_val];
|
H A D | pvrusb2-cs53l32a.c | 64 const struct routing_scheme *sp; local 69 sp = (sid < ARRAY_SIZE(routing_schemes)) ? 71 if ((sp == NULL) || 73 (hdw->input_val >= sp->cnt)) { 81 input = sp->def[hdw->input_val];
|
H A D | pvrusb2-video-v4l.c | 81 const struct routing_scheme *sp; local 88 sp = (sid < ARRAY_SIZE(routing_schemes)) ? 90 if ((sp == NULL) || 92 (hdw->input_val >= sp->cnt)) { 100 input = sp->def[hdw->input_val];
|
H A D | pvrusb2-cx2584x-v4l.c | 131 const struct routing_scheme *sp; local 134 sp = (sid < ARRAY_SIZE(routing_schemes)) ? 136 if ((sp == NULL) || 138 (hdw->input_val >= sp->cnt)) { 146 vid_input = sp->def[hdw->input_val].vid; 147 aud_input = sp->def[hdw->input_val].aud;
|
H A D | pvrusb2-debugifc.c | 154 struct pvr2_stream *sp; local 174 sp = pvr2_hdw_get_video_stream(hdw); 175 if (sp) { 176 pvr2_stream_get_stats(sp, &stats, 0);
|
/drivers/usb/mon/ |
H A D | mon_stat.c | 29 struct snap *sp; local 31 if ((sp = kmalloc(sizeof(struct snap), GFP_KERNEL)) == NULL) 36 sp->slen = snprintf(sp->str, STAT_BUF_SIZE, 40 file->private_data = sp; 47 struct snap *sp = file->private_data; local 49 return simple_read_from_buffer(buf, nbytes, ppos, sp->str, sp->slen); 54 struct snap *sp = file->private_data; local 56 kfree(sp); [all...] |
/drivers/gpu/host1x/ |
H A D | syncpt.h | 75 static inline bool host1x_syncpt_check_max(struct host1x_syncpt *sp, u32 real) argument 78 if (sp->client_managed) 80 max = host1x_syncpt_read_max(sp); 85 static inline bool host1x_syncpt_client_managed(struct host1x_syncpt *sp) argument 87 return sp->client_managed; 94 static inline bool host1x_syncpt_idle(struct host1x_syncpt *sp) argument 98 min = atomic_read(&sp->min_val); 99 max = atomic_read(&sp->max_val); 104 u32 host1x_syncpt_load(struct host1x_syncpt *sp); 107 bool host1x_syncpt_is_expired(struct host1x_syncpt *sp, u3 122 host1x_syncpt_is_valid(struct host1x_syncpt *sp) argument [all...] |
H A D | cdma.c | 229 struct host1x_syncpt *sp = local 233 if (!host1x_syncpt_is_expired(sp, job->syncpt_end)) {
|
/drivers/isdn/hysdn/ |
H A D | boardergo.c | 263 tDpramBootSpooler *sp = (tDpramBootSpooler *) card->dpram; local 274 dst = sp->Data; /* point to data in spool structure */ 275 buflen = sp->Len; /* maximum len of spooled data */ 276 wr_mirror = sp->WrPtr; /* only once read */ 284 tmp_rdptr = sp->RdPtr; /* first read the pointer */ 286 } while (i && (tmp_rdptr != sp->RdPtr)); /* wait for stable pointer */ 309 sp->WrPtr = wr_mirror; /* announce the next byte to E1 */
|
/drivers/mailbox/ |
H A D | mailbox.c | 385 const struct of_phandle_args *sp) 387 int ind = sp->args[0]; 384 of_mbox_index_xlate(struct mbox_controller *mbox, const struct of_phandle_args *sp) argument
|
/drivers/media/pci/zoran/ |
H A D | zoran_procfs.c | 141 char *string, *sp; local 147 string = sp = vmalloc(count + 1); 164 line = strpbrk(sp, ldelim); 167 svar = strpbrk(sp, tdelim); 170 varname = sp; 174 sp = line + 1; 175 line = strpbrk(sp, ldelim);
|
/drivers/net/ethernet/ibm/ehea/ |
H A D | ehea_ethtool.c | 94 u32 sp; local 97 sp = EHEA_SPEED_AUTONEG; 104 sp = H_SPEED_10M_F; 106 sp = H_SPEED_10M_H; 111 sp = H_SPEED_100M_F; 113 sp = H_SPEED_100M_H; 118 sp = H_SPEED_1G_F; 125 sp = H_SPEED_10G_F; 138 ret = ehea_set_portspeed(port, sp);
|
/drivers/net/ethernet/samsung/sxgbe/ |
H A D | sxgbe_mdio.c | 45 static void sxgbe_mdio_ctrl_data(struct sxgbe_priv_data *sp, u32 cmd, argument 51 ((sp->clk_csr & 0x7) << 19) | SXGBE_MII_BUSY; 52 writel(reg, sp->ioaddr + sp->hw->mii.data); 55 static void sxgbe_mdio_c45(struct sxgbe_priv_data *sp, u32 cmd, int phyaddr, argument 63 writel(reg, sp->ioaddr + sp->hw->mii.addr); 65 sxgbe_mdio_ctrl_data(sp, cmd, phydata); 68 static void sxgbe_mdio_c22(struct sxgbe_priv_data *sp, u32 cmd, int phyaddr, argument 73 writel(1 << phyaddr, sp 82 sxgbe_mdio_access(struct sxgbe_priv_data *sp, u32 cmd, int phyaddr, int phyreg, u16 phydata) argument [all...] |
/drivers/pcmcia/ |
H A D | at91_cf.c | 87 static int at91_cf_get_status(struct pcmcia_socket *s, u_int *sp) argument 91 if (!sp) 101 *sp = SS_DETECT | SS_3VCARD; 103 *sp |= SS_READY; 105 *sp |= SS_POWERON; 107 *sp = 0;
|