/kernel/linux/linux-6.6/drivers/rpmsg/ |
H A D | qcom_glink_smem.c | 54 __le32 *head; member 69 u32 head; in glink_smem_rx_avail() local 85 head = le32_to_cpu(*pipe->head); in glink_smem_rx_avail() 88 if (head < tail) in glink_smem_rx_avail() 89 return pipe->native.length - tail + head; in glink_smem_rx_avail() 91 return head - tail; in glink_smem_rx_avail() 132 u32 head; in glink_smem_tx_avail() local 136 head = le32_to_cpu(*pipe->head); in glink_smem_tx_avail() 152 glink_smem_tx_write_one(struct glink_smem_pipe *pipe, unsigned int head, const void *data, size_t count) glink_smem_tx_write_one() argument 177 unsigned int head; glink_smem_tx_write() local [all...] |
H A D | qcom_glink_rpm.c | 52 void __iomem *head; member 72 unsigned int head; in glink_rpm_rx_avail() local 75 head = readl(pipe->head); in glink_rpm_rx_avail() 78 if (head < tail) in glink_rpm_rx_avail() 79 return pipe->native.length - tail + head; in glink_rpm_rx_avail() 81 return head - tail; in glink_rpm_rx_avail() 126 unsigned int head; in glink_rpm_tx_avail() local 129 head = readl(pipe->head); in glink_rpm_tx_avail() 138 glink_rpm_tx_write_one(struct glink_rpm_pipe *pipe, unsigned int head, const void *data, size_t count) glink_rpm_tx_write_one() argument 169 unsigned int head; glink_rpm_tx_write() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | base.c | 27 #include "head.h" 45 struct nvkm_head *head = nvkm_head_find(disp, id); in nvkm_disp_vblank_fini() local 46 if (head) in nvkm_disp_vblank_fini() 47 head->func->vblank_put(head); in nvkm_disp_vblank_fini() 54 struct nvkm_head *head = nvkm_head_find(disp, id); in nvkm_disp_vblank_init() local 55 if (head) in nvkm_disp_vblank_init() 56 head->func->vblank_get(head); in nvkm_disp_vblank_init() 66 nvkm_disp_vblank(struct nvkm_disp *disp, int head) in nvkm_disp_vblank() argument 165 struct nvkm_head *head; nvkm_disp_oneinit() local 312 struct nvkm_head *head; nvkm_disp_dtor() local [all...] |
/kernel/linux/linux-5.10/net/netlabel/ |
H A D | netlabel_addrlist.c | 38 * @head: the list head 41 * Searches the IPv4 address list given by @head. If a matching address entry 47 struct list_head *head) in netlbl_af4list_search() 51 list_for_each_entry_rcu(iter, head, list) in netlbl_af4list_search() 62 * @head: the list head 65 * Searches the IPv4 address list given by @head. If an exact match if found 72 struct list_head *head) in netlbl_af4list_search_exact() 76 list_for_each_entry_rcu(iter, head, lis in netlbl_af4list_search_exact() 46 netlbl_af4list_search(__be32 addr, struct list_head *head) netlbl_af4list_search() argument 70 netlbl_af4list_search_exact(__be32 addr, __be32 mask, struct list_head *head) netlbl_af4list_search_exact() argument 96 netlbl_af6list_search(const struct in6_addr *addr, struct list_head *head) netlbl_af6list_search() argument 121 netlbl_af6list_search_exact(const struct in6_addr *addr, const struct in6_addr *mask, struct list_head *head) netlbl_af6list_search_exact() argument 148 netlbl_af4list_add(struct netlbl_af4list *entry, struct list_head *head) netlbl_af4list_add() argument 185 netlbl_af6list_add(struct netlbl_af6list *entry, struct list_head *head) netlbl_af6list_add() argument 239 netlbl_af4list_remove(__be32 addr, __be32 mask, struct list_head *head) netlbl_af4list_remove() argument 279 netlbl_af6list_remove(const struct in6_addr *addr, const struct in6_addr *mask, struct list_head *head) netlbl_af6list_remove() argument [all...] |
/kernel/linux/linux-6.6/net/netlabel/ |
H A D | netlabel_addrlist.c | 38 * @head: the list head 41 * Searches the IPv4 address list given by @head. If a matching address entry 47 struct list_head *head) in netlbl_af4list_search() 51 list_for_each_entry_rcu(iter, head, list) in netlbl_af4list_search() 62 * @head: the list head 65 * Searches the IPv4 address list given by @head. If an exact match if found 72 struct list_head *head) in netlbl_af4list_search_exact() 76 list_for_each_entry_rcu(iter, head, lis in netlbl_af4list_search_exact() 46 netlbl_af4list_search(__be32 addr, struct list_head *head) netlbl_af4list_search() argument 70 netlbl_af4list_search_exact(__be32 addr, __be32 mask, struct list_head *head) netlbl_af4list_search_exact() argument 96 netlbl_af6list_search(const struct in6_addr *addr, struct list_head *head) netlbl_af6list_search() argument 121 netlbl_af6list_search_exact(const struct in6_addr *addr, const struct in6_addr *mask, struct list_head *head) netlbl_af6list_search_exact() argument 148 netlbl_af4list_add(struct netlbl_af4list *entry, struct list_head *head) netlbl_af4list_add() argument 185 netlbl_af6list_add(struct netlbl_af6list *entry, struct list_head *head) netlbl_af6list_add() argument 239 netlbl_af4list_remove(__be32 addr, __be32 mask, struct list_head *head) netlbl_af4list_remove() argument 279 netlbl_af6list_remove(const struct in6_addr *addr, const struct in6_addr *mask, struct list_head *head) netlbl_af6list_remove() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | rcu_segcblist.h | 22 struct rcu_head *head; member 27 #define RCU_CBLIST_INITIALIZER(n) { .head = NULL, .tail = &n.head } 36 * [head, *tails[RCU_DONE_TAIL]): 60 #define RCU_DONE_TAIL 0 /* Also RCU_WAIT head. */ 61 #define RCU_WAIT_TAIL 1 /* Also RCU_NEXT_READY head. */ 62 #define RCU_NEXT_READY_TAIL 2 /* Also RCU_NEXT head. */ 67 struct rcu_head *head; member 81 .head = NULL, \ 82 .tails[RCU_DONE_TAIL] = &n.head, \ [all...] |
H A D | circ_buf.h | 11 int head; member 16 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1)) 19 as a completely full buffer has head == tail, which is the same as 21 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) 24 accessing head and tail more than once, so they can change 26 #define CIRC_CNT_TO_END(head,tail,size) \ 28 int n = ((head) + end) & ((size)-1); \ 32 #define CIRC_SPACE_TO_END(head,tai [all...] |
/kernel/linux/linux-5.10/include/linux/sched/ |
H A D | wake_q.h | 22 * The DEFINE_WAKE_Q macro declares and initializes the list head. 48 static inline void wake_q_init(struct wake_q_head *head) in wake_q_init() argument 50 head->first = WAKE_Q_TAIL; in wake_q_init() 51 head->lastp = &head->first; in wake_q_init() 54 static inline bool wake_q_empty(struct wake_q_head *head) in wake_q_empty() argument 56 return head->first == WAKE_Q_TAIL; in wake_q_empty() 59 extern void wake_q_add(struct wake_q_head *head, struct task_struct *task); 60 extern void wake_q_add_safe(struct wake_q_head *head, struct task_struct *task); 61 extern void wake_up_q(struct wake_q_head *head); [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | circ_buf.h | 11 int head; member 16 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1)) 19 as a completely full buffer has head == tail, which is the same as 21 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) 24 accessing head and tail more than once, so they can change 26 #define CIRC_CNT_TO_END(head,tail,size) \ 28 int n = ((head) + end) & ((size)-1); \ 32 #define CIRC_SPACE_TO_END(head,tai [all...] |
H A D | rcu_segcblist.h | 22 struct rcu_head *head; member 27 #define RCU_CBLIST_INITIALIZER(n) { .head = NULL, .tail = &n.head } 36 * [head, *tails[RCU_DONE_TAIL]): 60 #define RCU_DONE_TAIL 0 /* Also RCU_WAIT head. */ 61 #define RCU_WAIT_TAIL 1 /* Also RCU_NEXT_READY head. */ 62 #define RCU_NEXT_READY_TAIL 2 /* Also RCU_NEXT head. */ 207 struct rcu_head *head; member 221 .head = NULL, \ 222 .tails[RCU_DONE_TAIL] = &n.head, \ [all...] |
/kernel/linux/linux-6.6/include/linux/sched/ |
H A D | wake_q.h | 22 * The DEFINE_WAKE_Q macro declares and initializes the list head. 51 static inline void wake_q_init(struct wake_q_head *head) in wake_q_init() argument 53 head->first = WAKE_Q_TAIL; in wake_q_init() 54 head->lastp = &head->first; in wake_q_init() 57 static inline bool wake_q_empty(struct wake_q_head *head) in wake_q_empty() argument 59 return head->first == WAKE_Q_TAIL; in wake_q_empty() 62 extern void wake_q_add(struct wake_q_head *head, struct task_struct *task); 63 extern void wake_q_add_safe(struct wake_q_head *head, struct task_struct *task); 64 extern void wake_up_q(struct wake_q_head *head); [all...] |
/third_party/mesa3d/src/nouveau/codegen/ |
H A D | nv50_ir_util.cpp | 29 for (Item *next, *item = head.next; item != &head; item = next) { in clear() 33 head.next = head.prev = &head; in clear() 53 assert(term != &dest.head); in moveToList() 59 DLLIST_ADDHEAD(&dest.head, item); in moveToList() 91 Interval::Interval(const Interval& that) : head(NULL), tail(NULL) in Interval() 104 for (Range *next, *r = head; r; r = next) { in clear() 108 head in clear() [all...] |
/kernel/linux/linux-5.10/net/sched/ |
H A D | cls_fw.c | 53 struct fw_head *head = rcu_dereference_bh(tp->root); in fw_classify() local 58 if (head != NULL) { in fw_classify() 59 id &= head->mask; in fw_classify() 61 for (f = rcu_dereference_bh(head->ht[fw_hash(id)]); f; in fw_classify() 91 struct fw_head *head = rtnl_dereference(tp->root); in fw_get() local 94 if (head == NULL) in fw_get() 97 f = rtnl_dereference(head->ht[fw_hash(handle)]); in fw_get() 133 struct fw_head *head = rtnl_dereference(tp->root); in fw_destroy() local 137 if (head == NULL) in fw_destroy() 141 while ((f = rtnl_dereference(head in fw_destroy() 157 struct fw_head *head = rtnl_dereference(tp->root); fw_delete() local 204 struct fw_head *head = rtnl_dereference(tp->root); fw_set_parms() local 243 struct fw_head *head = rtnl_dereference(tp->root); fw_change() local 347 struct fw_head *head = rtnl_dereference(tp->root); fw_walk() local 377 struct fw_head *head = rtnl_dereference(tp->root); fw_dump() local [all...] |
/kernel/linux/linux-6.6/net/sched/ |
H A D | cls_fw.c | 55 struct fw_head *head = rcu_dereference_bh(tp->root); in fw_classify() local 60 if (head != NULL) { in fw_classify() 61 id &= head->mask; in fw_classify() 63 for (f = rcu_dereference_bh(head->ht[fw_hash(id)]); f; in fw_classify() 93 struct fw_head *head = rtnl_dereference(tp->root); in fw_get() local 96 if (head == NULL) in fw_get() 99 f = rtnl_dereference(head->ht[fw_hash(handle)]); in fw_get() 135 struct fw_head *head = rtnl_dereference(tp->root); in fw_destroy() local 139 if (head == NULL) in fw_destroy() 143 while ((f = rtnl_dereference(head in fw_destroy() 159 struct fw_head *head = rtnl_dereference(tp->root); fw_delete() local 206 struct fw_head *head = rtnl_dereference(tp->root); fw_set_parms() local 244 struct fw_head *head = rtnl_dereference(tp->root); fw_change() local 348 struct fw_head *head = rtnl_dereference(tp->root); fw_walk() local 371 struct fw_head *head = rtnl_dereference(tp->root); fw_dump() local [all...] |
/kernel/linux/linux-5.10/kernel/rcu/ |
H A D | tiny.c | 82 static inline bool rcu_reclaim_tiny(struct rcu_head *head) in rcu_reclaim_tiny() argument 85 unsigned long offset = (unsigned long)head->func; in rcu_reclaim_tiny() 89 trace_rcu_invoke_kvfree_callback("", head, offset); in rcu_reclaim_tiny() 90 kvfree((void *)head - offset); in rcu_reclaim_tiny() 95 trace_rcu_invoke_callback("", head); in rcu_reclaim_tiny() 96 f = head->func; in rcu_reclaim_tiny() 97 WRITE_ONCE(head->func, (rcu_callback_t)0L); in rcu_reclaim_tiny() 98 f(head); in rcu_reclaim_tiny() 160 void call_rcu(struct rcu_head *head, rcu_callback_t func) in call_rcu() argument 164 debug_rcu_head_queue(head); in call_rcu() [all...] |
/kernel/liteos_m/kernel/src/ |
H A D | los_sortlink.c | 50 LOS_DL_LIST *head = (LOS_DL_LIST *)&sortLinkHead->sortLink; in OsAddNode2SortLink() local 52 if (LOS_ListEmpty(head)) { in OsAddNode2SortLink() 53 LOS_ListAdd(head, &sortList->sortLinkNode); in OsAddNode2SortLink() 57 SortLinkList *listSorted = LOS_DL_LIST_ENTRY(head->pstNext, SortLinkList, sortLinkNode); in OsAddNode2SortLink() 59 LOS_ListAdd(head, &sortList->sortLinkNode); in OsAddNode2SortLink() 62 LOS_ListAdd(head->pstNext, &sortList->sortLinkNode); in OsAddNode2SortLink() 66 LOS_DL_LIST *prevNode = head->pstPrev; in OsAddNode2SortLink() 113 LOS_DL_LIST *head = (LOS_DL_LIST *)&sortLinkHead->sortLink; in SortLinkNodeTimeUpdate() local 115 if (LOS_ListEmpty(head)) { in SortLinkNodeTimeUpdate() 119 LOS_DL_LIST *nextNode = head in SortLinkNodeTimeUpdate() 163 LOS_DL_LIST *head = (LOS_DL_LIST *)&sortLinkHead->sortLink; OsSortLinkGetNextExpireTime() local [all...] |
/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_connection.c | 197 uint64_t connId, const AuthConnInfo *connInfo, bool fromServer, const AuthDataHead *head, const uint8_t *data) in NotifyDataReceived() 200 g_listener.onDataReceived(connId, connInfo, fromServer, head, data); in NotifyDataReceived() 210 int32_t PackAuthData(const AuthDataHead *head, const uint8_t *data, in PackAuthData() argument 213 if (head == NULL || data == NULL || buf == NULL) { in PackAuthData() 217 if (size < GetAuthDataSize(head->len)) { in PackAuthData() 221 *(uint32_t *)buf = SoftBusHtoLl(head->dataType); in PackAuthData() 223 *(uint32_t *)(buf + offset) = SoftBusHtoLl((uint32_t)head->module); in PackAuthData() 225 *(uint64_t *)(buf + offset) = SoftBusHtoLll((uint64_t)head->seq); in PackAuthData() 227 *(uint32_t *)(buf + offset) = SoftBusHtoLl((uint32_t)head->flag); in PackAuthData() 229 *(uint32_t *)(buf + offset) = SoftBusHtoLl(head in PackAuthData() 196 NotifyDataReceived( uint64_t connId, const AuthConnInfo *connInfo, bool fromServer, const AuthDataHead *head, const uint8_t *data) NotifyDataReceived() argument 239 UnpackAuthData(const uint8_t *data, uint32_t len, AuthDataHead *head) UnpackAuthData() argument 352 HandleDataReceivedProcess( uint64_t connId, const AuthConnInfo *connInfo, bool fromServer, const AuthDataHead *head, const uint8_t *data) HandleDataReceivedProcess() argument 407 OnWiFiDataReceived(ListenerModule module, int32_t fd, const AuthDataHead *head, const uint8_t *data) OnWiFiDataReceived() argument 422 HandleDataReceivedProcess(GenConnId(connInfo.type, fd), &connInfo, fromServer, head, data); OnWiFiDataReceived() local 477 AuthDataHead head = { 0 }; OnCommDataReceived() local 483 HandleDataReceivedProcess(GenConnId(connInfo.type, connectionId), &connInfo, fromServer, &head, body); OnCommDataReceived() local 486 HandleRepeatDeviceIdDataDelay(uint64_t connId, const AuthConnInfo *connInfo, bool fromServer, const AuthDataHead *head, const uint8_t *data) HandleRepeatDeviceIdDataDelay() argument 567 PostCommData(uint32_t connectionId, bool toServer, const AuthDataHead *head, const uint8_t *data) PostCommData() argument 708 PostAuthData(uint64_t connId, bool toServer, const AuthDataHead *head, const uint8_t *data) PostAuthData() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ras.c | 105 .head = obj->head, in amdgpu_ras_debugfs_read() 187 data->head.block = block_id; in amdgpu_ras_debugfs_ctrl_parse_data() 190 data->head.type = AMDGPU_RAS_ERROR__MULTI_UNCORRECTABLE; in amdgpu_ras_debugfs_ctrl_parse_data() 192 data->head.type = AMDGPU_RAS_ERROR__SINGLE_CORRECTABLE; in amdgpu_ras_debugfs_ctrl_parse_data() 204 data->head.sub_block_index = sub_block; in amdgpu_ras_debugfs_ctrl_parse_data() 224 * First member: ras_debug_if::head or ras_debug_if::inject. 226 * head is used to indicate which IP block will be under control. 228 * head has four members, they are block, type, sub_block_index, name. 234 * inject has two more members than head, the 458 amdgpu_ras_create_obj(struct amdgpu_device *adev, struct ras_common_if *head) amdgpu_ras_create_obj() argument 484 amdgpu_ras_find_obj(struct amdgpu_device *adev, struct ras_common_if *head) amdgpu_ras_find_obj() argument 542 amdgpu_ras_is_feature_allowed(struct amdgpu_device *adev, struct ras_common_if *head) amdgpu_ras_is_feature_allowed() argument 550 amdgpu_ras_is_feature_enabled(struct amdgpu_device *adev, struct ras_common_if *head) amdgpu_ras_is_feature_enabled() argument 562 __amdgpu_ras_feature_enable(struct amdgpu_device *adev, struct ras_common_if *head, int enable) __amdgpu_ras_feature_enable() argument 600 amdgpu_ras_feature_enable(struct amdgpu_device *adev, struct ras_common_if *head, bool enable) amdgpu_ras_feature_enable() argument 659 amdgpu_ras_feature_enable_on_boot(struct amdgpu_device *adev, struct ras_common_if *head, bool enable) amdgpu_ras_feature_enable_on_boot() argument 734 struct ras_common_if head = { amdgpu_ras_enable_all_features() local 1058 amdgpu_ras_sysfs_create(struct amdgpu_device *adev, struct ras_fs_if *head) amdgpu_ras_sysfs_create() argument 1093 amdgpu_ras_sysfs_remove(struct amdgpu_device *adev, struct ras_common_if *head) amdgpu_ras_sysfs_remove() argument 1178 amdgpu_ras_debugfs_create(struct amdgpu_device *adev, struct ras_fs_if *head) amdgpu_ras_debugfs_create() argument 1224 amdgpu_ras_debugfs_remove(struct amdgpu_device *adev, struct ras_common_if *head) amdgpu_ras_debugfs_remove() argument [all...] |
/third_party/ltp/tools/sparse/sparse-src/ |
H A D | lib.h | 174 static inline void free_instruction_list(struct instruction_list **head) in free_instruction_list() argument 176 free_ptr_list(head); in free_instruction_list() 179 static inline struct instruction * delete_last_instruction(struct instruction_list **head) in delete_last_instruction() argument 181 return undo_ptr_list_last((struct ptr_list **)head); in delete_last_instruction() 184 static inline struct basic_block *first_basic_block(struct basic_block_list *head) in first_basic_block() argument 186 return first_ptr_list((struct ptr_list *)head); in first_basic_block() 188 static inline struct instruction *last_instruction(struct instruction_list *head) in last_instruction() argument 190 return last_ptr_list((struct ptr_list *)head); in last_instruction() 193 static inline struct instruction *first_instruction(struct instruction_list *head) in first_instruction() argument 195 return first_ptr_list((struct ptr_list *)head); in first_instruction() 198 first_expression(struct expression_list *head) first_expression() argument 203 first_pseudo(struct pseudo_list *head) first_pseudo() argument 208 first_symbol(struct symbol_list *head) first_symbol() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ras.c | 195 .head = obj->head, in amdgpu_ras_debugfs_read() 206 if (amdgpu_ras_reset_error_status(obj->adev, info.head.block)) in amdgpu_ras_debugfs_read() 299 data->head.block = block_id; in amdgpu_ras_debugfs_ctrl_parse_data() 302 data->head.type = AMDGPU_RAS_ERROR__MULTI_UNCORRECTABLE; in amdgpu_ras_debugfs_ctrl_parse_data() 304 data->head.type = AMDGPU_RAS_ERROR__SINGLE_CORRECTABLE; in amdgpu_ras_debugfs_ctrl_parse_data() 320 data->head.sub_block_index = sub_block; in amdgpu_ras_debugfs_ctrl_parse_data() 352 switch (data->head.block) { in amdgpu_ras_instance_mask_check() 381 * First member: ras_debug_if::head or ras_debug_if::inject. 383 * head i 638 amdgpu_ras_create_obj(struct amdgpu_device *adev, struct ras_common_if *head) amdgpu_ras_create_obj() argument 671 amdgpu_ras_find_obj(struct amdgpu_device *adev, struct ras_common_if *head) amdgpu_ras_find_obj() argument 708 amdgpu_ras_is_feature_allowed(struct amdgpu_device *adev, struct ras_common_if *head) amdgpu_ras_is_feature_allowed() argument 714 amdgpu_ras_is_feature_enabled(struct amdgpu_device *adev, struct ras_common_if *head) amdgpu_ras_is_feature_enabled() argument 726 __amdgpu_ras_feature_enable(struct amdgpu_device *adev, struct ras_common_if *head, int enable) __amdgpu_ras_feature_enable() argument 762 amdgpu_ras_feature_enable(struct amdgpu_device *adev, struct ras_common_if *head, bool enable) amdgpu_ras_feature_enable() argument 818 amdgpu_ras_feature_enable_on_boot(struct amdgpu_device *adev, struct ras_common_if *head, bool enable) amdgpu_ras_feature_enable_on_boot() argument 899 struct ras_common_if head = { amdgpu_ras_enable_all_features() local 922 struct ras_common_if head = { amdgpu_ras_enable_all_features() local 1400 amdgpu_ras_sysfs_create(struct amdgpu_device *adev, struct ras_common_if *head) amdgpu_ras_sysfs_create() argument 1434 amdgpu_ras_sysfs_remove(struct amdgpu_device *adev, struct ras_common_if *head) amdgpu_ras_sysfs_remove() argument 1532 amdgpu_ras_debugfs_create(struct amdgpu_device *adev, struct ras_fs_if *head, struct dentry *dir) amdgpu_ras_debugfs_create() argument 1802 amdgpu_ras_interrupt_remove_handler(struct amdgpu_device *adev, struct ras_common_if *head) amdgpu_ras_interrupt_remove_handler() argument 1824 amdgpu_ras_interrupt_add_handler(struct amdgpu_device *adev, struct ras_common_if *head) amdgpu_ras_interrupt_add_handler() argument [all...] |
/third_party/libinput/src/ |
H A D | util-list.h | 40 * nodes and the list head. Use like this: 45 * struct list list_of_bars; // the list head 66 * Initialize a list head. This function *must* be called once for each list 67 * head. This function *must not* be called for a node to be added to a 90 * Returns true if the given list head is an empty list. 116 * Given a list 'head', return the first entry of type 'pos' that has a 137 #define list_first_entry(head, pointer_of_type, member) \ 138 container_of((head)->next, __typeof__(*pointer_of_type), member) 141 * Given a list 'head', return the first entry of type 'container_type' that 157 #define list_first_entry_by_type(head, container_typ [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_rx_filter.c | 27 struct hlist_head *head; in ionic_rx_filter_replay() local 37 head = &lif->rx_filters.by_id[i]; in ionic_rx_filter_replay() 38 hlist_for_each_entry_safe(f, tmp, head, by_id) { in ionic_rx_filter_replay() 84 head = &lif->rx_filters.by_id[key]; in ionic_rx_filter_replay() 85 hlist_add_head(&f->by_id, head); in ionic_rx_filter_replay() 109 struct hlist_head *head; in ionic_rx_filters_deinit() local 115 head = &lif->rx_filters.by_id[i]; in ionic_rx_filters_deinit() 116 hlist_for_each_entry_safe(f, tmp, head, by_id) in ionic_rx_filters_deinit() 128 struct hlist_head *head; in ionic_rx_filter_save() local 163 head in ionic_rx_filter_save() 178 struct hlist_head *head; ionic_rx_filter_by_vlan() local 198 struct hlist_head *head; ionic_rx_filter_by_addr() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
H A D | radeon_agp.c | 133 struct radeon_agp_head *head; in radeon_agp_head_init() local 135 head = kzalloc(sizeof(*head), GFP_KERNEL); in radeon_agp_head_init() 136 if (!head) in radeon_agp_head_init() 138 head->bridge = agp_find_bridge(pdev); in radeon_agp_head_init() 139 if (!head->bridge) { in radeon_agp_head_init() 140 head->bridge = agp_backend_acquire(pdev); in radeon_agp_head_init() 141 if (!head->bridge) { in radeon_agp_head_init() 142 kfree(head); in radeon_agp_head_init() 145 agp_copy_info(head in radeon_agp_head_init() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/signal/testcases/ |
H A D | fake_sigreturn_bad_size.c | 24 struct _aarch64_ctx *shead = GET_SF_RESV_HEAD(sf), *head; in fake_sigreturn_bad_size_run() local 33 head = get_starting_head(shead, need_sz, resv_sz, &offset); in fake_sigreturn_bad_size_run() 34 if (!head) in fake_sigreturn_bad_size_run() 45 head->magic = ESR_MAGIC; in fake_sigreturn_bad_size_run() 46 head->size = sizeof(struct esr_context); in fake_sigreturn_bad_size_run() 48 write_terminator_record(GET_RESV_NEXT_HEAD(head)); in fake_sigreturn_bad_size_run() 57 * resv_sz - offset < sizeof(*head) in fake_sigreturn_bad_size_run() 60 head->size = (resv_sz - offset - need_sz + MIN_SZ_ALIGN) & ~0xfUL; in fake_sigreturn_bad_size_run() 62 head->size += MIN_SZ_ALIGN; in fake_sigreturn_bad_size_run() 64 write_terminator_record(GET_RESV_NEXT_HEAD(head)); in fake_sigreturn_bad_size_run() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvif/ |
H A D | head.c | 22 #include <nvif/head.h> 30 nvif_head_vblank_event_ctor(struct nvif_head *head, const char *name, nvif_event_func func, in nvif_head_vblank_event_ctor() argument 33 int ret = nvif_event_ctor(&head->object, name ?: "nvifHeadVBlank", nvif_head_id(head), in nvif_head_vblank_event_ctor() 35 NVIF_ERRON(ret, &head->object, "[NEW EVENT:VBLANK]"); in nvif_head_vblank_event_ctor() 40 nvif_head_dtor(struct nvif_head *head) in nvif_head_dtor() argument 42 nvif_object_dtor(&head->object); in nvif_head_dtor() 46 nvif_head_ctor(struct nvif_disp *disp, const char *name, int id, struct nvif_head *head) in nvif_head_ctor() argument 55 &args, sizeof(args), &head->object); in nvif_head_ctor() 56 NVIF_ERRON(ret, &disp->object, "[NEW head i in nvif_head_ctor() [all...] |