/drivers/net/hamradio/ |
D | 6pack.c | 142 struct sixpack *sp = from_timer(sp, t, tx_t); in sp_xmit_on_air() local 143 int actual, when = sp->slottime; in sp_xmit_on_air() 148 if (((sp->status1 & SIXP_DCD_MASK) == 0) && (random < sp->persistence)) { in sp_xmit_on_air() 149 sp->led_state = 0x70; in sp_xmit_on_air() 150 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_xmit_on_air() 151 sp->tx_enable = 1; in sp_xmit_on_air() 152 actual = sp->tty->ops->write(sp->tty, sp->xbuff, sp->status2); in sp_xmit_on_air() 153 sp->xleft -= actual; in sp_xmit_on_air() 154 sp->xhead += actual; in sp_xmit_on_air() 155 sp->led_state = 0x60; in sp_xmit_on_air() [all …]
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-io.c | 120 struct pvr2_stream *sp = bp->stream; in pvr2_buffer_remove() local 123 cnt = &sp->i_count; in pvr2_buffer_remove() 124 bcnt = &sp->i_bcount; in pvr2_buffer_remove() 128 cnt = &sp->q_count; in pvr2_buffer_remove() 129 bcnt = &sp->q_bcount; in pvr2_buffer_remove() 133 cnt = &sp->r_count; in pvr2_buffer_remove() 134 bcnt = &sp->r_bcount; in pvr2_buffer_remove() 152 struct pvr2_stream *sp; in pvr2_buffer_set_none() local 154 sp = bp->stream; in pvr2_buffer_set_none() 160 spin_lock_irqsave(&sp->list_lock, irq_flags); in pvr2_buffer_set_none() [all …]
|
/drivers/crypto/ccp/ |
D | sp-dev.c | 43 static void sp_add_device(struct sp_device *sp) in sp_add_device() argument 49 list_add_tail(&sp->entry, &sp_units); in sp_add_device() 54 static void sp_del_device(struct sp_device *sp) in sp_del_device() argument 60 list_del(&sp->entry); in sp_del_device() 67 struct sp_device *sp = data; in sp_irq_handler() local 69 if (sp->ccp_irq_handler) in sp_irq_handler() 70 sp->ccp_irq_handler(irq, sp->ccp_irq_data); in sp_irq_handler() 72 if (sp->psp_irq_handler) in sp_irq_handler() 73 sp->psp_irq_handler(irq, sp->psp_irq_data); in sp_irq_handler() 78 int sp_request_ccp_irq(struct sp_device *sp, irq_handler_t handler, in sp_request_ccp_irq() argument [all …]
|
D | sp-pci.c | 46 struct sp_device *sp = dev_get_drvdata(d); \ 47 struct psp_device *psp = sp->psp_data; \ 84 struct sp_device *sp = dev_get_drvdata(dev); in psp_security_is_visible() local 85 struct psp_device *psp = sp->psp_data; in psp_security_is_visible() 102 struct sp_device *sp = dev_get_drvdata(d); \ 103 struct psp_device *psp = sp->psp_data; \ 126 struct sp_device *sp = dev_get_drvdata(dev); in psp_firmware_is_visible() local 127 struct psp_device *psp = sp->psp_data; in psp_firmware_is_visible() 160 static int sp_get_msix_irqs(struct sp_device *sp) in sp_get_msix_irqs() argument 162 struct sp_pci *sp_pci = sp->dev_specific; in sp_get_msix_irqs() [all …]
|
D | psp-dev.c | 22 static struct psp_device *psp_alloc_struct(struct sp_device *sp) in psp_alloc_struct() argument 24 struct device *dev = sp->dev; in psp_alloc_struct() 32 psp->sp = sp; in psp_alloc_struct() 34 snprintf(psp->name, sizeof(psp->name), "psp-%u", sp->ord); in psp_alloc_struct() 146 int psp_dev_init(struct sp_device *sp) in psp_dev_init() argument 148 struct device *dev = sp->dev; in psp_dev_init() 153 psp = psp_alloc_struct(sp); in psp_dev_init() 157 sp->psp_data = psp; in psp_dev_init() 159 psp->vdata = (struct psp_vdata *)sp->dev_vdata->psp_vdata; in psp_dev_init() 166 psp->io_regs = sp->io_map; in psp_dev_init() [all …]
|
D | sp-platform.c | 77 static int sp_get_irqs(struct sp_device *sp) in sp_get_irqs() argument 79 struct sp_platform *sp_platform = sp->dev_specific; in sp_get_irqs() 80 struct device *dev = sp->dev; in sp_get_irqs() 92 sp->psp_irq = ret; in sp_get_irqs() 94 sp->ccp_irq = ret; in sp_get_irqs() 102 sp->ccp_irq = ret; in sp_get_irqs() 110 struct sp_device *sp; in sp_platform_probe() local 117 sp = sp_alloc_struct(dev); in sp_platform_probe() 118 if (!sp) in sp_platform_probe() 125 sp->dev_specific = sp_platform; in sp_platform_probe() [all …]
|
/drivers/misc/ibmasm/ |
D | module.c | 54 struct service_processor *sp; in ibmasm_init_one() local 67 sp = kzalloc(sizeof(struct service_processor), GFP_KERNEL); in ibmasm_init_one() 68 if (sp == NULL) { in ibmasm_init_one() 74 spin_lock_init(&sp->lock); in ibmasm_init_one() 75 INIT_LIST_HEAD(&sp->command_queue); in ibmasm_init_one() 77 pci_set_drvdata(pdev, (void *)sp); in ibmasm_init_one() 78 sp->dev = &pdev->dev; in ibmasm_init_one() 79 sp->number = pdev->bus->number; in ibmasm_init_one() 80 snprintf(sp->dirname, IBMASM_NAME_SIZE, "%d", sp->number); in ibmasm_init_one() 81 snprintf(sp->devname, IBMASM_NAME_SIZE, "%s%d", DRIVER_NAME, sp->number); in ibmasm_init_one() [all …]
|
D | command.c | 16 static void exec_next_command(struct service_processor *sp); 20 struct command *ibmasm_new_command(struct service_processor *sp, size_t buffer_size) in ibmasm_new_command() argument 40 cmd->lock = &sp->lock; in ibmasm_new_command() 63 static void enqueue_command(struct service_processor *sp, struct command *cmd) in enqueue_command() argument 65 list_add_tail(&cmd->queue_node, &sp->command_queue); in enqueue_command() 68 static struct command *dequeue_command(struct service_processor *sp) in dequeue_command() argument 73 if (list_empty(&sp->command_queue)) in dequeue_command() 76 next = sp->command_queue.next; in dequeue_command() 83 static inline void do_exec_command(struct service_processor *sp) in do_exec_command() argument 89 if (ibmasm_send_i2o_message(sp)) { in do_exec_command() [all …]
|
D | remote.h | 75 #define mouse_addr(sp) (sp->base_address + CONDOR_MOUSE_DATA) argument 76 #define display_width(sp) (mouse_addr(sp) + CONDOR_INPUT_DISPLAY_RESX) argument 77 #define display_height(sp) (mouse_addr(sp) + CONDOR_INPUT_DISPLAY_RESY) argument 78 #define display_depth(sp) (mouse_addr(sp) + CONDOR_INPUT_DISPLAY_BITS) argument 79 #define desktop_info(sp) (mouse_addr(sp) + CONDOR_INPUT_DESKTOP_INFO) argument 80 #define vnc_status(sp) (mouse_addr(sp) + CONDOR_OUTPUT_VNC_STATUS) argument 81 #define isr_control(sp) (mouse_addr(sp) + CONDOR_MOUSE_ISR_CONTROL) argument 83 #define mouse_interrupt_pending(sp) readl(mouse_addr(sp) + CONDOR_MOUSE_ISR_STATUS) argument 84 #define clear_mouse_interrupt(sp) writel(0, mouse_addr(sp) + CONDOR_MOUSE_ISR_STATUS) argument 85 #define enable_mouse_interrupts(sp) writel(1, mouse_addr(sp) + CONDOR_MOUSE_ISR_CONTROL) argument [all …]
|
D | ibmasm.h | 157 struct command *ibmasm_new_command(struct service_processor *sp, size_t buffer_size); 158 void ibmasm_exec_command(struct service_processor *sp, struct command *cmd); 160 void ibmasm_receive_command_response(struct service_processor *sp, void *response, size_t size); 163 int ibmasm_event_buffer_init(struct service_processor *sp); 164 void ibmasm_event_buffer_exit(struct service_processor *sp); 165 void ibmasm_receive_event(struct service_processor *sp, void *data, unsigned int data_size); 166 void ibmasm_event_reader_register(struct service_processor *sp, struct event_reader *reader); 167 void ibmasm_event_reader_unregister(struct service_processor *sp, struct event_reader *reader); 168 int ibmasm_get_next_event(struct service_processor *sp, struct event_reader *reader); 174 int ibmasm_heartbeat_init(struct service_processor *sp); [all …]
|
D | event.c | 26 static void wake_up_event_readers(struct service_processor *sp) in wake_up_event_readers() argument 30 list_for_each_entry(reader, &sp->event_buffer->readers, node) in wake_up_event_readers() 43 void ibmasm_receive_event(struct service_processor *sp, void *data, unsigned int data_size) in ibmasm_receive_event() argument 45 struct event_buffer *buffer = sp->event_buffer; in ibmasm_receive_event() 51 spin_lock_irqsave(&sp->lock, flags); in ibmasm_receive_event() 61 spin_unlock_irqrestore(&sp->lock, flags); in ibmasm_receive_event() 63 wake_up_event_readers(sp); in ibmasm_receive_event() 77 int ibmasm_get_next_event(struct service_processor *sp, struct event_reader *reader) in ibmasm_get_next_event() argument 79 struct event_buffer *buffer = sp->event_buffer; in ibmasm_get_next_event() 93 spin_lock_irqsave(&sp->lock, flags); in ibmasm_get_next_event() [all …]
|
/drivers/spi/ |
D | spi-ath79.c | 49 static inline u32 ath79_spi_rr(struct ath79_spi *sp, unsigned int reg) in ath79_spi_rr() argument 51 return ioread32(sp->base + reg); in ath79_spi_rr() 54 static inline void ath79_spi_wr(struct ath79_spi *sp, unsigned int reg, u32 val) in ath79_spi_wr() argument 56 iowrite32(val, sp->base + reg); in ath79_spi_wr() 64 static inline void ath79_spi_delay(struct ath79_spi *sp, unsigned int nsecs) in ath79_spi_delay() argument 66 if (nsecs > sp->rrw_delay) in ath79_spi_delay() 67 ndelay(nsecs - sp->rrw_delay); in ath79_spi_delay() 72 struct ath79_spi *sp = ath79_spidev_to_sp(spi); in ath79_spi_chipselect() local 77 sp->ioc_base |= cs_bit; in ath79_spi_chipselect() 79 sp->ioc_base &= ~cs_bit; in ath79_spi_chipselect() [all …]
|
D | spi-mtk-nor.c | 100 #define CLK_TO_US(sp, clkcnt) DIV_ROUND_UP(clkcnt, sp->spi_freq / 1000000) argument 131 static inline void mtk_nor_rmw(struct mtk_nor *sp, u32 reg, u32 set, u32 clr) in mtk_nor_rmw() argument 133 u32 val = readl(sp->base + reg); in mtk_nor_rmw() 137 writel(val, sp->base + reg); in mtk_nor_rmw() 140 static inline int mtk_nor_cmd_exec(struct mtk_nor *sp, u32 cmd, ulong clk) in mtk_nor_cmd_exec() argument 142 ulong delay = CLK_TO_US(sp, clk); in mtk_nor_cmd_exec() 146 writel(cmd, sp->base + MTK_NOR_REG_CMD); in mtk_nor_cmd_exec() 147 ret = readl_poll_timeout(sp->base + MTK_NOR_REG_CMD, reg, !(reg & cmd), in mtk_nor_cmd_exec() 150 dev_err(sp->dev, "command %u timeout.\n", cmd); in mtk_nor_cmd_exec() 154 static void mtk_nor_reset(struct mtk_nor *sp) in mtk_nor_reset() argument [all …]
|
D | spi-sh-sci.c | 33 #define SCSPTR(sp) (sp->membase + 0x1c) argument 39 static inline void setbits(struct sh_sci_spi *sp, int bits, int on) in setbits() argument 50 sp->val |= bits; in setbits() 52 sp->val &= ~bits; in setbits() 54 iowrite8(sp->val, SCSPTR(sp)); in setbits() 69 struct sh_sci_spi *sp = spi_controller_get_devdata(dev->controller); in getmiso() local 71 return (ioread8(SCSPTR(sp)) & PIN_RXD) ? 1 : 0; in getmiso() 108 struct sh_sci_spi *sp = spi_controller_get_devdata(dev->controller); in sh_sci_spi_chipselect() local 110 if (sp->info->chip_select) in sh_sci_spi_chipselect() 111 (sp->info->chip_select)(sp->info, spi_get_chipselect(dev, 0), value); in sh_sci_spi_chipselect() [all …]
|
/drivers/net/ethernet/seeq/ |
D | sgiseeq.c | 53 #define TX_BUFFS_AVAIL(sp) ((sp->tx_old <= sp->tx_new) ? \ argument 54 sp->tx_old + (SEEQ_TX_BUFFERS - 1) - sp->tx_new : \ 55 sp->tx_old - sp->tx_new - 1) 57 #define VIRT_TO_DMA(sp, v) ((sp)->srings_dma + \ argument 59 (unsigned long)((sp)->rx_desc))) 115 struct sgiseeq_private *sp = netdev_priv(dev); in dma_sync_desc_cpu() local 117 dma_sync_single_for_cpu(dev->dev.parent, VIRT_TO_DMA(sp, addr), in dma_sync_desc_cpu() 123 struct sgiseeq_private *sp = netdev_priv(dev); in dma_sync_desc_dev() local 125 dma_sync_single_for_device(dev->dev.parent, VIRT_TO_DMA(sp, addr), in dma_sync_desc_dev() 146 static inline void seeq_go(struct sgiseeq_private *sp, in seeq_go() argument [all …]
|
/drivers/gpu/host1x/ |
D | syncpt.c | 62 struct host1x_syncpt *sp = host->syncpt; in host1x_syncpt_alloc() local 71 for (i = 0; i < host->info->nb_pts && kref_read(&sp->ref); i++, sp++) in host1x_syncpt_alloc() 78 sp->base = host1x_syncpt_base_request(host); in host1x_syncpt_alloc() 79 if (!sp->base) in host1x_syncpt_alloc() 83 full_name = kasprintf(GFP_KERNEL, "%u-%s", sp->id, name); in host1x_syncpt_alloc() 87 sp->name = full_name; in host1x_syncpt_alloc() 90 sp->client_managed = true; in host1x_syncpt_alloc() 92 sp->client_managed = false; in host1x_syncpt_alloc() 94 kref_init(&sp->ref); in host1x_syncpt_alloc() 97 return sp; in host1x_syncpt_alloc() [all …]
|
/drivers/base/ |
D | bus.c | 62 struct subsys_private *sp = NULL; in bus_to_subsys() local 76 sp = container_of_const(kset, struct subsys_private, subsys); in bus_to_subsys() 77 if (sp->bus == bus) in bus_to_subsys() 80 sp = NULL; in bus_to_subsys() 82 sp = subsys_get(sp); in bus_to_subsys() 84 return sp; in bus_to_subsys() 89 struct subsys_private *sp = bus_to_subsys(bus); in bus_get() local 91 if (sp) in bus_get() 98 struct subsys_private *sp = bus_to_subsys(bus); in bus_put() local 101 subsys_put(sp); in bus_put() [all …]
|
D | class.c | 44 struct subsys_private *sp = NULL; in class_to_subsys() local 58 sp = container_of_const(kset, struct subsys_private, subsys); in class_to_subsys() 59 if (sp->class == class) in class_to_subsys() 62 sp = NULL; in class_to_subsys() 64 sp = subsys_get(sp); in class_to_subsys() 66 return sp; in class_to_subsys() 132 struct subsys_private *sp = class_to_subsys(cls); in class_create_file_ns() local 135 if (!sp) in class_create_file_ns() 138 error = sysfs_create_file_ns(&sp->subsys.kobj, &attr->attr, ns); in class_create_file_ns() 139 subsys_put(sp); in class_create_file_ns() [all …]
|
/drivers/video/fbdev/ |
D | sunxvr2500.c | 34 static int s3d_get_props(struct s3d_info *sp) in s3d_get_props() argument 36 sp->width = of_getintprop_default(sp->of_node, "width", 0); in s3d_get_props() 37 sp->height = of_getintprop_default(sp->of_node, "height", 0); in s3d_get_props() 38 sp->depth = of_getintprop_default(sp->of_node, "depth", 8); in s3d_get_props() 40 if (!sp->width || !sp->height) { in s3d_get_props() 42 pci_name(sp->pdev)); in s3d_get_props() 73 static int s3d_set_fbinfo(struct s3d_info *sp) in s3d_set_fbinfo() argument 75 struct fb_info *info = sp->info; in s3d_set_fbinfo() 79 info->screen_base = sp->fb_base; in s3d_set_fbinfo() 80 info->screen_size = sp->fb_size; in s3d_set_fbinfo() [all …]
|
/drivers/gpu/host1x/hw/ |
D | syncpt_hw.c | 16 static void syncpt_restore(struct host1x_syncpt *sp) in syncpt_restore() argument 18 u32 min = host1x_syncpt_read_min(sp); in syncpt_restore() 19 struct host1x *host = sp->host; in syncpt_restore() 21 host1x_sync_writel(host, min, HOST1X_SYNC_SYNCPT(sp->id)); in syncpt_restore() 27 static void syncpt_restore_wait_base(struct host1x_syncpt *sp) in syncpt_restore_wait_base() argument 30 struct host1x *host = sp->host; in syncpt_restore_wait_base() 32 host1x_sync_writel(host, sp->base_val, in syncpt_restore_wait_base() 33 HOST1X_SYNC_SYNCPT_BASE(sp->id)); in syncpt_restore_wait_base() 40 static void syncpt_read_wait_base(struct host1x_syncpt *sp) in syncpt_read_wait_base() argument 43 struct host1x *host = sp->host; in syncpt_read_wait_base() [all …]
|
/drivers/scsi/qla2xxx/ |
D | qla_iocb.c | 14 static int qla_start_scsi_type6(srb_t *sp); 22 qla2x00_get_cmd_direction(srb_t *sp) in qla2x00_get_cmd_direction() argument 25 struct scsi_cmnd *cmd = GET_CMD_SP(sp); in qla2x00_get_cmd_direction() 26 struct scsi_qla_host *vha = sp->vha; in qla2x00_get_cmd_direction() 146 qla24xx_configure_prot_mode(srb_t *sp, uint16_t *fw_prot_opts) in qla24xx_configure_prot_mode() argument 148 struct scsi_cmnd *cmd = GET_CMD_SP(sp); in qla24xx_configure_prot_mode() 193 void qla2x00_build_scsi_iocbs_32(srb_t *sp, cmd_entry_t *cmd_pkt, in qla2x00_build_scsi_iocbs_32() argument 203 cmd = GET_CMD_SP(sp); in qla2x00_build_scsi_iocbs_32() 214 vha = sp->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() [all …]
|
D | qla_nvme.c | 24 struct srb *sp; member 167 struct srb *sp = container_of(kref, struct srb, cmd_kref); in qla_nvme_release_fcp_cmd_kref() local 168 struct nvme_private *priv = (struct nvme_private *)sp->priv; in qla_nvme_release_fcp_cmd_kref() 176 nvme = &sp->u.iocb_cmd; in qla_nvme_release_fcp_cmd_kref() 180 priv->sp = NULL; in qla_nvme_release_fcp_cmd_kref() 181 sp->priv = NULL; in qla_nvme_release_fcp_cmd_kref() 194 qla2xxx_rel_qpair_sp(sp->qpair, sp); in qla_nvme_release_fcp_cmd_kref() 199 struct srb *sp = container_of(kref, struct srb, cmd_kref); in qla_nvme_release_ls_cmd_kref() local 200 struct nvme_private *priv = (struct nvme_private *)sp->priv; in qla_nvme_release_ls_cmd_kref() 208 priv->sp = NULL; in qla_nvme_release_ls_cmd_kref() [all …]
|
/drivers/mfd/ |
D | rave-sp.c | 157 int (*get_status)(struct rave_sp *sp, struct rave_sp_status *); 210 struct rave_sp *sp = dev_get_drvdata(dev->parent); in rave_sp_unregister_event_notifier() local 212 struct blocking_notifier_head *bnh = &sp->event_notifier_list; in rave_sp_unregister_event_notifier() 220 struct rave_sp *sp = dev_get_drvdata(dev->parent); in devm_rave_sp_register_event_notifier() local 229 ret = blocking_notifier_chain_register(&sp->event_notifier_list, nb); in devm_rave_sp_register_event_notifier() 282 static int rave_sp_write(struct rave_sp *sp, const u8 *data, u8 data_size) in rave_sp_write() argument 284 const size_t checksum_length = sp->variant->checksum->length; in rave_sp_write() 296 sp->variant->checksum->subroutine(data, data_size, crc); in rave_sp_write() 308 return serdev_device_write(sp->serdev, frame, length, HZ); in rave_sp_write() 342 int rave_sp_exec(struct rave_sp *sp, in rave_sp_exec() argument [all …]
|
/drivers/net/ethernet/neterion/ |
D | s2io.c | 123 static inline int is_s2io_card_up(const struct s2io_nic *sp) in is_s2io_card_up() argument 125 return test_bit(__S2IO_STATE_CARD_UP, &sp->state); in is_s2io_card_up() 342 static void do_s2io_copy_mac_addr(struct s2io_nic *sp, int offset, u64 mac_addr) in do_s2io_copy_mac_addr() argument 344 sp->def_mac_addr[offset].mac_addr[5] = (u8) (mac_addr); in do_s2io_copy_mac_addr() 345 sp->def_mac_addr[offset].mac_addr[4] = (u8) (mac_addr >> 8); in do_s2io_copy_mac_addr() 346 sp->def_mac_addr[offset].mac_addr[3] = (u8) (mac_addr >> 16); in do_s2io_copy_mac_addr() 347 sp->def_mac_addr[offset].mac_addr[2] = (u8) (mac_addr >> 24); in do_s2io_copy_mac_addr() 348 sp->def_mac_addr[offset].mac_addr[1] = (u8) (mac_addr >> 32); in do_s2io_copy_mac_addr() 349 sp->def_mac_addr[offset].mac_addr[0] = (u8) (mac_addr >> 40); in do_s2io_copy_mac_addr() 498 static inline void s2io_stop_all_tx_queue(struct s2io_nic *sp) in s2io_stop_all_tx_queue() argument [all …]
|
/drivers/tty/serial/ |
D | sprd_serial.c | 176 struct sprd_uart_port *sp = in sprd_stop_rx() local 180 if (sp->rx_dma.enable) in sprd_stop_rx() 181 dmaengine_terminate_all(sp->rx_dma.chn); in sprd_stop_rx() 207 struct sprd_uart_port *sp = in sprd_stop_tx_dma() local 212 dmaengine_pause(sp->tx_dma.chn); in sprd_stop_tx_dma() 214 dmaengine_tx_status(sp->tx_dma.chn, sp->tx_dma.cookie, &state); in sprd_stop_tx_dma() 216 trans_len = state.residue - sp->tx_dma.phys_addr; in sprd_stop_tx_dma() 218 dma_unmap_single(port->dev, sp->tx_dma.phys_addr, in sprd_stop_tx_dma() 219 sp->tx_dma.trans_len, DMA_TO_DEVICE); in sprd_stop_tx_dma() 222 dmaengine_terminate_all(sp->tx_dma.chn); in sprd_stop_tx_dma() [all …]
|