Home
last modified time | relevance | path

Searched refs:ps (Results 1 – 25 of 92) sorted by relevance

1234

/drivers/md/
Ddm-snap-persistent.c163 static int alloc_area(struct pstore *ps) in alloc_area() argument
168 len = ps->store->chunk_size << SECTOR_SHIFT; in alloc_area()
174 ps->area = vmalloc(len); in alloc_area()
175 if (!ps->area) in alloc_area()
178 ps->zero_area = vzalloc(len); in alloc_area()
179 if (!ps->zero_area) in alloc_area()
182 ps->header_area = vmalloc(len); in alloc_area()
183 if (!ps->header_area) in alloc_area()
189 vfree(ps->zero_area); in alloc_area()
192 vfree(ps->area); in alloc_area()
[all …]
Ddm-queue-length.c53 static int ql_create(struct path_selector *ps, unsigned argc, char **argv) in ql_create() argument
60 ps->context = s; in ql_create()
74 static void ql_destroy(struct path_selector *ps) in ql_destroy() argument
76 struct selector *s = ps->context; in ql_destroy()
81 ps->context = NULL; in ql_destroy()
84 static int ql_status(struct path_selector *ps, struct dm_path *path, in ql_status() argument
109 static int ql_add_path(struct path_selector *ps, struct dm_path *path, in ql_add_path() argument
112 struct selector *s = ps->context; in ql_add_path()
150 static void ql_fail_path(struct path_selector *ps, struct dm_path *path) in ql_fail_path() argument
152 struct selector *s = ps->context; in ql_fail_path()
[all …]
Ddm-round-robin.c63 static int rr_create(struct path_selector *ps, unsigned argc, char **argv) in rr_create() argument
71 ps->context = s; in rr_create()
75 static void rr_destroy(struct path_selector *ps) in rr_destroy() argument
77 struct selector *s = (struct selector *) ps->context; in rr_destroy()
82 ps->context = NULL; in rr_destroy()
85 static int rr_status(struct path_selector *ps, struct dm_path *path, in rr_status() argument
111 static int rr_add_path(struct path_selector *ps, struct dm_path *path, in rr_add_path() argument
114 struct selector *s = (struct selector *) ps->context; in rr_add_path()
147 static void rr_fail_path(struct path_selector *ps, struct dm_path *p) in rr_fail_path() argument
149 struct selector *s = (struct selector *) ps->context; in rr_fail_path()
[all …]
Ddm-path-selector.h40 int (*create) (struct path_selector *ps, unsigned argc, char **argv);
41 void (*destroy) (struct path_selector *ps);
47 int (*add_path) (struct path_selector *ps, struct dm_path *path,
58 struct dm_path *(*select_path) (struct path_selector *ps,
65 void (*fail_path) (struct path_selector *ps, struct dm_path *p);
70 int (*reinstate_path) (struct path_selector *ps, struct dm_path *p);
76 int (*status) (struct path_selector *ps, struct dm_path *path,
79 int (*start_io) (struct path_selector *ps, struct dm_path *path,
81 int (*end_io) (struct path_selector *ps, struct dm_path *path,
Ddm-service-time.c49 static int st_create(struct path_selector *ps, unsigned argc, char **argv) in st_create() argument
56 ps->context = s; in st_create()
70 static void st_destroy(struct path_selector *ps) in st_destroy() argument
72 struct selector *s = ps->context; in st_destroy()
77 ps->context = NULL; in st_destroy()
80 static int st_status(struct path_selector *ps, struct dm_path *path, in st_status() argument
106 static int st_add_path(struct path_selector *ps, struct dm_path *path, in st_add_path() argument
109 struct selector *s = ps->context; in st_add_path()
163 static void st_fail_path(struct path_selector *ps, struct dm_path *path) in st_fail_path() argument
165 struct selector *s = ps->context; in st_fail_path()
[all …]
Ddm-mpath.c51 struct path_selector ps; member
179 struct path_selector *ps = &pg->ps; in free_priority_group() local
181 if (ps->type) { in free_priority_group()
182 ps->type->destroy(ps); in free_priority_group()
183 dm_put_path_selector(ps->type); in free_priority_group()
299 path = pg->ps.type->select_path(&pg->ps, &m->repeat_count, nr_bytes); in __choose_path_in_pg()
415 if (r == DM_MAPIO_REMAPPED && pgpath->pg->ps.type->start_io) in map_io()
416 pgpath->pg->ps.type->start_io(&pgpath->pg->ps, &pgpath->path, in map_io()
553 r = pst->create(&pg->ps, ps_argc, as->argv); in parse_path_selector()
560 pg->ps.type = pst; in parse_path_selector()
[all …]
/drivers/usb/core/
Ddevio.c84 struct dev_state *ps; member
154 static int connected(struct dev_state *ps) in connected() argument
156 return (!list_empty(&ps->list) && in connected()
157 ps->dev->state != USB_STATE_NOTATTACHED); in connected()
187 struct dev_state *ps = file->private_data; in usbdev_read() local
188 struct usb_device *dev = ps->dev; in usbdev_read()
196 if (!connected(ps)) { in usbdev_read()
310 struct dev_state *ps = as->ps; in async_newpending() local
313 spin_lock_irqsave(&ps->lock, flags); in async_newpending()
314 list_add_tail(&as->asynclist, &ps->async_pending); in async_newpending()
[all …]
/drivers/net/wireless/ath/ath9k/
Ddfs_pri_detector.c95 struct pri_sequence *ps, *ps0; in pool_deregister_ref() local
103 list_for_each_entry_safe(ps, ps0, &pseq_pool, head) { in pool_deregister_ref()
104 list_del(&ps->head); in pool_deregister_ref()
106 kfree(ps); in pool_deregister_ref()
223 struct pri_sequence ps, *new_ps; in pseq_handler_create_sequences() local
238 ps.count = 2; in pseq_handler_create_sequences()
239 ps.count_falses = 0; in pseq_handler_create_sequences()
240 ps.first_ts = p->ts; in pseq_handler_create_sequences()
241 ps.last_ts = ts; in pseq_handler_create_sequences()
242 ps.pri = ts - p->ts; in pseq_handler_create_sequences()
[all …]
Ddfs_pattern_detector.c243 struct pri_sequence *ps = pd->add_pulse(pd, event); in dpd_add_pulse() local
244 if (ps != NULL) { in dpd_add_pulse()
249 ps->pri, ps->count, ps->count_falses); in dpd_add_pulse()
/drivers/net/dsa/
Dmv88e6xxx.c77 struct mv88e6xxx_priv_state *ps = (void *)(ds + 1); in mv88e6xxx_reg_read() local
80 mutex_lock(&ps->smi_mutex); in mv88e6xxx_reg_read()
83 mutex_unlock(&ps->smi_mutex); in mv88e6xxx_reg_read()
121 struct mv88e6xxx_priv_state *ps = (void *)(ds + 1); in mv88e6xxx_reg_write() local
124 mutex_lock(&ps->smi_mutex); in mv88e6xxx_reg_write()
127 mutex_unlock(&ps->smi_mutex); in mv88e6xxx_reg_write()
238 struct mv88e6xxx_priv_state *ps; in mv88e6xxx_ppu_reenable_work() local
240 ps = container_of(ugly, struct mv88e6xxx_priv_state, ppu_work); in mv88e6xxx_ppu_reenable_work()
241 if (mutex_trylock(&ps->ppu_mutex)) { in mv88e6xxx_ppu_reenable_work()
242 struct dsa_switch *ds = ((struct dsa_switch *)ps) - 1; in mv88e6xxx_ppu_reenable_work()
[all …]
Dmv88e6131.c158 struct mv88e6xxx_priv_state *ps = (void *)(ds + 1); in mv88e6131_setup_port() local
168 if (ps->id == ID_6085) in mv88e6131_setup_port()
195 if (ps->id == ID_6085) in mv88e6131_setup_port()
236 if (ps->id == ID_6085) in mv88e6131_setup_port()
277 struct mv88e6xxx_priv_state *ps = (void *)(ds + 1); in mv88e6131_setup() local
281 mutex_init(&ps->smi_mutex); in mv88e6131_setup()
283 mutex_init(&ps->stats_mutex); in mv88e6131_setup()
285 ps->id = REG_READ(REG_PORT(0), 0x03) & 0xfff0; in mv88e6131_setup()
/drivers/media/platform/omap/
Domap_vout_vrfb.c298 int vr_ps = 1, ps = 2, temp_ps = 2; in omap_vout_calculate_vrfb_offset() local
312 ps = 4; in omap_vout_calculate_vrfb_offset()
315 ps = 2; /* otherwise the pixel size is 2 byte */ in omap_vout_calculate_vrfb_offset()
318 ps = 4; in omap_vout_calculate_vrfb_offset()
320 ps = 3; in omap_vout_calculate_vrfb_offset()
322 vout->ps = ps; in omap_vout_calculate_vrfb_offset()
337 temp_ps = ps / vr_ps; in omap_vout_calculate_vrfb_offset()
344 ((crop->width / (vr_ps)) - 1) * ps); in omap_vout_calculate_vrfb_offset()
353 *cropped_offset = offset + (line_length * ps * ctop) + in omap_vout_calculate_vrfb_offset()
354 (cleft / vr_ps) * ps; in omap_vout_calculate_vrfb_offset()
[all …]
/drivers/tty/vt/
Dselection.c163 int i, ps, pe, multiplier; in set_selection() local
183 ps = ys * vc->vc_size_row + (xs << 1); in set_selection()
198 if (ps > pe) /* make sel_start <= sel_end */ in set_selection()
200 int tmp = ps; in set_selection()
201 ps = pe; in set_selection()
218 new_sel_start = ps; in set_selection()
222 spc = isspace(sel_pos(ps)); in set_selection()
223 for (new_sel_start = ps; ; ps -= 2) in set_selection()
225 if ((spc && !isspace(sel_pos(ps))) || in set_selection()
226 (!spc && !inword(sel_pos(ps)))) in set_selection()
[all …]
/drivers/net/wireless/ti/wl12xx/
Ddebugfs.c110 WL12XX_DEBUGFS_FWSTATS_FILE(ps, pspoll_timeouts, "%u");
111 WL12XX_DEBUGFS_FWSTATS_FILE(ps, upsd_timeouts, "%u");
112 WL12XX_DEBUGFS_FWSTATS_FILE(ps, upsd_max_sptime, "%u");
113 WL12XX_DEBUGFS_FWSTATS_FILE(ps, upsd_max_apturn, "%u");
114 WL12XX_DEBUGFS_FWSTATS_FILE(ps, pspoll_max_apturn, "%u");
115 WL12XX_DEBUGFS_FWSTATS_FILE(ps, pspoll_utilization, "%u");
116 WL12XX_DEBUGFS_FWSTATS_FILE(ps, upsd_utilization, "%u");
220 DEBUGFS_FWSTATS_ADD(ps, pspoll_timeouts); in wl12xx_debugfs_add_files()
221 DEBUGFS_FWSTATS_ADD(ps, upsd_timeouts); in wl12xx_debugfs_add_files()
222 DEBUGFS_FWSTATS_ADD(ps, upsd_max_sptime); in wl12xx_debugfs_add_files()
[all …]
/drivers/net/wireless/ti/wl1251/
Ddebugfs.c197 DEBUGFS_FWSTATS_FILE(ps, pspoll_timeouts, 20, "%u");
198 DEBUGFS_FWSTATS_FILE(ps, upsd_timeouts, 20, "%u");
199 DEBUGFS_FWSTATS_FILE(ps, upsd_max_sptime, 20, "%u");
200 DEBUGFS_FWSTATS_FILE(ps, upsd_max_apturn, 20, "%u");
201 DEBUGFS_FWSTATS_FILE(ps, pspoll_max_apturn, 20, "%u");
202 DEBUGFS_FWSTATS_FILE(ps, pspoll_utilization, 20, "%u");
203 DEBUGFS_FWSTATS_FILE(ps, upsd_utilization, 20, "%u");
337 DEBUGFS_FWSTATS_DEL(ps, pspoll_timeouts); in wl1251_debugfs_delete_files()
338 DEBUGFS_FWSTATS_DEL(ps, upsd_timeouts); in wl1251_debugfs_delete_files()
339 DEBUGFS_FWSTATS_DEL(ps, upsd_max_sptime); in wl1251_debugfs_delete_files()
[all …]
/drivers/staging/speakup/
Dselection.c52 int i, ps, pe; in speakup_set_selection() local
59 ps = spk_ys * vc->vc_size_row + (spk_xs << 1); in speakup_set_selection()
62 if (ps > pe) { in speakup_set_selection()
64 int tmp = ps; in speakup_set_selection()
65 ps = pe; in speakup_set_selection()
77 new_sel_start = ps; in speakup_set_selection()
/drivers/scsi/
Dosst.h136 unsigned ps :1; member
142 unsigned ps :1;
179 unsigned ps :1; member
185 unsigned ps :1;
305 unsigned ps :1; member
311 unsigned ps :1;
343 unsigned ps :1; member
349 unsigned ps :1;
564 struct st_partstat ps[ST_NBR_PARTITIONS]; member
/drivers/pci/
Dats.c20 static int ats_alloc_one(struct pci_dev *dev, int ps) in ats_alloc_one() argument
35 ats->stu = ps; in ats_alloc_one()
57 int pci_enable_ats(struct pci_dev *dev, int ps) in pci_enable_ats() argument
64 if (ps < PCI_ATS_MIN_STU) in pci_enable_ats()
72 rc = pdev->ats->stu == ps ? 0 : -EINVAL; in pci_enable_ats()
74 rc = ats_alloc_one(pdev, ps); in pci_enable_ats()
84 rc = ats_alloc_one(dev, ps); in pci_enable_ats()
91 ctrl |= PCI_ATS_CTRL_STU(ps - PCI_ATS_MIN_STU); in pci_enable_ats()
/drivers/video/omap2/dss/
Ddispc.c1691 static s32 pixinc(int pixels, u8 ps) in pixinc() argument
1696 return 1 + (pixels - 1) * ps; in pixinc()
1698 return 1 - (-pixels + 1) * ps; in pixinc()
1712 u8 ps; in calc_vrfb_rotation_offset() local
1724 ps = 4; in calc_vrfb_rotation_offset()
1727 ps = color_mode_to_bpp(color_mode) / 8; in calc_vrfb_rotation_offset()
1752 *offset0 = field_offset * screen_width * ps; in calc_vrfb_rotation_offset()
1758 (fieldmode ? screen_width : 0), ps); in calc_vrfb_rotation_offset()
1759 *pix_inc = pixinc(x_predecim, ps); in calc_vrfb_rotation_offset()
1774 *offset0 = field_offset * screen_width * ps; in calc_vrfb_rotation_offset()
[all …]
/drivers/infiniband/core/
Dcma.c97 struct idr *ps; member
321 switch (id_priv->id.ps) { in cma_set_qkey()
372 id_priv->id.ps == RDMA_PS_IPOIB) in cma_acquire_dev()
422 void *context, enum rdma_port_space ps, in rdma_create_id() argument
435 id_priv->id.ps = ps; in rdma_create_id()
737 static int cma_get_net_info(void *hdr, enum rdma_port_space ps, in cma_get_net_info() argument
741 switch (ps) { in cma_get_net_info()
806 static inline int cma_user_data_offset(enum rdma_port_space ps) in cma_user_data_offset() argument
808 switch (ps) { in cma_user_data_offset()
883 idr_remove(bind_list->ps, bind_list->port); in cma_release_port()
[all …]
/drivers/net/wireless/ath/carl9170/
Drx.c79 u32 ps; in carl9170_handle_ps() local
82 ps = le32_to_cpu(rsp->psm.state); in carl9170_handle_ps()
84 new_ps = (ps & CARL9170_PSM_COUNTER) != CARL9170_PSM_WAKE; in carl9170_handle_ps()
85 if (ar->ps.state != new_ps) { in carl9170_handle_ps()
87 ar->ps.sleep_ms = jiffies_to_msecs(jiffies - in carl9170_handle_ps()
88 ar->ps.last_action); in carl9170_handle_ps()
91 ar->ps.last_action = jiffies; in carl9170_handle_ps()
93 ar->ps.state = new_ps; in carl9170_handle_ps()
543 ar->ps.last_beacon = jiffies; in carl9170_ps_beacon()
556 ar->ps.dtim_counter = (tim_ie->dtim_count - 1) % in carl9170_ps_beacon()
[all …]
/drivers/net/ethernet/amd/
Dau1000_eth.c682 struct net_device_stats *ps = &dev->stats; in au1000_update_rx_stats() local
684 ps->rx_packets++; in au1000_update_rx_stats()
686 ps->multicast++; in au1000_update_rx_stats()
689 ps->rx_errors++; in au1000_update_rx_stats()
691 ps->rx_missed_errors++; in au1000_update_rx_stats()
693 ps->rx_length_errors++; in au1000_update_rx_stats()
695 ps->rx_crc_errors++; in au1000_update_rx_stats()
697 ps->collisions++; in au1000_update_rx_stats()
699 ps->rx_bytes += status & RX_FRAME_LEN_MASK; in au1000_update_rx_stats()
777 struct net_device_stats *ps = &dev->stats; in au1000_update_tx_stats() local
[all …]
/drivers/gpu/drm/radeon/
Datom.c57 uint32_t *ps, *ws; member
225 val = get_unaligned_le32((u32 *)&ctx->ps[idx]); in atom_get_src_int()
501 ctx->ps[idx] = cpu_to_le32(val); in atom_put_dst()
630 r = atom_execute_table_locked(ctx->ctx, idx, ctx->ps + ctx->ps_shift); in atom_op_calltable()
1162 int len, ws, ps, ptr; in atom_execute_table_locked() local
1172 ps = CU8(base + ATOM_CT_PS_PTR) & ATOM_CT_PS_MASK; in atom_execute_table_locked()
1175 SDEBUG(">> execute %04X (len %d, WS %d, PS %d)\n", base, len, ws, ps); in atom_execute_table_locked()
1178 ectx.ps_shift = ps / 4; in atom_execute_table_locked()
1180 ectx.ps = params; in atom_execute_table_locked()
1197 base, len, ws, ps, ptr - 1); in atom_execute_table_locked()
[all …]
Drs600.c159 struct radeon_power_state *ps = &rdev->pm.power_state[requested_index]; in rs600_pm_misc() local
160 struct radeon_voltage *voltage = &ps->clock_info[0].voltage; in rs600_pm_misc()
165 if (ps->misc & ATOM_PM_MISCINFO_VOLTAGE_DROP_SUPPORT) { in rs600_pm_misc()
190 if (ps->misc & ATOM_PM_MISCINFO_ASIC_REDUCED_SPEED_SCLK_EN) { in rs600_pm_misc()
191 if (ps->misc & ATOM_PM_MISCINFO_DYNAMIC_CLOCK_DIVIDER_BY_2) { in rs600_pm_misc()
194 } else if (ps->misc & ATOM_PM_MISCINFO_DYNAMIC_CLOCK_DIVIDER_BY_4) { in rs600_pm_misc()
205 if (ps->misc & ATOM_PM_MISCINFO_ASIC_DYNAMIC_VOLTAGE_EN) { in rs600_pm_misc()
217 if (ps->misc & ATOM_PM_MISCINFO_DYNAMIC_HDP_BLOCK_EN) in rs600_pm_misc()
225 if (ps->misc & ATOM_PM_MISCINFO_DYNAMIC_MC_HOST_BLOCK_EN) in rs600_pm_misc()
232 if (ps->misc & ATOM_PM_MISCINFO2_DYNAMIC_BACK_BIAS_EN) in rs600_pm_misc()
[all …]
/drivers/net/irda/
Dau1k_ir.c391 struct net_device_stats *ps = &dev->stats; in update_rx_stats() local
393 ps->rx_packets++; in update_rx_stats()
396 ps->rx_errors++; in update_rx_stats()
398 ps->rx_missed_errors++; in update_rx_stats()
400 ps->rx_length_errors++; in update_rx_stats()
402 ps->rx_crc_errors++; in update_rx_stats()
404 ps->rx_bytes += count; in update_rx_stats()
409 struct net_device_stats *ps = &dev->stats; in update_tx_stats() local
411 ps->tx_packets++; in update_tx_stats()
412 ps->tx_bytes += pkt_len; in update_tx_stats()
[all …]

1234