Home
last modified time | relevance | path

Searched refs:sp (Results 1 – 25 of 170) sorted by relevance

1234567

/drivers/net/hamradio/
D6pack.c141 struct sixpack *sp = (struct sixpack *) channel; in sp_xmit_on_air() local
142 int actual, when = sp->slottime; in sp_xmit_on_air()
147 if (((sp->status1 & SIXP_DCD_MASK) == 0) && (random < sp->persistence)) { in sp_xmit_on_air()
148 sp->led_state = 0x70; in sp_xmit_on_air()
149 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_xmit_on_air()
150 sp->tx_enable = 1; in sp_xmit_on_air()
151 actual = sp->tty->ops->write(sp->tty, sp->xbuff, sp->status2); in sp_xmit_on_air()
152 sp->xleft -= actual; in sp_xmit_on_air()
153 sp->xhead += actual; in sp_xmit_on_air()
154 sp->led_state = 0x60; in sp_xmit_on_air()
[all …]
/drivers/media/usb/pvrusb2/
Dpvrusb2-io.c135 struct pvr2_stream *sp = bp->stream; in pvr2_buffer_remove() local
138 cnt = &sp->i_count; in pvr2_buffer_remove()
139 bcnt = &sp->i_bcount; in pvr2_buffer_remove()
143 cnt = &sp->q_count; in pvr2_buffer_remove()
144 bcnt = &sp->q_bcount; in pvr2_buffer_remove()
148 cnt = &sp->r_count; in pvr2_buffer_remove()
149 bcnt = &sp->r_bcount; in pvr2_buffer_remove()
168 struct pvr2_stream *sp; in pvr2_buffer_set_none() local
170 sp = bp->stream; in pvr2_buffer_set_none()
176 spin_lock_irqsave(&sp->list_lock,irq_flags); in pvr2_buffer_set_none()
[all …]
/drivers/misc/ibmasm/
Dmodule.c68 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 …]
Dcommand.c30 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 …]
Dremote.h88 #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 …]
Dibmasm.h171 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 …]
Devent.c40 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 …]
Duart.c34 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 …]
Dibmasmfs.c211 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 …]
Dlowlevel.c33 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 …]
Dheartbeat.c65 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()
/drivers/spi/
Dspi-ath79.c45 static inline u32 ath79_spi_rr(struct ath79_spi *sp, unsigned reg) in ath79_spi_rr() argument
47 return ioread32(sp->base + reg); in ath79_spi_rr()
50 static inline void ath79_spi_wr(struct ath79_spi *sp, unsigned reg, u32 val) in ath79_spi_wr() argument
52 iowrite32(val, sp->base + reg); in ath79_spi_wr()
60 static inline void ath79_spi_delay(struct ath79_spi *sp, unsigned nsecs) in ath79_spi_delay() argument
62 if (nsecs > sp->rrw_delay) in ath79_spi_delay()
63 ndelay(nsecs - sp->rrw_delay); in ath79_spi_delay()
68 struct ath79_spi *sp = ath79_spidev_to_sp(spi); in ath79_spi_chipselect() local
74 sp->ioc_base |= AR71XX_SPI_IOC_CLK; in ath79_spi_chipselect()
76 sp->ioc_base &= ~AR71XX_SPI_IOC_CLK; in ath79_spi_chipselect()
[all …]
Dspi-sh-sci.c37 #define SCSPTR(sp) (sp->membase + 0x1c) argument
43 static inline void setbits(struct sh_sci_spi *sp, int bits, int on) in setbits() argument
54 sp->val |= bits; in setbits()
56 sp->val &= ~bits; in setbits()
58 iowrite8(sp->val, SCSPTR(sp)); in setbits()
73 struct sh_sci_spi *sp = spi_master_get_devdata(dev->master); in getmiso() local
75 return (ioread8(SCSPTR(sp)) & PIN_RXD) ? 1 : 0; in getmiso()
108 struct sh_sci_spi *sp = spi_master_get_devdata(dev->master); in sh_sci_spi_chipselect() local
110 if (sp->info->chip_select) in sh_sci_spi_chipselect()
111 (sp->info->chip_select)(sp->info, dev->chip_select, value); in sh_sci_spi_chipselect()
[all …]
/drivers/net/ethernet/seeq/
Dsgiseeq.c52 #define TX_BUFFS_AVAIL(sp) ((sp->tx_old <= sp->tx_new) ? \ argument
53 sp->tx_old + (SEEQ_TX_BUFFERS - 1) - sp->tx_new : \
54 sp->tx_old - sp->tx_new - 1)
56 #define VIRT_TO_DMA(sp, v) ((sp)->srings_dma + \ argument
58 (unsigned long)((sp)->rx_desc)))
141 static inline void seeq_go(struct sgiseeq_private *sp, in seeq_go() argument
145 sregs->rstat = sp->mode | RSTAT_GO_BITS; in seeq_go()
151 struct sgiseeq_private *sp = netdev_priv(dev); in __sgiseeq_set_mac_address() local
152 struct sgiseeq_regs *sregs = sp->sregs; in __sgiseeq_set_mac_address()
162 struct sgiseeq_private *sp = netdev_priv(dev); in sgiseeq_set_mac_address() local
[all …]
/drivers/gpu/host1x/
Dsyncpt.c61 struct host1x_syncpt *sp = host->syncpt; in host1x_syncpt_alloc() local
64 for (i = 0; i < host->info->nb_pts && sp->name; i++, sp++) in host1x_syncpt_alloc()
71 sp->base = host1x_syncpt_base_request(host); in host1x_syncpt_alloc()
72 if (!sp->base) in host1x_syncpt_alloc()
76 name = kasprintf(GFP_KERNEL, "%02u-%s", sp->id, in host1x_syncpt_alloc()
81 sp->dev = dev; in host1x_syncpt_alloc()
82 sp->name = name; in host1x_syncpt_alloc()
85 sp->client_managed = true; in host1x_syncpt_alloc()
87 sp->client_managed = false; in host1x_syncpt_alloc()
89 return sp; in host1x_syncpt_alloc()
[all …]
Dsyncpt.h75 static inline bool host1x_syncpt_check_max(struct host1x_syncpt *sp, u32 real) in host1x_syncpt_check_max() argument
78 if (sp->client_managed) in host1x_syncpt_check_max()
80 max = host1x_syncpt_read_max(sp); in host1x_syncpt_check_max()
85 static inline bool host1x_syncpt_client_managed(struct host1x_syncpt *sp) in host1x_syncpt_client_managed() argument
87 return sp->client_managed; in host1x_syncpt_client_managed()
94 static inline bool host1x_syncpt_idle(struct host1x_syncpt *sp) in host1x_syncpt_idle() argument
98 min = atomic_read(&sp->min_val); in host1x_syncpt_idle()
99 max = atomic_read(&sp->max_val); in host1x_syncpt_idle()
104 u32 host1x_syncpt_load(struct host1x_syncpt *sp);
107 bool host1x_syncpt_is_expired(struct host1x_syncpt *sp, u32 thresh);
[all …]
/drivers/video/fbdev/
Dsunxvr2500.c33 static int s3d_get_props(struct s3d_info *sp) in s3d_get_props() argument
35 sp->width = of_getintprop_default(sp->of_node, "width", 0); in s3d_get_props()
36 sp->height = of_getintprop_default(sp->of_node, "height", 0); in s3d_get_props()
37 sp->depth = of_getintprop_default(sp->of_node, "depth", 8); in s3d_get_props()
39 if (!sp->width || !sp->height) { in s3d_get_props()
41 pci_name(sp->pdev)); in s3d_get_props()
74 static int s3d_set_fbinfo(struct s3d_info *sp) in s3d_set_fbinfo() argument
76 struct fb_info *info = sp->info; in s3d_set_fbinfo()
81 info->screen_base = sp->fb_base; in s3d_set_fbinfo()
82 info->screen_size = sp->fb_size; in s3d_set_fbinfo()
[all …]
/drivers/gpu/host1x/hw/
Dsyncpt_hw.c27 static void syncpt_restore(struct host1x_syncpt *sp) in syncpt_restore() argument
29 u32 min = host1x_syncpt_read_min(sp); in syncpt_restore()
30 struct host1x *host = sp->host; in syncpt_restore()
32 host1x_sync_writel(host, min, HOST1X_SYNC_SYNCPT(sp->id)); in syncpt_restore()
38 static void syncpt_restore_wait_base(struct host1x_syncpt *sp) in syncpt_restore_wait_base() argument
40 struct host1x *host = sp->host; in syncpt_restore_wait_base()
42 host1x_sync_writel(host, sp->base_val, in syncpt_restore_wait_base()
43 HOST1X_SYNC_SYNCPT_BASE(sp->id)); in syncpt_restore_wait_base()
49 static void syncpt_read_wait_base(struct host1x_syncpt *sp) in syncpt_read_wait_base() argument
51 struct host1x *host = sp->host; in syncpt_read_wait_base()
[all …]
/drivers/net/ethernet/neterion/
Ds2io.c124 static inline int is_s2io_card_up(const struct s2io_nic *sp) in is_s2io_card_up() argument
126 return test_bit(__S2IO_STATE_CARD_UP, &sp->state); in is_s2io_card_up()
349 static void do_s2io_copy_mac_addr(struct s2io_nic *sp, int offset, u64 mac_addr) in do_s2io_copy_mac_addr() argument
351 sp->def_mac_addr[offset].mac_addr[5] = (u8) (mac_addr); in do_s2io_copy_mac_addr()
352 sp->def_mac_addr[offset].mac_addr[4] = (u8) (mac_addr >> 8); in do_s2io_copy_mac_addr()
353 sp->def_mac_addr[offset].mac_addr[3] = (u8) (mac_addr >> 16); in do_s2io_copy_mac_addr()
354 sp->def_mac_addr[offset].mac_addr[2] = (u8) (mac_addr >> 24); in do_s2io_copy_mac_addr()
355 sp->def_mac_addr[offset].mac_addr[1] = (u8) (mac_addr >> 32); in do_s2io_copy_mac_addr()
356 sp->def_mac_addr[offset].mac_addr[0] = (u8) (mac_addr >> 40); in do_s2io_copy_mac_addr()
506 static inline void s2io_stop_all_tx_queue(struct s2io_nic *sp) in s2io_stop_all_tx_queue() argument
[all …]
/drivers/scsi/qla2xxx/
Dqla_iocb.c23 qla2x00_get_cmd_direction(srb_t *sp) in qla2x00_get_cmd_direction() argument
26 struct scsi_cmnd *cmd = GET_CMD_SP(sp); in qla2x00_get_cmd_direction()
27 struct scsi_qla_host *vha = sp->fcport->vha; in qla2x00_get_cmd_direction()
147 qla24xx_configure_prot_mode(srb_t *sp, uint16_t *fw_prot_opts) in qla24xx_configure_prot_mode() argument
149 struct scsi_cmnd *cmd = GET_CMD_SP(sp); in qla24xx_configure_prot_mode()
192 void qla2x00_build_scsi_iocbs_32(srb_t *sp, cmd_entry_t *cmd_pkt, in qla2x00_build_scsi_iocbs_32() argument
202 cmd = GET_CMD_SP(sp); in qla2x00_build_scsi_iocbs_32()
214 vha = sp->fcport->vha; in qla2x00_build_scsi_iocbs_32()
215 cmd_pkt->control_flags |= cpu_to_le16(qla2x00_get_cmd_direction(sp)); in qla2x00_build_scsi_iocbs_32()
250 void qla2x00_build_scsi_iocbs_64(srb_t *sp, cmd_entry_t *cmd_pkt, in qla2x00_build_scsi_iocbs_64() argument
[all …]
Dqla_inline.h132 qla2x00_clean_dsd_pool(struct qla_hw_data *ha, srb_t *sp, in qla2x00_clean_dsd_pool() argument
138 if (sp) in qla2x00_clean_dsd_pool()
139 ctx = (struct crc_context *)GET_CMD_CTX_SP(sp); in qla2x00_clean_dsd_pool()
178 qla2x00_hba_err_chk_enabled(srb_t *sp) in qla2x00_hba_err_chk_enabled() argument
187 switch (scsi_get_prot_op(GET_CMD_SP(sp))) { in qla2x00_hba_err_chk_enabled()
221 srb_t *sp = NULL; in qla2x00_get_sp() local
229 sp = mempool_alloc(ha->srb_mempool, flag); in qla2x00_get_sp()
230 if (!sp) in qla2x00_get_sp()
233 memset(sp, 0, sizeof(*sp)); in qla2x00_get_sp()
234 sp->fcport = fcport; in qla2x00_get_sp()
[all …]
/drivers/crypto/vmx/
Daesp8-ppc.pl76 $sp="r1";
110 $PUSH r11,$LRSAVE($sp)
369 $STU $sp,-$FRAME($sp)
371 $PUSH r10,$FRAME+$LRSAVE($sp)
407 addi $sp,$sp,$FRAME
672 $STU $sp,-`($FRAME+21*16+6*$SIZE_T)`($sp)
675 stvx v20,r10,$sp # ABI says so
677 stvx v21,r11,$sp
679 stvx v22,r10,$sp
681 stvx v23,r11,$sp
[all …]
/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_mdio.c45 static void sxgbe_mdio_ctrl_data(struct sxgbe_priv_data *sp, u32 cmd, in sxgbe_mdio_ctrl_data() argument
51 ((sp->clk_csr & 0x7) << 19) | SXGBE_MII_BUSY; in sxgbe_mdio_ctrl_data()
52 writel(reg, sp->ioaddr + sp->hw->mii.data); in sxgbe_mdio_ctrl_data()
55 static void sxgbe_mdio_c45(struct sxgbe_priv_data *sp, u32 cmd, int phyaddr, in sxgbe_mdio_c45() argument
63 writel(reg, sp->ioaddr + sp->hw->mii.addr); in sxgbe_mdio_c45()
65 sxgbe_mdio_ctrl_data(sp, cmd, phydata); in sxgbe_mdio_c45()
68 static void sxgbe_mdio_c22(struct sxgbe_priv_data *sp, u32 cmd, int phyaddr, in sxgbe_mdio_c22() argument
73 writel(1 << phyaddr, sp->ioaddr + SXGBE_MDIO_CLAUSE22_PORT_REG); in sxgbe_mdio_c22()
77 writel(reg, sp->ioaddr + sp->hw->mii.addr); in sxgbe_mdio_c22()
79 sxgbe_mdio_ctrl_data(sp, cmd, phydata); in sxgbe_mdio_c22()
[all …]
/drivers/usb/mon/
Dmon_stat.c29 struct snap *sp; in mon_stat_open() local
31 sp = kmalloc(sizeof(struct snap), GFP_KERNEL); in mon_stat_open()
32 if (sp == NULL) in mon_stat_open()
37 sp->slen = snprintf(sp->str, STAT_BUF_SIZE, in mon_stat_open()
41 file->private_data = sp; in mon_stat_open()
48 struct snap *sp = file->private_data; in mon_stat_read() local
50 return simple_read_from_buffer(buf, nbytes, ppos, sp->str, sp->slen); in mon_stat_read()
55 struct snap *sp = file->private_data; in mon_stat_release() local
57 kfree(sp); in mon_stat_release()
/drivers/scsi/libfc/
Dfc_exch.c466 static int fc_seq_send_locked(struct fc_lport *lport, struct fc_seq *sp, in fc_seq_send_locked() argument
475 ep = fc_seq_exch(sp); in fc_seq_send_locked()
494 sp->cnt += DIV_ROUND_UP((fr_len(fp) - sizeof(*fh)), in fc_seq_send_locked()
497 sp->cnt++; in fc_seq_send_locked()
528 static int fc_seq_send(struct fc_lport *lport, struct fc_seq *sp, in fc_seq_send() argument
533 ep = fc_seq_exch(sp); in fc_seq_send()
535 error = fc_seq_send_locked(lport, sp, fp); in fc_seq_send()
551 struct fc_seq *sp; in fc_seq_alloc() local
553 sp = &ep->seq; in fc_seq_alloc()
554 sp->ssb_stat = 0; in fc_seq_alloc()
[all …]

1234567