Searched refs:cid (Results 1 - 167 of 167) sorted by relevance

/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
H A Dbmi.c26 u32 cid = BMI_DONE; ath6kl_bmi_done() local
35 ret = ath6kl_hif_bmi_write(ar, (u8 *)&cid, sizeof(cid)); ath6kl_bmi_done()
48 u32 cid = BMI_GET_TARGET_INFO; ath6kl_bmi_get_target_info() local
51 ath6kl_err("bmi done sent already, cmd %d disallowed\n", cid); ath6kl_bmi_get_target_info()
55 ret = ath6kl_hif_bmi_write(ar, (u8 *)&cid, sizeof(cid)); ath6kl_bmi_get_target_info()
116 u32 cid = BMI_READ_MEMORY; ath6kl_bmi_read() local
123 ath6kl_err("bmi done sent already, cmd %d disallowed\n", cid); ath6kl_bmi_read()
127 size = ar->bmi.max_data_size + sizeof(cid) + sizeof(addr) + sizeof(len); ath6kl_bmi_read()
144 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); ath6kl_bmi_read()
145 offset += sizeof(cid); ath6kl_bmi_read()
172 u32 cid = BMI_WRITE_MEMORY; ath6kl_bmi_write() local
176 const u32 header = sizeof(cid) + sizeof(addr) + sizeof(len); ath6kl_bmi_write()
181 ath6kl_err("bmi done sent already, cmd %d disallowed\n", cid); ath6kl_bmi_write()
216 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); ath6kl_bmi_write()
217 offset += sizeof(cid); ath6kl_bmi_write()
239 u32 cid = BMI_EXECUTE; ath6kl_bmi_execute() local
245 ath6kl_err("bmi done sent already, cmd %d disallowed\n", cid); ath6kl_bmi_execute()
249 size = sizeof(cid) + sizeof(addr) + sizeof(param); ath6kl_bmi_execute()
260 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); ath6kl_bmi_execute()
261 offset += sizeof(cid); ath6kl_bmi_execute()
286 u32 cid = BMI_SET_APP_START; ath6kl_bmi_set_app_start() local
292 ath6kl_err("bmi done sent already, cmd %d disallowed\n", cid); ath6kl_bmi_set_app_start()
296 size = sizeof(cid) + sizeof(addr); ath6kl_bmi_set_app_start()
306 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); ath6kl_bmi_set_app_start()
307 offset += sizeof(cid); ath6kl_bmi_set_app_start()
322 u32 cid = BMI_READ_SOC_REGISTER; ath6kl_bmi_reg_read() local
328 ath6kl_err("bmi done sent already, cmd %d disallowed\n", cid); ath6kl_bmi_reg_read()
332 size = sizeof(cid) + sizeof(addr); ath6kl_bmi_reg_read()
342 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); ath6kl_bmi_reg_read()
343 offset += sizeof(cid); ath6kl_bmi_reg_read()
365 u32 cid = BMI_WRITE_SOC_REGISTER; ath6kl_bmi_reg_write() local
371 ath6kl_err("bmi done sent already, cmd %d disallowed\n", cid); ath6kl_bmi_reg_write()
375 size = sizeof(cid) + sizeof(addr) + sizeof(param); ath6kl_bmi_reg_write()
387 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); ath6kl_bmi_reg_write()
388 offset += sizeof(cid); ath6kl_bmi_reg_write()
405 u32 cid = BMI_LZ_DATA; ath6kl_bmi_lz_data() local
409 const u32 header = sizeof(cid) + sizeof(len); ath6kl_bmi_lz_data()
413 ath6kl_err("bmi done sent already, cmd %d disallowed\n", cid); ath6kl_bmi_lz_data()
433 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); ath6kl_bmi_lz_data()
434 offset += sizeof(cid); ath6kl_bmi_lz_data()
456 u32 cid = BMI_LZ_STREAM_START; ath6kl_bmi_lz_stream_start() local
462 ath6kl_err("bmi done sent already, cmd %d disallowed\n", cid); ath6kl_bmi_lz_stream_start()
466 size = sizeof(cid) + sizeof(addr); ath6kl_bmi_lz_stream_start()
478 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); ath6kl_bmi_lz_stream_start()
479 offset += sizeof(cid); ath6kl_bmi_lz_stream_start()
/linux-4.4.14/fs/fat/
H A Dcache.c80 struct fat_cache_id *cid, fat_cache_lookup()
104 cid->id = MSDOS_I(inode)->cache_valid_id; fat_cache_lookup()
105 cid->nr_contig = hit->nr_contig; fat_cache_lookup()
106 cid->fcluster = hit->fcluster; fat_cache_lookup()
107 cid->dcluster = hit->dcluster; fat_cache_lookup()
108 *cached_fclus = cid->fcluster + offset; fat_cache_lookup()
109 *cached_dclus = cid->dcluster + offset; fat_cache_lookup()
210 static inline int cache_contiguous(struct fat_cache_id *cid, int dclus) cache_contiguous() argument
212 cid->nr_contig++; cache_contiguous()
213 return ((cid->dcluster + cid->nr_contig) == dclus); cache_contiguous()
216 static inline void cache_init(struct fat_cache_id *cid, int fclus, int dclus) cache_init() argument
218 cid->id = FAT_CACHE_VALID; cache_init()
219 cid->fcluster = fclus; cache_init()
220 cid->dcluster = dclus; cache_init()
221 cid->nr_contig = 0; cache_init()
229 struct fat_cache_id cid; fat_get_cluster() local
239 if (fat_cache_lookup(inode, cluster, &cid, fclus, dclus) < 0) { fat_get_cluster()
244 cache_init(&cid, -1, -1); fat_get_cluster()
270 fat_cache_add(inode, &cid); fat_get_cluster()
275 if (!cache_contiguous(&cid, *dclus)) fat_get_cluster()
276 cache_init(&cid, *fclus, *dclus); fat_get_cluster()
279 fat_cache_add(inode, &cid); fat_get_cluster()
79 fat_cache_lookup(struct inode *inode, int fclus, struct fat_cache_id *cid, int *cached_fclus, int *cached_dclus) fat_cache_lookup() argument
/linux-4.4.14/drivers/mmc/core/
H A Dquirks.c65 f->manfid == card->cid.manfid) && mmc_fixup_device()
67 f->oemid == card->cid.oemid) && mmc_fixup_device()
69 !strncmp(f->name, card->cid.prod_name, mmc_fixup_device()
70 sizeof(card->cid.prod_name))) && mmc_fixup_device()
H A Dsd.h8 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr);
H A Dmmc.c76 card->cid.manfid = UNSTUFF_BITS(resp, 104, 24); mmc_decode_cid()
77 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); mmc_decode_cid()
78 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); mmc_decode_cid()
79 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); mmc_decode_cid()
80 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); mmc_decode_cid()
81 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); mmc_decode_cid()
82 card->cid.prod_name[5] = UNSTUFF_BITS(resp, 56, 8); mmc_decode_cid()
83 card->cid.prod_name[6] = UNSTUFF_BITS(resp, 48, 8); mmc_decode_cid()
84 card->cid.hwrev = UNSTUFF_BITS(resp, 44, 4); mmc_decode_cid()
85 card->cid.fwrev = UNSTUFF_BITS(resp, 40, 4); mmc_decode_cid()
86 card->cid.serial = UNSTUFF_BITS(resp, 16, 24); mmc_decode_cid()
87 card->cid.month = UNSTUFF_BITS(resp, 12, 4); mmc_decode_cid()
88 card->cid.year = UNSTUFF_BITS(resp, 8, 4) + 1997; mmc_decode_cid()
94 card->cid.manfid = UNSTUFF_BITS(resp, 120, 8); mmc_decode_cid()
95 card->cid.oemid = UNSTUFF_BITS(resp, 104, 16); mmc_decode_cid()
96 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); mmc_decode_cid()
97 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); mmc_decode_cid()
98 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); mmc_decode_cid()
99 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); mmc_decode_cid()
100 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); mmc_decode_cid()
101 card->cid.prod_name[5] = UNSTUFF_BITS(resp, 56, 8); mmc_decode_cid()
102 card->cid.prv = UNSTUFF_BITS(resp, 48, 8); mmc_decode_cid()
103 card->cid.serial = UNSTUFF_BITS(resp, 16, 32); mmc_decode_cid()
104 card->cid.month = UNSTUFF_BITS(resp, 12, 4); mmc_decode_cid()
105 card->cid.year = UNSTUFF_BITS(resp, 8, 4) + 1997; mmc_decode_cid()
499 if (card->cid.year < 2010) mmc_decode_ext_csd()
500 card->cid.year += 16; mmc_decode_ext_csd()
711 MMC_DEV_ATTR(cid, "%08x%08x%08x%08x\n", card->raw_cid[0], card->raw_cid[1],
715 MMC_DEV_ATTR(date, "%02d/%04d\n", card->cid.month, card->cid.year);
719 MMC_DEV_ATTR(hwrev, "0x%x\n", card->cid.hwrev);
720 MMC_DEV_ATTR(manfid, "0x%06x\n", card->cid.manfid);
721 MMC_DEV_ATTR(name, "%s\n", card->cid.prod_name);
722 MMC_DEV_ATTR(oemid, "0x%04x\n", card->cid.oemid);
723 MMC_DEV_ATTR(prv, "0x%x\n", card->cid.prv);
724 MMC_DEV_ATTR(serial, "0x%08x\n", card->cid.serial);
738 return sprintf(buf, "0x%x\n", card->cid.fwrev); mmc_fwrev_show()
1372 u32 cid[4]; mmc_init_card() local
1409 err = mmc_send_cid(host, cid); mmc_init_card()
1411 err = mmc_all_send_cid(host, cid); mmc_init_card()
1416 if (memcmp(cid, oldcard->raw_cid, sizeof(cid)) != 0) { mmc_init_card()
1435 memcpy(card->raw_cid, cid, sizeof(card->raw_cid)); mmc_init_card()
H A Dmmc_ops.h20 int mmc_all_send_cid(struct mmc_host *host, u32 *cid);
24 int mmc_send_cid(struct mmc_host *host, u32 *cid);
H A Dsd.c77 memset(&card->cid, 0, sizeof(struct mmc_cid)); mmc_decode_cid()
83 card->cid.manfid = UNSTUFF_BITS(resp, 120, 8); mmc_decode_cid()
84 card->cid.oemid = UNSTUFF_BITS(resp, 104, 16); mmc_decode_cid()
85 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); mmc_decode_cid()
86 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); mmc_decode_cid()
87 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); mmc_decode_cid()
88 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); mmc_decode_cid()
89 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); mmc_decode_cid()
90 card->cid.hwrev = UNSTUFF_BITS(resp, 60, 4); mmc_decode_cid()
91 card->cid.fwrev = UNSTUFF_BITS(resp, 56, 4); mmc_decode_cid()
92 card->cid.serial = UNSTUFF_BITS(resp, 24, 32); mmc_decode_cid()
93 card->cid.year = UNSTUFF_BITS(resp, 12, 8); mmc_decode_cid()
94 card->cid.month = UNSTUFF_BITS(resp, 8, 4); mmc_decode_cid()
96 card->cid.year += 2000; /* SD cards year offset */ mmc_decode_cid()
654 MMC_DEV_ATTR(cid, "%08x%08x%08x%08x\n", card->raw_cid[0], card->raw_cid[1],
659 MMC_DEV_ATTR(date, "%02d/%04d\n", card->cid.month, card->cid.year);
662 MMC_DEV_ATTR(fwrev, "0x%x\n", card->cid.fwrev);
663 MMC_DEV_ATTR(hwrev, "0x%x\n", card->cid.hwrev);
664 MMC_DEV_ATTR(manfid, "0x%06x\n", card->cid.manfid);
665 MMC_DEV_ATTR(name, "%s\n", card->cid.prod_name);
666 MMC_DEV_ATTR(oemid, "0x%04x\n", card->cid.oemid);
667 MMC_DEV_ATTR(serial, "0x%08x\n", card->cid.serial);
694 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr) mmc_sd_get_cid() argument
763 err = mmc_send_cid(host, cid); mmc_sd_get_cid()
765 err = mmc_all_send_cid(host, cid); mmc_sd_get_cid()
897 u32 cid[4]; mmc_sd_init_card() local
903 err = mmc_sd_get_cid(host, ocr, cid, &rocr); mmc_sd_init_card()
908 if (memcmp(cid, oldcard->raw_cid, sizeof(cid)) != 0) mmc_sd_init_card()
922 memcpy(card->raw_cid, cid, sizeof(card->raw_cid)); mmc_sd_init_card()
H A Dmmc_ops.c224 int mmc_all_send_cid(struct mmc_host *host, u32 *cid) mmc_all_send_cid() argument
230 BUG_ON(!cid); mmc_all_send_cid()
240 memcpy(cid, cmd.resp, sizeof(u32) * 4); mmc_all_send_cid()
365 int mmc_send_cid(struct mmc_host *host, u32 *cid) mmc_send_cid() argument
374 cid, MMC_SEND_CID); mmc_send_cid()
386 cid[i] = be32_to_cpu(cid_tmp[i]); mmc_send_cid()
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/
H A Dqed_cxt.h25 * @brief qed_cxt_acquire - Acquire a new cid of a specific protocol type
38 * @brief qedo_cid_get_cxt_info - Returns the context info for a specific cid
131 * @brief qed_cxt_release - Release a cid
134 * @param cid
137 u32 cid);
H A Dqed_sp_commands.c26 u32 cid, qed_sp_init_request()
34 u32 opaque_cid = opaque_fid << 16 | cid; qed_sp_init_request()
46 p_ent->elem.hdr.cid = cpu_to_le32(opaque_cid); qed_sp_init_request()
24 qed_sp_init_request(struct qed_hwfn *p_hwfn, struct qed_spq_entry **pp_ent, u32 cid, u16 opaque_fid, u8 cmd, u8 protocol, struct qed_sp_init_request_params *p_params) qed_sp_init_request() argument
H A Dqed_l2.c486 qed_cxt_release_cid(p_hwfn, p_cid_data->cid); qed_sp_release_queue_cid()
496 u32 cid, qed_sp_eth_rxq_start_ramrod()
514 p_rx_cid->cid = cid; qed_sp_eth_rxq_start_ramrod()
527 "opaque_fid=0x%x, cid=0x%x, rx_qid=0x%x, vport_id=0x%x, sb_id=0x%x\n", qed_sp_eth_rxq_start_ramrod()
528 opaque_fid, cid, params->queue_id, params->vport_id, qed_sp_eth_rxq_start_ramrod()
536 cid, opaque_fid, qed_sp_eth_rxq_start_ramrod()
601 &p_rx_cid->cid); qed_sp_eth_rx_queue_start()
603 DP_NOTICE(p_hwfn, "Failed to acquire cid\n"); qed_sp_eth_rx_queue_start()
610 p_rx_cid->cid, qed_sp_eth_rx_queue_start()
641 p_rx_cid->cid, qed_sp_eth_rx_queue_stop()
675 u32 cid, qed_sp_eth_txq_start_ramrod()
692 p_tx_cid->cid = cid; qed_sp_eth_txq_start_ramrod()
703 rc = qed_sp_init_request(p_hwfn, &p_ent, cid, qed_sp_eth_txq_start_ramrod()
754 &p_tx_cid->cid); qed_sp_eth_tx_queue_start()
756 DP_NOTICE(p_hwfn, "Failed to acquire cid\n"); qed_sp_eth_tx_queue_start()
762 "opaque_fid=0x%x, cid=0x%x, tx_qid=0x%x, vport_id=0x%x, sb_id=0x%x\n", qed_sp_eth_tx_queue_start()
763 opaque_fid, p_tx_cid->cid, qed_sp_eth_tx_queue_start()
768 p_tx_cid->cid, qed_sp_eth_tx_queue_start()
776 qed_db_addr(p_tx_cid->cid, DQ_DEMS_LEGACY); qed_sp_eth_tx_queue_start()
797 p_tx_cid->cid, qed_sp_eth_tx_queue_stop()
494 qed_sp_eth_rxq_start_ramrod(struct qed_hwfn *p_hwfn, u16 opaque_fid, u32 cid, struct qed_queue_start_common_params *params, u8 stats_id, u16 bd_max_bytes, dma_addr_t bd_chain_phys_addr, dma_addr_t cqe_pbl_addr, u16 cqe_pbl_size) qed_sp_eth_rxq_start_ramrod() argument
673 qed_sp_eth_txq_start_ramrod(struct qed_hwfn *p_hwfn, u16 opaque_fid, u32 cid, struct qed_queue_start_common_params *p_params, u8 stats_id, dma_addr_t pbl_addr, u16 pbl_size, union qed_qm_pq_params *p_pq_params) qed_sp_eth_txq_start_ramrod() argument
H A Dqed_cxt.c490 DP_NOTICE(p_hwfn, "Failed to allocate cid maps\n"); qed_cxt_tables_alloc()
745 u32 cid, qed_cxt_test_cid_acquired()
753 /* Iterate over protocols and find matching cid range */ qed_cxt_test_cid_acquired()
759 if (cid >= p_map->start_cid && qed_cxt_test_cid_acquired()
760 cid < p_map->start_cid + p_map->max_count) qed_cxt_test_cid_acquired()
766 DP_NOTICE(p_hwfn, "Invalid CID %d", cid); qed_cxt_test_cid_acquired()
770 rel_cid = cid - p_map->start_cid; qed_cxt_test_cid_acquired()
772 DP_NOTICE(p_hwfn, "CID %d not acquired", cid); qed_cxt_test_cid_acquired()
779 u32 cid) qed_cxt_release_cid()
787 b_acquired = qed_cxt_test_cid_acquired(p_hwfn, cid, &type); qed_cxt_release_cid()
792 rel_cid = cid - p_mngr->acquired[type].start_cid; qed_cxt_release_cid()
744 qed_cxt_test_cid_acquired(struct qed_hwfn *p_hwfn, u32 cid, enum protocol_type *p_type) qed_cxt_test_cid_acquired() argument
778 qed_cxt_release_cid(struct qed_hwfn *p_hwfn, u32 cid) qed_cxt_release_cid() argument
H A Dqed_spq.c132 p_ent->elem.hdr.cid, qed_spq_fill_entry()
156 cxt_info.iid = p_spq->cid; qed_spq_hw_initialize()
161 DP_NOTICE(p_hwfn, "Cannot find context info for cid=%d\n", qed_spq_hw_initialize()
162 p_spq->cid); qed_spq_hw_initialize()
226 DOORBELL(p_hwfn, qed_db_addr(p_spq->cid, DQ_DEMS_LEGACY), *(u32 *)&db); qed_spq_hw_post()
233 qed_db_addr(p_spq->cid, DQ_DEMS_LEGACY), qed_spq_hw_post()
234 p_spq->cid, db.params, db.agg_flags, qed_spq_hw_post()
444 /* SPQ cid, cannot fail */ qed_spq_setup()
445 qed_cxt_acquire_cid(p_hwfn, PROTOCOLID_CORE, &p_spq->cid); qed_spq_setup()
639 return p_hwfn->p_spq->cid; qed_spq_get_cid()
H A Dqed_sp.h141 u32 cid; member in struct:qed_spq
268 * @brief qed_spq_get_cid - Given p_hwfn, return cid for the hwfn's SPQ
322 u32 cid,
H A Dqed.h45 static inline u32 qed_db_addr(u32 cid, u32 DEMS) qed_db_addr() argument
48 FIELD_VALUE(DB_LEGACY_ADDR_ICID, cid); qed_db_addr()
157 u32 cid; member in struct:qed_hw_cid_data
H A Dqed_dev.c247 /* Set the HW cid/tid numbers (in the contest manager) for_each_hwfn()
H A Dqed_hsi.h461 __le32 cid /* Slowpath Connection CID */; member in struct:ramrod_header
/linux-4.4.14/drivers/atm/
H A Dhe.c224 #define he_writel_tsr0(dev, val, cid) \
225 he_writel_tcm(dev, val, CONFIG_TSRA | (cid << 3) | 0)
226 #define he_readl_tsr0(dev, cid) \
227 he_readl_tcm(dev, CONFIG_TSRA | (cid << 3) | 0)
229 #define he_writel_tsr1(dev, val, cid) \
230 he_writel_tcm(dev, val, CONFIG_TSRA | (cid << 3) | 1)
232 #define he_writel_tsr2(dev, val, cid) \
233 he_writel_tcm(dev, val, CONFIG_TSRA | (cid << 3) | 2)
235 #define he_writel_tsr3(dev, val, cid) \
236 he_writel_tcm(dev, val, CONFIG_TSRA | (cid << 3) | 3)
238 #define he_writel_tsr4(dev, val, cid) \
239 he_writel_tcm(dev, val, CONFIG_TSRA | (cid << 3) | 4)
249 #define he_writel_tsr4_upper(dev, val, cid) \
250 he_writel_internal(dev, val, CONFIG_TSRA | (cid << 3) | 4, \
256 #define he_readl_tsr4(dev, cid) \
257 he_readl_tcm(dev, CONFIG_TSRA | (cid << 3) | 4)
259 #define he_writel_tsr5(dev, val, cid) \
260 he_writel_tcm(dev, val, CONFIG_TSRA | (cid << 3) | 5)
262 #define he_writel_tsr6(dev, val, cid) \
263 he_writel_tcm(dev, val, CONFIG_TSRA | (cid << 3) | 6)
265 #define he_writel_tsr7(dev, val, cid) \
266 he_writel_tcm(dev, val, CONFIG_TSRA | (cid << 3) | 7)
269 #define he_writel_tsr8(dev, val, cid) \
270 he_writel_tcm(dev, val, CONFIG_TSRB | (cid << 2) | 0)
272 #define he_writel_tsr9(dev, val, cid) \
273 he_writel_tcm(dev, val, CONFIG_TSRB | (cid << 2) | 1)
275 #define he_writel_tsr10(dev, val, cid) \
276 he_writel_tcm(dev, val, CONFIG_TSRB | (cid << 2) | 2)
278 #define he_writel_tsr11(dev, val, cid) \
279 he_writel_tcm(dev, val, CONFIG_TSRB | (cid << 2) | 3)
282 #define he_writel_tsr12(dev, val, cid) \
283 he_writel_tcm(dev, val, CONFIG_TSRC | (cid << 1) | 0)
285 #define he_writel_tsr13(dev, val, cid) \
286 he_writel_tcm(dev, val, CONFIG_TSRC | (cid << 1) | 1)
289 #define he_writel_tsr14(dev, val, cid) \
290 he_writel_tcm(dev, val, CONFIG_TSRD | cid)
292 #define he_writel_tsr14_upper(dev, val, cid) \
293 he_writel_internal(dev, val, CONFIG_TSRD | cid, \
301 #define he_writel_rsr0(dev, val, cid) \
302 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 0)
303 #define he_readl_rsr0(dev, cid) \
304 he_readl_rcm(dev, 0x00000 | (cid << 3) | 0)
306 #define he_writel_rsr1(dev, val, cid) \
307 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 1)
309 #define he_writel_rsr2(dev, val, cid) \
310 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 2)
312 #define he_writel_rsr3(dev, val, cid) \
313 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 3)
315 #define he_writel_rsr4(dev, val, cid) \
316 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 4)
318 #define he_writel_rsr5(dev, val, cid) \
319 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 5)
321 #define he_writel_rsr6(dev, val, cid) \
322 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 6)
324 #define he_writel_rsr7(dev, val, cid) \
325 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 7)
328 __find_vcc(struct he_dev *he_dev, unsigned cid) __find_vcc() argument
336 vpi = cid >> he_dev->vcibits; __find_vcc()
337 vci = cid & ((1 << he_dev->vcibits) - 1); __find_vcc()
1646 unsigned cid, lastcid = -1; he_service_rbrq() local
1659 HPRINTK("%p rbrq%d 0x%x len=%d cid=0x%x %s%s%s%s%s%s\n", he_service_rbrq()
1674 cid = RBRQ_CID(he_dev->rbrq_head); he_service_rbrq()
1675 if (cid != lastcid) he_service_rbrq()
1676 vcc = __find_vcc(he_dev, cid); he_service_rbrq()
1677 lastcid = cid; he_service_rbrq()
1680 hprintk("vcc/he_vcc == NULL (cid 0x%x)\n", cid); he_service_rbrq()
1691 hprintk("HBUF_ERR! (cid 0x%x)\n", cid); he_service_rbrq()
1703 HPRINTK("wake_up rx_waitq (cid 0x%x)\n", cid); he_service_rbrq()
1761 hprintk("pdu_len (%d) > vcc->qos.rxtp.max_sdu (%d)! cid 0x%x\n", skb->len, vcc->qos.rxtp.max_sdu, cid); he_service_rbrq()
1836 HPRINTK("wake_up(tx_waitq) cid 0x%x\n", he_service_tbrq()
2052 __enqueue_tpd(struct he_dev *he_dev, struct he_tpd *tpd, unsigned cid) __enqueue_tpd() argument
2056 HPRINTK("tpdrq %p cid 0x%x -> tpdrq_tail %p\n", __enqueue_tpd()
2057 tpd, cid, he_dev->tpdrq_tail); __enqueue_tpd()
2078 hprintk("tpdrq full (cid 0x%x)\n", cid); __enqueue_tpd()
2107 he_dev->tpdrq_tail->cid = cid; __enqueue_tpd()
2123 unsigned cid, rsr0, rsr1, rsr4, tsr0, tsr0_aal, tsr4, period, reg, clock; he_open() local
2134 cid = he_mkcid(he_dev, vpi, vci); he_open()
2160 HPRINTK("open tx cid 0x%x pcr_goal %d\n", cid, pcr_goal); he_open()
2177 tsr0 = he_readl_tsr0(he_dev, cid); he_open()
2181 hprintk("cid 0x%x not idle (tsr0 = 0x%x)\n", cid, tsr0); he_open()
2246 he_writel_tsr0(he_dev, tsr0, cid); he_open()
2247 he_writel_tsr4(he_dev, tsr4 | 1, cid); he_open()
2249 TSR1_PCR(rate_to_atmf(pcr_goal)), cid); he_open()
2250 he_writel_tsr2(he_dev, TSR2_ACR(rate_to_atmf(pcr_goal)), cid); he_open()
2251 he_writel_tsr9(he_dev, TSR9_OPEN_CONN, cid); he_open()
2253 he_writel_tsr3(he_dev, 0x0, cid); he_open()
2254 he_writel_tsr5(he_dev, 0x0, cid); he_open()
2255 he_writel_tsr6(he_dev, 0x0, cid); he_open()
2256 he_writel_tsr7(he_dev, 0x0, cid); he_open()
2257 he_writel_tsr8(he_dev, 0x0, cid); he_open()
2258 he_writel_tsr10(he_dev, 0x0, cid); he_open()
2259 he_writel_tsr11(he_dev, 0x0, cid); he_open()
2260 he_writel_tsr12(he_dev, 0x0, cid); he_open()
2261 he_writel_tsr13(he_dev, 0x0, cid); he_open()
2262 he_writel_tsr14(he_dev, 0x0, cid); he_open()
2263 (void) he_readl_tsr0(he_dev, cid); /* flush posted writes */ he_open()
2270 HPRINTK("open rx cid 0x%x (rx_waitq %p)\n", cid, he_open()
2287 rsr0 = he_readl_rsr0(he_dev, cid); he_open()
2291 hprintk("cid 0x%x not idle (rsr0 = 0x%x)\n", cid, rsr0); he_open()
2306 he_writel_rsr4(he_dev, rsr4, cid); he_open()
2307 he_writel_rsr1(he_dev, rsr1, cid); he_open()
2311 rsr0 | RSR0_START_PDU | RSR0_OPEN_CONN | aal, cid); he_open()
2312 (void) he_readl_rsr0(he_dev, cid); /* flush posted writes */ he_open()
2336 unsigned cid; he_close() local
2344 cid = he_mkcid(he_dev, vcc->vpi, vcc->vci); he_close()
2349 HPRINTK("close rx cid 0x%x\n", cid); he_close()
2357 HPRINTK("close cid 0x%x RCC_BUSY\n", cid); he_close()
2364 he_writel_rsr0(he_dev, RSR0_CLOSE_CONN, cid); he_close()
2365 (void) he_readl_rsr0(he_dev, cid); /* flush posted writes */ he_close()
2366 he_writel_mbox(he_dev, cid, RXCON_CLOSE); he_close()
2375 hprintk("close rx timeout cid 0x%x\n", cid); he_close()
2377 HPRINTK("close rx cid 0x%x complete\n", cid); he_close()
2385 HPRINTK("close tx cid 0x%x\n", cid); he_close()
2406 hprintk("close tx cid 0x%x tx_inuse = %d\n", cid, tx_inuse); he_close()
2411 he_writel_tsr4_upper(he_dev, TSR4_FLUSH_CONN, cid); he_close()
2418 | TSR1_PCR(0), cid); he_close()
2421 he_writel_tsr14_upper(he_dev, TSR14_DELETE, cid); he_close()
2424 (void) he_readl_tsr4(he_dev, cid); /* flush posted writes */ he_close()
2428 hprintk("close tx he_alloc_tpd failed cid 0x%x\n", cid); he_close()
2438 __enqueue_tpd(he_dev, tpd, cid); he_close()
2449 hprintk("close tx timeout cid 0x%x\n", cid); he_close()
2453 while (!((tsr4 = he_readl_tsr4(he_dev, cid)) & TSR4_SESSION_ENDED)) { he_close()
2454 HPRINTK("close tx cid 0x%x !TSR4_SESSION_ENDED (tsr4 = 0x%x)\n", cid, tsr4); he_close()
2458 while (TSR0_CONN_STATE(tsr0 = he_readl_tsr0(he_dev, cid)) != 0) { he_close()
2459 HPRINTK("close tx cid 0x%x TSR0_CONN_STATE != 0 (tsr0 = 0x%x)\n", cid, tsr0); he_close()
2479 HPRINTK("close tx cid 0x%x complete\n", cid); he_close()
2492 unsigned cid = he_mkcid(he_dev, vcc->vpi, vcc->vci); he_send() local
2567 __enqueue_tpd(he_dev, tpd, cid); he_send()
2602 __enqueue_tpd(he_dev, tpd, cid); he_send()
H A Dhe.h183 volatile u32 cid; member in struct:he_tpdrq
237 #define HE_LOOKUP_VCC(dev, cid) ((dev)->he_vcc_table[(cid)].vcc)
/linux-4.4.14/net/netfilter/
H A Dnf_conntrack_pptp.c277 __be16 cid = 0, pcid = 0; pptp_inbound_pkt() local
312 cid = pptpReq->ocack.callID; pptp_inbound_pkt()
317 ntohs(cid), ntohs(pcid)); pptp_inbound_pkt()
321 info->pac_call_id = cid; pptp_inbound_pkt()
322 exp_gre(ct, cid, pcid); pptp_inbound_pkt()
332 cid = pptpReq->icreq.callID; pptp_inbound_pkt()
333 pr_debug("%s, CID=%X\n", pptp_msg_name[msg], ntohs(cid)); pptp_inbound_pkt()
335 info->pac_call_id = cid; pptp_inbound_pkt()
347 cid = info->pac_call_id; pptp_inbound_pkt()
356 exp_gre(ct, cid, pcid); pptp_inbound_pkt()
361 cid = pptpReq->disc.callID; pptp_inbound_pkt()
362 pr_debug("%s, CID=%X\n", pptp_msg_name[msg], ntohs(cid)); pptp_inbound_pkt()
387 pr_debug("invalid %s: type=%d cid=%u pcid=%u " pptp_inbound_pkt()
390 msg, ntohs(cid), ntohs(pcid), info->cstate, info->sstate, pptp_inbound_pkt()
405 __be16 cid = 0, pcid = 0; pptp_outbound_pkt() local
430 cid = pptpReq->ocreq.callID; pptp_outbound_pkt()
431 pr_debug("%s, CID=%X\n", pptp_msg_name[msg], ntohs(cid)); pptp_outbound_pkt()
432 info->pns_call_id = cid; pptp_outbound_pkt()
441 cid = pptpReq->icack.callID; pptp_outbound_pkt()
446 ntohs(cid), ntohs(pcid)); pptp_outbound_pkt()
451 info->pns_call_id = cid; pptp_outbound_pkt()
483 pr_debug("invalid %s: type=%d cid=%u pcid=%u " pptp_outbound_pkt()
486 msg, ntohs(cid), ntohs(pcid), info->cstate, info->sstate, pptp_outbound_pkt()
/linux-4.4.14/drivers/isdn/gigaset/
H A Dev-layer.c63 #define RSP_WRONG_CID -2 /* unknown cid in cmd */
148 /* 100: init, 200: dle0, 250:dle1, 300: get cid (dial), 350: "hup" (no cid),
155 /* initialize device, set cid mode if possible */
213 /* get cid */
220 /* enter cid mode */
226 /* leave cid mode */
232 /* abort getting cid */
407 static void add_cid_event(struct cardstate *cs, int cid, int type, add_cid_event() argument
414 gig_dbg(DEBUG_EVENT, "queueing event %d for cid %d", type, cid); add_cid_event()
426 event->cid = cid; add_cid_event()
450 int cid, parameter; gigaset_handle_modem_response() local
485 !kstrtoint(psep + 1, 10, &cid) && gigaset_handle_modem_response()
486 cid >= 1 && cid <= 65535) { gigaset_handle_modem_response()
491 cid = 0; gigaset_handle_modem_response()
495 if (cid) gigaset_handle_modem_response()
496 gig_dbg(DEBUG_EVENT, "CID: %d", cid); gigaset_handle_modem_response()
504 add_cid_event(cs, cid, rt->resp_code, NULL, 0); gigaset_handle_modem_response()
514 add_cid_event(cs, 0, rt->resp_code, NULL, cid); gigaset_handle_modem_response()
547 add_cid_event(cs, cid, rt->resp_code, ptr, 0); gigaset_handle_modem_response()
555 add_cid_event(cs, cid, rt->resp_code, NULL, ZSAU_NONE); gigaset_handle_modem_response()
568 add_cid_event(cs, cid, rt->resp_code, NULL, zr->code); gigaset_handle_modem_response()
580 add_cid_event(cs, cid, rt->resp_code, ptr, 0); gigaset_handle_modem_response()
599 add_cid_event(cs, cid, rt->resp_code, NULL, parameter); gigaset_handle_modem_response()
615 add_cid_event(cs, cid, rt->resp_code, NULL, parameter); gigaset_handle_modem_response()
622 add_cid_event(cs, cid, rt->resp_code, NULL, -1); gigaset_handle_modem_response()
698 int cid) get_free_channel()
699 /* cids: >0: siemens-cid get_free_channel()
700 * 0: without cid get_free_channel()
701 * -1: no cid assigned yet get_free_channel()
711 ret->cid = cid; get_free_channel()
718 gigaset_at_init(ret, NULL, cs, cid); get_free_channel()
759 * adding the "AT" prefix, cid and DLE encapsulation as appropriate
764 int cid = at_state->cid; send_command() local
774 if (cid > 0 && cid <= 65535) send_command()
777 cid, cmd); send_command()
788 static struct at_state_t *at_state_from_cid(struct cardstate *cs, int cid) at_state_from_cid() argument
794 if (cid == 0) at_state_from_cid()
798 if (cid == cs->bcs[i].at_state.cid) at_state_from_cid()
804 if (cid == at_state->cid) { at_state_from_cid()
970 /* Entering cid mode or getting a cid failed:
973 * channel >= 0: getting cid for the channel failed
974 * channel < 0: entering cid mode failed
986 if (cs->bcs[i].at_state.cid > 0) reinit_and_retry()
991 "Could not enter cid mode. Reinit device and try again.\n"); reinit_and_retry()
1261 at_state->cid = -1; do_action()
1286 at_state->cid = -1; do_action()
1312 case ACT_CID: /* got cid; start dialing */ do_action()
1316 cs->bcs[channel].at_state.cid = ev->parameter; do_action()
1322 /* bad cid: fall through */ do_action()
1541 if (ev->cid >= 0) { process_event()
1542 at_state = at_state_from_cid(cs, ev->cid); process_event()
1544 gig_dbg(DEBUG_EVENT, "event %d for invalid cid %d", process_event()
1545 ev->type, ev->cid); process_event()
1697 if (at_state->cid > 0) process_command_flags()
1714 if (at_state->cid > 0) process_command_flags()
1737 bcs->at_state.cid > 0) { process_command_flags()
697 get_free_channel(struct cardstate *cs, int cid) get_free_channel() argument
H A Dcommon.c352 event->cid = -1; gigaset_add_event()
521 struct cardstate *cs, int cid) gigaset_at_init()
541 at_state->cid = cid; gigaset_at_init()
542 if (!cid) gigaset_at_init()
800 bcs->at_state.cid = -1; /* No CID defined */ gigaset_bcs_reinit()
520 gigaset_at_init(struct at_state_t *at_state, struct bc_state *bcs, struct cardstate *cs, int cid) gigaset_at_init() argument
H A Dgigaset.h342 int cid; member in struct:at_state_t
356 int cid; member in struct:event_t
429 struct at_state_t at_state; /* at_state_t for cid == 0 */
714 struct cardstate *cs, int cid);
/linux-4.4.14/drivers/misc/vmw_vmci/
H A Dvmci_context.h50 u32 cid; member in struct:vmci_ctx
134 struct vmci_ctx *vmci_ctx_create(u32 cid, u32 flags,
140 int vmci_ctx_enqueue_datagram(u32 cid, struct vmci_datagram *dg);
143 int vmci_ctx_pending_datagrams(u32 cid, u32 *pending);
144 struct vmci_ctx *vmci_ctx_get(u32 cid);
146 bool vmci_ctx_exists(u32 cid);
165 int vmci_ctx_notify_dbell(u32 cid, struct vmci_handle handle,
179 return context->cid; vmci_ctx_get_id()
H A Dvmci_host.c63 u32 cid; member in struct:vmci_init_blk
322 vmci_host_dev->context = vmci_ctx_create(init_block.cid, vmci_host_do_init_context()
334 * Copy cid to userlevel, we do this to allow the VMX vmci_host_do_init_context()
335 * to enforce its policy on cid generation. vmci_host_do_init_context()
337 init_block.cid = vmci_ctx_get_id(vmci_host_dev->context); vmci_host_do_init_context()
362 u32 cid; vmci_host_do_send_datagram() local
410 cid = vmci_ctx_get_id(vmci_host_dev->context); vmci_host_do_send_datagram()
411 send_info.result = vmci_datagram_dispatch(cid, dg, true); vmci_host_do_send_datagram()
456 u32 cid; vmci_host_do_alloc_queuepair() local
463 cid = vmci_ctx_get_id(vmci_host_dev->context); vmci_host_do_alloc_queuepair()
673 u32 cid; vmci_host_do_ctx_add_notify() local
683 cid = vmci_ctx_get_id(vmci_host_dev->context); vmci_host_do_ctx_add_notify()
684 result = vmci_ctx_add_notification(cid, ar_info.remote_cid); vmci_host_do_ctx_add_notify()
695 u32 cid; vmci_host_do_ctx_remove_notify() local
706 cid = vmci_ctx_get_id(vmci_host_dev->context); vmci_host_do_ctx_remove_notify()
707 result = vmci_ctx_remove_notification(cid, vmci_host_do_ctx_remove_notify()
718 u32 cid; vmci_host_do_ctx_get_cpt_state() local
730 cid = vmci_ctx_get_id(vmci_host_dev->context); vmci_host_do_ctx_get_cpt_state()
731 get_info.result = vmci_ctx_get_chkpt_state(cid, get_info.cpt_type, vmci_host_do_ctx_get_cpt_state()
750 u32 cid; vmci_host_do_ctx_set_cpt_state() local
776 cid = vmci_ctx_get_id(vmci_host_dev->context); vmci_host_do_ctx_set_cpt_state()
777 set_info.result = vmci_ctx_set_chkpt_state(cid, set_info.cpt_type, vmci_host_do_ctx_set_cpt_state()
828 u32 cid; vmci_host_do_notify_resource() local
843 cid = vmci_ctx_get_id(vmci_host_dev->context); vmci_host_do_notify_resource()
849 info.result = vmci_ctx_notify_dbell(cid, info.handle, vmci_host_do_notify_resource()
857 info.result = vmci_ctx_dbell_create(cid, info.handle); vmci_host_do_notify_resource()
861 info.result = vmci_ctx_dbell_destroy(cid, info.handle); vmci_host_do_notify_resource()
881 u32 cid; vmci_host_do_recv_notifications() local
902 cid = vmci_ctx_get_id(vmci_host_dev->context); vmci_host_do_recv_notifications()
904 info.result = vmci_ctx_rcv_notifications_get(cid, vmci_host_do_recv_notifications()
922 vmci_ctx_rcv_notifications_release(cid, vmci_host_do_recv_notifications()
H A Dvmci_context.c84 struct vmci_ctx *vmci_ctx_create(u32 cid, u32 priv_flags, vmci_ctx_create() argument
92 if (cid == VMCI_INVALID_ID) { vmci_ctx_create()
163 while (vmci_ctx_exists(cid)) { vmci_ctx_create()
165 cid = max(cid, VMCI_RESERVED_CID_LIMIT - 1) + 1; vmci_ctx_create()
166 if (cid == VMCI_INVALID_ID) vmci_ctx_create()
167 cid = VMCI_RESERVED_CID_LIMIT; vmci_ctx_create()
169 context->cid = cid; vmci_ctx_create()
200 * Fire notification for all contexts interested in given cid.
239 vmci_make_handle(sub_ctx->cid, ctx_fire_notification()
277 int vmci_ctx_pending_datagrams(u32 cid, u32 *pending) vmci_ctx_pending_datagrams() argument
281 context = vmci_ctx_get(cid); vmci_ctx_pending_datagrams()
297 int vmci_ctx_enqueue_datagram(u32 cid, struct vmci_datagram *dg) vmci_ctx_enqueue_datagram() argument
311 context = vmci_ctx_get(cid); vmci_ctx_enqueue_datagram()
313 pr_devel("Invalid context (ID=0x%x)\n", cid); vmci_ctx_enqueue_datagram()
351 pr_devel("Context (ID=0x%x) receive queue is full\n", cid); vmci_ctx_enqueue_datagram()
371 bool vmci_ctx_exists(u32 cid) vmci_ctx_exists() argument
379 if (context->cid == cid) { vmci_ctx_exists()
390 * Retrieves VMCI context corresponding to the given cid.
392 struct vmci_ctx *vmci_ctx_get(u32 cid) vmci_ctx_get() argument
396 if (cid == VMCI_INVALID_ID) vmci_ctx_get()
401 if (c->cid == cid) { vmci_ctx_get()
436 ctx_fire_notification(context->cid, context->priv_flags); ctx_free_ctx()
H A Dvmci_resource.c54 u32 cid = r->handle.context; vmci_resource_lookup() local
59 (cid == handle.context || cid == VMCI_INVALID_ID)) { vmci_resource_lookup()
/linux-4.4.14/drivers/media/pci/ttpci/
H A Dav7110_ipack.c10 p->cid = 0; av7110_ipack_reset()
57 p->buf[3] = p->cid; send_ipack()
60 if (p->repack_subids && p->cid == PRIVATE_STREAM1) { send_ipack()
86 if (p->repack_subids && p->cid == PRIVATE_STREAM1 send_ipack()
99 p->buf[3] = p->cid; send_ipack()
173 p->cid = 0; av7110_ipack_instant_repack()
189 p->cid = buf[c]; av7110_ipack_instant_repack()
260 switch (p->cid) { av7110_ipack_instant_repack()
/linux-4.4.14/drivers/dma/
H A Dsirf-dma.c128 int cid, int burst_mode, void __iomem *base);
134 int cid, int burst_mode, void __iomem *base);
164 int cid, int burst_mode, void __iomem *base) sirfsoc_dma_execute_hw_a7v2()
195 int cid, int burst_mode, void __iomem *base) sirfsoc_dma_execute_hw_a7v1()
198 writel_relaxed((1 << cid), base + SIRFSOC_DMA_EARLY_RESP_SET); sirfsoc_dma_execute_hw_a7v1()
199 writel_relaxed(sdesc->width, base + SIRFSOC_DMA_WIDTH_0 + cid * 4); sirfsoc_dma_execute_hw_a7v1()
200 writel_relaxed(cid | (burst_mode << SIRFSOC_DMA_MODE_CTRL_BIT) | sirfsoc_dma_execute_hw_a7v1()
202 base + cid * 0x10 + SIRFSOC_DMA_CH_CTRL); sirfsoc_dma_execute_hw_a7v1()
203 writel_relaxed(sdesc->xlen, base + cid * 0x10 + SIRFSOC_DMA_CH_XLEN); sirfsoc_dma_execute_hw_a7v1()
204 writel_relaxed(sdesc->ylen, base + cid * 0x10 + SIRFSOC_DMA_CH_YLEN); sirfsoc_dma_execute_hw_a7v1()
206 (1 << cid), base + SIRFSOC_DMA_INT_EN); sirfsoc_dma_execute_hw_a7v1()
207 writel(sdesc->addr >> 2, base + cid * 0x10 + SIRFSOC_DMA_CH_ADDR); sirfsoc_dma_execute_hw_a7v1()
209 writel((1 << cid) | 1 << (cid + 16) | sirfsoc_dma_execute_hw_a7v1()
217 int cid, int burst_mode, void __iomem *base) sirfsoc_dma_execute_hw_a6()
219 writel_relaxed(sdesc->width, base + SIRFSOC_DMA_WIDTH_0 + cid * 4); sirfsoc_dma_execute_hw_a6()
220 writel_relaxed(cid | (burst_mode << SIRFSOC_DMA_MODE_CTRL_BIT) | sirfsoc_dma_execute_hw_a6()
222 base + cid * 0x10 + SIRFSOC_DMA_CH_CTRL); sirfsoc_dma_execute_hw_a6()
223 writel_relaxed(sdesc->xlen, base + cid * 0x10 + SIRFSOC_DMA_CH_XLEN); sirfsoc_dma_execute_hw_a6()
224 writel_relaxed(sdesc->ylen, base + cid * 0x10 + SIRFSOC_DMA_CH_YLEN); sirfsoc_dma_execute_hw_a6()
226 (1 << cid), base + SIRFSOC_DMA_INT_EN); sirfsoc_dma_execute_hw_a6()
227 writel(sdesc->addr >> 2, base + cid * 0x10 + SIRFSOC_DMA_CH_ADDR); sirfsoc_dma_execute_hw_a6()
229 writel((1 << cid) | 1 << (cid + 16) | sirfsoc_dma_execute_hw_a6()
240 int cid = schan->chan.chan_id; sirfsoc_dma_execute() local
255 cid = 0; sirfsoc_dma_execute()
258 sdma->exec_desc(sdesc, cid, schan->mode, base); sirfsoc_dma_execute()
450 int cid = schan->chan.chan_id; sirfsoc_dma_terminate_all() local
457 writel_relaxed(1 << cid, sdma->base + SIRFSOC_DMA_INT_EN_CLR); sirfsoc_dma_terminate_all()
458 writel_relaxed(1 << cid, sdma->base + SIRFSOC_DMA_CH_INT); sirfsoc_dma_terminate_all()
459 writel_relaxed((1 << cid) | 1 << (cid + 16), sirfsoc_dma_terminate_all()
462 writel_relaxed(1 << cid, sdma->base + SIRFSOC_DMA_CH_VALID); sirfsoc_dma_terminate_all()
473 ~(1 << cid), sdma->base + SIRFSOC_DMA_INT_EN); sirfsoc_dma_terminate_all()
476 ~((1 << cid) | 1 << (cid + 16)), sirfsoc_dma_terminate_all()
478 writel_relaxed(1 << cid, sdma->base + SIRFSOC_DMA_CH_VALID); sirfsoc_dma_terminate_all()
496 int cid = schan->chan.chan_id; sirfsoc_dma_pause_chan() local
503 writel_relaxed((1 << cid) | 1 << (cid + 16), sirfsoc_dma_pause_chan()
513 ~((1 << cid) | 1 << (cid + 16)), sirfsoc_dma_pause_chan()
530 int cid = schan->chan.chan_id; sirfsoc_dma_resume_chan() local
536 writel_relaxed((1 << cid) | 1 << (cid + 16), sirfsoc_dma_resume_chan()
546 ((1 << cid) | 1 << (cid + 16)), sirfsoc_dma_resume_chan()
652 int cid = schan->chan.chan_id; sirfsoc_dma_tx_status() local
675 cid = 0; sirfsoc_dma_tx_status()
681 sdma->base + cid * 0x10 + SIRFSOC_DMA_CH_ADDR) << 2; sirfsoc_dma_tx_status()
163 sirfsoc_dma_execute_hw_a7v2(struct sirfsoc_dma_desc *sdesc, int cid, int burst_mode, void __iomem *base) sirfsoc_dma_execute_hw_a7v2() argument
194 sirfsoc_dma_execute_hw_a7v1(struct sirfsoc_dma_desc *sdesc, int cid, int burst_mode, void __iomem *base) sirfsoc_dma_execute_hw_a7v1() argument
216 sirfsoc_dma_execute_hw_a6(struct sirfsoc_dma_desc *sdesc, int cid, int burst_mode, void __iomem *base) sirfsoc_dma_execute_hw_a6() argument
H A Dmpc512x_dma.c267 int cid = mchan->chan.chan_id; mpc_dma_execute() local
307 memcpy_toio(&mdma->tcd[cid], first->tcd, sizeof(struct mpc_dma_tcd)); mpc_dma_execute()
310 mdma->tcd[cid].e_sg = 1; mpc_dma_execute()
314 out_8(&mdma->regs->dmassrt, cid); mpc_dma_execute()
317 out_8(&mdma->regs->dmaserq, cid); mpc_dma_execute()
320 out_8(&mdma->regs->dmassrt, cid); mpc_dma_execute()
H A Dste_dma40.c3157 u32 cid; d40_hw_detect_init() local
3189 for (cid = 0, i = 0; i < 4; i++) d40_hw_detect_init()
3190 cid |= (readl(virtbase + resource_size(res) - 0x10 + 4 * i) d40_hw_detect_init()
3193 if (cid != AMBA_CID) { d40_hw_detect_init()
/linux-4.4.14/drivers/target/iscsi/
H A Discsi_target_erl2.c111 u16 cid) iscsit_get_inactive_connection_recovery_entry()
117 if (cr->cid == cid) { iscsit_get_inactive_connection_recovery_entry()
244 cmd->stat_sn, cr->cid); iscsit_discard_cr_cmds_by_expstatsn()
256 dropped_count, cr->cid, exp_statsn); iscsit_discard_cr_cmds_by_expstatsn()
261 cr->cid, sess->sid); iscsit_discard_cr_cmds_by_expstatsn()
265 " %hu on SID: %u\n", cr->cid, sess->sid); iscsit_discard_cr_cmds_by_expstatsn()
284 if (ooo_cmdsn->cid != conn->cid) iscsit_discard_unacknowledged_ooo_cmdsns_for_conn()
290 ooo_cmdsn->cmdsn, conn->cid); iscsit_discard_unacknowledged_ooo_cmdsns_for_conn()
309 " %hu for ExpCmdSN: 0x%08x.\n", dropped_count, conn->cid, iscsit_discard_unacknowledged_ooo_cmdsns_for_conn()
352 cmd->init_task_tag, cmd->cmd_sn, conn->cid); iscsit_prepare_cmds_for_realligance()
386 conn->cid); iscsit_prepare_cmds_for_realligance()
417 cr->cid = conn->cid; iscsit_prepare_cmds_for_realligance()
109 iscsit_get_inactive_connection_recovery_entry( struct iscsi_session *sess, u16 cid) iscsit_get_inactive_connection_recovery_entry() argument
H A Discsi_target_login.c237 __be16 cid) iscsi_login_set_conn_values()
240 conn->cid = be16_to_cpu(cid); iscsi_login_set_conn_values()
294 iscsi_login_set_conn_values(sess, conn, pdu->cid); iscsi_login_zero_tsih_s1()
485 iscsi_login_set_conn_values(NULL, conn, pdu->cid); iscsi_login_non_zero_tsih_s1()
542 iscsi_login_set_conn_values(sess, conn, pdu->cid); iscsi_login_non_zero_tsih_s2()
570 u16 cid, iscsi_login_post_auth_non_zero_tsih()
584 conn_ptr = iscsit_get_conn_from_cid_rcfr(sess, cid); iscsi_login_post_auth_non_zero_tsih()
588 conn_ptr->cid, sess->sess_ops->InitiatorName); iscsi_login_post_auth_non_zero_tsih()
605 sess, cid); iscsi_login_post_auth_non_zero_tsih()
609 conn->cid); iscsi_login_post_auth_non_zero_tsih()
621 cid, sess->sess_ops->InitiatorName); iscsi_login_post_auth_non_zero_tsih()
733 " %pISpc,%hu\n", conn->cid, &conn->login_sockaddr, iscsi_post_login_handler()
780 conn->cid, &conn->login_sockaddr, &conn->local_sockaddr, iscsi_post_login_handler()
1074 login_req->exp_statsn, login_req->cid, payload_length); iscsit_get_login_rx()
1089 login->cid = be16_to_cpu(login_req->cid); iscsit_get_login_rx()
234 iscsi_login_set_conn_values( struct iscsi_session *sess, struct iscsi_conn *conn, __be16 cid) iscsi_login_set_conn_values() argument
568 iscsi_login_post_auth_non_zero_tsih( struct iscsi_conn *conn, u16 cid, u32 exp_statsn) iscsi_login_post_auth_non_zero_tsih() argument
H A Discsi_target_util.c389 init_task_tag, conn->cid); iscsit_find_cmd_from_itt()
413 " dumping payload\n", init_task_tag, conn->cid); iscsit_find_cmd_from_itt_or_dump()
436 targ_xfer_tag, conn->cid); iscsit_find_cmd_from_ttt()
812 struct iscsi_conn *iscsit_get_conn_from_cid(struct iscsi_session *sess, u16 cid) iscsit_get_conn_from_cid() argument
818 if ((conn->cid == cid) && iscsit_get_conn_from_cid()
830 struct iscsi_conn *iscsit_get_conn_from_cid_rcfr(struct iscsi_session *sess, u16 cid) iscsit_get_conn_from_cid_rcfr() argument
836 if (conn->cid == cid) { iscsit_get_conn_from_cid_rcfr()
921 " SID: %u, failing connection.\n", conn->cid, iscsit_handle_nopin_response_timeout()
986 " seconds\n", conn->cid, na->nopin_response_timeout); iscsit_start_nopin_response_timer()
1051 " interval\n", conn->cid, na->nopin_timeout); __iscsit_start_nopin_timer()
1079 " interval\n", conn->cid, na->nopin_timeout); iscsit_start_nopin_timer()
H A Discsi_target.c991 conn->cid); iscsit_setup_scsi_cmd()
1287 payload_length, conn->cid); iscsit_check_dataout_hdr()
1757 hdr->rtt, hdr->refcmdsn, conn->cid); iscsit_handle_task_mgt_cmd()
2154 " for SID: %u.\n", conn->cid, conn->sess->sid); iscsit_logout_closesession()
2184 " %hu on CID: %hu.\n", cmd->logout_cid, conn->cid); iscsit_logout_closeconnection()
2190 if (conn->cid == cmd->logout_cid) { iscsit_logout_closeconnection()
2202 * Handle all different cid CLOSECONNECTION requests in iscsit_logout_closeconnection()
2231 " CID: %hu on CID: %hu.\n", cmd->logout_cid, conn->cid); iscsit_logout_removeconnforrecovery()
2241 if (conn->cid == cmd->logout_cid) { iscsit_logout_removeconnforrecovery()
2244 cmd->logout_cid, conn->cid); iscsit_logout_removeconnforrecovery()
2279 hdr->cid, conn->cid); iscsit_handle_logout_cmd()
2295 cmd->logout_cid = be16_to_cpu(hdr->cid); iscsit_handle_logout_cmd()
2305 be16_to_cpu(hdr->cid) == conn->cid)) iscsit_handle_logout_cmd()
2348 hdr->begrun, hdr->runlength, conn->cid); iscsit_handle_snack()
2517 cmd->logout_cid = conn->cid; iscsit_build_conn_drop_async_message()
2570 cmd->logout_cid, conn->cid); iscsit_send_conn_drop_async_message()
2626 ntohl(hdr->offset), datain->length, conn->cid); iscsit_build_datain_pdu()
2780 " successful.\n", cmd->logout_cid, conn->cid); iscsit_build_logout_rsp()
2812 cmd->logout_cid, conn->cid); iscsit_build_logout_rsp()
2835 cmd->logout_cid, conn->cid); iscsit_build_logout_rsp()
2932 " 0x%08x CID: %hu\n", hdr->ttt, cmd->stat_sn, conn->cid); iscsit_send_unsolicited_nopin()
3065 r2t->offset, r2t->xfer_len, conn->cid); iscsit_send_r2t()
3198 cmd->se_cmd.scsi_status, conn->cid); iscsit_build_rsp_pdu()
3316 cmd->init_task_tag, cmd->stat_sn, hdr->response, conn->cid); iscsit_build_task_mgt_rsp()
3571 cmd->targ_xfer_tag, cmd->stat_sn, text_length, conn->cid, iscsit_build_text_rsp()
3695 " CID: %hu\n", ntohl(hdr->statsn), hdr->reason, conn->cid); iscsit_send_reject()
3784 conn->cid); iscsit_immediate_queue()
3884 state, conn->cid); iscsit_response_queue()
3917 cmd->i_state, conn->cid); iscsit_response_queue()
4239 " %u\n", conn->cid, sess->sid); iscsit_close_connection()
4585 u16 cid) iscsit_logout_post_handler_diffcid()
4596 if (l_conn->cid == cid) { iscsit_logout_post_handler_diffcid()
4640 if (conn->cid == cmd->logout_cid) { iscsit_logout_post_handler()
4583 iscsit_logout_post_handler_diffcid( struct iscsi_conn *conn, u16 cid) iscsit_logout_post_handler_diffcid() argument
H A Discsi_target_tmr.c51 " %hu.\n", hdr->rtt, conn->cid); iscsit_tmr_abort_task()
127 hdr->itt, hdr->rtt, hdr->exp_datasn, conn->cid); iscsit_tmr_task_reassign()
138 " %hu\n", ref_cmd->init_task_tag, cr->cid); iscsit_tmr_task_reassign()
197 " %hu on SID: %u\n", cr->cid, sess->sid); iscsit_task_reassign_remove_cmd()
452 cmd->init_task_tag, conn->cid); iscsit_task_reassign_complete()
H A Discsi_target_erl1.c516 conn->cid); iscsit_handle_status_snack()
867 if (ooo_cmdsn->cid != conn->cid) iscsit_clear_ooo_cmdsns_for_conn()
1096 ooo_cmdsn->cid = cmd->conn->cid; iscsit_handle_ooo_cmdsn()
1265 " CID: %hu.\n", cmd->init_task_tag, conn->cid); iscsit_start_dataout_timer()
H A Discsi_target_erl0.c927 " Connection ID: %hu from %s\n", conn->cid, iscsit_handle_connection_cleanup()
H A Discsi_target_nego.c703 return iscsi_login_post_auth_non_zero_tsih(conn, login->cid, iscsi_target_check_for_existing_instances()
H A Discsi_target_configfs.c635 " State: ", conn->cid); lio_target_nacl_info_show()
/linux-4.4.14/arch/arm/mach-rpc/
H A Decard.c333 if (!ec->cid.cd) ecard_readchunk()
627 if (ec->cid.id == 0) { ecard_prints()
631 ec->cid.manufacturer, ec->cid.product); ecard_prints()
633 if (!ec->card_desc && ec->cid.cd && ecard_prints()
643 seq_printf(m, "Simple card %d\n", ec->cid.id); ecard_prints()
793 return sprintf(buf, "%u\n", ec->cid.manufacturer); ecard_show_vendor()
799 return sprintf(buf, "%u\n", ec->cid.product); ecard_show_device()
889 struct ex_ecid cid; ecard_probe() local
903 cid.r_zero = 1; ecard_probe()
904 ecard_readbytes(&cid, ec, 0, 16, 0); ecard_probe()
905 if (cid.r_zero) ecard_probe()
908 ec->cid.id = cid.r_id; ecard_probe()
909 ec->cid.cd = cid.r_cd; ecard_probe()
910 ec->cid.is = cid.r_is; ecard_probe()
911 ec->cid.w = cid.r_w; ecard_probe()
912 ec->cid.manufacturer = ecard_getu16(cid.r_manu); ecard_probe()
913 ec->cid.product = ecard_getu16(cid.r_prod); ecard_probe()
914 ec->cid.country = cid.r_country; ecard_probe()
915 ec->cid.irqmask = cid.r_irqmask; ecard_probe()
916 ec->cid.irqoff = ecard_gets24(cid.r_irqoff); ecard_probe()
917 ec->cid.fiqmask = cid.r_fiqmask; ecard_probe()
918 ec->cid.fiqoff = ecard_gets24(cid.r_fiqoff); ecard_probe()
922 if (ec->cid.is) { ecard_probe()
923 ec->irqmask = ec->cid.irqmask; ecard_probe()
924 ec->irqaddr += ec->cid.irqoff; ecard_probe()
925 ec->fiqmask = ec->cid.fiqmask; ecard_probe()
926 ec->fiqaddr += ec->cid.fiqoff; ecard_probe()
933 if (blacklist[i].manufacturer == ec->cid.manufacturer && ecard_probe()
934 blacklist[i].product == ec->cid.product) { ecard_probe()
1023 if (ec->cid.manufacturer == ids[i].manufacturer && ecard_match_device()
1024 ec->cid.product == ids[i].product) ecard_match_device()
1114 ret = ec->cid.id == drv->id; ecard_match()
/linux-4.4.14/drivers/scsi/aacraid/
H A Daachba.c568 dinfo->cid = cpu_to_le32(scmd_id(scsicmd)); aac_get_container_name()
767 * @cid: container identifier
778 int aac_probe_container(struct aac_dev *dev, int cid) aac_probe_container() argument
794 scsidev->id = cid; aac_probe_container()
1051 dinfo->cid = cpu_to_le32(scmd_id(scsicmd)); aac_get_container_serial()
1086 static int setinqserial(struct aac_dev *dev, void *data, int cid) setinqserial() argument
1092 le32_to_cpu(dev->adapter_info.serial[0]), cid); setinqserial()
1125 int cid = scmd_id(cmd); aac_bounds_32() local
1129 set_sense(&dev->fsa_dev[cid].sense_data, aac_bounds_32()
1132 memcpy(cmd->sense_buffer, &dev->fsa_dev[cid].sense_data, aac_bounds_32()
1133 min_t(size_t, sizeof(dev->fsa_dev[cid].sense_data), aac_bounds_32()
1163 readcmd2->cid = cpu_to_le16(scmd_id(cmd)); aac_read_raw_io()
1179 readcmd->cid = cpu_to_le16(scmd_id(cmd)); aac_read_raw_io()
1213 readcmd->cid = cpu_to_le16(scmd_id(cmd)); aac_read_block64()
1249 readcmd->cid = cpu_to_le32(scmd_id(cmd)); aac_read_block()
1289 writecmd2->cid = cpu_to_le16(scmd_id(cmd)); aac_write_raw_io()
1308 writecmd->cid = cpu_to_le16(scmd_id(cmd)); aac_write_raw_io()
1345 writecmd->cid = cpu_to_le16(scmd_id(cmd)); aac_write_block64()
1381 writecmd->cid = cpu_to_le32(scmd_id(cmd)); aac_write_block()
1791 u32 cid; io_callback() local
1799 cid = scmd_id(scsicmd); io_callback()
1845 dev->fsa_dev[cid].sense_data.sense_key = NO_SENSE; io_callback()
1850 set_sense(&dev->fsa_dev[cid].sense_data, NOT_READY, io_callback()
1852 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, io_callback()
1853 min_t(size_t, sizeof(dev->fsa_dev[cid].sense_data), io_callback()
1863 set_sense(&dev->fsa_dev[cid].sense_data, io_callback()
1866 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, io_callback()
1867 min_t(size_t, sizeof(dev->fsa_dev[cid].sense_data), io_callback()
1884 int cid; aac_read() local
1936 cid = scmd_id(scsicmd); aac_read()
1940 set_sense(&dev->fsa_dev[cid].sense_data, aac_read()
1943 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, aac_read()
1944 min_t(size_t, sizeof(dev->fsa_dev[cid].sense_data), aac_read()
1991 int cid; aac_write() local
2033 cid = scmd_id(scsicmd); aac_write()
2037 set_sense(&dev->fsa_dev[cid].sense_data, aac_write()
2040 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, aac_write()
2041 min_t(size_t, sizeof(dev->fsa_dev[cid].sense_data), aac_write()
2109 u32 cid = sdev_id(sdev); synchronize_callback() local
2115 set_sense(&dev->fsa_dev[cid].sense_data, synchronize_callback()
2118 memcpy(cmd->sense_buffer, &dev->fsa_dev[cid].sense_data, synchronize_callback()
2119 min_t(size_t, sizeof(dev->fsa_dev[cid].sense_data), synchronize_callback()
2220 synchronizecmd->cid = cpu_to_le32(scmd_id(scsicmd)); aac_synchronize()
2300 pmcmd->cid = cpu_to_le32(sdev_id(sdev)); aac_start_stop()
2338 u32 cid; aac_scsi_cmd() local
2350 cid = scmd_id(scsicmd); aac_scsi_cmd()
2351 if (cid != host->this_id) { aac_scsi_cmd()
2353 if((cid >= dev->maximum_num_containers) || aac_scsi_cmd()
2364 if (((fsa_dev_ptr[cid].valid & 1) == 0) || aac_scsi_cmd()
2365 (fsa_dev_ptr[cid].sense_data.sense_key == aac_scsi_cmd()
2405 set_sense(&dev->fsa_dev[cid].sense_data, aac_scsi_cmd()
2408 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, aac_scsi_cmd()
2409 min_t(size_t, sizeof(dev->fsa_dev[cid].sense_data), aac_scsi_cmd()
2422 dprintk((KERN_DEBUG "INQUIRY command, ID: %d.\n", cid)); aac_scsi_cmd()
2469 set_sense(&dev->fsa_dev[cid].sense_data, aac_scsi_cmd()
2473 &dev->fsa_dev[cid].sense_data, aac_scsi_cmd()
2475 sizeof(dev->fsa_dev[cid].sense_data), aac_scsi_cmd()
2490 if (cid == host->this_id) { aac_scsi_cmd()
2501 setinqstr(dev, (void *) (inq_data.inqd_vid), fsa_dev_ptr[cid].type); aac_scsi_cmd()
2517 capacity = fsa_dev_ptr[cid].size - 1; aac_scsi_cmd()
2526 cp[8] = (fsa_dev_ptr[cid].block_size >> 24) & 0xff; aac_scsi_cmd()
2527 cp[9] = (fsa_dev_ptr[cid].block_size >> 16) & 0xff; aac_scsi_cmd()
2528 cp[10] = (fsa_dev_ptr[cid].block_size >> 8) & 0xff; aac_scsi_cmd()
2529 cp[11] = (fsa_dev_ptr[cid].block_size) & 0xff; aac_scsi_cmd()
2557 if (fsa_dev_ptr[cid].size <= 0x100000000ULL) aac_scsi_cmd()
2558 capacity = fsa_dev_ptr[cid].size - 1; aac_scsi_cmd()
2566 cp[4] = (fsa_dev_ptr[cid].block_size >> 24) & 0xff; aac_scsi_cmd()
2567 cp[5] = (fsa_dev_ptr[cid].block_size >> 16) & 0xff; aac_scsi_cmd()
2568 cp[6] = (fsa_dev_ptr[cid].block_size >> 8) & 0xff; aac_scsi_cmd()
2569 cp[7] = (fsa_dev_ptr[cid].block_size) & 0xff; aac_scsi_cmd()
2586 if (fsa_dev_ptr[cid].size <= 0x100000000ULL) aac_scsi_cmd()
2587 capacity = fsa_dev_ptr[cid].size - 1; aac_scsi_cmd()
2611 (fsa_dev_ptr[cid].block_size >> 16) & 0xff; aac_scsi_cmd()
2613 (fsa_dev_ptr[cid].block_size >> 8) & 0xff; aac_scsi_cmd()
2615 fsa_dev_ptr[cid].block_size & 0xff; aac_scsi_cmd()
2666 if (fsa_dev_ptr[cid].size <= 0x100000000ULL) aac_scsi_cmd()
2667 capacity = fsa_dev_ptr[cid].size - 1; aac_scsi_cmd()
2700 (fsa_dev_ptr[cid].block_size >> 16) & 0xff; aac_scsi_cmd()
2702 (fsa_dev_ptr[cid].block_size >> 8) & 0xff; aac_scsi_cmd()
2704 fsa_dev_ptr[cid].block_size & 0xff; aac_scsi_cmd()
2741 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, sizeof (struct sense_data)); aac_scsi_cmd()
2742 memset(&dev->fsa_dev[cid].sense_data, 0, sizeof (struct sense_data)); aac_scsi_cmd()
2750 fsa_dev_ptr[cid].locked = 1; aac_scsi_cmd()
2752 fsa_dev_ptr[cid].locked = 0; aac_scsi_cmd()
2761 if (fsa_dev_ptr[cid].sense_data.sense_key == NOT_READY) { aac_scsi_cmd()
2764 set_sense(&dev->fsa_dev[cid].sense_data, aac_scsi_cmd()
2768 &dev->fsa_dev[cid].sense_data, aac_scsi_cmd()
2770 sizeof(dev->fsa_dev[cid].sense_data), aac_scsi_cmd()
2804 strlcpy(fsa_dev_ptr[cid].devname, aac_scsi_cmd()
2806 min(sizeof(fsa_dev_ptr[cid].devname), aac_scsi_cmd()
2836 set_sense(&dev->fsa_dev[cid].sense_data, aac_scsi_cmd()
2839 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, aac_scsi_cmd()
2841 sizeof(dev->fsa_dev[cid].sense_data), aac_scsi_cmd()
H A Daacraid.h1415 __le32 cid; member in struct:aac_read
1424 __le16 cid; member in struct:aac_read64
1441 __le32 cid; member in struct:aac_write
1451 __le16 cid; member in struct:aac_write64
1469 __le16 cid; member in struct:aac_raw_io
1480 __le16 cid; member in struct:aac_raw_io2
1496 __le32 cid; member in struct:aac_synchronize
1524 __le32 cid; member in struct:aac_power_management
1821 __le32 cid; member in struct:aac_get_name
1845 __le32 cid; member in struct:aac_get_serial
1861 __le32 cid; member in struct:aac_close
2162 int aac_probe_container(struct aac_dev *dev, int cid);
H A Dlinit.c424 unsigned cid; aac_slave_configure() local
432 for (cid = 0; cid < aac->maximum_num_containers; ++cid) aac_slave_configure()
433 if (aac->fsa_dev[cid].valid) aac_slave_configure()
H A Dcomminit.c233 cmd->cid = cpu_to_le32(0xfffffffe); aac_send_shutdown()
/linux-4.4.14/net/sctp/
H A Ddebug.c63 const char *sctp_cname(const sctp_subtype_t cid) sctp_cname() argument
65 if (cid.chunk <= SCTP_CID_BASE_MAX) sctp_cname()
66 return sctp_cid_tbl[cid.chunk]; sctp_cname()
68 switch (cid.chunk) { sctp_cname()
H A Dsm_statetable.c56 sctp_cid_t cid,
905 sctp_cid_t cid, sctp_chunk_event_lookup()
911 if (cid <= SCTP_CID_BASE_MAX) sctp_chunk_event_lookup()
912 return &chunk_event_table[cid][state]; sctp_chunk_event_lookup()
915 if (cid == SCTP_CID_FWD_TSN) sctp_chunk_event_lookup()
920 if (cid == SCTP_CID_ASCONF) sctp_chunk_event_lookup()
923 if (cid == SCTP_CID_ASCONF_ACK) sctp_chunk_event_lookup()
928 if (cid == SCTP_CID_AUTH) sctp_chunk_event_lookup()
904 sctp_chunk_event_lookup(struct net *net, sctp_cid_t cid, sctp_state_t state) sctp_chunk_event_lookup() argument
H A Dsm_make_chunk.c2109 sctp_cid_t cid, sctp_verify_param()
2216 __func__, ntohs(param.p->type), cid); sctp_verify_param()
2226 const struct sctp_association *asoc, sctp_cid_t cid, sctp_verify_init()
2262 if ((SCTP_CID_INIT_ACK == cid) && !has_cookie)
2268 result = sctp_verify_param(net, ep, asoc, param, cid, sctp_walk_params()
2481 * cid tells us if this is an INIT, INIT ACK or COOKIE ECHO.
2105 sctp_verify_param(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, union sctp_params param, sctp_cid_t cid, struct sctp_chunk *chunk, struct sctp_chunk **err_chunk) sctp_verify_param() argument
2225 sctp_verify_init(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, sctp_cid_t cid, sctp_init_chunk_t *peer_init, struct sctp_chunk *chunk, struct sctp_chunk **errp) sctp_verify_init() argument
/linux-4.4.14/drivers/ps3/
H A Dps3av.c147 #define ps3av_event_get_port_id(cid) ((cid >> 16) & 0xff)
149 static u32 *ps3av_search_cmd_table(u32 cid, u32 mask) ps3av_search_cmd_table() argument
156 if ((*table & mask) == (cid & mask)) ps3av_search_cmd_table()
168 if (hdr->cid & PS3AV_EVENT_CMD_MASK) { ps3av_parse_event_packet()
169 table = ps3av_search_cmd_table(hdr->cid, PS3AV_EVENT_CMD_MASK); ps3av_parse_event_packet()
172 "recv event packet cid:%08x port:0x%x size:%d\n", ps3av_parse_event_packet()
173 hdr->cid, ps3av_event_get_port_id(hdr->cid), ps3av_parse_event_packet()
177 "%s: failed event packet, cid:%08x size:%d\n", ps3av_parse_event_packet()
178 __func__, hdr->cid, hdr->size); ps3av_parse_event_packet()
240 cmd = send_buf->cid; ps3av_send_cmd_pkt()
253 res = ps3av_vuart_read(ps3av->dev, &recv_buf->cid, ps3av_send_cmd_pkt()
266 if ((cmd | PS3AV_REPLY_BIT) != recv_buf->cid) { ps3av_send_cmd_pkt()
268 __func__, recv_buf->cid); ps3av_send_cmd_pkt()
293 void ps3av_set_hdr(u32 cid, u16 size, struct ps3av_send_hdr *hdr) ps3av_set_hdr() argument
297 hdr->cid = cid; ps3av_set_hdr()
300 int ps3av_do_pkt(u32 cid, u16 send_len, size_t usr_buf_size, ps3av_do_pkt() argument
310 table = ps3av_search_cmd_table(cid, PS3AV_CID_MASK); ps3av_do_pkt()
317 ps3av_set_hdr(cid, send_len, buf); ps3av_do_pkt()
343 printk(KERN_ERR "%s: failed cid:%x res:%d\n", __func__, cid, res); ps3av_do_pkt()
H A Dps3av_cmd.c844 u32 cid; ps3av_cmd_audio_active() local
849 cid = active ? PS3AV_CID_AUDIO_ACTIVE : PS3AV_CID_AUDIO_INACTIVE; ps3av_cmd_audio_active()
851 res = ps3av_do_pkt(cid, sizeof(audio_active), sizeof(audio_active), ps3av_cmd_audio_active()
858 printk(KERN_ERR "PS3AV_CID_AUDIO_ACTIVE:%x failed %x\n", cid, ps3av_cmd_audio_active()
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
H A Drx_reorder.c99 int cid = wil_rxdesc_cid(d); variable
103 struct wil_sta_info *sta = &wil->sta[cid];
109 mid, cid, tid, seq, mcast);
209 void wil_rx_bar(struct wil6210_priv *wil, u8 cid, u8 tid, u16 seq) wil_rx_bar() argument
211 struct wil_sta_info *sta = &wil->sta[cid]; wil_rx_bar()
218 wil_err(wil, "BAR for non-existing CID %d TID %d\n", cid, tid); wil_rx_bar()
227 cid, tid, seq, r->head_seq_num); wil_rx_bar()
314 u8 cid, tid; variable
331 parse_cidxtid(req->cidxtid, &cid, &tid);
334 if (cid >= WIL6210_MAX_CID) {
335 wil_err(wil, "BACK: invalid CID %d\n", cid);
339 sta = &wil->sta[cid];
341 wil_err(wil, "BACK: CID %d not connected\n", cid);
347 cid, sta->addr, tid, req_agg_wsize, req->ba_timeout,
358 rc = wmi_addba_rx_resp(wil, cid, tid, req->dialog_token, status,
H A Dtrace.h165 __field(u8, cid)
176 __entry->cid = wil_rxdesc_cid(d);
183 TP_printk("index %d len %d mid %d cid %d tid %d mcs %d seq 0x%03x"
185 __entry->mid, __entry->cid, __entry->tid, __entry->mcs,
H A Dtxrx.c388 int cid; wil_vring_reap_rx() local
424 cid = wil_rxdesc_cid(d); wil_vring_reap_rx()
425 stats = &wil->sta[cid].stats; wil_vring_reap_rx()
464 fc1, mid, cid, tid, seq); wil_vring_reap_rx()
469 mid, cid, tid, seq); wil_vring_reap_rx()
470 wil_rx_bar(wil, cid, tid, seq); wil_vring_reap_rx()
477 fc1, mid, cid, tid, seq); wil_vring_reap_rx()
562 int cid = wil_rxdesc_cid(d); /* always 0..7, no need to check */ wil_netif_rx_any() local
568 struct wil_net_stats *stats = &wil->sta[cid].stats; wil_netif_rx_any()
720 int cid, int tid) wil_vring_init_tx()
732 .cidxtid = mk_cidxtid(cid, tid), wil_vring_init_tx()
766 wil->vring2cid_tid[id][0] = cid; wil_vring_init_tx()
899 int cid = wil_find_cid(wil, eth->h_dest); wil_find_tx_ucast() local
901 if (cid < 0) wil_find_tx_ucast()
909 if (wil->vring2cid_tid[i][0] == cid) { wil_find_tx_ucast()
934 u8 cid; wil_find_tx_vring_sta() local
945 cid = wil->vring2cid_tid[i][0]; wil_find_tx_vring_sta()
946 if (cid >= WIL6210_MAX_CID) /* skip BCAST */ wil_find_tx_vring_sta()
996 int cid = wil->vring2cid_tid[vring_index][0]; wil_set_da_for_vring() local
998 ether_addr_copy(eth->h_dest, wil->sta[cid].addr); wil_set_da_for_vring()
1007 u8 cid; wil_find_tx_bcast_2() local
1017 cid = wil->vring2cid_tid[i][0]; wil_find_tx_bcast_2()
1018 if (cid >= WIL6210_MAX_CID) /* skip BCAST */ wil_find_tx_bcast_2()
1025 if (0 == memcmp(wil->sta[cid].addr, src, ETH_ALEN)) wil_find_tx_bcast_2()
1044 cid = wil->vring2cid_tid[i][0]; wil_find_tx_bcast_2()
1045 if (cid >= WIL6210_MAX_CID) /* skip BCAST */ wil_find_tx_bcast_2()
1051 if (0 == memcmp(wil->sta[cid].addr, src, ETH_ALEN)) wil_find_tx_bcast_2()
1747 int cid = wil->vring2cid_tid[ringid][0]; wil_tx_complete() local
1767 if (cid < WIL6210_MAX_CID) wil_tx_complete()
1768 stats = &wil->sta[cid].stats; wil_tx_complete()
719 wil_vring_init_tx(struct wil6210_priv *wil, int id, int size, int cid, int tid) wil_vring_init_tx() argument
H A Dcfg80211.c108 int wil_cid_fill_sinfo(struct wil6210_priv *wil, int cid, wil_cid_fill_sinfo() argument
112 .cid = cid, wil_cid_fill_sinfo()
119 struct wil_net_stats *stats = &wil->sta[cid].stats; wil_cid_fill_sinfo()
132 cid, le16_to_cpu(reply.evt.bf_mcs), wil_cid_fill_sinfo()
181 int cid = wil_find_cid(wil, mac); wil_cfg80211_get_station() local
183 wil_dbg_misc(wil, "%s(%pM) CID %d\n", __func__, mac, cid); wil_cfg80211_get_station()
184 if (cid < 0) wil_cfg80211_get_station()
185 return cid; wil_cfg80211_get_station()
187 rc = wil_cid_fill_sinfo(wil, cid, sinfo); wil_cfg80211_get_station()
216 int cid = wil_find_cid_by_idx(wil, idx); wil_cfg80211_dump_station() local
218 if (cid < 0) wil_cfg80211_dump_station()
221 ether_addr_copy(mac, wil->sta[cid].addr); wil_cfg80211_dump_station()
222 wil_dbg_misc(wil, "%s(%pM) CID %d\n", __func__, mac, cid); wil_cfg80211_dump_station()
224 rc = wil_cid_fill_sinfo(wil, cid, sinfo); wil_cfg80211_dump_station()
958 struct wil_sta_info *sta = &wil->sta[req->cid]; wil_probe_client_handle()
1020 int cid = wil_find_cid(wil, peer); wil_cfg80211_probe_client() local
1022 wil_dbg_misc(wil, "%s(%pM => CID %d)\n", __func__, peer, cid); wil_cfg80211_probe_client()
1024 if (cid < 0) wil_cfg80211_probe_client()
1031 req->cid = cid; wil_cfg80211_probe_client()
1032 req->cookie = cid; wil_cfg80211_probe_client()
H A Dwmi.c343 wil_dbg_wmi(wil, "qid %d mid %d cid %d\n", wmi_evt_rx_mgmt()
344 data->info.qid, data->info.mid, data->info.cid); wmi_evt_rx_mgmt()
438 if (evt->cid >= WIL6210_MAX_CID) { wmi_evt_connect()
439 wil_err(wil, "Connect CID invalid : %d\n", evt->cid); wmi_evt_connect()
444 wil_dbg_wmi(wil, "Connect %pM channel [%d] cid %d\n", wmi_evt_connect()
445 evt->bssid, ch, evt->cid); wmi_evt_connect()
497 ether_addr_copy(wil->sta[evt->cid].addr, evt->bssid); wmi_evt_connect()
498 wil->sta[evt->cid].status = wil_sta_conn_pending; wmi_evt_connect()
500 wil->pending_connect_cid = evt->cid; wmi_evt_connect()
533 int cid; wmi_evt_eapol_rx() local
539 cid = wil_find_cid(wil, evt->src_mac); wmi_evt_eapol_rx()
540 if (cid >= 0) wmi_evt_eapol_rx()
541 stats = &wil->sta[cid].stats; wmi_evt_eapol_rx()
637 u8 cid, tid; variable
643 parse_cidxtid(evt->cidxtid, &cid, &tid);
645 cid, tid,
652 if ((wil->vring2cid_tid[i][0] == cid) &&
670 sta = &wil->sta[cid];
1264 int wmi_addba_rx_resp(struct wil6210_priv *wil, u8 cid, u8 tid, u8 token, wmi_addba_rx_resp() argument
1269 .cidxtid = mk_cidxtid(cid, tid), wmi_addba_rx_resp()
1288 cid, tid, agg_wsize, timeout, status, amsdu ? "+" : "-"); wmi_addba_rx_resp()
H A Dmain.c143 static void wil_disconnect_cid(struct wil6210_priv *wil, int cid,
150 struct wil_sta_info *sta = &wil->sta[cid];
153 wil_dbg_misc(wil, "%s(CID %d, status %d)\n", __func__, cid,
184 if (wil->vring2cid_tid[i][0] == cid)
193 int cid = -ENOENT; _wil6210_disconnect() local
213 cid = wil_find_cid(wil, bssid); _wil6210_disconnect()
215 bssid, cid, reason_code); _wil6210_disconnect()
216 if (cid >= 0) /* disconnect 1 peer */ _wil6210_disconnect()
217 wil_disconnect_cid(wil, cid, reason_code, from_event); _wil6210_disconnect()
220 for (cid = 0; cid < WIL6210_MAX_CID; cid++) _wil6210_disconnect()
221 wil_disconnect_cid(wil, cid, reason_code, from_event); _wil6210_disconnect()
409 int cid = wil->pending_connect_cid; wil_connect_worker() local
412 if (cid < 0) { wil_connect_worker()
417 wil_dbg_wmi(wil, "Configure for connection CID %d\n", cid); wil_connect_worker()
419 rc = wil_vring_init_tx(wil, ringid, 1 << tx_ring_order, cid, 0); wil_connect_worker()
422 wil->sta[cid].status = wil_sta_connected; wil_connect_worker()
425 wil_disconnect_cid(wil, cid, WLAN_REASON_UNSPECIFIED, true); wil_connect_worker()
H A Dwil6210.h281 * @cid: CID value
286 static inline u8 mk_cidxtid(u8 cid, u8 tid) mk_cidxtid() argument
288 return ((tid & 0xf) << 4) | (cid & 0xf); mk_cidxtid()
293 * @cid: store CID value here
298 static inline void parse_cidxtid(u8 cidxtid, u8 *cid, u8 *tid) parse_cidxtid() argument
300 *cid = cidxtid & 0xf; parse_cidxtid()
530 u8 cid; member in struct:wil_probe_client_req
763 int wmi_addba_rx_resp(struct wil6210_priv *wil, u8 cid, u8 tid, u8 token,
788 int wil_cid_fill_sinfo(struct wil6210_priv *wil, int cid,
808 int cid, int tid);
H A Dwmi.h646 u8 cid; member in struct:wmi_notify_req_cmd
985 u8 cid; member in struct:wmi_get_status_done_event
1083 u8 cid; member in struct:wmi_connect_event
1215 u8 cid; member in struct:wmi_wbe_link_down_event
1224 u8 cid; member in struct:wmi_data_port_open_event
1351 u8 cid; member in struct:wmi_rx_mgmt_info
H A Ddebugfs.c99 int cid = wil->vring2cid_tid[i][0]; wil_vring_debugfs_show() local
125 if (cid < WIL6210_MAX_CID) wil_vring_debugfs_show()
128 wil->sta[cid].addr, cid, tid, wil_vring_debugfs_show()
1001 cmd.cid = i; wil_bf_debugfs_show()
H A Dtxrx.h305 * bit 4.. 6 : cid:3 The Source index that was found during parsing the TA.
510 void wil_rx_bar(struct wil6210_priv *wil, u8 cid, u8 tid, u16 seq);
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp5/
H A Dmdp5_smp.c105 u32 cid, mdp5_smp_state_t *assigned);
139 u32 cid, int nblks) smp_request_block()
142 struct mdp5_client_smp_state *ps = &smp->client_state[cid]; smp_request_block()
147 reserved = smp->reserved[cid]; smp_request_block()
279 u32 cid = pipe2client(pipe, i); mdp5_smp_release() local
280 struct mdp5_client_smp_state *ps = &smp->client_state[cid]; mdp5_smp_release()
304 u32 cid, mdp5_smp_state_t *assigned) update_smp_state()
319 val |= MDP5_MDP_SMP_ALLOC_W_REG_CLIENT0(cid); update_smp_state()
323 val |= MDP5_MDP_SMP_ALLOC_W_REG_CLIENT1(cid); update_smp_state()
327 val |= MDP5_MDP_SMP_ALLOC_W_REG_CLIENT2(cid); update_smp_state()
344 u32 cid = pipe2client(pipe, i); mdp5_smp_configure() local
345 struct mdp5_client_smp_state *ps = &smp->client_state[cid]; mdp5_smp_configure()
356 update_smp_state(smp, cid, &assigned); mdp5_smp_configure()
368 u32 cid = pipe2client(pipe, i); mdp5_smp_commit() local
369 struct mdp5_client_smp_state *ps = &smp->client_state[cid]; mdp5_smp_commit()
138 smp_request_block(struct mdp5_smp *smp, u32 cid, int nblks) smp_request_block() argument
303 update_smp_state(struct mdp5_smp *smp, u32 cid, mdp5_smp_state_t *assigned) update_smp_state() argument
/linux-4.4.14/net/vmw_vsock/
H A Dvsock_addr.c22 void vsock_addr_init(struct sockaddr_vm *addr, u32 cid, u32 port) vsock_addr_init() argument
26 addr->svm_cid = cid; vsock_addr_init()
H A Dvmci_transport.c145 /* We register the stream control handler as an any cid handle so we vmci_transport_packet_init()
640 static bool vmci_transport_stream_allow(u32 cid, u32 port) vmci_transport_stream_allow() argument
647 BUILD_BUG_ON(sizeof(cid) != sizeof(*non_socket_contexts)); vmci_transport_stream_allow()
650 if (cid == non_socket_contexts[i]) vmci_transport_stream_allow()
1779 static bool vmci_transport_dgram_allow(u32 cid, u32 port) vmci_transport_dgram_allow() argument
1781 if (cid == VMADDR_CID_HYPERVISOR) { vmci_transport_dgram_allow()
H A Daf_vsock.c544 u32 cid; __vsock_bind() local
556 cid = transport->get_local_cid(); __vsock_bind()
557 if (addr->svm_cid != cid && addr->svm_cid != VMADDR_CID_ANY) __vsock_bind()
/linux-4.4.14/drivers/gpu/drm/vmwgfx/device_include/
H A Dsvga3d_cmd.h365 uint32 cid; member in struct:__anon4655
373 uint32 cid; member in struct:__anon4656
381 uint32 cid; member in struct:__anon4657
436 uint32 cid; member in struct:__anon4662
445 uint32 cid; member in struct:__anon4663
696 uint32 cid; member in struct:__anon4672
719 uint32 cid; member in struct:__anon4673
733 uint32 cid; member in struct:__anon4674
778 uint32 cid; member in struct:__anon4676
805 uint32 cid; member in struct:__anon4678
821 uint32 cid; member in struct:__anon4679
843 uint32 cid; member in struct:__anon4682
852 uint32 cid; member in struct:__anon4683
871 uint32 cid; member in struct:__anon4685
892 uint32 cid; member in struct:__anon4687
902 uint32 cid; member in struct:__anon4688
912 uint32 cid; member in struct:__anon4689
922 uint32 cid; member in struct:__anon4690
931 uint32 cid; member in struct:__anon4691
940 uint32 cid; member in struct:__anon4692
950 uint32 cid; member in struct:__anon4693
961 uint32 cid; member in struct:__anon4694
971 uint32 cid; member in struct:__anon4695
987 uint32 cid; member in struct:__anon4696
997 uint32 cid; member in struct:__anon4697
1006 uint32 cid; member in struct:__anon4698
1022 * All queries with the same type and issued with the same cid, for which
1030 * same cid, and the SVGA3dQueryResult structure pointed to by
1032 * implement a query barrier for a given cid and query type.
1038 uint32 cid; /* Same parameters passed to END_QUERY */ member in struct:__anon4699
1344 uint32 cid; member in struct:__anon4708
1806 uint32 cid; member in struct:SVGA3dCmdDefineGBContext
1818 uint32 cid; member in struct:SVGA3dCmdDestroyGBContext
1838 uint32 cid; member in struct:SVGA3dCmdBindGBContext
1853 uint32 cid; member in struct:SVGA3dCmdReadbackGBContext
1864 uint32 cid; member in struct:SVGA3dCmdInvalidateGBContext
1912 uint32 cid; member in struct:__anon4722
1931 uint32 cid; member in struct:__anon4723
1940 uint32 cid; member in struct:__anon4724
1960 uint32 cid; member in struct:__anon4725
H A Dsvga3d_dx.h129 uint32 cid; member in struct:__anon4739
138 uint32 cid; member in struct:SVGA3dCmdDXDefineContext
146 uint32 cid; member in struct:SVGA3dCmdDXDestroyContext
165 uint32 cid; member in struct:SVGA3dCmdDXBindContext
179 uint32 cid; member in struct:SVGA3dCmdDXReadbackContext
190 uint32 cid; member in struct:SVGA3dCmdDXInvalidateContext
491 uint32 cid; member in struct:SVGA3dCmdDXBindAllQuery
500 uint32 cid; member in struct:SVGA3dCmdDXReadbackAllQuery
1278 uint32 cid; member in struct:SVGA3dCmdDXBindShader
1363 uint32 cid; member in struct:SVGA3dCmdDXSetCOTable
1374 uint32 cid; member in struct:SVGA3dCmdDXReadbackCOTable
/linux-4.4.14/drivers/scsi/be2iscsi/
H A Dbe_iscsi.c125 * @cid: iscsi cid
128 beiscsi_conn_create(struct iscsi_cls_session *cls_session, u32 cid) beiscsi_conn_create() argument
142 "BS_%d : In beiscsi_conn_create ,cid" beiscsi_conn_create()
143 "from iscsi layer=%d\n", cid); beiscsi_conn_create()
145 cls_conn = iscsi_conn_setup(cls_session, sizeof(*beiscsi_conn), cid); beiscsi_conn_create()
164 * @cid: The cid to free
168 unsigned int cid) beiscsi_bindconn_cid()
170 uint16_t cri_index = BE_GET_CRI_FROM_CID(cid); beiscsi_bindconn_cid()
1005 * beiscsi_get_cid - Allocate a cid
1010 unsigned short cid = 0xFFFF, cid_from_ulp; beiscsi_get_cid() local
1025 return cid; beiscsi_get_cid()
1027 cid = cid_info->cid_array[cid_info->cid_alloc++]; beiscsi_get_cid()
1035 return cid; beiscsi_get_cid()
1039 * beiscsi_put_cid - Free the cid
1040 * @phba: The phba for which the cid is being freed
1041 * @cid: The cid to free
1043 static void beiscsi_put_cid(struct beiscsi_hba *phba, unsigned short cid) beiscsi_put_cid() argument
1049 uint16_t cri_index = BE_GET_CRI_FROM_CID(cid); beiscsi_put_cid()
1058 cid_info->cid_array[cid_info->cid_free++] = cid; beiscsi_put_cid()
1118 "BS_%d : No free cid available\n"); beiscsi_open_conn()
1153 "BS_%d : mgmt_open_connection Failed for cid=%d\n", beiscsi_open_conn()
1315 "BS_%d : upload failed for cid 0x%x\n", beiscsi_close_conn()
1332 * @cid: The cid to free
1335 unsigned int cid) beiscsi_unbind_conn_to_cid()
1337 uint16_t cri_index = BE_GET_CRI_FROM_CID(cid); beiscsi_unbind_conn_to_cid()
1392 "BS_%d : mgmt_invalidate_connection Failed for cid=%d\n", beiscsi_ep_disconnect()
166 beiscsi_bindconn_cid(struct beiscsi_hba *phba, struct beiscsi_conn *beiscsi_conn, unsigned int cid) beiscsi_bindconn_cid() argument
1334 beiscsi_unbind_conn_to_cid(struct beiscsi_hba *phba, unsigned int cid) beiscsi_unbind_conn_to_cid() argument
H A Dbe_mgmt.h106 unsigned short cid,
110 unsigned int num_invalidate, unsigned int cid,
121 unsigned short cid; member in struct:iscsi_invalidate_connection_params_in
129 unsigned short cid; member in struct:iscsi_invalidate_connection_params_out
274 unsigned short cid,
H A Dbe_main.h250 unsigned int cid; member in struct:sgl_handle
301 unsigned short cid; member in struct:invalidate_command_table
315 unsigned short cid; member in struct:hwi_wrb_context
385 #define BE_SET_CID_TO_CRI(cri_index, cid) \
386 (phba->cid_to_cri_map[cid] = cri_index)
387 #define BE_GET_CRI_FROM_CID(cid) (phba->cid_to_cri_map[cid])
399 * for cid to cri conversion
508 unsigned short cid; member in struct:beiscsi_io_task
650 #define BE_GET_ASYNC_CRI_FROM_CID(cid) (pasync_ctx->cid_to_async_cri_map[cid])
675 u8 cid[10]; member in struct:amap_i_t_dpdu_cqe
692 u8 cid[13]; /* DWORD 3 */ member in struct:amap_i_t_dpdu_cqe_v2
837 struct wrb_handle *alloc_wrb_handle(struct beiscsi_hba *phba, unsigned int cid,
H A Dbe_main.c229 unsigned int cid, tag, num_invalidate; beiscsi_eh_abort() local
259 cid = beiscsi_conn->beiscsi_conn_cid; beiscsi_eh_abort()
262 inv_tbl->cid = cid; beiscsi_eh_abort()
277 cid, &nonemb_cmd); beiscsi_eh_abort()
307 unsigned int cid, tag, i, num_invalidate; beiscsi_eh_device_reset() local
321 cid = beiscsi_conn->beiscsi_conn_cid; beiscsi_eh_device_reset()
339 inv_tbl->cid = cid; beiscsi_eh_device_reset()
359 cid, &nonemb_cmd); beiscsi_eh_device_reset()
1200 * @cid: The cid to use for allocation
1205 struct wrb_handle *alloc_wrb_handle(struct beiscsi_hba *phba, unsigned int cid, alloc_wrb_handle() argument
1211 uint16_t cri_index = BE_GET_CRI_FROM_CID(cid); alloc_wrb_handle()
1437 uint16_t wrb_index, cid, cri_index; hwi_complete_drvr_msgs() local
1443 cid = AMAP_GET_BITS(struct amap_it_dmsg_cqe, hwi_complete_drvr_msgs()
1444 cid, psol); hwi_complete_drvr_msgs()
1448 cid = AMAP_GET_BITS(struct amap_it_dmsg_cqe_v2, hwi_complete_drvr_msgs()
1449 cid, psol); hwi_complete_drvr_msgs()
1452 cri_index = BE_GET_CRI_FROM_CID(cid); hwi_complete_drvr_msgs()
1495 csol_cqe->cid = AMAP_GET_BITS(struct amap_sol_cqe, adapter_get_sol_cqe()
1496 cid, psol); adapter_get_sol_cqe()
1512 csol_cqe->cid = AMAP_GET_BITS(struct amap_sol_cqe_v2, adapter_get_sol_cqe()
1513 cid, psol); adapter_get_sol_cqe()
1555 cri_index = BE_GET_CRI_FROM_CID(csol_cqe.cid); hwi_complete_cmd()
1600 csol_cqe.cid); hwi_complete_cmd()
2097 unsigned short code = 0, cid = 0; beiscsi_process_cq() local
2117 cid = AMAP_GET_BITS(struct amap_sol_cqe, cid, sol); beiscsi_process_cq()
2122 cid = AMAP_GET_BITS( beiscsi_process_cq()
2124 cid, sol); beiscsi_process_cq()
2126 cid = AMAP_GET_BITS(struct amap_sol_cqe_v2, beiscsi_process_cq()
2127 cid, sol); beiscsi_process_cq()
2130 cri_index = BE_GET_CRI_FROM_CID(cid); beiscsi_process_cq()
2139 "BM_%d : proc cqe of disconn ep: cid %d\n", beiscsi_process_cq()
2140 cid); beiscsi_process_cq()
2162 cqe_desc[code], code, cid); beiscsi_process_cq()
2171 cqe_desc[code], code, cid); beiscsi_process_cq()
2182 cqe_desc[code], code, cid); beiscsi_process_cq()
2195 cqe_desc[code], code, cid); beiscsi_process_cq()
2208 cqe_desc[code], code, cid); beiscsi_process_cq()
2214 cqe_desc[code], code, cid); beiscsi_process_cq()
2239 cqe_desc[code], code, cid); beiscsi_process_cq()
2249 code, cid); beiscsi_process_cq()
3676 BE_SET_CID_TO_CRI(i, pwrb_context->cid); beiscsi_create_wrb_rings()
3962 phwi_ctrlr->wrb_context[cri].cid] = hwi_init_port()
4247 phba->phwi_ctrlr->wrb_context[i].cid; hba_setup_cid_tbls()
5027 unsigned int cid; beiscsi_mtask() local
5030 cid = beiscsi_conn->beiscsi_conn_cid; beiscsi_mtask()
5125 doorbell |= cid & DB_WRB_POST_CID_MASK; beiscsi_mtask()
H A Dbe_iscsi.h61 *cls_session, uint32_t cid);
H A Dbe_cmds.h344 u16 cid; member in struct:mgmt_conn_info
876 u16 cid; member in struct:be_wrbq_create_resp
908 u8 cid[10]; /* dword 2 */ member in struct:amap_sol_cqe
940 u8 cid[13]; /* dword 2 */ member in struct:amap_sol_cqe_v2
952 u16 cid; member in struct:common_sol_cqe
966 u8 cid[10]; /* DWORD 2 */ member in struct:amap_it_dmsg_cqe
980 u8 cid[13]; /* DWORD 3 */ member in struct:amap_it_dmsg_cqe_v2
1026 u16 cid; member in struct:tcp_connect_and_offload_in
1040 u16 cid; member in struct:tcp_connect_and_offload_in_v1
1059 u16 cid; member in struct:tcp_connect_and_offload_out
H A Dbe_mgmt.c585 unsigned int num_invalidate, unsigned int cid, mgmt_invalidate_icds()
616 req->table[i].cid = inv_tbl->cid; mgmt_invalidate_icds()
631 unsigned short cid, mgmt_invalidate_connection()
655 req->cid = cid; mgmt_invalidate_connection()
667 unsigned short cid, unsigned int upload_flag) mgmt_upload_connection()
687 req->id = (unsigned short)cid; mgmt_upload_connection()
722 unsigned short cid = beiscsi_ep->ep_cid; mgmt_open_connection() local
728 ulp_num = phwi_ctrlr->wrb_context[BE_GET_CRI_FROM_CID(cid)].ulp_num; mgmt_open_connection()
781 req->cid = cid; mgmt_open_connection()
583 mgmt_invalidate_icds(struct beiscsi_hba *phba, struct invalidate_command_table *inv_tbl, unsigned int num_invalidate, unsigned int cid, struct be_dma_mem *nonemb_cmd) mgmt_invalidate_icds() argument
629 mgmt_invalidate_connection(struct beiscsi_hba *phba, struct beiscsi_endpoint *beiscsi_ep, unsigned short cid, unsigned short issue_reset, unsigned short savecfg_flag) mgmt_invalidate_connection() argument
666 mgmt_upload_connection(struct beiscsi_hba *phba, unsigned short cid, unsigned int upload_flag) mgmt_upload_connection() argument
H A Dbe_cmds.c1277 wrbq->id = le16_to_cpu(resp->cid); be_cmd_wrbq_create()
1280 pwrb_context->cid = wrbq->id; be_cmd_wrbq_create()
/linux-4.4.14/drivers/mfd/
H A Dab3100-otp.c43 * @cid customer ID
55 u16 cid:14; member in struct:ab3100_otp
87 otp->cid = ((otpval[1] << 8) | otpval[0]) & 0x3fff; ab3100_otp_read()
108 seq_printf(s, "CID: 0x%04x (decimal: %d)\n", otp->cid, otp->cid); ab3100_show_otp()
168 SHOW_AB3100_ATTR(cid)
178 __ATTR(cid, S_IRUGO, ab3100_otp_cid_show, NULL),
/linux-4.4.14/drivers/media/v4l2-core/
H A Dv4l2-flash-led-class.c309 ctrl_init_data[FLASH_FAULT].cid = V4L2_CID_FLASH_FAULT; __fill_ctrl_init_data()
323 ctrl_init_data[LED_MODE].cid = V4L2_CID_FLASH_LED_MODE; __fill_ctrl_init_data()
332 ctrl_init_data[TORCH_INTENSITY].cid = V4L2_CID_FLASH_TORCH_INTENSITY; __fill_ctrl_init_data()
341 ctrl_init_data[INDICATOR_INTENSITY].cid = __fill_ctrl_init_data()
356 ctrl_init_data[FLASH_STROBE].cid = V4L2_CID_FLASH_STROBE; __fill_ctrl_init_data()
361 ctrl_init_data[STROBE_STOP].cid = V4L2_CID_FLASH_STROBE_STOP; __fill_ctrl_init_data()
369 ctrl_init_data[STROBE_SOURCE].cid = __fill_ctrl_init_data()
380 ctrl_init_data[STROBE_STATUS].cid = __fill_ctrl_init_data()
390 ctrl_init_data[FLASH_TIMEOUT].cid = V4L2_CID_FLASH_TIMEOUT; __fill_ctrl_init_data()
398 ctrl_init_data[FLASH_INTENSITY].cid = V4L2_CID_FLASH_INTENSITY; __fill_ctrl_init_data()
431 if (ctrl_init_data[i].cid) v4l2_flash_init_controls()
438 if (!ctrl_init_data[i].cid) v4l2_flash_init_controls()
/linux-4.4.14/include/scsi/
H A Discsi_if.h126 uint32_t cid; member in struct:iscsi_uevent::__anon13681::msg_create_conn
130 uint32_t cid; member in struct:iscsi_uevent::__anon13681::msg_bind_conn
136 uint32_t cid; member in struct:iscsi_uevent::__anon13681::msg_destroy_conn
140 uint32_t cid; member in struct:iscsi_uevent::__anon13681::msg_send_pdu
146 uint32_t cid; member in struct:iscsi_uevent::__anon13681::msg_set_param
152 uint32_t cid; member in struct:iscsi_uevent::__anon13681::msg_start_conn
156 uint32_t cid; member in struct:iscsi_uevent::__anon13681::msg_stop_conn
162 uint32_t cid; member in struct:iscsi_uevent::__anon13681::msg_get_stats
259 uint32_t cid; member in struct:iscsi_uevent::__anon13682::msg_create_conn_ret
267 uint32_t cid; member in struct:iscsi_uevent::__anon13682::msg_recv_req
272 uint32_t cid; member in struct:iscsi_uevent::__anon13682::msg_conn_login
277 uint32_t cid; member in struct:iscsi_uevent::__anon13682::msg_conn_error
H A Dscsi_transport_iscsi.h97 uint32_t cid);
208 uint32_t cid; /* connection id */ member in struct:iscsi_cls_conn
439 int dd_size, uint32_t cid);
H A Discsi_proto.h449 __be16 cid; member in struct:iscsi_login_req
541 __be16 cid; member in struct:iscsi_logout
/linux-4.4.14/drivers/net/ethernet/broadcom/
H A Dcnic.c217 static void cnic_ring_ctl(struct cnic_dev *dev, u32 cid, u32 cl_id, int start) cnic_ring_ctl() argument
230 ring->cid = cid; cnic_ring_ctl()
302 static int cnic_get_l5_cid(struct cnic_local *cp, u32 cid, u32 *l5_cid) cnic_get_l5_cid() argument
310 if (cp->ctx_tbl[i].cid == cid) { cnic_get_l5_cid()
936 cp->ctx_arr[k].cid = j; cnic_alloc_context()
1389 static int cnic_submit_kwqe_16(struct cnic_dev *dev, u32 cmd, u32 cid, cnic_submit_kwqe_16() argument
1401 BNX2X_HW_CID(bp, cid))); cnic_submit_kwqe_16()
1599 cnic_free_id(&cp->cid_tbl, ctx->cid); cnic_free_bnx2x_conn_resc()
1601 cnic_free_id(&cp->fcoe_cid_tbl, ctx->cid); cnic_free_bnx2x_conn_resc()
1604 ctx->cid = 0; cnic_free_bnx2x_conn_resc()
1609 u32 cid; cnic_alloc_bnx2x_conn_resc() local
1616 cid = cnic_alloc_new_id(&cp->fcoe_cid_tbl); cnic_alloc_bnx2x_conn_resc()
1617 if (cid == -1) { cnic_alloc_bnx2x_conn_resc()
1621 ctx->cid = cid; cnic_alloc_bnx2x_conn_resc()
1625 cid = cnic_alloc_new_id(&cp->cid_tbl); cnic_alloc_bnx2x_conn_resc()
1626 if (cid == -1) { cnic_alloc_bnx2x_conn_resc()
1631 ctx->cid = cid; cnic_alloc_bnx2x_conn_resc()
1655 static void *cnic_get_bnx2x_ctx(struct cnic_dev *dev, u32 cid, int init, cnic_get_bnx2x_ctx() argument
1660 int blk = (cid - ethdev->starting_cid) / cp->cids_per_blk; cnic_get_bnx2x_ctx()
1661 int off = (cid - ethdev->starting_cid) % cp->cids_per_blk; cnic_get_bnx2x_ctx()
1697 u32 cid = ctx->cid; cnic_setup_bnx2x_ctx() local
1698 u32 hw_cid = BNX2X_HW_CID(bp, cid); cnic_setup_bnx2x_ctx()
1710 ictx = cnic_get_bnx2x_ctx(dev, cid, 1, &context_addr); cnic_setup_bnx2x_ctx()
1932 kcqe.iscsi_conn_context_id = BNX2X_HW_CID(bp, cp->ctx_tbl[l5_cid].cid); cnic_bnx2x_iscsi_ofld1()
1948 u32 l5_cid, cid = BNX2X_SW_CID(req->context_id); cnic_bnx2x_iscsi_update() local
1951 if (cnic_get_l5_cid(cp, cid, &l5_cid) != 0) cnic_bnx2x_iscsi_update()
1977 hw_cid = BNX2X_HW_CID(bp, ctx->cid); cnic_bnx2x_destroy_ramrod()
2050 u32 cid = BNX2X_SW_CID(kwqe1->cid); cnic_init_storm_conn_bufs() local
2063 cnic_get_bnx2x_ctx(dev, cid, 0, &context_addr); cnic_init_storm_conn_bufs()
2195 kwqe1->cid, ISCSI_CONNECTION_TYPE, &l5_data); cnic_bnx2x_connect()
2210 req->cid, ISCSI_CONNECTION_TYPE, &l5_data); cnic_bnx2x_close()
2222 req->cid, ISCSI_CONNECTION_TYPE, &l5_data); cnic_bnx2x_reset()
2263 u32 cid; cnic_bnx2x_fcoe_stat() local
2266 cid = BNX2X_HW_CID(bp, cp->fcoe_init_cid); cnic_bnx2x_fcoe_stat()
2275 ret = cnic_submit_kwqe_16(dev, FCOE_RAMROD_CMD_ID_STAT_FUNC, cid, cnic_bnx2x_fcoe_stat()
2286 u32 cid; cnic_bnx2x_fcoe_init1() local
2330 cid = BNX2X_HW_CID(bp, cp->fcoe_init_cid); cnic_bnx2x_fcoe_init1()
2331 ret = cnic_submit_kwqe_16(dev, FCOE_RAMROD_CMD_ID_INIT_FUNC, cid, cnic_bnx2x_fcoe_init1()
2341 u32 cid = -1, l5_cid; cnic_bnx2x_fcoe_ofld1() local
2382 cid = ctx->cid; cnic_bnx2x_fcoe_ofld1()
2384 fctx = cnic_get_bnx2x_ctx(dev, cid, 1, &ctx_addr); cnic_bnx2x_fcoe_ofld1()
2386 u32 hw_cid = BNX2X_HW_CID(bp, cid); cnic_bnx2x_fcoe_ofld1()
2410 cid = BNX2X_HW_CID(bp, cid); cnic_bnx2x_fcoe_ofld1()
2411 ret = cnic_submit_kwqe_16(dev, FCOE_RAMROD_CMD_ID_OFFLOAD_CONN, cid, cnic_bnx2x_fcoe_ofld1()
2419 if (cid != -1) cnic_bnx2x_fcoe_ofld1()
2438 u32 cid, l5_cid; cnic_bnx2x_fcoe_enable() local
2442 cid = req->context_id; cnic_bnx2x_fcoe_enable()
2455 ret = cnic_submit_kwqe_16(dev, FCOE_RAMROD_CMD_ID_ENABLE_CONN, cid, cnic_bnx2x_fcoe_enable()
2466 u32 cid, l5_cid; cnic_bnx2x_fcoe_disable() local
2470 cid = req->context_id; cnic_bnx2x_fcoe_disable()
2487 ret = cnic_submit_kwqe_16(dev, FCOE_RAMROD_CMD_ID_DISABLE_CONN, cid, cnic_bnx2x_fcoe_disable()
2497 u32 cid, l5_cid; cnic_bnx2x_fcoe_destroy() local
2504 cid = req->context_id; cnic_bnx2x_fcoe_destroy()
2519 ret = cnic_submit_kwqe_16(dev, FCOE_RAMROD_CMD_ID_TERMINATE_CONN, cid, cnic_bnx2x_fcoe_destroy()
2532 kcqe.fcoe_conn_context_id = cid; cnic_bnx2x_fcoe_destroy()
2559 ctx->cid); cnic_bnx2x_delete_wait()
2570 u32 cid; cnic_bnx2x_fcoe_fw_destroy() local
2575 cid = BNX2X_HW_CID(bp, cp->fcoe_init_cid); cnic_bnx2x_fcoe_fw_destroy()
2578 ret = cnic_submit_kwqe_16(dev, FCOE_RAMROD_CMD_ID_DESTROY_FUNC, cid, cnic_bnx2x_fcoe_fw_destroy()
2588 u32 cid; cnic_bnx2x_kwqe_err() local
2594 cid = kwqe->kwqe_info0; cnic_bnx2x_kwqe_err()
2606 cid = req->context_id; cnic_bnx2x_kwqe_err()
2616 kcqe.kcqe_info2 = cid; cnic_bnx2x_kwqe_err()
2622 cid = kwqe->kwqe_info1; cnic_bnx2x_kwqe_err()
2627 kcqe.kcqe_info2 = cid; cnic_bnx2x_kwqe_err()
2628 cnic_get_l5_cid(cp, BNX2X_SW_CID(cid), &kcqe.kcqe_info0); cnic_bnx2x_kwqe_err()
2646 l4kcqe->cid = cid; cnic_bnx2x_kwqe_err()
2647 cnic_get_l5_cid(cp, BNX2X_SW_CID(cid), &l4kcqe->conn_id); cnic_bnx2x_kwqe_err()
3293 u32 cid = BNX2X_SW_CID(comp->cid); cnic_ctl() local
3300 if (cnic_get_l5_cid(cp, cid, &l5_cid) == 0) { cnic_ctl()
3307 cid, comp->error); cnic_ctl()
3461 l4kwqe->cid = csk->pg_cid; cnic_cm_upload_pg()
3526 l4kwqe1->cid = csk->cid; cnic_cm_conn_req()
3562 l4kwqe->cid = csk->cid; cnic_cm_close_req()
3579 l4kwqe->cid = csk->cid; cnic_cm_abort_req()
3584 static int cnic_cm_create(struct cnic_dev *dev, int ulp_type, u32 cid, cnic_cm_create() argument
3608 csk1->cid = cid; cnic_cm_create()
4008 l5_cid = l4kcqe->cid; cnic_cm_process_kcqe()
4205 cnic_submit_kwqe_16(dev, cmd, csk->cid, ISCSI_CONNECTION_TYPE, cnic_close_bnx2x_conn()
4370 static void cnic_init_context(struct cnic_dev *dev, u32 cid) cnic_init_context() argument
4375 cid_addr = GET_CID_ADDR(cid); cnic_init_context()
4392 u32 idx = cp->ctx_arr[i].cid / cp->cids_per_blk; cnic_setup_5709_context()
5180 u32 cid = cp->ethdev->iscsi_l2_cid; cnic_init_rings() local
5217 cid, ETH_CONNECTION_TYPE, &l5_data); cnic_init_rings()
5228 cnic_ring_ctl(dev, cid, cli, 1); cnic_init_rings()
5229 *cid_ptr = cid >> 4; cnic_init_rings()
5230 *(cid_ptr + 1) = cid * bp->db_size; cnic_init_rings()
5248 u32 cid = cp->ethdev->iscsi_l2_cid; cnic_shutdown_rings() local
5252 cnic_ring_ctl(dev, cid, cli, 0); cnic_shutdown_rings()
5259 cid, ETH_CONNECTION_TYPE, &l5_data); cnic_shutdown_rings()
5272 cid, NONE_CONNECTION_TYPE, &l5_data); cnic_shutdown_rings()
H A Dcnic_if.h118 u32 cid; member in struct:cnic_ctl_completion
144 u32 cid; member in struct:drv_ctl_l2_ring
271 u32 cid; member in struct:cnic_sock
H A Dcnic.h124 u32 cid; member in struct:cnic_ctx
161 u32 cid; member in struct:cnic_context
H A Dbnx2.c1290 bnx2_init_rx_context(struct bnx2 *bp, u32 cid) bnx2_init_rx_context() argument
1292 u32 val, rx_cid_addr = GET_CID_ADDR(cid); bnx2_init_rx_context()
1308 u32 cid; bnx2_init_all_rx_contexts() local
1310 for (i = 0, cid = RX_CID; i < bp->num_rx_rings; i++, cid++) { bnx2_init_all_rx_contexts()
1312 cid = RX_RSS_CID; bnx2_init_all_rx_contexts()
1313 bnx2_init_rx_context(bp, cid); bnx2_init_all_rx_contexts()
5140 bnx2_init_tx_context(struct bnx2 *bp, u32 cid, struct bnx2_tx_ring_info *txr) bnx2_init_tx_context() argument
5143 u32 cid_addr = GET_CID_ADDR(cid); bnx2_init_tx_context()
5173 u32 cid = TX_CID; bnx2_init_tx_ring() local
5181 cid = TX_CID; bnx2_init_tx_ring()
5183 cid = TX_TSS_CID + ring_num - 1; bnx2_init_tx_ring()
5195 txr->tx_bidx_addr = MB_GET_CID_ADDR(cid) + BNX2_L2CTX_TX_HOST_BIDX; bnx2_init_tx_ring()
5196 txr->tx_bseq_addr = MB_GET_CID_ADDR(cid) + BNX2_L2CTX_TX_HOST_BSEQ; bnx2_init_tx_ring()
5198 bnx2_init_tx_context(bp, cid, txr); bnx2_init_tx_ring()
5230 u32 cid, rx_cid_addr, val; bnx2_init_rx_ring() local
5235 cid = RX_CID; bnx2_init_rx_ring()
5237 cid = RX_RSS_CID + ring_num - 1; bnx2_init_rx_ring()
5239 rx_cid_addr = GET_CID_ADDR(cid); bnx2_init_rx_ring()
5244 bnx2_init_rx_context(bp, cid); bnx2_init_rx_ring()
5301 rxr->rx_bidx_addr = MB_GET_CID_ADDR(cid) + BNX2_L2CTX_HOST_BDIDX; bnx2_init_rx_ring()
5302 rxr->rx_bseq_addr = MB_GET_CID_ADDR(cid) + BNX2_L2CTX_HOST_BSEQ; bnx2_init_rx_ring()
5303 rxr->rx_pg_bidx_addr = MB_GET_CID_ADDR(cid) + BNX2_L2CTX_HOST_PG_BDIDX; bnx2_init_rx_ring()
6476 u32 reg, bdidx, cid, valid; bnx2_dump_ftq() local
6529 cid = BNX2_RD(bp, BNX2_TBDC_CID); bnx2_dump_ftq()
6533 i, cid, bdidx & BNX2_TBDC_BDIDX_BDIDX, bnx2_dump_ftq()
H A Dcnic_defs.h80 u32 cid; member in struct:l4_kcq
182 u32 cid; member in struct:l4_kwq_close_req
230 u32 cid; member in struct:l4_kwq_connect_req1
492 u32 cid; member in struct:l4_kwq_reset_req
595 u32 cid; member in struct:l4_kwq_upload
4744 u16 cid; member in struct:iscsi_login_req_hdr_little_endian
4748 u16 cid; member in struct:iscsi_login_req_hdr_little_endian
4784 u16 cid; member in struct:iscsi_logout_req_hdr_little_endian
4788 u16 cid; member in struct:iscsi_logout_req_hdr_little_endian
5316 u32 cid; member in struct:l5cm_pcs_hdr
/linux-4.4.14/drivers/memory/
H A Dtegra20-mc.c134 int idx, cid; tegra20_mc_decode() local
167 cid = (req >> reg[idx].cid_shift) & MC_CLIENT_ID_MASK; tegra20_mc_decode()
168 if (cid < ARRAY_SIZE(tegra20_mc_client)) tegra20_mc_decode()
169 client = tegra20_mc_client[cid]; tegra20_mc_decode()
/linux-4.4.14/include/net/
H A Dvsock_addr.h21 void vsock_addr_init(struct sockaddr_vm *addr, u32 cid, u32 port);
H A Daf_vsock.h110 bool (*dgram_allow)(u32 cid, u32 port);
122 bool (*stream_allow)(u32 cid, u32 port);
/linux-4.4.14/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_context.c167 cmd->body.cid = res->id; vmw_hw_context_destroy()
272 cmd->body.cid = res->id; vmw_context_init()
325 cmd->body.cid = res->id; vmw_gb_context_create()
357 cmd->body.cid = res->id; vmw_gb_context_bind()
408 cmd1->body.cid = res->id; vmw_gb_context_unbind()
413 cmd2->body.cid = res->id; vmw_gb_context_unbind()
454 cmd->body.cid = res->id; vmw_gb_context_destroy()
501 cmd->body.cid = res->id; vmw_dx_context_create()
534 cmd->body.cid = res->id; vmw_dx_context_bind()
632 cmd1->body.cid = res->id; vmw_dx_context_unbind()
637 cmd2->body.cid = res->id; vmw_dx_context_unbind()
678 cmd->body.cid = res->id; vmw_dx_context_destroy()
736 return ttm_ref_object_base_unref(tfile, arg->cid, TTM_REF_USAGE); vmw_context_destroy_ioctl()
807 arg->cid = ctx->base.hash.key; vmw_context_define()
H A Dvmwgfx_fifo.c585 * @cid: The hardware context id used for the query.
590 uint32_t cid) vmw_fifo_emit_dummy_legacy_query()
594 * actually finish all queries for this cid vmw_fifo_emit_dummy_legacy_query()
613 cmd->body.cid = cid; vmw_fifo_emit_dummy_legacy_query()
634 * @cid: The hardware context id used for the query.
639 uint32_t cid) vmw_fifo_emit_dummy_gb_query()
643 * actually finish all queries for this cid vmw_fifo_emit_dummy_gb_query()
662 cmd->body.cid = cid; vmw_fifo_emit_dummy_gb_query()
679 * @cid: The hardware context id used for the query.
693 uint32_t cid) vmw_fifo_emit_dummy_query()
696 return vmw_fifo_emit_dummy_gb_query(dev_priv, cid); vmw_fifo_emit_dummy_query()
698 return vmw_fifo_emit_dummy_legacy_query(dev_priv, cid); vmw_fifo_emit_dummy_query()
589 vmw_fifo_emit_dummy_legacy_query(struct vmw_private *dev_priv, uint32_t cid) vmw_fifo_emit_dummy_legacy_query() argument
638 vmw_fifo_emit_dummy_gb_query(struct vmw_private *dev_priv, uint32_t cid) vmw_fifo_emit_dummy_gb_query() argument
692 vmw_fifo_emit_dummy_query(struct vmw_private *dev_priv, uint32_t cid) vmw_fifo_emit_dummy_query() argument
H A Dvmwgfx_cotable.c184 cmd->body.cid = vcotbl->ctx->id; vmw_cotable_unscrub()
276 cmd0->body.cid = vcotbl->ctx->id; vmw_cotable_scrub()
283 cmd1->body.cid = vcotbl->ctx->id; vmw_cotable_scrub()
362 cmd->body.cid = vcotbl->ctx->id; vmw_cotable_readback()
H A Dvmwgfx_execbuf.c792 cmd->body.cid = ctx_res->id; vmw_rebind_all_dx_query()
913 uint32_t cid; vmw_cmd_cid_check() member in struct:vmw_cid_cmd
918 user_context_converter, &cmd->cid, NULL); vmw_cmd_cid_check()
942 user_context_converter, &cmd->body.cid, vmw_cmd_set_render_target_check()
1443 user_context_converter, &cmd->q.cid, vmw_cmd_begin_gb_query()
1476 gb_cmd.q.cid = cmd->q.cid; vmw_cmd_begin_query()
1484 user_context_converter, &cmd->q.cid, vmw_cmd_begin_query()
1552 gb_cmd.q.cid = cmd->q.cid; vmw_cmd_end_query()
1639 gb_cmd.q.cid = cmd->q.cid; vmw_cmd_wait_query()
1797 user_context_converter, &cmd->state.cid, vmw_cmd_tex_state()
2128 user_context_converter, &cmd->body.cid, vmw_cmd_shader_define()
2175 user_context_converter, &cmd->body.cid, vmw_cmd_shader_destroy()
2228 user_context_converter, &cmd->body.cid, vmw_cmd_set_shader()
2291 user_context_converter, &cmd->body.cid, vmw_cmd_set_shader_const()
2975 if (cmd->body.cid != SVGA3D_INVALID_ID) { vmw_cmd_dx_bind_shader()
2978 &cmd->body.cid, &ctx_node); vmw_cmd_dx_bind_shader()
H A Dvmwgfx_binding.c511 cmd->body.cid = bi->ctx->id; vmw_binding_scrub_shader()
546 cmd->body.cid = bi->ctx->id; vmw_binding_scrub_render_target()
588 cmd->body.c.cid = bi->ctx->id; vmw_binding_scrub_texture()
H A Dvmwgfx_shader.c412 cmd->body.cid = shader->ctx->id; vmw_dx_shader_unscrub()
502 cmd->body.cid = shader->ctx->id; vmw_dx_shader_scrub()
H A Dvmwgfx_drv.h730 uint32_t cid);
H A Dvmwgfx_resource.c1555 cmd->body.cid = dx_query_ctx->id; vmw_query_readback_all()
/linux-4.4.14/net/rxrpc/
H A Dar-connection.c272 conn->cid = htonl(real_conn_id); rxrpc_assign_connection_id()
274 _leave(" [CONNID %x CID %x]", real_conn_id, ntohl(conn->cid)); rxrpc_assign_connection_id()
362 conn->cid = 0; rxrpc_connect_exclusive()
407 call->cid = conn->cid | htonl(chan); rxrpc_connect_exclusive()
539 candidate->cid = 0; rxrpc_connect_call()
596 call->cid = conn->cid | htonl(chan); rxrpc_connect_call()
637 conn_id = ntohl(hdr->cid) & RXRPC_CIDMASK; rxrpc_incoming_connection()
671 candidate->cid = hdr->cid & cpu_to_be32(RXRPC_CIDMASK); rxrpc_incoming_connection()
761 _enter(",{%x,%x}", ntohl(hdr->cid), hdr->flags); rxrpc_find_connection()
765 conn_id = ntohl(hdr->cid) & RXRPC_CIDMASK; rxrpc_find_connection()
H A Dar-connevent.c93 hdr.cid = conn->cid; rxrpc_abort_connection()
385 hdr.cid = sp->hdr.cid; rxrpc_reject_packets()
H A Dar-proc.c78 ntohl(call->conn->cid), rxrpc_call_seq_show()
161 ntohl(conn->cid), rxrpc_connection_seq_show()
H A Dar-call.c68 __be32 cid, rxrpc_call_hashfunc()
80 u32 hcid = ntohl(cid); rxrpc_call_hashfunc()
121 key = rxrpc_call_hashfunc(call->in_clientflag, call->cid, rxrpc_call_hash_add()
152 __be32 cid, rxrpc_find_call_hash()
177 key = rxrpc_call_hashfunc(clientflag, cid, call_id, epoch, rxrpc_find_call_hash()
183 call->cid == cid && hash_for_each_possible_rcu()
434 candidate->cid = hdr->cid; rxrpc_incoming_call()
436 candidate->channel = ntohl(hdr->cid) & RXRPC_CHANNELMASK; rxrpc_incoming_call()
66 rxrpc_call_hashfunc( u8 clientflag, __be32 cid, __be32 call_id, __be32 epoch, __be16 service_id, sa_family_t proto, void *localptr, unsigned int addr_size, const u8 *peer_addr) rxrpc_call_hashfunc() argument
150 rxrpc_find_call_hash( u8 clientflag, __be32 cid, __be32 call_id, __be32 epoch, __be16 service_id, void *localptr, sa_family_t proto, const u8 *peer_addr) rxrpc_find_call_hash() argument
H A Drxkad.c136 tmpbuf.x[1] = conn->cid; rxkad_prime_packet_security()
596 hdr.cid = conn->cid; rxkad_issue_challenge()
790 resp.encrypted.cid = conn->cid; rxkad_respond_to_challenge()
1063 if (response.encrypted.cid != conn->cid) rxkad_verify_response()
H A Dar-ack.c915 hdr.cid = call->cid; rxrpc_process_call()
1330 ntohl(call->conn->cid)); rxrpc_process_call()
1348 _debug("jumpstart %x", ntohl(call->conn->cid)); rxrpc_process_call()
H A Dar-input.c708 ntohl(sp->hdr.cid), rxrpc_data_ready()
744 call = rxrpc_find_call_hash(in_clientflag, sp->hdr.cid, rxrpc_data_ready()
H A Dar-output.c654 sp->hdr.cid = call->cid; rxrpc_send_data()
H A Dar-internal.h288 __be32 cid; /* connection ID */ member in struct:rxrpc_connection
407 __be32 cid; /* connection ID + channel index */ member in struct:rxrpc_call
/linux-4.4.14/drivers/media/usb/pvrusb2/
H A Dpvrusb2-sysfs.c95 pvr2_sysfs_trace("pvr2_sysfs(%p) show_name(cid=%d) is %s", show_name()
117 pvr2_sysfs_trace("pvr2_sysfs(%p) show_type(cid=%d) is %s", show_type()
131 pvr2_sysfs_trace("pvr2_sysfs(%p) show_min(cid=%d) is %ld", show_min()
144 pvr2_sysfs_trace("pvr2_sysfs(%p) show_max(cid=%d) is %ld", show_max()
162 pvr2_sysfs_trace("pvr2_sysfs(%p) show_def(cid=%d) is %.*s (%d)", show_def()
181 pvr2_sysfs_trace("pvr2_sysfs(%p) show_val_norm(cid=%d) is %.*s (%d)", show_val_norm()
200 pvr2_sysfs_trace("pvr2_sysfs(%p) show_val_custom(cid=%d) is %.*s (%d)", show_val_custom()
225 pvr2_sysfs_trace("pvr2_sysfs(%p) show_enum(cid=%d)", show_enum()
250 pvr2_sysfs_trace("pvr2_sysfs(%p) show_bits(cid=%d)", show_bits()
280 pvr2_sysfs_trace("pvr2_sysfs(%p) store_val_norm(cid=%d) \"%.*s\"", store_val_norm()
294 pvr2_sysfs_trace("pvr2_sysfs(%p) store_val_custom(cid=%d) \"%.*s\"", store_val_custom()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_sriov.c614 ramrod->cid = vfq->cid; bnx2x_vf_prep_rx_mode()
1424 cl_id, &q->cid, 1, func_id, bnx2x_vfq_init()
1433 "initialized vf %d's queue object. func id set to %d. cid set to 0x%x\n", bnx2x_vfq_init()
1434 vf->abs_vfid, q->sp_obj.func_id, q->cid); bnx2x_vfq_init()
1565 "VF[%d] Max IGU SBs: %d, base vf cid 0x%x, base cid 0x%x, base cxt %p\n", for_each_vf()
1582 * during VF-ACQUIRE with the proper cl_id and cid. for_each_vf()
1662 static u8 bnx2x_iov_is_vf_cid(struct bnx2x *bp, u16 cid) bnx2x_iov_is_vf_cid() argument
1664 return ((cid >= BNX2X_FIRST_VF_CID) && bnx2x_iov_is_vf_cid()
1665 ((cid - BNX2X_FIRST_VF_CID) < BNX2X_VF_CIDS)); bnx2x_iov_is_vf_cid()
1738 u16 cid = 0xffff; bnx2x_iov_eq_sp_event() local
1743 /* first get the cid - the only events we handle here are cfc-delete bnx2x_iov_eq_sp_event()
1750 cid = SW_CID((__force __le32) bnx2x_iov_eq_sp_event()
1751 elem->message.data.cfc_del_event.cid); bnx2x_iov_eq_sp_event()
1752 DP(BNX2X_MSG_IOV, "checking cfc-del comp cid=%d\n", cid); bnx2x_iov_eq_sp_event()
1758 cid = (elem->message.data.eth_event.echo & bnx2x_iov_eq_sp_event()
1760 DP(BNX2X_MSG_IOV, "checking filtering comp cid=%d\n", cid); bnx2x_iov_eq_sp_event()
1777 /* check if the cid is the VF range */ bnx2x_iov_eq_sp_event()
1778 if (!bnx2x_iov_is_vf_cid(bp, cid)) { bnx2x_iov_eq_sp_event()
1779 DP(BNX2X_MSG_IOV, "cid is outside vf range: %d\n", cid); bnx2x_iov_eq_sp_event()
1784 * 1. vfid on cid reflects the true abs_vfid bnx2x_iov_eq_sp_event()
1787 qidx = cid & ((1 << BNX2X_VF_CID_WND)-1); bnx2x_iov_eq_sp_event()
1788 abs_vfid = (cid >> BNX2X_VF_CID_WND) & (BNX2X_MAX_NUM_OF_VFS-1); bnx2x_iov_eq_sp_event()
1793 BNX2X_ERR("EQ completion for unknown VF, cid %d, abs_vfid %d\n", bnx2x_iov_eq_sp_event()
1794 cid, abs_vfid); bnx2x_iov_eq_sp_event()
1838 * 1. vfid on cid reflects the true abs_vfid bnx2x_vf_by_cid()
1857 * 1. vfid on cid reflects the true abs_vfid bnx2x_iov_set_queue_sp_obj()
1863 BNX2X_ERR("No vf matching cid %d\n", vf_cid); bnx2x_iov_set_queue_sp_obj()
2074 q->cid = BNX2X_FIRST_VF_CID + base_vf_cid + i; for_each_vfq()
2076 DP(BNX2X_MSG_IOV, "VFQ[%d:%d]: index %d, cid 0x%x, cxt %p\n", for_each_vfq()
2077 vf->abs_vfid, i, q->index, q->cid, q->cxt); for_each_vfq()
H A Dbnx2x_cmn.h1066 fp->cid, BP_FUNC(bp), bnx2x_sp(bp, mac_rdata), bnx2x_init_vlan_mac_fp_objs()
1074 fp->cl_id, fp->cid, BP_FUNC(bp), bnx2x_init_vlan_mac_fp_objs()
1128 bnx2x_init_mcast_obj(bp, &bp->mcast_obj, bp->fp->cl_id, bp->fp->cid, bnx2x_init_bp_objs()
1144 bp->fp->cid, BP_FUNC(bp), BP_FUNC(bp), bnx2x_init_bp_objs()
1162 struct bnx2x_fp_txdata *txdata, u32 cid, bnx2x_init_txdata()
1166 txdata->cid = cid; bnx2x_init_txdata()
1172 DP(NETIF_MSG_IFUP, "created tx data cid %d, txq %d\n", bnx2x_init_txdata()
1173 txdata->cid, txdata->txq_index); bnx2x_init_txdata()
1268 * @cid: SW CID of the connection to be configured
1271 u32 cid);
1161 bnx2x_init_txdata(struct bnx2x *bp, struct bnx2x_fp_txdata *txdata, u32 cid, int txq_index, __le16 *tx_cons_sb, struct bnx2x_fastpath *fp) bnx2x_init_txdata() argument
H A Dbnx2x.h268 * (db_msg_sz 1 << 7 * cid + 0x40 DPM offset) it can come up with a valid number
269 * We must avoid coming up with cid 8 for iscsi since according to this method
270 * the designated UIO cid will come out 0 and it has a special handling for that
271 * case which doesn't suit us. Therefore will will cieling to closes cid which
285 /* add offset to rounded-up cid to get a value which could be used with UIO */
287 /* but wait - avoid UIO special case for cid 0 */
290 /* Properly DPM aligned CID dajusted to cid 0 secal case */
293 /* how many cids were wasted - need this value for cid allocation */
317 #define CID_TO_FP(cid, bp) ((cid) % BNX2X_NUM_NON_CNIC_QUEUES(bp))
318 #define CID_COS_TO_TX_ONLY_CID(cid, cos, bp) \
319 (cid + cos * BNX2X_NUM_NON_CNIC_QUEUES(bp))
509 u32 cid; member in struct:bnx2x_fp_txdata
578 u32 cid; member in struct:bnx2x_fastpath
876 #define DOORBELL(bp, cid, val) \
878 writel((u32)(val), bp->doorbells + (bp->db_size * (cid))); \
1151 * cid must not exceed the size of the VF doorbell
1177 * L2 queue is supported. The cid for the FCoE L2 queue is always X.
2154 int bnx2x_sp_post(struct bnx2x *bp, int command, int cid,
H A Dbnx2x_sp.c864 * @cid: connection id
872 static inline void bnx2x_vlan_mac_set_rdata_hdr_e2(u32 cid, int type, bnx2x_vlan_mac_set_rdata_hdr_e2() argument
875 hdr->echo = cpu_to_le32((cid & BNX2X_SWCID_MASK) | bnx2x_vlan_mac_set_rdata_hdr_e2()
962 bnx2x_vlan_mac_set_rdata_hdr_e2(raw->cid, raw->state, &data->header, bnx2x_set_one_mac_e2()
986 hdr->echo = cpu_to_le32((r->cid & BNX2X_SWCID_MASK) | bnx2x_vlan_mac_set_rdata_hdr_e1x()
1111 bnx2x_vlan_mac_set_rdata_hdr_e2(raw->cid, raw->state, &data->header, bnx2x_set_one_vlan_e2()
1168 bnx2x_vlan_mac_set_rdata_hdr_e2(raw->cid, raw->state, &data->header, bnx2x_set_one_vlan_mac_e2()
1843 rc = bnx2x_sp_post(bp, o->ramrod_cmd, r->cid,
2095 u32 cid, u8 func_id, void *rdata, dma_addr_t rdata_mapping, int state, bnx2x_init_raw_obj()
2099 raw->cid = cid; bnx2x_init_raw_obj()
2113 u8 cl_id, u32 cid, u8 func_id, void *rdata, dma_addr_t rdata_mapping, bnx2x_init_vlan_mac_common()
2131 bnx2x_init_raw_obj(&o->raw, cl_id, cid, func_id, rdata, rdata_mapping, bnx2x_init_vlan_mac_common()
2137 u8 cl_id, u32 cid, u8 func_id, void *rdata, bnx2x_init_mac_obj()
2144 bnx2x_init_vlan_mac_common(mac_obj, cl_id, cid, func_id, rdata, bnx2x_init_mac_obj()
2191 u8 cl_id, u32 cid, u8 func_id, void *rdata, bnx2x_init_vlan_obj()
2198 bnx2x_init_vlan_mac_common(vlan_obj, cl_id, cid, func_id, rdata, bnx2x_init_vlan_obj()
2232 u8 cl_id, u32 cid, u8 func_id, void *rdata, bnx2x_init_vlan_mac_obj()
2241 bnx2x_init_vlan_mac_common(vlan_mac_obj, cl_id, cid, func_id, rdata, bnx2x_init_vlan_mac_obj()
2387 static inline void bnx2x_rx_mode_set_rdata_hdr_e2(u32 cid, bnx2x_rx_mode_set_rdata_hdr_e2() argument
2391 hdr->echo = cpu_to_le32(cid); bnx2x_rx_mode_set_rdata_hdr_e2()
2521 bnx2x_rx_mode_set_rdata_hdr_e2(p->cid, &data->header, rule_idx); bnx2x_set_rx_mode_e2()
2535 rc = bnx2x_sp_post(bp, RAMROD_CMD_ID_ETH_FILTER_RULES, p->cid, bnx2x_set_rx_mode_e2()
3134 data->header.echo = cpu_to_le32((r->cid & BNX2X_SWCID_MASK) | bnx2x_mcast_set_rdata_hdr_e2()
3241 raw->cid, U64_HI(raw->rdata_mapping), bnx2x_mcast_setup_e2()
3487 data->hdr.echo = cpu_to_le32((r->cid & BNX2X_SWCID_MASK) | bnx2x_mcast_set_rdata_hdr_e1()
3724 rc = bnx2x_sp_post(bp, RAMROD_CMD_ID_ETH_SET_MAC, raw->cid, bnx2x_mcast_setup_e1()
4279 data->echo = cpu_to_le32((r->cid & BNX2X_SWCID_MASK) | bnx2x_setup_rss()
4364 rc = bnx2x_sp_post(bp, RAMROD_CMD_ID_ETH_RSS_UPDATE, r->cid, bnx2x_setup_rss()
4411 u8 cl_id, u32 cid, u8 func_id, u8 engine_id, bnx2x_init_rss_config_obj()
4416 bnx2x_init_raw_obj(&rss_obj->raw, cl_id, cid, func_id, rdata, bnx2x_init_rss_config_obj()
4540 DP(BNX2X_MSG_SP, "primary cid %d: num tx-only cons %d\n", bnx2x_queue_comp_cmd()
4766 DP(BNX2X_MSG_SP, "cid %d, tx bd page lo %x hi %x", bnx2x_q_fill_setup_tx_only()
4815 DP(BNX2X_MSG_SP, "setting context validation. cid %d, cos %d\n", bnx2x_q_init()
4911 DP(BNX2X_MSG_SP, "sending tx-only ramrod: cid %d, client-id %d, sp-client id %d, cos %d\n", bnx2x_q_send_setup_tx_only()
2094 bnx2x_init_raw_obj(struct bnx2x_raw_obj *raw, u8 cl_id, u32 cid, u8 func_id, void *rdata, dma_addr_t rdata_mapping, int state, unsigned long *pstate, bnx2x_obj_type type) bnx2x_init_raw_obj() argument
2112 bnx2x_init_vlan_mac_common(struct bnx2x_vlan_mac_obj *o, u8 cl_id, u32 cid, u8 func_id, void *rdata, dma_addr_t rdata_mapping, int state, unsigned long *pstate, bnx2x_obj_type type, struct bnx2x_credit_pool_obj *macs_pool, struct bnx2x_credit_pool_obj *vlans_pool) bnx2x_init_vlan_mac_common() argument
2135 bnx2x_init_mac_obj(struct bnx2x *bp, struct bnx2x_vlan_mac_obj *mac_obj, u8 cl_id, u32 cid, u8 func_id, void *rdata, dma_addr_t rdata_mapping, int state, unsigned long *pstate, bnx2x_obj_type type, struct bnx2x_credit_pool_obj *macs_pool) bnx2x_init_mac_obj() argument
2189 bnx2x_init_vlan_obj(struct bnx2x *bp, struct bnx2x_vlan_mac_obj *vlan_obj, u8 cl_id, u32 cid, u8 func_id, void *rdata, dma_addr_t rdata_mapping, int state, unsigned long *pstate, bnx2x_obj_type type, struct bnx2x_credit_pool_obj *vlans_pool) bnx2x_init_vlan_obj() argument
2230 bnx2x_init_vlan_mac_obj(struct bnx2x *bp, struct bnx2x_vlan_mac_obj *vlan_mac_obj, u8 cl_id, u32 cid, u8 func_id, void *rdata, dma_addr_t rdata_mapping, int state, unsigned long *pstate, bnx2x_obj_type type, struct bnx2x_credit_pool_obj *macs_pool, struct bnx2x_credit_pool_obj *vlans_pool) bnx2x_init_vlan_mac_obj() argument
4409 bnx2x_init_rss_config_obj(struct bnx2x *bp, struct bnx2x_rss_config_obj *rss_obj, u8 cl_id, u32 cid, u8 func_id, u8 engine_id, void *rdata, dma_addr_t rdata_mapping, int state, unsigned long *pstate, bnx2x_obj_type type) bnx2x_init_rss_config_obj() argument
H A Dbnx2x_main.c1782 static void bnx2x_cnic_cfc_comp(struct bnx2x *bp, int cid, u8 err);
1806 int cid = SW_CID(rr_cqe->ramrod_cqe.conn_and_cmd_data); bnx2x_sp_event() local
1812 "fp %d cid %d got ramrod #%d state is %x type is %d\n", bnx2x_sp_event()
1813 fp->index, cid, command, bp->state, bnx2x_sp_event()
1816 /* If cid is within VF range, replace the slowpath object with the bnx2x_sp_event()
1819 if (cid >= BNX2X_FIRST_VF_CID && bnx2x_sp_event()
1820 cid < BNX2X_FIRST_VF_CID + BNX2X_VF_CIDS) bnx2x_sp_event()
1821 bnx2x_iov_set_queue_sp_obj(bp, cid, &q_obj); bnx2x_sp_event()
1825 DP(BNX2X_MSG_SP, "got UPDATE ramrod. CID %d\n", cid); bnx2x_sp_event()
1830 DP(BNX2X_MSG_SP, "got MULTI[%d] setup ramrod\n", cid); bnx2x_sp_event()
1835 DP(BNX2X_MSG_SP, "got MULTI[%d] tx-only setup ramrod\n", cid); bnx2x_sp_event()
1840 DP(BNX2X_MSG_SP, "got MULTI[%d] halt ramrod\n", cid); bnx2x_sp_event()
1845 DP(BNX2X_MSG_SP, "got MULTI[%d] terminate ramrod\n", cid); bnx2x_sp_event()
1850 DP(BNX2X_MSG_SP, "got MULTI[%d] empty ramrod\n", cid); bnx2x_sp_event()
1855 DP(BNX2X_MSG_SP, "got tpa update ramrod CID=%d\n", cid); bnx2x_sp_event()
3846 * @cid: SW CID the command is related to
3855 int bnx2x_sp_post(struct bnx2x *bp, int command, int cid, bnx2x_sp_post() argument
3890 HW_CID(bp, cid)); bnx2x_sp_post()
3925 HW_CID(bp, cid), data_hi, data_lo, type, bnx2x_sp_post()
5231 static int bnx2x_cnic_handle_cfc_del(struct bnx2x *bp, u32 cid, bnx2x_cnic_handle_cfc_del() argument
5237 (cid < bp->cnic_eth_dev.starting_cid && bnx2x_cnic_handle_cfc_del()
5238 cid != bp->cnic_eth_dev.iscsi_l2_cid)) bnx2x_cnic_handle_cfc_del()
5241 DP(BNX2X_MSG_SP, "got delete ramrod for CNIC CID %d\n", cid); bnx2x_cnic_handle_cfc_del()
5246 cid); bnx2x_cnic_handle_cfc_del()
5249 bnx2x_cnic_cfc_comp(bp, cid, err); bnx2x_cnic_handle_cfc_del()
5283 u32 cid = elem->message.data.eth_event.echo & BNX2X_SWCID_MASK; bnx2x_handle_classification_eqe() local
5293 if (CNIC_LOADED(bp) && (cid == BNX2X_ISCSI_ETH_CID(bp))) bnx2x_handle_classification_eqe()
5296 vlan_mac_obj = &bp->sp_objs[cid].mac_obj; bnx2x_handle_classification_eqe()
5301 vlan_mac_obj = &bp->sp_objs[cid].vlan_obj; bnx2x_handle_classification_eqe()
5427 struct bnx2x *bp, u32 cid) bnx2x_cid_to_q_obj()
5429 DP(BNX2X_MSG_SP, "retrieving fp from cid %d\n", cid); bnx2x_cid_to_q_obj()
5431 if (CNIC_LOADED(bp) && (cid == BNX2X_FCOE_ETH_CID(bp))) bnx2x_cid_to_q_obj()
5434 return &bp->sp_objs[CID_TO_FP(cid, bp)].q_obj; bnx2x_cid_to_q_obj()
5442 u32 cid; bnx2x_eq_int() local
5482 cid = SW_CID((__force __le32) bnx2x_eq_int()
5483 elem->message.data.cfc_del_event.cid); bnx2x_eq_int()
5501 /* handle according to cid range */ bnx2x_eq_int()
5507 "got delete ramrod for MULTI[%d]\n", cid); bnx2x_eq_int()
5510 !bnx2x_cnic_handle_cfc_del(bp, cid, elem)) bnx2x_eq_int()
5513 q_obj = bnx2x_cid_to_q_obj(bp, cid); bnx2x_eq_int()
5599 cid = elem->message.data.eth_event.echo & bnx2x_eq_int()
5602 cid); bnx2x_eq_int()
6151 ramrod_param.cid = 0; bnx2x_set_q_rx_mode()
6345 fp->cid = fp_idx; bnx2x_init_eth_fp()
6367 CID_COS_TO_TX_ONLY_CID(fp->cid, cos, bp), for_each_cos_in_tx_queue()
6370 cids[cos] = fp->txdata_ptr[cos]->cid; for_each_cos_in_tx_queue()
6450 bnx2x_fcoe(bp, cid) = BNX2X_FCOE_ETH_CID(bp); bnx2x_init_fcoe_fp()
6455 fp->cid, FCOE_TXQ_IDX(bp), BNX2X_FCOE_L2_TX_INDEX, bnx2x_init_fcoe_fp()
6474 &fp->cid, 1, BP_FUNC(bp), bnx2x_sp(bp, q_rdata), bnx2x_init_fcoe_fp()
7525 /* QM cid (connection) count */ bnx2x_init_hw_port()
8623 /* 4 bytes for each cid */ bnx2x_ilt_set_info()
8731 cxt_index = fp->txdata_ptr[cos]->cid / ILT_PAGE_CIDS; bnx2x_pf_q_prep_init()
8732 cxt_offset = fp->txdata_ptr[cos]->cid - (cxt_index * bnx2x_pf_q_prep_init()
8752 /* choose the index of the cid to send the slow path on */ bnx2x_setup_tx_only()
8762 "preparing to send tx-only ramrod for connection: cos %d, primary cid %d, cid %d, client id %d, sp-client id %d, flags %lx\n", bnx2x_setup_tx_only()
8873 DP(NETIF_MSG_IFDOWN, "stopping queue %d cid %d\n", index, fp->cid); bnx2x_stop_queue()
14567 static void bnx2x_cnic_cfc_comp(struct bnx2x *bp, int cid, u8 err) bnx2x_cnic_cfc_comp() argument
14573 ctl.data.comp.cid = cid; bnx2x_cnic_cfc_comp()
15023 "page_size %d, tbl_offset %d, tbl_lines %d, starting cid %d\n", bnx2x_cnic_probe()
5426 bnx2x_cid_to_q_obj( struct bnx2x *bp, u32 cid) bnx2x_cid_to_q_obj() argument
H A Dbnx2x_sp.h81 u32 cid; member in struct:bnx2x_raw_obj
478 u32 cid; member in struct:bnx2x_rx_mode_ramrod_params
1404 u8 cl_id, u32 cid, u8 func_id, void *rdata,
1411 u8 cl_id, u32 cid, u8 func_id, void *rdata,
1418 u8 cl_id, u32 cid, u8 func_id, void *rdata,
1500 u8 cl_id, u32 cid, u8 func_id, u8 engine_id,
H A Dbnx2x_vfpf.c550 cl_id, q->cid, func_id, bnx2x_leading_vfq_init()
559 cl_id, q->cid, func_id, bnx2x_leading_vfq_init()
568 cl_id, q->cid, func_id, bnx2x_leading_vfq_init()
578 q->cid, func_id, func_id, bnx2x_leading_vfq_init()
586 bnx2x_init_rss_config_obj(bp, &vf->rss_conf_obj, cl_id, q->cid, bnx2x_leading_vfq_init()
H A Dbnx2x_cmn.c3823 "transmitting packet cid %d fp index %d txdata_index %d tx_data ptr %p fp pointer %p\n", bnx2x_start_xmit()
3824 txdata->cid, fp_index, txdata_index, txdata, fp); */ bnx2x_start_xmit()
4206 DOORBELL(bp, txdata->cid, txdata->tx_db.raw); bnx2x_start_xmit()
4423 "freeing tx memory of fp %d cos %d cid %d\n", for_each_cos_in_tx_queue()
4424 fp_index, cos, txdata->cid); for_each_cos_in_tx_queue()
5082 u32 cid) bnx2x_set_ctx_validation()
5091 CDU_RSRVD_VALUE_TYPE_A(HW_CID(bp, cid), bnx2x_set_ctx_validation()
5095 CDU_RSRVD_VALUE_TYPE_A(HW_CID(bp, cid), bnx2x_set_ctx_validation()
5081 bnx2x_set_ctx_validation(struct bnx2x *bp, struct eth_context *cxt, u32 cid) bnx2x_set_ctx_validation() argument
H A Dbnx2x_sriov.h89 u32 cid; member in struct:bnx2x_vf_queue
H A Dbnx2x_ethtool.c2565 DOORBELL(bp, txdata->cid, txdata->tx_db.raw); bnx2x_run_loopback()
H A Dbnx2x_hsi.h4896 u32 cid; member in struct:cfc_del_event_data
H A Dbnx2x_reg.h4696 /* [RW 18] Linear0 Max active cid (in banks of 32 entries). */
/linux-4.4.14/drivers/acpi/acpica/
H A Devrgnini.c353 struct acpi_pnp_device_id_list *cid; acpi_ev_is_pci_root_bridge() local
373 status = acpi_ut_execute_CID(node, &cid); acpi_ev_is_pci_root_bridge()
380 for (i = 0; i < cid->count; i++) { acpi_ev_is_pci_root_bridge()
381 if (acpi_ut_is_pci_root_bridge(cid->ids[i].string)) { acpi_ev_is_pci_root_bridge()
382 ACPI_FREE(cid); acpi_ev_is_pci_root_bridge()
387 ACPI_FREE(cid); acpi_ev_is_pci_root_bridge()
H A Dnsxfeval.c657 struct acpi_pnp_device_id_list *cid; acpi_ns_get_device_callback() local
707 status = acpi_ut_execute_CID(node, &cid); acpi_ns_get_device_callback()
717 for (i = 0; i < cid->count; i++) { acpi_ns_get_device_callback()
718 if (strcmp(cid->ids[i].string, info->hid) == 0) { acpi_ns_get_device_callback()
727 ACPI_FREE(cid); acpi_ns_get_device_callback()
/linux-4.4.14/include/linux/mmc/
H A Dcard.h293 struct mmc_cid cid; /* card identification */ member in struct:mmc_card
404 cid_rev(card->cid.hwrev, \
405 card->cid.fwrev, \
406 card->cid.year, \
407 card->cid.month)
514 #define mmc_card_name(c) ((c)->cid.prod_name)
/linux-4.4.14/arch/s390/numa/
H A Dmode_emu.c398 int nid, cid; print_node_to_core_map() local
405 for (cid = 0; cid < ARRAY_SIZE(emu_cores->to_node_id); cid++) { print_node_to_core_map()
406 if (emu_cores->to_node_id[cid] == nid) print_node_to_core_map()
407 printk(KERN_CONT "%d ", cid); print_node_to_core_map()
/linux-4.4.14/include/media/
H A Dv4l2-flash-led-class.h28 * @cid: contains v4l2 flash control id if the config
33 u32 cid; member in struct:v4l2_flash_ctrl_data
/linux-4.4.14/arch/sparc/include/asm/
H A Dsbi.h14 /* 0x0000 */ u32 cid; /* Component ID */ member in struct:sbi_regs
/linux-4.4.14/drivers/acpi/
H A Ddevice_sysfs.c130 * create_pnp_modalias - Create hid/cid(s) string for modalias and uevent
135 * Creates hid/cid(s) string needed for modalias and uevent
136 * e.g. on a device with hid:IBM0001 and cid:ACPI0001 you get:
282 * hid:IBM0001 and cid:ACPI0001 you get: "acpi:IBM0001:ACPI0001".
327 * hid:IBM0001 and cid:ACPI0001 you get: "acpi:IBM0001:ACPI0001".
/linux-4.4.14/drivers/bcma/
H A Dmain.c623 const struct bcma_device_id *cid = &core->id; bcma_bus_match() local
627 if ((did->manuf == cid->manuf || did->manuf == BCMA_ANY_MANUF) && bcma_bus_match()
628 (did->id == cid->id || did->id == BCMA_ANY_ID) && bcma_bus_match()
629 (did->rev == cid->rev || did->rev == BCMA_ANY_REV) && bcma_bus_match()
630 (did->class == cid->class || did->class == BCMA_ANY_CLASS)) bcma_bus_match()
/linux-4.4.14/drivers/scsi/bnx2i/
H A Dbnx2i_iscsi.c234 * update iscsi cid table entry with connection pointer. This enables
254 * bnx2i_get_conn_from_id - maps an iscsi cid to corresponding conn ptr
262 printk(KERN_ERR "bnx2i: ERROR - missing conn<->cid table\n"); bnx2i_get_conn_from_id()
266 printk(KERN_ERR "bnx2i: wrong cid #%d\n", iscsi_cid); bnx2i_get_conn_from_id()
318 * bnx2i_setup_free_cid_que - sets up free iscsi cid queue
321 * allocates memory for iscsi cid queue & 'cid - conn ptr' mapping table,
691 printk(KERN_ERR "l5 cid %d not found\n", iscsi_cid); bnx2i_find_ep_in_ofld_list()
719 printk(KERN_ERR "l5 cid %d not found\n", iscsi_cid); bnx2i_find_ep_in_destroy_list()
1353 * @cid: iscsi cid as per rfc (not NX2's CID terminology)
1358 bnx2i_conn_create(struct iscsi_cls_session *cls_session, uint32_t cid) bnx2i_conn_create() argument
1367 cid); bnx2i_conn_create()
1819 "iscsi cid\n", hba->netdev->name); bnx2i_ep_connect()
1846 printk(KERN_ALERT "bnx2i (%s): iscsi cid %d is busy\n", bnx2i_ep_connect()
1857 /* Wait for CNIC hardware to setup conn context and return 'cid' */ bnx2i_ep_connect()
1869 printk(KERN_ALERT "bnx2i (%s): iscsi cid %d is busy\n", bnx2i_ep_connect()
H A Dbnx2i_hwi.c25 * bnx2i_get_cid_num - get cid from ep
32 u32 cid; bnx2i_get_cid_num() local
35 cid = ep->ep_cid; bnx2i_get_cid_num()
37 cid = GET_CID_NUM(ep->ep_cid); bnx2i_get_cid_num()
38 return cid; bnx2i_get_cid_num()
355 login_wqe->cid = login_hdr->cid; bnx2i_send_iscsi_login()
624 logout_wqe->cid = 0; bnx2i_send_iscsi_logout()
2118 printk(KERN_ALERT "cid #%x not valid\n", iscsi_cid); bnx2i_fastpath_notification()
2122 printk(KERN_ALERT "cid #%x - ep not bound\n", iscsi_cid); bnx2i_fastpath_notification()
2151 printk(KERN_ALERT "conn_update: cid %x not valid\n", iscsi_cid); bnx2i_process_update_conn_cmpl()
2155 printk(KERN_ALERT "cid %x does not have ep bound\n", iscsi_cid); bnx2i_process_update_conn_cmpl()
2160 printk(KERN_ALERT "request failed cid %x\n", iscsi_cid); bnx2i_process_update_conn_cmpl()
2202 printk(KERN_ALERT "bnx2i - cid 0x%x not valid\n", iscsi_cid); bnx2i_process_tcp_error()
2206 printk(KERN_ALERT "bnx2i - cid 0x%x had TCP errors, error code 0x%x\n", bnx2i_process_tcp_error()
2240 printk(KERN_ALERT "bnx2i - cid 0x%x not valid\n", iscsi_cid); bnx2i_process_iscsi_error()
2390 "iscsi_cid %x cid %x\n", bnx2i_process_iscsi_error()
H A D57xx_iscsi_hsi.h839 u16 cid; member in struct:bnx2i_login_request
843 u16 cid; member in struct:bnx2i_login_request
1017 u16 cid; member in struct:bnx2i_logout_request
1021 u16 cid; member in struct:bnx2i_logout_request
H A Dbnx2i.h310 * struct iscsi_cid_queue - Per adapter iscsi cid queue
318 * @conn_cid_tbl: iscsi cid to conn structure mapping table
363 * @cid_que: iscsi cid queue
742 * *iscsi cid*
/linux-4.4.14/drivers/amba/
H A Dbus.c378 u32 pid, cid; amba_device_add() local
381 * Read pid and cid based on size of resource amba_device_add()
387 for (cid = 0, i = 0; i < 4; i++) amba_device_add()
388 cid |= (readl(tmp + size - 0x10 + 4 * i) & 255) << amba_device_add()
393 if (cid == AMBA_CID || cid == CORESIGHT_CID) amba_device_add()
/linux-4.4.14/arch/powerpc/include/asm/
H A Dps3av.h359 u32 cid; /* command id */ member in struct:ps3av_send_hdr
365 u32 cid; member in struct:ps3av_reply_hdr
587 u32 cid; /* command id */ member in struct:ps3av_pkt_video_pitch
641 u32 cid; /* command id */ member in struct:ps3av_pkt_audio_spdif_bit
652 u32 cid; /* command id */ member in struct:ps3av_pkt_audio_ctrl
697 #define PS3AV_STATUS_UNSUPPORTED_COMMAND 0x000c /* unsupported cid */
/linux-4.4.14/drivers/input/touchscreen/
H A Dcyttsp_core.h72 u8 cid[3]; member in struct:cyttsp_sysinfo_data
/linux-4.4.14/net/bluetooth/
H A Dl2cap_core.c91 u16 cid) __l2cap_get_chan_by_dcid()
96 if (c->dcid == cid) __l2cap_get_chan_by_dcid()
103 u16 cid) __l2cap_get_chan_by_scid()
108 if (c->scid == cid) __l2cap_get_chan_by_scid()
117 u16 cid) l2cap_get_chan_by_scid()
122 c = __l2cap_get_chan_by_scid(conn, cid); l2cap_get_chan_by_scid()
134 u16 cid) l2cap_get_chan_by_dcid()
139 c = __l2cap_get_chan_by_dcid(conn, cid); l2cap_get_chan_by_dcid()
235 u16 cid, dyn_end; l2cap_alloc_cid() local
242 for (cid = L2CAP_CID_DYN_START; cid <= dyn_end; cid++) { l2cap_alloc_cid()
243 if (!__l2cap_get_chan_by_scid(conn, cid)) l2cap_alloc_cid()
244 return cid; l2cap_alloc_cid()
1042 lh->cid = cpu_to_le16(chan->dcid); l2cap_create_sframe_pdu()
2175 lh->cid = cpu_to_le16(chan->dcid); l2cap_create_connless_pdu()
2206 lh->cid = cpu_to_le16(chan->dcid); l2cap_create_basic_pdu()
2248 lh->cid = cpu_to_le16(chan->dcid); l2cap_create_iframe_pdu()
2366 lh->cid = cpu_to_le16(chan->dcid); l2cap_create_le_flowctl_pdu()
2894 lh->cid = cpu_to_le16(L2CAP_CID_LE_SIGNALING); l2cap_build_cmd()
2896 lh->cid = cpu_to_le16(L2CAP_CID_SIGNALING); l2cap_build_cmd()
5533 u16 cid, credits, max_credits; l2cap_le_credits() local
5539 cid = __le16_to_cpu(pkt->cid); l2cap_le_credits()
5542 BT_DBG("cid 0x%4.4x credits 0x%4.4x", cid, credits); l2cap_le_credits()
5544 chan = l2cap_get_chan_by_dcid(conn, cid); l2cap_le_credits()
6682 pkt.cid = cpu_to_le16(chan->scid); l2cap_chan_le_send_credits()
6780 static void l2cap_data_channel(struct l2cap_conn *conn, u16 cid, l2cap_data_channel() argument
6785 chan = l2cap_get_chan_by_scid(conn, cid); l2cap_data_channel()
6787 if (cid == L2CAP_CID_A2MP) { l2cap_data_channel()
6796 BT_DBG("unknown cid 0x%4.4x", cid); l2cap_data_channel()
6895 u16 cid, len; l2cap_recv_frame() local
6905 cid = __le16_to_cpu(lh->cid); l2cap_recv_frame()
6923 BT_DBG("len %d, cid 0x%4.4x", len, cid); l2cap_recv_frame()
6925 switch (cid) { l2cap_recv_frame()
6941 l2cap_data_channel(conn, cid, skb); l2cap_recv_frame()
7036 int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid, l2cap_chan_connect() argument
7053 if (!is_valid_psm(__le16_to_cpu(psm), dst_type) && !cid && l2cap_chan_connect()
7064 if (chan->chan_type == L2CAP_CHAN_FIXED && !cid) { l2cap_chan_connect()
7113 chan->dcid = cid; l2cap_chan_connect()
7154 if (cid && __l2cap_get_chan_by_dcid(conn, cid)) { l2cap_chan_connect()
90 __l2cap_get_chan_by_dcid(struct l2cap_conn *conn, u16 cid) __l2cap_get_chan_by_dcid() argument
102 __l2cap_get_chan_by_scid(struct l2cap_conn *conn, u16 cid) __l2cap_get_chan_by_scid() argument
116 l2cap_get_chan_by_scid(struct l2cap_conn *conn, u16 cid) l2cap_get_chan_by_scid() argument
133 l2cap_get_chan_by_dcid(struct l2cap_conn *conn, u16 cid) l2cap_get_chan_by_dcid() argument
H A Dsmp.c3126 static struct l2cap_chan *smp_add_cid(struct hci_dev *hdev, u16 cid) smp_add_cid() argument
3133 if (cid == L2CAP_CID_SMP_BREDR) { smp_add_cid()
3175 l2cap_add_scid(chan, cid); smp_add_cid()
3179 if (cid == L2CAP_CID_SMP) { smp_add_cid()
/linux-4.4.14/include/rxrpc/
H A Dpacket.h28 __be32 cid; /* connection and channel ID */ member in struct:rxrpc_header
158 __be32 cid; /* parent connection ID */ member in struct:rxkad_response::__anon13678
/linux-4.4.14/arch/x86/kvm/
H A Dlapic.c145 apic_logical_id(struct kvm_apic_map *map, u32 dest_id, u16 *cid, u16 *lid) apic_logical_id() argument
154 *cid = dest_id >> lid_bits; apic_logical_id()
173 u16 cid, lid; kvm_for_each_vcpu() local
198 apic_logical_id(new, ldr, &cid, &lid); kvm_for_each_vcpu()
200 if (lid && cid < ARRAY_SIZE(new->logical_map)) kvm_for_each_vcpu()
201 new->logical_map[cid][ffs(lid) - 1] = apic; kvm_for_each_vcpu()
719 u16 cid; kvm_irq_delivery_to_apic_fast() local
726 apic_logical_id(map, irq->dest_id, &cid, (u16 *)&bitmap); kvm_irq_delivery_to_apic_fast()
728 if (cid >= ARRAY_SIZE(map->logical_map)) kvm_irq_delivery_to_apic_fast()
731 dst = map->logical_map[cid]; kvm_irq_delivery_to_apic_fast()
789 u16 cid; kvm_intr_is_single_vcpu_fast() local
796 apic_logical_id(map, irq->dest_id, &cid, (u16 *)&bitmap); kvm_intr_is_single_vcpu_fast()
798 if (cid >= ARRAY_SIZE(map->logical_map)) kvm_intr_is_single_vcpu_fast()
802 dst = map->logical_map[cid][i]; kvm_intr_is_single_vcpu_fast()
/linux-4.4.14/drivers/scsi/
H A Dscsi_transport_iscsi.c1645 * Returns the matching connection to a given sid / cid tuple
1647 static struct iscsi_cls_conn *iscsi_conn_lookup(uint32_t sid, uint32_t cid) iscsi_conn_lookup() argument
1654 if ((conn->cid == cid) && (iscsi_conn_get_sid(conn) == sid)) { iscsi_conn_lookup()
2241 * @cid: connection id
2244 * is child of the session so cid must be unique for all connections
2247 * Since we do not support MCS, cid will normally be zero. In some cases
2249 * in which case there could be two connection structs and cid would be
2253 iscsi_create_conn(struct iscsi_cls_session *session, int dd_size, uint32_t cid) iscsi_create_conn() argument
2269 conn->cid = cid; iscsi_create_conn()
2275 dev_set_name(&conn->dev, "connection%d:%u", session->sid, cid); iscsi_create_conn()
2377 ev->r.recv_req.cid = conn->cid; iscsi_recv_pdu()
2446 ev->r.connerror.cid = conn->cid; iscsi_conn_error_event()
2481 ev->r.conn_login.cid = conn->cid; iscsi_conn_login_event()
2592 conn = iscsi_conn_lookup(ev->u.get_stats.sid, ev->u.get_stats.cid); iscsi_if_get_stats()
2612 evstat->u.get_stats.cid = iscsi_if_get_stats()
2613 ev->u.get_stats.cid; iscsi_if_get_stats()
2744 conn = transport->create_conn(session, ev->u.c_conn.cid); iscsi_if_create_conn()
2752 ev->r.c_conn_ret.cid = conn->cid; iscsi_if_create_conn()
2763 conn = iscsi_conn_lookup(ev->u.d_conn.sid, ev->u.d_conn.cid); iscsi_if_destroy_conn()
2783 conn = iscsi_conn_lookup(ev->u.set_param.sid, ev->u.set_param.cid); iscsi_set_param()
3561 conn = iscsi_conn_lookup(ev->u.b_conn.sid, ev->u.b_conn.cid); iscsi_if_recv_msg()
3593 conn = iscsi_conn_lookup(ev->u.start_conn.sid, ev->u.start_conn.cid); iscsi_if_recv_msg()
3600 conn = iscsi_conn_lookup(ev->u.stop_conn.sid, ev->u.stop_conn.cid); iscsi_if_recv_msg()
3607 conn = iscsi_conn_lookup(ev->u.send_pdu.sid, ev->u.send_pdu.cid); iscsi_if_recv_msg()
H A Dlibiscsi.c464 ISCSI_DBG_SESSION(session, "iscsi prep [%s cid %d sc %p cdb 0x%x " iscsi_prep_scsi_cmd_pdu()
1172 ISCSI_DBG_SESSION(session, "[op 0x%x cid %d itt 0x%x len %d]\n", __iscsi_complete_pdu()
2870 * @conn_idx: cid
H A Dlibiscsi_tcp.c666 /* verify itt (itt encoding: age+cid+itt) */ iscsi_tcp_hdr_dissect()
/linux-4.4.14/drivers/soc/qcom/
H A Dsmd.c326 * @cid: channel index
332 __le32 cid; member in struct:qcom_smd_alloc_entry
1108 u32 eflags, cid; qcom_discover_channels() local
1134 cid = le32_to_cpu(entry->cid); qcom_discover_channels()
1135 info_id = smem_items[tbl].info_base_id + cid; qcom_discover_channels()
1136 fifo_id = smem_items[tbl].fifo_base_id + cid; qcom_discover_channels()
/linux-4.4.14/tools/thermal/tmon/
H A Dsysfs.c207 struct tz_info *tzi, int tz_id, int cid) find_tzone_cdev()
216 syslog(LOG_DEBUG, "TZ%d: cdev: %s cid %d\n", tz_id, nl->d_name, find_tzone_cdev()
217 cid); find_tzone_cdev()
206 find_tzone_cdev(struct dirent *nl, char *tz_name, struct tz_info *tzi, int tz_id, int cid) find_tzone_cdev() argument
/linux-4.4.14/drivers/media/dvb-core/
H A Ddvb_filter.h138 u8 cid; member in struct:ipack
/linux-4.4.14/include/target/iscsi/
H A Discsi_target_core.h322 u16 cid; member in struct:iscsi_ooo_cmdsn
519 u16 cid; member in struct:iscsi_conn
606 u16 cid; member in struct:iscsi_conn_recovery
700 u16 cid; member in struct:iscsi_login
/linux-4.4.14/sound/isa/cs423x/
H A Dcs4236.c560 char cid[PNP_ID_LEN]; snd_cs423x_pnpbios_detect() local
572 strcpy(cid, pdev->id[0].id); snd_cs423x_pnpbios_detect()
573 cid[5] = '1'; snd_cs423x_pnpbios_detect()
576 if (!strcmp(cdev->id[0].id, cid)) snd_cs423x_pnpbios_detect()
/linux-4.4.14/fs/cifs/
H A Dcifsacl.c200 id_to_sid(unsigned int cid, uint sidtype, struct cifs_sid *ssid) id_to_sid() argument
210 sidtype == SIDOWNER ? 'o' : 'g', cid); id_to_sid()
219 cifs_dbg(FYI, "%s: Can't map %cid %u to a SID\n", id_to_sid()
220 __func__, sidtype == SIDOWNER ? 'u' : 'g', cid); id_to_sid()
287 cifs_dbg(FYI, "%s: Can't map SID %s to a %cid\n", sid_to_id()
/linux-4.4.14/include/net/bluetooth/
H A Dl2cap.h203 __le16 cid; member in struct:l2cap_hdr
472 __le16 cid; member in struct:l2cap_le_credits
923 int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid,
/linux-4.4.14/drivers/hwmon/
H A Dlm87.c815 u8 cid, rev; lm87_detect() local
824 cid = lm87_read_value(client, LM87_REG_COMPANY_ID); lm87_detect()
827 if (cid == 0x02 /* National Semiconductor */ lm87_detect()
830 else if (cid == 0x41 /* Analog Devices */ lm87_detect()
/linux-4.4.14/arch/arm/include/asm/
H A Decard.h160 CONST struct in_ecid cid; /* Card Identification */ member in struct:expansion_card
/linux-4.4.14/Documentation/dvb/
H A Dget_dvb_firmware36 $cid = $ARGV[0];
40 if ($cid eq $components[$i]) {
41 $outfile = eval($cid);
53 print STDERR "Unknown component \"$cid\"\n";
/linux-4.4.14/drivers/net/ethernet/dlink/
H A Ddl2k.c358 int cid, next; parse_eeprom() local
390 cid = psib[i++]; parse_eeprom()
392 if ((cid == 0 && next == 0) || (cid == 0xff && next == 0xff)) { parse_eeprom()
396 switch (cid) { parse_eeprom()
/linux-4.4.14/drivers/net/ethernet/8390/
H A Detherh.c707 eh->id = ec->cid.product; etherh_probe()
743 if (ec->cid.product == PROD_ANT_ETHERM) { etherh_probe()
/linux-4.4.14/include/linux/
H A Dnvme.h494 __u16 cid; member in struct:nvme_abort_cmd
/linux-4.4.14/include/linux/qed/
H A Dcommon_hsi.h304 __le32 cid; member in struct:async_data
/linux-4.4.14/drivers/net/ethernet/tile/
H A Dtilegx.c715 unsigned int cid = comps->comp_last % TILE_NET_MAX_COMPS; tile_net_free_comps() local
716 struct tile_net_comp *comp = &comps->comp_queue[cid]; tile_net_free_comps()
735 int cid = comps->comp_next % TILE_NET_MAX_COMPS; add_comp() local
736 comps->comp_queue[cid].when = when; add_comp()
737 comps->comp_queue[cid].skb = skb; add_comp()
/linux-4.4.14/drivers/scsi/cxgbi/
H A Dlibcxgbi.c1770 "csk 0x%p, cid %d.\n", csk, conn->id); cxgbi_conn_tx_open()
2499 cxgbi_create_conn(struct iscsi_cls_session *cls_session, u32 cid) cxgbi_create_conn() argument
2506 cls_conn = iscsi_tcp_conn_setup(cls_session, sizeof(*cconn), cid); cxgbi_create_conn()
2516 "cid %u(0x%x), cls 0x%p,0x%p, conn 0x%p,0x%p,0x%p.\n", cxgbi_create_conn()
2517 cid, cid, cls_session, cls_conn, conn, tcp_conn, cconn); cxgbi_create_conn()
/linux-4.4.14/drivers/scsi/libfc/
H A Dfc_lport.c470 struct fc_els_rnid_cid cid; fc_lport_recv_rnid_req() member in struct:__anon9591
499 rp->rnid.rnid_cid_len = sizeof(rp->cid); fc_lport_recv_rnid_req()
500 rp->cid.rnid_wwpn = htonll(lport->wwpn); fc_lport_recv_rnid_req()
501 rp->cid.rnid_wwnn = htonll(lport->wwnn); fc_lport_recv_rnid_req()
/linux-4.4.14/drivers/infiniband/ulp/iser/
H A Discsi_iser.c272 iser_dbg("mtask xmit [cid %d itt 0x%x]\n", conn->id, task->itt); iscsi_iser_mtask_xmit()
339 iser_dbg("ctask xmit [cid %d itt 0x%x]\n", iscsi_iser_task_xmit()
/linux-4.4.14/include/uapi/drm/
H A Dvmwgfx_drm.h130 * @cid: Device unique context ID.
137 int32_t cid; member in struct:drm_vmw_context_arg
/linux-4.4.14/drivers/media/i2c/
H A Ds5k6aa.c702 int cid) s5k6aa_new_config_sync()
708 ret = s5k6aa_write(client, REG_G_ACTIVE_PREV_CFG, cid); s5k6aa_new_config_sync()
701 s5k6aa_new_config_sync(struct i2c_client *client, int timeout, int cid) s5k6aa_new_config_sync() argument
/linux-4.4.14/arch/ia64/include/asm/
H A Dpal.h1750 cid :16, /* Core id */ member in struct:pal_proc_n_log_info1_u::__anon1508
1776 #define log1_cid ppli1.ppli1_bits.cid
/linux-4.4.14/drivers/isdn/i4l/
H A Disdn_tty.c1881 isdn_tty_match_icall(char *cid, atemu *emu, int di) isdn_tty_match_icall() argument
1897 if ((tmp = isdn_msncmp(cid, isdn_map_eaz2msn(p, di))) > ret) isdn_tty_match_icall()
1916 tmp = isdn_msncmp(cid, isdn_map_eaz2msn(emu->msn, di)); isdn_tty_match_icall()
/linux-4.4.14/drivers/scsi/qla4xxx/
H A Dql4_os.c3186 DEBUG2(ql4_printk(KERN_INFO, ha, "%s: sid = %d, cid = %d\n", __func__, qla4xxx_conn_bind()
3187 cls_session->sid, cls_conn->cid)); qla4xxx_conn_bind()
3213 DEBUG2(ql4_printk(KERN_INFO, ha, "%s: sid = %d, cid = %d\n", __func__, qla4xxx_conn_start()
3214 cls_sess->sid, cls_conn->cid)); qla4xxx_conn_start()
3291 DEBUG2(ql4_printk(KERN_INFO, ha, "%s: cid = %d\n", __func__, qla4xxx_conn_destroy()
3292 cls_conn->cid)); qla4xxx_conn_destroy()
/linux-4.4.14/drivers/infiniband/ulp/isert/
H A Dib_isert.c1239 login->cid = be16_to_cpu(login_req->cid); isert_rx_login_req()
/linux-4.4.14/fs/ceph/
H A Dcaps.c989 u64 ino, u64 cid, int op, send_cap_msg()
1008 cid, ino, ceph_cap_string(caps), ceph_cap_string(wanted), send_cap_msg()
1028 fc->cap_id = cpu_to_le64(cid); send_cap_msg()
988 send_cap_msg(struct ceph_mds_session *session, u64 ino, u64 cid, int op, int caps, int wanted, int dirty, u32 seq, u64 flush_tid, u64 oldest_flush_tid, u32 issue_seq, u32 mseq, u64 size, u64 max_size, struct timespec *mtime, struct timespec *atime, u64 time_warp_seq, kuid_t uid, kgid_t gid, umode_t mode, u64 xattr_version, struct ceph_buffer *xattrs_buf, u64 follows, bool inline_data) send_cap_msg() argument
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
H A Dbe_cmds.h555 u16 cid; member in struct:be_cmd_resp_eth_tx_create
H A Dbe_cmds.c1333 txq->id = le16_to_cpu(resp->cid); be_cmd_txq_create()
/linux-4.4.14/drivers/nvme/host/
H A Dpci.c1333 cmd.abort.cid = req->tag; nvme_abort_req()

Completed in 8010 milliseconds