Lines Matching refs:cb_arg
3026 struct efct_hw_link_stat_cb_arg *cb_arg = arg; in efct_hw_cb_link_stat() local
3082 if (cb_arg) { in efct_hw_cb_link_stat()
3083 if (cb_arg->cb) { in efct_hw_cb_link_stat()
3086 cb_arg->cb(status, num_counters, counts, cb_arg->arg); in efct_hw_cb_link_stat()
3089 kfree(cb_arg); in efct_hw_cb_link_stat()
3104 struct efct_hw_link_stat_cb_arg *cb_arg; in efct_hw_get_link_stats() local
3107 cb_arg = kzalloc(sizeof(*cb_arg), GFP_ATOMIC); in efct_hw_get_link_stats()
3108 if (!cb_arg) in efct_hw_get_link_stats()
3111 cb_arg->cb = cb; in efct_hw_get_link_stats()
3112 cb_arg->arg = arg; in efct_hw_get_link_stats()
3118 efct_hw_cb_link_stat, cb_arg); in efct_hw_get_link_stats()
3121 kfree(cb_arg); in efct_hw_get_link_stats()
3131 struct efct_hw_host_stat_cb_arg *cb_arg = arg; in efct_hw_cb_host_stat() local
3167 if (cb_arg) { in efct_hw_cb_host_stat()
3168 if (cb_arg->cb) { in efct_hw_cb_host_stat()
3171 cb_arg->cb(status, num_counters, counts, cb_arg->arg); in efct_hw_cb_host_stat()
3174 kfree(cb_arg); in efct_hw_cb_host_stat()
3188 struct efct_hw_host_stat_cb_arg *cb_arg; in efct_hw_get_host_stats() local
3191 cb_arg = kmalloc(sizeof(*cb_arg), GFP_ATOMIC); in efct_hw_get_host_stats()
3192 if (!cb_arg) in efct_hw_get_host_stats()
3195 cb_arg->cb = cb; in efct_hw_get_host_stats()
3196 cb_arg->arg = arg; in efct_hw_get_host_stats()
3201 efct_hw_cb_host_stat, cb_arg); in efct_hw_get_host_stats()
3205 kfree(cb_arg); in efct_hw_get_host_stats()
3271 struct efct_hw_fw_wr_cb_arg *cb_arg = arg; in efct_hw_cb_fw_write() local
3283 if (cb_arg) { in efct_hw_cb_fw_write()
3284 if (cb_arg->cb) { in efct_hw_cb_fw_write()
3287 cb_arg->cb(status, bytes_written, change_status, in efct_hw_cb_fw_write()
3288 cb_arg->arg); in efct_hw_cb_fw_write()
3291 kfree(cb_arg); in efct_hw_cb_fw_write()
3306 struct efct_hw_fw_wr_cb_arg *cb_arg; in efct_hw_firmware_write() local
3309 cb_arg = kzalloc(sizeof(*cb_arg), GFP_KERNEL); in efct_hw_firmware_write()
3310 if (!cb_arg) in efct_hw_firmware_write()
3313 cb_arg->cb = cb; in efct_hw_firmware_write()
3314 cb_arg->arg = arg; in efct_hw_firmware_write()
3321 efct_hw_cb_fw_write, cb_arg); in efct_hw_firmware_write()
3325 kfree(cb_arg); in efct_hw_firmware_write()