Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 25 of 200) sorted by relevance

12345678

/drivers/media/usb/pvrusb2/
Dpvrusb2-ioread.c39 static int pvr2_ioread_init(struct pvr2_ioread *cp) in pvr2_ioread_init() argument
43 cp->stream = NULL; in pvr2_ioread_init()
44 mutex_init(&cp->mutex); in pvr2_ioread_init()
47 cp->buffer_storage[idx] = kmalloc(BUFFER_SIZE,GFP_KERNEL); in pvr2_ioread_init()
48 if (!(cp->buffer_storage[idx])) break; in pvr2_ioread_init()
54 if (!(cp->buffer_storage[idx])) continue; in pvr2_ioread_init()
55 kfree(cp->buffer_storage[idx]); in pvr2_ioread_init()
62 static void pvr2_ioread_done(struct pvr2_ioread *cp) in pvr2_ioread_done() argument
66 pvr2_ioread_setup(cp,NULL); in pvr2_ioread_done()
68 if (!(cp->buffer_storage[idx])) continue; in pvr2_ioread_done()
[all …]
Dpvrusb2-context.c237 struct pvr2_channel *cp; in pvr2_context_reset_input_limits() local
241 for (cp = mp->mc_first; cp; cp = cp->mc_next) { in pvr2_context_reset_input_limits()
242 if (!cp->input_mask) continue; in pvr2_context_reset_input_limits()
243 tmsk &= cp->input_mask; in pvr2_context_reset_input_limits()
276 void pvr2_channel_init(struct pvr2_channel *cp,struct pvr2_context *mp) in pvr2_channel_init() argument
279 cp->hdw = mp->hdw; in pvr2_channel_init()
280 cp->mc_head = mp; in pvr2_channel_init()
281 cp->mc_next = NULL; in pvr2_channel_init()
282 cp->mc_prev = mp->mc_last; in pvr2_channel_init()
284 mp->mc_last->mc_next = cp; in pvr2_channel_init()
[all …]
/drivers/net/ethernet/sun/
Dcassini.c161 #define CAS_MAX_MTU min(((cp->page_size << 1) - 0x50), 9000)
230 static void cas_set_link_modes(struct cas *cp);
232 static inline void cas_lock_tx(struct cas *cp) in cas_lock_tx() argument
237 spin_lock_nested(&cp->tx_lock[i], i); in cas_lock_tx()
248 #define cas_lock_all_save(cp, flags) \ argument
250 struct cas *xxxcp = (cp); \
255 static inline void cas_unlock_tx(struct cas *cp) in cas_unlock_tx() argument
260 spin_unlock(&cp->tx_lock[i - 1]); in cas_unlock_tx()
263 #define cas_unlock_all_restore(cp, flags) \ argument
265 struct cas *xxxcp = (cp); \
[all …]
/drivers/s390/char/
Dcon3270.c77 static void con3270_set_timer(struct con3270 *cp, int expires) in con3270_set_timer() argument
80 del_timer(&cp->timer); in con3270_set_timer()
82 mod_timer(&cp->timer, jiffies + expires); in con3270_set_timer()
91 con3270_update_status(struct con3270 *cp) in con3270_update_status() argument
95 str = (cp->nr_up != 0) ? "History" : "Running"; in con3270_update_status()
96 memcpy(cp->status->string + 24, str, 7); in con3270_update_status()
97 codepage_convert(cp->view.ascebc, cp->status->string + 24, 7); in con3270_update_status()
98 cp->update_flags |= CON_UPDATE_STATUS; in con3270_update_status()
102 con3270_create_status(struct con3270 *cp) in con3270_create_status() argument
109 cp->status = alloc_string(&cp->freemem, sizeof(blueprint)); in con3270_create_status()
[all …]
/drivers/net/ethernet/realtek/
D8139cp.c355 #define cpr8(reg) readb(cp->regs + (reg))
356 #define cpr16(reg) readw(cp->regs + (reg))
357 #define cpr32(reg) readl(cp->regs + (reg))
358 #define cpw8(reg,val) writeb((val), cp->regs + (reg))
359 #define cpw16(reg,val) writew((val), cp->regs + (reg))
360 #define cpw32(reg,val) writel((val), cp->regs + (reg))
362 writeb((val), cp->regs + (reg)); \
363 readb(cp->regs + (reg)); \
366 writew((val), cp->regs + (reg)); \
367 readw(cp->regs + (reg)); \
[all …]
/drivers/net/ethernet/broadcom/
Dcnic.c190 struct cnic_local *cp = dev->cnic_priv; in cnic_ctx_wr() local
191 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ctx_wr()
205 struct cnic_local *cp = dev->cnic_priv; in cnic_ctx_tbl_wr() local
206 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ctx_tbl_wr()
219 struct cnic_local *cp = dev->cnic_priv; in cnic_ring_ctl() local
220 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ring_ctl()
237 struct cnic_local *cp = dev->cnic_priv; in cnic_reg_wr_ind() local
238 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_reg_wr_ind()
251 struct cnic_local *cp = dev->cnic_priv; in cnic_reg_rd_ind() local
252 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_reg_rd_ind()
[all …]
/drivers/scsi/sym53c8xx_2/
Dsym_hipd.c46 static void sym_complete_error (struct sym_hcb *np, struct sym_ccb *cp);
47 static void sym_complete_ok (struct sym_hcb *np, struct sym_ccb *cp);
48 static int sym_compute_residual(struct sym_hcb *np, struct sym_ccb *cp);
60 static void sym_print_msg(struct sym_ccb *cp, char *label, u_char *msg) in sym_print_msg() argument
62 sym_print_addr(cp->cmd, "%s: ", label); in sym_print_msg()
1406 static int sym_prepare_nego(struct sym_hcb *np, struct sym_ccb *cp, u_char *msgptr) argument
1408 struct sym_tcb *tp = &np->target[cp->target];
1449 cp->nego_status = nego;
1452 tp->nego_cp = cp; /* Keep track a nego will be performed */
1454 sym_print_nego_msg(np, cp->target,
[all …]
Dsym_glue.c170 void sym_set_cam_result_error(struct sym_hcb *np, struct sym_ccb *cp, int resid) in sym_set_cam_result_error() argument
172 struct scsi_cmnd *cmd = cp->cmd; in sym_set_cam_result_error()
177 scsi_status = cp->ssss_status; in sym_set_cam_result_error()
179 if (cp->host_flags & HF_SENSE) { in sym_set_cam_result_error()
180 scsi_status = cp->sv_scsi_status; in sym_set_cam_result_error()
181 resid = cp->sv_resid; in sym_set_cam_result_error()
182 if (sym_verbose && cp->sv_xerr_status) in sym_set_cam_result_error()
183 sym_print_xerr(cmd, cp->sv_xerr_status); in sym_set_cam_result_error()
184 if (cp->host_status == HS_COMPLETE && in sym_set_cam_result_error()
185 cp->ssss_status == S_GOOD && in sym_set_cam_result_error()
[all …]
/drivers/mailbox/
Dimx-mailbox.c78 int (*tx)(struct imx_mu_priv *priv, struct imx_mu_con_priv *cp, void *data);
79 int (*rx)(struct imx_mu_priv *priv, struct imx_mu_con_priv *cp);
118 struct imx_mu_con_priv *cp, in imx_mu_generic_tx() argument
123 switch (cp->type) { in imx_mu_generic_tx()
125 imx_mu_write(priv, *arg, priv->dcfg->xTR[cp->idx]); in imx_mu_generic_tx()
126 imx_mu_xcr_rmw(priv, IMX_MU_xCR_TIEn(cp->idx), 0); in imx_mu_generic_tx()
129 imx_mu_xcr_rmw(priv, IMX_MU_xCR_GIRn(cp->idx), 0); in imx_mu_generic_tx()
130 tasklet_schedule(&cp->txdb_tasklet); in imx_mu_generic_tx()
133 dev_warn_ratelimited(priv->dev, "Send data on wrong channel type: %d\n", cp->type); in imx_mu_generic_tx()
141 struct imx_mu_con_priv *cp) in imx_mu_generic_rx() argument
[all …]
/drivers/accessibility/speakup/
Dkobjects.c34 char *cp; in chars_chartab_show() local
49 cp = "B_CTL"; in chars_chartab_show()
51 cp = "WDLM"; in chars_chartab_show()
53 cp = "A_PUNC"; in chars_chartab_show()
55 cp = "PUNC"; in chars_chartab_show()
57 cp = "NUM"; in chars_chartab_show()
59 cp = "A_CAP"; in chars_chartab_show()
61 cp = "ALPHA"; in chars_chartab_show()
63 cp = "B_CAPSYM"; in chars_chartab_show()
65 cp = "B_SYM"; in chars_chartab_show()
[all …]
Dvarhandlers.c184 char *cp; in spk_set_num_var() local
236 cp = spk_pitch_buff; in spk_set_num_var()
238 cp = buf; in spk_set_num_var()
240 sprintf(cp, var_data->u.n.synth_fmt, (int)val); in spk_set_num_var()
242 sprintf(cp, var_data->u.n.synth_fmt, in spk_set_num_var()
244 synth_printf("%s", cp); in spk_set_num_var()
280 u_char *cp; in spk_set_mask_bits() local
284 for (cp = (u_char *)spk_punc_info[3].value; *cp; cp++) in spk_set_mask_bits()
285 spk_chartab[*cp] &= ~mask; in spk_set_mask_bits()
287 cp = (u_char *)input; in spk_set_mask_bits()
[all …]
/drivers/firmware/efi/libstub/
Dstring.c65 static unsigned int simple_guess_base(const char *cp) in simple_guess_base() argument
67 if (cp[0] == '0') { in simple_guess_base()
68 if (TOLOWER(cp[1]) == 'x' && isxdigit(cp[2])) in simple_guess_base()
84 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base) in simple_strtoull() argument
89 base = simple_guess_base(cp); in simple_strtoull()
91 if (base == 16 && cp[0] == '0' && TOLOWER(cp[1]) == 'x') in simple_strtoull()
92 cp += 2; in simple_strtoull()
94 while (isxdigit(*cp)) { in simple_strtoull()
97 value = isdigit(*cp) ? *cp - '0' : TOLOWER(*cp) - 'a' + 10; in simple_strtoull()
101 cp++; in simple_strtoull()
[all …]
/drivers/s390/cio/
Dvfio_ccw_cp.c314 static struct ccwchain *ccwchain_alloc(struct channel_program *cp, int len) in ccwchain_alloc() argument
336 list_add_tail(&chain->next, &cp->ccwchain_list); in ccwchain_alloc()
371 static int ccwchain_calc_length(u64 iova, struct channel_program *cp) in ccwchain_calc_length() argument
373 struct ccw1 *ccw = cp->guest_cp; in ccwchain_calc_length()
384 if ((!cp->orb.cmd.c64 || cp->orb.cmd.i2k) && ccw_is_idal(ccw)) in ccwchain_calc_length()
407 static int tic_target_chain_exists(struct ccw1 *tic, struct channel_program *cp) in tic_target_chain_exists() argument
412 list_for_each_entry(chain, &cp->ccwchain_list, next) { in tic_target_chain_exists()
422 struct channel_program *cp);
424 static int ccwchain_handle_ccw(u32 cda, struct channel_program *cp) in ccwchain_handle_ccw() argument
430 len = copy_from_iova(cp->mdev, cp->guest_cp, cda, in ccwchain_handle_ccw()
[all …]
Ddevice_pgid.c60 struct ccw1 *cp = cdev->private->dma_area->iccws; in nop_build_cp() local
62 cp->cmd_code = CCW_CMD_NOOP; in nop_build_cp()
63 cp->cda = 0; in nop_build_cp()
64 cp->count = 0; in nop_build_cp()
65 cp->flags = CCW_FLAG_SLI; in nop_build_cp()
66 req->cp = cp; in nop_build_cp()
137 struct ccw1 *cp = cdev->private->dma_area->iccws; in spid_build_cp() local
142 cp->cmd_code = CCW_CMD_SET_PGID; in spid_build_cp()
143 cp->cda = (u32) (addr_t) pgid; in spid_build_cp()
144 cp->count = sizeof(*pgid); in spid_build_cp()
[all …]
/drivers/net/slip/
Dslhc.c82 static unsigned char *encode(unsigned char *cp, unsigned short n);
84 static unsigned char * put16(unsigned char *cp, unsigned short x);
171 put16(unsigned char *cp, unsigned short x) in put16() argument
173 *cp++ = x >> 8; in put16()
174 *cp++ = x; in put16()
176 return cp; in put16()
182 encode(unsigned char *cp, unsigned short n) in encode() argument
185 *cp++ = 0; in encode()
186 cp = put16(cp,n); in encode()
188 *cp++ = n; in encode()
[all …]
/drivers/scsi/
Dncr53c8xx.c857 #define CCB_DONE_VALID(cp) (((u_long) cp) != CCB_DONE_EMPTY) argument
861 #define CCB_DONE_VALID(cp) \ argument
862 ((((u_long) cp) & 0xffffffff00000000ul) && \
863 (((u_long) cp) & 0xfffffffful) != CCB_DONE_EMPTY)
1380 struct ccb * cp; member
1576 #define CCB_PHYS(cp,lbl) (cp->p_ccb + offsetof(struct ccb, lbl)) argument
1908 static void ncr_complete (struct ncb *np, struct ccb *cp);
1910 static void ncr_free_ccb (struct ncb *np, struct ccb *cp);
1911 static void ncr_init_ccb (struct ncb *np, struct ccb *cp);
1926 static int ncr_prepare_nego(struct ncb *np, struct ccb *cp, u_char *msgptr);
[all …]
/drivers/infiniband/hw/qib/
Dqib_qsfp.c273 int qib_refresh_qsfp_cache(struct qib_pportdata *ppd, struct qib_qsfp_cache *cp) in qib_refresh_qsfp_cache() argument
281 memset(cp, 0, sizeof(*cp)); in qib_refresh_qsfp_cache()
311 ret = qsfp_read(ppd, QSFP_MOD_ID_OFFS, &cp->id, 1); in qib_refresh_qsfp_cache()
314 if ((cp->id & 0xFE) != 0x0C) in qib_refresh_qsfp_cache()
316 "QSFP ID byte is 0x%02X, S/B 0x0C/D\n", cp->id); in qib_refresh_qsfp_cache()
317 cks = cp->id; in qib_refresh_qsfp_cache()
319 ret = qsfp_read(ppd, QSFP_MOD_PWR_OFFS, &cp->pwr, 1); in qib_refresh_qsfp_cache()
322 cks += cp->pwr; in qib_refresh_qsfp_cache()
329 ret = qsfp_read(ppd, QSFP_MOD_LEN_OFFS, &cp->len, 1); in qib_refresh_qsfp_cache()
332 cks += cp->len; in qib_refresh_qsfp_cache()
[all …]
/drivers/gpu/drm/amd/display/dc/dce112/
Ddce112_compressor.h48 void dce112_compressor_destroy(struct compressor **cp);
51 void dce112_compressor_power_up_fbc(struct compressor *cp);
53 void dce112_compressor_enable_fbc(struct compressor *cp, uint32_t paths_num,
56 void dce112_compressor_disable_fbc(struct compressor *cp);
58 void dce112_compressor_set_fbc_invalidation_triggers(struct compressor *cp,
62 struct compressor *cp,
65 bool dce112_compressor_is_fbc_enabled_in_hw(struct compressor *cp,
69 void dce112_compressor_enable_lpt(struct compressor *cp);
71 void dce112_compressor_disable_lpt(struct compressor *cp);
73 void dce112_compressor_program_lpt_control(struct compressor *cp,
[all …]
/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_compressor.h48 void dce110_compressor_destroy(struct compressor **cp);
51 void dce110_compressor_power_up_fbc(struct compressor *cp);
53 void dce110_compressor_enable_fbc(struct compressor *cp,
56 void dce110_compressor_disable_fbc(struct compressor *cp);
58 void dce110_compressor_set_fbc_invalidation_triggers(struct compressor *cp,
62 struct compressor *cp,
65 bool dce110_compressor_is_fbc_enabled_in_hw(struct compressor *cp,
69 void dce110_compressor_enable_lpt(struct compressor *cp);
71 void dce110_compressor_disable_lpt(struct compressor *cp);
73 void dce110_compressor_program_lpt_control(struct compressor *cp,
[all …]
/drivers/mmc/host/
Dmmc_spi.c160 u8 *cp = host->data->status; in mmc_spi_skip() local
172 if (cp[i] != byte) in mmc_spi_skip()
173 return cp[i]; in mmc_spi_skip()
226 u8 *cp = host->data->status; in mmc_spi_response_get() local
227 u8 *end = cp + host->t.len; in mmc_spi_response_get()
244 cp += 8; in mmc_spi_response_get()
245 while (cp < end && *cp == 0xff) in mmc_spi_response_get()
246 cp++; in mmc_spi_response_get()
249 if (cp == end) { in mmc_spi_response_get()
250 cp = host->data->status; in mmc_spi_response_get()
[all …]
/drivers/base/
Dclass.c29 struct subsys_private *cp = to_subsys_private(kobj); in class_attr_show() local
33 ret = class_attr->show(cp->class, class_attr, buf); in class_attr_show()
41 struct subsys_private *cp = to_subsys_private(kobj); in class_attr_store() local
45 ret = class_attr->store(cp->class, class_attr, buf, count); in class_attr_store()
51 struct subsys_private *cp = to_subsys_private(kobj); in class_release() local
52 struct class *class = cp->class; in class_release()
62 kfree(cp); in class_release()
67 struct subsys_private *cp = to_subsys_private(kobj); in class_child_ns_type() local
68 struct class *class = cp->class; in class_child_ns_type()
155 struct subsys_private *cp; in __class_register() local
[all …]
/drivers/net/wireless/ath/wil6210/
Dethtool.c15 struct ethtool_coalesce *cp) in wil_ethtoolops_get_coalesce() argument
39 cp->tx_coalesce_usecs = tx_itr_val; in wil_ethtoolops_get_coalesce()
40 cp->rx_coalesce_usecs = rx_itr_val; in wil_ethtoolops_get_coalesce()
49 struct ethtool_coalesce *cp) in wil_ethtoolops_set_coalesce() argument
57 cp->rx_coalesce_usecs, cp->tx_coalesce_usecs); in wil_ethtoolops_set_coalesce()
69 if (cp->rx_coalesce_usecs > WIL6210_ITR_TRSH_MAX || in wil_ethtoolops_set_coalesce()
70 cp->tx_coalesce_usecs > WIL6210_ITR_TRSH_MAX) in wil_ethtoolops_set_coalesce()
73 wil->tx_max_burst_duration = cp->tx_coalesce_usecs; in wil_ethtoolops_set_coalesce()
74 wil->rx_max_burst_duration = cp->rx_coalesce_usecs; in wil_ethtoolops_set_coalesce()
92 cp, sizeof(*cp), false); in wil_ethtoolops_set_coalesce()
/drivers/tty/
Drocket.c301 static void rp_do_receive(struct r_port *info, CHANNEL_t *cp, in rp_do_receive() argument
308 ToRecv = sGetRxCnt(cp); in rp_do_receive()
326 sEnRxStatusMode(cp); in rp_do_receive()
343 CharNStat = sInW(sGetTxRxDataIO(cp)); in rp_do_receive()
373 if (sGetRxCnt(cp) == 0) { in rp_do_receive()
377 sDisRxStatusMode(cp); in rp_do_receive()
396 sInStrW(sGetTxRxDataIO(cp), (unsigned short *) cbuf, wRecv); in rp_do_receive()
398 cbuf[ToRecv - 1] = sInB(sGetTxRxDataIO(cp)); in rp_do_receive()
413 CHANNEL_t *cp = &info->channel; in rp_do_transmit() local
431 info->xmit_fifo_room = TXFIFO_SIZE - sGetTxCnt(cp); in rp_do_transmit()
[all …]
/drivers/net/ethernet/apple/
Dmace.c434 volatile struct dbdma_cmd *cp; in mace_open() local
445 cp = mp->rx_cmds; in mace_open()
455 cp->req_count = cpu_to_le16(RX_BUFLEN); in mace_open()
456 cp->command = cpu_to_le16(INPUT_LAST + INTR_ALWAYS); in mace_open()
457 cp->phy_addr = cpu_to_le32(virt_to_bus(data)); in mace_open()
458 cp->xfer_status = 0; in mace_open()
459 ++cp; in mace_open()
462 cp->command = cpu_to_le16(DBDMA_STOP); in mace_open()
467 ++cp; in mace_open()
468 cp->command = cpu_to_le16(DBDMA_NOP + BR_ALWAYS); in mace_open()
[all …]
/drivers/scsi/libfc/
Dfc_disc.c500 struct fc_ct_hdr *cp; in fc_disc_gpn_ft_resp() local
521 cp = fc_frame_payload_get(fp, sizeof(*cp)); in fc_disc_gpn_ft_resp()
522 if (!cp) { in fc_disc_gpn_ft_resp()
526 } else if (ntohs(cp->ct_cmd) == FC_FS_ACC) { in fc_disc_gpn_ft_resp()
529 len -= sizeof(*cp); in fc_disc_gpn_ft_resp()
530 error = fc_disc_gpn_ft_parse(disc, cp + 1, len); in fc_disc_gpn_ft_resp()
531 } else if (ntohs(cp->ct_cmd) == FC_FS_RJT) { in fc_disc_gpn_ft_resp()
533 "(check zoning)\n", cp->ct_reason, in fc_disc_gpn_ft_resp()
534 cp->ct_explan); in fc_disc_gpn_ft_resp()
536 if (cp->ct_reason == FC_FS_RJT_UNABL && in fc_disc_gpn_ft_resp()
[all …]

12345678