/drivers/media/usb/pvrusb2/ |
D | pvrusb2-ioread.c | 39 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 …]
|
D | pvrusb2-context.c | 237 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/ |
D | cassini.c | 160 #define CAS_MAX_MTU min(((cp->page_size << 1) - 0x50), 9000) 229 static void cas_set_link_modes(struct cas *cp); 231 static inline void cas_lock_tx(struct cas *cp) in cas_lock_tx() argument 236 spin_lock_nested(&cp->tx_lock[i], i); in cas_lock_tx() 247 #define cas_lock_all_save(cp, flags) \ argument 249 struct cas *xxxcp = (cp); \ 254 static inline void cas_unlock_tx(struct cas *cp) in cas_unlock_tx() argument 259 spin_unlock(&cp->tx_lock[i - 1]); in cas_unlock_tx() 262 #define cas_unlock_all_restore(cp, flags) \ argument 264 struct cas *xxxcp = (cp); \ [all …]
|
/drivers/net/ethernet/realtek/ |
D | 8139cp.c | 355 #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/ |
D | cnic.c | 190 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/s390/cio/ |
D | vfio_ccw_cp.c | 317 static struct ccwchain *ccwchain_alloc(struct channel_program *cp, int len) in ccwchain_alloc() argument 333 list_add_tail(&chain->next, &cp->ccwchain_list); in ccwchain_alloc() 375 static int ccwchain_calc_length(u64 iova, struct channel_program *cp) in ccwchain_calc_length() argument 377 struct ccw1 *ccw = cp->guest_cp; in ccwchain_calc_length() 403 static int tic_target_chain_exists(struct ccw1 *tic, struct channel_program *cp) in tic_target_chain_exists() argument 408 list_for_each_entry(chain, &cp->ccwchain_list, next) { in tic_target_chain_exists() 418 struct channel_program *cp); 420 static int ccwchain_handle_ccw(u32 cda, struct channel_program *cp) in ccwchain_handle_ccw() argument 423 &container_of(cp, struct vfio_ccw_private, cp)->vdev; in ccwchain_handle_ccw() 428 ret = vfio_dma_rw(vdev, cda, cp->guest_cp, CCWCHAIN_LEN_MAX * sizeof(struct ccw1), false); in ccwchain_handle_ccw() [all …]
|
D | device_pgid.c | 61 struct ccw1 *cp = cdev->private->dma_area->iccws; in nop_build_cp() local 63 cp->cmd_code = CCW_CMD_NOOP; in nop_build_cp() 64 cp->cda = 0; in nop_build_cp() 65 cp->count = 0; in nop_build_cp() 66 cp->flags = CCW_FLAG_SLI; in nop_build_cp() 67 req->cp = cp; in nop_build_cp() 138 struct ccw1 *cp = cdev->private->dma_area->iccws; in spid_build_cp() local 143 cp->cmd_code = CCW_CMD_SET_PGID; in spid_build_cp() 144 cp->cda = (u32)virt_to_phys(pgid); in spid_build_cp() 145 cp->count = sizeof(*pgid); in spid_build_cp() [all …]
|
/drivers/scsi/sym53c8xx_2/ |
D | sym_hipd.c | 46 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 …]
|
/drivers/accessibility/speakup/ |
D | kobjects.c | 34 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 …]
|
D | genmap.c | 27 static char *cp; variable 78 cp = strtok(buffer, delims); in main() 79 if (*cp == '#') in main() 82 while (cp) { in main() 83 if (*cp == '=') in main() 85 this = find_key(cp); in main() 87 oops("unknown key/modifier", cp); in main() 90 oops("modifiers must come first", cp); in main() 95 oops("bad modifier or key", cp); in main() 96 cp = strtok(0, delims); in main() [all …]
|
D | varhandlers.c | 187 char *cp; in spk_set_num_var() local 241 cp = spk_pitch_buff; in spk_set_num_var() 243 cp = buf; in spk_set_num_var() 245 sprintf(cp, var_data->u.n.synth_fmt, (int)val); in spk_set_num_var() 247 sprintf(cp, var_data->u.n.synth_fmt, in spk_set_num_var() 249 synth_printf("%s", cp); in spk_set_num_var() 286 u_char *cp; in spk_set_mask_bits() local 290 for (cp = (u_char *)spk_punc_info[3].value; *cp; cp++) in spk_set_mask_bits() 291 spk_chartab[*cp] &= ~mask; in spk_set_mask_bits() 293 cp = (u_char *)input; in spk_set_mask_bits() [all …]
|
D | makemapdata.c | 55 char *cp; in main() local 94 cp = strchr(def_val, '+'); in main() 95 if (!cp) in main() 97 if (cp[-1] == ' ') in main() 98 cp[-1] = '\0'; in main() 99 *cp++ = '\0'; in main() 101 while (*cp == ' ') in main() 102 cp++; in main() 103 if (!this || *cp < '0' || *cp > '9') in main() 105 value = this->value+atoi(cp); in main()
|
/drivers/net/slip/ |
D | slhc.c | 82 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/firmware/efi/libstub/ |
D | string.c | 114 static unsigned int simple_guess_base(const char *cp) in simple_guess_base() argument 116 if (cp[0] == '0') { in simple_guess_base() 117 if (TOLOWER(cp[1]) == 'x' && isxdigit(cp[2])) in simple_guess_base() 133 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base) in simple_strtoull() argument 138 base = simple_guess_base(cp); in simple_strtoull() 140 if (base == 16 && cp[0] == '0' && TOLOWER(cp[1]) == 'x') in simple_strtoull() 141 cp += 2; in simple_strtoull() 143 while (isxdigit(*cp)) { in simple_strtoull() 146 value = isdigit(*cp) ? *cp - '0' : TOLOWER(*cp) - 'a' + 10; in simple_strtoull() 150 cp++; in simple_strtoull() [all …]
|
/drivers/scsi/ |
D | ncr53c8xx.c | 861 #define CCB_DONE_VALID(cp) (((u_long) cp) != CCB_DONE_EMPTY) argument 865 #define CCB_DONE_VALID(cp) \ argument 866 ((((u_long) cp) & 0xffffffff00000000ul) && \ 867 (((u_long) cp) & 0xfffffffful) != CCB_DONE_EMPTY) 1382 struct ccb * cp; member 1573 #define CCB_PHYS(cp,lbl) (cp->p_ccb + offsetof(struct ccb, lbl)) argument 1905 static void ncr_complete (struct ncb *np, struct ccb *cp); 1907 static void ncr_free_ccb (struct ncb *np, struct ccb *cp); 1908 static void ncr_init_ccb (struct ncb *np, struct ccb *cp); 1923 static int ncr_prepare_nego(struct ncb *np, struct ccb *cp, u_char *msgptr); [all …]
|
/drivers/mailbox/ |
D | imx-mailbox.c | 107 int (*tx)(struct imx_mu_priv *priv, struct imx_mu_con_priv *cp, void *data); 108 int (*rx)(struct imx_mu_priv *priv, struct imx_mu_con_priv *cp); 109 int (*rxdb)(struct imx_mu_priv *priv, struct imx_mu_con_priv *cp); 215 struct imx_mu_con_priv *cp, in imx_mu_generic_tx() argument 220 switch (cp->type) { in imx_mu_generic_tx() 222 imx_mu_write(priv, *arg, priv->dcfg->xTR + cp->idx * 4); in imx_mu_generic_tx() 223 imx_mu_xcr_rmw(priv, IMX_MU_TCR, IMX_MU_xCR_TIEn(priv->dcfg->type, cp->idx), 0); in imx_mu_generic_tx() 226 imx_mu_xcr_rmw(priv, IMX_MU_GCR, IMX_MU_xCR_GIRn(priv->dcfg->type, cp->idx), 0); in imx_mu_generic_tx() 227 tasklet_schedule(&cp->txdb_tasklet); in imx_mu_generic_tx() 230 dev_warn_ratelimited(priv->dev, "Send data on wrong channel type: %d\n", cp->type); in imx_mu_generic_tx() [all …]
|
/drivers/infiniband/hw/qib/ |
D | qib_qsfp.c | 273 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/s390/char/ |
D | con3270.c | 150 static char *tty3270_add_ba(struct tty3270 *tp, char *cp, char order, int x, int y) in tty3270_add_ba() argument 152 *cp++ = order; in tty3270_add_ba() 153 raw3270_buffer_address(tp->view.dev, cp, x, y); in tty3270_add_ba() 154 return cp + 2; in tty3270_add_ba() 157 static char *tty3270_add_ra(struct tty3270 *tp, char *cp, int x, int y, char c) in tty3270_add_ra() argument 159 cp = tty3270_add_ba(tp, cp, TO_RA, x, y); in tty3270_add_ra() 160 *cp++ = c; in tty3270_add_ra() 161 return cp; in tty3270_add_ra() 164 static char *tty3270_add_sa(struct tty3270 *tp, char *cp, char attr, char value) in tty3270_add_sa() argument 166 *cp++ = TO_SA; in tty3270_add_sa() [all …]
|
/drivers/mmc/host/ |
D | mmc_spi.c | 160 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() 219 u8 *cp = host->data->status; in mmc_spi_response_get() local 220 u8 *end = cp + host->t.len; in mmc_spi_response_get() 237 cp += 8; in mmc_spi_response_get() 238 while (cp < end && *cp == 0xff) in mmc_spi_response_get() 239 cp++; in mmc_spi_response_get() 242 if (cp == end) { in mmc_spi_response_get() 243 cp = host->data->status; in mmc_spi_response_get() [all …]
|
/drivers/gpu/drm/amd/display/dc/dce112/ |
D | dce112_compressor.h | 48 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/ |
D | dce110_compressor.h | 48 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/base/ |
D | class.c | 73 struct subsys_private *cp = to_subsys_private(kobj); in class_attr_show() local 77 ret = class_attr->show(cp->class, class_attr, buf); in class_attr_show() 85 struct subsys_private *cp = to_subsys_private(kobj); in class_attr_store() local 89 ret = class_attr->store(cp->class, class_attr, buf, count); in class_attr_store() 95 struct subsys_private *cp = to_subsys_private(kobj); in class_release() local 96 const struct class *class = cp->class; in class_release() 106 lockdep_unregister_key(&cp->lock_key); in class_release() 107 kfree(cp); in class_release() 112 const struct subsys_private *cp = to_subsys_private(kobj); in class_child_ns_type() local 113 const struct class *class = cp->class; in class_child_ns_type() [all …]
|
/drivers/net/wireless/ath/wil6210/ |
D | ethtool.c | 16 struct ethtool_coalesce *cp, in wil_ethtoolops_get_coalesce() argument 42 cp->tx_coalesce_usecs = tx_itr_val; in wil_ethtoolops_get_coalesce() 43 cp->rx_coalesce_usecs = rx_itr_val; in wil_ethtoolops_get_coalesce() 53 struct ethtool_coalesce *cp, in wil_ethtoolops_set_coalesce() argument 63 cp->rx_coalesce_usecs, cp->tx_coalesce_usecs); in wil_ethtoolops_set_coalesce() 75 if (cp->rx_coalesce_usecs > WIL6210_ITR_TRSH_MAX || in wil_ethtoolops_set_coalesce() 76 cp->tx_coalesce_usecs > WIL6210_ITR_TRSH_MAX) in wil_ethtoolops_set_coalesce() 79 wil->tx_max_burst_duration = cp->tx_coalesce_usecs; in wil_ethtoolops_set_coalesce() 80 wil->rx_max_burst_duration = cp->rx_coalesce_usecs; in wil_ethtoolops_set_coalesce() 98 cp, sizeof(*cp), false); in wil_ethtoolops_set_coalesce()
|
/drivers/net/ethernet/apple/ |
D | mace.c | 439 volatile struct dbdma_cmd *cp; in mace_open() local 450 cp = mp->rx_cmds; in mace_open() 460 cp->req_count = cpu_to_le16(RX_BUFLEN); in mace_open() 461 cp->command = cpu_to_le16(INPUT_LAST + INTR_ALWAYS); in mace_open() 462 cp->phy_addr = cpu_to_le32(virt_to_bus(data)); in mace_open() 463 cp->xfer_status = 0; in mace_open() 464 ++cp; in mace_open() 467 cp->command = cpu_to_le16(DBDMA_STOP); in mace_open() 472 ++cp; in mace_open() 473 cp->command = cpu_to_le16(DBDMA_NOP + BR_ALWAYS); in mace_open() [all …]
|
/drivers/scsi/libfc/ |
D | fc_disc.c | 497 struct fc_ct_hdr *cp; in fc_disc_gpn_ft_resp() local 518 cp = fc_frame_payload_get(fp, sizeof(*cp)); in fc_disc_gpn_ft_resp() 519 if (!cp) { in fc_disc_gpn_ft_resp() 523 } else if (ntohs(cp->ct_cmd) == FC_FS_ACC) { in fc_disc_gpn_ft_resp() 526 len -= sizeof(*cp); in fc_disc_gpn_ft_resp() 527 error = fc_disc_gpn_ft_parse(disc, cp + 1, len); in fc_disc_gpn_ft_resp() 528 } else if (ntohs(cp->ct_cmd) == FC_FS_RJT) { in fc_disc_gpn_ft_resp() 530 "(check zoning)\n", cp->ct_reason, in fc_disc_gpn_ft_resp() 531 cp->ct_explan); in fc_disc_gpn_ft_resp() 533 if (cp->ct_reason == FC_FS_RJT_UNABL && in fc_disc_gpn_ft_resp() [all …]
|