| /linux/drivers/net/wireless/ath/ath6kl/ |
| H A D | bmi.c | 26 u32 cid = BMI_DONE; in ath6kl_bmi_done() local 35 ret = ath6kl_hif_bmi_write(ar, (u8 *)&cid, sizeof(cid)); in ath6kl_bmi_done() 48 u32 cid = BMI_GET_TARGET_INFO; in ath6kl_bmi_get_target_info() local 51 ath6kl_err("bmi done sent already, cmd %d disallowed\n", cid); in ath6kl_bmi_get_target_info() 55 ret = ath6kl_hif_bmi_write(ar, (u8 *)&cid, sizeof(cid)); in ath6kl_bmi_get_target_info() 118 u32 cid = BMI_READ_MEMORY; in ath6kl_bmi_read() local 125 ath6kl_err("bmi done sent already, cmd %d disallowed\n", cid); in ath6kl_bmi_read() 129 size = ar->bmi.max_data_size + sizeof(cid) + sizeof(addr) + sizeof(len); in ath6kl_bmi_read() 146 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); in ath6kl_bmi_read() 147 offset += sizeof(cid); in ath6kl_bmi_read() [all …]
|
| /linux/tools/sched_ext/include/scx/ |
| H A D | cid.bpf.h | 43 static __always_inline bool __cmask_contains(u32 cid, const struct scx_cmask __arena *m) in __cmask_contains() argument 45 return cid >= m->base && cid < m->base + m->nr_cids; in __cmask_contains() 48 static __always_inline u64 __arena *__cmask_word(u32 cid, const struct scx_cmask __arena *m) in __cmask_word() argument 50 return (u64 __arena *)&m->bits[cid / 64 - m->base / 64]; in __cmask_word() 125 static __always_inline bool cmask_test(u32 cid, const struct scx_cmask __arena *m) in cmask_test() argument 127 if (!__cmask_contains(cid, m)) in cmask_test() 129 return *__cmask_word(cid, m) & BIT_U64(cid & 63); in cmask_test() 143 static __always_inline void cmask_set(u32 cid, struct scx_cmask __arena *m) in cmask_set() argument 149 if (!__cmask_contains(cid, m)) in cmask_set() 151 w = __cmask_word(cid, m); in cmask_set() [all …]
|
| /linux/kernel/sched/ext/ |
| H A D | cid.h | 94 static inline bool cid_valid(struct scx_sched *sch, s32 cid) in cid_valid() argument 96 if (likely(cid >= 0 && cid < num_possible_cpus())) in cid_valid() 98 scx_error(sch, "invalid cid %d", cid); in cid_valid() 109 static inline s32 __scx_cid_to_cpu(s32 cid) in __scx_cid_to_cpu() argument 111 return rcu_dereference_all(scx_cid_to_cpu_tbl)[cid]; in __scx_cid_to_cpu() 137 static inline s32 scx_cid_to_cpu(struct scx_sched *sch, s32 cid) in scx_cid_to_cpu() argument 141 if (!cid_valid(sch, cid) || unlikely(!tbl)) in scx_cid_to_cpu() 143 return tbl[cid]; in scx_cid_to_cpu() 171 static inline bool __scx_cmask_contains(u32 cid, const struct scx_cmask *m) in __scx_cmask_contains() argument 173 return likely(cid >= m->base && cid < m->base + m->nr_cids); in __scx_cmask_contains() [all …]
|
| H A D | cid.c | 11 #include "cid.h" 14 * cid tables. The cid kfuncs are available whether the root scheduler is 15 * cid-form or cpu-form, the latter to allow gradual migration to cids, so every 142 * scx_cid_retire_tables - Unpublish and retire the cid tables 168 * scx_cid_init - build the cid mapping 174 * See "Topological CPU IDs" in cid.h for the model. Walk online cpus by 195 s32 cpu, cid, si; in scx_cid_init() local 197 /* CMASK_MAX_WORDS in cid.bpf.h covers NR_CPUS up to 8192 */ in scx_cid_init() 223 /* -1 sentinels for sparse-possible cpu id holes (0 is a valid cid) */ in scx_cid_init() 305 s32 cid = next_cid++; scx_cid_init() local 480 s32 cpu, cid, si; scx_bpf_cid_override() local 631 scx_bpf_cid_to_cpu(s32 cid,const struct bpf_prog_aux * aux) scx_bpf_cid_to_cpu() argument 923 scx_bpf_cid_topo(s32 cid,struct scx_cid_topo * out__uninit,const struct bpf_prog_aux * aux) scx_bpf_cid_topo() argument 1149 u32 cid = word_first_cid + bit; scx_cmask_ref_from_cpumask() local [all...] |
| /linux/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_ooo.c | 24 u32 cid) in qed_ooo_seek_archipelago() argument 26 u32 idx = (cid & 0xffff) - p_ooo_info->cid_base; in qed_ooo_seek_archipelago() 42 u32 cid, u8 isle) in qed_ooo_seek_isle() argument 48 p_archipelago = qed_ooo_seek_archipelago(p_hwfn, p_ooo_info, cid); in qed_ooo_seek_isle() 51 "Connection %d is not found in OOO list\n", cid); in qed_ooo_seek_isle() 162 struct qed_ooo_info *p_ooo_info, u32 cid) in qed_ooo_release_connection_isles() argument 168 p_archipelago = qed_ooo_seek_archipelago(p_hwfn, p_ooo_info, cid); in qed_ooo_release_connection_isles() 315 u32 cid, u8 drop_isle, u8 drop_size) in qed_ooo_delete_isles() argument 321 p_isle = qed_ooo_seek_isle(p_hwfn, p_ooo_info, cid, drop_isle); in qed_ooo_delete_isles() 325 drop_isle, cid); in qed_ooo_delete_isles() [all …]
|
| H A D | qed_ooo.h | 73 u32 cid); 96 u32 cid, u8 drop_isle, u8 drop_size); 100 u32 cid, 105 u32 cid, 110 struct qed_ooo_info *p_ooo_info, u32 cid, 129 u32 cid) {} in qed_ooo_release_connection_isles() argument 154 u32 cid, u8 drop_isle, u8 drop_size) {} in qed_ooo_delete_isles() argument 158 u32 cid, u8 ooo_isle, in qed_ooo_add_new_isle() argument 163 u32 cid, u8 ooo_isle, in qed_ooo_add_new_buffer() argument 168 struct qed_ooo_info *p_ooo_info, u32 cid, in qed_ooo_join_isles() argument
|
| /linux/tools/sched_ext/ |
| H A D | scx_qmap.bpf.c | 224 s32 cid; in pick_direct_dispatch_cid() local 231 cid = prev_cid; in pick_direct_dispatch_cid() 233 cid = cmask_next_and2_set_wrap(&taskc->cpus_allowed, in pick_direct_dispatch_cid() 235 &qa.usable_cids.mask, cid + 1); in pick_direct_dispatch_cid() 236 barrier_var(cid); in pick_direct_dispatch_cid() 237 if (cid >= nr_cids) in pick_direct_dispatch_cid() 239 if (cmask_test_and_clear(cid, &qa.idle_cids.mask)) in pick_direct_dispatch_cid() 240 return cid; in pick_direct_dispatch_cid() 345 s32 cid; in BPF_STRUCT_OPS() local 353 cid = pick_direct_dispatch_cid(p, prev_cid, taskc); in BPF_STRUCT_OPS() [all …]
|
| /linux/tools/testing/vsock/ |
| H A D | util.h | 74 int vsock_connect_fd(int fd, unsigned int cid, unsigned int port); 75 int vsock_connect(unsigned int cid, unsigned int port, int type); 76 int vsock_accept(unsigned int cid, unsigned int port, 78 int vsock_stream_connect(unsigned int cid, unsigned int port); 79 int vsock_bind_try(unsigned int cid, unsigned int port, int type); 80 int vsock_bind(unsigned int cid, unsigned int port, int type); 81 int vsock_bind_connect(unsigned int cid, unsigned int port, 83 int vsock_seqpacket_connect(unsigned int cid, unsigned int port); 84 int vsock_stream_accept(unsigned int cid, unsigned int port, 86 int vsock_stream_listen(unsigned int cid, unsigned int port); [all …]
|
| H A D | util.c | 143 int vsock_bind_try(unsigned int cid, unsigned int port, int type) in vsock_bind_try() argument 147 .svm_cid = cid, in vsock_bind_try() 169 int vsock_bind(unsigned int cid, unsigned int port, int type) in vsock_bind() argument 173 fd = vsock_bind_try(cid, port, type); in vsock_bind() 182 int vsock_connect_fd(int fd, unsigned int cid, unsigned int port) in vsock_connect_fd() argument 186 .svm_cid = cid, in vsock_connect_fd() 202 int vsock_bind_connect(unsigned int cid, unsigned int port, unsigned int bind_port, int type) in vsock_bind_connect() argument 208 if (vsock_connect_fd(client_fd, cid, port)) { in vsock_bind_connect() 217 int vsock_connect(unsigned int cid, unsigned int port, int type) in vsock_connect() argument 229 if (vsock_connect_fd(fd, cid, port)) { in vsock_connect() [all …]
|
| /linux/arch/arm/mach-rpc/ |
| H A D | ecard.c | 332 if (!ec->cid.cd) in ecard_readchunk() 629 if (ec->cid.id == 0) { in ecard_prints() 633 ec->cid.manufacturer, ec->cid.product); in ecard_prints() 635 if (!ec->card_desc && ec->cid.cd && in ecard_prints() 645 seq_printf(m, "Simple card %d\n", ec->cid.id); in ecard_prints() 786 return sprintf(buf, "%u\n", ec->cid.manufacturer); in vendor_show() 793 return sprintf(buf, "%u\n", ec->cid.product); in device_show() 895 struct ex_ecid cid; in ecard_probe() local 909 cid.r_zero = 1; in ecard_probe() 910 ecard_readbytes(&cid, ec, 0, 16, 0); in ecard_probe() [all …]
|
| /linux/include/trace/events/ |
| H A D | rpcrdma.h | 27 const struct rpc_rdma_cid *cid 30 TP_ARGS(cid), 38 __entry->cq_id = cid->ci_queue_id; 39 __entry->completion_id = cid->ci_completion_id; 50 const struct rpc_rdma_cid *cid \ 52 TP_ARGS(cid) \ 58 const struct rpc_rdma_cid *cid 61 TP_ARGS(wc, cid), 71 __entry->cq_id = cid->ci_queue_id; 72 __entry->completion_id = cid->ci_completion_id; [all …]
|
| /linux/drivers/gpu/drm/nouveau/dispnv50/ |
| H A D | oimm.c | 42 int cid; in nv50_oimm_init() local 44 cid = nvif_mclass(&disp->disp->object, oimms); in nv50_oimm_init() 45 if (cid < 0) { in nv50_oimm_init() 47 return cid; in nv50_oimm_init() 50 return oimms[cid].init(drm, oimms[cid].oclass, wndw); in nv50_oimm_init()
|
| H A D | base.c | 44 int cid; in nv50_base_new() local 46 cid = nvif_mclass(&disp->disp->object, bases); in nv50_base_new() 47 if (cid < 0) { in nv50_base_new() 49 return cid; in nv50_base_new() 52 return bases[cid].new(drm, head, bases[cid].oclass, pwndw); in nv50_base_new()
|
| H A D | ovly.c | 44 int cid, ret; in nv50_ovly_new() local 46 cid = nvif_mclass(&disp->disp->object, ovlys); in nv50_ovly_new() 47 if (cid < 0) { in nv50_ovly_new() 49 return cid; in nv50_ovly_new() 52 ret = ovlys[cid].new(drm, head, ovlys[cid].oclass, pwndw); in nv50_ovly_new()
|
| /linux/net/netfilter/ |
| H A D | nf_conntrack_pptp.c | 199 __be16 cid = 0, pcid = 0; in pptp_inbound_pkt() local 236 cid = pptpReq->ocack.callID; in pptp_inbound_pkt() 241 ntohs(cid), ntohs(pcid)); in pptp_inbound_pkt() 245 info->pac_call_id = cid; in pptp_inbound_pkt() 246 exp_gre(ct, cid, pcid); in pptp_inbound_pkt() 256 cid = pptpReq->icreq.callID; in pptp_inbound_pkt() 257 pr_debug("%s, CID=%X\n", pptp_msg_name(msg), ntohs(cid)); in pptp_inbound_pkt() 259 info->pac_call_id = cid; in pptp_inbound_pkt() 271 cid = info->pac_call_id; in pptp_inbound_pkt() 280 exp_gre(ct, cid, pcid); in pptp_inbound_pkt() [all …]
|
| /linux/drivers/target/iscsi/ |
| H A D | iscsi_target_erl2.c | 56 u16 cid) in iscsit_get_inactive_connection_recovery_entry() argument 62 if (cr->cid == cid) { in iscsit_get_inactive_connection_recovery_entry() 189 cmd->stat_sn, cr->cid); in iscsit_discard_cr_cmds_by_expstatsn() 201 dropped_count, cr->cid, exp_statsn); in iscsit_discard_cr_cmds_by_expstatsn() 206 cr->cid, sess->sid); in iscsit_discard_cr_cmds_by_expstatsn() 210 " %hu on SID: %u\n", cr->cid, sess->sid); in iscsit_discard_cr_cmds_by_expstatsn() 229 if (ooo_cmdsn->cid != conn->cid) in iscsit_discard_unacknowledged_ooo_cmdsns_for_conn() 235 ooo_cmdsn->cmdsn, conn->cid); in iscsit_discard_unacknowledged_ooo_cmdsns_for_conn() 254 " %hu for ExpCmdSN: 0x%08x.\n", dropped_count, conn->cid, in iscsit_discard_unacknowledged_ooo_cmdsns_for_conn() 297 cmd->init_task_tag, cmd->cmd_sn, conn->cid); in iscsit_prepare_cmds_for_reallegiance() [all …]
|
| /linux/drivers/gpu/drm/vmwgfx/device_include/ |
| H A D | svga3d_cmd.h | 380 uint32 cid; member 386 uint32 cid; member 392 uint32 cid; member 439 uint32 cid; member 446 uint32 cid; member 568 uint32 cid; member 577 uint32 cid; member 589 uint32 cid; member 623 uint32 cid; member 640 uint32 cid; member [all …]
|
| /linux/drivers/misc/vmw_vmci/ |
| H A D | vmci_host.c | 55 u32 cid; member 324 vmci_host_dev->context = vmci_ctx_create(init_block.cid, in vmci_host_do_init_context() 339 init_block.cid = vmci_ctx_get_id(vmci_host_dev->context); in vmci_host_do_init_context() 366 u32 cid; in vmci_host_do_send_datagram() local 408 cid = vmci_ctx_get_id(vmci_host_dev->context); in vmci_host_do_send_datagram() 409 send_info.result = vmci_datagram_dispatch(cid, dg, true); in vmci_host_do_send_datagram() 668 u32 cid; in vmci_host_do_ctx_add_notify() local 678 cid = vmci_ctx_get_id(vmci_host_dev->context); in vmci_host_do_ctx_add_notify() 679 result = vmci_ctx_add_notification(cid, ar_info.remote_cid); in vmci_host_do_ctx_add_notify() 690 u32 cid; in vmci_host_do_ctx_remove_notify() local [all …]
|
| H A D | vmci_context.h | 42 u32 cid; member 126 struct vmci_ctx *vmci_ctx_create(u32 cid, u32 flags, 132 int vmci_ctx_enqueue_datagram(u32 cid, struct vmci_datagram *dg); 135 struct vmci_ctx *vmci_ctx_get(u32 cid); 137 bool vmci_ctx_exists(u32 cid); 155 int vmci_ctx_notify_dbell(u32 cid, struct vmci_handle handle, 169 return context->cid; in vmci_ctx_get_id()
|
| H A D | vmci_context.c | 80 struct vmci_ctx *vmci_ctx_create(u32 cid, u32 priv_flags, in vmci_ctx_create() argument 88 if (cid == VMCI_INVALID_ID) { in vmci_ctx_create() 162 while (vmci_ctx_exists(cid)) { in vmci_ctx_create() 164 cid = max(cid, VMCI_RESERVED_CID_LIMIT - 1) + 1; in vmci_ctx_create() 165 if (cid == VMCI_INVALID_ID) in vmci_ctx_create() 166 cid = VMCI_RESERVED_CID_LIMIT; in vmci_ctx_create() 168 context->cid = cid; in vmci_ctx_create() 238 vmci_make_handle(sub_ctx->cid, in ctx_fire_notification() 276 int vmci_ctx_enqueue_datagram(u32 cid, struct vmci_datagram *dg) in vmci_ctx_enqueue_datagram() argument 290 context = vmci_ctx_get(cid); in vmci_ctx_enqueue_datagram() [all …]
|
| /linux/drivers/net/wireless/ath/wil6210/ |
| H A D | rx_reorder.c | 87 int tid, cid, mid, mcast, retry; in wil_rx_reorder() local 94 wil->txrx_ops.get_reorder_params(wil, skb, &tid, &cid, &mid, &seq, in wil_rx_reorder() 96 sta = &wil->sta[cid]; in wil_rx_reorder() 99 mid, cid, tid, seq, mcast); in wil_rx_reorder() 215 u8 cid, u8 tid, u16 seq) in wil_rx_bar() argument 217 struct wil_sta_info *sta = &wil->sta[cid]; in wil_rx_bar() 225 wil_err(wil, "BAR for non-existing CID %d TID %d\n", cid, tid); in wil_rx_bar() 234 cid, vif->mid, tid, seq, r->head_seq_num); in wil_rx_bar() 298 int wil_addba_rx_request(struct wil6210_priv *wil, u8 mid, u8 cid, u8 tid, in wil_addba_rx_request() argument 326 if (cid >= wil->max_assoc_sta) { in wil_addba_rx_request() [all …]
|
| H A D | txrx.c | 372 int cid = wil_rxdesc_cid(d); in wil_rx_get_cid_by_skb() local 381 return cid; in wil_rx_get_cid_by_skb() 403 return cid; in wil_rx_get_cid_by_skb() 411 return cid; in wil_rx_get_cid_by_skb() 417 for (i = cid; i < wil->max_assoc_sta; i += WIL6210_RX_DESC_MAX_CID) { in wil_rx_get_cid_by_skb() 420 cid = i; in wil_rx_get_cid_by_skb() 427 cid = -ENOENT; in wil_rx_get_cid_by_skb() 430 return cid; in wil_rx_get_cid_by_skb() 453 int cid, mid; in wil_vring_reap_rx() local 512 cid = wil_rx_get_cid_by_skb(wil, skb); in wil_vring_reap_rx() [all …]
|
| /linux/tools/testing/selftests/sched_ext/ |
| H A D | enable_cmask.bpf.c | 35 s32 cid; member 64 s32 cid; in check_mask() local 69 bpf_for(cid, 0, nr_cids) { in check_mask() 73 cpu = scx_bpf_cid_to_cpu(cid); in check_mask() 77 got = cmask_test(cid, m); in check_mask() 79 mm->cid = cid; in check_mask() 120 p->comm, p->pid, ret, mm.cid, mm.want, mm.got); in BPF_STRUCT_OPS() 149 p->comm, p->pid, ret, mm.cid, mm.want, mm.got); in BPF_STRUCT_OPS()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
| H A D | chid.c | 40 int id = -1, cid; in nvkm_chid_get() local 43 cid = find_first_zero_bit(chid->used, chid->nr); in nvkm_chid_get() 44 if (cid < chid->nr) { in nvkm_chid_get() 45 set_bit(cid, chid->used); in nvkm_chid_get() 46 chid->data[cid] = data; in nvkm_chid_get() 47 id = cid; in nvkm_chid_get()
|
| /linux/drivers/scsi/aacraid/ |
| H A D | aachba.c | 599 dinfo->cid = cpu_to_le32(scmd_id(scsicmd)); in aac_get_container_name() 819 int aac_probe_container(struct aac_dev *dev, int cid) in aac_probe_container() argument 834 scsidev->id = cid; in aac_probe_container() 1134 dinfo->cid = cpu_to_le32(scmd_id(scsicmd)); in aac_get_container_serial() 1167 static int setinqserial(struct aac_dev *dev, void *data, int cid) in setinqserial() argument 1173 le32_to_cpu(dev->adapter_info.serial[0]), cid); in setinqserial() 1206 int cid = scmd_id(cmd); in aac_bounds_32() local 1209 set_sense(&dev->fsa_dev[cid].sense_data, in aac_bounds_32() 1212 memcpy(cmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_bounds_32() 1213 min_t(size_t, sizeof(dev->fsa_dev[cid].sense_data), in aac_bounds_32() [all …]
|