Home
last modified time | relevance | path

Searched refs:si (Results 1 – 25 of 94) sorted by relevance

1234

/drivers/staging/irda/drivers/
Dpxaficp_ir.c175 static int pxa_irda_set_speed(struct pxa_irda *si, int speed);
177 static inline void pxa_irda_disable_clk(struct pxa_irda *si) in pxa_irda_disable_clk() argument
179 if (si->cur_clk) in pxa_irda_disable_clk()
180 clk_disable_unprepare(si->cur_clk); in pxa_irda_disable_clk()
181 si->cur_clk = NULL; in pxa_irda_disable_clk()
184 static inline void pxa_irda_enable_firclk(struct pxa_irda *si) in pxa_irda_enable_firclk() argument
186 si->cur_clk = si->fir_clk; in pxa_irda_enable_firclk()
187 clk_prepare_enable(si->fir_clk); in pxa_irda_enable_firclk()
190 static inline void pxa_irda_enable_sirclk(struct pxa_irda *si) in pxa_irda_enable_sirclk() argument
192 si->cur_clk = si->sir_clk; in pxa_irda_enable_sirclk()
[all …]
Dsa1100_ir.c80 #define IS_FIR(si) ((si)->speed >= 4000000) argument
163 static int sa1100_irda_rx_alloc(struct sa1100_irda *si) in sa1100_irda_rx_alloc() argument
165 if (si->dma_rx.skb) in sa1100_irda_rx_alloc()
168 si->dma_rx.skb = alloc_skb(HPSIR_MAX_RXLEN + 1, GFP_ATOMIC); in sa1100_irda_rx_alloc()
169 if (!si->dma_rx.skb) { in sa1100_irda_rx_alloc()
178 skb_reserve(si->dma_rx.skb, 1); in sa1100_irda_rx_alloc()
180 sg_set_buf(&si->dma_rx.sg, si->dma_rx.skb->data, HPSIR_MAX_RXLEN); in sa1100_irda_rx_alloc()
181 if (dma_map_sg(si->dma_rx.dev, &si->dma_rx.sg, 1, DMA_FROM_DEVICE) == 0) { in sa1100_irda_rx_alloc()
182 dev_kfree_skb_any(si->dma_rx.skb); in sa1100_irda_rx_alloc()
193 static void sa1100_irda_rx_dma_start(struct sa1100_irda *si) in sa1100_irda_rx_dma_start() argument
[all …]
/drivers/firmware/efi/libstub/
Dgop.c39 setup_pixel_info(struct screen_info *si, u32 pixels_per_scan_line, in setup_pixel_info() argument
43 si->lfb_depth = 32; in setup_pixel_info()
44 si->lfb_linelength = pixels_per_scan_line * 4; in setup_pixel_info()
45 si->red_size = 8; in setup_pixel_info()
46 si->red_pos = 0; in setup_pixel_info()
47 si->green_size = 8; in setup_pixel_info()
48 si->green_pos = 8; in setup_pixel_info()
49 si->blue_size = 8; in setup_pixel_info()
50 si->blue_pos = 16; in setup_pixel_info()
51 si->rsvd_size = 8; in setup_pixel_info()
[all …]
Darm32-stub.c35 struct screen_info *si; in alloc_screen_info() local
45 sizeof(*si), (void **)&si); in alloc_screen_info()
51 &screen_info_guid, si); in alloc_screen_info()
53 return si; in alloc_screen_info()
55 efi_call_early(free_pool, si); in alloc_screen_info()
59 void free_screen_info(efi_system_table_t *sys_table_arg, struct screen_info *si) in free_screen_info() argument
61 if (!si) in free_screen_info()
65 efi_call_early(free_pool, si); in free_screen_info()
Darm-stub.c83 struct screen_info *si = NULL; in setup_graphics() local
89 si = alloc_screen_info(sys_table_arg); in setup_graphics()
90 if (!si) in setup_graphics()
92 efi_setup_gop(sys_table_arg, si, &gop_proto, size); in setup_graphics()
94 return si; in setup_graphics()
135 struct screen_info *si; in efi_entry() local
184 si = setup_graphics(sys_table); in efi_entry()
285 free_screen_info(sys_table, si); in efi_entry()
/drivers/input/touchscreen/
Dcyttsp4_core.c82 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_load_status_regs() local
86 rc = cyttsp4_adap_read(cd, CY_REG_BASE, si->si_ofs.mode_size, in cyttsp4_load_status_regs()
87 si->xy_mode); in cyttsp4_load_status_regs()
92 cyttsp4_pr_buf(dev, cd->pr_buf, si->xy_mode, in cyttsp4_load_status_regs()
93 si->si_ofs.mode_size, "xy_mode"); in cyttsp4_load_status_regs()
162 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_data_offsets() local
163 int rc = cyttsp4_adap_read(cd, CY_REG_BASE, sizeof(si->si_data), in cyttsp4_si_data_offsets()
164 &si->si_data); in cyttsp4_si_data_offsets()
172 cyttsp4_pr_buf(cd->dev, cd->pr_buf, (u8 *)&si->si_data, in cyttsp4_si_data_offsets()
173 sizeof(si->si_data), "sysinfo_data_offsets"); in cyttsp4_si_data_offsets()
[all …]
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_msg.c91 unsigned long eax, ebx, ecx, edx, si = 0, di = 0; in vmw_open_channel() local
94 (protocol | GUESTMSG_FLAG_COOKIE), si, di, in vmw_open_channel()
97 eax, ebx, ecx, edx, si, di); in vmw_open_channel()
103 channel->cookie_high = si; in vmw_open_channel()
120 unsigned long eax, ebx, ecx, edx, si, di; in vmw_close_channel() local
123 si = channel->cookie_high; in vmw_close_channel()
127 0, si, di, in vmw_close_channel()
130 eax, ebx, ecx, edx, si, di); in vmw_close_channel()
150 unsigned long eax, ebx, ecx, edx, si, di, bp; in vmw_send_msg() local
159 si = channel->cookie_high; in vmw_send_msg()
[all …]
Dvmwgfx_msg.h45 eax, ebx, ecx, edx, si, di) \ argument
52 "=S"(si), \
89 eax, ebx, ecx, edx, si, di) \ argument
99 "=S"(si), \
114 eax, ebx, ecx, edx, si, di) \ argument
124 "=S"(si), \
148 eax, ebx, ecx, edx, si, di) \ argument
160 "=S"(si), \
175 eax, ebx, ecx, edx, si, di) \ argument
187 "=S"(si), \
/drivers/xen/
Dmanage.c63 struct suspend_info *si = data; in xen_suspend() local
82 si->cancelled = HYPERVISOR_suspend(xen_pv_domain() in xen_suspend()
86 xen_arch_post_suspend(si->cancelled); in xen_suspend()
89 if (!si->cancelled) { in xen_suspend()
102 struct suspend_info si; in do_suspend() local
130 si.cancelled = 0; in do_suspend()
136 si.cancelled = 1; in do_suspend()
138 err = stop_machine(xen_suspend, &si, cpumask_of(0)); in do_suspend()
141 if (!si.cancelled) in do_suspend()
146 dpm_resume_start(si.cancelled ? PMSG_THAW : PMSG_RESTORE); in do_suspend()
[all …]
/drivers/scsi/libfc/
Dfc_fcp.c149 struct fc_fcp_internal *si = fc_get_scsi_internal(lport); in fc_fcp_pkt_alloc() local
152 fsp = mempool_alloc(si->scsi_pkt_pool, gfp); in fc_fcp_pkt_alloc()
179 struct fc_fcp_internal *si = fc_get_scsi_internal(fsp->lp); in fc_fcp_pkt_release() local
181 mempool_free(fsp, si->scsi_pkt_pool); in fc_fcp_pkt_release()
370 struct fc_fcp_internal *si = fc_get_scsi_internal(lport); in fc_fcp_can_queue_ramp_up() local
376 if (si->last_can_queue_ramp_up_time && in fc_fcp_can_queue_ramp_up()
377 (time_before(jiffies, si->last_can_queue_ramp_up_time + in fc_fcp_can_queue_ramp_up()
381 if (time_before(jiffies, si->last_can_queue_ramp_down_time + in fc_fcp_can_queue_ramp_up()
385 si->last_can_queue_ramp_up_time = jiffies; in fc_fcp_can_queue_ramp_up()
388 if (can_queue >= si->max_can_queue) { in fc_fcp_can_queue_ramp_up()
[all …]
/drivers/dma/
Dacpi-dma.c46 const struct acpi_csrt_shared_info *si; in acpi_dma_parse_resource_group() local
73 si = (const struct acpi_csrt_shared_info *)&grp[1]; in acpi_dma_parse_resource_group()
76 if (si->mmio_base_low != lower_32_bits(mem) || in acpi_dma_parse_resource_group()
77 si->mmio_base_high != upper_32_bits(mem) || in acpi_dma_parse_resource_group()
78 si->gsi_interrupt != irq) in acpi_dma_parse_resource_group()
85 if (si->base_request_line == 0 && si->num_handshake_signals == 0) in acpi_dma_parse_resource_group()
88 adma->base_request_line = si->base_request_line; in acpi_dma_parse_resource_group()
89 adma->end_request_line = si->base_request_line + in acpi_dma_parse_resource_group()
90 si->num_handshake_signals - 1; in acpi_dma_parse_resource_group()
/drivers/md/persistent-data/
Ddm-transaction-manager.c107 struct shadow_info *si; in is_shadow() local
110 hlist_for_each_entry(si, tm->buckets + bucket, hlist) in is_shadow()
111 if (si->where == b) { in is_shadow()
127 struct shadow_info *si; in insert_shadow() local
129 si = kmalloc(sizeof(*si), GFP_NOIO); in insert_shadow()
130 if (si) { in insert_shadow()
131 si->where = b; in insert_shadow()
134 hlist_add_head(&si->hlist, tm->buckets + bucket); in insert_shadow()
141 struct shadow_info *si; in wipe_shadow_table() local
149 hlist_for_each_entry_safe(si, tmp, bucket, hlist) in wipe_shadow_table()
[all …]
/drivers/gpu/drm/ttm/
Dttm_memory.c246 const struct sysinfo *si) in ttm_mem_init_kernel_zone() argument
255 mem = si->totalram - si->totalhigh; in ttm_mem_init_kernel_zone()
256 mem *= si->mem_unit; in ttm_mem_init_kernel_zone()
278 const struct sysinfo *si) in ttm_mem_init_highmem_zone() argument
284 if (si->totalhigh == 0) in ttm_mem_init_highmem_zone()
291 mem = si->totalram; in ttm_mem_init_highmem_zone()
292 mem *= si->mem_unit; in ttm_mem_init_highmem_zone()
314 const struct sysinfo *si) in ttm_mem_init_dma32_zone() argument
323 mem = si->totalram; in ttm_mem_init_dma32_zone()
324 mem *= si->mem_unit; in ttm_mem_init_dma32_zone()
[all …]
/drivers/gpu/drm/nouveau/nvkm/engine/pm/
Dbase.c75 nvkm_perfsig_find(struct nvkm_pm *pm, u8 di, u8 si, struct nvkm_perfdom **pdom) in nvkm_perfsig_find() argument
86 if (!dom->signal[si].name) in nvkm_perfsig_find()
88 return &dom->signal[si]; in nvkm_perfsig_find()
104 nvkm_perfsrc_find(struct nvkm_pm *pm, struct nvkm_perfsig *sig, int si) in nvkm_perfsrc_find() argument
112 if (sig->source[i] == si) { in nvkm_perfsrc_find()
120 if (tmp++ == si) in nvkm_perfsrc_find()
495 int ret = -ENOSYS, si; in nvkm_perfmon_mthd_query_signal() local
502 si = (args->v0.iter & 0xffff) - 1; in nvkm_perfmon_mthd_query_signal()
507 if (dom == NULL || si >= (int)dom->signal_nr) in nvkm_perfmon_mthd_query_signal()
510 if (si >= 0) { in nvkm_perfmon_mthd_query_signal()
[all …]
/drivers/firmware/efi/
Darm-init.c67 struct screen_info *si; in init_screen_info() local
70 si = early_memremap_ro(screen_info_table, sizeof(*si)); in init_screen_info()
71 if (!si) { in init_screen_info()
75 screen_info = *si; in init_screen_info()
76 early_memunmap(si, sizeof(*si)); in init_screen_info()
/drivers/gpu/drm/radeon/
Dsi.c2491 u32 *tile = rdev->config.si.tile_mode_array; in si_tiling_mode_table_init()
2493 ARRAY_SIZE(rdev->config.si.tile_mode_array); in si_tiling_mode_table_init()
2496 switch (rdev->config.si.mem_row_size_in_kb) { in si_tiling_mode_table_init()
3064 rdev->config.si.backend_enable_mask = enabled_rbs; in si_setup_rb()
3100 rdev->config.si.max_shader_engines = 2; in si_gpu_init()
3101 rdev->config.si.max_tile_pipes = 12; in si_gpu_init()
3102 rdev->config.si.max_cu_per_sh = 8; in si_gpu_init()
3103 rdev->config.si.max_sh_per_se = 2; in si_gpu_init()
3104 rdev->config.si.max_backends_per_se = 4; in si_gpu_init()
3105 rdev->config.si.max_texture_channel_caches = 12; in si_gpu_init()
[all …]
Dradeon_kms.c311 *value = rdev->config.si.tile_config; in radeon_info_ioctl()
366 *value = rdev->config.si.max_backends_per_se * in radeon_info_ioctl()
367 rdev->config.si.max_shader_engines; in radeon_info_ioctl()
385 *value = rdev->config.si.max_tile_pipes; in radeon_info_ioctl()
405 *value = rdev->config.si.backend_map; in radeon_info_ioctl()
434 *value = rdev->config.si.max_cu_per_sh; in radeon_info_ioctl()
460 *value = rdev->config.si.max_shader_engines; in radeon_info_ioctl()
472 *value = rdev->config.si.max_sh_per_se; in radeon_info_ioctl()
508 value = rdev->config.si.tile_mode_array; in radeon_info_ioctl()
531 *value = rdev->config.si.backend_enable_mask; in radeon_info_ioctl()
[all …]
/drivers/mtd/nand/atmel/
Dpmecc.c176 s16 *si; member
375 user->si = user->partial_syn + ((2 * req->ecc.strength) + 1); in atmel_pmecc_create_user()
376 user->lmu = user->si + ((2 * req->ecc.strength) + 1); in atmel_pmecc_create_user()
457 s16 *si; in atmel_pmecc_substitute() local
464 si = user->si; in atmel_pmecc_substitute()
466 memset(&si[1], 0, sizeof(s16) * ((2 * strength) - 1)); in atmel_pmecc_substitute()
473 si[i] = alpha_to[i * j] ^ si[i]; in atmel_pmecc_substitute()
478 if (si[j] == 0) { in atmel_pmecc_substitute()
479 si[i] = 0; in atmel_pmecc_substitute()
483 tmp = index_of[si[j]]; in atmel_pmecc_substitute()
[all …]
/drivers/usb/gadget/udc/bdc/
Dbdc_cmd.c144 u32 mps, mbs, mul, si; in bdc_config_ep() local
157 si = desc->bInterval; in bdc_config_ep()
158 si = clamp_val(si, 1, 16) - 1; in bdc_config_ep()
169 param2 |= si; in bdc_config_ep()
183 param2 |= si; in bdc_config_ep()
194 si += 3; in bdc_config_ep()
202 si = fls(desc->bInterval * 8) - 1; in bdc_config_ep()
204 param2 |= si; in bdc_config_ep()
/drivers/gpu/drm/i915/
Dintel_csr.c194 const struct stepping_info *si; in intel_get_stepping_info() local
199 si = skl_stepping_info; in intel_get_stepping_info()
202 si = bxt_stepping_info; in intel_get_stepping_info()
208 return si + INTEL_REVID(dev_priv); in intel_get_stepping_info()
275 const struct stepping_info *si = intel_get_stepping_info(dev_priv); in parse_csr_fw() local
343 si->stepping == package_header->fw_info[i].stepping) { in parse_csr_fw()
346 } else if (si->stepping == package_header->fw_info[i].stepping && in parse_csr_fw()
347 si->substepping == package_header->fw_info[i].substepping) { in parse_csr_fw()
356 si->stepping); in parse_csr_fw()
/drivers/scsi/libsas/
Dsas_port.c47 struct sas_internal *si = to_sas_internal(sas_ha->core.shost->transportt); in sas_resume_port() local
49 if (si->dft->lldd_port_formed) in sas_resume_port()
50 si->dft->lldd_port_formed(phy); in sas_resume_port()
97 struct sas_internal *si = in sas_form_port() local
191 if (si->dft->lldd_port_formed) in sas_form_port()
192 si->dft->lldd_port_formed(phy); in sas_form_port()
208 struct sas_internal *si = in sas_deform_port() local
229 if (si->dft->lldd_port_deformed) in sas_deform_port()
230 si->dft->lldd_port_deformed(phy); in sas_deform_port()
/drivers/ata/
Dacard-ahci.c233 unsigned int si, last_si = 0; in acard_ahci_fill_sg() local
240 for_each_sg(qc->sg, sg, qc->n_elem, si) { in acard_ahci_fill_sg()
249 acard_sg[si].addr = cpu_to_le32(addr & 0xffffffff); in acard_ahci_fill_sg()
250 acard_sg[si].addr_hi = cpu_to_le32((addr >> 16) >> 16); in acard_ahci_fill_sg()
251 acard_sg[si].size = cpu_to_le32(sg_len); in acard_ahci_fill_sg()
252 last_si = si; in acard_ahci_fill_sg()
257 return si; in acard_ahci_fill_sg()
/drivers/clk/st/
Dclkgen-fsyn.c589 static int clk_fs660c32_get_pe(int m, int si, unsigned long *deviation, in clk_fs660c32_get_pe() argument
597 val = (uint64_t)output << si; in clk_fs660c32_get_pe()
608 fs_tmp.sdiv = si; in clk_fs660c32_get_pe()
618 fs->sdiv = si; in clk_fs660c32_get_pe()
628 int si; /* sdiv_reg (8 downto 0) */ in clk_fs660c32_dig_get_params() local
638 for (si = 0; (si <= 8) && deviation; si++) { in clk_fs660c32_dig_get_params()
641 r1 = clk_fs660c32_get_pe(0, si, &deviation, in clk_fs660c32_dig_get_params()
643 r2 = clk_fs660c32_get_pe(31, si, &deviation, in clk_fs660c32_dig_get_params()
652 clk_fs660c32_get_pe(m, si, &deviation, in clk_fs660c32_dig_get_params()
/drivers/net/ethernet/aquantia/atlantic/
Daq_ethtool.c133 int i, si; in aq_ethtool_get_strings() local
143 for (si = 0; in aq_ethtool_get_strings()
144 si < ARRAY_SIZE(aq_ethtool_queue_stat_names); in aq_ethtool_get_strings()
145 si++) { in aq_ethtool_get_strings()
147 aq_ethtool_queue_stat_names[si], i); in aq_ethtool_get_strings()
/drivers/usb/misc/sisusbvga/
Dsisusb_init.c769 unsigned short si, di, bx, sf; in SiS_LoadDAC() local
819 si = 32; in SiS_LoadDAC()
821 di = si; in SiS_LoadDAC()
822 bx = si + 4; in SiS_LoadDAC()
827 table[si]); in SiS_LoadDAC()
828 si++; in SiS_LoadDAC()
830 si -= 2; in SiS_LoadDAC()
833 table[di], table[si], in SiS_LoadDAC()
835 si--; in SiS_LoadDAC()
838 si += 5; in SiS_LoadDAC()

1234