/drivers/media/usb/pvrusb2/ |
D | pvrusb2-ioread.c | 53 static int pvr2_ioread_init(struct pvr2_ioread *cp) in pvr2_ioread_init() argument 57 cp->stream = NULL; in pvr2_ioread_init() 58 mutex_init(&cp->mutex); in pvr2_ioread_init() 61 cp->buffer_storage[idx] = kmalloc(BUFFER_SIZE,GFP_KERNEL); in pvr2_ioread_init() 62 if (!(cp->buffer_storage[idx])) break; in pvr2_ioread_init() 68 if (!(cp->buffer_storage[idx])) continue; in pvr2_ioread_init() 69 kfree(cp->buffer_storage[idx]); in pvr2_ioread_init() 76 static void pvr2_ioread_done(struct pvr2_ioread *cp) in pvr2_ioread_done() argument 80 pvr2_ioread_setup(cp,NULL); in pvr2_ioread_done() 82 if (!(cp->buffer_storage[idx])) continue; in pvr2_ioread_done() [all …]
|
D | pvrusb2-context.c | 250 struct pvr2_channel *cp; in pvr2_context_reset_input_limits() local 254 for (cp = mp->mc_first; cp; cp = cp->mc_next) { in pvr2_context_reset_input_limits() 255 if (!cp->input_mask) continue; in pvr2_context_reset_input_limits() 256 tmsk &= cp->input_mask; in pvr2_context_reset_input_limits() 288 void pvr2_channel_init(struct pvr2_channel *cp,struct pvr2_context *mp) in pvr2_channel_init() argument 291 cp->hdw = mp->hdw; in pvr2_channel_init() 292 cp->mc_head = mp; in pvr2_channel_init() 293 cp->mc_next = NULL; in pvr2_channel_init() 294 cp->mc_prev = mp->mc_last; in pvr2_channel_init() 296 mp->mc_last->mc_next = cp; in pvr2_channel_init() [all …]
|
/drivers/net/ethernet/sun/ |
D | cassini.c | 173 #define CAS_MAX_MTU min(((cp->page_size << 1) - 0x50), 9000) 242 static void cas_set_link_modes(struct cas *cp); 244 static inline void cas_lock_tx(struct cas *cp) in cas_lock_tx() argument 249 spin_lock_nested(&cp->tx_lock[i], i); in cas_lock_tx() 252 static inline void cas_lock_all(struct cas *cp) in cas_lock_all() argument 254 spin_lock_irq(&cp->lock); in cas_lock_all() 255 cas_lock_tx(cp); in cas_lock_all() 266 #define cas_lock_all_save(cp, flags) \ argument 268 struct cas *xxxcp = (cp); \ 273 static inline void cas_unlock_tx(struct cas *cp) in cas_unlock_tx() argument [all …]
|
/drivers/s390/char/ |
D | con3270.c | 76 static void con3270_set_timer(struct con3270 *cp, int expires) in con3270_set_timer() argument 79 del_timer(&cp->timer); in con3270_set_timer() 81 mod_timer(&cp->timer, jiffies + expires); in con3270_set_timer() 90 con3270_update_status(struct con3270 *cp) in con3270_update_status() argument 94 str = (cp->nr_up != 0) ? "History" : "Running"; in con3270_update_status() 95 memcpy(cp->status->string + 24, str, 7); in con3270_update_status() 96 codepage_convert(cp->view.ascebc, cp->status->string + 24, 7); in con3270_update_status() 97 cp->update_flags |= CON_UPDATE_STATUS; in con3270_update_status() 101 con3270_create_status(struct con3270 *cp) in con3270_create_status() argument 108 cp->status = alloc_string(&cp->freemem, sizeof(blueprint)); in con3270_create_status() [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/scsi/sym53c8xx_2/ |
D | sym_hipd.c | 59 static void sym_complete_error (struct sym_hcb *np, struct sym_ccb *cp); 60 static void sym_complete_ok (struct sym_hcb *np, struct sym_ccb *cp); 61 static int sym_compute_residual(struct sym_hcb *np, struct sym_ccb *cp); 73 static void sym_print_msg(struct sym_ccb *cp, char *label, u_char *msg) in sym_print_msg() argument 75 sym_print_addr(cp->cmd, "%s: ", label); in sym_print_msg() 1419 static int sym_prepare_nego(struct sym_hcb *np, struct sym_ccb *cp, u_char *msgptr) argument 1421 struct sym_tcb *tp = &np->target[cp->target]; 1462 cp->nego_status = nego; 1465 tp->nego_cp = cp; /* Keep track a nego will be performed */ 1467 sym_print_nego_msg(np, cp->target, [all …]
|
D | sym_glue.c | 187 void sym_set_cam_result_error(struct sym_hcb *np, struct sym_ccb *cp, int resid) in sym_set_cam_result_error() argument 189 struct scsi_cmnd *cmd = cp->cmd; in sym_set_cam_result_error() 194 scsi_status = cp->ssss_status; in sym_set_cam_result_error() 196 if (cp->host_flags & HF_SENSE) { in sym_set_cam_result_error() 197 scsi_status = cp->sv_scsi_status; in sym_set_cam_result_error() 198 resid = cp->sv_resid; in sym_set_cam_result_error() 199 if (sym_verbose && cp->sv_xerr_status) in sym_set_cam_result_error() 200 sym_print_xerr(cmd, cp->sv_xerr_status); in sym_set_cam_result_error() 201 if (cp->host_status == HS_COMPLETE && in sym_set_cam_result_error() 202 cp->ssss_status == S_GOOD && in sym_set_cam_result_error() [all …]
|
/drivers/staging/speakup/ |
D | kobjects.c | 33 char *cp; in chars_chartab_show() local 48 cp = "B_CTL"; in chars_chartab_show() 50 cp = "WDLM"; in chars_chartab_show() 52 cp = "A_PUNC"; in chars_chartab_show() 54 cp = "PUNC"; in chars_chartab_show() 56 cp = "NUM"; in chars_chartab_show() 58 cp = "A_CAP"; in chars_chartab_show() 60 cp = "ALPHA"; in chars_chartab_show() 62 cp = "B_CAPSYM"; in chars_chartab_show() 64 cp = "B_SYM"; in chars_chartab_show() [all …]
|
D | varhandlers.c | 182 char *cp; in spk_set_num_var() local 234 cp = spk_pitch_buff; in spk_set_num_var() 236 cp = buf; in spk_set_num_var() 238 l = sprintf(cp, var_data->u.n.synth_fmt, (int)val); in spk_set_num_var() 240 l = sprintf(cp, in spk_set_num_var() 242 synth_printf("%s", cp); in spk_set_num_var() 276 u_char *cp; in spk_set_mask_bits() local 280 for (cp = (u_char *)spk_punc_info[3].value; *cp; cp++) in spk_set_mask_bits() 281 spk_chartab[*cp] &= ~mask; in spk_set_mask_bits() 283 cp = (u_char *)input; in spk_set_mask_bits() [all …]
|
/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/isdn/hysdn/ |
D | hysdn_procconf.c | 55 unsigned char *cp = cnf->conf_line; in process_line() local 59 hysdn_addlog(cnf->card, "conf line: %s", cp); in process_line() 61 if (*cp == '-') { /* option */ in process_line() 62 cp++; /* point to option char */ in process_line() 64 if (*cp++ != 'c') in process_line() 67 while ((*cp <= '9') && (*cp >= '0')) in process_line() 68 i = i * 10 + *cp++ - '0'; /* get decimal number */ in process_line() 77 if (*cp == '*') { /* line to send */ in process_line() 79 hysdn_addlog(cnf->card, "conf chan=%d %s", cnf->channel, cp); in process_line() 98 unsigned char ch, *cp; in hysdn_conf_write() local [all …]
|
D | hysdn_boot.c | 337 EvalSysrTokData(hysdn_card *card, unsigned char *cp, int len) in EvalSysrTokData() argument 349 for (p = cp, crc = 0; p < (cp + len - 2); p++) in EvalSysrTokData() 355 if (crc != *(cp + len - 1)) { in EvalSysrTokData() 362 if (*cp == SYSR_TOK_END) in EvalSysrTokData() 365 if (len < (*(cp + 1) + 2)) { in EvalSysrTokData() 366 hysdn_addlog(card, "token 0x%x invalid length %d", *cp, *(cp + 1)); in EvalSysrTokData() 369 switch (*cp) { in EvalSysrTokData() 371 if (*(cp + 1) != 1) in EvalSysrTokData() 373 card->bchans = *(cp + 2); in EvalSysrTokData() 377 if (*(cp + 1) != 1) in EvalSysrTokData() [all …]
|
/drivers/scsi/ |
D | ncr53c8xx.c | 869 #define CCB_DONE_VALID(cp) (((u_long) cp) != CCB_DONE_EMPTY) argument 873 #define CCB_DONE_VALID(cp) \ argument 874 ((((u_long) cp) & 0xffffffff00000000ul) && \ 875 (((u_long) cp) & 0xfffffffful) != CCB_DONE_EMPTY) 1392 struct ccb * cp; member 1588 #define CCB_PHYS(cp,lbl) (cp->p_ccb + offsetof(struct ccb, lbl)) argument 1920 static void ncr_complete (struct ncb *np, struct ccb *cp); 1922 static void ncr_free_ccb (struct ncb *np, struct ccb *cp); 1923 static void ncr_init_ccb (struct ncb *np, struct ccb *cp); 1938 static int ncr_prepare_nego(struct ncb *np, struct ccb *cp, u_char *msgptr); [all …]
|
D | eata_pio.c | 163 struct eata_ccb *cp; in eata_pio_int_handler() local 183 cp = &hd->ccb[0]; in eata_pio_int_handler() 184 cmd = cp->cmd; in eata_pio_int_handler() 190 if (cp->DataIn) { in eata_pio_int_handler() 259 hd->devflags |= (1 << cp->cp_id); in eata_pio_int_handler() 260 } else if (hd->devflags & (1 << cp->cp_id)) in eata_pio_int_handler() 265 if (cp->status == LOCKED) { in eata_pio_int_handler() 266 cp->status = FREE; in eata_pio_int_handler() 276 cp->status = FREE; /* now we can release the slot */ in eata_pio_int_handler() 310 struct eata_ccb *cp; in eata_pio_queue_lck() local [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/net/wireless/ath/wil6210/ |
D | ethtool.c | 45 struct ethtool_coalesce *cp) in wil_ethtoolops_get_coalesce() argument 61 cp->tx_coalesce_usecs = tx_itr_val; in wil_ethtoolops_get_coalesce() 62 cp->rx_coalesce_usecs = rx_itr_val; in wil_ethtoolops_get_coalesce() 67 struct ethtool_coalesce *cp) in wil_ethtoolops_set_coalesce() argument 72 cp->rx_coalesce_usecs, cp->tx_coalesce_usecs); in wil_ethtoolops_set_coalesce() 83 if (cp->rx_coalesce_usecs > WIL6210_ITR_TRSH_MAX || in wil_ethtoolops_set_coalesce() 84 cp->tx_coalesce_usecs > WIL6210_ITR_TRSH_MAX) in wil_ethtoolops_set_coalesce() 87 wil->tx_max_burst_duration = cp->tx_coalesce_usecs; in wil_ethtoolops_set_coalesce() 88 wil->rx_max_burst_duration = cp->rx_coalesce_usecs; in wil_ethtoolops_set_coalesce() 96 cp, sizeof(*cp), false); in wil_ethtoolops_set_coalesce()
|
/drivers/base/ |
D | class.c | 30 struct subsys_private *cp = to_subsys_private(kobj); in class_attr_show() local 34 ret = class_attr->show(cp->class, class_attr, buf); in class_attr_show() 42 struct subsys_private *cp = to_subsys_private(kobj); in class_attr_store() local 46 ret = class_attr->store(cp->class, class_attr, buf, count); in class_attr_store() 52 struct subsys_private *cp = to_subsys_private(kobj); in class_release() local 53 struct class *class = cp->class; in class_release() 63 kfree(cp); in class_release() 68 struct subsys_private *cp = to_subsys_private(kobj); in class_child_ns_type() local 69 struct class *class = cp->class; in class_child_ns_type() 168 struct subsys_private *cp; in __class_register() local [all …]
|
/drivers/tty/ |
D | rocket.c | 314 static void rp_do_receive(struct r_port *info, CHANNEL_t *cp, in rp_do_receive() argument 321 ToRecv = sGetRxCnt(cp); in rp_do_receive() 339 sEnRxStatusMode(cp); in rp_do_receive() 356 CharNStat = sInW(sGetTxRxDataIO(cp)); in rp_do_receive() 386 if (sGetRxCnt(cp) == 0) { in rp_do_receive() 390 sDisRxStatusMode(cp); in rp_do_receive() 409 sInStrW(sGetTxRxDataIO(cp), (unsigned short *) cbuf, wRecv); in rp_do_receive() 411 cbuf[ToRecv - 1] = sInB(sGetTxRxDataIO(cp)); in rp_do_receive() 426 CHANNEL_t *cp = &info->channel; in rp_do_transmit() local 444 info->xmit_fifo_room = TXFIFO_SIZE - sGetTxCnt(cp); in rp_do_transmit() [all …]
|
/drivers/mmc/host/ |
D | mmc_spi.c | 200 u8 *cp = host->data->status; in mmc_spi_skip() local 212 if (cp[i] != byte) in mmc_spi_skip() 213 return cp[i]; in mmc_spi_skip() 265 u8 *cp = host->data->status; in mmc_spi_response_get() local 266 u8 *end = cp + host->t.len; in mmc_spi_response_get() 283 cp += 8; in mmc_spi_response_get() 284 while (cp < end && *cp == 0xff) in mmc_spi_response_get() 285 cp++; in mmc_spi_response_get() 288 if (cp == end) { in mmc_spi_response_get() 289 cp = host->data->status; in mmc_spi_response_get() [all …]
|
/drivers/crypto/ |
D | mv_cesa.c | 1028 struct crypto_priv *cp) in mv_cesa_get_sram() argument 1036 cp->sram_size = sram_size; in mv_cesa_get_sram() 1037 cp->sram_pool = of_gen_pool_get(pdev->dev.of_node, in mv_cesa_get_sram() 1039 if (cp->sram_pool) { in mv_cesa_get_sram() 1040 cp->sram = gen_pool_dma_alloc(cp->sram_pool, sram_size, in mv_cesa_get_sram() 1041 &cp->sram_dma); in mv_cesa_get_sram() 1042 if (cp->sram) in mv_cesa_get_sram() 1050 if (!res || resource_size(res) < cp->sram_size) in mv_cesa_get_sram() 1053 cp->sram = devm_ioremap_resource(&pdev->dev, res); in mv_cesa_get_sram() 1054 if (IS_ERR(cp->sram)) in mv_cesa_get_sram() [all …]
|
/drivers/bluetooth/ |
D | btintel.c | 406 struct ibt_cp_reg_access cp; in regmap_ibt_read() local 416 cp.mode = IBT_REG_MODE_8BIT; in regmap_ibt_read() 419 cp.mode = IBT_REG_MODE_16BIT; in regmap_ibt_read() 422 cp.mode = IBT_REG_MODE_32BIT; in regmap_ibt_read() 429 cp.addr = *(__le32 *)addr; in regmap_ibt_read() 430 cp.len = val_size; in regmap_ibt_read() 432 bt_dev_dbg(ctx->hdev, "Register (0x%x) read", le32_to_cpu(cp.addr)); in regmap_ibt_read() 434 skb = hci_cmd_sync(ctx->hdev, ctx->op_read, sizeof(cp), &cp, in regmap_ibt_read() 439 le32_to_cpu(cp.addr), err); in regmap_ibt_read() 445 le32_to_cpu(cp.addr)); in regmap_ibt_read() [all …]
|
/drivers/s390/cio/ |
D | device_pgid.c | 59 struct ccw1 *cp = cdev->private->iccws; in nop_build_cp() local 61 cp->cmd_code = CCW_CMD_NOOP; in nop_build_cp() 62 cp->cda = 0; in nop_build_cp() 63 cp->count = 0; in nop_build_cp() 64 cp->flags = CCW_FLAG_SLI; in nop_build_cp() 65 req->cp = cp; in nop_build_cp() 136 struct ccw1 *cp = cdev->private->iccws; in spid_build_cp() local 141 cp->cmd_code = CCW_CMD_SET_PGID; in spid_build_cp() 142 cp->cda = (u32) (addr_t) pgid; in spid_build_cp() 143 cp->count = sizeof(*pgid); in spid_build_cp() [all …]
|
/drivers/net/ethernet/apple/ |
D | mace.c | 434 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/ |
D | fc_disc.c | 513 struct fc_ct_hdr *cp; in fc_disc_gpn_ft_resp() local 534 cp = fc_frame_payload_get(fp, sizeof(*cp)); in fc_disc_gpn_ft_resp() 535 if (!cp) { in fc_disc_gpn_ft_resp() 539 } else if (ntohs(cp->ct_cmd) == FC_FS_ACC) { in fc_disc_gpn_ft_resp() 542 len -= sizeof(*cp); in fc_disc_gpn_ft_resp() 543 error = fc_disc_gpn_ft_parse(disc, cp + 1, len); in fc_disc_gpn_ft_resp() 544 } else if (ntohs(cp->ct_cmd) == FC_FS_RJT) { in fc_disc_gpn_ft_resp() 546 "(check zoning)\n", cp->ct_reason, in fc_disc_gpn_ft_resp() 547 cp->ct_explan); in fc_disc_gpn_ft_resp() 549 if (cp->ct_reason == FC_FS_RJT_UNABL && in fc_disc_gpn_ft_resp() [all …]
|