Home
last modified time | relevance | path

Searched full:pcb (Results 1 – 25 of 239) sorted by relevance

12345678910

/kernel/linux/linux-6.6/fs/erofs/
Dpcpubuf.c22 __acquires(pcb->lock) in erofs_get_pcpubuf()
24 struct erofs_pcpubuf *pcb = &get_cpu_var(erofs_pcb); in erofs_get_pcpubuf() local
26 raw_spin_lock(&pcb->lock); in erofs_get_pcpubuf()
28 if (requiredpages > pcb->nrpages) { in erofs_get_pcpubuf()
29 raw_spin_unlock(&pcb->lock); in erofs_get_pcpubuf()
31 /* (for sparse checker) pretend pcb->lock is still taken */ in erofs_get_pcpubuf()
32 __acquire(pcb->lock); in erofs_get_pcpubuf()
35 return pcb->ptr; in erofs_get_pcpubuf()
38 void erofs_put_pcpubuf(void *ptr) __releases(pcb->lock) in erofs_put_pcpubuf()
40 struct erofs_pcpubuf *pcb = &per_cpu(erofs_pcb, smp_processor_id()); in erofs_put_pcpubuf() local
[all …]
/kernel/liteos_a/kernel/extended/liteipc/
Dhm_liteipc.c129 LosProcessCB *pcb = OsCurrProcessGet(); in LiteIpcOpen() local
130 if (pcb->ipcInfo != NULL) { in LiteIpcOpen()
134 pcb->ipcInfo = LiteIpcPoolCreate(); in LiteIpcOpen()
135 if (pcb->ipcInfo == NULL) { in LiteIpcOpen()
153 LITE_OS_SEC_TEXT STATIC INT32 DoIpcMmap(LosProcessCB *pcb, LosVmMapRegion *region) in DoIpcMmap() argument
160 VADDR_T uva = (VADDR_T)(UINTPTR)pcb->ipcInfo->pool.uvaddr; in DoIpcMmap()
161 VADDR_T kva = (VADDR_T)(UINTPTR)pcb->ipcInfo->pool.kvaddr; in DoIpcMmap()
163 (VOID)LOS_MuxAcquire(&pcb->vmSpace->regionMux); in DoIpcMmap()
178 … STATUS_T err = LOS_ArchMmuMap(&pcb->vmSpace->archMmu, uva + (i << PAGE_SHIFT), pa, 1, uflags); in DoIpcMmap()
190 (VOID)LOS_ArchMmuUnmap(&pcb->vmSpace->archMmu, uva + (i << PAGE_SHIFT), 1); in DoIpcMmap()
[all …]
/kernel/liteos_a/kernel/extended/plimit/
Dlos_ipclimit.c93 LosProcessCB *pcb = (LosProcessCB *)process; in OsIPCLimitMigrate() local
95 if (pcb == NULL) { in OsIPCLimitMigrate()
103 parentIpcLimit->mqCount -= pcb->limitStat.mqCount; in OsIPCLimitMigrate()
104 parentIpcLimit->shmSize -= pcb->limitStat.shmSize; in OsIPCLimitMigrate()
105 currIpcLimit->mqCount += pcb->limitStat.mqCount; in OsIPCLimitMigrate()
106 currIpcLimit->shmSize += pcb->limitStat.shmSize; in OsIPCLimitMigrate()
112 LosProcessCB *pcb = (LosProcessCB *)process; in OsIPCLimitAddProcessCheck() local
113 if ((ipcLimit->mqCount + pcb->limitStat.mqCount) >= ipcLimit->mqCountLimit) { in OsIPCLimitAddProcessCheck()
117 if ((ipcLimit->shmSize + pcb->limitStat.shmSize) >= ipcLimit->shmSizeLimit) { in OsIPCLimitAddProcessCheck()
126 LosProcessCB *pcb = (LosProcessCB *)process; in OsIPCLimitAddProcess() local
[all …]
Dlos_memlimit.c95 LosProcessCB *pcb = (LosProcessCB *)process; in OsMemLimiterMigrate() local
97 if (pcb == NULL) { in OsMemLimiterMigrate()
106 parentMemLimit->usage -= pcb->limitStat.memUsed; in OsMemLimiterMigrate()
107 currMemLimit->usage += pcb->limitStat.memUsed; in OsMemLimiterMigrate()
113 LosProcessCB *pcb = (LosProcessCB *)process; in OsMemLimitAddProcessCheck() local
114 if ((memLimit->usage + pcb->limitStat.memUsed) > memLimit->limit) { in OsMemLimitAddProcessCheck()
122 LosProcessCB *pcb = (LosProcessCB *)process; in OsMemLimitAddProcess() local
124 plimits->usage += pcb->limitStat.memUsed; in OsMemLimitAddProcess()
133 LosProcessCB *pcb = (LosProcessCB *)process; in OsMemLimitDelProcess() local
136 plimits->usage -= pcb->limitStat.memUsed; in OsMemLimitDelProcess()
/kernel/linux/linux-5.10/drivers/nfc/st-nci/
Dndlc.c76 u8 pcb = PCB_TYPE_DATAFRAME | PCB_DATAFRAME_RETRANSMIT_NO | in ndlc_send() local
79 *(u8 *)skb_push(skb, 1) = pcb; in ndlc_send()
125 u8 pcb; in llt_ndlc_requeue_data_pending() local
128 pcb = skb->data[0]; in llt_ndlc_requeue_data_pending()
129 switch (pcb & PCB_TYPE_MASK) { in llt_ndlc_requeue_data_pending()
131 skb->data[0] = (pcb & ~PCB_SUPERVISOR_RETRANSMIT_MASK) | in llt_ndlc_requeue_data_pending()
135 skb->data[0] = (pcb & ~PCB_DATAFRAME_RETRANSMIT_MASK) | in llt_ndlc_requeue_data_pending()
139 pr_err("UNKNOWN Packet Control Byte=%d\n", pcb); in llt_ndlc_requeue_data_pending()
150 u8 pcb; in llt_ndlc_rcv_queue() local
157 pcb = skb->data[0]; in llt_ndlc_rcv_queue()
[all …]
/kernel/linux/linux-6.6/drivers/nfc/st-nci/
Dndlc.c76 u8 pcb = PCB_TYPE_DATAFRAME | PCB_DATAFRAME_RETRANSMIT_NO | in ndlc_send() local
79 *(u8 *)skb_push(skb, 1) = pcb; in ndlc_send()
125 u8 pcb; in llt_ndlc_requeue_data_pending() local
128 pcb = skb->data[0]; in llt_ndlc_requeue_data_pending()
129 switch (pcb & PCB_TYPE_MASK) { in llt_ndlc_requeue_data_pending()
131 skb->data[0] = (pcb & ~PCB_SUPERVISOR_RETRANSMIT_MASK) | in llt_ndlc_requeue_data_pending()
135 skb->data[0] = (pcb & ~PCB_DATAFRAME_RETRANSMIT_MASK) | in llt_ndlc_requeue_data_pending()
139 pr_err("UNKNOWN Packet Control Byte=%d\n", pcb); in llt_ndlc_requeue_data_pending()
150 u8 pcb; in llt_ndlc_rcv_queue() local
157 pcb = skb->data[0]; in llt_ndlc_rcv_queue()
[all …]
/kernel/linux/linux-5.10/sound/core/seq/
Dseq_dummy.c109 struct snd_seq_port_callback pcb; in create_port() local
132 memset(&pcb, 0, sizeof(pcb)); in create_port()
133 pcb.owner = THIS_MODULE; in create_port()
134 pcb.event_input = dummy_input; in create_port()
135 pcb.private_free = dummy_free; in create_port()
136 pcb.private_data = rec; in create_port()
137 pinfo.kernel = &pcb; in create_port()
/kernel/linux/linux-6.6/sound/core/seq/
Dseq_dummy.c109 struct snd_seq_port_callback pcb; in create_port() local
134 memset(&pcb, 0, sizeof(pcb)); in create_port()
135 pcb.owner = THIS_MODULE; in create_port()
136 pcb.event_input = dummy_input; in create_port()
137 pcb.private_free = dummy_free; in create_port()
138 pcb.private_data = rec; in create_port()
139 pinfo.kernel = &pcb; in create_port()
/kernel/linux/linux-5.10/arch/alpha/mm/
Dinit.c91 load_PCB(struct pcb_struct *pcb) in load_PCB() argument
94 pcb->ksp = sp; in load_PCB()
95 return __reload_thread(pcb); in load_PCB()
98 /* Set up initial PCB, VPTB, and other such nicities. */
121 /* Also set up the real kernel PCB while we're at it. */ in switch_to_system_map()
122 init_thread_info.pcb.ptbr = newptbr; in switch_to_system_map()
123 init_thread_info.pcb.flags = 1; /* set FEN, clear everything else */ in switch_to_system_map()
124 original_pcb_ptr = load_PCB(&init_thread_info.pcb); in switch_to_system_map()
127 /* Save off the contents of the original PCB so that we can in switch_to_system_map()
130 Note that the PCB is supposed to be a physical address, but in switch_to_system_map()
Dfault.c45 struct pcb_struct *pcb; in __load_new_mm_context() local
50 pcb = &current_thread_info()->pcb; in __load_new_mm_context()
51 pcb->asn = mmc & HARDWARE_ASN_MASK; in __load_new_mm_context()
52 pcb->ptbr = ((unsigned long) next_mm->pgd - IDENT_ADDR) >> PAGE_SHIFT; in __load_new_mm_context()
54 __reload_thread(pcb); in __load_new_mm_context()
/kernel/linux/linux-6.6/arch/alpha/mm/
Dinit.c91 load_PCB(struct pcb_struct *pcb) in load_PCB() argument
94 pcb->ksp = sp; in load_PCB()
95 return __reload_thread(pcb); in load_PCB()
98 /* Set up initial PCB, VPTB, and other such nicities. */
121 /* Also set up the real kernel PCB while we're at it. */ in switch_to_system_map()
122 init_thread_info.pcb.ptbr = newptbr; in switch_to_system_map()
123 init_thread_info.pcb.flags = 1; /* set FEN, clear everything else */ in switch_to_system_map()
124 original_pcb_ptr = load_PCB(&init_thread_info.pcb); in switch_to_system_map()
127 /* Save off the contents of the original PCB so that we can in switch_to_system_map()
130 Note that the PCB is supposed to be a physical address, but in switch_to_system_map()
Dfault.c45 struct pcb_struct *pcb; in __load_new_mm_context() local
50 pcb = &current_thread_info()->pcb; in __load_new_mm_context()
51 pcb->asn = mmc & HARDWARE_ASN_MASK; in __load_new_mm_context()
52 pcb->ptbr = ((unsigned long) next_mm->pgd - IDENT_ADDR) >> PAGE_SHIFT; in __load_new_mm_context()
54 __reload_thread(pcb); in __load_new_mm_context()
/kernel/liteos_a/compat/posix/src/
Dmisc.c165 LosProcessCB *pcb = OsCurrProcessGet(); in getrlimit() local
166 struct rlimit *resourceLimit = pcb->resourceLimit; in getrlimit()
199 LosProcessCB *pcb = OsCurrProcessGet(); in setrlimit() local
219 if (pcb->resourceLimit == NULL) { in setrlimit()
227 if (pcb->resourceLimit == NULL) { in setrlimit()
228 pcb->resourceLimit = resourceLimit; in setrlimit()
231 pcb->resourceLimit[resource].rlim_cur = rlim->rlim_cur; in setrlimit()
232 pcb->resourceLimit[resource].rlim_max = rlim->rlim_max; in setrlimit()
/kernel/liteos_a/net/lwip-2.1/enhancement/src/
Ddhcps.c85 struct udp_pcb *pcb; member
128 LWIP_STATIC void dhcps_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p,
402 …(void)udp_sendto_if_src(dhcps->pcb, out_msg, &dst_addr, DHCP_CLIENT_PORT, netif, &(netif->ip_addr)… in handle_discover()
408 …(void)udp_sendto_if_src(dhcps->pcb, out_msg, IP_ADDR_BROADCAST, DHCP_CLIENT_PORT, netif, &(netif->… in handle_discover()
428 …(void)udp_sendto_if_src(dhcps->pcb, out_msg, &client_ipaddr, DHCP_CLIENT_PORT, netif, &(netif->ip_… in handle_discover()
440 …(void)udp_sendto_if_src(dhcps->pcb, out_msg, IP_ADDR_BROADCAST, DHCP_CLIENT_PORT, netif, &(netif->… in handle_discover()
619 …(void)udp_sendto_if_src(dhcps->pcb, out_msg, &dst_addr, DHCP_CLIENT_PORT, netif, &(netif->ip_addr)… in handle_request()
622 …(void)udp_sendto_if_src(dhcps->pcb, out_msg, IP_ADDR_BROADCAST, DHCP_CLIENT_PORT, netif, &(netif->… in handle_request()
644 …(void)udp_sendto_if_src(dhcps->pcb, out_msg, &ip_send, DHCP_CLIENT_PORT, netif, &(netif->ip_addr)); in handle_request()
711 …(void)udp_sendto_if_src(dhcps->pcb, out_msg, &dst_addr, DHCP_CLIENT_PORT, netif, &(netif->ip_addr)… in handle_inform()
[all …]
/kernel/linux/linux-5.10/arch/alpha/kernel/
Dprocess.c225 current_thread_info()->pcb.unique = 0; in flush_thread()
249 childti->pcb.ksp = (unsigned long) childstack; in copy_thread()
250 childti->pcb.flags = 1; /* set FEN, clear everything else */ in copy_thread()
260 childti->pcb.usp = 0; in copy_thread()
269 childti->pcb.unique = tls; in copy_thread()
272 childti->pcb.usp = usp ?: rdusp(); in copy_thread()
322 dest[30] = ti == current_thread_info() ? rdusp() : ti->pcb.usp; in dump_elf_thread()
328 dest[32] = ti->pcb.unique; in dump_elf_thread()
367 unsigned long fp, sp = task_thread_info(t)->pcb.ksp; in thread_saved_pc()
397 schedule_frame = ((unsigned long *)task_thread_info(p)->pcb.ksp)[6]; in get_wchan()
/kernel/linux/linux-6.6/arch/alpha/kernel/
Dprocess.c226 current_thread_info()->pcb.unique = 0; in flush_thread()
246 childti->pcb.ksp = (unsigned long) childstack; in copy_thread()
247 childti->pcb.flags = 1; /* set FEN, clear everything else */ in copy_thread()
259 childti->pcb.usp = 0; in copy_thread()
268 childti->pcb.unique = tls; in copy_thread()
271 childti->pcb.usp = usp ?: rdusp(); in copy_thread()
321 dest[30] = ti == current_thread_info() ? rdusp() : ti->pcb.usp; in dump_elf_thread()
327 dest[32] = ti->pcb.unique; in dump_elf_thread()
363 unsigned long fp, sp = task_thread_info(t)->pcb.ksp; in thread_saved_pc()
392 schedule_frame = ((unsigned long *)task_thread_info(p)->pcb.ksp)[6]; in __get_wchan()
/kernel/liteos_a/fs/proc/os_adapt/
Dvmm_proc.c53 LosProcessCB *pcb = NULL; in OsVmDumpSeqSpaces() local
61 pcb = OsGetPIDByAspace(space); in OsVmDumpSeqSpaces()
62 if (pcb == NULL) { in OsVmDumpSeqSpaces()
69pcb->processID, space, pcb->processName, space->base, space->size, spacePages); in OsVmDumpSeqSpaces()
/kernel/linux/linux-5.10/arch/alpha/boot/
Dmain.c49 * PCB for that. The kernel proper should replace this PCB with
68 /* Create the dummy PCB. */ in pal_init()
82 * a1 = return address, but we give the asm the vaddr of the PCB in pal_init()
83 * a2 = physical addr of PCB in pal_init()
Dbootp.c55 * PCB for that. The kernel proper should replace this PCB with
74 /* Create the dummy PCB. */ in pal_init()
88 * a1 = return address, but we give the asm the vaddr of the PCB in pal_init()
89 * a2 = physical addr of PCB in pal_init()
/kernel/linux/linux-6.6/arch/alpha/boot/
Dmain.c49 * PCB for that. The kernel proper should replace this PCB with
68 /* Create the dummy PCB. */ in pal_init()
82 * a1 = return address, but we give the asm the vaddr of the PCB in pal_init()
83 * a2 = physical addr of PCB in pal_init()
Dbootp.c55 * PCB for that. The kernel proper should replace this PCB with
74 /* Create the dummy PCB. */ in pal_init()
88 * a1 = return address, but we give the asm the vaddr of the PCB in pal_init()
89 * a2 = physical addr of PCB in pal_init()
/kernel/linux/linux-6.6/arch/alpha/include/asm/
Dmmu_context.h30 __reload_thread(struct pcb_struct *pcb) in __reload_thread() argument
35 a0 = virt_to_phys(pcb); in __reload_thread()
159 /* Always update the PCB ASN. Another thread may have allocated in ev5_switch_mm()
162 task_thread_info(next)->pcb.asn = mmc & HARDWARE_ASN_MASK; in ev5_switch_mm()
239 task_thread_info(tsk)->pcb.ptbr in init_new_context()
248 task_thread_info(tsk)->pcb.ptbr in enter_lazy_tlb()
/kernel/linux/linux-5.10/arch/alpha/include/asm/
Dmmu_context.h30 __reload_thread(struct pcb_struct *pcb) in __reload_thread() argument
35 a0 = virt_to_phys(pcb); in __reload_thread()
159 /* Always update the PCB ASN. Another thread may have allocated in ev5_switch_mm()
162 task_thread_info(next)->pcb.asn = mmc & HARDWARE_ASN_MASK; in ev5_switch_mm()
240 task_thread_info(tsk)->pcb.ptbr in init_new_context()
254 task_thread_info(tsk)->pcb.ptbr in enter_lazy_tlb()
/kernel/linux/linux-6.6/arch/arm/boot/dts/nxp/imx/
Dimx6ull-dhcom-picoitx.dts7 * DHCOR PCB number: 578-200 or newer
8 * DHCOM PCB number: 579-200 or newer
9 * PicoITX PCB number: 487-600 or newer
Dimx6ull-dhcom-drc02.dts7 * DHCOR PCB number: 578-200 or newer
8 * DHCOM PCB number: 579-200 or newer
9 * DRC02 PCB number: 568-100 or newer (2nd ethernet by SoM)

12345678910